2017-03-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob925709bdab73964ee8f7211d220fa8a49ba4c2b4
1 2017-03-17  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/80048
4         * sese.c (free_sese_info): Properly release rename_map and
5         copied_bb_map elements.
7 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
9         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
10         Add linked-list forward and backlinks.  Insert on
11         construction, remove on destruction.
12         (class pass_store_merging): Add m_stores_head field.
13         (pass_store_merging::terminate_and_process_all_chains):
14         Iterate over m_stores_head list.
15         (pass_store_merging::terminate_all_aliasing_chains):
16         Likewise.
17         (pass_store_merging::execute): Check for debug stmts first.
18         Push new chains onto the m_stores_head stack.
20 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
22         PR target/71294
23         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
24         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
25         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
27 2017-03-16  Jeff Law  <law@redhat.com>
29         PR tree-optimization/71437
30         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
31         member function.  Implementation moved into after_dom_children
32         member function and into the threader's thread_outgoing_edges
33         function.
34         (dom_opt_dom_walker::after_dom_children): Simplify by moving
35         some code into new thread_outgoing_edges.
36         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
37         definition.  Simplify marker handling (do it here).   Assume we always
38         have the available expression and the const/copies tables.
39         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
40         and tree-vrp.c
41         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
42         * tree-vrp.c (equiv_stack): No longer file scoped.
43         (vrp_dom_walker): New class.
44         (vrp_dom_walker::before_dom_children): New member function.
45         (vrp_dom_walker::after_dom_children): Likewise.
46         (identify_jump_threads):  Setup domwalker.  Use it rather than
47         walking edges in a random order by hand.  Simplify setup/finalization.
48         (finalize_jump_threads): Remove.
49         (vrp_finalize): Do not call identify_jump_threads here.
50         (execute_vrp): Do it here instead and call thread_through_all_blocks
51         here too.
53         PR tree-optimization/71437
54         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
55         callers changed.
56         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
57         callers changed.
58         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
59         (dom_opt_dom_walker::thread_across_edge): Remove
60         handle_dominating_asserts argument.  All callers changed.
61         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
62         changes.  Remove calls to lhs_of_dominating_assert.  Other
63         uses of handle_dominating_asserts turn into unconditional code
64         (simplify_control_stmt_condition_1): Likewise.
65         (simplify_control_stmt_condition): Likewise.
66         (thread_through_normal_block, thread_across_edge): Likewise.
67         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
68         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
69         object if it is not an SSA_NAME.
70         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
71         before calling into the VRP specific simplifiers.
72         (identify_jump_threads): Remove handle_dominating_asserts
73         argument.
75 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
77         PR fortran/79886
78         * tree-diagnostic.c (default_tree_printer): No longer static.
79         * tree-diagnostic.h (default_tree_printer): New prototype.
81 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
83         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
84         Change ins into fmov.
86 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
88         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
89         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
90         Use h_con constraint for operand 1.
91         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
92         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
94 2017-03-15  Jeff Law  <law@redhat.com>
96         PR tree-optimization/71437
97         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
98         (record_temporary_equivalences): Use it.
100         PR tree-optimization/71437
101         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
102         tree-ssa-scopedtables.
103         (lookup_avail_expr, build_and_record_new_cond): Likewise.
104         (record_conditions, record_cond, vuse_eq): Likewise.
105         (record_edge_info): Adjust to API tweak of record_conditions.
106         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
107         (record_temporary_equivalences, optimize_stmt): Likewise.
108         (eliminate_redundant_computations): Likewise.
109         (record_equivalences_from_stmt): Likewise.
110         * tree-ssa-scopedtables.c: Include options.h and params.h.
111         (vuse_eq): New function, moved from tree-ssa-dom.c
112         (build_and_record_new_cond): Likewise.
113         (record_conditions): Likewise.  Accept vector of conditions rather
114         than edge_equivalence structure for first argument.
115         for the first argument.
116         (avail_exprs_stack::lookup_avail_expr): New member function, moved
117         from tree-ssa-dom.c.
118         (avail_exprs_stack::record_cond): Likewise.
119         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
120         from tree-ssa-dom.c.
121         (avail_exprs_stack): Add new member functions lookup_avail_expr
122         and record_cond.
123         (record_conditions): Declare.
125 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
127         PR target/80017
128         * lra-constraints.c (process_alt_operands): Increase reject for
129         reloading an input/output operand.
131 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
133         PR target/79038
134         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
135         insns to convert from signed/unsigned char/short to IEEE 128-bit
136         floating point.
137         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
139 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
141         PR target/80019
142         * config/i386/i386.c (ix86_vector_duplicate_value): Create
143         subreg of inner mode for values already in registers.
145 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
147         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
148         iteration reg is used after the loop.
150 2017-03-14  Martin Sebor  <msebor@redhat.com>
152         PR tree-optimization/79800
153         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
154         precision in negative-positive range.
155         (format_floating): Call non-const overload with adjusted precision.
157 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
159         PR target/79947
160         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
161         -mpowerpc-gfxopt.
163 2017-03-14  Martin Sebor  <msebor@redhat.com>
165         PR middle-end/80020
166         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
167         * builtins.def (aligned_alloc): Use it.
169         PR c/79936
170         * Makefile.in (GTFILES): Add calls.c.
171         * calls.c: Include "gt-calls.h".
173 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
175         PR rtl-optimization/79728
176         * regs.h (struct target_regs): New field
177         x_contains_allocatable_regs_of_mode.
178         (contains_allocatable_regs_of_mode): New macro.
179         * reginfo.c (init_reg_sets_1): Initialize it, and change
180         contains_reg_of_mode so it includes global regs as well.
181         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
182         rather than contains_regs_of_mode.
184 2017-03-14  Martin Liska  <mliska@suse.cz>
186         * doc/invoke.texi: Document options that can't be combined with
187         -fcheck-pointer-bounds.
189 2017-03-14  Martin Liska  <mliska@suse.cz>
191         PR middle-end/79831
192         * doc/invoke.texi (-Wchkp): Document the option.
194 2017-03-14  Martin Liska  <mliska@suse.cz>
196         * Makefile.in: Install gcov-dump.
198 2017-03-14  Martin Liska  <mliska@suse.cz>
200         * multiple_target.c (expand_target_clones): Bail out for
201         an invalid attribute.
203 2017-03-14  Richard Biener  <rguenther@suse.de>
205         * alias.c (struct alias_set_entry): Pack properly.
206         * cfgloop.h (struct loop): Likewise.
207         * cse.c (struct set): Likewise.
208         * ipa-utils.c (struct searchc_env): Likewise.
209         * loop-invariant.c (struct invariant): Likewise.
210         * lra-remat.c (struct cand): Likewise.
211         * recog.c (struct change_t): Likewise.
212         * rtl.h (struct address_info): Likewise.
213         * symbol-summary.h (function_summary): Likewise.
214         * tree-loop-distribution.c (struct partition): Likewise.
215         * tree-object-size.c (struct object_size_info): Likewise.
216         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
217         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
218         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
219         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
220         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
221         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
222         (struct _stmt_vec_info): Likewise.
224 2017-03-14  Martin Liska  <mliska@suse.cz>
226         PR target/79892
227         * multiple_target.c (create_dispatcher_calls): Check that
228         a target can create a function dispatcher.
230 2017-03-14  Martin Liska  <mliska@suse.cz>
232         PR lto/66295
233         * multiple_target.c (expand_target_clones): Drop local.local
234         flag for default implementation.
236 2017-03-14  Richard Biener  <rguenther@suse.de>
238         PR tree-optimization/80030
239         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
241 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
243         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
244         gcc_fallthrough() instead of __attribute__((fallthrough));
246 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
248         * doc/gcc.texi: Remove "up" link to (DIR).
249         * doc/gccint.texi: Ditto.
251 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
252         
253         * doc/install.texi (Specific) <avr>: Remove reference to
254         binutils 2.13.
256 2017-03-13  Jeff Law  <law@redhat.com>
258         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
259         attribute rather than comments.
261         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
262         match_scratch operand is highest.
264 2017-03-13  Martin Liska  <mliska@suse.cz>
266         PR middle-end/78339
267         * ipa-pure-const.c (warn_function_noreturn): If the declarations
268         is a CHKP clone, use original declaration.
270 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
272         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
273         (arc_conditional_register_usage): Use a different allocation order
274         when optimizing for size.
275         * common/config/arc/arc-common.c (arc_option_optimization_table):
276         Section anchors default on when optimizing for size.
278 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
280         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
282 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
284         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
285         * config/arc/arc.md (cpu_facility): Add cd variant.
286         (*movqi_insn): Add code density variant.
287         (*movhi_insn): Likewise.
288         (*movqi_insn): Likewise.
289         (*addsi3_mixed): Likewise.
290         (subsi3_insn): Likewise.
292 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
294         * config/arc/arc.md (movsi_cond_exec): Update constraint.
296 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
298         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
299         expressions with MINUS and UNARY ops.
301 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
303         PR target/79911
304         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
305         Rename to...
306         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
307         between vec_select and vector argument.
308         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
309         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
310         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
311         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
312         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
313         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
315 2017-03-13  Richard Biener  <rguenther@suse.de>
317         PR other/79991
318         * params.def (vect-max-peeling-for-alignment): Fix typo.
320 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
322         * doc/install.texi (Specific) <mips-*-*>: Remove description of
323         issue that only occurred with binutils below 2.18.
324         
325 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
327         * doc/install.texi (Specific) <cris-axis-elf>: No longer
328         refer to binutils 2.11/2.12 minimum.
330 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
332         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
333         ftp.kernel.org and simplify binutils requirement.
335 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
337         * doc/invoke.texi (Warning Options): Fix spelling of link-time
338         optimization.
339         (Optimize Options): Ditto.  Also remove redundancy.
341 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
343         PR translation/79848
344         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
345         "%qs".
346         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
347         to G_ to avoid double translation.
349 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
351         PR translation/79923
352         * auto-profile.c (get_combined_location): Convert leading
353         character of diagnostics to lower case and remove trailing period.
354         (read_profile): Likewise for various diagnostics.
355         * config/arm/arm.c (arm_option_override): Remove trailing period
356         from various diagnostics.
357         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
358         (msp430_expand_delay_cycles): Likewise.
360 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
362         PR target/79925
363         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
364         full command-line argument, rather than just "str".
365         (aarch64_validate_march): Likewise.
366         (aarch64_validate_mtune): Likewise.
368 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
370         PR rtl-optimization/78911
371         * lra-assigns.c (must_not_spill_p): New function.
372         (spill_for): Use it.
374 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
376         PR tree-optimization/79981
377         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
378         ATOMIC_COMPARE_EXCHANGE ifn result.
379         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
380         IFN_ATOMIC_COMPARE_EXCHANGE.
382 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
384         PR driver/79875
385         * opts.c (parse_sanitizer_options): Add missing question mark to
386         "did you mean" message.
388 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
390         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
391         built-in.
392         (VMULEUH_UNS): Likewise.
393         (VMULOUB_UNS): Likewise.
394         (VMULOUH_UNS): Likewise.
395         * config/rs6000/rs6000.c (builtin_function_type): Remove
396         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
398 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
400         PR bootstrap/79952
401         * read-rtl-function.c (function_reader::read_rtx_operand): Update
402         x with result of extra_parsing_for_operand_code_0.
403         (function_reader::extra_parsing_for_operand_code_0): Convert
404         return type from void to rtx, returning x.  When reading
405         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
406         larger size containing struct block_symbol.
408 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
410         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
411         -mfloat128-hardware without -m64.
413 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
415         PR target/79941
416         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
417         entries to the case statement that marks unsigned arguments to
418         overloaded functions.
420 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
422         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
423         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
425 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
427         PR target/79907
428         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
429         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
431 2017-03-10  Martin Liska  <mliska@suse.cz>
433         PR target/65705
434         PR target/69804
435         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
436         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
437         FIELD != NULL.
439 2017-03-10  Olivier Hainque  <hainque@adacore.com>
441         * tree-switch-conversion (array_value_type): Start by resetting
442         candidate type to it's main variant.
444 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
446         PR rtl-optimization/79909
447         * combine.c (try_combine): Use simplify_replace_rtx on individual
448         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
449         of the whole CALL_INSN_FUNCTION_USAGE.
451         PR tree-optimization/79972
452         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
453         get_range_info on SSA_NAMEs.  Formatting fixes.
455 2017-03-10  Richard Biener  <rguenther@suse.de>
456             Jakub Jelinek  <jakub@redhat.com>
458         PR tree-optimization/77975
459         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
460         edge to be constant.
461         (get_val_for): For constant x return it.  Formatting fix.
462         (loop_niter_by_eval): Avoid pointless looping if the next iteration
463         would use the same bases as the current one.
465 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
467         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
468         instead of vec_select for V1TImode.
469         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
470         longer needed.
471         (VSX_LE_128): Add V1TI to this mode iterator.
472         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
473         (*vsx_le_perm_store_<mode>): Likewise.
474         (pre-reload splitter for VSX stores): Likewise.
475         (post-reload splitter for VSX stores): Likewise.
476         (*vsx_xxpermdi2_le_<mode>): Likewise.
477         (*vsx_lxvd2x2_le_<mode>): Likewise.
478         (*vsx_stxvd2x2_le_<mode>): Likewise.
480 2017-03-09  Michael Eager  <eager@eagercon.com>
482         Correct failures with --enable-checking=yes,rtl.
484         * config/microblaze/microblaze.c (microblaze_expand_shift):
485         Replace GET_CODE test with CONST_INT_P and INTVAL test with
486         test for const0_rtx.
487         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
488         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
490 2017-03-09  Richard Biener  <rguenther@suse.de>
492         PR tree-optimization/79977
493         * graphite-scop-detection.c (scop_detection::merge_sese):
494         Handle the case of extra exits to blocks dominating the entry.
496 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
498         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
499         Document rdynamic.
501 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
503         PR rtl-optimization/79949
504         * lra-constraints.c (process_alt_operands): Check memory when
505         trying to predict a cycle.  Print about the overall increase.
507 2017-03-09  Richard Biener  <rguenther@suse.de>
509         PR middle-end/79971
510         * gimple-expr.c (useless_type_conversion_p): Preserve
511         TYPE_SATURATING for fixed-point types.
513 2017-03-09  Richard Biener  <rguenther@suse.de>
515         PR ipa/79970
516         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
517         alignment of BLKmode params.
519 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
521         PR target/79913
522         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
523         (VALL_NO_V2Q): Likewise.
524         (VDQF_DF): Delete.
525         * config/aarch64/aarch64-simd.md
526         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
527         iterator.
528         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
529         VALL_NO_V2Q mode iterator.
530         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
532 2017-03-09  Martin Liska  <mliska@suse.cz>
534         PR tree-optimization/79631
535         * tree-chkp-opt.c (chkp_is_constant_addr): Call
536         tree_int_cst_sign_bit just for INTEGER constants.
538 2017-03-09  Martin Liska  <mliska@suse.cz>
540         PR target/65705
541         PR target/69804
542         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
543         sanitizers.
545 2017-03-09  Marek Polacek  <polacek@redhat.com>
547         PR c++/79672
548         * tree.c (inchash::add_expr): Handle TREE_VEC.
550 2017-03-09  Martin Liska  <mliska@suse.cz>
552         PR ipa/79764
553         (chkp_narrow_size_and_offset): New function.
554         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
555         (void chkp_parse_bit_field_ref): New function.
556         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
557         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
559 2017-03-09  Martin Liska  <mliska@suse.cz>
561         PR ipa/79761
562         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
563         (chkp_find_bounds_1): Remove gcc_unreachable.
565 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
567         PR sanitizer/79944
568         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
569         BUILT_IN_SYNC*, determine the access type from the size suffix and
570         always build a MEM_REF with that type.  Handle forgotten
571         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
573         PR target/79932
574         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
575         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
576         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
577         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
578         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
579         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
580         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
581         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
582         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
583         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
584         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
585         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
586         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
587         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
588         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
589         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
590         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
591         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
592         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
593         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
594         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
595         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
596         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
597         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
598         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
599         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
600         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
601         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
602         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
603         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
604         definitions outside of __OPTIMIZE__ guarded section.
606         PR target/79932
607         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
608         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
609         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
610         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
611         guarded section.
613 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
615         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
616         ("vfenez<mode>"): Add missing constraints.
618 2017-03-08  Martin Sebor  <msebor@redhat.com>
620         PR target/79928
621         * config/nds32/nds32.c (nds32_option_override): 
623 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
625         PR c/79940
626         * gimplify.c (gimplify_omp_for): Replace index var in outer
627         taskloop statement with an artificial variable and add
628         OMP_CLAUSE_PRIVATE clause for it.
630 2017-03-08  Richard Biener  <rguenther@suse.de>
632         PR tree-optimization/79955
633         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
634         for accesses that are completely outside of the variable.
636 2017-03-08  Andrew Haley  <aph@redhat.com>
638         PR tree-optimization/79943
639         * tree-ssa-loop-split.c (compute_new_first_bound): When
640         calculating the new upper bound, (END-BEG) should be added, not
641         subtracted.
643 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
645         * config/avr/avr.md (setmemhi): Make sure match_dup
646         operand number comes before match_scratch.
648 2017-03-08  Richard Biener  <rguenther@suse.de>
650         PR tree-optimization/79920
651         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
652         with ncopies == 1 to ...
653         (vect_transform_slp_perm_load): ... here.  Properly compute
654         all element loads by iterating VF times over the group.  Do
655         not handle ncopies (computed in a broken way) in
656         vect_create_mask_and_perm.
658 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
660         PR sanitizer/79904
661         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
662         is a uniform vector, use uniform_vector_p return value instead of
663         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
665 2017-03-07  Marek Polacek  <polacek@redhat.com>
667         PR middle-end/79809
668         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
669         (alloca_call_type): Likewise.
671 2017-03-07  Martin Liska  <mliska@suse.cz>
673         * gcov.c (process_args): Put comment to correct location.
675 2017-03-07  Martin Liska  <mliska@suse.cz>
677         PR middle-end/68270
678         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
679         Use array_at_struct_end_p instead of DECL_CHAIN (field).
680         (chkp_narrow_bounds_for_field): Likewise.
681         (chkp_parse_array_and_component_ref): Pass one more argument to
682         call.
684 2017-03-07  Richard Biener  <rguenther@suse.de>
686         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
687         preheaders.
689 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
691         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
692         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
694 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
696         PR c/79855
697         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
698         to end of description.
699         (PARAM_MAX_STORES_TO_MERGE): Likewise.
701 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
703         PR rtl-optimization/79901
704         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
705         ...
706         (*avx512f_<code><mode>3<mask_name>): ... this.
707         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
708         iterator instead of VI8_AVX2_AVX512BW.
710         PR rtl-optimization/79901
711         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
712         min/max expander, expand it using expand_vec_cond_expr.
714         PR sanitizer/79897
715         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
716         temporary.
718 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
720         PR c++/79821
721         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
722         to void * for PCH reasons.
723         * dwarf2out.c (output_loc_operands, output_die): Cast
724         v.val_vec.array to unsigned char *.
726 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
728         PR target/77850
729         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
730         vector types.
732 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
734         PR rtl-optimization/79571
735         * lra-constraints.c (process_alt_operands): Calculate static
736         reject and subtract it from overall when only addresses will be
737         reloaded.
739 2017-03-06  Julia Koval  <julia.koval@intel.com>
741         PR target/79793
742         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
743         incoming stack boundary to 128 for 64-bit targets.
745 2017-03-06  Richard Biener  <rguenther@suse.de>
747         PR tree-optimization/79894
748         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
749         to NULL after folding it.
751 2017-03-06  Richard Biener  <rguenther@suse.de>
753         PR tree-optimization/79824
754         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
755         check disabling peeling for gaps.
757 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
759         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
760         attributes): Document gettimeofday.
762 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
764         * config/s390/s390.c (s390_option_override_internal): Set
765         PARAM_MIN_VECT_LOOP_BOUND
767 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
769         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
770         * config/s390/s390.md: Likewise.
772 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
774         PR target/79812
775         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
776         (<avx2_avx512>_perm<mode>): Rename to ...
777         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
778         of VI8F_256_512.
779         (<avx512>_perm<mode>_mask): Rename to ...
780         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
781         of VI8F_256_512.
782         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
783         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
784         instead of VI8F_256_512.
785         (avx512f_perm<mode>): New define_expand.
786         (avx512f_perm<mode>_mask): Likewise.
787         (avx512f_perm<mode>_1<mask_name>): New define_insn.
788         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
790 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
792         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
793         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
794         if_then_else.
795         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
797 2017-03-06  Martin Liska  <mliska@suse.cz>
799         PR sanitize/79783
800         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
801         when having a SSA NAME w/o VAR_DECL assigned to it.
803 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
805         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
806         msa_dpsub_<su>_d): Fix MODE for vec_select.
808 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
810         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
811         argument.
812         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
814 2017-03-06  Richard Biener  <rguenther@suse.de>
816         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
817         * plugin.c (register_plugin_info): Likewise.
818         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
820 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
822         * config/i386/sse.md (sse_storehps, sse_storelps,
823         avx_<castmode><avxsizesuffix>_<castmode>,
824         avx512f_<castmode><avxsizesuffix>_<castmode>,
825         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
826         in condition that at least one operand is not a MEM.
828 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
830         PR middle-end/79805
831         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
832         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
833         ECF_NOTHROW.
834         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
835         gimple_call_nothrow_p flag based on whether original builtin can throw.
836         If it can, emit following stmts on the fallthrough edge.
837         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
838         don't create new bb if inserting just debug stmts on the edge, try to
839         insert them on the fallthru bb or just reset debug stmts.
841 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
843         PR target/43763
844         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
845         restore recog_data (including the operand rtxes inside it) around
846         the call to get_insn_template.
848 2017-03-03  Martin Sebor  <msebor@redhat.com>
850         PR tree-optimization/79699
851         * context.c (context::~context): Free MPFR caches to avoid
852         a memory leak on program exit.
854 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
856         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
857         Use wide_int::ulow () instead of .elt (0).
859 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
861         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
862         (*pushxf): Limit oF constraint to 32bit targets and add oC
863         constraint for 64bit targets.
864         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
865         (*pushdf): Change rmF constraint to rmC.
867 2017-03-03  Martin Liska  <mliska@suse.cz>
869         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
870         Remove unused variable.
872 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
874         PR target/79807
875         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
876         is a memory operand, increase num_memory.
877         (ix86_expand_args_builtin): Likewise.
879 2017-03-03  Jan Hubicka  <jh@suse.cz>
881         PR lto/79760
882         * ipa-devirt.c (maybe_record_node): Properly handle
883         __cxa_pure_virtual visibility.
885 2017-03-03  Martin Liska  <mliska@suse.cz>
887         PR tree-optimization/79803
888         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
889         assert.
890         (pass_loop_prefetch::execute): Disabled optimization if an
891         assumption about L1 cache size is not met.
893 2017-03-03  Martin Liska  <mliska@suse.cz>
895         PR rtl-optimization/79574
896         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
897         (hash_scan_set): Likewise.
898         (dump_hash_table): Likewise.
899         (hoist_code): Likewise.
901 2017-03-03  Richard Biener  <rguenther@suse.de>
903         * fixed-value.c (fixed_from_string): Restore use of elt (1)
904         in place of uhigh ().
905         (fixed_convert_from_real): Likewise.
907 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
909         PR target/79514
910         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
912 2017-03-03  Richard Biener  <rguenther@suse.de>
914         PR middle-end/79818
915         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
916         TYPE_OVERFLOW_UNDEFINED check.
918 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
920         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
921         numbers.
922         (vector_ae_<mode>_p): Likewise.
923         (vector_nez_<mode>_p): Likewise.
924         (vector_ne_v2di_p): Likewise.
925         (vector_ae_v2di_p): Likewise.
926         (vector_ne_<mode>_p): Likewise.
927         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
928         numbers.
929         (vsx_tsqrt<mode>2_fe): Likewise.
931 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
933         PR target/79514
934         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
936 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
938         PR rtl-optimization/79780
939         * cprop.c (one_cprop_pass): When second and further conditional trap
940         in a single basic block is turned into an unconditional trap, turn it
941         into a deleted note to avoid RTL verification failures.
943 2017-03-02  Richard Biener  <rguenther@suse.de>
945         * fold-const.c (const_binop): Use ulow () instead of elt (0).
947 2017-03-02  Richard Biener  <rguenther@suse.de>
949         PR tree-optimization/79345
950         PR c++/42000
951         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
952         param and abort the walk, returning -1 if it is hit.
953         (walk_aliased_vdefs): Take a limit param and pass it on.
954         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
955         defaulting to 0 and return a signed int.
956         * tree-ssa-uninit.c (struct check_defs_data): New struct.
957         (check_defs): New helper.
958         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
959         about uninitialized memory.
960         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
961         bogus uninitialized warning.
962         (fixed_convert_from_real): Likewise.
964 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
966         PR tree-optimization/66768
967         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
968         iv_use if base object can't be determined.
970 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
972         PR tree-optimization/79345
973         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
974         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
975         (get_pattern_stats): Initialize it.
976         * genemit.c (gen_expand): Verify match_scratch numbers come after
977         match_operand/match_dup numbers.
978         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
979         match_scratch numbers.
980         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
981         Likewise.
982         * config/s390/s390.md (trunctdsd2): Likewise.
984 2017-03-02  Richard Biener  <rguenther@suse.de>
986         * wide-int.h (wide_int_storage::operator=): Implement in terms
987         of wi::copy.
989 2017-03-02  Richard Biener  <rguenther@suse.de>
991         PR tree-optimization/79777
992         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
993         the to insert expression to sth existing.
995 2017-03-01  Martin Sebor  <msebor@redhat.com>
997         PR middle-end/79692
998         * gimple-ssa-sprintf.c
999         (directive::known_width_and_precision): New function.
1000         (format_integer): Use it.
1001         (get_mpfr_format_length): Consider the full range of precision
1002         when computing %g output with the # flag.  Set the likely byte
1003         count to 3 rather than 1 when precision is indeterminate.
1004         (format_floating): Correct the lower bound of precision.
1006 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1008         * doc/invoke.texi: Document default code model for 64-bit Linux.
1010 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1012         PR target/79752
1013         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
1014         udiv rather than div since input pattern is unsigned.
1016 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
1018         * config/i386/i386.c (print_reg): Warn for values of
1019         unsupported size in integer register.
1021 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1023         PR target/79439
1024         * config/rs6000/predicates.md (current_file_function_operand): Do
1025         not allow self calls to be local if the function is replaceable.
1027 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1029         PR target/79395
1030         * config/rs6000/altivec.h (vec_ctz and others): Change the
1031         preprocessor macro that controls conditional compilation from
1032         _ARCH_PWR9 to __POWER9_VECTOR__.
1033         (vec_all_ne): Change parameterization of __altivec_scalar_pred
1034         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
1035         control (instead of _ARCH_PWR9 control) so that template
1036         definition uses power9-specific function.
1037         (vec_any_eq): Likewise.
1038         (vec_all_ne): Change macro definition to use a power9-specific
1039         expansion under #ifdef __POWER9_VECTOR__ control (instead of
1040         _ARCH_PWR9 control).
1041         (vec_any_eq) Likewise.
1042         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
1043         expansion for CMPNEF to remove support for xvcmpnesp instruction.
1044         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
1045         support for xvcmpnedp instruction.
1046         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
1047         macro expansion so that Power9 implementation of vec_all_ne does
1048         not use the AltiVec predicate framework.
1049         (VCMPNEH_P): Likewise.
1050         (VCMPNEW_P): Likewise.
1051         (VCMPNED_P): Likewise.
1052         (VCMPNEFP_P): Likewise.
1053         (VCMPNEDP_P): Likewise.
1054         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
1055         implementation of vec_any_eq to not use AltiVec predicate
1056         framework.
1057         (VCMPAEH_P): Likewise.
1058         (VCMPAEW_P): Likewise.
1059         (VCMPAED_P): Likewise.
1060         (VCMPAEFP_P): Likewise.
1061         (VCMPAEDP_P): Likewise.
1062         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
1063         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
1064         not use the AltiVec predicate framework.
1065         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
1066         of vec_any_eq to not use AltiVec predicate framework.
1067         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1068         support for predefined __POWER9_VECTOR__ macro to indicate that
1069         Power9 instruction selection is enabled.
1070         (altivec_overloaded_builtins): Remove extraneous
1071         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
1072         function argument types RS6000_BTI_bool_V16QI and
1073         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
1074         entry for overloaded function argument types RS6000_BTI_bool_V4SI
1075         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
1076         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
1077         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
1078         Power9 for implementations of vec_cmpne.  Change the signature for
1079         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
1080         (representing vec_all_ne) to remove the previously described first
1081         argument of type RS6000_BTI_INTSI, as this was an artifact of
1082         reliance on the AltiVec predicate framework, which is no longer
1083         used in the implementation of these functions.  Add
1084         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
1085         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
1086         since, unlike the AltiVec predicate framework implementation, we
1087         do not share function descriptors between vec_alle and vec_anyeq.
1088         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
1089         set of modes that receive special treatment even when
1090         TARGET_P9_VECTOR is true.  The special treatment emits code that
1091         does not depend on Power9 instructions.
1092         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
1093         define_expand to not rely on AltiVec predicate framework.
1094         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1095         function.
1096         (vector_ne_v2di_p): Change this define_expand to not rely on
1097         AltiVec predicate framework.
1098         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
1099         function.
1100         (vector_ne_<mode>_p): Change this define_expand to not rely on
1101         AltiVec predicate framework.
1102         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1103         function.
1104         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
1105         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
1106         define_insn pattern.
1107         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
1108         define_insn pattern because the xvcmpne<VSs>. instruction is not
1109         supported.
1110         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
1111         instruction is not supported.
1113 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1115         * config/nvptx/nvptx.c: Include intl.h.
1117 2017-03-01  Martin Jambor  <mjambor@suse.cz>
1119         PR lto/78140
1120         * ipa-prop.h (ipa_bits): Removed field known.
1121         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
1122         to pointers.  Adjusted their comments to warn about their sharing.
1123         (ipcp_transformation_summary): Change bits to a vector of pointers.
1124         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
1125         (ipa_get_ipa_bits_for_value): Declare.
1126         * tree-vrp.h (value_range): Mark as GTY((for_user)).
1127         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
1128         (ipa_bits_hash_table): Likewise.
1129         (ipa_vr_ggc_hash_traits): Likewise.
1130         (ipa_vr_hash_table): Likewise.
1131         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
1132         being pointers and vr_known being removed.
1133         (ipa_set_jf_unknown): Likewise.
1134         (ipa_get_ipa_bits_for_value): New function.
1135         (ipa_set_jfunc_bits): Likewise.
1136         (ipa_get_value_range): New overloaded functions.
1137         (ipa_set_jfunc_vr): Likewise.
1138         (ipa_compute_jump_functions_for_edge): Use the above functions to
1139         construct bits and vr parts of jump functions.
1140         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
1141         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1142         exist.
1143         (ipcp_grow_transformations_if_necessary): Also allocate
1144         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1145         exist.
1146         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
1147         them.  Fix too long lines.
1148         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
1149         vr_known being removed.
1150         (ipa_read_jump_function): Use new setter functions to construct bits
1151         and vr parts of jump functions or set them to NULL.
1152         (write_ipcp_transformation_info): Adjust for bits being pointers.
1153         (read_ipcp_transformation_info): Likewise.
1154         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
1155         space.
1156         Include gt-ipa-prop.h.
1157         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
1158         being pointers.
1159         (ipcp_store_bits_results): Likewise.
1160         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
1161         Do not write to existing jump functions but use a temporary instead.
1163 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1165         PR c++/79681
1166         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
1167         attempt to use its first operand as BIT_FIELD_REF base.
1169 2017-03-01  Richard Biener  <rguenther@suse.de>
1171         PR middle-end/79721
1172         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
1173         interpolating formula in wrapping arithmetic.
1174         (chrec_apply): Convert chrec_evaluate return value to wanted type.
1176 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
1178         PR tree-optimization/79734
1179         * tree-vect-generic.c (expand_vector_condition): Optimize
1180         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
1181         Handle VEC_COND_EXPR where comparison has different inner width from
1182         type's inner width.
1184 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1186         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
1187         markup, and similar issues.  Remove @opindex entries for things
1188         that aren't options.  Add missing -mmpy-option entries.
1190 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1192         PR tree-optimization/79737
1193         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
1194         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
1195         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
1196         instead of byte_size.  Formatting fix.
1197         (shift_bytes_in_array_right): Formatting fix.
1199 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1201         PR target/79749
1202         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
1203         condition on optimize for the leaf function test.
1205 2017-02-28  Martin Liska  <mliska@suse.cz>
1207         PR lto/79625
1208         * read-rtl-function.c (function_reader::handle_unknown_directive):
1209         Bail out when one uses -flto.
1211 2017-02-28  Martin Liska  <mliska@suse.cz>
1213         * common.opt: Replace space with tabular for options of <number>
1214         type.
1215         * config/i386/i386.opt: Show <number> value for
1216         -mlarge-data-threshold.
1217         * opts.c (print_filtered_help): Do not display number in hexadecimal
1218         format.
1220 2017-02-28  Martin Liska  <mliska@suse.cz>
1222         * common.opt: Fix --help=option -Q for options which are of
1223         an enum type.
1225 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
1227         * config/i386/i386.c (print_reg): Error out for values
1228         of 8-bit size in invalid integer register.
1230 2017-02-28  Martin Sebor  <msebor@redhat.com>
1232         PR tree-optimization/79691
1233         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
1235 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1237         PR target/79729
1238         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
1239         gcc_unreachable with output_operand_lossage.
1241 2017-02-28  Richard Biener  <rguenther@suse.de>
1243         PR tree-optimization/79740
1244         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
1245         inserts.
1246         (visit_nary_op): Insert the nary into the hashtable if we
1247         pattern-matched sth.
1248         * tree-ssa-pre.c (eliminate_insert): Robustify.
1250 2017-02-28  Richard Biener  <rguenther@suse.de>
1252         PR middle-end/79731
1253         * fold-const.c (decode_field_reference): Reject out-of-bound
1254         accesses.
1256 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1258         * config/i386/i386.c: Include intl.h.
1259         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
1260         instead of just cond ? "..." : "...".
1261         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
1262         * coverage.c (read_counts_file): Likewise.
1263         * omp-offload.c: Include intl.h.
1264         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
1265         of just cond ? "..." : "...".
1266         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
1267         of just cond ? "..." : "...".
1269 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
1271         PR target/79742
1272         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
1273         entry, if present.
1274         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
1275         'tune for' CPU name.
1276         * config/arm/arm-cpu-data.h: Regenerated.
1278 2017-02-28  Richard Biener  <rguenther@suse.de>
1280         PR tree-optimization/79732
1281         * tree-inline.c (expand_call_inline): Do not shadow var.
1283 2017-02-28  Richard Biener  <rguenther@suse.de>
1285         PR tree-optimization/79723
1286         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
1287         address-space properly.
1289 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
1291         * doc/optinfo.texi (Optimization groups): Fix option used for
1292         OPTGROUP_ALL.
1293         * doc/invoke.texi (-fopt-info): Document "omp".
1294         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
1295         (OPTGROUP_ALL): Add OPTGROUP_OMP.
1296         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
1297         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
1298         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
1300         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
1301         all users.
1302         * dumpfile.c (optgroup_options): Instead of "openmp", associate
1303         OPTGROUP_OMP with "omp".
1305 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
1307         PR target/79544
1308         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
1309         for arithmetic shift of unsigned V2DI.
1311 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
1313         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
1314         arc/linux.h headers.
1315         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
1316         (LINK_SPEC): Likewise.
1317         (ARC_TLS_EXTRA_START_SPEC): Likewise.
1318         (EXTRA_SPECS): Likewise.
1319         (STARTFILE_SPEC): Likewise.
1320         (ENDFILE_SPEC): Likewise.
1321         (LIB_SPEC): Likewise.
1322         (TARGET_SDATA_DEFAULT): Likewise.
1323         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
1324         (MULTILIB_DEFAULTS): Likewise.
1325         (DWARF2_UNWIND_INFO): Likewise.
1326         * config/arc/big.h: New file.
1327         * config/arc/elf.h: Likewise.
1328         * config/arc/linux.h: Likewise.
1329         * config/arc/t-uClibc: Remove.
1331 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
1333         PR tree-optimization/77536
1334         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
1335         (tree_transform_and_unroll_loop): Use above function to compute the
1336         estimated niter of unrolled loop and use it when scaling profile.
1337         Also use count info rather than frequency if it's non-zero.
1338         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
1339         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
1340         (vect_transform_loop): Call above function.
1342 2017-02-27  Richard Biener  <rguenther@suse.de>
1344         PR tree-optimization/45397
1345         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
1346         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
1347         (visit_nary_op): Add pattern matching for CSEing sign-changed
1348         or truncated operations with wider ones.
1350 2017-02-27  Richard Biener  <rguenther@suse.de>
1352         PR tree-optimization/79690
1353         * tree-vect-stmts.c (vectorizable_store): Use vector type
1354         built from the DR with address-space.
1356 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
1358         * doc/invoke.texi (Optimize Options): Refine the description
1359         of asan-use-after-return.
1361 2017-02-25  Alan Modra  <amodra@gmail.com>
1363         PR rtl-optimization/79584
1364         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
1365         base, not ad->base_term, the reg within base.  Remove assertion
1366         that ad->base == ad->base_term.  Replace gen_int_mode using
1367         bogus mode with const0_rtx.
1369 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
1371         PR middle-end/79396
1372         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
1373         FMA_EXPR like tcc_binary or tcc_unary.
1375         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
1377         PR debug/77589
1378         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
1379         bitfield.
1380         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
1381         (output_loc_operands): Handle DW_OP_call_ref and
1382         DW_OP_GNU_variable_value.
1383         (struct variable_value_struct): New type.
1384         (struct variable_value_hasher): Likewise.
1385         (variable_value_hash): New variable.
1386         (string_types): Remove.
1387         (copy_loc_descr): New function.
1388         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
1389         (prepend_loc_descr_to_each): New function.
1390         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
1391         instead of add_loc_descr_to_each if the first argument is single
1392         location list and the second has multiple.
1393         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
1394         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
1395         when looking for variable value which doesn't have other location info.
1396         (loc_list_from_tree): Formatting fix.
1397         (gen_array_type_die): Simplify DW_AT_string_length handling.
1398         (adjust_string_types): Remove.
1399         (gen_subprogram_die): Don't call adjust_string_types nor test/set
1400         string_types.  Call resolve_variable_values.
1401         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
1402         (resolve_addr_in_expr): Likewise.  Add A argument.
1403         (copy_deref_exprloc): Remove deref argument.  Adjust for the
1404         original expression being DW_OP_GNU_variable_value with optionally
1405         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
1406         optionally after it.
1407         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
1408         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
1409         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
1410         (variable_value_hasher::hash, variable_value_hasher::equal): New
1411         methods.
1412         (resolve_variable_value_in_expr, resolve_variable_value,
1413         resolve_variable_values, note_variable_value_in_expr,
1414         note_variable_value): New functions.
1415         (dwarf2out_early_finish): Call note_variable_value on all toplevel
1416         DIEs.
1418 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1420         PR c/79677
1421         * opts.h (handle_generated_option): Add GENERATED_P argument.
1422         * opts-common.c (handle_option): Adjust function comment.
1423         (handle_generated_option): Add GENERATED_P argument, pass it to
1424         handle_option.
1425         (control_warning_option): Pass false to handle_generated_option
1426         GENERATED_P.
1427         * opts.c (maybe_default_option): Pass true to handle_generated_option
1428         GENERATED_P.
1429         * optc-gen.awk: Likewise.
1431 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1433         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
1434         a REG, look at the REG it is a SUBREG of.
1435         (splitter for cmpeqsi_t): Ditto.
1437 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1439         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
1440         the special USEs with the pattern of the insn, not the insn itself.
1442 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
1444         PR target/79473
1445         * doc/invoke.texi: Document -mload-store-pairs.
1447 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1448             Sandra Loosemore  <sandra@codesourcery.com>
1450         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
1451         argument isn't a CONST_INT.
1452         (nios2_alternate_compare_const): Assert op is a CONST_INT.
1453         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
1454         (nios2_validate_compare): Bypass alternate compare logic if *op2
1455         is not a CONST_INT.
1456         (ldstwm_operation_p): Return false if first_base is not a REG or
1457         if first_offset is not a CONST_INT.
1459 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1461         * config/cris/cris.md: Use correct operand in a define_peephole2.
1463 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1465         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
1467 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1469         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
1470         this_insn if it is an INSN or JUMP_INSN.
1471         (force_offsettable): Look at base, not at addr.
1472         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
1473         on things that aren't necessarily CONST_INTs.
1475 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
1477         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
1478         -mfpmath=sse is the default also for x86-32 targets with SSE2
1479         instruction set when @option{-ffast-math} is enabled
1481 2017-02-24  Jeff Law  <law@redhat.com>
1483         PR rtl-optimizatoin/79286
1484         * ira.c (update_equiv_regs): Drop may_trap_p exception to
1485         dominance test.
1487 2017-02-24  Richard Biener  <rguenther@suse.de>
1489         PR tree-optimization/79389
1490         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
1491         debug insns.
1493 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
1495         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
1496         function comment to reflect reality.
1497         (loop_exits_before_overflow): Fix typo in function description.
1499 2017-02-24  Richard Biener  <rguenther@suse.de>
1501         PR tree-optimization/79389
1502         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
1503         properly that a threading opportunity exists.  Detect conditional
1504         copy/constant propagation opportunities.
1506 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
1508         * config/visium/visium.md (type): Add trap.
1509         (b): New mode attribute.
1510         (*btst): Rename into...
1511         (*btst<mode>): ...this and adjust.
1512         (*cbranchsi4_btst_insn): Rename into...
1513         (*cbranch<mode>4_btst_insn): ...this and adjust.
1514         (trap): New define_insn.
1516 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1518         PR tree-optimization/79389
1519         * ifcvt.c (struct noce_if_info): Add rev_cond field.
1520         (noce_reversed_cond_code): New function.
1521         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
1522         reversed_comparison_code.  Formatting fix.
1523         (noce_try_store_flag): Test rev_cond != NULL in addition to
1524         reversed_comparison_code.
1525         (noce_try_store_flag_constants): Likewise.
1526         (noce_try_store_flag_mask): Likewise.
1527         (noce_try_addcc): Use rev_cond if non-NULL instead of
1528         reversed_comparison_code.
1529         (noce_try_cmove_arith): Likewise.  Formatting fixes.
1530         (noce_try_minmax, noce_try_abs): Clear rev_cond.
1531         (noce_find_if_block): Initialize rev_cond.
1532         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
1533         instead of false as last argument never attempt to reverse it
1534         afterwards.
1536 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
1538         PR tree-optimization/79663
1539         * tree-predcom.c (combine_chains): Process refs in reverse order
1540         only for ZERO length chains, and add explaining comment.
1542 2017-02-23  Jeff Law  <law@redhat.com>
1544         PR tree-optimization/79578
1545         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
1546         in call to operand_equal_p.
1548 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
1550         PR target/71017
1551         * config/i386/cpuid.h: Fix another undefined behavior.
1553 2017-02-23  Richard Biener  <rguenther@suse.de>
1555         PR tree-optimization/79683
1556         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
1557         vector types for data-refs.
1559 2017-02-23  Martin Liska  <mliska@suse.cz>
1561         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
1563 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1565         PR middle-end/79665
1566         * internal-fn.c (get_range_pos_neg): Moved to ...
1567         * tree.c (get_range_pos_neg): ... here.  No longer static.
1568         * tree.h (get_range_pos_neg): New prototype.
1569         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
1570         are known to be in between 0 and signed maximum inclusive, try to
1571         expand both unsigned and signed divmod and use the cheaper one from
1572         those.
1574 2017-02-22  Jeff Law  <law@redhat.com>
1576         PR tree-optimization/79578
1577         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
1578         to compare base operands.
1580 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
1582         PR target/79211
1583         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
1584         gpc_reg_operand instead of fpr_reg_operand.
1586 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
1588         * config/mips/mips.c (mips_return_in_memory): Force FP
1589         vector types to be returned in memory for o32 ABI.
1591 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
1593         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
1594         instead of DW_TAG_member for static data member declarations and don't
1595         set no_linkage_name for static inline data members.
1596         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
1597         to DW_TAG_member.
1599 2017-02-22  Martin Liska  <mliska@suse.cz>
1601         * doc/invoke.texi: Replace inequality signs with square brackets
1602         for -Wnormalized.
1604 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1606         PR tree-optimization/68644
1607         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
1609 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
1611         PR target/78660
1612         * lra-constraints.c (simplify_operand_subreg): Handle
1613         WORD_REGISTER_OPERATIONS targets.
1615 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
1617         PR target/70465
1618         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
1619         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
1620         elimination by swapping fld*.
1622 2017-02-22  Richard Biener  <rguenther@suse.de>
1624         PR tree-optimization/79673
1625         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
1626         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
1627         irrelevant address-space qualifiers and avoiding a
1628         ADDR_SPACE_CONVERT_EXPR from fold_convert.
1630 2017-02-22  Richard Biener  <rguenther@suse.de>
1632         PR tree-optimization/79666
1633         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
1634         to not symbolically negate if that may introduce undefined
1635         overflow.
1637 2017-02-22  Martin Liska  <mliska@suse.cz>
1639         PR lto/79587
1640         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
1641         * data-streamer-out.c (streamer_write_gcov_count_stream):
1642         Likewise.
1643         * value-prof.c (stream_out_histogram_value): Make assert more
1644         precise based on type of counter.
1646 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
1648         PR target/79593
1649         * config/i386/i386.md (standard_x87sse_constant_load splitter):
1650         Use nonimmediate_operand instead of memory_operand for operand 1.
1651         (float-extend standard_x87sse_constant_load splitter): Ditto.
1653 2017-02-21 Jeff Law  <law@redhat.com>
1655         PR tree-optimization/79621
1656         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
1657         blocks with edges to themselves.
1659 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1661         PR target/79633
1662         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
1663         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
1664         Use gimple_call_builtin_p.
1666         PR target/79570
1667         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
1668         on temporarily removed DEBUG_INSNs.
1670         PR tree-optimization/79649
1671         * tree-loop-distribution.c (classify_partition): Give up on
1672         non-generic address space loads/stores.
1674 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
1676         * doc/loop.texi (Loop manipulation): Remove nonexistent
1677         tree_ssa_loop_version from the documentation.
1678         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
1680 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1682         PR target/79494
1683         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
1684         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
1685         * config/rs6000/rs6000.c: Include except.h.
1686         (rs6000_expand_split_stack_prologue): Call
1687         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
1689 2017-02-21  Martin Jambor  <mjambor@suse.cz>
1691         PR lto/79579
1692         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1693         have been analyzed.
1695 2017-02-21  Martin Jambor  <mjambor@suse.cz>
1697         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
1698         for backward compatibility only.
1699         * doc/invoke.texi (Option Summary): Remove all references to
1700         -fipa-cp-alignment.
1702 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
1704         PR target/78660
1705         Revert:
1706         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1708         * lra-constraints.c (curr_insn_transform): Handle
1709         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1711 2017-02-21  Martin Liska  <mliska@suse.cz>
1713         * config/i386/i386.opt: Replace -masm-dialect with -masm.
1715 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
1717         PR translation/79638
1718         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
1720 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
1722         PR ada/67205
1723         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1724         (arm_function_ok_for_sibcall): Return false for an indirect call by
1725         descriptor if all the argument registers are used.
1726         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
1727         alignment of the function.
1729 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1731         PR tree-optimization/61441
1732         * simplify-rtx.c (simplify_const_unary_operation): For
1733         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
1734         the sNaN unmodified.
1736 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1738         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1739         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1740         instead of SYSTEM_HEADER_DIR.
1742 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
1743             Martin LiÅ¡ka  <mliska@suse.cz>
1745         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1746         Fix typos and grammar, use active voice, and clarify.
1748 2017-02-20  Marek Polacek  <polacek@redhat.com>
1750         PR middle-end/79537
1751         * gimplify.c (gimplify_expr): Handle unused *&&L;.
1753         PR sanitizer/79558
1754         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1756 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
1758         PR target/79568
1759         * config/i386/i386.c (ix86_expand_builtin): Handle
1760         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1761         ix86_builtins_isa[fcode].isa as a requirement of those
1762         flags and any other flag in the bitmask.
1763         (ix86_init_mmx_sse_builtins): Use 0 instead of
1764         ~OPTION_MASK_ISA_64BIT as mask.
1765         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
1766         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
1767         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
1768         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
1770 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1772         PR target/78012
1773         * lra-constraints.c (split_reg): Check requested split mode
1774         is supported by the register.
1776 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1778         * lra-constraints.c (simplify_operand_subreg): Remove early
1779         return false.
1781 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1783         PR target/78660
1784         * lra-constraints.c (curr_insn_transform): Tighten condition
1785         for converting SUBREG reloads from OP_OUT to OP_INOUT.
1787 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1789         PR target/78660
1790         * lra-constraints.c (curr_insn_transform): Handle
1791         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1793 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
1795         Revert:
1796         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
1798         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1800 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
1802         PR c++/69523
1803         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
1804         description.
1806 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1808         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
1809         for FMA_EXPR.
1811 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
1813         * final.c (last_columnnum, override_columnnum): New variables.
1814         (final_start_function): Set last_columnnum, pass it to begin_prologue
1815         hook and pass 0 to dwarf2out_begin_prologue.
1816         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
1817         to source_line debug hook.
1818         (notice_source_line): Compute last_columnnum and for debug_column_info
1819         return true on column changes.
1820         * debug.h (struct gcc_debug_hooks): Add column argument to
1821         source_line and begin_prologue hooks.
1822         (debug_nothing_int_charstar_int_bool): Remove prototype.
1823         (debug_nothing_int_int_charstar,
1824         debug_nothing_int_int_charstar_int_bool): New prototypes.
1825         (dwarf2out_begin_prologue): Add column argument.
1826         * debug.c (do_nothing_debug_hooks): Adjust source_line and
1827         begin_prologue hooks.
1828         (debug_nothing_int_charstar_int_bool): Remove.
1829         (debug_nothing_int_int_charstar,
1830         debug_nothing_int_int_charstar_int_bool): New functions.
1831         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
1832         through to dwarf2out_source_line.
1833         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
1834         (dwarf2out_source_line): Add column argument, emit it if requested.
1835         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
1836         arguments.
1837         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1838         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1839         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
1840         through to dwarf2out_begin_prologue.
1841         (vmsdbgout_source_line): Add column argument, pass it through to
1842         dwarf2out_source_line.
1843         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
1844         dbxout_source_line caller.
1845         (dbxout_source_line): Add column argument.
1847         * common.opt (gno-column-info, gcolumn-info): New options.
1848         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
1849         (check_die): Also test for multiple DW_AT_decl_column attributes.
1850         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
1851         DW_AT_decl_column if requested.
1852         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
1853         if requested.
1854         (gen_variable_die): Likewise.
1855         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
1856         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
1858         PR target/79569
1859         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
1860         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
1861         (ix86_handle_option): Handle OPT_m3dnowa.
1862         * doc/invoke.texi (-m3dnowa): Document.
1863         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
1864         -m3dnowa instead of -m3dnow -march=athlon.
1866         PR target/79559
1867         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1868         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
1870 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1872         PR target/79261
1873         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1874         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1875         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1876         generator for vsx_xxpermdi_<mode>_be.
1877         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1878         force big-endian semantics.
1879         (vsx_xxpermdi_<mode>_be): New define_expand with same
1880         implementation as previous version of vsx_xxpermdi_<mode>.
1882 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
1884         PR tree-optimization/79327
1885         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
1886         variable, its initialization and use.
1888 2017-02-17  Julia Koval  <julia.koval@intel.com>
1890         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
1891         (OPTION_MASK_ISA_PKU_UNSET): New.
1892         (ix86_handle_option): Handle -mrdpid.
1893         * config/i386/cpuid.h (bit_RDPID): New.
1894         * config/i386/driver-i386.c (host_detect_local_cpu):
1895         Detect RDPID feature.
1896         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
1897         * config/i386/i386-c.c (ix86_target_macros_internal):
1898         Handle RDPID flag.
1899         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
1900         (ix86_valid_target_attribute_inner_p): Add "rdpid".
1901         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
1902         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
1903         * config/i386/i386.md (define_insn "rdpid"): New.
1904         * config/i386/i386.opt Add -mrdpid.
1905         * config/i386/immintrin.h (_rdpid_u32): New.
1907 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
1909         PR rtl-optimization/79541
1910         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
1911         instead of transforming it into USE.
1913 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
1915         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
1916         If HONOR_SNANS (SFmode) force the input to a register.
1917         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
1918         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
1919         an frsp or similar insn.
1921 2017-02-17  Martin Liska  <mliska@suse.cz>
1923         PR rtl-optimization/79577
1924         * params.def (selsched-max-sched-times): Increase minimum to 1.
1926 2017-02-17  Martin Liska  <mliska@suse.cz>
1928         PR rtl-optimization/79574
1929         * gcse.c (want_to_gcse_p): Prevent integer overflow.
1931 2017-02-17  Martin Liska  <mliska@suse.cz>
1933         PR tree-optimization/79529
1934         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
1935         ssa_defined_default_def_p to handle cases which are implicitly
1936         defined.
1937         * tree-ssa.c (ssa_defined_default_def_p): New function.
1938         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
1939         which are implicitly defined.
1940         * tree-ssa.h (ssa_defined_default_def_p): Declare.
1942 2017-02-17  Richard Biener  <rguenther@suse.de>
1944         PR middle-end/79576
1945         * params.def (max-ssa-name-query-depth): Limit to 10.
1947 2017-02-17  Richard Biener  <rguenther@suse.de>
1949         PR tree-optimization/79552
1950         * tree-ssa-structalias.c (visit_loadstore): Properly verify
1951         default defs.
1953 2017-02-17  Richard Biener  <rguenther@suse.de>
1955         PR bootstrap/79567
1956         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
1958 2017-02-17  Marek Polacek  <polacek@redhat.com>
1960         PR middle-end/79536
1961         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1962         (fold_negate_expr): New wrapper.
1964 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
1966         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
1967         Correct terminology and de-emphasize pre-standard behavior.
1969 2017-02-16  Alan Modra  <amodra@gmail.com>
1971         PR rtl-optimization/79286
1972         * ira.c (def_dominates_uses): New function.
1973         (update_equiv_regs): Don't create an equivalence for insns that
1974         may trap where the register def does not dominate the use.
1976 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
1978         PR rtl-optimization/78127
1979         * lra.c (lra): Call lra_eliminate before finish the loop after
1980         lra_constraint.
1982 2017-02-16  Richard Biener  <rguenther@suse.de>
1984         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
1985         isl/isl_val.h.
1986         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
1987         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
1988         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
1989         (isl_val_int_from_wi): New function.
1990         (extract_affine_gmp): Rename to ...
1991         (extract_affine_wi): ... this, take a widest_int.
1992         (extract_affine_int): Just wrap extract_affine_wi.
1993         (add_param_constraints): Use isl_val_int_from_wi.
1994         (add_loop_constraints): Likewise, and extract_affine_wi.
1996 2017-02-15 Jeff Law  <law@redhat.com>
1998         PR middle-end/79521
1999         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
2000         ira_init_register_move_cost_if_necessary.
2002 2017-02-15  Martin Sebor  <msebor@redhat.com>
2004         PR middle-end/32003
2005         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
2006         removed in a prior commit.
2008 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
2010         PR tree-optimization/79347
2011         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
2012         counters during peeling.
2014 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
2016         * Makefile.in (site.exp): Remove "set ISLVER".
2018 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
2020         PR target/79487
2021         * real.c (real_from_integer): Call real_convert even for decimal.
2023 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2025         PR target/79421
2026         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2028 2017-02-14  Andrew Pinski  <apinski@cavium.com>
2030         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
2031         cores and change the partno/implementer to be correct.
2032         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
2033         the 'B" as the implementer.
2034         * config/aarch64/aarch64-tune.md: Regenerate.
2036 2017-02-14  Carl Love  <cel@us.ibm.com>
2038         * config/rs6000/rs6000.c: Add case statement entry to make the
2039         xvcvuxdsp built-in argument unsigned.
2040         * config/rs6000/vsx.md: Fix the source and return operand types so they
2041         match the instruction definitions from the ISA document.  Fix typo
2042         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
2043         statement.
2045 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
2047         PR target/79282
2048         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
2049         member early_clobber_alts.
2050         * lra-lives.c (reg_early_clobber_p): New.
2051         (process_bb_lives): Use it.
2052         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
2053         (debug_operand_data): Initialize early_clobber_alts.
2054         (setup_operand_alternative): Set up early_clobber_alts.
2055         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
2056         alternatives to new_insn_reg.
2057         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
2058         it.
2059         (lra_update_insn_regno_info): Pass the new arg.
2061 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
2063         PR middle-end/79505
2064         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
2065         (new_oacc_loop_raw): Don't clear already cleared fields.
2067         PR target/79481
2068         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
2069         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
2070         _mm512_prefetch_i64gather_ps): New inline functions and macros.
2072 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
2074         PR target/79495
2075         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
2077 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
2079         PR target/79498
2080         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
2081         the extra instruction to the right place to store 128-bit constant
2082         when needed.
2084 2017-02-14  Martin Sebor  <msebor@redhat.com>
2086         PR middle-end/79448
2087         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
2088           warning for strings of unknown length.
2090 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
2092         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
2094 2017-02-14 Jeff Law  <law@redhat.com>
2096         PR target/79404
2097         * ira-costs.c (scan_one_insn): Initialize register move costs
2098         for pseudos seen in USE/CLOBBER insns.
2100         PR tree-optimization/79095
2101         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
2102         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
2103         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
2104         if the operands are known to be not equal, then the resulting range
2105         is ~[0,0].
2106         (intersect_ranges): If the new range is ~[0,0] and the old range is
2107         wide, then prefer ~[0,0].
2108         * tree-vrp.c (overflow_comparison_p_1): New function.
2109         (overflow_comparison_p): New function.
2110         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
2111         if NAME is used in an overflow test.
2112         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
2113         overflow check that can be expressed as an equality test, then adjust
2114         ops to be that equality test.
2116 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2118         * config/s390/s390-builtin-types.def: Remove flags argument.
2119         * config/s390/s390.c (s390_init_builtins): Likewise.
2121 2017-02-14  Martin Liska  <mliska@suse.cz>
2123         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
2124         vector.  Fix trailing white spaces.
2126 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
2128         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
2129         HFmode.
2131 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2133         PR rtl-optimization/68664
2134         * config/arm/arm.c (arm_sched_can_speculate_insn):
2135         New function.  Declare prototype.
2136         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2138 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2140         PR rtl-optimization/68664
2141         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
2142         New function.
2143         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2145 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
2147         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
2148         max skip bytes for function, loop and jump.
2150 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2152         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
2153         ABS_EXPR for gimple dump.
2155 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
2157         PR target/79462
2158         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
2160         PR tree-optimization/79408
2161         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
2162         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
2163         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2164         also if rhs1 is INTEGER_CST.
2166 2017-02-14  Richard Biener  <rguenther@suse.de>
2168         PR middle-end/79432
2169         * tree-into-ssa.c (insert_phi_nodes): When the function can
2170         have abnormal edges rewrite SSA names with broken use-def
2171         dominance out of SSA and register them for PHI insertion.
2173 2017-02-13  Martin Sebor  <msebor@redhat.com>
2175         PR middle-end/79496
2176         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
2177         clearing info.nowrite flag when snprintf size argument is a range.
2179 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
2181         * cprop.c (cprop_jump): Add missing space in string literal.
2182         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2183         (get_constraint_for_component_ref): Likewise.
2184         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2185         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
2186         * lra-constraints.c (process_alt_operands): Likewise.
2187         * ipa-inline.c (inline_small_functions): Likewise.
2188         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
2189         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2190         * trans-mem.c (diagnose_tm_1_op): Likewise.
2191         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
2192         (grid_parallel_clauses_gridifiable): Likewise.
2194         * config/nvptx/mkoffload.c (process): Add space in between
2195         , and %d.
2197         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
2198         "MOD4_SSE_REGS" and "ALL_REGS".
2200         * spellcheck.c (test_data): Add , in between "foo" and "food".
2202 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2204         PR target/79449
2205         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
2206         boundary crossing check and subsequent code generation agree.
2208 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2210         * config/aarch64/aarch64.c (has_memory_op): Delete.
2211         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
2212         has_memory_op.
2214 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
2216         PR rtl-optimization/79388
2217         PR rtl-optimization/79450
2218         * combine.c (distribute_notes): When removing TEM_INSN for which
2219         corresponding dest has last value recorded, invalidate that last
2220         value.
2222 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2224         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
2225         of explicit '@'.  Add missing assembly comment marker on branch costs
2226         printout.
2228 2017-02-13  Nathan Sidwell  <nathan@acm.org>
2230         * gengtype-lex.l (<in_struct>): Add '/'.
2232 2017-02-13  Martin Liska  <mliska@suse.cz>
2234         PR c/79471
2235         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
2237 2017-02-13  Richard Biener  <rguenther@suse.de>
2239         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
2240         Remove.
2241         * configure: Re-generate.
2242         * config.in: Likewise.
2243         * graphite-dependences.c: Simplify as if
2244         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
2245         * graphite-isl-ast-to-gimple.c: Likewise.
2246         * graphite-optimize-isl.c: Likewise.
2247         * graphite-poly.c: Likewise.
2248         * graphite-sese-to-poly.c: Likewise.
2249         * graphite.h: Likewise.
2250         * toplev.c: Include isl/version.h and use isl_version () for
2251         printing the ISL version.
2252         * doc/install.texi: Update ISL requirement.
2254 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2256         * doc/standards.texi (Standards): Update reference to
2257         Objective-C 2.0.
2259 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2260         
2261         * doc/extend.texi (Named Address Spaces): sourceware.org now
2262         defaults to https.
2263         * doc/install.texi (Binaries): Ditto.
2264         (Specific): Ditto.
2266 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
2268         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
2269         standard terminology "stringize"/"stringizing" throughout.
2270         * doc/cppinternals.texi: Likewise.
2272 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
2274         * doc/extend.texi: Fix some spelling mistakes and typos.
2275         * doc/invoke.texi: Likewise.
2277 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
2279         PR ipa/79224
2280         * params.def (inline-min-speedup) Change from 10 to 8.
2282 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
2284         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
2285         4.5.
2287 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
2289         PR ipa/79224
2290         * ipa-inline-analysis.c (get_minimal_bb): New function.
2291         (record_modified): Use it.
2292         (remap_edge_change_prob): Handle also ancestor functions.
2294 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
2296         * doc/contrib.texi (Contributors): Remove broken link into
2297         the Mauve CVS repository.
2299 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
2301         PR middle-end/79454
2302         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
2303         result computation whenever lhs doesn't have vector mode, not
2304         just when it has BLKmode.
2306 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2308         * doc/makefile.texi (profiledbootstrap): Refer to the
2309         installation instructions only in textual form.
2311 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2313         PR target/79295
2314         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
2316 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2318         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
2319         (Specific): Update mingw-w64 reference.
2320         (Binaries): Ditto.
2321         (Specific): Remove broken link to Renesas RX processor.
2323 2017-02-10  Richard Biener  <rguenther@suse.de>
2325         * toplev.c (process_options): Do not mention obsolete graphite
2326         options when printing sorry message about missing graphite support.
2327         Mention -floop-nest-optimize.
2329 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
2331         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
2332         (vtst_p16): Likewise.
2333         (vtstq_p8): Likewise.
2334         (vtstq_p16): Likewise.
2335         (vtst_p64): New.
2336         (vtstq_p64): Likewise.
2337         * config/arm/arm_neon.h (vgetq_lane_p64): New.
2338         (vset_lane_p64): New.
2339         (vsetq_lane_p64): New.
2341 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
2343         PR tree-optimization/79411
2344         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
2345         stmt operands are SSA_NAMEs used in abnormal phis.
2346         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
2347         phis.
2349 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2351         PR ipa/70795
2352         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
2353         flag if needed.
2355 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2357         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
2359 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
2361         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
2362         to avoid warning.
2364         PR c/79413
2365         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
2366         not arbitrary TREE_CONSTANT.
2368         PR c/79431
2369         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
2370         "omp declare target link" attribute unless is_global_var.
2371         * omp-offload.c (find_link_var_op): Likewise.
2373 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2374             Chung-Lin Tang  <cltang@codesourcery.com>
2376         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
2377         OMP_CLAUSE_TILE.
2378         (gimplify_adjust_omp_clauses): Don't delete TILE.
2379         (gimplify_omp_for): Deal with TILE.
2380         * internal-fn.c (expand_GOACC_TILE): New function.
2381         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
2382         (GOACC_TILE): New.
2383         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
2384         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
2385         element fields.
2386         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
2387         avoid DIV for outermost collapse var.
2388         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
2389         Remove out of date comments, fix whitespace.
2390         * omp-general.c (omp_extract_for_data): Deal with tiling.
2391         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
2392         adjust OLF_DIM_BASE value.
2393         (struct omp_for_data): Add tiling field.
2394         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
2395         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
2396         for auto loops.  Remove default auto determining, moved to
2397         oacc_loop_fixed_partitions.
2398         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
2399         stmts, add e_mask field.
2400         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
2401         (oacc_thread_numbers): Use oacc_dim_call.
2402         (oacc_xform_tile): New.
2403         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
2404         (finish_oacc_loop): Adjust for ifns vector.
2405         (oacc_loop_discover_walk): Append loop abstraction sites to list,
2406         add case for GOACC_TILE fns.
2407         (oacc_loop_xform_loop): Delete.
2408         (oacc_loop_process): Iterate over call list directly, and add
2409         handling for GOACC_TILE fns.
2410         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
2411         dump partitioning.
2412         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
2413         vector partitioning to outer loops.  Assign 2 partitions to loops
2414         when available. Add TILE handling.
2415         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
2416         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
2417         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
2418         * tree.c (omp_clause_num_ops): Adjust TILE ops.
2419         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
2421 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
2423         * configure.ac (ACX_BUGURL): Update.
2424         * configure: Regenerate.
2426 2017-02-09  Richard Biener  <rguenther@suse.de>
2428         PR tree-optimization/69823
2429         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2430         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
2432 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2434         * config/arc/arc-c.def: Add __NPS400__ definition.
2435         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
2436         (TARGET_NPS400): Define.
2438 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2440         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
2441         file.
2442         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
2443         pointer, arch_info.
2444         (arc_cpu_types): Fill the arch_info field with a pointer into the
2445         arc_arch_types table.
2446         (arc_selected_cpu): Declare.
2447         * config/arc/arc.c (arc_selected_cpu): Make global.
2448         (arc_selected_arch): Delete.
2449         (arc_base_cpu): Delete.
2450         (arc_override_options): Remove references to deleted variables,
2451         update access to arch information.
2452         (ARC_OPT): Update access to arch information.
2453         (ARC_OPTX): Likewise.
2454         * config/arc/arc.h (arc_base_cpu): Remove declaration.
2455         (TARGET_ARC600): Update access to arch information.
2456         (TARGET_ARC601): Likewise.
2457         (TARGET_ARC700): Likewise.
2458         (TARGET_EM): Likewise.
2459         (TARGET_HS): Likewise.
2460         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
2461         information.
2463 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
2465         PR target/78604
2466         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
2467         condition/operands for integer GE/LE/GEU/LEU operations.
2469 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
2471         PR translation/79397
2472         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
2473         of AltiVec.
2475 2017-02-08  Martin Jambor  <mjambor@suse.cz>
2477         PR ipa/79375
2478         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
2479         whether allocation happened.
2480         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
2481         nothing was allocated.
2483 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
2485         PR tree-optimization/79408
2486         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
2487         constant, but SSA_NAME with a known integer range, use the minimum
2488         of that range instead of op1 to determine if modulo can be replaced
2489         with its first operand.
2491 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2493         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
2495 2017-02-08  Richard Biener  <rguenther@suse.de>
2497         PR tree-optimization/71824
2498         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2499         Check all loops contained in the merged region.
2501 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2503         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
2505 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2507         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
2508         (thunderxt88): Likewise.
2509         (thunderxt81): Disable LSE and change v8.1 to v8.
2510         (thunderxt83): Likewise.
2512 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2513             Richard Biener  <rguenther@suse.de>
2515         PR middle-end/79399
2516         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
2517         type from int to size_t.
2518         * ira-costs.c (struct_costs_size): Change type from int to size_t.
2520 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2522         PR rtl-optimization/79386
2523         * cprop.c (bypass_conditional_jumps): Initialize
2524         bypass_last_basic_block already before splitting bbs after
2525         unconditional traps...
2526         (bypass_conditional_jumps): ... rather than here.
2528         PR target/79299
2529         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
2530         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
2531         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
2532         fix -masm=intel patterns.
2534 2017-02-07  Richard Biener  <rguenther@suse.de>
2536         PR tree-optimization/79256
2537         PR middle-end/79278
2538         * builtins.c (get_object_alignment_2): Use min_align_of_type
2539         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
2540         and ADJUST_FIELD_ALIGN.
2542         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
2543         type parameter.
2544         * doc/tm.texi: Regenerate.
2545         * stor-layout.c (layout_decl): Adjust.
2546         (update_alignment_for_field): Likewise.
2547         (place_field): Likewise.
2548         (min_align_of_type): Likewise.
2549         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
2550         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
2551         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
2552         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
2553         * config/frv/frv.c (frv_adjust_field_align): Likewise.
2554         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
2555         * config/i386/i386.c (x86_field_alignment): Likewise.
2556         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2557         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
2558         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
2559         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2560         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
2561         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2562          Likewise.
2564         Revert
2565         2017-01-30  Richard Biener  <rguenther@suse.de>
2567         PR tree-optimization/79256
2568         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2569         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2570         alignment on TYPE.
2572 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
2574         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
2575         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
2576         builtins to SImode and emit a zero-extend, if necessary.
2578 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2580         * docs/invoke.texi (RISC-V Options): Alphabetize.
2582 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2584         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
2585         options.
2587 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2589         * config/riscv/riscv.c: New file.
2590         * gcc/common/config/riscv/riscv-common.c: Likewise.
2591         * config.gcc: Likewise.
2592         * config/riscv/constraints.md: Likewise.
2593         * config/riscv/elf.h: Likewise.
2594         * config/riscv/generic.md: Likewise.
2595         * config/riscv/linux.h: Likewise.
2596         * config/riscv/multilib-generator: Likewise.
2597         * config/riscv/peephole.md: Likewise.
2598         * config/riscv/pic.md: Likewise.
2599         * config/riscv/predicates.md: Likewise.
2600         * config/riscv/riscv-builtins.c: Likewise.
2601         * config/riscv/riscv-c.c: Likewise.
2602         * config/riscv/riscv-ftypes.def: Likewise.
2603         * config/riscv/riscv-modes.def: Likewise.
2604         * config/riscv/riscv-opts.h: Likewise.
2605         * config/riscv/riscv-protos.h: Likewise.
2606         * config/riscv/riscv.h: Likewise.
2607         * config/riscv/riscv.md: Likewise.
2608         * config/riscv/riscv.opt: Likewise.
2609         * config/riscv/sync.md: Likewise.
2610         * config/riscv/t-elf-multilib: Likewise.
2611         * config/riscv/t-linux: Likewise.
2612         * config/riscv/t-linux-multilib: Likewise.
2613         * config/riscv/t-riscv: Likewise.
2614         * configure.ac: Likewise.
2615         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
2616         Waterman as RISC-V maintainers.
2617         * doc/install.texi: Add RISC-V entries.
2618         * doc/invoke.texi: Add RISC-V options section.
2619         * doc/md.texi: Add RISC-V constraints section.
2620         * configure: Regenerated.
2622 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2624         PR target/66144
2625         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
2626         false values to be constant vectors with all 0 or all 1 bits set.
2627         (vcondu<mode><mode>): Likewise.
2628         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
2629         predicate.
2630         (fpmask_comparison_operator): Update comment.
2631         (vecint_comparison_operator): New predicate.
2632         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
2633         vector conditionals when the true and false values are constant
2634         vectors with all 0 bits or all 1 bits set.
2636 2017-02-06  Martin Sebor  <msebor@redhat.com>
2638         PR  tree-optimization/79376
2639         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
2641 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
2643         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
2644         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
2645         to simplify split condition.
2647 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
2649         * omp-expand.c (oxpand_omp_atomic_fetch_op,
2650         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
2651         false.
2653 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
2655         PR rtl-optimization/68664
2656         * target.def (can_speculate_insn): New hook.
2657         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
2658         * doc/tm.texi: Regenerate.
2659         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
2660         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
2661         (rs6000_sched_can_speculate_insn): New function.
2663 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
2665         PR tree-optimization/79284
2666         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
2667         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
2668         vectorizable_mask_load_store, vectorizable_operation,
2669         vect_is_simple_cond, get_same_sized_vectype): Use it instead
2670         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
2671         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
2672         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
2673         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2674         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2675         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
2676         is_gimple_assign (stmt).  Replace another such test with
2677         is_gimple_assign (stmt).
2679 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
2681         PR target/78883
2682         * config/avr/avr.c (rtl-iter.h): Include it.
2683         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
2684         (avr_legitimate_combined_insn): ...and implementation.
2686 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2688         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
2689         * config/s390/s390.c (s390_const_operand_ok)
2690         (s390_canonicalize_comparison, s390_extract_part)
2691         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
2692         (s390_contiguous_bitmask_p, s390_rtx_costs)
2693         (legitimize_pic_address): Likewise.
2694         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
2695         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
2696         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
2697         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
2698         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
2700 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
2702         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
2703         REGNO($0) == REGNO($1).
2705 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2707         * config/s390/linux.h(SIZE_TYPE): Add comment.
2709 2017-02-06  Julian Brown  <julian@codesourcery.com>
2710             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2711             Virendra Pathak  <virendra.pathak@broadcom.com>
2713         * config/aarch64/aarch64-cores.def: Change the scheduler
2714         to Thunderx2t99.
2715         * config/aarch64/aarch64.md: Include thunderx2t99.md.
2716         * config/aarch64/thunderx2t99.md: New file.
2718 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2720         * doc/standards.texi (Go Language): Update link to language
2721         standard.
2723 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2725         * tree-eh.c (lower_resx): Sanitize profile.
2726         (cleanup_empty_eh_move_lp): Likewise.
2728 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2730         PR tree-ssa/79347
2731         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
2732         ELSE_PROB.
2733         * cfgloopmanip.h (loop_version): Update prototype.
2734         * modulo-sched.c (sms_schedule): Update call of loop_version.
2735         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
2736         * tree-parloops.c (gen_parallel_loop): Likewise.
2737         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2738         * tree-ssa-loop-split.c (split_loop): Likewise.
2739         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
2740         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2742 2017-02-05  Martin Liska  <mliska@suse.cz>
2744         PR bootstrap/78985
2745         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
2746         variable to NULL.
2747         (print_operand_address): Initialize a struct to zero.
2749 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2751         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
2752         garbage collector only in textual form.
2754 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2755         
2756         * doc/extend.texi (x86 specific memory model extensions for
2757         transactional memory): Simplify a phrase.
2759 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
2761         PR target/79353
2762         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
2763         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
2764         (atomic_storedi_1): Likewise.
2766 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
2768         PR tree-optimization/79338
2769         * tree-parloops.c (gather_scalar_reductions): Don't call
2770         vect_analyze_loop_form for loop->inner before destroying loop's
2771         loop_vinfo.
2773 2017-02-03  Martin Sebor  <msebor@redhat.com>
2775         PR tree-optimization/79327
2776         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
2777         when precision has resulted in leading zeros.
2778         (format_integer): Adjust the likely counter to assume an unknown
2779         argument that may be zero is non-zero.
2781 2017-02-03  Jason Merrill  <jason@redhat.com>
2783         PR c++/78689
2784         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
2785         avoid copying non-taken branch.
2787 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2789         PR tree-optimization/79340
2790         * tree-vect-loop.c (vectorizable_reduction): Release
2791         vec_defs elements after safe_splicing them into other vectors.
2792         Formatting fixes.
2794         PR tree-optimization/79327
2795         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
2796         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
2797         dirtype.
2798         (format_integer): Use wide_int_to_tree instead of build_int_cst
2799         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
2800         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
2801         of shortest and longest sequence.
2803 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
2805         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2806         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
2808 2017-02-03  Walter Lee  <walt@tilera.com>
2810         PR target/78862
2811         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2812         after initial stackframe link reg save.
2813         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2815 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2817         PR target/79354
2818         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
2819         wu for stxssp alternative.
2821 2017-02-03  Martin Sebor  <msebor@redhat.com>
2823         PR tree-optimization/79352
2824         * gimple-fold.c (get_range_strlen): Add argument.
2825         (get_range_strlen): Change return type to bool.
2826         (get_maxval_strlen): Pass in a dummy argument.
2827         * gimple-fold.h (get_range_strlen): Change return type to bool.
2828         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
2829         * tree.h (array_at_struct_end_p): Add argument.
2830         * tree.c (array_at_struct_end_p): Handle it.
2832 2017-02-03  Martin Liska  <mliska@suse.cz>
2834         PR lto/66295
2835         * multiple_target.c (create_dispatcher_calls): Redirect edge
2836         from a caller of a dispatcher.
2837         (expand_target_clones): Make the clones local.
2838         (ipa_target_clone): Do both target clones and resolvers.
2839         (ipa_dispatcher_calls): Remove the pass.
2840         (pass_dispatcher_calls::gate): Likewise.
2841         (make_pass_dispatcher_calls): Likewise.
2842         * passes.def (pass_target_clone): Put as very first IPA early
2843         pass.
2845 2017-02-03  Martin Liska  <mliska@suse.cz>
2847         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
2848         in case of a function with ifunc attribute.
2850 2017-02-03  Martin Liska  <mliska@suse.cz>
2852         * cgraph.c (cgraph_node::dump): Dump function version info.
2853         * symtab.c (symtab_node::dump_base): Add missing new line.
2855 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2857         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
2858         (ifcombine_ifandif): Use it.
2860 2017-02-03  Martin Liska  <mliska@suse.cz>
2862         * doc/invoke.texi: Document default value for
2863         use-after-scope-direct-emission-threshold.
2865 2017-02-03  Martin Liska  <mliska@suse.cz>
2867         PR tree-optimization/79339
2868         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
2869         (format_floating): Likewise.
2871 2017-02-03  Martin Liska  <mliska@suse.cz>
2873         PR ipa/79337
2874         * ipa-prop.c (ipa_node_params_t::insert): Remove current
2875         implementation.
2876         (ipa_node_params_t::remove): Likewise.
2877         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
2878         initialization from removed ipa_node_params_t::insert.
2879         (ipa_node_params::~ipa_node_params): Move from removed
2880         ipa_node_params_t::release.
2881         * symbol-summary.h (symbol_summary::m_released): New member.
2882         Do not release a summary twice.  Do not allow to call finalizer
2883         for types of a summary that live in GGC memory.
2885 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2887         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
2888         cmp_branch fusion.
2890 2017-02-02  Martin Sebor  <msebor@redhat.com>
2892         PR middle-end/79275
2893         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
2894         (format_string): Tighten up the range of output for non-constant
2895         strings and correct the expected range for wide non-constant strings.
2897 2017-02-02  Martin Sebor  <msebor@redhat.com>
2899         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
2901         PR middle-end/32003
2902         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
2903         index.
2904         (-fdump-tree-@var): Add to index and document how to come up
2905         with pass-specific option and dump file names.
2906         (-fdump-passes): Clarify where to look for output.
2908 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2910         PR middle-end/77445
2911         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
2912         statistics of the analyzed path; allow threading for speed when
2913         any of BBs along the path are optimized for speed.
2915 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
2917         PR middle-end/78468
2918         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
2919         settings of the virtual registers.
2921         Revert again
2922         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2924         * explow.c (get_dynamic_stack_size): Take known alignment of stack
2925         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2926         needed.
2928 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2930         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
2931         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
2933 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2935         * config/s390/s390.md: Add missing comments with the expanded
2936         mnemonics.
2937         * config/s390/vector.md: Likewise.
2938         * config/s390/vx-builtins.md: Likewise.
2940 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
2942         PR target/79197
2943         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
2944         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
2945         conditions on a single line.
2947 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2949         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2950         __S390_VX__ to __VX__.
2952 2017-02-01  Andrew Pinski  <apinski@cavium.com>
2954         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
2955         stmt_info to record_stmt_cost.
2956         (vect_get_known_peeling_cost): Pass stmt_info if known to
2957         record_stmt_cost.
2958         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
2959         cpu_vector_cost field into
2960         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
2961         field into vec_int_stmt_cost and vec_fp_stmt_cost.
2962         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
2963         splitting of scalar_stmt_cost and vec_stmt_cost.
2964         (thunderx_vector_cost): Likewise.
2965         (cortexa57_vector_cost): LIkewise.
2966         (exynosm1_vector_cost): Likewise.
2967         (xgene1_vector_cost): Likewise.
2968         (thunderx2t99_vector_cost): Improve after the splitting of the two
2969         fields.
2970         (aarch64_builtin_vectorization_cost): Update for the splitting of
2971         scalar_stmt_cost and vec_stmt_cost.
2973 2017-02-01  Torvald Riegel  <triegel@redhat.com>
2974             Richard Henderson  <rth@redhat.com>
2976         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
2977         conditional on existance of a fast atomic load.
2978         * optabs-query.c (can_atomic_load_p): New function.
2979         * optabs-query.h (can_atomic_load_p): Declare it.
2980         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
2981         no fast atomic load is available for the particular size of access.
2982         (expand_atomic_compare_and_swap): Likewise.
2983         (expand_atomic_load): Likewise.
2984         (expand_atomic_store): Likewise.
2985         (expand_atomic_fetch_op): Likewise.
2986         * testsuite/lib/target-supports.exp
2987         (check_effective_target_sync_int_128): Remove x86 because it provides
2988         no fast atomic load.
2989         (check_effective_target_sync_int_128_runtime): Likewise.
2991 2017-02-01  Richard Biener  <rguenther@suse.de>
2993         * graphite.c: Include tree-vectorizer.h for find_loop_location.
2994         (graphite_transform_loops): Provide opt-info for optimized nests.
2995         * tree-parloop.c (parallelize_loops): Provide opt-info for
2996         parallelized loops.
2998 2017-02-01  Richard Biener  <rguenther@suse.de>
3000         PR middle-end/79315
3001         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
3002         was not set before.
3004 2017-02-01  Richard Biener  <rguenther@suse.de>
3006         PR tree-optimization/71824
3007         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
3008         Verify the loops are valid in the merged SESE region.
3009         (scop_detection::can_represent_loop_1): Check analyzing the
3010         evolution of the number of iterations in the region succeeds.
3012 2017-01-31  Ian Lance Taylor  <iant@golang.org>
3014         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
3015         REG_ARGS_SIZE note to 32-bit push insns and call insn.
3017 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
3019         PR preprocessor/79210
3020         * input.c (get_substring_ranges_for_loc): Replace line_width
3021         assertion with error-handling.
3023 2017-01-31  Richard Biener  <rguenther@suse.de>
3025         PR tree-optimization/77318
3026         * graphite-sese-to-poly.c (extract_affine): Fix assert.
3027         (create_pw_aff_from_tree): Take loop parameter.
3028         (add_condition_to_pbb): Pass loop of the condition to
3029         create_pw_aff_from_tree.
3031 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
3033         * config/s390/s390.c (s390_asan_shadow_offset): New function.
3034         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
3036 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3038         PR target/78597
3039         PR target/79038
3040         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
3041         no longer used.
3042         (convert_int_to_float128): Likewise.
3043         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
3044         (convert_int_to_float128): Likewise.
3045         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
3046         (UNSPEC_IEEE128_CONVERT): Likewise.
3047         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
3048         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
3049         Use local variables for IBM extended format.
3050         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
3051         (fix_trunc<mode>si2_fprs): Likewise.
3052         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3053         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
3054         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
3055         to know that we can now have integers of all sizes in vector
3056         registers.
3057         (fix<uns>_<mode>di2_hw): Likewise.
3058         (float<uns>_<mode>si2_hw): Likewise.
3059         (fix_<mode>si2_hw): Likewise.
3060         (fixuns_<mode>si2_hw): Likewise.
3061         (float<uns>_<mode>di2_hw): Likewise.
3062         (float_<mode>di2_hw): Likewise.
3063         (float_<mode>si2_hw): Likewise.
3064         (floatuns_<mode>di2_hw): Likewise.
3065         (floatuns_<mode>si2_hw): Likewise.
3066         (xscvqp<su>wz_<mode>): Delete, no longer used.
3067         (xscvqp<su>dz_<mode>): Likewise.
3068         (xscv<su>dqp_<mode>): Likewise.
3069         (ieee128_mfvsrd_64bit): Likewise.
3070         (ieee128_mfvsrd_32bit): Likewise.
3071         (ieee128_mfvsrwz): Likewise.
3072         (ieee128_mtvsrw): Likewise.
3073         (ieee128_mtvsrd_64bit): Likewise.
3074         (ieee128_mtvsrd_32bit): Likewise.
3076 2017-01-31  Martin Liska  <mliska@suse.cz>
3078         PR ipa/79285
3079         * ipa-prop.c (ipa_free_all_node_params): Call release method
3080         instead of ~sumbol_summary to not to trigger double times
3081         dtor of hash_map.
3083 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
3085         PR tree-optimization/71691
3086         * bitmap.h (class auto_bitmap): New.
3087         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
3088         is_maybe_undefined instead of ssa_undefined_value_p.
3090 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3092         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
3093         __S390_ARCH_LEVEL__ to __ARCH__.
3095 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
3097         PR tree-optimization/79267
3098         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
3099         if should_remove_lhs_p is true.
3101 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
3103         PR debug/63238
3104         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
3105         (add_alignment_attribute): New.
3106         (base_type_die): Add alignment attribute.
3107         (subrange_type_die): Likewise.
3108         (modified_type_die): Likewise.
3109         (gen_array_type_die): Likewise.
3110         (gen_descr_array_type_die: Likewise.
3111         (gen_enumeration_type_die): Likewise.
3112         (gen_subprogram_die): Likewise.
3113         (gen_variable_die): Likewise.
3114         (gen_field_die): Likewise.
3115         (gen_ptr_to_mbr_type_die): Likewise.
3116         (gen_struct_or_union_type_die): Likewise.
3117         (gen_subroutine_type_die): Likewise.
3118         (gen_typedef_die): Likewise.
3119         (base_type_cmp): Compare alignment attribute.
3121 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3123         PR target/79170
3124         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
3125         (setb_unsigned) New pattern for setb with CCUNS.
3126         * config/rs6000/rs6000.c (expand_block_compare): Use a different
3127         subfc./subfe sequence to avoid overflow problems.  Generate a
3128         shorter sequence with cmpld/setb for power9.
3129         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
3130         for generating subfc. instruction.
3131         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
3132         now uses this instruction.
3134 2017-01-30  Ian Lance Taylor  <iant@google.com>
3136         PR debug/79289
3137         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
3138         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
3140 2017-01-30  Martin Sebor  <msebor@redhat.com>
3142         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
3143         Move constant to the right of a relational operator.
3144         (get_mpfr_format_length, format_character, format_string): Ditto.
3145         (should_warn_p, maybe_warn): Same.
3147         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
3149 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
3151         PR lto/79061
3152         * asan.c (get_translation_unit_decl): Remove function.
3153         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
3155 2017-01-30  Martin Liska  <mliska@suse.cz>
3157         PR gcov-profile/79259
3158         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
3159         -fprofile-generate.
3161 2017-01-30  Martin Liska  <mliska@suse.cz>
3163         PR bootstrap/78985
3164         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
3165         Initialize variables with NULL value.
3167 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
3169         PR target/79260
3170         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
3171         tm_p_file.
3172         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
3174 2017-01-30  Richard Biener  <rguenther@suse.de>
3176         PR tree-optimization/79276
3177         * tree-vrp.c (process_assert_insertions): Properly adjust common
3178         when removing a duplicate.
3180         * gcc.dg/torture/pr79276.c: New testcase.
3182 2017-01-30  Richard Biener  <rguenther@suse.de>
3184         PR tree-optimization/79256
3185         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
3186         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
3187         alignment on TYPE.
3188         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
3190 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3192         PR target/79240
3193         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
3194         ("*r<noxa>sbg_<mode>_sll_bitmask")
3195         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3196         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
3197         Use contiguous_bitmask_nowrap_operand.
3199 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3201         PR target/79268
3202         * config/rs6000/altivec.h (vec_xl): Revise #define.
3203         (vec_xst): Likewise.
3205 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
3207         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
3209 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
3211         PR rtl-optimization/79194
3212         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
3213         traps before call to bypass_conditional_jumps.
3215 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
3217         PR tree-optimization/71374
3218         * lra-constraints.c (check_conflict_input_operands): New.
3219         (match_reload): Use it.
3221 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
3223         PR target/79131
3224         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
3225         account to calculate conflict_set.
3227 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
3229         PR rtl-optimization/78559
3230         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
3231         other_insn in combine.
3233 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
3235         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
3236         uint16_type_node for BT_UINT16.
3238 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
3240         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
3241         "RTL Tests" to menu.
3242         (GIMPLE Tests): New node.
3243         (RTL Tests): New node.
3245 2017-01-27  Richard Biener  <rguenther@suse.de>
3247         PR tree-optimization/79245
3248         * tree-loop-distribution.c (distribute_loop): Apply cost
3249         modeling also to detected patterns.
3251 2017-01-27  Richard Biener  <rguenther@suse.de>
3253         PR tree-optimization/71433
3254         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
3255         (compare_assert_loc): New function.
3256         (process_assert_insertions): Sort and optimize assert locations
3257         to remove duplicates and push down identical assertions on
3258         edges to their destination block.
3260 2017-01-27  Richard Biener  <rguenther@suse.de>
3262         PR tree-optimization/79244
3263         * tree-vrp.c (remove_range_assertions): Forcefully propagate
3264         out SSA names even if abnormal.
3266 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
3268         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
3269         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
3270         instead of MPFR_RNDN.
3272 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
3274         PR target/79239
3275         * arm.c (arm_option_override): Don't call build_target_option_node
3276         until after doing all option overrides.
3277         (arm_valid_target_attribute_tree): Likewise.
3279 2017-01-27  Martin Liska  <mliska@suse.cz>
3281         * doc/invoke.texi (-fprofile-arcs): Document profiling support
3282         for {cd}tors and C++ {cd}tors.
3284 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3286         * config/s390/s390.md ("*setmem_long_and")
3287         ("*setmem_long_and_31z"): Use zero_extend instead of and.
3289 2017-01-26  Martin Sebor  <msebor@redhat.com>
3291         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
3292         of precision.
3294 2017-01-26  Martin Sebor  <msebor@redhat.com>
3296         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
3297         HAVE_DFmode before using XFmode or DFmode.
3298         (parse_directive): Avoid using the z length modifier to avoid
3299         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
3301         PR middle-end/78703
3302         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
3303         to accept adjustment as an array.
3304         (get_int_range): New function.
3305         (struct directive): Make width and prec arrays.
3306         (directive::set_width, directive::set_precision): Call get_int_range.
3307         (format_integer, format_floating): Handle width and precision ranges.
3308         (format_string, parse_directive): Same.
3310 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3312         PR debug/79129
3313         * dwarf2out.c (generate_skeleton_bottom_up): For children with
3314         comdat_type_p set, just clone them, but keep the children in the
3315         original DIE.
3317         PR debug/78835
3318         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
3319         which have direct callers with -fvar-tracking-assignments enabled
3320         in the current TU.
3321         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
3322         inside of type units.
3324 2017-01-26  Martin Sebor  <msebor@redhat.com>
3326         PR middle-end/78703
3327         * gimple-ssa-sprintf.c (struct result_range): Add likely and
3328         unlikely counters.
3329         (struct format_result): Replace number_chars, number_chars_min,
3330         and number_chars_max with a single member of struct result_range.
3331         Remove bounded.
3332         (format_result::operator+=): Adjust.
3333         (struct fmtresult): Remove bounded.  Handle likely and unlikely
3334         counters.
3335         (fmtresult::adjust_for_width_or_precision): New function.
3336         (fmtresult:type_max_digits): New function.
3337         (bytes_remaining): Handle likely and unlikely counters.
3338         (min_bytes_remaining): Remove.
3339         (format_percent): Simplify.
3340         (format_integer, format_floating): Set likely and unlikely counters.
3341         (get_string_length, format_character, format_string): Same.
3342         (format_plain, should_warn_p): New function.
3343         (maybe_warn): Call should_warn_p.  Update diagnostic messages
3344         and handle those for all directives, including plain strings.
3345         (format_directive): Handle likely and unlikely counters.
3346         Remove unnecessary quoting from diagnostics.  Add an informational
3347         note.
3348         (add_bytes): Remove.
3349         (pass_sprintf_length::compute_format_length): Simplify.
3350         (try_substitute_return_value): Handle likely and unlikely counters.
3352 2017-01-26  Carl Love  <cel@us.ibm.com>
3354         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
3355         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
3357 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
3359         PR target/79131
3360         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
3361         endianess for subregs into account.
3362         * lra-constraints.c (lra_constraints): Do risky transformations
3363         always on the first iteration.
3364         * lra-lives.c (check_pseudos_live_through_calls): Add arg
3365         last_call_used_reg_set.
3366         (process_bb_lives): Define and use last_call_used_reg_set.
3367         * lra.c (lra): Always continue after lra_constraints on the first
3368         iteration.
3370 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
3372         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
3373         constant.
3374         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
3376 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3378         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
3379         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
3380         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
3381         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
3382         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
3383         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
3384         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
3385         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
3386         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
3388 2017-01-26  Marek Polacek  <polacek@redhat.com>
3390         PR c/79199
3391         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
3392         for the third operand.
3394 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3396         PR middle-end/79236
3397         * omp-low.c (struct omp_context): Add simt_stmt field.
3398         (scan_omp_for): Return omp_context *.
3399         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
3400         context to the _simt_ SIMD stmt.
3401         (lower_omp_for): For combined SIMD with sibling _simt_
3402         SIMD, make sure to use the same decls in _looptemp_
3403         clauses as in the sibling.
3405 2017-01-26  David Sherwood  <david.sherwood@arm.com>
3407         PR middle-end/79212
3408         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
3409         all contexts.
3411 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3413         PR target/70465
3414         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
3415         emit fld b; fld a; if possible.
3417         * brig-builtins.def: Update copyright years.
3418         * config/arm/arm_acle_builtins.def: Update copyright years.
3420 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3422         PR target/79179
3423         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
3424         constraint instead of o for the stxsd instruction.
3426 2017-01-25  Carl Love  <cel@us.ibm.com>
3428         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
3429         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
3431 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
3433         * doc/invoke.texi (C++ Dialect Options): Fix typo.
3435 2017-01-25  Richard Biener  <rguenther@suse.de>
3437         PR tree-optimization/69264
3438         * target.def (vector_alignment_reachable): Improve documentation.
3439         * doc/tm.texi: Regenerate.
3440         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
3441         and add a comment.
3442         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
3443         earlier changes with respect to TYPE_USER_ALIGN.
3444         (vector_alignment_reachable_p): Likewise.  Improve dumping.
3446 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3448         PR target/79145
3449         * config/arm/arm.md (xordi3): Force constant operand into a register
3450         for TARGET_IWMMXT.
3452 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3454         * doc/invoke.texi (-fstore-merging): Correct default optimization
3455         levels at which it is enabled.
3456         (-O): Move -fstore-merging from list to...
3457         (-O2): ... Here.
3459 2017-01-25  Richard Biener  <rguenther@suse.de>
3461         PR debug/78363
3462         * omp-expand.c: Include debug.h.
3463         (expand_omp_taskreg): Make sure to generate early debug before
3464         outlining anything from a function.
3465         (expand_omp_target): Likewise.
3466         (grid_expand_target_grid_body): Likewise.
3468 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
3470         PR lto/79061
3471         * asan.c (get_translation_unit_decl): New function.
3472         (asan_add_global): Extract modules file name from globals
3473         TRANSLATION_UNIT_DECL name.
3475 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
3477         PR target/77439
3478         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
3479         for long calls with APCS frame and VFP.
3481 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
3483         * cfg.c (original_copy_tables_initialized_p): New function.
3484         * cfg.h (original_copy_tables_initialized_p): New decl.
3485         * cfgrtl.c (relink_block_chain): Guard the call to
3486         free_original_copy_tables with a call to
3487         original_copy_tables_initialized_p.
3488         * cgraph.h (symtab_node::native_rtl_p): New decl.
3489         * cgraphunit.c (symtab_node::native_rtl_p): New function.
3490         (symtab_node::needed_p): Don't assert for early assembly output
3491         for __RTL functions.
3492         (cgraph_node::finalize_function): Set "force_output" for __RTL
3493         functions.
3494         (cgraph_node::analyze): Bail out early for __RTL functions.
3495         (analyze_functions): Update assertion to support __RTL functions.
3496         (cgraph_node::expand): Bail out early for __RTL functions.
3497         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
3498         __RTL functions.
3499         * function.h (struct function): Update comment for field
3500         "pass_startwith".
3501         * gimple-expr.c: Include "tree-pass.h".
3502         (gimple_has_body_p): Return false for __RTL functions.
3503         * Makefile.in (OBJS): Add run-rtl-passes.o.
3504         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
3505         accessor.
3506         (gcc::pass_manager::get_clean_slate): New accessor.
3507         * passes.c: Include "insn-addr.h".
3508         (should_skip_pass_p): Add logging.  Update logic for running
3509         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
3510         property-provider override so it is only done for gimple passes.
3511         Don't skip dfinit.
3512         (skip_pass): New function.
3513         (execute_one_pass): Call skip_pass when skipping passes.
3514         * read-md.c (md_reader::read_char): Support filtering
3515         the input to a subset of line numbers.
3516         (md_reader::md_reader): Initialize fields
3517         m_first_line and m_last_line.
3518         (md_reader::read_file_fragment): New function.
3519         * read-md.h (md_reader::read_file_fragment): New decl.
3520         (md_reader::m_first_line): New field.
3521         (md_reader::m_last_line): New field.
3522         * read-rtl-function.c (function_reader::create_function): Only
3523         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
3524         curr_properties.  Set DECL_INITIAL to a dummy block.
3525         (read_rtl_function_body_from_file_range): New function.
3526         * read-rtl-function.h (read_rtl_function_body_from_file_range):
3527         New decl.
3528         * run-rtl-passes.c: New file.
3529         * run-rtl-passes.h: New file.
3531 2017-01-24 Jeff Law  <law@redhat.com>
3533         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
3534         buffer size.
3536 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
3538         PR tree-optimization/79159
3539         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
3540         (record_nonwrapping_iv): Improve boundary using above function if no
3541         value range information.
3543 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
3544             Martin Jambor  <mjambor@suse.cz>
3546         * brig-builtins.def: New file.
3547         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
3548         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
3549         (DEF_HSAIL_SAT_BUILTIN): Likewise.
3550         (DEF_HSAIL_INTR_BUILTIN): Likewise.
3551         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
3552         * builtin-types.def (BT_INT8): New.
3553         (BT_INT16): Likewise.
3554         (BT_UINT8): Likewise.
3555         (BT_UINT16): Likewise.
3556         (BT_FN_ULONG): Likewise.
3557         (BT_FN_UINT_INT): Likewise.
3558         (BT_FN_UINT_ULONG): Likewise.
3559         (BT_FN_UINT_LONG): Likewise.
3560         (BT_FN_UINT_PTR): Likewise.
3561         (BT_FN_ULONG_PTR): Likewise.
3562         (BT_FN_INT8_FLOAT): Likewise.
3563         (BT_FN_INT16_FLOAT): Likewise.
3564         (BT_FN_UINT32_FLOAT): Likewise.
3565         (BT_FN_UINT16_FLOAT): Likewise.
3566         (BT_FN_UINT8_FLOAT): Likewise.
3567         (BT_FN_UINT64_FLOAT): Likewise.
3568         (BT_FN_UINT16_UINT32): Likewise.
3569         (BT_FN_UINT32_UINT16): Likewise.
3570         (BT_FN_UINT16_UINT16_UINT16): Likewise.
3571         (BT_FN_INT_PTR_INT): Likewise.
3572         (BT_FN_UINT_PTR_UINT): Likewise.
3573         (BT_FN_LONG_PTR_LONG): Likewise.
3574         (BT_FN_ULONG_PTR_ULONG): Likewise.
3575         (BT_FN_VOID_UINT64_UINT64): Likewise.
3576         (BT_FN_UINT8_UINT8_UINT8): Likewise.
3577         (BT_FN_INT8_INT8_INT8): Likewise.
3578         (BT_FN_INT16_INT16_INT16): Likewise.
3579         (BT_FN_INT_INT_INT): Likewise.
3580         (BT_FN_UINT_FLOAT_UINT): Likewise.
3581         (BT_FN_FLOAT_UINT_UINT): Likewise.
3582         (BT_FN_ULONG_UINT_UINT): Likewise.
3583         (BT_FN_ULONG_UINT_PTR): Likewise.
3584         (BT_FN_ULONG_ULONG_ULONG): Likewise.
3585         (BT_FN_UINT_UINT_UINT): Likewise.
3586         (BT_FN_VOID_UINT_PTR): Likewise.
3587         (BT_FN_UINT_UINT_PTR: Likewise.
3588         (BT_FN_UINT32_UINT64_PTR): Likewise.
3589         (BT_FN_INT_INT_UINT_UINT): Likewise.
3590         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
3591         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
3592         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
3593         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
3594         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
3595         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
3596         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
3597         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
3598         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
3599         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
3600         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
3601         * doc/frontends.texi: List BRIG FE.
3602         * doc/install.texi (Testing): Add BRIG tesring requirements.
3603         * doc/invoke.texi (Overall Options): Mention BRIG.
3604         * doc/standards.texi (Standards): Doucment BRIG HSA version.
3606 2017-01-24  Richard Biener  <rguenther@suse.de>
3608         PR translation/79208
3609         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
3611 2017-01-24  Martin Jambor  <mjambor@suse.cz>
3613         PR bootstrap/79198
3614         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
3615         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
3616         and known_contexts.
3618 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
3620         PR middle-end/79123
3621         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
3622         casts from signed to unsigned really don't have a range.
3624 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
3626         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
3627         GMP_RNDx for compatiblity.
3629 2017-01-24  Martin Liska  <mliska@suse.cz>
3631         PR bootstrap/79132
3632         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
3633         that would prevent us to call alloca with -1 as argument.
3635 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
3637         * dwarf2out.c (output_compilation_unit_header, output_file_names):
3638         Avoid -Wformat-security warning.
3640 2017-01-23  Andrew Pinski  <apinski@cavium.com>
3642         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
3643         cost table.
3645 2017-01-23  Martin Sebor  <msebor@redhat.com>
3647         PR middle-end/78703
3648         * gimple-ssa-sprintf.c (warn_level): New global.
3649         (format_integer): Use it here and throughout the rest of the file.
3650         Use the same switch to compute sign as base.
3651         (maybe_warn): New function.
3652         (format_directive): Factor out warnings into maybe_warn.
3653         Add debugging output.  Use warn_level.
3654         (add_bytes): Use warn_level.
3655         (pass_sprintf_length::compute_format_length): Add debugging output.
3656         (try_substitute_return_value): Same.
3657         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
3659         PR middle-end/78703
3660         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
3661         (struct fmtresult, format_integer, format_floating): Adjust.
3662         (fmtresult::fmtresult): Set max correctly in two argument ctor.
3663         (get_string_length, format_string,format_directive): Same.
3664         (pass_sprintf_length::compute_format_length): Same.
3665         (try_substitute_return_value): Simplify slightly.
3667         PR middle-end/78703
3668         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
3669         (fmtresult::operator+=): Outlined.
3670         (struct fmtresult): Add ctors.
3671         (struct conversion_spec): Rename...
3672         (struct directive): ...to this.  Add and remove data members.
3673         (directive::set_width, directive::set_precision): New functions.
3674         (format_percent): Use fmtresult ctor.
3675         (get_width_and_precision): Remove.
3676         (format_integer): Make naming changes.  Avoid computing width and
3677         precision.
3678         (format_floating): Same.  Adjust indentation.
3679         (format_character, format_none): New functions.
3680         (format_string): Moved character handling to format_character.
3681         (format_directive): Remove arguments, change return type.
3682         (parse_directive): New function.
3683         (pass_sprintf_length::compute_format_length): Move directive
3684         parsing to parse_directive.
3686 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
3688         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
3689         (assign_assembler_name_if_needed): ... this.
3690         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
3691         (assign_assembler_name_if_needed): ... this.
3692         (free_lang_data_in_cgraph): Adjust callers.
3693         * cgraphunit.c (cgraph_node::analyze): Likewise.
3694         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
3695         Likewise.
3697 2017-01-23  Richard Biener  <rguenther@suse.de>
3699         PR tree-optimization/79088
3700         PR tree-optimization/79188
3701         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
3702         resetting loop bounds after last path deletion.  Reset loop
3703         bounds of the target loop, make code match the comments.
3704         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
3705         Make sure loops need no fixups.
3707 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3709         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
3710         exponent support with double type for first argument.
3711         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
3712         type returned by __builtin_vec_extract_sig,
3713         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
3714         functions from "vector int" to "vector unsigned int" or from
3715         "vector long long int" to "vector unsigned long long int".
3716         Changed type returned by __builtin_vec_extract_exp,
3717         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
3718         functions from "vector int" to "vector unsigned int" or from
3719         "vector long long int" to "vector unsigned long long int".
3720         Changed return type of __builtin_vec_test_data_class,
3721         __builtin_vec_test_data_class_sp, and
3722         __builtin_vec_test_data_class_dp from "vector int" to
3723         "vector bool int" or from "vector long long int" to "vector bool
3724         long long int" and changed second argument type from "unsigned
3725         int" to "int".  Added new overloaded function forms "vector float
3726         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
3727         "vector float __builtin_vec_insert_exp_sp (vector float, vector
3728         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
3729         double, vector unsigned long long int)" and "vector double
3730         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
3731         long int)".  Changed return type of
3732         __builtin_scalar_test_data_class and
3733         __builtin_scalar_test_data_class_sp and
3734         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
3735         int" and changed second argument from "unsigned int" to "int".
3736         Changed type returned by __builtin_scalar_test_neg,
3737         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
3738         from "int" to "bool int".  Added new overloaded function form
3739         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
3740         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
3741         exponent double-precision with floating point first argument.
3742         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
3743         documentation of scalar_test_data_class, scalar_test_neg,
3744         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
3745         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
3746         vec_test_data_class built-in functions to reflect refinements in
3747         their type signatures.
3749 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
3751         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
3752         size of buf.
3753         (aarch64_elf_asm_destructor): Likewise.
3755 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
3757         PR rtl-optimization/78634
3758         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
3759         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
3760         * ifcvt.c (noce_try_cmove): Add missing cost check.
3762         PR rtl-optimization/71724
3763         * combine.c (if_then_else_cond): Look for situations where it is
3764         beneficial to undo the work of one of the recursive calls.
3766 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
3768         PR tree-optimization/70754
3769         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3770         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
3771         combined stmt before it if not NULL.
3772         (combine_chains): Process refs reversely and compute dominance point
3773         for root ref.
3775 2017-01-23  Martin Liska  <mliska@suse.cz>
3777         PR tree-optimization/79196
3778         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
3779         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
3780         instead of memcmp.
3781         (strlen_optimize_stmt): Call the renamed function.
3783 2017-01-23  Michael Matz  <matz@suse.de>
3785         PR tree-optimization/78384
3786         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
3788 2017-01-23  Richard Biener  <rguenther@suse.de>
3790         PR tree-optimization/79186
3791         * tree-vrp.c (register_new_assert_for): Make sure we've seen
3792         both incoming edges before moving an assert.
3794 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3796         * ipa-prop.c (load_from_param_1): Removed.
3797         (load_from_unmodified_param): Bits from load_from_param_1 put back
3798         here.
3799         (load_from_param): Removed.
3800         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
3801         with stmt.  Reverted back to use of load_from_unmodified_param.
3803 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3805         PR ipa/79108
3806         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
3807         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
3808         field a pointer to garbage collected vector, mark lattices and
3809         ipcp_orig_node with GTY((skip)).
3810         (ipa_get_param_count): Adjust to descriptors being a pointer.
3811         (ipa_get_param): Likewise.
3812         (ipa_get_type): Likewise.
3813         (ipa_get_param_move_cost): Likewise.
3814         (ipa_set_param_used): Likewise.
3815         (ipa_get_controlled_uses): Likewise.
3816         (ipa_set_controlled_uses): Likewise.
3817         (ipa_is_param_used): Likewise.
3818         (ipa_node_params_t): Move into garbage collector.  New methods insert
3819         and remove.
3820         (ipa_node_params_sum): Annotate wth GTY(()).
3821         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
3822         garbage collected.
3823         (ipa_load_from_parm_agg): Adjust declaration.
3824         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
3825         * ipa-profile.c (ipa_profile): Likewise.
3826         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
3827         (ipa_populate_param_decls): Make descriptors parameter garbage
3828         collected.
3829         (ipa_dump_param): Adjust to descriptors being a pointer.
3830         (ipa_alloc_node_params): Likewise.
3831         (ipa_initialize_node_params): Likewise.
3832         (load_from_param_1): Make descriptors parameter garbage collected.
3833         (load_from_unmodified_param): Likewise.
3834         (load_from_param): Likewise.
3835         (ipa_load_from_parm_agg): Likewise.
3836         (ipa_node_params::~ipa_node_params): Removed.
3837         (ipa_free_all_node_params): Remove call to delete operator.
3838         (ipa_node_params_t::insert): New.
3839         (ipa_node_params_t::remove): Likewise.
3840         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
3841         copy known_csts and known_contexts vectors.
3842         (ipa_read_node_info): Adjust to descriptors being a pointer.
3843         (ipcp_modif_dom_walker): Make m_descriptors field garbage
3844         collected.
3845         (ipcp_transform_function): Make descriptors variable garbage
3846         collected.
3848 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
3850         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
3851         * config/i386/avx512dqintrin.h: Ditto.
3852         * config/i386/avx512fintrin.h: Ditto.
3853         * gcc/config/i386/i386.c: Handle new builtins.
3854         * config/i386/i386-builtin.def: Add new builtins.
3855         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
3856         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
3858 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
3859             Martin Liska  <mliska@suse.cz>
3861         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
3862         * asan.c (asan_expand_poison_ifn): Support stores and use
3863         appropriate ASAN report function.
3864         * internal-fn.c (expand_ASAN_POISON_USE): New function.
3865         * internal-fn.def (ASAN_POISON_USE): Declare.
3866         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
3867         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
3868         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
3869         ASAN_POISON calls w/o LHS.
3870         * tree-ssa.c (execute_update_addresses_taken): Create clobber
3871         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
3872         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
3873         * gimplify.c (asan_poison_variables): Add attribute
3874         use_after_scope_memory to variables that really needs to live
3875         in memory.
3876         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
3877         having the attribute.
3879 2017-01-23  Martin Liska  <mliska@suse.cz>
3881         * asan.c (create_asan_shadow_var): New function.
3882         (asan_expand_poison_ifn): Likewise.
3883         * asan.h (asan_expand_poison_ifn): New declaration.
3884         * internal-fn.c (expand_ASAN_POISON): Likewise.
3885         * internal-fn.def (ASAN_POISON): New builtin.
3886         * sanopt.c (pass_sanopt::execute): Expand
3887         asan_expand_poison_ifn.
3888         * tree-inline.c (copy_decl_for_dup_finish): Make function
3889         external.
3890         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
3891         * tree-ssa.c (is_asan_mark_p): New function.
3892         (execute_update_addresses_taken): Rewrite local variables
3893         (identified just by use-after-scope as addressable) into SSA.
3895 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3897         * doc/install.texi (Specific): opensource.apple.com uses https
3898         now. Remove trailing slash.
3900 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3902         * README.Portability: Remove note on an Irix compatibility issue.
3904 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
3906         * gcov.c (INCLUDE_ALGORITHM): Define.
3907         (INCLUDE_VECTOR): Define.
3908         No longer include <vector> and <algorithm> directly.
3910 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
3912         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
3913         to https.
3914         * doc/invoke.texi (Code Gen Options): Ditto.
3916 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
3918         PR lto/78407
3919         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
3921 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3923         rtl-optimization/79125
3924         * cprop.c (local_cprop_pass): Handle cases where we make an
3925         unconditional trap.
3927 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
3929         PR target/61729
3930         PR target/77850
3931         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
3932         read from, for big endian.
3934 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
3936         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
3937         register pauth builtins for LP64 only.
3939 2017-01-20  Marek Polacek  <polacek@redhat.com>
3941         PR c/79152
3942         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
3943         non-case labels.
3945 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3947         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
3948         of safelen status.
3949         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
3950         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
3951         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
3953 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3955         PR target/71270
3956         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
3957         in big-endian mode when they are not a single duplicated value.
3959 2017-01-20  Richard Biener  <rguenther@suse.de>
3961         * BASE-VER: Bump to 7.0.1.
3963 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3965         * omp-low.c (omplow_simd_context): New struct.  Use it...
3966         (lower_rec_simd_input_clauses): ...here and...
3967         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
3968         references to idx, lane, max_vf, is_simt.
3970 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
3972         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
3973         mcpu=nps400.
3975 2017-01-20  Martin Jambor  <mjambor@suse.cz>
3977         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
3978         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
3979         gt-hsa-common.h.
3980         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
3981         (GTFILES): Rename hsa.c to hsa-common.c.
3982         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
3983         * hsa-dump.c: Likewise.
3984         * hsa-gen.c: Likewise.
3985         * hsa-regalloc.c: Likewise.
3986         * ipa-hsa.c: Likewise.
3987         * omp-expand.c: Likewise.
3988         * omp-low.c: Likewise.
3989         * toplev.c: Likewise.
3991 2017-01-20  Marek Polacek  <polacek@redhat.com>
3993         PR c/64279
3994         * doc/invoke.texi: Document -Wduplicated-branches.
3995         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
3996         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
3997         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
3998         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
3999         return 0 only when not OEP_LEXICOGRAPHIC.
4000         (fold_build_cleanup_point_expr): Use the expression
4001         location when building CLEANUP_POINT_EXPR.
4002         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
4003         * tree.c (add_expr): Handle error_mark_node.
4005 2017-01-20  Martin Liska  <mliska@suse.cz>
4007         PR lto/69188
4008         * tree-profile.c (init_ic_make_global_vars): Do not call
4009         finalize_decl.
4010         (gimple_init_gcov_profiler): Likewise.
4012 2017-01-20  Martin Liska  <mliska@suse.cz>
4014         PR ipa/71190
4015         * cgraph.h (maybe_create_reference): Remove argument and
4016         update comment.
4017         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
4018         argument.
4019         * ipa-cp.c (create_specialized_node): Likewise.
4020         * symtab.c (symtab_node::maybe_create_reference): Handle
4021         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
4023 2017-01-20  Martin Liska  <mliska@suse.cz>
4025         * read-rtl-function.c (function_reader::create_function): Use
4026         build_decl instread of build_decl_stat.
4028 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
4030         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
4031         * config/i386/avx512dqintrin.h: Ditto.
4032         * config/i386/avx512fintrin.h: Ditto.
4033         * config/i386/i386-builtin-types.def: Add new types.
4034         * gcc/config/i386/i386.c: Handle new types.
4035         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
4036         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
4037         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
4038         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
4039         (__builtin_ia32_kshiftridi): New.
4040         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
4042 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
4044         PR target/78875
4045         PR target/79140
4046         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
4047         define to rs6000_init_stack_protect_guard.
4048         (rs6000_init_stack_protect_guard): New function.
4050 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
4051             Yunqiang Su  <yunqiang.su@imgtec.com>
4053         * config.gcc (supported_defaults): Add madd4.
4054         (with_madd4): Add validation.
4055         (all_defaults): Add madd4.
4056         * config/mips/mips.opt (mmadd4): New option.
4057         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4058         mmadd4.
4059         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4060         __mips_no_madd4.
4061         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
4062         (ISA_HAS_FUSED_MADD4): Likewise.
4063         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
4064         * gcc/doc/install.texi (--with-madd4): Document the new option.
4066 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4068         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
4069         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
4070         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
4071         (aarch64_init_pauth_hint_builtins): New.
4072         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
4073         (aarch64_expand_builtin): Expand new builtins.
4075 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4077         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
4078         * combine-stack-adj.c (no_unhandled_cfa): Handle
4079         REG_CFA_TOGGLE_RA_MANGLE.
4080         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
4081         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
4082         info for return address signing.
4083         (aarch64_expand_epilogue): Likewise.
4085 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4087         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
4088         * config/aarch64/aarch64-protos.h
4089         (aarch64_return_address_signing_enabled): New declaration.
4090         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
4091         New function.
4092         (aarch64_expand_prologue): Sign return address before it's pushed onto
4093         stack.
4094         (aarch64_expand_epilogue): Authenticate return address fetched from
4095         stack.
4096         (aarch64_override_options): Sanity check for ILP32 and ISA level.
4097         (aarch64_attributes): New function attributes for "sign-return-address".
4098         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
4099         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
4100         ("*do_return"): Generate combined instructions according to key index.
4101         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
4102         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
4103         iterators.
4104         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
4105         * config/aarch64/aarch64.opt (msign-return-address=): New.
4106         * doc/extend.texi (AArch64 Function Attributes): Documents
4107         "sign-return-address=".
4108         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
4110 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
4112         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
4113         overall option summary.
4115 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
4117         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
4118         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
4119         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
4120         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
4122 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4124         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
4125         -mpower9-minmax by default for -mcpu=power9.
4126         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
4127         128-bit floating point.
4129 2017-01-20  Alan Modra  <amodra@gmail.com>
4131         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
4132         optimizing for size.
4134 2017-01-20  Alan Modra  <amodra@gmail.com>
4136         PR target/79144
4137         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
4138         for strcmp and strncmp from corresponding builtin decl.
4140 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
4142         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
4143         instead of i386/rtems-64.h.
4144         * config/i386/rtems-64.h: Remove.
4146 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
4148         PR target/78478
4149         Revert:
4150         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
4152         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
4154 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
4156         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
4157         Change int to HOST_WIDE_INT.
4158         * config/aarch64/aarch64-protos.h
4159         (aarch64_simd_gen_const_vector_dup): Likewise.
4160         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
4162 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
4164         * langhooks-def.h (lhd_type_for_size): New decl.
4165         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
4166         * langhooks.c (lhd_type_for_size): New function, taken from
4167         lto_type_for_size.
4169 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
4171         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
4172         define_bypass for CR latency.
4173         (power9-cracked-alu): Update bypass latency and remove power9-branch.
4174         (power9-alu2): Add define_bypass for CR latency.
4175         (power9-cmp): New.
4176         (power9-mul): Update insn latency.
4177         (power9-mul-compare): Update insn latency, bypass latency and remove
4178         power9-branch.
4180 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4182         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4183         Delete.
4184         * config/aarch64/aarch64.md
4185         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
4186         aarch64_nopcrelative_literal_loads.
4187         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4189 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
4191         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
4192         TARGET_LOONGSON_3A.
4193         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
4195 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
4197         PR target/78176
4198         * config.gcc (supported_defaults): Add lxc1-sxc1.
4199         (with_lxc1_sxc1): Add validation.
4200         (all_defaults): Add lxc1-sxc1.
4201         * config/mips/mips.opt (mlxc1-sxc1): New option.
4202         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4203         mlxc1-sxc1.
4204         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4205         __mips_no_lxc1_sxc1.
4206         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
4207         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
4208         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
4210 2017-01-19  Richard Biener  <rguenther@suse.de>
4212         PR tree-optimization/72488
4213         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
4214         sure to restore SSA info.
4215         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
4217 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
4219         PR rtl-optimization/79121
4220         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
4221         of the inner type when shifting an extended value.
4223 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
4225         PR lto/78407
4226         * symtab.c (symtab_node::equal_address_to): Fix comparing of
4227         interposable aliases.
4229 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
4231         PR target/78516
4232         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
4233         Use the evmergelohi instruction.
4234         (mov_si<mode>_e500_subreg4_2_le): Likewise.
4235         (mov_sitf_e500_subreg8_2_be): Likewise.
4236         (mov_sitf_e500_subreg12_2_le): Likewise.
4237         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
4238         (mov_si<mode>_e500_subreg4_2_be): Likewise.
4239         (mov_sitf_e500_subreg8_2_le): Likewise.
4240         (mov_sitf_e500_subreg12_2_be): Likewise.
4242 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4244         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
4245         attribute from vecsimple to vecperm.
4246         (altivec_vbpermq2): Likewise.
4248 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4250         PR target/79040
4251         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
4253 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4254         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
4255         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
4256         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
4257         case where N arg is SIZE_MAX.
4258         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
4259         (cmpstrsi): Add pattern.
4261 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4263         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4264         __builtin_vec_revb builtins.
4265         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
4266         built-in functions to support generation of the ISA 3.0 XXBR<x>
4267         vector byte reverse instructions.
4268         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
4269         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
4270         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
4271         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
4272         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
4273         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
4274         (P9V_BUILTIN_VEC_REVB): Likewise.
4275         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
4276         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
4277         (p9_xxbrq_v16qi): Likewise.
4278         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
4279         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
4280         (p9_xxbrh_v8hi): Likewise.
4281         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
4282         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
4283         vec_revb built-in functions.
4285 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
4287         PR rtl-optimization/78952
4288         * config/i386/i386.md (any_extract): New code iterator.
4289         (*insvqi_2): Use any_extract for source operand.
4290         (*insvqi_3): Use any_shiftrt for source operand.
4292 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
4294         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
4295         New function.
4296         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
4298 2017-01-18  Matthias Klose  <doko@ubuntu.com>
4300         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
4302 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4304         * config/rs6000/altivec.h (vec_bperm): Change #define.
4305         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
4306         (altivec_vbpermq2): New define_insn.
4307         (altivec_vbpermd): Likewise.
4308         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
4309         function interface.
4310         (VBPERMD): Likewise.
4311         (VBPERM): New polymorphic function interface.
4312         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
4313         Add entries for P9V_BUILTIN_VEC_VBPERM.
4314         * doc/extend.texi: Add interfaces for vec_bperm.
4316 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4318         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
4319         first letter of error messages.
4320         (s390_resolve_overloaded_builtin): Likewise.
4321         * config/s390/s390.c (s390_expand_builtin): Likewise.
4322         (s390_invalid_arg_for_unprototyped_fn): Likewise.
4323         (s390_valid_target_attribute_inner_p): Likewise.
4324         * config/s390/s390.md ("tabort"): Likewise.
4326 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
4328         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
4329         (ISA_AVOID_DIV_HILO): New macro.
4330         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
4331         (ISA_HAS_DDIV): Likewise.
4333 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4335         * doc/invoke.texi (fabi-version): Correct number of occurrences.
4337 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4339         * doc/invoke.texi (fabi-version): Spelling fix.
4341 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4343         PR c++/70182
4344         * doc/invoke.texi (fabi-version): Mention mangling fix for
4345         operator names.
4347 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4349         PR c++/77489
4350         * doc/invoke.texi (fabi-version): Document discriminator mangling.
4352 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4354         PR target/78875
4355         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
4356         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
4357         the new options.
4358         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
4359         flexible settings.
4360         (stack_protect_test): Ditto.
4361         * config/rs6000/rs6000.opt (mstack-protector-guard=,
4362         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
4363         options.
4364         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
4365         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
4366         -mstack-protector-guard-offset=.
4367         (RS/6000 and PowerPC Options): Ditto.
4369 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4371         * config/i386/i386.h (MASK_CLASS_P): New define.
4372         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
4373         there are no registers from different register sets also when
4374         mask registers are used.  Update function comment.
4375         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
4376         to (*k/*r) and (*k/*km) alternatives.
4378 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
4380         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
4381         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
4382         (EH_RETURN_HANDLER_RTX): New define.
4383         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
4384         Force frame pointer in EH return functions.
4385         (aarch64_expand_epilogue): Add barrier for eh_return.
4386         (aarch64_final_eh_return_addr): Remove.
4387         (aarch64_eh_return_handler_rtx): New function.
4388         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
4389         Remove.
4390         (aarch64_eh_return_handler_rtx): New prototype.
4392 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4394         * config/rs6000/altivec.h (vec_rlmi): New #define.
4395         (vec_vrlnm): Likewise.
4396         (vec_rlnm): Likewise.
4397         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
4398         (UNSPEC_VRLNM): Likewise.
4399         (VIlong): New mode iterator.
4400         (altivec_vrl<VI_char>mi): New define_insn.
4401         (altivec_vrl<VI_char>nm): Likewise.
4402         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
4403         function entry.
4404         (VRLDNM): Likewise.
4405         (RLNM): New polymorphic function entry.
4406         (VRLWMI): New monomorphic function entry.
4407         (VRLDMI): Likewise.
4408         (RLMI): New polymorphic function entry.
4409         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
4410         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
4411         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
4412         vec_vrlnm.
4414 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4416         PR debug/78839
4417         * dwarf2out.c (field_byte_offset): Restore the
4418         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
4419         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
4420         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
4421         of build2 + fold.
4423 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4425         PR ada/67205
4426         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
4428 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4430         PR debug/71669
4431         * dwarf2out.c (add_data_member_location_attribute): For constant
4432         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
4433         instead of DW_AT_data_member_location, DW_AT_bit_offset and
4434         DW_AT_byte_size attributes.
4436 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4438         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
4439         after forcing to constant memory when the code model is medium.
4441 2017-01-17  Julia Koval  <julia.koval@intel.com>
4443         PR target/76731
4444         * config/i386/avx512fintrin.h
4445         (_mm512_i32gather_ps): Change __addr type to void const*.
4446         (_mm512_mask_i32gather_ps): Ditto.
4447         (_mm512_i32gather_pd): Ditto.
4448         (_mm512_mask_i32gather_pd): Ditto.
4449         (_mm512_i64gather_ps): Ditto.
4450         (_mm512_mask_i64gather_ps): Ditto.
4451         (_mm512_i64gather_pd): Ditto.
4452         (_mm512_mask_i64gather_pd): Ditto.
4453         (_mm512_i32gather_epi32): Ditto.
4454         (_mm512_mask_i32gather_epi32): Ditto.
4455         (_mm512_i32gather_epi64): Ditto.
4456         (_mm512_mask_i32gather_epi64): Ditto.
4457         (_mm512_i64gather_epi32): Ditto.
4458         (_mm512_mask_i64gather_epi32): Ditto.
4459         (_mm512_i64gather_epi64): Ditto.
4460         (_mm512_mask_i64gather_epi64): Ditto.
4461         (_mm512_i32scatter_ps): Change __addr type to void*.
4462         (_mm512_mask_i32scatter_ps): Ditto.
4463         (_mm512_i32scatter_pd): Ditto.
4464         (_mm512_mask_i32scatter_pd): Ditto.
4465         (_mm512_i64scatter_ps): Ditto.
4466         (_mm512_mask_i64scatter_ps): Ditto.
4467         (_mm512_i64scatter_pd): Ditto.
4468         (_mm512_mask_i64scatter_pd): Ditto.
4469         (_mm512_i32scatter_epi32): Ditto.
4470         (_mm512_mask_i32scatter_epi32): Ditto.
4471         (_mm512_i32scatter_epi64): Ditto.
4472         (_mm512_mask_i32scatter_epi64): Ditto.
4473         (_mm512_i64scatter_epi32): Ditto.
4474         (_mm512_mask_i64scatter_epi32): Ditto.
4475         (_mm512_i64scatter_epi64): Ditto.
4476         (_mm512_mask_i64scatter_epi64): Ditto.
4477         * config/i386/avx512pfintrin.h
4478         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
4479         (_mm512_mask_prefetch_i32gather_ps): Ditto.
4480         (_mm512_mask_prefetch_i64gather_pd): Ditto.
4481         (_mm512_mask_prefetch_i64gather_ps): Ditto.
4482         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
4483         (_mm512_prefetch_i32scatter_ps): Ditto.
4484         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
4485         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
4486         (_mm512_prefetch_i64scatter_pd): Ditto.
4487         (_mm512_prefetch_i64scatter_ps): Ditto.
4488         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
4489         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
4490         * config/i386/avx512vlintrin.h
4491         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
4492         (_mm_mmask_i32gather_ps): Ditto.
4493         (_mm256_mmask_i32gather_pd): Ditto.
4494         (_mm_mmask_i32gather_pd): Ditto.
4495         (_mm256_mmask_i64gather_ps): Ditto.
4496         (_mm_mmask_i64gather_ps): Ditto.
4497         (_mm256_mmask_i64gather_pd): Ditto.
4498         (_mm_mmask_i64gather_pd): Ditto.
4499         (_mm256_mmask_i32gather_epi32): Ditto.
4500         (_mm_mmask_i32gather_epi32): Ditto.
4501         (_mm256_mmask_i32gather_epi64): Ditto.
4502         (_mm_mmask_i32gather_epi64): Ditto.
4503         (_mm256_mmask_i64gather_epi32): Ditto.
4504         (_mm_mmask_i64gather_epi32): Ditto.
4505         (_mm256_mmask_i64gather_epi64): Ditto.
4506         (_mm_mmask_i64gather_epi64): Ditto.
4507         (_mm256_i32scatter_ps): Change __addr type to void*.
4508         (_mm256_mask_i32scatter_ps): Ditto.
4509         (_mm_i32scatter_ps): Ditto.
4510         (_mm_mask_i32scatter_ps): Ditto.
4511         (_mm256_i32scatter_pd): Ditto.
4512         (_mm256_mask_i32scatter_pd): Ditto.
4513         (_mm_i32scatter_pd): Ditto.
4514         (_mm_mask_i32scatter_pd): Ditto.
4515         (_mm256_i64scatter_ps): Ditto.
4516         (_mm256_mask_i64scatter_ps): Ditto.
4517         (_mm_i64scatter_ps): Ditto.
4518         (_mm_mask_i64scatter_ps): Ditto.
4519         (_mm256_i64scatter_pd): Ditto.
4520         (_mm256_mask_i64scatter_pd): Ditto.
4521         (_mm_i64scatter_pd): Ditto.
4522         (_mm_mask_i64scatter_pd): Ditto.
4523         (_mm256_i32scatter_epi32): Ditto.
4524         (_mm256_mask_i32scatter_epi32): Ditto.
4525         (_mm_i32scatter_epi32): Ditto.
4526         (_mm_mask_i32scatter_epi32): Ditto.
4527         (_mm256_i32scatter_epi64): Ditto.
4528         (_mm256_mask_i32scatter_epi64): Ditto.
4529         (_mm_i32scatter_epi64): Ditto.
4530         (_mm_mask_i32scatter_epi64): Ditto.
4531         (_mm256_i64scatter_epi32): Ditto.
4532         (_mm256_mask_i64scatter_epi32): Ditto.
4533         (_mm_i64scatter_epi32): Ditto.
4534         (_mm_mask_i64scatter_epi32): Ditto.
4535         (_mm256_i64scatter_epi64): Ditto.
4536         (_mm256_mask_i64scatter_epi64): Ditto.
4537         (_mm_i64scatter_epi64): Ditto.
4538         (_mm_mask_i64scatter_epi64): Ditto.
4539         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
4540         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
4541         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
4542         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
4543         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
4544         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
4545         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
4546         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
4547         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
4548         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
4549         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
4550         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
4551         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
4552         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
4553         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
4554         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
4555         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
4556         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
4557         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
4558         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
4559         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
4560         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
4561         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
4562         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
4563         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
4564         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
4565         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
4566         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
4567         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
4568         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
4569         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
4570         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
4571         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
4572         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
4573         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
4574         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
4575         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
4576         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
4577         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
4578         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
4579         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
4580         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
4581         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
4582         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
4583         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
4584         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
4585         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
4586         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
4587         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
4588         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
4589         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
4590         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
4591         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
4592         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
4593         definitions accordingly.
4595 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
4596             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
4598         PR target/79079
4599         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
4600         gen_lowpart.
4602 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
4604         PR target/79058
4605         * ira-conflicts.c (ira_build_conflicts): Update total conflict
4606         hard regs for inner regno.
4608 2017-01-17  Martin Liska  <mliska@suse.cz>
4610         PR ipa/71207
4611         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
4612         assumption and add comment.
4614 2017-01-17  Nathan Sidwell  <nathan@acm.org>
4616         * ipa-visibility.c (localize_node): New function, broken out of ...
4617         (function_and_variable_visibility): ... here. Call it.
4619 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
4621         PR middle-end/77445
4622         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4623         correctly set frequency of oudgoing edge.
4624         (duplicate_thread_path): Fix profile updating.
4626 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4628         PR other/79046
4629         * configure.ac: Add GCC_BASE_VER.
4630         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
4631         version from BASE-VER file.
4632         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
4633         (gcc.o): Depend on $(BASEVER).
4634         * common.opt (dumpfullversion): New option.
4635         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
4636         * doc/invoke.texi: Document -dumpfullversion.
4637         * doc/install.texi: Document --with-gcc-major-version-only.
4638         * configure: Regenerated.
4640 2017-01-17  Richard Biener  <rguenther@suse.de>
4642         PR tree-optimization/71433
4643         * tree-vrp.c (register_new_assert_for): Merge same asserts
4644         on all incoming edges.
4645         (process_assert_insertions_for): Handle insertions at the
4646         beginning of BBs.
4648 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
4650         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
4651         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
4653 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4655         PR target/78633
4656         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
4657         RTL sharing.
4659 2017-01-17  Alan Modra  <amodra@gmail.com>
4661         PR target/79066
4662         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
4663         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
4664         symbolic stack limit when pic.
4666 2017-01-16  Martin Sebor  <msebor@redhat.com>
4668         PR tree-optimization/78608
4669         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
4671 2017-01-16  Jeff Law  <law@redhat.com>
4673         Revert:
4674         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
4675         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
4676         for several include directories that may be relative to sysroot.
4677         * config/i386/x-mingw32 (gplus_includedir): Define.
4678         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
4679         (native_system_includedir): Likewise.
4680         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
4681         override if TARGET_SYSTEM_ROOT is defined.
4682         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
4684         PR tree-optimization/79090
4685         PR tree-optimization/33562
4686         PR tree-optimization/61912
4687         PR tree-optimization/77485
4688         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
4689         and computed trims into the dump file.
4691 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4693         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
4695 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
4697         PR c/79089
4698         * gimplify.c (gimplify_init_constructor): If want_value and
4699         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
4700         fix.
4702         PR target/79080
4703         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
4704         sequence.  Formatting fixes.
4705         (doloop_optimize): Formatting fixes.
4707         PR driver/49726
4708         * gcc.c (debug_level_greater_than_spec_func): New function.
4709         (static_spec_functions): Add debug-level-gt spec function.
4710         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
4711         !g0.
4712         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4713         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4714         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
4715         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
4716         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
4717         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
4719 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
4721         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
4722         QImode fixups to general and mask registers only.
4724 2017-01-16  Carl Love  <cel@us.ibm.com>
4726         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
4727         for built-in functions
4728         vector signed char vec_nabs (vector signed char)
4729         vector signed short vec_nabs (vector signed short)
4730         vector signed int vec_nabs (vector signed int)
4731         vector signed long long vec_nabs (vector signed long long)
4732         vector float vec_nabs (vector float)
4733         vector double vec_nabs (vector double)
4734         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
4735         and NABS overload.
4736         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
4737         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
4738         * doc/extend.texi: Update the documentation file for the new built-in
4739         functions.
4741 2017-01-16  Martin Sebor  <msebor@redhat.com>
4743         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
4744         message.
4746 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4748         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
4749         UNSPEC_VSX__XXSPLTD to require special splat handling.
4751 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
4753         PR bootstrap/78616
4754         * system.h: Poison strndup.
4756 2017-01-16  Alan Modra  <amodra@gmail.com>
4758         PR target/79098
4759         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
4760         use a switch.
4762 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
4764         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
4766 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
4768         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
4769         call recog here.  Assert that INSN_CODE (insn) is non-negative.
4771 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4773         PR target/72749
4774         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
4775         fallthrough.
4776         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
4777         in the currently scheduled RTL fragment.
4779 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4781         PR rtl-optimization/78751
4782         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
4783         give up.
4785 2017-01-14  Jeff Law  <law@redhat.com>
4787         PR tree-optimization/79090
4788         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
4789         variable length stores.
4790         (compute_trims): Delete dead assignment to *trim_tail.
4791         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
4792         zero length.
4794 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
4796         PR rtl-optimization/78626
4797         PR rtl-optimization/78727
4798         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
4799         of a block, and split such blocks after everything else is finished.
4801 2017-01-14  Alan Modra  <amodra@gmail.com>
4803         PR target/72749
4804         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
4805         target legitimate_combined_insn.
4806         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
4807         (rs6000_legitimate_combined_insn): New function.
4808         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
4809         all uses.
4810         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
4811         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
4812         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
4814 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
4816         * doc/frontends.texi (G++ and GCC): Remove references to Java.
4818 2017-01-13  Jeff Law  <law@redhat.com>
4820         PR tree-optimization/33562
4821         PR tree-optimization/61912
4822         PR tree-optimization/77485
4823         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
4824         a statement.
4825         (delete_dead_assignment): Likewise.
4826         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
4827         statement to delete_dead_call and delete_dead_assignment.
4829 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
4831         PR c/78304
4832         * substring-locations.c (format_warning_va): Strengthen case 1 so
4833         that both endpoints of the substring must be within the format
4834         range for just the substring to be printed.
4836 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
4838         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
4839         * config/i386/i386.c (ix86_target_string): Add missing options
4840         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
4841         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
4842         flags_other and ix86_target_other to flags2_other.  Display unknown
4843         isa2 options.
4844         (ix86_valid_target_attribute_inner_p): Add missing options and
4845         reorder options by implied ISAs, as in ix86_target_string.
4847 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4849         * hash-table.h (hash_table::too_empty_p): New function.
4850         (hash_table::expand): Use it.
4851         (hash_table::traverse): Likewise.
4852         (hash_table::empty_slot): Use sizeof (value_type) instead of
4853         sizeof (PTR) to convert bytes to elements.  Shrink the table
4854         if the current size is excessive for the current number of
4855         elements.
4857 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4859         * ira-costs.c (record_reg_classes): Break from the inner loop
4860         early once alt_fail is known to be true.  Update outer loop
4861         handling accordingly.
4863 2017-01-13  Jeff Law  <law@redhat.com>
4865         * tree-ssa-dse.c (decrement_count): New function.
4866         (increment_start_addr, maybe_trim_memstar_call): Likewise.
4867         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
4868         when we know the partially dead statement is a mem* function.
4870         PR tree-optimization/61912
4871         PR tree-optimization/77485
4872         * tree-ssa-dse.c: Include expr.h.
4873         (maybe_trim_constructor_store): New function.
4874         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
4876         PR tree-optimization/33562
4877         PR tree-optimization/61912
4878         PR tree-optimization/77485
4879         * doc/invoke.texi: Document new dse-max-object-size param.
4880         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
4881         * tree-ssa-dse.c: Include params.h.
4882         (dse_store_status): New enum.
4883         (initialize_ao_ref_for_dse): New, partially extracted from
4884         dse_optimize_stmt.
4885         (valid_ao_ref_for_dse, normalize_ref): New.
4886         (setup_live_bytes_from_ref, compute_trims): Likewise.
4887         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
4888         (maybe_trim_partially_dead_store): Likewise.
4889         (maybe_trim_complex_store): Likewise.
4890         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
4891         Track what bytes live from the original store.  Return tri-state
4892         for dead, partially dead or live.
4893         (dse_dom_walker): Add constructor, destructor and new private members.
4894         (delete_dead_call, delete_dead_assignment): New extracted from
4895         dse_optimize_stmt.
4896         (dse_optimize_stmt): Make a member of dse_dom_walker.
4897         Use initialize_ao_ref_for_dse.
4899         PR tree-optimization/33562
4900         PR tree-optimization/61912
4901         PR tree-optimization/77485
4902         * sbitmap.h (bitmap_count_bits): Prototype.
4903         (bitmap_clear_range, bitmap_set_range): Likewise.
4904         * sbitmap.c (bitmap_clear_range): New function.
4905         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
4907 2017-01-13  Martin Liska  <mliska@suse.cz>
4909         PR ipa/79043
4910         * function.c (set_cfun): Add new argument force.
4911         * function.h (set_cfun): Likewise.
4912         * ipa-inline-transform.c (inline_call): Use the function when
4913         strict alising from is dropped for function we inline to.
4915 2017-01-13  Richard Biener  <rguenther@suse.de>
4917         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
4918         for dumping GIMPLE INTEGER_CSTs.
4920 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4922         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
4923         to 201112L since C++17.
4925 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
4927         PR sanitizer/78887
4928         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
4929         if -fsanitize=kernel-address is present.
4931 2017-01-13  Richard Biener  <rguenther@suse.de>
4933         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
4934         as _Literal ( type ) number in case usual suffixes do not
4935         preserve all information.
4937 2017-01-13  Richard Biener  <rguenther@suse.de>
4939         PR tree-optimization/77283
4940         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
4941         and ssa-iterators.h.
4942         (is_feasible_trace): Implement a cost model based on joiner
4943         PHI node uses.
4945 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4947         PR target/79004
4948         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
4949         char or short to __float128/_Float128 directly.
4951 2017-01-12  Martin Sebor  <msebor@redhat.com>
4953         to -Wformat-overflow.
4954         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
4955         (min_bytes_remaining): Same.
4956         (get_string_length): Same.
4957         (format_string): Same.
4958         (format_directive): Same.
4959         (add_bytes): Same.
4960         (pass_sprintf_length::handle_gimple_call): Same.
4962 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
4964         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
4965         info.nowrite calls with no lhs that can't throw.  Return bool
4966         whether gsi_remove has been called or not.
4967         (pass_sprintf_length::handle_gimple_call): Return bool whether
4968         try_substitute_return_value called gsi_remove.  Formatting fix.
4969         (pass_sprintf_length::execute): Don't use gsi_remove if
4970         handle_gimple_call returned true.
4972         PR bootstrap/79069
4973         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
4974         be removed due to side-effects, don't remove following barrier nor
4975         turn the successor edge into fallthru edge.
4977 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4979         PR target/79044
4980         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
4981         element-reversing loads and stores as not swappable.
4983 2017-01-12  Nathan Sidwell  <nathan@acm.org>
4984             Nicolai Stange  <nicstange@gmail.com>
4986         * combine.c (try_combine): Don't ignore result of overlap checking
4987         loop.  Combine overlap & asm check into single loop.
4989 2017-01-12  Richard Biener  <rguenther@suse.de>
4991         * tree-pretty-print.c (dump_generic_node): Provide -gimple
4992         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
4994 2017-01-12  Richard Biener  <rguenther@suse.de>
4996         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
4997         and TS_TARGET_OPTION directly derive from TS_BASE.
4998         * tree-core.h (tree_optimization_option): Derive from tree_base.
4999         (tree_target_option): Likewise.
5001 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
5003         * config/i386/i386.c (memory_address_length): Increase len
5004         only when rip_relative_addr_p returns false.
5006 2017-01-11  Julia Koval  <julia.koval@intel.com>
5008         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
5009         (OPTION_MASK_ISA_SGX_SET): New.
5010         (ix86_handle_option): Handle OPT_msgx.
5011         * config.gcc: Added sgxintrin.h.
5012         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
5013         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
5014         * config/i386/i386.c (ix86_target_string): Add -msgx.
5015         (PTA_SGX): New.
5016         (ix86_option_override_internal): Handle new options.
5017         (ix86_valid_target_attribute_inner_p): Add sgx.
5018         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
5019         * config/i386/i386.opt: Add msgx.
5020         * config/i386/sgxintrin.h: New file.
5021         * config/i386/x86intrin.h: Add sgxintrin.h.
5023 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
5025         PR c++/71537
5026         * fold-const.c (maybe_nonzero_address): Return 1 for function
5027         local objects.
5028         (tree_single_nonzero_warnv_p): Don't handle function local objects
5029         here.
5031         PR c++/72813
5032         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
5033         of c-header.
5035 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
5037         PR driver/78877
5038         * opts.c: Include "spellcheck.h"
5039         (struct string_fragment): New struct.
5040         (struct edit_distance_traits<const string_fragment &>): New
5041         struct.
5042         (get_closest_sanitizer_option): New function.
5043         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
5045 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
5047         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
5048         by 12.
5049         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
5050         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
5051         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
5052         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
5053         for initial die_offset if dwarf_split_debug_info.
5054         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
5055         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
5056         fields.
5057         (output_skeleton_debug_sections): Formatting fix.  Use
5058         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
5059         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
5061 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
5063         * config/arm/cortex-a53.md: Add bypasses for
5064         cortex_a53_r2f_cvt.
5065         (cortex_a53_r2f): Only use for transfers.
5066         (cortex_a53_f2r): Likewise.
5067         (cortex_a53_r2f_cvt): Add reservation for conversions.
5068         (cortex_a53_f2r_cvt): Likewise.
5070 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
5072         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
5073         to all inlined functions, change static to extern.
5075 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
5077         PR target/78253
5078         * config/arm/arm.c (legitimize_pic_address): Handle reference to
5079         weak symbol.
5080         (arm_assemble_integer): Likewise.
5082 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
5084         * config.gcc: Use new awk script to check CPU, FPU and architecture
5085         parameters for --with-... options.
5086         * config/arm/parsecpu.awk: New file
5087         * config/arm/arm-cpus.in: New file.
5088         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
5089         files.
5090         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
5091         files.
5092         * config/arm/t-arm: Update dependency rules.
5093         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
5094         of processing .def files.
5095         * config/arm/genopt.sh: Deleted.
5096         * config/arm/gentune.sh: Deleted.
5097         * config/arm/arm-cores.def: Deleted.
5098         * config/arm/arm-arches.def: Deleted.
5099         * config/arm/arm-fpus.def: Deleted.
5100         * config/arm/arm-tune.md: Regenerated.
5101         * config/arm/arm-tables.opt: Regenerated.
5102         * config/arm/arm-cpu.h: New generated file.
5103         * config/arm/arm-cpu-data.h: New generated file.
5104         * config/arm/arm-cpu-cdata.h: New generated file.
5106 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
5108         PR lto/79042
5109         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
5110         bit.
5111         (input_varpool_node): Unpack dynamically_initialized bit.
5113 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
5115         PR rtl-optimization/79032
5116         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
5117         the alignment of the adjusted memory reference against that of MODE,
5118         instead of the alignment of the original memory reference.
5120 2017-01-11  Martin Jambor  <mjambor@suse.cz>
5122         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
5123         test.
5124         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
5125         decorated functions.
5127 2017-01-11  Richard Biener  <rguenther@suse.de>
5129         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
5130         set range/nonnull info for PHI results.  Do not set it on
5131         stmts marked for removal.
5133 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
5135         * expr.c (store_field): In the bitfield case, fetch the return value
5136         from the registers before applying a single big-endian adjustment.
5137         Always do a final load for a BLKmode value not larger than a word.
5139 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
5141         PR c++/77949
5142         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5143         that we correctly handle column numbers greater than
5144         LINE_MAP_MAX_COLUMN_NUMBER.
5146 2017-01-10  Martin Sebor  <msebor@redhat.com>
5148         PR middle-end/78245
5149         * gimple-ssa-sprintf.c (get_destination_size): Call
5150         {init,fini}object_sizes.
5151         * tree-object-size.c (addr_object_size): Adjust.
5152         (pass_through_call): Adjust.
5153         (pass_object_sizes::execute): Adjust.
5154         * tree-object-size.h (fini_object_sizes): Declare.
5156 2017-01-10  Martin Sebor  <msebor@redhat.com>
5158         PR tree-optimization/78775
5159         * builtins.c (get_size_range): Move...
5160         * calls.c: ...to here.
5161         (alloc_max_size): Accept zero argument.
5162         (operand_signed_p): Remove.
5163         (maybe_warn_alloc_args_overflow): Call get_size_range.
5164         * calls.h (get_size_range): Declare.
5166 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
5168         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
5169         from TI's devices.csv file as of September 2016.
5170         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
5172 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
5174         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
5175         * doc/invoke.texi: Likewise.
5176         * doc/md.texi: Likewise.
5177         * doc/objc.texi: Likewise.
5179 2017-01-10  Joshua Conner  <joshconner@google.com>
5181         * config/arm/fuchsia-elf.h: New file.
5182         * config/fuchsia.h: New file.
5183         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
5184         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
5185         targets.
5186         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
5188 2016-01-10  Richard Biener  <rguenther@suse.de>
5190         PR tree-optimization/79034
5191         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5192         Propagate out degenerate PHIs in the joiner.
5194 2017-01-10  Martin Liska  <mliska@suse.cz>
5196         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
5197         (sort_congruence_classes_by_decl_uid): Likewise.
5198         (sort_congruence_class_groups_by_decl_uid): Likewise.
5199         (sem_item_optimizer::merge_classes): Sort class, groups in these
5200         classes and members in the groups by DECL_UID of declarations.
5201         This would make merge operations stable.
5203 2017-01-10  Martin Liska  <mliska@suse.cz>
5205         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
5206         usage of m_classes_vec.
5207         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
5208         (sem_item_optimizer::get_group_by_hash): Likewise.
5209         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5210         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
5211         (sem_item_optimizer::verify_classes): Likewise.
5212         (sem_item_optimizer::process_cong_reduction): Likewise.
5213         (sem_item_optimizer::dump_cong_classes): Likewise.
5214         (sem_item_optimizer::merge_classes): Likewise.
5215         * ipa-icf.h (congruence_class_hash): Rename from
5216         congruence_class_group_hash.  Remove declaration of m_classes_vec.
5218 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
5220         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
5221         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
5222         * config.gcc: Add avx512vpopcntdqintrin.h.
5223         * config/i386/avx512vpopcntdqintrin.h: New.
5224         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
5225         * config/i386/i386-builtin-types.def: Add new types.
5226         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
5227         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
5228         __builtin_ia32_vpopcountq_v8di_mask): New.
5229         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5230         __AVX512VPOPCNTDQ__.
5231         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
5232         (PTA_AVX512VPOPCNTDQ): Define.
5233         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
5234         TARGET_AVX512VPOPCNTDQ_P): Define.
5235         * config/i386/i386.opt: Add mavx512vpopcntdq.
5236         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
5237         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
5239 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5241         PR middle-end/77484
5242         * predict.def (PRED_CALL): Set to 67.
5244 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
5246         * expr.c (store_field): In the bitfield case, if the value comes from
5247         a function call and is of an aggregate type returned in registers, do
5248         not modify the field mode; extract the value in all cases if the mode
5249         is BLKmode and the size is not larger than a word.
5251 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
5253         PR target/71017
5254         * config/i386/cpuid.h: Fix undefined behavior.
5256 2017-01-04  Jeff Law  <law@redhat.com>
5258         PR tree-optimization/79007
5259         PR tree-optimization/67955
5260         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
5261         conservative for pt.null when flag_non_call_exceptions is on.
5263 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5265         PR translation/79019
5266         PR translation/79020
5267         * params.def (PARAM_INLINE_MIN_SPEEDUP,
5268         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
5269         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
5270         in descriptions.
5271         * config/avr/avr.opt (maccumulate-args): Likewise.
5272         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
5273         * common.opt (freport-bug): Likewise.
5274         * cif-code.def (CIF_FINAL_ERROR): Likewise.
5275         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
5276         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
5277         translatable string.
5278         * config/i386/i386.c (function_value_32): Likewise.
5279         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
5280         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
5281         Likewise.
5282         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
5283         * common/config/msp430/msp430-common.c (msp430_handle_option):
5284         Likewise.
5285         * symtab.c (symtab_node::verify_base): Likewise.
5286         * opts.c (set_debug_level): Likewise.
5287         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
5288         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5289         missing whitespace to translatable strings.
5290         * config/avr/avr.md (bswapsi2): Fix typo in comment.
5291         * config/sh/superh.h: Likewise.
5292         * config/i386/xopintrin.h: Likewise.
5293         * config/i386/znver1.md: Likewise.
5294         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
5295         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
5296         * double-int.h (struct double_int): Likewise.
5297         * double-int.c (div_and_round_double): Likewise.
5298         * wide-int.cc: Likewise.
5299         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
5300         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5301         * cfgcleanup.c (crossjumps_occured): Renamed to ...
5302         (crossjumps_occurred): ... this.
5303         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
5304         Adjust all uses.
5306         PR tree-optimization/78899
5307         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
5308         returning bool return struct loop *, NULL for failure and the new
5309         loop on success.
5310         (versionable_outer_loop_p): Don't version outer loop if it has
5311         dont_vectorized bit set.
5312         (tree_if_conversion): When versioning outer loop, ensure
5313         tree_if_conversion is performed also on the inner loop of the
5314         non-vectorizable outer loop copy.
5315         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
5316         LOOP_VECTORIZED in inner loop of the scalar outer loop and
5317         prevent vectorization of it.
5318         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
5319         the outer loop vectorization of the non-scalar version is attempted
5320         before vectorization of the inner loop in scalar version.  If
5321         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
5322         vectorization of its inner loop.
5323         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
5324         has 2 inner loops, rename also on edges from bb whose single pred
5325         is outer_loop->header.  Fix typo in function comment.
5327 2017-01-09  Martin Sebor  <msebor@redhat.com>
5329         PR bootstrap/79033
5330         * asan.c (asan_emit_stack_protection): Increase local buffer size
5331         to avoid snprintf truncation warning.
5333 2017-01-09  Andrew Pinski  <apinski@cavium.com>
5335         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
5336         to reference thunderx2t99 for the tuning structure
5337         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
5338         Rename to ...
5339         (thunderx2t99_extra_costs): This.
5340         * config/aarch64/aarch64-tune.md: Regenerate.
5341         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
5342         (vulcan_addrcost_table): This.
5343         (vulcan_regmove_cost): Rename to ...
5344         (thunderx2t99_regmove_cost): This.
5345         (vulcan_vector_cost): Rename to ...
5346         (thunderx2t99_vector_cost): this.
5347         (vulcan_branch_cost): Rename to ...
5348         (thunderx2t99_branch_cost): This.
5349         (vulcan_tunings): Rename to ...
5350         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
5351         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
5353 2017-01-09  Martin Jambor  <mjambor@suse.cz>
5355         PR ipa/78365
5356         PR ipa/78599
5357         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
5358         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
5359         (propagate_vr_accross_jump_function): Use the above function for all
5360         value range computations for pass-through jump functions and type
5361         converasion from explicit value range values.
5362         (ipcp_propagate_stage): Do not attempt to deduce types of formal
5363         parameters from TYPE_ARG_TYPES.
5364         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
5365         (ipa_write_node_info): Stream type of the actual argument.
5366         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
5368 2017-01-09  Martin Liska  <mliska@suse.cz>
5370         PR pch/78970
5371         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
5372         (lookup_compiler): Do not show error message with have_E.
5374 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5376         PR tree-optimization/78938
5377         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
5378         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
5379         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
5380         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
5381         fixes.
5383 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5385         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
5386         is const0_rtx.
5388 2017-01-09  Richard Biener  <rguenther@suse.de>
5390         PR tree-optimization/78997
5391         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
5392         name condition properly.
5394 2017-01-09  Richard Biener  <rguenther@suse.de>
5396         PR debug/79000
5397         * dwarf2out.c (is_cxx): New overload with context.
5398         (is_naming_typedef_decl): Use it.
5400 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5402         * invoke.texi (Option Summary): Correct spacing in option lists
5403         and add line breaks to fix over-long lines.
5405 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5407         PR middle-end/17660
5409         * extend.texi (Common Variable Attributes): Add xref to GCC
5410         Internals manual to explain mode attribute keywords.
5412 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5414         PR other/16519
5415         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
5416         and Preprocessor Options.
5417         (Options for Linking): Document -pthread here....
5418         (RS/6000 and PowerPC Options): ...not here.
5419         (Solaris 2 Options): ...or here.
5420         * doc/cppopts.texi: Document -pthread.
5422 2017-01-08  Martin Sebor  <msebor@redhat.com>
5424         PR middle-end/77708
5425         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
5426         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
5427         New member functions.
5428         (format_directive): Used them.
5429         (add_bytes): Same.
5430         (pass_sprintf_length::handle_gimple_call): Same.
5431         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
5432         to avoid truncation for any argument.
5433         (extract_affine_mul): Same.
5434         * tree.c (get_file_function_name): Same.
5436 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5438         PR middle-end/77484
5439         * predict.def (PRED_INDIR_CALL): Set to 86.
5441 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5443         PR preprocessor/54124
5444         * doc/cppopts.texi: Reformat -d subtable to list the full name
5445         of the options.  Add cross-reference to the docs for the general
5446         compiler -d options.
5447         * doc/invoke.texi (Developer Options): Add cross-reference to the
5448         preprocessor-specific -d option documentation.
5450 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5452         PR preprocessor/13498
5453         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
5454         redudant material, and reflect new command-line options.
5455         (System Headers): Likewise.
5457 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5459         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
5460         -isystem, and -idirafter.  Copy-edit.
5461         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
5462         default for -ftrack-macro-expansion.  Delete obsolete and
5463         badly-formatted implementation details about -fdebug-cpp output.
5464         * doc/cppwarnopts.texi: Copy-edit.
5466 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
5468         PR c++/72803
5469         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5470         that the transition from a max line width >= 1<<10 to narrower
5471         lines works correctly.
5473 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
5475         * doc/options.texi (PerFunction): New.
5476         * opt-functions.awk (switch_flags): Map both Optimization and
5477         PerFunction to CL_OPTIMIZATION.
5478         * opth-gen.awk: Test for PerFunction flag along with
5479         Optimization.
5480         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
5481         it only when the latter is present.  Skip those that don't in
5482         the hash function generator.
5483         * common.opt (fvar-tracking): Mark as PerFunction instead of
5484         Optimization.
5485         (fvar-tracking-assignments): Likewise.
5486         (fvar-tracking-assignments-toggle): Likewise.
5487         (fvar-tracking-uninit): Likewise.
5489 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
5491         PR translation/79018
5492         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
5493         the and store.
5495 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
5497         PR target/57583
5498         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
5499         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
5500         TARGET_LONG_JUMP_TABLE_OFFSETS.
5501         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
5502         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
5503         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
5504         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
5505         * config/m68k/m68k.md (tablejump expander): Likewise.
5506         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
5507         TARGET_LONG_JUMP_TABLE_OFFSETS.
5508         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
5509         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
5511 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5512             David Holsgrove <david.holsgrove@xilinx.com>
5514         * common/config/microblaze/microblaze-common.c
5515         (TARGET_EXCEPT_UNWIND_INFO): Remove.
5516         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
5517         New prototype.
5518         * config/microblaze/microblaze.c (microblaze_must_save_register)
5519         (microblaze_expand_epilogue, microblaze_return_addr): Handle
5520         calls_eh_return.
5521         (microblaze_eh_return): New function.
5522         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
5523         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
5524         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
5525         * config/microblaze/microblaze.md (eh_return): New pattern.
5527 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
5529         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
5530         GCC_DIAGNOSTIC_STRINGIFY): Define.
5532         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
5534 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5536         * config/arm/arm.md (<mcrr>): New.
5537         (<mrrc>): New.
5538         * config/arm/arm.c (arm_arch5te): New.
5539         (arm_option_override): Set arm_arch5te.
5540         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
5541         and mrrc2.
5542         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
5543         (arm_mcrr_qualifiers): ... this. New.
5544         (MRRC_QUALIFIERS): Define to...
5545         (arm_mrrc_qualifiers): ... this. New.
5546         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
5547         __arm_mrrc2): New.
5548         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
5549         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
5550         (MRRCI, mrrc, MRRC): New.
5551         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
5552         VUNSPEC_MRRC2): New.
5554 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5556         * config/arm/arm.md (<mcr>): New.
5557         (<mrc>): New.
5558         * config/arm/arm.c (arm_coproc_builtin_available): Add
5559         support for mcr, mrc, mcr2 and mrc2.
5560         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
5561         (arm_mcr_qualifiers): ... this. New.
5562         (MRC_QUALIFIERS): Define to ...
5563         (arm_mrc_qualifiers): ... this. New.
5564         (MCR_QUALIFIERS): Define to ...
5565         (arm_mcr_qualifiers): ... this. New.
5566         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
5567         __arm_mrc2): New.
5568         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
5569         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
5570         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
5571         VUNSPEC_MRC2): New.
5573 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5575         * config/arm/arm.md (*ldc): New.
5576         (*stc): New.
5577         (<ldc>): New.
5578         (<stc>): New.
5579         * config/arm/arm.c (arm_coproc_builtin_available): Add
5580         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
5581         (arm_coproc_ldc_stc_legitimate_address): New.
5582         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
5583         'qualifier_const_pointer'.
5584         (LDC_QUALIFIERS): Define to...
5585         (arm_ldc_qualifiers): ... this. New.
5586         (STC_QUALIFIERS): Define to...
5587         (arm_stc_qualifiers): ... this. New.
5588         * config/arm/arm-protos.h
5589         (arm_coproc_ldc_stc_legitimate_address): New.
5590         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
5591         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
5592         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
5593         stc2, stcl, stc2l): New.
5594         * config/arm/constraints.md (Uz): New.
5595         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
5596         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
5597         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
5598         VUNSPEC_STC2L): New.
5600 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5602         * config/arm/arm.md (<cdp>): New.
5603         * config/arm/arm.c (neon_const_bounds): Rename this ...
5604         (arm_const_bounds): ... this.
5605         (arm_coproc_builtin_available): New.
5606         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
5607         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
5608         (CDP_QUALIFIERS): Define to...
5609         (arm_cdp_qualifiers): ... this. New.
5610         (void_UP): Define.
5611         (arm_expand_builtin_args): Add case for 6 arguments.
5612         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
5613         (arm_const_bounds): ... this.
5614         (arm_coproc_builtin_available): New.
5615         * config/arm/arm_acle.h (__arm_cdp): New.
5616         (__arm_cdp2): New.
5617         * config/arm/arm_acle_builtins.def (cdp): New.
5618         (cdp2): New.
5619         * config/arm/iterators.md (CDPI,CDP,cdp): New.
5620         * config/arm/neon.md: Rename all 'neon_const_bounds' to
5621         'arm_const_bounds'.
5622         * config/arm/types.md (coproc): New.
5623         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
5624         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
5625         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
5626         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
5628 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5630         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
5631         (UBINOP_QUALIFIERS): New.
5632         (si_UP): Define.
5633         (acle_builtin_data): New. Change comment.
5634         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
5635         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
5636         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
5637         arm_acle_builtins.def.
5638         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
5639         (arm_init_acle_builtins): New.
5640         (CRC32_BUILTIN): Remove.
5641         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
5642         crc32cb, crc32ch and crc32cw.
5643         (arm_init_crc32_builtins): Remove.
5644         (arm_init_builtins): Use arm_init_acle_builtins rather
5645         than arm_init_crc32_builtins.
5646         (arm_expand_acle_builtin): New.
5647         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
5648         * config/arm/arm_acle_builtins.def: New.
5650 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5652         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
5653         (arm_builtin_datum): ... this.
5654         (arm_init_neon_builtin): Rename to ...
5655         (arm_init_builtin): ... this. Add a new parameters PREFIX
5656         and USE_SIG_IN_NAME.
5657         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
5658         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
5659         'arm_builtin_datum'.
5660         (arm_init_vfp_builtins): Likewise.
5661         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
5662         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
5663         (arm_expand_neon_args): Rename to ...
5664         (arm_expand_builtin_args): ... this. Rename builtin_arg
5665         enum values and differentiate between ARG_BUILTIN_MEMORY
5666         and ARG_BUILTIN_NEON_MEMORY.
5667         (arm_expand_neon_builtin_1): Rename to ...
5668         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
5669         values, arm_expand_builtin_args and add bool parameter NEON.
5670         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
5671         (arm_expand_vfp_builtin): Likewise.
5672         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
5674 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5676         PR middle-end/77484
5677         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
5678         * predict.c (tree_estimate_probability_bb): Reverse direction of
5679         polymorphic call predictor.
5681 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
5683         * passes.c (execute_one_pass): Split out pass-skipping logic into...
5684         (determine_pass_name_match): ...this new function and...
5685         (should_skip_pass_p): ...this new function.
5687 2017-01-06  Nathan Sidwell  <nathan@acm.org>
5689         * ipa-visibility.c (function_and_variable_visibility): Reformat
5690         comments and long lines.  Remove extrneous if.
5691         * symtab.c (symtab_node::make_decl_local): Fix code format.
5692         (symtab_node::set_section_for_node): Fix comment typo.
5694 2017-01-06  Martin Liska  <mliska@suse.cz>
5696         PR bootstrap/79003
5697         * lra-constraints.c: Rename invariant to lra_invariant.
5698         * predict.c (set_even_probabilities): Initialize e to NULL.
5700 2017-01-05  Martin Sebor  <msebor@redhat.com>
5702         PR tree-optimization/78910
5703         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
5704         (format_integer): Correct off-by-one error in the handling
5705         of precision with negative numbers in signed conversions..
5707 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5709         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
5711 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5713         PR tree-optimization/71016
5714         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
5715         factor_out_conditional_conversion.  Formatting fix.
5716         (factor_out_conditional_conversion): Add cond_stmt argument.
5717         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
5718         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
5719         Formatting fix.
5721 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
5723         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
5724         read-rtl-function.o, and selftest-rtl.o.
5725         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
5726         (selftest::aarch64_test_loading_full_dump): New function.
5727         (selftest::aarch64_run_selftests): New function.
5728         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
5729         selftest::aarch64_run_selftests.
5730         * config/i386/i386.c
5731         (selftest::ix86_test_loading_dump_fragment_1): New function.
5732         (selftest::ix86_test_loading_call_insn): New function.
5733         (selftest::ix86_test_loading_full_dump): New function.
5734         (selftest::ix86_test_loading_unspec): New function.
5735         (selftest::ix86_run_selftests): Call the new functions.
5736         * emit-rtl.c (maybe_set_max_label_num): New function.
5737         * emit-rtl.h (maybe_set_max_label_num): New decl.
5738         * function.c (instantiate_decls): Guard call to
5739         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
5740         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
5741         "static".
5742         * gensupport.c (gen_reader::gen_reader): Pass "false"
5743         for new "compact" param of rtx_reader.
5744         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
5745         rather than an empty string for NULL strings.
5746         * read-md.c: Potentially include config.h rather than bconfig.h.
5747         Wrap include of errors.h with #ifdef GENERATOR_FILE.
5748         (have_error): New global, copied from errors.c.
5749         (md_reader::read_name): Rename to...
5750         (md_reader::read_name_1): ...this, adding "out_loc" param,
5751         and converting "missing name or number" to returning false, rather
5752         than failing.
5753         (md_reader::read_name): Reimplement in terms of read_name_1.
5754         (md_reader::read_name_or_nil): New function.
5755         (md_reader::read_string): Handle "(nil)" by returning NULL.
5756         (md_reader::md_reader): Add new param "compact".
5757         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
5758         (md_reader::read_file): New method.
5759         * read-md.h (md_reader::md_reader): Add new param "compact".
5760         (md_reader::read_file): New method.
5761         (md_reader::is_compact): New accessor.
5762         (md_reader::read_name): Convert return type from void to file_location.
5763         (md_reader::read_name_or_nil): New decl.
5764         (md_reader::read_name_1): New decl.
5765         (md_reader::m_compact): New field.
5766         (noop_reader::noop_reader): Pass "false" for new "compact" param
5767         of rtx_reader.
5768         (rtx_reader::rtx_reader): Add new "compact" param.
5769         (rtx_reader::read_rtx_operand): Make virtual and convert return
5770         type from void to rtx.
5771         (rtx_reader::read_until): New decl.
5772         (rtx_reader::handle_any_trailing_information): New virtual function.
5773         (rtx_reader::postprocess): New virtual function.
5774         (rtx_reader::finalize_string): New virtual function.
5775         (rtx_reader::m_in_call_function_usage): New field.
5776         (rtx_reader::m_reuse_rtx_by_id): New field.
5777         * read-rtl-function.c: New file.
5778         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
5779         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
5780         (selftest::verify_three_block_rtl_cfg): New decl.
5781         * read-rtl-function.h: New file.
5782         * read-rtl.c: Potentially include config.h rather than bconfig.h.
5783         For host, include function.h, memmodel.h, and emit-rtl.h.
5784         (one_time_initialization): New function.
5785         (struct compact_insn_name): New struct.
5786         (compact_insn_names): New array.
5787         (find_code): Handle insn codes in compact dumps.
5788         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
5789         (bind_subst_iter_and_attr): Likewise.
5790         (add_condition_to_string): Likewise.
5791         (add_condition_to_rtx): Likewise.
5792         (apply_attribute_uses): Likewise.
5793         (add_current_iterators): Likewise.
5794         (apply_iterators): Likewise.
5795         (initialize_iterators): Guard usage of apply_subst_iterator with
5796         #ifdef GENERATOR_FILE.
5797         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
5798         (md_reader::read_mapping): Likewise.
5799         (add_define_attr_for_define_subst): Likewise.
5800         (add_define_subst_attr): Likewise.
5801         (read_subst_mapping): Likewise.
5802         (check_code_iterator): Likewise.
5803         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
5804         logic to...
5805         (one_time_initialization): New function.
5806         (rtx_reader::read_until): New method.
5807         (read_flags): New function.
5808         (parse_reg_note_name): New function.
5809         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
5810         Handle reuse_rtx ids.
5811         Wrap iterator lookup within #ifdef GENERATOR_FILE.
5812         Add parsing support for RTL dumps, mirroring the special-cases in
5813         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
5814         values, and calling handle_any_trailing_information.
5815         (rtx_reader::read_rtx_operand): Convert return type from void
5816         to rtx, returning return_rtx.  Handle case 'e'.  Call
5817         finalize_string on XSTR and XTMPL fields.
5818         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
5819          "(nil)" values were omitted.  Call the postprocess vfunc on the
5820         return_rtx.
5821         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
5822         class ctor.  Initialize m_in_call_function_usage.  Call
5823         one_time_initialization.
5824         * rtl-tests.c (selftest::test_uncond_jump): Call
5825         set_new_first_and_last_insn.
5826         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
5827         * selftest-rtl.c: New file.
5828         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
5829         (selftest::get_insn_by_uid): New decl.
5830         * selftest-run-tests.c (selftest::run_tests): Call
5831         read_rtl_function_c_tests.
5832         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
5833         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
5834         dumps.
5836 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
5838         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
5839         operands in a special way.  Assert that pos+len <= mode precision.
5841 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5843         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
5844         3 argument Alias with unlimited for the negative form.
5845         (fno-vect-cost-model): Removed.
5847 2017-01-05  Martin Liska  <mliska@suse.cz>
5849         * hsa-gen.c (gen_hsa_divmod): New function.
5850         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
5852 2017-01-05  Martin Liska  <mliska@suse.cz>
5854         PR pch/78970
5855         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
5856         header.
5858 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5860         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
5861         small constant length operands.
5863 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5865         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
5866         between loop iterations.
5868 2017-01-05  Martin Liska  <mliska@suse.cz>
5870         PR sanitizer/78815
5871         * gimplify.c (gimplify_decl_expr): Compare to
5872         asan_poisoned_variables instread of checking flags.
5873         (gimplify_target_expr): Likewise.
5874         (gimplify_expr): Likewise.
5875         (gimplify_function_tree): Conditionally initialize
5876         asan_poisoned_variables.
5878 2017-01-04  Jeff Law  <law@redhat.com>
5880         PR tree-optimizatin/78812
5881         * rtl.h (contains_mem_rtx_p): Prototype.
5882         * ifcvt.c (containts_mem_rtx_p): Move from here to...
5883         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
5884         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
5885         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
5886         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
5888 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5890         * input.c (assert_char_at_range): Default-initialize actual_range.
5892 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5894         * df-scan.c (df_ref_create_structure): Make regno unsigned,
5895         to match the caller.
5897 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5899         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
5900         insns after final jump in test to emit dummy move.
5902 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5904         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
5905         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
5907 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5909         * multiple_target.c (create_dispatcher_calls): Init e_next.
5910         * tree-ssa-loop-split.c (split_loop): Init border.
5911         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
5912         scalar_type.
5914 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5916         PR target/71977
5917         PR target/70568
5918         PR target/78823
5919         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
5920         (altivec_register_operand): Do not return true if the operand
5921         contains a SUBREG mixing SImode and SFmode.
5922         (vsx_register_operand): Likewise.
5923         (vsx_reg_sfsubreg_ok): New predicate.
5924         (vfloat_operand): Do not return true if the operand contains a
5925         SUBREG mixing SImode and SFmode.
5926         (vint_operand): Likewise.
5927         (vlogical_operand): Likewise.
5928         (gpc_reg_operand): Likewise.
5929         (int_reg_operand): Likewise.
5930         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
5931         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
5932         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
5933         SImode and SFmode.
5934         (rs6000_emit_move_si_sf_subreg): New helper function.
5935         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
5936         fixup SUBREGs involving SImode and SFmode.
5937         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
5938         numbers for the new peephole2 optimization.
5939         (peephole2 for SFmode unions): New peephole2 to optimize cases in
5940         the GLIBC math library that do AND/IOR/XOR operations on single
5941         precision floating point.
5942         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
5943         target macros to say whether we need to avoid SUBREGs mixing
5944         SImode and SFmode.
5945         (TARGET_ALLOW_SF_SUBREG): Likewise.
5946         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
5947         (UNSPEC_SI_FROM_SF): Likewise.
5948         (iorxor): Change spacing.
5949         (and_ior_xor): New iterator for AND, IOR, and XOR.
5950         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
5951         (movdi_from_sf_zero_ext): Likewise.
5952         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
5953         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
5954         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
5955         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
5956         (fms<mode>4): Likewise.
5957         (fnma<mode>4): Likewise.
5958         (fnms<mode>4): Likewise.
5959         (nfma<mode>4): Likewise.
5960         (nfms<mode>4): Likewise.
5962 2017-01-04  Marek Polacek  <polacek@redhat.com>
5964         PR c++/64767
5965         * doc/invoke.texi: Document -Wpointer-compare.
5967 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5969         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
5970         RejectNegative.
5972         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
5973         descriptions for -gdwarf-5 and emit them as uleb128 instead of
5974         2-byte data.
5976 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5978         PR target/78056
5979         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
5980         documentation of the powerpc_popcntb_ok attribute.
5981         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5982         code to issue warning messages if a requested CPU configuration is
5983         not supported by the binary (assembler and loader) toolchain.
5984         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
5985         made to define a built-in function that has been disabled.
5986         (paired_init_builtins): Add assertion to prevent ICE if attempt is
5987         made to define a built-in function that has been disabled.
5988         (altivec_init_builtins): Add comment explaining why definition
5989         of the DST built-in functions is not preceded by an assertion
5990         check.  Add assertions to prevent ICE if attempts are made to
5991         define an altivec predicate or an abs* built-in function that has
5992         been disabled.
5993         (htm_init_builtins): Add comment explaining why definition of the
5994         htm built-in functions is not preceded by an assertion check.
5996 2017-01-04  Jeff Law  <law@redhat.com>
5998         PR tree-optimizatin/67955
5999         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
6000         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
6001         the points-to solution does not include pt_null.  Use DECL_PT_UID
6002         unconditionally.
6004 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
6006         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
6007         Use gen_int_mode instead of gen_lopwart for const_int operands.
6009 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6011         PR tree-optimization/71563
6012         * match.pd: Simplify X << Y into X if Y is known to be 0 or
6013         out of range value - has low bits known to be zero.
6015 2017-01-04  Alan Modra  <amodra@gmail.com>
6017         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
6018         * configure: Regenerate.
6019         * config.in: Regenerate.
6021 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6023         PR bootstrap/77569
6024         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
6025         a substring of the message, but strcmp with the whole message.  Ifdef
6026         ENABLE_NLS, translate the message first using dgettext.
6028 2017-01-03  Jeff Law  <law@redhat.com>
6030         PR tree-optimizatin/78856
6031         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
6032         (mark_threaded_blocks): Remove code to truncate thread paths that
6033         cross multiple loop headers.  Instead invalidate the cached loop
6034         iteration information and handle case of a thread path walking
6035         into an irreducible region.
6037 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6039         PR target/78900
6040         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
6041         assertions.  Add support for doing the signbit if the IEEE 128-bit
6042         floating point value is in a GPR.
6043         * config/rs6000/rs6000.md (Fsignbit): Delete.
6044         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
6045         Update the length attribute if the value is in a GPR.
6046         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
6047         the sign or zero extension instruction, since the value is always 0/1.
6048         (signbit<mode>2_dm2): Delete using <Fsignbit>.
6050         PR target/78953
6051         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
6052         extracting SImode to a GPR register so that we can generate a
6053         store, limit the vector to be in a traditional Altivec register
6054         for the vextuwrx instruction.
6056 2017-01-03  Ian Lance Taylor  <iant@google.com>
6058         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
6060 2017-01-03  Martin Sebor  <msebor@redhat.com>
6062         PR tree-optimization/78696
6063         * gimple-ssa-sprintf.c (format_floating): Correct handling of
6064         precision.  Use MPFR for %f for greater fidelity.  Correct handling
6065         of %g.
6066         (pass_sprintf_length::compute_format_length): Set width and precision
6067         specified by asrerisk to void_node for vararg functions.
6068         (try_substitute_return_value): Adjust dump output.
6070 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
6072         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
6074 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
6076         * doc/invoke.texi (SPARC options): Document -mlra as the default.
6077         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
6078         -mlra/-mno-lra was passed to the compiler.
6080 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
6082         PR rtl-optimization/65618
6083         * emit-rtl.c (try_split): Move initialization of "before" and
6084         "after" to just before the call to emit_insn_after_setloc.
6086 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
6088         * doc/md.texi (Standard Names): Remove reference to Java frontend.
6090 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6092         * dwarf2out.c (gen_enumeration_type_die): When
6093         -gno-strict-dwarf, add a DW_AT_encoding attribute.
6095 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
6097         PR tree-optimization/78965
6098         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
6099         Change first argument from const call_info & to call_info &.  For %n
6100         set info.nowrite to false.
6102         PR middle-end/78901
6103         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
6104         possibly throwing calls.
6106         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
6107         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
6108         and fns handling, rather than in a separate case SSA_NAME.
6110 2017-01-02  Jeff Law  <law@redhat.com>
6112         * config/darwin-driver.c (darwin_driver_init): Const-correctness
6113         fixes for first_period and second_period variables.
6115 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
6117         PR target/78967
6118         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
6119         (*insvqi_1): New insn pattern.
6120         (*insvqi_1_mem_rex64): Ditto.
6121         (*insvqi_2): Ditto.
6122         (*insvqi_3): Rename from *insvqi.
6124         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
6126 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
6128         * doc/cfg.texi (Edges): Remove reference to Java.
6129         (Maintaining the CFG): Ditto.
6131 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6133         PR middle-end/77674
6134         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
6135         transparent aliases.
6137 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6139         PR middle-end/77484
6140         * predict.def (PRED_CALL): Update hitrate.
6141         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
6142         * predict.c (tree_estimate_probability_bb): Split CALL predictor
6143         into direct/indirect/polymorphic variants.
6145 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
6147         Update copyright years.
6149         * gcc.c (process_command): Update copyright notice dates.
6150         * gcov-dump.c (print_version): Ditto.
6151         * gcov.c (print_version): Ditto.
6152         * gcov-tool.c (print_version): Ditto.
6153         * gengtype.c (create_file): Ditto.
6154         * doc/cpp.texi: Bump @copying's copyright year.
6155         * doc/cppinternals.texi: Ditto.
6156         * doc/gcc.texi: Ditto.
6157         * doc/gccint.texi: Ditto.
6158         * doc/gcov.texi: Ditto.
6159         * doc/install.texi: Ditto.
6160         * doc/invoke.texi: Ditto.
6162 Copyright (C) 2017 Free Software Foundation, Inc.
6164 Copying and distribution of this file, with or without modification,
6165 are permitted in any medium without royalty provided the copyright
6166 notice and this notice are preserved.