re PR c++/67980 (left shift count is negative [-Wshift-count-negative] generated...
[official-gcc.git] / gcc / ChangeLog
blobd062157ab7adf2b5d394b1bed4bd8dcdf1801bf5
1 2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3         * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
4         (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5         rs6000_gimple_fold_builtin.
6         (rs6000_gimple_fold_builtin): New function.  Add handling for
7         early expansion of vector addition builtins.
9 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
11         * expr.h (copy_blkmode_from_reg): Delete.
12         * expr.c (copy_blkmode_from_reg): Make static.
14 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
16         * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
17         * combine.c (LOAD_EXTEND_OP): Delete.
18         (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
19         * cse.c (LOAD_EXTEND_OP): Delete.
20         * fold-const.c (LOAD_EXTEND_OP): Likewise.
21         * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
22         * postreload.c (LOAD_EXTEND_OP): Delete.
23         * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
24         Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
25         (find_reloads): Likewise.
26         * reload1.c (eliminate_regs_1): Likewise.
27         * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
28         (num_sign_bit_copies1): Likewise.
30 2016-11-04  David Malcolm  <dmalcolm@redhat.com>
32         * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
33         (selftest::ix86_test_dumping_hard_regs): New function.
34         (selftest::ix86_run_selftests): New function.
35         (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
36         selftest::ix86_run_selftests.
37         * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
38         * doc/tm.texi: Regenerate
39         * selftest-rtl.h: New file.
40         * rtl-tests.c: Include "selftest-rtl.h".
41         (selftest::assert_rtl_dump_eq): Make non-static.
42         (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
43         (selftest::test_dumping_regs): Update comment.
44         * selftest-run-tests.c: Include "target.h".
45         (selftest::run_tests): If non-NULL, call
46         targetm.run_target_selftests.
47         * target.def (run_target_selftests): New hook.
49 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
51         * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
52         representative core for this architecture.
53         * config/arm/arm-cores.def (cortex-m33): Define new processor.
54         * config/arm/arm-tables.opt: Regenerate.
55         * config/arm/arm-tune.md: Likewise.
56         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
57         valid -mcpu options.
58         * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
60 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
62         * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
63         representative core for this architecture.
64         * config/arm/arm-cores.def (cortex-m23): Define new processor.
65         * config/arm/arm-tables.opt: Regenerate.
66         * config/arm/arm-tune.md: Likewise.
67         * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
68         this tuning parameters apply to in the comment.
69         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
70         valid -mcpu options.
71         * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
73 2016-11-04  Bin Cheng  <bin.cheng@arm.com>
75         * fold-const.c (fold_cond_expr_with_comparison): Remove call
76         to pedantic_non_lvalue_loc.  Remove useless code for lvalue
77         where cond_expr can't be a lvalue.
79 2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
81         * config/arc/arc.c (arc_process_double_reg_moves): Use
82         gen_dexcl_2op call.
83         * config/arc/arc.md (movsi_insn): Disable unsupported move
84         instructions for ARCv2 cores.
85         (movdi): Use prepare_move_operands.
86         (movsf, movdf): Use move_dest_operand predicate.
87         * config/arc/constraints.md (Chs): Enable when barrel shifter is
88         present.
89         * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
90         * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
91         also a destination.
92         (dexcl_3op_peep2_insn_nores): Likewise.
93         * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
94         (LINK_COMMAND_SPEC): Remove.
96 2016-11-04  Richard Biener  <rguenther@suse.de>
98         PR middle-end/78185
99         * loop-invariant.c (find_exits): Record entering inner
100         loops as possibly exiting to handle infinite sub-loops.
101         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
102         (fill_always_executed_in_1): Honor infinite child loops.
104 2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
106         PR target/78192
107         * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
108         has already been adjusted for endianness, so don't adjust it any
109         further.
111         PR target/77993
112         * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
113         ICmode unless we have standard PowerPC floating point.
114         * config/rs6000/rs6000.md (FP iterator): Likewise.
115         (FMOVE128 iterator): Likewise.
117 2016-11-03  Jakub Jelinek  <jakub@redhat.com>
118             Alexandre Oliva  <aoliva@redhat.com>
119             Jason Merrill  <jason@redhat.com>
121         PR debug/28767
122         PR debug/56974
123         * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
124         langhook.
125         * langhooks.c (lhd_type_dwarf_attribute): New function.
126         * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
127         (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
128         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
129         LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
130         (check_qualified_type, check_aligned_type): Call it.
131         * dwarf2out.c (modified_type_die): Don't use type_main_variant
132         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
133         check_base_type and check_lang_type.
134         (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
135         return early.  For pointer-to-data-member add DW_AT_use_location
136         attribute.
137         (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
138         if needed.
139         (gen_type_die_with_usage): Don't use type_main_variant
140         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
141         check_base_type and check_lang_type.  Formatting fixes. Call
142         get_debug_type langhook.
144 2016-11-03  Jason Merrill  <jason@redhat.com>
146         * tree.c (check_lang_type): New.
147         (check_qualified_type): Use it.
148         (check_aligned_type): Use it.
149         * tree.h: Declare it.
151 2016-11-03  Richard Earnshaw  <rearnsha@arm.com>
153         * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
154         (arm*-freebsd*): Likewise.
155         (arm*-*-netbsdelf*): Likewise.
156         (arm*-*-linux*): Likewise.
157         (arm*-*-uclinux*eabi*): Likewise.
158         (arm*-*-phoenix*): Likewise.
159         (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
160         (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
161         specified.  Default to arm6 if target_cpu_cname is not set.
162         * arm/arm.c (arm_option_override): Simplify logic.  Assert that the
163         default cpu has been correctly configured.
164         * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
165         (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
166         * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
167         * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
168         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
169         * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
170         * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
172 2016-11-03  Jiong Wang  <jiong.wang@arm.com>
174         * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
175         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
176         (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
177         (output_cfa_loc): Support DW_CFA_val_expression.
178         (output_cfa_loc_raw): Likewise.
179         (output_cfi): Likewise.
180         (output_cfi_directive): Likewise.
181         * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
182         (dw_cfi_oprnd2_desc): Likewise.
183         (mem_loc_descriptor): Recognize new pattern generated for value
184         expression.
186 2016-11-03  Segher Boessenkool  <segher@kernel.crashing.org>
188         PR rtl-optimization/78186
189         * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
190         well, when converting to IOR.
192 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
194         * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
195         (vec_interleave_highv8qi): Likewise.
197 2016-11-03  Martin Liska  <mliska@suse.cz>
199         * profile.c (instrument_values): Fix coding style.
200         (branch_prob): Use renamed function.
201         * tree-profile.c (init_ic_make_global_vars): Likewise.
202         (gimple_init_edge_profiler): Rename to
203         gimple_init_gcov_profiler.
204         tree_time_profiler_counter variable declaration.
205         (gimple_gen_time_profiler): Rewrite to do a direct gimple code
206         emission.
207         * value-prof.h: Remove an argument.
209 2016-11-03  Richard Biener  <rguenther@suse.de>
211         * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
212         symtab_node::get_create.
214 2016-11-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
216         * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
217         Move comments into more natural position.
219 2016-11-03  Vineet Gupta  <vgupta@synopsys.com>
221         * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
222         (PTRDIFF_TYPE): Define as int.
224 2016-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
226         * ccmp.c (expand_ccmp_expr_1): Adjust.
227         (expand_ccmp_expr): Likewise.
228         (expand_ccmp_next): Likewise.
229         * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
230         (aarch64_gen_ccmp_first): Likewise.
231         * doc/tm.texi: Regenerate.
232         * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
233         (gen_ccmp_next): Likewise.
235 2016-11-03  Bin Cheng  <bin.cheng@arm.com>
237         * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
238         (vect_is_simple_reduction): Swap cond_reduction by inversion.
240 2016-11-02  Uros Bizjak  <ubizjak@gmail.com>
242         * config/i386/i386.c (ix86_init_libfuncs): New.  Call
243         darwin_rename_builtins here.
244         (ix86_expand_divmod_libfunc): New.
245         (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
246         (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
248 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
249             Nathan Sidwell  <nathan@acm.org>
251         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
253 2016-11-02  Max Filippov  <jcmvbkbc@gmail.com>
255         * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
256         New function.
257         (xtensa_output_literal): Use xtensa_output_integer_literal_parts
258         to format MODE_INT and MODE_PARTIAL_INT literals.
260 2016-11-02  Segher Boessenkool  <segher@kernel.crashing.org>
262         PR target/78168
263         * config/r6000/rs6000.c (rs6000_get_separate_components): Return
264         NULL if TARGET_SPE_ABI.
266 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
268         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
269         clear padding bits even when they're less than a byte.
271 2016-11-02  Richard Biener  <rguenther@suse.de>
273         * gimple-ssa-store-merging.c: Include gimplify-me.h.
274         (imm_store_chain_info::output_merged_stores): Force base_addr
275         to be proper GIMPLE for a MEM_REF address.
276         (pass_store_merging::execute): Restrict negative bitpos
277         handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
278         check.  Take into account non-NULL_TREE offset if the base
279         is already addressable.
281 2016-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
283         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
284         New pattern.
285         (aarch64_be_crypto_sha1hv4si): New pattern.
287 2016-11-02  Wilco Dijkstra  <wdijkstr@arm.com>
289         * config/aarch64/aarch64.md (add<mode>3): Remove
290         redundant code.  Don't split frame based additions.
292 2016-11-02  Richard Biener  <rguenther@suse.de>
294         * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
295         redundant val and dest members.
296         (store_immediate_info::store_immediate_info): Adjust.
297         (merged_store_group::merged_store_group): Adjust.
298         (merged_store_group::apply_stores): Likewise.
299         (struct imm_store_chain_info): Add base_addr field.
300         (imm_store_chain_info::imm_store_chain_info): New constructor.
301         (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
302         (imm_store_chain_info::output_merged_store): Likewise.  Use
303         addr_base which is already the address.
304         (imm_store_chain_info::output_merged_stores): Likewise.
305         (pass_tree_store_merging::terminate_all_aliasing_chains): Take
306         imm_store_chain_info instead of base.  Fix alias check.
307         (pass_tree_store_merging::terminate_and_release_chain): Likewise.
308         (imm_store_chain_info::coalesce_immediate_stores): Adjust.
309         (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
310         use the address of the base and adjust for other changes.
312 2016-11-02  Martin Liska  <mliska@suse.cz>
314         * fold-const-call.c (host_size_t_cst_p): Test whether
315         t is convertible to size_t.
317 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
319         PR tree-optimization/78170
320         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
321         introduced by native_encode_expr on little-endian as well.
323 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
325         PR tree-optimization/78162
326         * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
327         as invalid.
329 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
331         * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
332         function comment.
333         (aarch64_next_callee_save): Likewise.
334         (aarch64_pushwb_single_reg): Likewise.
335         (aarch64_gen_storewb_pair): Likewise.
336         (aarch64_push_regs): Likewise.
337         (aarch64_gen_loadwb_pair): Likewise.
338         (aarch64_pop_regs): Likewise.
339         (aarch64_gen_store_pair): Likewise.
340         (aarch64_gen_load_pair): Likewise.
341         (aarch64_save_callee_saves): Likewise.
342         (aarch64_restore_callee_saves): Likewise.
344 2016-11-02  Richard Biener  <rguenther@suse.de>
346         PR tree-optimization/78035
347         PR tree-optimization/77964
348         * gimple-pretty-print.c (pp_points_to_solution): Print
349         vars_contains_interposable.
350         * tree-ssa-alias.c: Include varasm.h.
351         (ptrs_compare_unequal): Check vars_contains_interposable and
352         decl_binds_to_current_def_p.
353         (dump_points_to_solution): Dump vars_contains_interposable.
354         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
355         flag.
356         * tree-ssa-structalias.c: Include varasm.h.
357         (set_uids_in_ptset): Record whether vars contains a
358         not decl_binds_to_current_def_p variable in vars_contains_interposable.
359         (ipa_escaped_pt): Update initializer.
361 2016-11-02  Richard Biener  <rguenther@suse.de>
363         PR tree-optimization/78047
364         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
365         fake field at offset zero conservatively regarding to may_have_pointers.
367 2016-11-02  Richard Biener  <rguenther@suse.de>
369         * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
370         infer_value_range on stmt ops and update value-ranges.
371         Dump visited stmts and blocks.
372         (evrp_dom_walker::push_value_range): Dump changes.
373         (evrp_dom_walker::pop_value_range): Likewise.
374         (evrp_dom_walker::try_find_new_range): Avoid noop changes.
376 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
378         * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
379         rtx_insn *.
380         * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
382 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
384         * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
385         and adjust for that.
386         * cfgrtl.h (delete_insn_chain): Adjust prototype.
388 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
390         * config/rl78/rl78.c (gen-and_emit_move): Change argument type
391         to rtx_insn *.
392         (transcode_memory_rtx): Likewise.
393         (move_to_acc): Likewise.
394         (move_from_acc): Likewise.
395         (move_acc_to_reg): Likewise.
396         (move_to_x): Likewise.
397         (move_to_hl): Likewise.
398         (move_to_de): Likewise.
399         * config/rs6000/rs6000.c (emit_frame_save): Likewise.
400         (rs6000_emit_savres_rtx): Likewise.
401         (rs6000_emit_prologue): Likewise.
402         * reorg.c (update_reg_unused_notes): Likewise.
403         * rtl.h (remove_note): Adjust prototype.
404         * rtlanal.c (remove_note): Make argument type rtx_insn *.
406 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
408         * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
409         variables so some can be rtx_insn *.
410         (alpha_emit_xfloating_libcall): Likewise.
411         * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
412         (mips_legitimize_tls_address): Likewise.
413         * optabs.c (expand_binop): Likewise.
414         * reload1.c (gen_reload): Likewise.
416 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
418         * reorg.c (relax_delay_slots): Split up the trial variable.
420 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
422         * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
423         of variables rtx_insn *.
424         * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
425         (legitimize_tls_address): Likewise.
426         * config/bfin/bfin.c (hwloop_optimize): Likewise.
427         (bfin_gen_bundles): Likewise.
428         * config/c6x/c6x.c (reorg_split_calls): Likewise.
429         (c6x_reorg): Likewise.
430         * config/frv/frv.c (frv_reorder_packet): Likewise.
431         * config/i386/i386.c (ix86_split_idivmod): Likewise.
432         * config/ia64/ia64.c (ia64_expand_compare): Likewise.
433         * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
434         * config/mn10300/mn10300.c: Likewise.
435         * config/rl78/rl78.c: Likewise.
436         * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
437         * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
438         (sh_expand_cmpnstr): Likewise.
439         (sh_expand_strlen): Likewise.
440         (sh_expand_setmem): Likewise.
441         * config/sh/sh.md: Likewise.
442         * emit-rtl.c (emit_pattern_before): Likewise.
443         * except.c: Likewise.
444         * final.c: Likewise.
445         * jump.c: Likewise.
447 2016-11-01  Jason Merrill  <jason@redhat.com>
449         * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
450         a COND_EXPR with constant condition.
452 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
454         * dwarf2out.c (gen_variable_die): Remove again origin_die variable
455         and its initialization.
457 2016-11-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
459         * dwarf2out.c (output_rnglists): Wrap basebuf, len in
460         HAVE_AS_LEB128.
462 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
464         * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
465         argument, don't call add_linkage_name if it is true.
466         (gen_variable_die): For C++ inline static data members, consider the
467         initial call when old_die is NULL to be declaration and call
468         add_name_and_src_coords_attributes in that case with true as
469         NO_LINKAGE_NAME.  Add DW_AT_inline attribute if needed.
470         (gen_member_die): For C++ inline static data members, emit a
471         definition DIE right away in DW_TAG_compile_unit context.
473 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
475         PR target/78166
476         * config/pa/pa.md: Add new shift/add patterns to handle
477         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
479 2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>
481         * config/xtensa/xtensa-protos.h
482         (xtensa_use_return_instruction_p): New prototype.
483         * config/xtensa/xtensa.c (xtensa_current_frame_size,
484         xtensa_callee_save_size): Remove.
485         (struct machine_function): Add new fields: current_frame_size,
486         callee_save_size, frame_laid_out and epilogue_done.
487         (compute_frame_size, xtensa_expand_prologue,
488         xtensa_expand_epilogue): Replace xtensa_callee_save_size with
489         cfun->machine->callee_save_size and xtensa_current_frame_size
490         with cfun->machine->current_frame_size.
491         (compute_frame_size): Update cfun->machine->frame_laid_out and
492         don't update frame layout after reload completion.
493         (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
494         instead of zeroing xtensa_current_frame_size.
495         (xtensa_use_return_instruction_p): New function.
496         * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
497         declaration.
498         (INITIAL_ELIMINATION_OFFSET): Use return value of
499         compute_frame_size instead of xtensa_current_frame_size value.
500         * config/xtensa/xtensa.md ("return" pattern): Use new predicate
501         function xtensa_use_return_instruction_p instead of inline code.
503 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
505         * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
506         * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
507         * dwarf2out.c (rnglist_idx): New variable.
508         (struct dw_ranges): Add label, idx and maybe_new_sec fields.
509         (DEBUG_RNGLISTS_SECTION): Define.
510         (ranges_base_label): New variable.
511         (size_of_die) <case dw_val_class_range_list>: If using
512         DW_FORM_rnglistx, count size of uleb128 of range list index.
513         (value_format) <case dw_val_class_range_list>: For
514         -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
515         (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
516         offsets.  Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
517         (add_ranges_num): Remove useless prototype.  Don't multiply
518         by 2 * DWARF2_ADDR_SIZE.  Add maybe_new_sec argument, adjust
519         for new fields added to dw_ranges struct.
520         (add_ranges): Add maybe_new_sec argument and pass it
521         through to add_ranges_num.
522         (note_rnglist_head): New function.
523         (add_ranges_by_labels): Pass true as maybe_new_sec to
524         add_ranges_num, call note_rnglist_head on the head of the list.
525         (output_ranges): Add function comment.  Switch to
526         .debug_ranges section here and emit .Ldebug_ranges0 label.
527         (index_rnglists, output_rnglists): New functions.
528         (gen_subprogram_die): Formatting fixes.
529         (add_high_low_attributes): Don't divide offsets
530         by 2 * DWARF2_ADDR_SIZE.  Call note_rnglist_head on the
531         first list element or when pointing into the middle of
532         a list.  Pass true as second argument to add_ranges on the
533         first block fragment after cold/hot section switch.
534         (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
535         section instead of .debug_ranges.  Initialize
536         ranges_base_label if -gdwarf-5 -gsplit-dwarf.
537         (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
538         index_rnglists and add DW_AT_rnglists_base attr.  Don't switch
539         to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
540         Call output_rnglists for -gdwarf-5.
541         (dwarf2out_c_finalize): Clear rnglist_idx.
543 2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
545         * combine.c (simplify_compare_const): Add gcc_fallthrough.
547 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
548             Tamar Christina <tamar.christina@arm.com>
550         * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
551         * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
552         (vmaxnmq_f32): Likewise.
553         (vminnm_f32): Likewise.
554         (vminnmq_f32): Likewise.
555         * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
556         (vminnm): Likewise.
557         * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
558         expander.
560 2016-10-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
562         * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
563         binary floating point types supported by the hardware except for
564         double.
565         (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
566         vector instruction for optimizing extracting a SImode from a
567         V4SImode vector and converting it to floating point.
568         (vsx_xvcvuxwdp_df): Likewise.
569         (vsx_extract_si): On ISA 3.0, allow extract target and temporary
570         registers to be any VSX register.  Move stores to the end of the
571         constraints.
572         (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
573         to optimize extracting a SImode from a V4SImode vector and
574         converting it to a binary floating point type supported by the
575         hardware.  Use the vector converts instead of extracting the
576         element, sign extending it, and then converting it to double.
577         Other floating point types  than double first convert to double,
578         then the double is converted to that type.
579         (vsx_extract_si_<uns>float_<mode>): Likewise.
581 2016-10-31  Andrew Pinski  <apinski@cavium.com>
583         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
584         Rewrite handling of part num to handle the case where
585         multiple implementers share the same part num.
587 2016-10-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
588             Jakub Jelinek  <jakub@redhat.com>
590         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
591         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
593 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
595         * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
596         (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
597         (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
598         (is_cu_die, is_unit_die): Likewise.
599         (should_move_die_to_comdat, break_out_comdat_types): Adjust
600         comments for DWARF5 DW_UT_type units.
601         (output_compilation_unit_header): Add UT argument, output
602         start of DWARF5 .debug_info section header.
603         (output_comp_unit): Add dwo_id argument.  Adjust
604         output_compilation_unit_header caller, for DW_UT_split_compile
605         emit dwo_id field, otherwise padding1.  Emit padding2 field.
606         (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
607         rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
608         (output_skeleton_debug_sections): Add dwo_id argument, for
609         -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
610         (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
611         DW_UT_type or DW_UT_split_type units rather than .debug_types.
612         (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
613         DW_TAG_compile_unit for skeleton unit die.  Don't add
614         DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
615         address to output_comp_unit and output_skeleton_debug_sections.
617         * dwarf2out.c (debug_line_str_section): New variable.
618         (debug_line_str_hash): Likewise.
619         (DEBUG_LINE_STR_SECTION): Define.
620         (set_indirect_string): Handle DW_FORM_line_strp like
621         DW_FORM_strp.
622         (find_string_form): Fix up formatting.
623         (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
624         Fix up indentation.
625         (output_die): Handle DW_FORM_line_strp.
626         (DWARF5_USE_DEBUG_LINE_STR): Define.
627         (output_line_string): New function.
628         (output_file_names): Add -gdwarf-5 support.
629         (output_line_info): Likewise.
630         (init_sections_and_labels): Initialize debug_line_str_section.
631         (output_indirect_string): Change 2nd argument from void *
632         to enum dwarf_form form, compare with form rather than
633         DW_FORM_strp.
634         (output_indirect_strings): Pass DW_FORM_strp to
635         output_indirect_string traversion.
636         (dwarf2out_finish): Output .debug_line_str strings.
637         (dwarf2out_c_finalize): Clear debug_line_str_section and
638         debug_line_str_hash.
640 2016-10-31  Tom Tromey  <tom@tromey.com>
642         PR debug/77315
643         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
644         (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
645         DW_OP_GNU_push_tls_address case.
646         (loc_list_from_tree_1): Use DW_OP_form_tls_address.
648 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
650         * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
651         for frame_offset_rel bit.
652         (struct array_descr_info): Add rank field.
653         * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
654         and placeholder_seen fields.
655         (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
656         and DW_OP_over.  Optimize DW_OP_pick 0 into DW_OP_dup and
657         DW_OP_pick 1 into DW_OP_over.
658         (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
659         gen_variant_part): Clear placeholder_{arg,seen}.
660         (loc_list_from_tree_1): Drop const from context argument.
661         Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
662         (loc_list_for_address_of_addr_expr_of_indirect_ref,
663         loc_list_from_tree, loc_descriptor_from_tree): Drop const from
664         context argument.
665         (add_scalar_info): Drop const from context argument.  Handle
666         context->placeholder_arg.
667         (add_bound_info): Drop const from context argument.
668         (gen_descr_array_type_die): Drop const from ctx variable.
669         Initialize placeholder_arg and placeholder_seen.  Add DW_AT_rank
670         attribute and use a single DW_TAG_generic_subrange instead of
671         7 DW_TAG_subrange_type for assumed rank arrays.
673         * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
674         * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
675         from bool to 1-bit uchar bitfield.  Add num_assigned and
676         offset_emitted bitfields.
677         (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
678         for dw_val_class_lineptr and dw_val_class_macptr.  Handle
679         dw_val_class_loclistsptr.
680         (new_addr_loc_descr): Fix up formatting.
681         (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
682         (add_AT_low_high_pc): Fix up formatting.
683         (add_AT_loclistsptr): New function.
684         (AT_lbl): Allow dw_val_class_loclistsptr.
685         (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
686         Handle dw_val_class_loclistsptr.
687         (loc_list_idx): New variable.
688         (output_loclists_offsets, assign_location_list_indexes): New
689         functions.
690         (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
691         add size_of_uleb128 of the index.  Drop never used
692         dwarf_split_debug_info AT_index handling.  Handle
693         dw_val_class_loclistsptr.
694         (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
695         if -gsplit-dwarf -gdwarf-5.  Handle dw_val_class_loclistsptr.
696         (output_loc_list): Handle DWARF 5 .debug_loclists* format.
697         (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
698         DW_FORM_loclistx indexes.
699         (output_attr_index_or_value): Fix up formatting.  Don't handle
700         dw_val_class_loc_list here.
701         (output_die): Formatting fixes.  Handle dw_val_class_loclistsptr.
702         For dw_val_class_loc_list call output_loc_list_offset rather than
703         output_attr_index_or_value.
704         (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
705         or .debug_loclists.dwo section name for debug_loc_section.
706         (resolve_addr_in_expr): Formatting fix.
707         (index_location_lists): Likewise.
708         (dwarf2out_finish): If there are any location lists, for
709         -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute.  Call
710         index_location_lists only if have_location_lists.  Call
711         assign_location_list_indexes for -gsplit-dwarf -gdwarf-5.  Emit
712         .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
713         -gsplit-dwarf also emit offset table.
715         * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
716         (size_of_die, value_format, output_die): Use
717         DW_FORM_data16 for 128-bit dw_val_class_const_double or
718         dw_val_class_wide_int.
720         * dwarf2out.c (dwarf_op): Renamed to ...
721         (dwarf_OP): ... this.
722         (convert_descriptor_to_mode, scompare_loc_descriptor,
723         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
724         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
725         callers.
726         (dwarf_AT, dwarf_TAG): New functions.
727         (check_die): Disallow DW_AT_call_all_calls next to
728         DW_AT_GNU_all_call_sites.
729         (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
730         and attributes instead of the corresponding GNU tag and attributes.
731         (gen_subprogram_die): Likewise.  Emit call site information even
732         for -gdwarf-5 -gstrict-dwarf.  Replace DW_AT_GNU_defaulted with
733         DW_AT_defaulted in comment.
734         (resolve_addr): Handle DW_AT_call_origin attribute on
735         DW_TAG_call_site DIE like DW_AT_abstract_origin on
736         DW_TAG_GNU_call_site DIE.
738         * dwarf2out.c (dwarf_op): New function.
739         (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
740         DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
741         (output_loc_operands, output_loc_operands_raw): Likewise.
742         (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
743         mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
744         (resolve_addr_in_expr): Likewise.  Only punt for !dwarf_strict
745         if dwarf_version < 5.
746         (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
747         DW_OP_GNU_xxx.
748         (scompare_loc_descriptor, ucompare_loc_descriptor,
749         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
750         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
751         optimize_location_into_implicit_ptr): Likewise.  Only punt for
752         !dwarf_strict if dwarf_version < 5.
753         (string_cst_pool_decl): Adjust comment.
754         (non_dwarf_expression): Handle DW_OP_implicit_pointer.
756         * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
757         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
758         (struct dw_val_node): Add val_file_implicit field.
759         * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
760         attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
761         output_die): Handle dw_val_class_const_implicit,
762         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
763         (abbrev_die_table): Change into va_gc vec.
764         (abbrev_die_table_allocated, abbrev_die_table_in_use,
765         ABBREV_DIE_TABLE_INCREMENT): Remove.
766         (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
767         (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
768         variables.
769         (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
770         If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
771         vectors.
772         (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
773         functions.
774         (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
775         the implicit value.
776         (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
777         vec.
778         (output_comp_unit): Initialize abbrev_opt_start if emitting the main
779         unit.  Call optimize_abbrev_table.
780         (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
781         abbrev_die_table being a va_gc vec.
783         PR tree-optimization/77860
784         * tree-ssa-reassoc.c (eliminate_using_constants): Handle
785         also integral complex and vector constants.
787         * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
788         optimize_macinfo_range, save_macinfo_strings): Replace
789         DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
790         (output_macinfo): Likewise.  Emit .debug_macro* rather than
791         .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
792         (init_sections_and_labels): Use .debug_macro* labels rather than
793         .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
794         (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
795         or DW_AT_GNU_macros for -gdwarf-5.
797 2016-10-31  Waldemar Brodkorb  <wbx@openadk.org>
799         * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
801 2016-09-11  Le-Chun Wu  <lcwu@google.com>
802             Mark Wielaard  <mjw@redhat.com>
804         * common.opt (Wshadow=global): New option. Default for -Wshadow.
805         (Wshadow=local): New option.
806         (Wshadow-local): Hidden alias for -Wshadow=local.
807         (Wshadow=compatible-local): New option.
808         (Wshadow-compatible-local): Hidden alias for
809         -Wshadow=compatible-local.
810         * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
811         Wshadow=compatible-local.
813 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
815         * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
816         Check slp defs for COND_EXPR by swapping/inverting operands if the
817         new parameter SWAP indicates so.
818         (vect_build_slp_tree_1): New parameter SWAP.  Check COND_EXPR stmt
819         is isomorphic to the first stmt via swapping/inverting.  Store swap
820         information in the new parameter SWAP.
821         (vect_build_slp_tree): New local array SWAP and pass it to function
822         vect_build_slp_tree_1.  Cleanup result handling code for function
823         call to vect_get_and_check_slp_defs.  Skip operand swapping if the
824         order of operands has been fixed as indicated by SWAP[i].
826 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
828         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
829         unnecessary data dependence check after visited store stmt.
831 2016-10-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
833         PR tree-optimization/71915
834         PR tree-optimization/71490
835         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
836         stride_type field.
837         (find_basis_for_base_expr): Require stride types to match when
838         seeking a basis.
839         (alloc_cand_and_find_basis): Record the stride type.
840         (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
841         (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
842         the expressions having those types.
843         (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
844         (create_mul_ssa_cand): Likewise.
845         (create_mul_imm_cand): Likewise.
846         (create_add_ssa_cand): Likewise.
847         (create_add_imm_cand): Likewise.
848         (legal_cast_p_1): Change interface to accept types rather than the
849         expressions having those types.
850         (legal_cast_p): Pass types to legal_cast_p_1.
851         (slsr_process_cast): Pass stride type to
852         alloc_cand_and_find_basis.
853         (slsr_process_copy): Likewise.
854         (dump_candidate): Display stride type when a cast exists.
855         (create_add_on_incoming_edge): Introduce a cast when necessary for
856         the stride type.
857         (analyze_increments): Change the code checking for invalid casts
858         to rely on the stride type, and update the documentation and
859         example.  Change the code checking for pointer multiplies to rely
860         on the stride type.
861         (insert_initializers): Introduce a cast when necessary for the
862         stride type.  Use the stride type for the type of the initializer.
864 2016-10-30  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
866         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
868 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
870         PR rtl-optimization/77919
871         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
872         into memory if both modes are complex and their inner modes have the
873         same precision.  If the two modes are different complex modes, convert
874         each part separately and generate a new CONCAT.
876 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
878         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
880 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
882         PR target/78148
883         * gimple-ssa-store-merging.c
884         (imm_store_chain_info::output_merged_store): Use build_aligned_type
885         instead of SET_TYPE_ALIGN on shared integral type.
887 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
889         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
890         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
891         Adjust comment.
893 2016-10-28  Jeff Law  <law@redhat.com>
895         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
896         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
898 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
900         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
902 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
904         * target.def (min_arithmetic_precision): New hook.
905         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
906         * doc/tm.texi: Regenerate.
907         * internal-fn.c (expand_arith_overflow): Adjust handling of target
908         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
909         * targhooks.c (default_min_arithmetic_precision): New function.
910         * targhooks.h (default_min_arithmetic_precision): Declare.
911         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
912         (sparc_min_arithmetic_precision): New function.
914 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
916         PR target/71847
917         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
918         Swap commutative operands in new RTL if needed.  Handle zero_ext
919         in the set_dest.
920         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
921         PATTERN (insn).
923 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
924             Kugan Vivekanandarajah  <kuganv@linaro.org>
925             Jim Wilson  <jim.wilson@linaro.org>
927         PR tree-optimization/43721
928         * target.def: New hook expand_divmod_libfunc.
929         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
930         * doc/tm.texi: Regenerate.
931         * internal-fn.def: Add new entry for DIVMOD ifn.
932         * internal-fn.c (expand_DIVMOD): New.
933         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
934         targhooks.h.
935         (widen_mul_stats): Add new field divmod_calls_inserted.
936         (target_supports_divmod_p): New.
937         (divmod_candidate_p): Likewise.
938         (convert_to_divmod): Likewise.
939         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
940         renumber_gimple_stmt_uids at beginning of function. Call
941         convert_to_divmod and record stats for divmod.
942         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
943         TARGET_EXPAND_DIVMOD_LIBFUNC.
944         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
945         divmod_simode.
947 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
948             Segher Boessenkool  <segher@kernel.crashing.org>
950         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
951         swapping the arms of the branch.
952         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
953         sequence for the generic signed-signed-signed case.
955 2016-10-28  Jeff Law  <law@redhat.com>
957         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
958         fallthru comment.
959         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
961 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
963         PR rtl-optimization/78029
964         * function.c (prologue_contains, epilogue_contains): New functions.
965         (record_prologue_seq, record_epilogue_seq): New functions.
966         * function.h (prologue_contains, epilogue_contains,
967         record_prologue_seq, record_epilogue_seq): New declarations.
968         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
969         mixing prologue and epilogue insns.
970         (init_deps): Initialize the new fields in struct deps_desc.
971         * sched-int.h (struct deps_desc): New fields last_prologue,
972         last_epilogue, and last_logue_was_epilogue.
973         * shrink-wrap.c (emit_common_heads_for_components): Record all
974         emitted prologue and epilogue insns.
975         (emit_common_tails_for_components): Ditto.
976         (insert_prologue_epilogue_for_components): Ditto.
978 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
980         PR middle-end/22141
981         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
982         * common.opt (fstore-merging): New Optimization option.
983         * opts.c (default_options_table): Add entry for
984         OPT_ftree_store_merging.
985         * fold-const.h (can_native_encode_type_p): Declare prototype.
986         * fold-const.c (can_native_encode_type_p): Define.
987         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
988         (PARAM_MAX_STORES_TO_MERGE): Likewise.
989         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
990         * passes.def: Insert pass_tree_store_merging.
991         * tree-pass.h (make_pass_store_merging): Declare extern
992         prototype.
993         * gimple-ssa-store-merging.c: New file.
994         * doc/invoke.texi (Optimization Options): Document
995         -fstore-merging.
996         (--param documentation): Document store-merging-allow-unaligned
997         and max-stores-to-merge.
999 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
1001         PR middle-end/72747
1002         * gimplify.c (gimplify_init_constructor): Move emit of constructor
1003         assignment to earlier in the if/else logic.
1005 2016-10-28  Richard Biener  <rguenther@suse.de>
1007         PR middle-end/78128
1008         PR middle-end/71002
1009         * fold-const.c (make_bit_field_ref): Only adjust alias set
1010         when the original alias set was zero.
1012 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1014         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
1015         (s390_adjust_loops): New function.
1016         (s390_reorg): Invoke s390_adjust_loops.
1017         * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
1018         ("osc_break"): New insn definition.
1020 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1022         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
1023         * config.gcc: Support alternate archXX cpu levels with
1024         --with-arch= and --with-tune=.
1025         * config/s390/linux.h: Translate new archXX cpu levels to the
1026         original names when calling GAS.
1027         * config/s390/tpf.h: Likewise.
1028         * doc/invoke.texi: Document the alternate cpu level names.
1030 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
1032         PR rtl-optimization/77919
1033         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
1034         MEM if mode1 is not a complex mode.
1036         PR rtl-optimization/78132
1037         * ree.c (combine_reaching_defs): Give up if copy_needed and
1038         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
1040 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1042         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
1044 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
1046         * config/rs6000/constraints.md (wH constraint): Add new
1047         constraints for allowing 32-bit integers (and eventually 8/16-bit
1048         integers) into the vector registers.
1049         (wI constraint): Likewise.
1050         (wJ constraint): Likewise.
1051         (wK constraint): Likewise.
1052         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
1053         -mvsx-small-integer as a default option for ISA 2.07
1054         (i.e. power8).
1055         (POWERPC_MASKS): Likewise.
1056         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
1057         switch to turn off small integer support in vector registers.
1058         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
1059         test for -mupper-regs-di, since it is already done with the
1060         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
1061         -mvsx-small-integer.
1062         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
1063         constraints.
1064         (rs6000_setup_reg_addr_masks): Likewise.
1065         (rs6000_init_hard_regno_mode_ok): Likewise.
1066         (rs6000_option_override_internal): Add consistency checks for
1067         -mvsx-small-integer.
1068         (rs6000_secondary_reload_simple_move): SImode is a simple move if
1069         -mvsx-small-integer.
1070         (rs6000_secondary_reload): Use std::swap.
1071         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
1072         VSX_REGS for small integers in vector registers, since there is no
1073         D-FORM address mode for such types.
1074         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
1075         (rs6000_opt_masks): Add -mvsx-small-integer.
1076         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
1077         support.
1078         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
1079         extracts can be done on ISA 2.07.
1080         (vsx_extract_<mode>): Add support for small integers in vsx
1081         registers.
1082         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
1083         longer support V4SImode in this pattern.
1084         (vsx_extract_si): New insn to support extraction of SImode in ISA
1085         2.07 using either xxextractuw or vspltw.
1086         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
1087         longer support V4SImode in this pattern.
1088         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
1089         wJ, and wK constraints.
1090         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
1091         storing SDmode with VSX instructions.
1092         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
1093         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
1094         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
1095         small integers in vector registers.
1096         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
1097         load and before the FPR and VSX loads.  Remove ??, ! from the
1098         constraints.  Add VEXTSW2D support for small integers in vector
1099         registers.
1100         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
1101         integers in vector registers.
1102         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
1103         move instead of using an UNSPEC.
1104         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
1105         integers in vector registers.
1106         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
1107         move instead of using an UNSPEC.
1108         (movsi_internal1): Add support for -mvsx-small-integer.  Align
1109         columns so that it is more readable.
1110         (SImode splitter for ISA 3.0 constants): Add splitter for
1111         -128..127 constants that can easily be constructed on ISA 3.0.
1112         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
1113         constraints.
1115 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
1117         PR middle-end/78025
1118         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
1119         functions.
1121 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
1123         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
1124         PIC_OFFSET_TABLE_REGNUM twice.
1126 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
1128         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
1129         support for constant operand for OP.
1131 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
1133         * dwarf2out.c (gen_member_die): Only reparent_child instead of
1134         splice_child_die if child doesn't have DW_AT_specification attribute.
1136 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1138         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
1139         (TARGET_HAVE_LDREXBH): Likewise.
1140         (TARGET_HAVE_LDACQ): Likewise.
1142 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1144         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
1145         logic to to decide whether to copy over old value to register for new
1146         value.
1147         * config/arm/sync.md: Add comments explaning why mode and code
1148         attribute are not defined in iterators.md
1149         (thumb1_atomic_op_str): New code attribute.
1150         (thumb1_atomic_newop_str): Likewise.
1151         (thumb1_atomic_fetch_op_str): Likewise.
1152         (thumb1_atomic_fetch_newop_str): Likewise.
1153         (thumb1_atomic_fetch_oldop_str): Likewise.
1154         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
1155         mirror the more restrictive constraints of the Thumb-1 insns after
1156         split compared to Thumb-2 counterpart insns.
1157         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
1158         in sync with non atomic version.
1159         (atomic_nand<mode>): Likewise.
1160         (atomic_fetch_<sync_optab><mode>): Likewise.
1161         (atomic_fetch_nand<mode>): Likewise.
1162         (atomic_<sync_optab>_fetch<mode>): Likewise.
1163         (atomic_nand_fetch<mode>): Likewise.
1164         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
1165         in sync with atomic version.
1166         (thumb1_subsi3_insn): Likewise.
1167         (thumb1_andsi3_insn): Likewise.
1168         (thumb1_iorsi3_insn): Likewise.
1169         (thumb1_xorsi3_insn): Likewise.
1171 2016-10-27  Nick Clifton  <nickc@redhat.com>
1173         * plugin.c (register_plugin_info): Produce an error message if the
1174         plugin is not found in the hash table.
1176 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
1178         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1179         New pattern.
1181 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1183         PR target/78056
1184         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
1185         define builtin functions from the bdesc_spe_predicates or
1186         bdesc_spe_evsel arrays if the builtin mask is not compatible with
1187         the current compiler configuration.
1188         (paired_init_builtins): Modify loop to not define define builtin
1189         functions from the bdesc_paried_preds array if the builtin mask is
1190         not compatible with the current compiler configuration.
1191         (altivec_init_builtins): Modify loops to not define the
1192         __builtin_altivec_stxvl function nor the builtin functions from
1193         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
1194         builtin mask is not compatible with the current compiler
1195         configuration.
1197 2016-10-26  Jeff Law  <law@redhat.com>
1199         * config/sh/sh.c (output_branch): Add missing fallthru comments.
1200         (gen_shl_and): Likewise.
1201         * config/sh/sh.md (movsicc): Add missing fallthru comments.
1203         * config/mips/mips.c (mips16_constant_cost): Add missing
1204         fallthru comments.
1205         (mips16_build_call_stub): Increase buffer size.  Adjust
1206         fallthru comment.
1208 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
1210         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
1211         INSN_UIDs for all insns in compact mode.
1212         (rtx_writer::print_rtx): Likewise.
1213         * print-rtl.h (rtx_writer::flag_compact): Update comment.
1214         * rtl-tests.c (selftest::test_dumping_insns): Update expected
1215         output to include INSN_UID.
1216         (selftest::test_uncond_jump): Likewise.
1218 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
1220         * haifa-sched.c (call_used_regs_num): Rename to...
1221         (call_saved_regs_num): ...this.
1222         (fixed_regs_num): New variable.
1223         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
1224         regs not call_used.
1225         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
1227 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
1229         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
1230         class rtx_writer.
1231         * print-rtl.c (outfile): Delete global.
1232         (sawclose): Likewise.
1233         (indent): Likewise.
1234         (in_call_function_usage): Likewise.
1235         (flag_compact): Likewise.
1236         (flag_simple): Likewise.
1237         (rtx_writer::rtx_writer): New ctor.
1238         (print_rtx_operand_code_0): Convert to...
1239         (rtx_writer::print_rtx_operand_code_0): ...this.
1240         (print_rtx_operand_code_e): Convert to...
1241         (rtx_writer::print_rtx_operand_code_e): ...this.
1242         (print_rtx_operand_codes_E_and_V): Convert to...
1243         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
1244         (print_rtx_operand_code_i): Convert to...
1245         (rtx_writer::print_rtx_operand_code_i): ...this.
1246         (print_rtx_operand_code_r): Convert to...
1247         (rtx_writer::print_rtx_operand_code_r): ...this.
1248         (print_rtx_operand_code_u): Convert to...
1249         (rtx_writer::print_rtx_operand_code_u): ...this.
1250         (print_rtx_operand): Convert to...
1251         (rtx_writer::print_rtx_operand): ...this.
1252         (print_rtx): Convert to...
1253         (rtx_writer::print_rtx): ...this.
1254         (print_inline_rtx): Rewrite in terms of class rtx_writer.
1255         (debug_rtx): Likewise.
1256         (print_rtl): Convert to...
1257         (rtx_writer::print_rtl): ...this.
1258         (print_rtl): Reimplement in terms of class rtx_writer.
1259         (print_rtl_single): Rewrite in terms of class rtx_writer.
1260         (print_rtl_single_with_indent): Convert to..
1261         (rtx_writer::print_rtl_single_with_indent): ...this.
1262         (print_simple_rtl): Rewrite in terms of class rtx_writer.
1263         * print-rtl.h (flag_compact): Delete decl.
1264         (class rtx_writer): New class.
1265         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
1266         class rtx_writer.
1268 2016-10-26  Jeff Law  <law@redhat.com>
1270         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
1271         fallthru.
1273         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
1274         (check_if_valid_sleep_operand): Add missing fallthru comment.
1275         (arc_register_move_cost): Increase buffer size.
1276         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
1277         comment.
1278         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
1280         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
1281         comment.  Add gcc_unreachable for path that should never happen.
1283         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
1284         fallthru comment.
1286 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
1287             Martin Liska  <mliska@suse.cz>
1289         PR fortran/77973
1290         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1291         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1292         on outer context if any.
1294 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
1296         * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
1297         by increment rather than double it.
1298         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
1299         emit a space before args[4].
1300         (END): Don't emit a space before with_arg.
1302 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1304         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
1305         Baseline only alternatives to (i) hold store atomic success value in a
1306         return register rather than a scratch register, (ii) use a low register
1307         for it and to (iii) ensure the cbranchsi insn generated by the split
1308         respect the constraints of Thumb-1 cbranchsi4_insn and
1309         cbranchsi4_scratch.
1310         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
1311         constraints must match those in atomic_compare_and_swap.
1312         (cbranchsi4_scratch): Likewise.
1314 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1316         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
1317         variable.  Add the new parameter to the insn generator.  Set that
1318         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
1319         return value from the negation of that parameter for Thumb-1, keeping
1320         the logic unchanged otherwise except for using bdst as the destination
1321         register of the compare_and_swap insn.
1322         (arm_split_compare_and_swap): Add explanation about how is the value
1323         returned to the function comment.  Rename scratch variable to
1324         neg_bval.  Adapt initialization of variables holding operands to the
1325         new operand numbers.  Use return register to hold result of store
1326         exclusive for Thumb-1, scratch register otherwise.  Construct the
1327         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
1328         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
1329         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
1330         for strongly ordered compare_and_swap.
1331         * config/arm/predicates.md (cc_register_operand): New predicate.
1332         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
1333         match_operand with the new predicate to accept either the CC flag or a
1334         destination register for the boolean return value, restricting it to
1335         CC flag only via constraint.  Adapt operand numbers accordingly.
1337 2016-10-26  Jeff Law  <law@redhat.com>
1339         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
1341         * config/frv/frv.c (comparison_string): Do not fall through after
1342         an error.
1344         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
1345         comment.
1346         (expand_one_builtin): Add missing break.
1348         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
1349         (m32c_legitimate_address_p): Likewise.
1351         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
1353         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
1355         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
1356         fallthru comment.
1358         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
1359         fallthru comment.
1361         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
1363         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
1364         comment.
1365         (rl78_asm_ctor_dtor): Increase buffer size.
1367         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
1368         buffer size.
1369         (xstormy16_asm_output_constructor): Likewise.
1371         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
1372         size.
1374         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
1375         comment to silence warning.
1377         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
1378         (spu_legitimate_address_p): Fix logic error and add missing fallthru
1379         comment.
1381 2016-10-26  Michael Matz  <matz@suse.de>
1383         PR tree-optimization/78060
1384         PR tree-optimization/78061
1385         PR tree-optimization/78088
1386         * tree-ssa-loop-split.c (easy_exit_values): New function.
1387         (tree_ssa_split_loops): Use it.
1388         (compute_new_first_bound): Change order of operations,
1389         fix invalid use of types.
1391 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
1393         gen-pass-instances.awk is sensitive to the order in which
1394         passes are added; passes that appear later have to be added first.
1396         PR target/71676
1397         PR target/71678
1398         * config/avr/avr-passes.def: Swap order of directives for
1399         gen-pass-instances.awk.
1401 2016-10-25  Jeff Law  <law@redhat.com>
1403         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
1404         (vax_notice_update_cc): Likewise.
1406 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1408         * config.gcc (sparc*-*-solaris2*): Adjust.
1409         (sparc64-*-linux*): Likewise.
1410         * config/sparc/default-64.h: Rename to...
1411         * config/sparc/default64.h: ...this.
1412         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
1413         with TARGET_ARCH64.
1414         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
1415         * config/sparc/sparc.h: Minor tweaks.
1416         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
1417         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
1419 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
1421         * input.c (fcache::file_patch): Add comment about lifetime.
1422         (selftest::cpp_reader_ptr): New class.
1423         (selftest::lexer_test): Convert m_parser from cpp_reader *
1424         to a cpp_reader_ptr, and move m_tempfile to after it.
1425         (selftest::lexer_test::lexer_test): Update for above reordering.
1426         (lexer_test::~lexer_test): Move cleanup of m_parser to
1427         cpp_reader_ptr's dtor.
1429 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
1431         * toplev.c (toplev::main): Remove call to
1432         location_adhoc_data_fini.
1434 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1436         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1437         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
1439 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
1441         * ggc-tests.c (forcibly_ggc_collect): Rename to...
1442         (selftest::forcibly_ggc_collect): ...this, and remove "static".
1443         (test_basic_struct): Update for above renaming.
1444         (test_length): Likewise.
1445         (test_union): Likewise.
1446         (test_finalization): Likewise.
1447         (test_deletable_global): Likewise.
1448         (test_inheritance): Likewise.
1449         (test_chain_next): Likewise.
1450         (test_user_struct): Likewise.
1451         (test_tree_marking): Likewise.
1452         * selftest-run-tests.c (selftest::run_tests): Call
1453         selftest::forcibly_ggc_collect at the end of the selftests.
1454         * selftest.h (selftest::forcibly_ggc_collect): New decl.
1456 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1458         PR target/78102
1459         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
1460         * optabs.c (expand_vec_cond_expr): For comparison codes
1461         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
1462         (expand_vec_cmp_expr): For comparison codes
1463         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
1464         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
1465         Add enum tree_code argument.
1466         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
1467         inline functions.
1468         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
1469         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
1470         fallback.
1471         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
1472         NE_EXPR, attempt to use vcondeq_optab as fallback.
1473         * tree-vect-generic.c (expand_vector_comparison,
1474         expand_vector_divmod, expand_vector_condition): Adjust
1475         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
1476         * tree-vect-stmts.c (vectorizable_condition,
1477         vectorizable_comparison): Likewise.
1478         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
1479         check_bool_pattern, search_type_for_mask_1): Likewise.
1480         * expr.c (do_store_flag): Likewise.
1481         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
1482         @code{vcondeq@var{m}@var{n}}): Document.
1483         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
1484         New expanders.
1486 2016-10-25  Jeff Law  <law@redhat.com>
1488         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
1489         comment.
1490         (v850_output_aligned_bss): Add missing break.
1492         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
1494 2016-10-25  Martin Liska  <mliska@suse.cz>
1496         PR sanitizer/78106
1497         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
1498         statements as they can also contain possibly a freeing call.
1500 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1501             Martin Liska  <mliska@suse.cz>
1503         PR ipa/78099
1504         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
1505         * ipa-icf.c (sem_function::get_hash): Add target optimization
1506         node to hash.
1508 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
1510         PR target/78041
1511         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
1512         Remove partial overlap check for shift by 1.
1513         (ashldi3_neon): Likewise.
1515 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1517         * config/arm/constraints.md (Q constraint): Document its use for
1518         Thumb-1.
1519         (Pf constraint): New constraint for relaxed, consume or relaxed memory
1520         models.
1521         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
1522         alternatives to allow any register when memory model matches Pf and
1523         thus lda is used, but only low registers otherwise.  Use unpredicated
1524         output template for Thumb-1 targets.
1525         (atomic_store<mode>): Likewise for stl.
1526         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
1527         whose output template does not have predication.
1528         (arm_load_acquire_exclusive<mode>): Likewise.
1529         (arm_load_exclusivesi): Likewise.
1530         (arm_load_acquire_exclusivesi): Likewise.
1531         (arm_store_release_exclusive<mode>): Likewise.
1532         (arm_store_exclusive<mode>): Use unpredicated output template for
1533         Thumb-1 targets.
1535 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1537         * internal-fn.def (LAUNDER): New internal function.
1538         * internal-fn.c (expand_LAUNDER): New function.
1540 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
1541             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
1543         New avr target pass to work around performance loss by PR fix.
1545         PR target/71676
1546         PR target/71678
1547         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
1548         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
1549         * config/avr/predicates.md (extend_operator): New.
1550         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
1551         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
1552         (make_avr_pass_casesi): New prototypes.
1553         * config/avr/avr.c (print-rtl.h): Include it.
1554         (pass_data avr_pass_data_casesi): Data for new pass.
1555         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
1556         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
1557         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
1558         (avr_optimize_casesi): New functions.
1560 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
1561             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
1563         PR target/71676
1564         PR target/71678
1565         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
1567 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
1569         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
1570         DW_AT_rvalue_reference attributes.
1572 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1574         * doc/invoke.text (Wint-in-bool-context): Update documentation.
1575         * value-prof.c (stringop_block_profile): Fix a warning.
1577 2016-10-24  Martin Sebor  <msebor@redhat.com>
1579         PR middle-end/77735
1580         * builtins.c (string_length): New function.
1581         (c_strlen): Use string_length.  Correctly handle wide strings.
1582         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
1583         functions.
1584         (target_int_max): Call target_max_value.
1585         (format_result::knownrange): New data member.
1586         (fmtresult::fmtresult): Define default constructor.
1587         (format_integer): Use it and set format_result::knownrange.
1588         Handle global constants.
1589         (format_floating_max): Add third argument.
1590         (format_floating): Recompute maximum value for %a for each argument.
1591         (get_string_length): Use fmtresult default ctor.
1592         (format_string): Set format_result::knownrange.
1593         (format_directive): Check format_result::knownrange.
1594         (add_bytes): Same.  Correct caret placement in diagnostics.
1595         (pass_sprintf_length::compute_format_length): Set
1596         format_result::knownrange.
1597         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
1599 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
1601         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
1602         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
1604 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
1606         PR debug/77985
1607         * dwarf2out.c (file_table_relative_p): Remove.
1608         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
1609         also for absolute paths.
1610         * doc/tm.texi: Update.
1611         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
1612         * target.def (force_at_comp_dir): Remove hook.
1613         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
1615 2016-10-24  Richard Biener  <rguenther@suse.de>
1617         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
1618         backedges when identifying the single predecessor to take
1619         conditional info from.  Use SCEV to get at ranges for loop IVs.
1620         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
1621         avoid false warning.
1623 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
1625         PR target/78093
1626         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
1627         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
1628         (avr_address_tiny_absdata_p): New static function.
1629         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
1630         it to determine validity of constant addresses.
1631         (avr_attribute_table) [absdata]: New variable attribute...
1632         (avr_handle_absdata_attribute): ...and handler.
1633         (avr_decl_absdata_p): New static function.
1634         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
1635         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
1636         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
1638 2016-10-24  Richard Biener  <rguenther@suse.de>
1640         PR tree-optimization/78076
1641         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
1642         also on the loop tree root.
1644 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
1646         * config/i386/i386.c (ix86_fold_builtin): Handle
1647         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
1648         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1649         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
1650         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
1652 2016-10-24  Martin Liska  <mliska@suse.cz>
1654         PR sanitizer/77966
1655         * opts.c (finish_options): Skip conditionally.
1657 2016-10-23  Martin Sebor  <msebor@redhat.com>
1659         PR target/77837
1660         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
1661         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
1663 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1665         * config/sparc/sparc.md (cpu_feature): Minor tweak.
1666         (enabled): Likewise.
1667         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1668         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1669         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1670         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1671         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1672         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1674 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1676         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1677         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
1679 2016-10-21  Andrew Pinski  <apinski@cavium.com>
1681         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
1682         integer constants.
1683         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
1684         implementer_id to unsigned char.
1685         Change part_no to unsigned int.
1686         (AARCH64_BIG_LITTLE): New define.
1687         (INVALID_IMP): New define.
1688         (INVALID_CORE): New define.
1689         (cpu_data): Change the last element's implementer_id and part_no to
1690         integers.
1691         (valid_bL_string_p): Rewrite to ..
1692         (valid_bL_core_p): this for integers instead of strings.
1693         (parse_field): New function.
1694         (contains_string_p): Rewrite to ...
1695         (contains_core_p): this for integers and only for the part_no.
1696         (host_detect_local_cpu): Rewrite handling of implementation and
1697         par num to be integers; simplifying the code.
1699 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1701         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
1702         value range for pointers in more cases.
1704 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
1706         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
1707         Add extra argument to allow emitting the move immediate.
1708         Use add/sub with positive immediate.
1709         (aarch64_add_constant): Add inline function.
1710         (aarch64_add_sp): Likewise.
1711         (aarch64_sub_sp): Likewise.
1712         (aarch64_expand_prologue): Call aarch64_sub_sp.
1713         (aarch64_expand_epilogue): Call aarch64_add_sp.
1714         Decide when to leave out move.
1715         (aarch64_output_mi_thunk): Call aarch64_add_constant.
1717 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
1719         * config/aarch64/aarch64.c (aarch64_layout_frame):
1720         Align FP callee-saves.
1722 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
1724         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
1725         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
1726         Formatting fixes.
1727         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
1728         _rdseed64_step): Likewise.
1729         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
1731         PR target/78057
1732         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1733         and tree-ssanames.h.
1734         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1735         with INTEGER_CST argument.
1736         (ix86_gimple_fold_builtin): New function.
1737         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1739         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
1740         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
1741         (ranges_table_allocated, ranges_table_in_use,
1742         ranges_by_label_allocated, ranges_by_label_in_use,
1743         RANGES_TABLE_INCREMENT): Removed.
1744         (add_ranges_num): Use vec_safe_push into ranges_table.
1745         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
1746         (output_ranges): Adjust for ranges_table and ranges_by_label
1747         conversion from arrays to vec.
1748         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
1749         conversion from arrays to vec.
1750         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
1751         ranges_table_in_use, ranges_by_label_allocated and
1752         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
1754         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
1755         if needed.  Re-add origin_die variable and its initialization.
1757         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
1758         even for -fstack-reuse=none, or for volatile vars etc.
1760 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
1762         * print-rtl-function.c (flag_compact): Move extern decl to...
1763         * print-rtl.h (flag_compact): ...here.
1764         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
1765         (ASSERT_RTL_DUMP_EQ): New macro.
1766         (selftest::test_dumping_regs): New function.
1767         (selftest::test_dumping_insns): New function.
1768         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
1769         the insns.
1770         (selftest::rtl_tests_c_tests): Call the new test functions.
1772 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1774         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1775         (outgoing_edges_match): Likewise.
1776         (try_crossjump_to_edge): Likewise.
1777         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1778         (rtl_tidy_fallthru_edge): Likewise.
1779         * rtl.h (tablejump_p): Adjust prototype.
1780         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
1782 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1784         * rtl.h (label_ref_label): New function.
1785         (set_label_ref_label): New function.
1786         (LABEL_REF_LABEL): Delete.
1787         * alias.c (rtx_equal_for_memref_p): Adjust.
1788         * cfgbuild.c (make_edges): Likewise.
1789         (purge_dead_tablejump_edges): Likewise.
1790         * cfgexpand.c (convert_debug_memory_address): Likewise.
1791         * cfgrtl.c (patch_jump_insn): Likewise.
1792         * combine.c (distribute_notes): Likewise.
1793         * cse.c (hash_rtx_cb): Likewise.
1794         (exp_equiv_p): Likewise.
1795         (fold_rtx): Likewise.
1796         (check_for_label_ref): Likewise.
1797         * cselib.c (rtx_equal_for_cselib_1): Likewise.
1798         (cselib_hash_rtx): Likewise.
1799         * emit-rtl.c (mark_label_nuses): Likewise.
1800         * explow.c (convert_memory_address_addr_space_1): Likewise.
1801         * final.c (output_asm_label): Likewise.
1802         (output_addr_const): Likewise.
1803         * gcse.c (add_label_notes): Likewise.
1804         * genconfig.c (walk_insn_part): Likewise.
1805         * genrecog.c (validate_pattern): Likewise.
1806         * ifcvt.c (cond_exec_get_condition): Likewise.
1807         (noce_emit_store_flag): Likewise.
1808         (noce_get_alt_condition): Likewise.
1809         (noce_get_condition): Likewise.
1810         * jump.c (maybe_propagate_label_ref): Likewise.
1811         (mark_jump_label_1): Likewise.
1812         (redirect_exp_1): Likewise.
1813         (rtx_renumbered_equal_p): Likewise.
1814         * lra-constraints.c (operands_match_p): Likewise.
1815         * print-rtl.c (print_value): Likewise.
1816         * reload.c (find_reloads): Likewise.
1817         * reload1.c (set_label_offsets): Likewise.
1818         * reorg.c (get_branch_condition): Likewise.
1819         * rtl-tests.c (test_uncond_jump): Likewise.
1820         * rtl.c (rtx_equal_p_cb): Likewise.
1821         (rtx_equal_p): Likewise.
1822         * rtlanal.c (reg_mentioned_p): Likewise.
1823         (rtx_referenced_p): Likewise.
1824         (get_condition): Likewise.
1825         * varasm.c (const_hash_1): Likewise.
1826         (compare_constant): Likewise.
1827         (const_rtx_hash_1): Likewise.
1828         (output_constant_pool_1): Likewise.
1830 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1832         PR target/71627
1833         * reload.c (find_valid_class_1): Allow regclass if atleast one
1834         regno in regclass is ok. Compute and use rclass size based on
1835         actually available regnos for mode in rclass.
1837 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1839         * config/sparc/sparc-modes.def (CCV): New.
1840         (CCXV): Likewise.
1841         * config/sparc/predicates.md (v_comparison_operator): New.
1842         (icc_comparison_operator): Add support for CCV/CCXV.
1843         (xcc_comparison_operator): Likewise.
1844         * config/sparc/sparc.c (output_cbranch): Likewise.
1845         (sparc_print_operand): Likewise.
1846         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1847         (uaddvdi4): New expander.
1848         (addvdi4): Likewise.
1849         (uaddvdi4_sp32): New instruction.
1850         (addvdi4_sp32): Likewise.
1851         (uaddvsi4): New expander.
1852         (addvsi4): Likewise.
1853         (cmp_ccc_plus_sltu_set): New instruction.
1854         (cmp_ccv_plus): Likewise.
1855         (cmp_ccxv_plus): Likewise.
1856         (cmp_ccv_plus_set): Likewise.
1857         (cmp_ccxv_plus_set): Likewise.
1858         (cmp_ccv_plus_sltu_set): Likewise.
1859         (uaddvdi4): New expander.
1860         (subvdi4): Likewise.
1861         (usubdi4_sp32): New instruction.
1862         (subvdi4_sp32): Likewise.
1863         (usubvsi4): New expander.
1864         (subvsi4): Likewise.
1865         (cmpsi_minus_sltu_set): New instruction.
1866         (cmp_ccv_minus): Likewise.
1867         (cmp_ccxv_minus): Likewise.
1868         (cmp_ccv_minus_set): Likewise.
1869         (cmp_ccxv_minus_set): Likewise.
1870         (cmp_ccv_minus_sltu_set): Likewise.
1871         (unegvdi3): New expander.
1872         (negvdi3): Likewise.
1873         (unegdi3_sp32): New instruction.
1874         (negvdi3_sp32): Likewise.
1875         (unegvsi3): New expander.
1876         (negvsi3): Likewise.
1877         (cmp_ccc_neg_sltu_set): New instruction.
1878         (cmp_ccv_neg): Likewise.
1879         (cmp_ccxv_neg): Likewise.
1880         (cmp_ccv_neg_set): Likewise.
1881         (cmp_ccxv_neg_set): Likewise.
1882         (cmp_ccv_neg_sltu_set): Likewise.
1884         * tree-ssa-loop-split.c: Remove trailing spaces.
1885         * match.pd: Likewise.
1887 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1889         PR rtl-optimization/78038
1890         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1891         be deduced to set REG through the RTL structure.
1892         (make_defs_and_copies_lists): Return false on a failing get_defs call.
1894 2016-10-21  Richard Biener  <rguenther@suse.de>
1896         PR tree-optimization/78051
1897         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
1898         and mark replaced if folding did something.
1900 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
1902         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
1903         and "protected" in visibility types.
1904         (rs6000_xcoff_declare_function_name): Fix formatting.
1905         (rs6000_xcoff_declare_object_name): Fix formatting.
1907 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
1909         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
1910         and IX86_BUILTIN_HUGE_VALQ here ...
1911         (ix86_expand_builtin): ... not here.
1913 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
1915         * doc/gty.texi (for_user): Use @item next to @findex.
1917 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
1919         PR target/78037
1920         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1921         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1922         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1923         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1924         __builtin_ia32_lzcnt_u16.
1925         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1926         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1927         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1928         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1929         (bmi_tzcnt_<mode>): New expander.
1930         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1931         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1932         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1933         (lzcnt_<mode>): New expander.
1934         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1935         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1936         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1937         (UINT64_FTYPE_UINT64): New.
1938         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1939         (__builtin_ia32_lzcnt_u16): New description.
1940         (__builtin_ia32_lzcnt_u32): Ditto.
1941         (__builtin_ia32_lzcnt_u64): Ditto.
1942         (__builtin_ctzs): Remove description.
1943         (__builtin_ia32_tzcnt_u16): New description.
1944         (__builtin_ia32_tzcnt_u32): Ditto.
1945         (__builtin_ia32_tzcnt_u64): Ditto.
1946         * config/i386/i386.c (ix86_expand_args_builtin): Handle
1947         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1949 2016-10-20  Martin Liska  <mliska@suse.cz>
1951         PR lto/78049
1952         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
1953         comparison with STMT_UID_NOT_IN_RANGE.
1954         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
1955         LTRANS.
1957 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1959         * compare-elim.c (conforming_compare): Accept UNSPECs.
1960         (find_comparison_dom_walker::before_dom_children): Deal with
1961         instructions both using and killing the flags register.
1962         (equivalent_reg_at_start): New function extracted from...
1963         (try_eliminate_compare): ...here.  Use it and add support for
1964         registers and UNSPECs as second operand of the compare.
1965         * config/visium/visium-modes.def (CCV): New.
1966         * config/visium/predicates.md (visium_v_comparison_operator): New.
1967         (visium_branch_operator): Deal with CCV mode.
1968         * config/visium/visium.c (visium_select_cc_mode): Likewise.
1969         (output_cbranch): Likewise.
1970         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1971         (uaddv<mode>4): New expander.
1972         (addv<mode>4): Likewise.
1973         (add<mode>3_insn_set_carry): New instruction.
1974         (add<mode>3_insn_set_overflow): Likewise.
1975         (addsi3_insn_set_overflow): Likewise.
1976         (usubv<mode>4): New expander.
1977         (subv<mode>4): Likewise.
1978         (sub<mode>3_insn_set_carry): New instruction.
1979         (sub<mode>3_insn_set_overflow): Likewise.
1980         (subsi3_insn_set_overflow): Likewise.
1981         (unegv<mode>3): New expander.
1982         (negv<mode>3): Likewise.
1983         (neg<mode>2_insn_set_overflow): New instruction.
1984         (addv_tst<mode>): Likewise.
1985         (subv_tst<mode>): Likewise.
1986         (negv_tst<mode>): Likewise.
1987         (cbranch<mode>4_addv_insn): New splitter and instruction.
1988         (cbranch<mode>4_subv_insn): Likewise.
1989         (cbranch<mode>4_negv_insn): Likewise.
1991 2016-10-20  Richard Biener  <rguenther@suse.de>
1993         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
1994         Handle decls possibly not bound.
1995         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
1996         nothing_id for decls that might not be bound if we are interested
1997         for the address.
1998         (get_constraint_for_component_ref): Deal with that.
2000 2016-10-20  Michael Matz  <matz@suse.de>
2002         Loop splitting.
2003         * common.opt (-fsplit-loops): New flag.
2004         * passes.def (pass_loop_split): Add.
2005         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
2006         (enable_fdo_optimizations): Add loop splitting.
2007         * timevar.def (TV_LOOP_SPLIT): Add.
2008         * tree-pass.h (make_pass_loop_split): Declare.
2009         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
2010         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
2011         * tree-ssa-loop-split.c: New file.
2012         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
2013         * doc/invoke.texi (fsplit-loops): Document.
2014         * doc/passes.texi (Loop optimization): Add paragraph about loop
2015         splitting.
2017 2016-10-20  Richard Biener  <rguenther@suse.de>
2019         * cgraphunit.c (analyze_functions): Set node->definition to
2020         false to signal symbol removal to debug_hooks->late_global_decl.
2021         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
2022         WPA signal symbol removal to the debuginfo machinery.
2023         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
2024         using early_finised to guard the we're called for symbol
2025         removal case look at the symtabs definition flag.
2026         (gen_variable_die): Remove redundant check.
2028 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2030         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
2032 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2034         PR tree-optimization/53979
2035         * match.pd ((a ^ b) | a -> a | b): New pattern.
2037 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
2039         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
2040         config/pa/pa64-hpux-lib.h.
2041         (PA_CRTBEGIN_HACK): Likewise.
2042         (DTOR_LIST_BEGIN): Likewise.
2044 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2046         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
2047         register only if "in" and "out" are different registers.
2049 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
2051         * omp-low.c (pass_oacc_device_lower::gate): New method.
2052         (execute): Always call execute_oacc_device_lower.
2054 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2056         PR tree-optimization/77916
2057         PR tree-optimization/77937
2058         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
2059         stopgap fix.
2060         (insert_initializers): Requirement of initializer for -1 should be
2061         based on pointer-typedness of the candidate basis.
2063 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
2065         PR tree-optimization/78005
2066         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
2067         upper (included) bound for niters of prolog loop.
2068         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
2069         Compute niters of scalar loop above which vectorized loop is
2070         preferred, as well as the upper (included) bound for the niters.
2071         (vect_do_peeling): Record niter bound for loops accordingly.
2073 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
2075         PR lto/77458
2076         * tree-core.h (enum tree_index): Put the complex types after their
2077         component types.
2078         * tree-streamer.c (verify_common_node_recorded): New function.
2079         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
2081 2016-10-19  Martin Liska  <mliska@suse.cz>
2083         * cgraph.h (cgraph_edge::binds_to_current_def_p):
2084         Replace NULL with false as a return value.
2086 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
2088         PR tree-optimization/78024
2089         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
2090         don't clear BB_VISITED after processing.
2092 2016-10-19  Richard Biener  <rguenther@suse.de>
2094         * domwalk.c (dom_walker::walk): Use RPO order.
2096 2016-10-19  Richard Biener  <rguenther@suse.de>
2098         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
2099         stmts_to_remove.
2100         (evrp_dom_walker::~evrp_dom_walker): Free it.
2101         (evrp_dom_walker::stmts_to_remove): Add.
2102         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
2103         whose output we fully propagate for removal.  Propagate
2104         into BB destination PHI arguments.
2105         (execute_early_vrp): Remove queued stmts.  Dump value ranges
2106         before stmt removal.
2108 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
2110         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
2111         * passes.def: Add two instances of pass_walloca.
2112         * tree-pass.h (make_pass_walloca): New.
2113         * gimple-ssa-warn-alloca.c: New file.
2114         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
2115         -Wvla-larger-than= options.
2117 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
2119         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
2120         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
2122 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2124         * config/rs6000/altivec.h (vec_xl_len): New macro.
2125         (vec_xst_len): New macro.
2126         (vec_cmpnez): New macro.
2127         (vec_cntlz_lsbb): New macro.
2128         (vec_cnttz_lsbb): New macro.
2129         (vec_xlx): New macro.
2130         (vec_xrx): New macro.
2131         (vec_all_nez): New C++ predicate template.
2132         (vec_any_eqz): New C++ predicate template.
2133         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
2134         conditional compilation.
2135         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
2136         conditional compilation.
2137         (vec_all_nez): New macro.
2138         (vec_any_eqz): New macro.
2139         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
2140         compilation.
2141         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
2142         compilation.
2143         * config/rs6000/vector.md (VI): Moved this mode iterator
2144         definition from altivec.md to vector.md.
2145         (UNSPEC_NEZ_P): New value.
2146         (vector_ne_<mode>_p): New expansion for implementation of
2147         vec_all_ne and vec_any_eq built-in functions.
2148         (vector_nez_<mode>_p): New expansion for implementation of
2149         vec_all_nez and vec_any_eqz built-in functions.
2150         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
2151         and vec_any_eq built-in function.
2152         (cr6_test_for_zero): New commentary to explain this expansion.
2153         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
2154         (cr6_test_for_lt): New commentary to explain this expansion.
2155         (cr6_test_for_lt_reverse): New commentary to explain this
2156         expansion.
2157         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2158         overloaded function prototypes for vec_all_ne, vec_all_nez,
2159         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
2160         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
2161         built-in functions.
2162         (altivec_resolve_overloaded_builtin): Modify the handling of
2163         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
2164         the compiler is configured to support TARGET_P9_VECTOR.
2165         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
2166         to explain the special processing that is given to predicate
2167         built-ins introduced using this macro.
2168         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
2169         the special processing given to predicate built-ins introduced
2170         using this macro.
2171         (BU_VSX_P): Likewise.
2172         (BU_P8V_AV_P): Likewise.
2173         (BU_P9V_AV_P): Likewise.
2174         (BU_P9V_AV_X): New macro.
2175         (BU_P9V_64BIT_AV_X): New macro.
2176         (BU_P9V_VSX_3): New macro.
2177         (BU_P9V_OVERLOAD_P): New macro.
2178         (LXVL): New BU_P9V_64BIT_VSX_2.
2179         (VEXTUBLX): New BU_P9V_AV_2.
2180         (VEXTUBRX): Likewise.
2181         (VEXTUHLX): Likewise.
2182         (VEXTUHRX): Likewise.
2183         (VEXTUWLX): Likewise.
2184         (VEXTUWRX): Likewise.
2185         (STXVL): New BU_P9V_64BIT_AV_X.
2186         (VCLZLSBB): New BU_P9V_AV_1.
2187         (VCTZLSBB): Likewise.
2188         (CMPNEB): New BU_P9V_AV_2.
2189         (CMPNEH): Likewise.
2190         (CMPNEW): Likewise.
2191         (CMPNEF): Likewise.
2192         (CMPNED): Likewise.
2193         (VCMPNEB_P): New BU_P9V_AV_P.
2194         (VCMPNEH_P): Likewise.
2195         (VCMPNEW_P): Likewise.
2196         (VCMPNED_P): Likewise.
2197         (VCMPNEFP_P): Likewise.
2198         (VCMPNEDP_P): Likewise.
2199         (CMPNEZB): New BU_P9V_AV_2.
2200         (CMPNEZH): Likewise.
2201         (CMPNEZW): Likewise.
2202         (VCMPNEZB_P): New BU_P9V_AV_P.
2203         (VCMPNEZH_P): Likewise.
2204         (VCMPNEZW_P): Likewise.
2205         (LXVL): New BU_P9V_OVERLOAD_2.
2206         (STXVL): New BU_P9V_OVERLOAD_3.
2207         (VEXTULX): New BU_P9V_OVERLOAD_2.
2208         (VEXTURX): Likewise.
2209         (CMPNEZ): Likewise.
2210         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
2211         (VCMPNE_P): Likewise.
2212         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
2213         (VCTZLSBB): Likewise.
2214         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
2215         comment to explain mode used for scratch register.
2216         (altivec_expand_stxvl_builtin): New function.
2217         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
2218         (altivec_init_builtins): Add initialized variable
2219         void_ftype_v16qi_pvoid_long and use this type to define the
2220         built-in function __builtin_altivec_stxvl.
2221         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
2222         (UNSPEC_STXVL): New value.
2223         (UNSPEC_VCLZLSBB): New value.
2224         (UNSPEC_VCTZLSBB): New value.
2225         (UNSPEC_VEXTUBLX): New value.
2226         (UNSPEC_VEXTUHLX): New value.
2227         (UNSPEC_VEXTUWLX): New value.
2228         (UNSPEC_VEXTUBRX): New value.
2229         (UNSPEC_VEXTUHRX): New value.
2230         (UNSPEC_VEXTUWRX): New value.
2231         (UNSPEC_VCMPNEB): New value.
2232         (UNSPEC_VCMPNEZB): New value.
2233         (UNSPEC_VCMPNEH): New value.
2234         (UNSPEC_VCMPNEZH): New value.
2235         (UNSPEC_VCMPNEW): New value.
2236         (UNSPEC_VCMPNEZW): New value.
2237         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2238         vector of integer modes.
2239         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
2240         vector of float or double modes.
2241         (*vector_nez_<mode>_p): New insn for vector test all not equal or
2242         zero.
2243         (lxvl): New expand for load VSX vector with length.
2244         (*lxvl): New insn for load VSX vector with length.
2245         (stxvl): New expand for store VSX vector with length.
2246         (*stxvl): New insn for store VSX vector with length.
2247         (vcmpneb): New insn for vector of byte compare not equal.
2248         (vcmpnezb): New insn for vector of byte compare not equal or zero.
2249         (vcmpneh): New insn for vector of half word compare not equal.
2250         (vcmpnezh): New insn for vector of half word compare not equal or
2251         zero.
2252         (vcmpnew): New insn for vector of word compare not equal.
2253         (vcmpne<VSs>): New insn for vector of float or double compare not
2254         equal.
2255         (vcmpnezw): New insn for vector of word compare not equal or zero.
2256         (vclzlsbb): New insn for vector count leading zero
2257         least-significant bits byte.
2258         (vctzlsbb): New insn for vector count trailing zero least
2259         signficant bits byte.
2260         (vextublx): New insn for vector extract unsigned byte left
2261         indexed.
2262         (vextubrx): New insn for vector extract unsigned byte right
2263         indexed.
2264         (vextuhlx): New insn for vector extract unsigned half word left
2265         indexed.
2266         (vextuhrx): New insn for vector extract unsigned half word right
2267         indexed.
2268         (vextuwlx): New insn for vector extract unsigned word left
2269         indexed.
2270         (vextuwrx): New insn for vector extract unsigned word right
2271         indexed.
2272         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
2273         clarify intent of this constant.
2274         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
2275         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
2276         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
2277         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
2278         and vec_xrx functions.
2280 2016-10-18  Andrew Pinski  <apinski@cavium.com>
2282         PR tree-opt/65950
2283         * predict.c (is_exit_with_zero_arg): New function.
2284         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
2285         as nottaken.
2287 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
2289         PR target/77991
2290         * config/i386/i386.c (legitimize_tls_address)
2291         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
2292         convert dest to Pmode if different than Pmode.
2294 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2296         PR tree-optimization/77916
2297         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
2298         stopgap fix, as pointers with -1 increment are still broken.
2300 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
2302         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
2303         mapping class decoration from here...
2304         (rs6000_xcoff_encode_section): ...to here.
2306         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
2307         if shrink-wrapping and optimizing for speed.
2309 2016-10-18  Richard Biener  <rguenther@suse.de>
2311         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2312         not visited but non-executable predecessors.  Return taken edge.
2313         Simplify conditions and refactor propagation vs. folding step.
2315 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
2317         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
2318         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
2319         (rs6000_get_separate_components): Assert we do not have those
2320         strategies selected.
2322 2016-10-18  Richard Biener  <rguenther@suse.de>
2324         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
2325         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
2326         clearing.
2327         (substitute_and_fold_dom_walker): Adjust constructor.
2328         (substitute_and_fold_dom_walker::before_dom_children): Remove
2329         do_dce flag and handling (always true).
2330         (substitute_and_fold): Likewise.
2331         * tree-vrp.c (vrp_finalize): Adjust.
2332         (execute_early_vrp): Remove final BB_VISITED clearing.
2333         * tree-ssa-ccp.c (ccp_finalize): Adjust.
2334         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2335         * ira.c (ira): Call clear_bb_flags.
2337 2016-10-18  Richard Biener  <rguenther@suse.de>
2339         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
2340         get at the operand to look at with TREE_OPERAND for generic
2341         sub-nodes.
2343 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
2345         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
2346         copy_md_ptr_loc.
2347         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
2348         (write_test_expr): Use rtx_reader_ptr for calls to
2349         fprint_c_condition.
2350         (write_attr_value): Likewise.
2351         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
2352         call to print_md_ptr_loc.
2353         (write_one_condition): Likewise for calls to print_c_condition.
2354         * genconstants.c: Include "statistics.h" and "vec.h".
2355         (main): Update for conversion to member functions.
2356         * genemit.c (emit_c_code): Use rtx_reader_ptr for
2357         call to print_md_ptr_loc.
2358         * genenums.c: Include "statistics.h" and "vec.h".
2359         (main): Update for conversion of traverse_enum_types to a method.
2360         * genmddeps.c: Include "statistics.h" and "vec.h".
2361         * genoutput.c (process_template): Use rtx_reader_ptr for call to
2362         print_md_ptr_loc.
2363         * genpreds.c (write_predicate_subfunction): Likewise.
2364         (write_predicate_expr): Likewise for calls to print_c_condition.
2365         * genrecog.c (print_test): Likewise.
2366         * gensupport.c (process_rtx): Likewise for calls to
2367         copy_md_ptr_loc and join_c_conditions.
2368         (alter_test_for_insn): Likewise for call to join_c_conditions.
2369         (process_substs_on_one_elem): Likewise.
2370         (gen_mnemonic_setattr): Update for move of string_obstack to a
2371         field of rtx_reader.
2372         (mnemonic_htab_callback): Likewise.  Fix formatting.
2373         (gen_mnemonic_attr): Likewise.
2374         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
2375         to print_c_condition.
2376         * read-md.c: Include "statistics.h" and "vec.h".
2377         (string_obstack): Convert this global to field "m_string_obstack"
2378         of class rtx_reader.
2379         (ptr_locs): Likewise, as "m_ptr_locs".
2380         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
2381         (joined_conditions): Likewise, as "m_joined_conditions".
2382         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
2383         (md_constants): Likewise, as "m_md_constants".
2384         (enum_types): Likewise, as "m_enum_types".
2385         (set_md_ptr_loc): Convert to...
2386         (rtx_reader::set_md_ptr_loc): ...member function.
2387         (get_md_ptr_loc): Convert to...
2388         (rtx_reader::get_md_ptr_loc): ...member function.
2389         (copy_md_ptr_loc): Convert to...
2390         (rtx_reader::copy_md_ptr_loc): ...member function.
2391         (fprint_md_ptr_loc): Convert to...
2392         (rtx_reader::fprint_md_ptr_loc): ...member function.
2393         (print_md_ptr_loc): Convert to...
2394         (rtx_reader::print_md_ptr_loc): ...member function.
2395         (join_c_conditions): Convert to...
2396         (rtx_reader::join_c_conditions): ...member function.
2397         (fprint_c_condition): Convert to...
2398         (rtx_reader::fprint_c_condition): ...member function.
2399         (print_c_condition): Convert to...
2400         (rtx_reader::print_c_condition): ...member function.
2401         (read_name): Convert to...
2402         (rtx_reader::read_name): ...member function.
2403         (read_escape): Convert to...
2404         (rtx_reader::read_escape): ...member function.
2405         (read_quoted_string): Convert to...
2406         (rtx_reader::read_quoted_string): ...member function.
2407         (read_braced_string): Convert to...
2408         (rtx_reader::read_braced_string): ...member function.
2409         (read_string): Convert to...
2410         (rtx_reader::read_string): ...member function.
2411         (read_skip_construct): Convert to...
2412         (rtx_reader::read_skip_construct): ...member function.
2413         (handle_constants): Convert to...
2414         (rtx_reader::handle_constants): ...member function.
2415         (traverse_md_constants): Convert to...
2416         (rtx_reader::traverse_md_constants): ...member function.
2417         (handle_enum): Convert to...
2418         (rtx_reader::handle_enum): ...member function.
2419         (lookup_enum_type): Convert to...
2420         (rtx_reader::lookup_enum_type): ...member function.
2421         (traverse_enum_types): Convert to...
2422         (rtx_reader::traverse_enum_types): ...member function.
2423         (rtx_reader::rtx_reader): Move initializations
2424         of various former global data from rtx_reader::read_md_files to
2425         here, as fields, along with the call to unlock_std_streams.
2426         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
2427         the new fields.
2428         (rtx_reader::read_md_files): Move initializations of various
2429         global data from here to the ctor.
2430         * read-md.h (read_name): Convert to...
2431         (rtx_reader::read_name): ...member function.
2432         (rtx_reader::read_escape): New method decl.
2433         (read_quoted_string): Convert to...
2434         (rtx_reader::read_quoted_string): ...member function.
2435         (rtx_reader::read_braced_string): New method decl.
2436         (read_string): Convert to...
2437         (rtx_reader::read_string): ...member function.
2438         (rtx_reader::read_skip_construct): New method decl.
2439         (rtx_reader::set_md_ptr_loc): New method decl.
2440         (rtx_reader::get_md_ptr_loc): New method decl.
2441         (copy_md_ptr_loc): Convert to...
2442         (rtx_reader::copy_md_ptr_loc): ...member function.
2443         (fprint_md_ptr_loc): Convert to...
2444         (rtx_reader::fprint_md_ptr_loc): ...member function.
2445         (print_md_ptr_loc): Convert to...
2446         (rtx_reader::print_md_ptr_loc): ...member function.
2447         (rtx_reader::lookup_enum_type): New method decl.
2448         (rtx_reader::traverse_enum_types): New method decl.
2449         (rtx_reader::handle_constants): New method decl.
2450         (traverse_md_constants): Convert to...
2451         (rtx_reader::traverse_md_constants): ...member function.
2452         (rtx_reader::handle_enum): New method decl.
2453         (rtx_reader::join_c_conditions): New method decl.
2454         (fprint_c_condition): Convert to...
2455         (rtx_reader::fprint_c_condition): ...member function.
2456         (print_c_condition): Convert to...
2457         (rtx_reader::print_c_condition): ...member function.
2458         (rtx_reader::apply_iterator_to_string): New method decl.
2459         (rtx_reader::copy_rtx_for_iterators): New method decl.
2460         (rtx_reader::read_conditions): New method decl.
2461         (rtx_reader::record_potential_iterator_use): New method decl.
2462         (rtx_reader::read_mapping): New method decl.
2463         (rtx_reader::read_rtx): New method decl.
2464         (rtx_reader::read_rtx_code): New method decl.
2465         (rtx_reader::read_rtx_operand): New method decl.
2466         (rtx_reader::read_nested_rtx): New method decl.
2467         (rtx_reader::read_rtx_variadic): New method decl.
2468         (rtx_reader::get_string_obstack): New method.
2469         (rtx_reader::get_md_constants): New method.
2470         (string_obstack): Convert global variable decl to...
2471         (rtx_reader::m_string_obstack): ...this new field.
2472         (rtx_reader::m_ptr_locs): New field.
2473         (rtx_reader::m_ptr_loc_obstack): New field.
2474         (rtx_reader::m_joined_conditions): New field.
2475         (rtx_reader::m_joined_conditions_obstack): New field.
2476         (rtx_reader::m_md_constants): New field.
2477         (rtx_reader::m_enum_types): New field.
2478         * read-rtl.c (apply_iterator_to_string): Convert to...
2479         (rtx_reader::apply_iterator_to_string): ...member function.
2480         (copy_rtx_for_iterators): Convert to...
2481         (rtx_reader::copy_rtx_for_iterators): ...member function.
2482         (add_condition_to_string): Use rtx_reader_ptr for
2483         calls join_c_conditions.
2484         (apply_iterators): Use rtx_reader_ptr for calls to
2485         join_c_conditions and copy_rtx_for_iterators.
2486         (read_conditions): Convert to...
2487         (rtx_reader::read_conditions): ...member function.
2488         (record_potential_iterator_use): Convert to...
2489         (rtx_reader::record_potential_iterator_use): ...member function.
2490         (read_mapping): Convert to...
2491         (rtx_reader::read_mapping): ...member function.
2492         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
2493         (read_rtx): Convert to...
2494         (rtx_reader::read_rtx): ...member function.
2495         (read_rtx_code): Convert to...
2496         (rtx_reader::read_rtx_code): ...member function.
2497         (read_rtx_operand): Convert to...
2498         (rtx_reader::read_rtx_operand): ...member function.  Update for move
2499         of string_obstack to a field.
2500         (read_nested_rtx): Convert to..
2501         (rtx_reader::read_nested_rtx): ...member function.
2502         (read_rtx_variadic): Convert to..
2503         (rtx_reader::read_rtx_variadic): ...member function.
2505 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
2507         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
2509 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
2511         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
2512         for pointer type too.
2513         (ipcp_update_vr): set_ptr_nonnull for pointer.
2515 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
2517         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
2518         pt_solution_singleton_p.
2519         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
2520         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
2521         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
2522         pointer nonnull computed by VRP.
2523         Also Conservatively set pt.null to 1.
2524         (pt_solution_reset): Conservatively set pt.null to 1.
2525         (pt_solution_singleton_or_null_p): Renamed from
2526         pt_solution_singleton_p.
2527         * tree-ssanames.h (set_ptr_nonnull): Declare.
2528         (get_ptr_nonnull): Likewise.
2529         * tree-ssanames.c (set_ptr_nonnull): New.
2530         (get_ptr_nonnull): Likewise.
2531         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
2532         (evrp_dom_walker::before_dom_children): Likewise.
2534 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2536         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2537         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2538         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2539         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2540         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
2541         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
2542         (rs6000_option_override_internal): Clear it if ABI_AIX.
2543         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
2544         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
2546 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2548         * gimple-ssa-strength-reduction.c (record_increment): Remove
2549         garbage comment.
2551 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2553         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
2554         that the result is non-zero if it is true.
2555         (maybe_expand_shift): New wrapper around expand_shift_1.
2556         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
2558 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2560         PR tree-optimization/77916
2561         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
2562         Don't allow a MINUS_EXPR for pointer arithmetic for either known
2563         or unknown strides.
2564         (record_increment): Increments of -1 for unknown strides just use
2565         a multiply initializer like other negative values.
2566         (analyze_increments): Remove stopgap solution for -1 increment
2567         applied to pointer arithmetic.
2569 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
2571         * dominance.c (dom_info::dom_info): Add new constructor for region
2572         which is vector of basic blocks.
2573         (dom_init): New method to initialize members common for both
2574         constructors.
2575         (dom_info::dom_info): Invoke dom_init for partial initialization.
2576         (dom_info::get_idom): Add check to corner cases on basic blocks which
2577         are not in region.
2578         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
2579         to detect unreachable bbs.
2580         (dom_info::calc_idoms): Likewise.
2581         (compute_dom_fast_query_in_region): New function.
2582         (calculate_dominance_info_for_region): Likewise.
2583         (free_dominance_info_for_region): Likewise.
2584         * dominance.h: Add prototypes for introduced region-based functions
2585         tree-if-conv.c: (build_region): New function.
2586         (if_convertible_loop_p_1): Invoke local version of post-dominators
2587         calculation before basic block predication with subsequent freeing
2588         post-dominator info.
2589         (tree_if_conversion): Remove free of post-dominator info
2590         (pass_if_conversion::execute): Delete detection of infinite loops
2591         and fake edges to exit block since post-dominator calculation is
2592         performed per if-converted loop only.
2594 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2596         PR target/77308
2597         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
2598         register explicitly.
2599         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
2600         optimizing for size.
2602 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2604         * config/aarch64/aarch64.c: Delete inclusion of
2605         cortex-a57-fma-steering.h.
2606         (aarch64_override_options): Delete call
2607         to aarch64_register_fma_steering.
2608         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
2609         * config/aarch64/cortex-a57-fma-steering.h: Delete.
2610         * config/aarch64/aarch64-passes.def: New file.
2611         * config/aarch64/cortex-a57-fma-steering.c
2612         (aarch64_register_fma_steering): Delete definition.
2613         (make_pass_fma_steering): Remove static qualifier.
2614         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
2615         (cortex-a57-fma-steering.o): Remove dependency on
2616         cortex-a57-fma-steering.h.
2618 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2620         * explow.c (validize_mem): Do not modify the argument in-place.
2622 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2624         * tree-streamer.c (record_common_node): Explicitly list expected
2625         tree codes.
2627 2016-10-17  Richard Biener  <rguenther@suse.de>
2629         PR tree-optimization/77988
2630         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
2632 2016-10-17  Marek Polacek  <polacek@redhat.com>
2634         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
2636 2016-10-17  Richard Biener  <rguenther@suse.de>
2638         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
2639         before using it.
2641 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2643         PR tree-optimization/71636
2644         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
2646 2016-10-17  Richard Biener  <rguenther@suse.de>
2648         * gimplify.c (gimplify_function_tree): Do not move the outer
2649         binds block.
2651 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
2653         * langhooks.h (struct lang_hooks_for_decls): Remove
2654         function_decl_explicit_p, function_decl_deleted_p and
2655         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
2656         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
2657         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2658         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
2659         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
2660         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
2661         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
2662         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
2663         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
2664         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
2665         * langhooks.c (lhd_decl_dwarf_attribute): New function.
2666         * dwarf2out.c (gen_subprogram_die): Use
2667         lang_hooks.decls.decl_dwarf_attribute instead of
2668         lang_hooks.decls.function_decl_*.
2670 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2672         PR ada/37139
2673         PR ada/67205
2674         * common.opt (-ftrampolines): New option.
2675         * doc/invoke.texi (Code Gen Options): Document it.
2676         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2677         * doc/tm.texi: Regenerate.
2678         * builtins.def: Add init_descriptor and adjust_descriptor.
2679         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
2680         on platforms with descriptors.
2681         (expand_builtin_init_descriptor): New function.
2682         (expand_builtin_adjust_descriptor): Likewise.
2683         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
2684         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
2685         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
2686         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
2687         Set STATIC_CHAIN_REG_P on the static chain register, if any.
2688         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
2689         (expand_call): Likewise.  Move around call to prepare_call_address
2690         and pass all flags to it.
2691         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
2692         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
2693         (gimple_call_set_by_descriptor): New setter.
2694         (gimple_call_by_descriptor_p): New getter.
2695         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
2696         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
2697         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
2698         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2699         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
2700         * rtl.h (STATIC_CHAIN_REG_P): New macro.
2701         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
2702         * target.def (custom_function_descriptors): New POD hook.
2703         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
2704         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
2705         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
2706         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
2707         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
2708         (build_common_builtin_nodes): Initialize init_descriptor and
2709         adjust_descriptor.
2710         * tree-nested.c: Include target.h.
2711         (struct nesting_info): Add 'any_descr_created' field.
2712         (get_descriptor_type): New function.
2713         (lookup_element_for_decl): New function extracted from...
2714         (create_field_for_decl): Likewise.
2715         (lookup_tramp_for_decl): ...here.  Adjust.
2716         (lookup_descr_for_decl): New function.
2717         (convert_tramp_reference_op): Deal with descriptors.
2718         (build_init_call_stmt): New function extracted from...
2719         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
2720         * defaults.h (FUNCTION_ALIGNMENT): Define.
2721         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
2722         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2723         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2724         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
2725         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
2727 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2729         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
2730         constants in CONST_VECTORs.
2732 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2734         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
2735         register as destination of bmask.
2736         (vector_init_bshuffle): Likewise.
2737         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2738         (bmaskdi_vis): Enable only in 64-bit mode.
2740 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
2742         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
2743         make LR a separately shrink-wrapped component unless savres_strategy
2744         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
2745         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
2746         wrapping when not both {SAVE,REST}_INLINE_GPRS.
2748 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2750         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
2751         and keep looping on failure.
2753 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
2755         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
2756         set.
2757         (print_rtx_function): Update example in comment for...
2758         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
2759         non-virtual pseudos with a '%' sigil followed by the regno, offset
2760         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
2761         pseudo is dumped as "%0".
2763 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
2765         PR middle-end/77959
2766         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
2767         return a MEM.
2769 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2771         * config/sparc/sparc-passes.def: New file.
2772         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
2773         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
2774         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
2776 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
2778         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
2779         loop peel to loops with exit test at the beginning.
2781 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
2783         PR rtl-optimization/68212
2784         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
2785         frequency when computing scale factor for peeled copies.
2786         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
2787         values for switch/peel blocks/edges.
2789 2016-10-14  Pedro Alves  <palves@redhat.com>
2791         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
2793 2016-10-14  Catherine Moore  <clm@codesourcery.com>
2795         * config/mips/mips.c (mips_prepare_pch_save): Initialize
2796         micromips_globals to zero.
2798 2016-10-14  Richard Biener  <rguenther@suse.de>
2800         PR tree-optimization/77979
2801         * tree-vrp.c (compare_name_with_value): Handle released SSA names
2802         in the equivalency sets.
2803         (compare_names): Likewise.
2805 2016-10-14  Martin Liska  <mliska@suse.cz>
2807         * builtins.h(target_char_cst_p): Declare the function.
2808         * builtins.c (fold_builtin_memchr): Remove.
2809         (target_char_cst_p): Move the function from gimple-fold.c.
2810         (fold_builtin_3): Do not call the function.
2811         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
2812         (gimple_fold_builtin): Call the function.
2813         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
2815 2016-10-14  Martin Liska  <mliska@suse.cz>
2817         * builtins.c (fold_builtin_strcmp): Remove function.
2818         (fold_builtin_strncmp): Likewise.
2819         (fold_builtin_2): Remove call of the function.
2820         (fold_builtin_3): Likewise.
2821         * fold-const-call.c (fold_const_call): Add constant folding
2822         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
2823         * fold-const-call.h (build_cmp_result): Declare the function.
2824         * gimple-fold.c (gimple_load_first_char): New function.
2825         (gimple_fold_builtin_string_compare): Likewise.
2826         (gimple_fold_builtin): Call the function.
2828 2016-10-14  Nathan Sidwell  <nathan@acm.org>
2830         * gcov-io.c (gcov_open): Deconstify 'mode'.
2832 2016-10-14  Martin Liska  <mliska@suse.cz>
2834         * fold-const.c (c_getstr): Support of properly \0-terminated
2835         string constants.  New argument is added.
2836         * fold-const.h: New argument is added.
2838 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2840         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
2841         New function.
2842         (aarch64_print_hint_for_core): Likewise.
2843         (aarch64_print_hint_for_arch): Likewise.
2844         (aarch64_validate_march): Use it.  Fix indentation in type signature.
2845         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
2846         (aarch64_validate_mtune): Likewise.
2847         (aarch64_handle_attr_arch): Likewise.
2848         (aarch64_handle_attr_cpu): Likewise.
2849         (aarch64_handle_attr_tune): Likewise.
2851 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2853         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
2854         and udivmod_optab.
2856 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
2858         * config/m68k/m68k.c (m68k_option_override): Check
2859         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
2860         instead of stack_limit_rtx.
2862 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
2864         * dwarf2out.c (gen_member_die): Handle inline static data member
2865         definitions.
2867 2016-10-13  Nathan Sidwell  <nathan@acm.org>
2869         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
2870         gcov_var.mode.  Remove unnecessary fstat.
2872 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
2874         PR bootstrap/77962
2875         * function.c (thread_prologue_and_epilogue_insns): Call all
2876         make_*logue_seq in the same order as traditional.  Call them
2877         all a second time if shrink_wrapped_separate.
2879 2016-10-13  Marek Polacek  <polacek@redhat.com>
2881         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2882         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
2883         use -Wno-error.
2885 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2887         PR tree-optimization/77937
2888         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
2889         to infinite when we have a pointer with an increment of -1.
2891 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2893         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
2894         into ...
2895         * memmodel.h: This file.
2896         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
2897           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
2898           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
2899           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
2900           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
2901           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
2902           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
2903           compare-elim.c, config/aarch64/aarch64-builtins.c,
2904           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
2905           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
2906           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
2907           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
2908           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
2909           config/darwin.c, config/epiphany/epiphany.c,
2910           config/epiphany/mode-switch-use.c,
2911           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
2912           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2913           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
2914           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2915           config/m68k/m68k.c, config/mcore/mcore.c,
2916           config/microblaze/microblaze.c, config/mmix/mmix.c,
2917           config/mn10300/mn10300.c, config/moxie/moxie.c,
2918           config/msp430/msp430.c, config/nds32/nds32-cost.c,
2919           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2920           config/nds32/nds32-memory-manipulation.c,
2921           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
2922           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
2923           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
2924           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
2925           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
2926           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
2927           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2928           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2929           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
2930           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
2931           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
2932           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
2933           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
2934           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
2935           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
2936           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
2937           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
2938           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
2939           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
2940           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2941           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
2942           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
2943           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
2944           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
2945           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
2946           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
2947           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
2948           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
2949           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
2950           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
2951           var-tracking.c, varasm.c: Include memmodel.h.
2952         * genattrtab.c (write_header): Include memmodel.h in generated file.
2953         * genautomata.c (main): Likewise.
2954         * gengtype.c (open_base_files): Likewise.
2955         * genopinit.c (main): Likewise.
2956         * genconditions.c (write_header): Include memmodel.h earlier in
2957         generated file.
2958         * genemit.c (main): Likewise.
2959         * genoutput.c (output_prologue): Likewise.
2960         * genpeep.c (main): Likewise.
2961         * genpreds.c (write_insn_preds_c): Likewise.
2962         * genrecog.c (write_header): Likewise.
2963         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
2965 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
2967         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
2968         for new "compact" param of print_rtx_function.  Check for "cinsn"
2969         rather than "insn".
2970         * print-rtl-function.c (flag_compact): New decl.
2971         (print_rtx_function): Add param "compact" and use it to set
2972         flag_compact, adding a description of the effect to the leading
2973         comment, and updating the example output.
2974         * print-rtl.c (flag_compact): New variable.
2975         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
2976         mode.
2977         (print_rtx_operand_code_i): When printing source locations, wrap
2978         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
2979         (print_rtx_operand_code_r): Don't print regnos for hard regs and
2980         virtuals in compact mode.
2981         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
2982         apart from in LABEL_REFs.
2983         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
2984         Don't print basic block ids in compact mode.
2985         (print_rtx):  In compact mode, prefix the code of insns with "c",
2986         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
2987         * print-rtl.h (print_rtx_function): Add "compact" param.
2989 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
2991         * arm.h (TARGET_VFP): Delete.
2992         (TARGET_VFPD32): Remove references to TARGET_VFP.
2993         (TARGET_VFP3, TARGET_VFP5): Likewise.
2994         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
2995         (TARGET_NEON_FP16): Likewise.
2996         (TARGET_FMA): Likewise.
2997         (TARGET_CRYPTO): Likewise.
2998         (TARGET_NEON): Likewise.
2999         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3000         (FUNCTION_ARG_REGNO_P): Likewise.
3001         * arm.c (arm_option_check_internal): Likewise.
3002         (arm_option_override): Likewise.
3003         (use_return_insn): Likewise.
3004         (arm_function_value_regno_p): Likewise.
3005         (arm_apply_result_size): Likewise.
3006         (use_vfp_abi): Likewise.
3007         (arm_legitimate_address_outer_p): Likewise.
3008         (thumb2_legitimate_address_p): Likewise.
3009         (arm_legitimate_index_p): Likewise.
3010         (thumb2_legitimate_index_p): Likewise.
3011         (arm_legitimate_address): Likewise.
3012         (arm_get_vfp_saved_size): Likewise.
3013         (arm_emit_vfp_multi_reg_pop): Likewise.
3014         (arm_get_frame_offsets): Likewise.
3015         (arm_save_coproc_regs): Likewise.
3016         (arm_hard_regno_mode_ok): Likewise.
3017         (arm_expand_epilogue_apcs_frame): Likewise.
3018         (arm_expand_epilogue): Likewise.
3019         (arm_file_start): Likewise.
3020         (arm_conditional_register_usage): Likewise.
3021         (arm_validize_comparison): Use vfp_compare_operand directly.
3022         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
3023         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
3024         unsupported usage.
3025         (arm_atomic_assign_expand_fenv): Likewise.
3026         * arm.md (divsf3): Likewise.
3027         (arm_negsi2): Likewise.
3028         (absdf2): Likewise.
3029         (arm_movdi): Likewise.
3030         (arm_movt): Likewise.
3031         (cbranchsf4): Change predicate to vfp_compare_operand.
3032         (cbranchdf4): Change predicate to vfp_compare_operand.
3033         (cstorehf4): Change predicate to vfp_compare_operand.
3034         (cstoresf4): Change predicate to vfp_compare_operand.
3035         (cstoredf4): Change predicate to vfp_compare_operand.
3036         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
3037         (movhi_insn_arch4, movhi_bytes): Likewise.
3038         * constraints.md (Dt): Likewise.
3039         (Dp): Likewise.
3040         * iterators.md (SDF): Likewise.
3041         * predicates.md (arm_float_compare_operand): Delete.
3042         (const_double_vcvt_power_of_two_reciprocal): Remove references to
3043         TARGET_VFP.
3044         (const_double_vcvt_power_of_two): Likewise.
3045         * thumb2.md thumb2_movsi_insn): Likewise.
3046         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
3047         (movhf_vfp): Likewise.
3048         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
3049         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
3050         (movsf_vfp, thumb2_movsf_vfp): Likewise.
3051         (movdf_vfp, thumb2_movdf_vfp): Likewise.
3052         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
3053         (subsf3_vfp, divsf3_vfp): Likewise.
3054         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
3055         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
3056         (mulsf3negsfsubsf_vfp): Likewise.
3057         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
3058         (floatunssisf2, sqrtsf2_vfp): Likewise.
3059         (movcc_vfp): Likewise.
3060         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
3061         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
3062         (push_multi_vfp): Likewise.
3063         (set_fpscr, get_fpscr): Likewise.
3064         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
3066 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
3068         * arm.h (TARGET_VFP): Unconditionally define to 1.
3069         (arm_fpu_desc): Remove 'model' field.
3070         (TARGET_FPU_MODEL): Delete.
3071         * arm.c (all_fpus): Don't initialize the model field.
3072         (arm_can_inline_p): Don't check the FPU model.
3073         * arm-fpus.def: Remove redundant model field from all FPU
3074         descriptions.
3076 2016-10-13  Richard Biener  <rguenther@suse.de>
3078         PR middle-end/77826
3079         * genmatch.c (struct capture): Add value_match member.
3080         (commutate): Preserve value_match.
3081         (lower_opt_convert): Likewise.
3082         (lower_cond): Likewise.
3083         (replace_id): Likewise.
3084         (struct dt_operand): Add value_match member.
3085         (decision_tree::cmp_node): Compare it.
3086         (decision_tree::insert_operand): Honor it when finding and
3087         when appending a DT_MATCH.
3088         (dt_operand::gen_match_op): Generate a type check after
3089         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
3090         (parser::get_internal_capture_id): New helper.
3091         (parser::finish_match_operand): New function lowering @@<id>.
3092         (parser::parse_capture): Parse @@<id> as value-match.
3093         (parser::parse_expr): Use get_internal_capture_id.
3094         (parser::parse_simplify): Call finish_match_operand.
3095         (walk_captures): New helper.
3096         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
3097         of operand_equal_p.
3098         ((X /[ex] A) * A -> X): Likewise.
3099         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
3100         convert[12] and value-matching.
3101         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
3102         ((X | Y) | Y -> X | Y): Likewise.
3103         ((X ^ Y) ^ Y -> X): Likewise.
3104         (A - (A & B) -> ~B & A): Likewise.
3105         ((T)(P + A) - (T)P -> (T) A): Likewise.
3106         ((T)P - (T)(P + A) -> -(T) A): Likewise.
3107         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
3108         * doc/match-and-simplify.texi: Amend capture section.
3110 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
3112         * config/arc/arc.md (umul_600): Remove predicated variant.
3113         (umul64_600): Likewise.
3115 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
3117         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
3119 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3121         * tree-vect-loop.c (loop_niters_no_overflow): New func.
3122         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
3123         no-overflow information to vect_do_peeling_for_loop_bound and
3124         vect_gen_vector_loop_niters.
3126 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3128         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
3129         iterates 1 time.
3131 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3133         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
3134         adjust_vec automatically.
3135         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
3136         param exit_bb to guard_to.
3137         (slpeel_checking_verify_cfg_after_peeling):
3138         (set_prologue_iterations):
3139         (create_lcssa_for_virtual_phi): New func which is factored out from
3140         slpeel_tree_peel_loop_to_edge.
3141         (slpeel_tree_peel_loop_to_edge):
3142         (iv_phi_p): New func.
3143         (vect_can_advance_ivs_p): Call iv_phi_p.
3144         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
3145         new gimple stmts in basic block.
3146         (vect_gen_niters_for_prolog_loop): Rename to...
3147         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
3148         adjust implementation.
3149         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
3150         sizetype if necessary.
3151         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
3152         it to external function.
3153         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
3154         (vect_gen_vector_loop_niters_mult_vf): New.
3155         (slpeel_update_phi_nodes_for_loops): New.
3156         (slpeel_update_phi_nodes_for_guard1): Reimplement.
3157         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
3158         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
3159         * tree-vect-loop.c (vect_build_loop_niters): Move to file
3160         tree-vect-loop-manip.c
3161         (vect_generate_tmps_on_preheader): Delete.
3162         (vect_transform_loop): Rename vectorization_factor to vf.  Call
3163         vect_do_peeling instead of vect_do_peeling-* functions.
3164         * tree-vectorizer.h (vect_do_peeling): New decl.
3165         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
3166         (vect_do_peeling_for_loop_bound): Delete.
3167         (vect_do_peeling_for_alignment): Delete.
3169 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3171         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
3172         duplicated loop after its preheader and after the original loop.
3174 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3176         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
3177         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
3179 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3181         * tree-vect-loop.c (vectorizable_live_operation): Support handling
3182         for live variable outside loop but not in lcssa form.
3184 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3186         * cfg.c (reset_original_copy_tables): New func.
3187         * cfg.h (reset_original_copy_tables): New decl.
3189 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
3191         PR c/77946
3192         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
3193         public_flag.
3194         * varasm.c (default_binds_local_p_3): Formatting fix.
3196 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
3198         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
3199         style issue.
3200         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3201         Remove useless code.
3203 2016-10-13  Martin Liska  <mliska@suse.cz>
3205         PR tree-optimization/77943
3206         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
3207         a different EH landing pads.
3209 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
3211         PR target/77957
3212         * hooks.h (hook_tree_void_null): Declare.
3213         * hooks.c (hook_tree_void_null): New function.
3214         * langhooks.c (lhd_return_null_tree_v): Remove.
3215         * langhooks-def.h (lhd_return_null_tree_v): Remove.
3216         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
3217         set y to const0_rtx.
3218         * function.c (stack_protect_epilogue): Likewise.
3219         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
3220         if TARGET_THREAD_SSP_OFFSET is defined.
3221         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3222         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3223         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3224         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3225         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
3226         (ix86_stack_protect_guard): New function.
3228 2016-10-13  Richard Biener  <rguenther@suse.de>
3230         * dwarf2out.c (tree_add_const_value_attribute): Do not try
3231         rtl_for_decl_init during early phase.
3232         (gen_variable_die): Do not create locations during early phase.
3233         (gen_label_die): Likewise.
3234         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
3235         twice.
3237 2016-10-12  Richard Biener  <rguenther@suse.de>
3239         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
3240         try_add_new_range and made to eturn new range.
3241         (evrp_dom_walker::before_dom_children): Push op1 value range before
3242         pushing op0 value range.
3244 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3246         PR tree-optimization/77937
3247         * gimple-ssa-strength-reduction.c (analyze_increments): Use
3248         POINTER_TYPE_P on the candidate type to determine whether
3249         candidates in this chain require pointer arithmetic.
3251 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
3253         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
3254         correction if the type is smaller than a word.
3255         (visium_select_cc_mode): Add ... fall through ... comment.
3257 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3259         * config/rs6000/rs6000.c (machine_function): Add new fields
3260         gpr_is_wrapped_separately and lr_is_wrapped_separately.
3261         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
3262         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
3263         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
3264         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
3265         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
3266         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
3267         (rs6000_get_separate_components): New function.
3268         (rs6000_components_for_bb): New function.
3269         (rs6000_disqualify_components): New function.
3270         (rs6000_emit_prologue_components): New function.
3271         (rs6000_emit_epilogue_components): New function.
3272         (rs6000_set_handled_components): New function.
3273         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
3274         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
3275         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
3276         (rs6000_emit_epilogue): Don't emit GPR restores if
3277         gpr_is_wrapped_separately for that register.  Don't make a
3278         REG_CFA_RESTORE note for registers we did not restore, either.
3280 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3282         * function.c (thread_prologue_and_epilogue_insns): Call
3283         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
3284         if it has possibly changed.  Compute the split_prologue_seq and
3285         epilogue_seq later, too.
3286         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
3287         (dump_components): New function.
3288         (struct sw): New struct.
3289         (SW): New function.
3290         (init_separate_shrink_wrap): New function.
3291         (fini_separate_shrink_wrap): New function.
3292         (place_prologue_for_one_component): New function.
3293         (spread_components): New function.
3294         (disqualify_problematic_components): New function.
3295         (emit_common_heads_for_components): New function.
3296         (emit_common_tails_for_components): New function.
3297         (insert_prologue_epilogue_for_components): New function.
3298         (try_shrink_wrapping_separate): New function.
3299         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
3301 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3303         * regrename.c (build_def_use): Invalidate chains that have a
3304         REG_CFA_RESTORE on some instruction.
3306 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3308         * dce.c (delete_unmarked_insns): Don't delete instructions with
3309         a REG_CFA_RESTORE note.
3311 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3313         * common.opt (-fshrink-wrap-separate): New flag.
3314         * doc/invoke.texi: Document it.
3315         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
3316         * doc/tm.texi: Regenerate.
3317         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
3318         * target.def (shrink_wrap): New hook vector.
3319         (get_separate_components, components_for_bb, disqualify_components,
3320         emit_prologue_components, emit_epilogue_components,
3321         set_handled_components): New hooks.
3323 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
3325         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
3326         vector return by reference only if -Wpsabi.
3327         (rs6000_pass_by_reference): Similarly, for argument passing.
3329 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
3331         * function-tests.c: Include "print-rtl.h".
3332         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
3333         function, and verify what is dumped.
3334         * print-rtl-function.c (print_edge): New function.
3335         (begin_any_block): New function.
3336         (end_any_block): New function.
3337         (can_have_basic_block_p): New function.
3338         (print_rtx_function): Track the basic blocks of insns in the
3339         chain, wrapping those that are within blocks within "(block)"
3340         directives.  Remove the "(cfg)" directive.
3342 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
3344         * selftest.c (selftest::read_file): New function.
3345         (selftest::test_read_file): New function.
3346         (selftest::selftest_c_tests): Call test_read_file.
3347         * selftest.h (selftest::read_file): New decl.
3349 2016-10-12  Richard Biener  <rguenther@suse.de>
3351         PR debug/77947
3352         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
3353         function context.
3355 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
3357         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
3359         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
3360         dwarf2out_assembly_start.
3362         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
3364         * Makefile.in (SELFTEST_FLAGS): New variable.
3365         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
3367         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
3368         early_finish hook.
3370 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
3372         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
3373         dumped in RTL dumps.
3375 2016-10-12  Martin Liska  <mliska@suse.cz>
3377         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
3378         (gimple_fold_builtin_memory_op): Use the function.
3379         (gimple_fold_builtin_strchr): Likewise.
3380         (gimple_fold_builtin_strcat): Likewise.
3381         (gimple_build): Likewise.
3383 2016-10-12  Nathan Sidwell  <nathan@acm.org>
3385         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
3387 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
3389         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
3390         equivalent 32-bit constant (modulo 2**32) when that yields
3391         smaller instructions.
3392         (size_of_int_loc_descriptor): Update accordingly.
3394 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
3396         * dwarf2out.c (dwarf2out_early_global_decl): For nested
3397         functions, call dwarf2out_decl on the parent function first.
3399 2016-10-12  Richard Biener  <rguenther@suse.de>
3401         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
3402         on the conversion.
3404 2016-10-12  Richard Biener  <rguenther@suse.de>
3406         * tree-ssa-propagate.c
3407         (substitute_and_fold_dom_walker::before_dom_children): Do not
3408         ignore ASSERT_EXPRs but only preserve them.
3409         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
3410         that have been propagated into.
3411         (vrp_finalize): Enable DCE for substitute_and_fold.
3413 2016-10-12  Richard Biener  <rguenther@suse.de>
3415         PR tree-optimization/77920
3416         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
3417         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
3418         (simplify_abs_using_ranges): Likewise.
3419         (simplify_conversion_using_ranges): Likewise.
3420         (simplify_stmt_using_ranges): Adjust.
3422 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
3424         PR tree-optimization/77929
3425         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
3426         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
3428 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3430         PR target/77934
3431         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
3432         needs a base register for arg 1.
3434 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
3436         * common.opt (Wimplicit-fallthrough) Turn into alias to
3437         -Wimplicit-fallthrough=3.  Remove EnabledBy.
3438         (Wimplicit-fallthrough=): New option.
3439         * gimplify.c (warn_implicit_fallthrough_r): Use
3440         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
3441         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
3442         to -Wimplicit-fallthrough=3.
3443         (-Wimplicit-fallthrough=): Document.
3445 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3447         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
3448         and GEU in DImode if TARGET_SUBXC.
3449         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
3450         (seqdi<W:mode>_zero_subxc): Delete.
3451         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
3452         (neg_seqdi<W:mode>_zero_vis3): Delete.
3453         (plus_seqdi<W:mode>_zero): Likewise.
3454         (minus_seqdi<W:mode>_zero): Likewise.
3455         (plus_plus_sltu<W:mode>): Accept only register.
3456         (addx<W:mode>): Likewise.
3457         (plus_sltu<W:mode>_vis3): Likewise.
3458         (plus_plus_sltu<W:mode>_vis3): Likewise.
3459         (neg_sgeu<W:mode>_vis3): Delete.
3460         (minus_sgeu<W:mode>_vis3): Likewise.
3461         (addxc<W:mode>): Accept only registers.
3462         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3463         (minus_neg_sltu<W:mode>_subxc): Accept only register.
3464         (neg_plus_sltu<W:mode>_subxc): Likewise.
3465         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
3466         (minus_minus_sltu<W:mode>_subxc): Accept only register.
3467         (sgeu<W:mode>_insn_subxc): Delete.
3468         (plus_sgeu<W:mode>_subxc): Likewise.
3469         (subxc<W:mode>): Accept only register.
3470         (scc splitter): Split always GEU again.
3472 2016-10-11  Jeff Law  <law@redhat.com>
3474         PR tree-optimization/77424
3475         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
3476         dead conditionals.  Assert that all e->aux fields are NULL.
3478 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
3480         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
3481         operand-printing "switch" statement into...
3482         (print_rtx_operand_code_0): ...this new function, ...
3483         (print_rtx_operand_code_e): ...this new function, ...
3484         (print_rtx_operand_codes_E_and_V): ...this new function, ...
3485         (print_rtx_operand_code_i): ...this new function, ...
3486         (print_rtx_operand_code_r): ...this new function, ...
3487         (print_rtx_operand_code_u): ...this new function, ...
3488         (print_rtx_operand): ...and this new function.
3490 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
3492         * config/alpha/alpha-passes.def: New file.
3493         * config/alpha/t-alpha: New file.
3494         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
3495         (make_pass_handle_trap_shadows): New prototype.
3496         (make_pass_align_insns): Ditto.
3497         * config/alpha/alpha.c (alpha_option_override): Don't register
3498         passes here.
3499         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
3501 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3503         PR target/77924
3504         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
3505         distinct __ibm128 IBM extended double type if long doubles are
3506         128-bits and the default format for long double is IEEE 128-bit.
3508 2016-10-11  Richard Biener  <rguenther@suse.de>
3510         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
3511         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
3512         (verify_die): New function.
3513         (dwarf2out_finish): Call it.
3514         (output_line_info): Handle case of -gsplit-dwarf without
3515         DWARF2_ASM_LINE_DEBUG_INFO.
3517 2016-10-11  Richard Biener  <rguenther@suse.de>
3519         PR debug/77931
3520         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
3521         sub-chains of BLOCK_VARS and gimple_bind_vars.
3523 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3525         * config/i386/znver1.md : Fix imov/imovx load type reservations.
3527 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3529         * config/sparc/sparc.opt (msubxc): New option.
3530         * doc/invoke.texi (SPARC options): Document it and tidy up.
3531         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
3532         * doc/tm.texi: Regenerate.
3533         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
3534         (CCNZ): ...this.
3535         (CCX_NOOV): Rename into...
3536         (CCXNZ): ...this.
3537         (CCC): New.
3538         (CCXC): Likewise.
3539         * config/sparc/predicates.m (fcc_register_operand): Simplify.
3540         (fcc0_register_operand): Likewise.
3541         (icc_register_operand): New.
3542         (icc_or_fcc_register_operand): Simplify.
3543         (nz_comparison_operator): New.
3544         (c_comparison_operator): Likewise.
3545         (noov_compare_operator): Rename into...
3546         (icc_comparison_operator): ...this.  Use above predicates.
3547         (noov_compare64_operator): Rename into...
3548         (v9_comparison_operator): ...this and tidy up.
3549         (fcc_comparison_operator): New.
3550         (icc_or_fcc_comparison_operator): Likewise.
3551         (v9_register_compare_operator): Rename info...
3552         (v9_register_comparison_operator): ...this.
3553         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3554         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
3555         for Niagara-7.
3556         (sparc_fixed_condition_code_regs): New function.
3557         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
3558         renaming and add support for CCC/CCXC.
3559         (output_cbranch): Likewise.
3560         (sparc_print_operand): Likewise.
3561         (gen_v9_scc): Remove obsolete assertion.
3562         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
3563         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
3564         (output_cbcond): Remove bogus handling of CC modes.
3565         (sparc_register_move_cost): Return 100 for NO_REGS.
3566         * config/sparc/sparc.md (W): New mode iterator.
3567         (length): Adjust for noov_compare64_operator renaming.
3568         (cmpsi_sne): New instruction.
3569         (cmpdi_sne): Likewise.
3570         (seqdi_special): Delete.
3571         (seqdi_special): Likewise.
3572         (snesi<P:mode>_special): Likewise.
3573         (snedi_special): Likewise.
3574         (snedi_special_vis3): Likewise.
3575         (snesi patterns): Use W iterator.
3576         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
3577         (sltu patterns): Likewise.
3578         (sgeu patterns): Likewise.
3579         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
3580         (normal_branch): Use icc_comparison_operator predicate.
3581         (inverted_branch): Likewise.
3582         (cbcond_sp32): Use comparison_operator predicate.
3583         (cbcond_sp64): Likewise.
3584         (normal_int_branch_sp64): Adjust for renaming
3585         (inverted_int_branch_sp64): Likewise.
3586         (mov<I:mode>_cc_reg_sp64): Likewise.
3587         (movsf_cc_reg_sp6): Likewise.
3588         (movdf_cc_reg_sp64): Likewise.
3589         (movtf_cc_reg_hq_sp64): Likewise.
3590         (movtf_cc_reg_sp64): Likewise.
3591         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
3592         (movsf_cc_v9): Likewise.
3593         (movdf_cc_v9): Likewise.
3594         (movtf_cc_hq_v9): Likewise.
3595         (movtf_cc_v9): Likewise.
3596         (adddi3): Call gen_adddi3_sp32.
3597         (adddi3_insn_sp32): Rename to...
3598         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
3599         and use CCCmode for the carry.
3600         (addx_extend_sp32): Use CCCmode for the carry.
3601         (addx_extend_sp64): Delete.
3602         (adddi3_extend_sp32): Use CCCmode for the carry.
3603         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
3604         (subdi3): Call gen_subdi3_sp32.
3605         (subdi3_insn_sp32): Rename to...
3606         (subdi3_sp32): ...this and use CCmode for the carry.
3607         (subx_extend_sp32): Use CCCmode for the carry.
3608         (subx_extend_sp64): Delete.
3609         (subdi3_extend_sp32): Use CCmode for the carry.
3610         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
3611         (negdi3): Call gen_negdi3_sp32.
3612         (negdi3_sp32): Use CCCmode for the carry.
3613         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
3614         (cmp_nz_ashift_1): Use CCNZ mode.
3615         (cmp_nz_set_ashift_1): Likewise.
3616         (ctrapsi4): Use comparison_operator predicate.
3617         (ctrapdi4): Likewise.
3618         (trapsi_insn): Use icc_comparison_operator predicate.
3619         (trapdi_insn): Likewise.
3620         (edge8 patterns): Use CCNZmode.
3621         (edge16 patterns): Likewise.
3622         (edge32 patterns): Likewise.
3624 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3626         * config/visium/visium-modes.def (CC_NOOV): Rename into...
3627         (CCNZ): ...this.
3628         (CC_BTST): Rename into...
3629         (CCC): ...this.
3630         * config/visium/predicates.md (real_add_operand): New.
3631         (visium_btst_operator): Rename into...
3632         (visium_equality_comparison_operator): ...this.
3633         (visium_noov_operator): Rename into...
3634         (visium_nz_comparison_operator): ...this.
3635         (visium_c_comparison_operator): New.
3636         (visium_branch_operator): Adjust and deal with all CC modes.
3637         * config/visium/visium.c (visium_adjust_cost): Adjust.
3638         (visium_split_double_add): Use the *_set_carry patterns.
3639         (visium_select_cc_mode): Add support for CCC mode and adjust.
3640         (output_cbranch): Adjust and use the carry-based operators for
3641         floating-point comparisons.
3642         * config/visium/visium.md (flags_subst_arith): Adjust.
3643         (addsi3_insn_set_carry): New instruction.
3644         (subsi3_insn_set_carry): Likewise.
3645         (negsi2_insn_set_carry): Likewise.
3646         (btst): Adjust.
3647         (cmp<mode>_sne): Likewise.
3648         (cbranch<mode>4): Use ordered_comparison_operator.
3649         (cbranch<mode>4_insn): Likewise.
3650         (cbranchsi4_btst_insn): Adjust.
3652 2016-10-11  Tom de Vries  <tom@codesourcery.com>
3654         PR middle-end/77558
3655         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3656         special-casing.
3658 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3660         * tree.h (build_complex_type): Add second parameter with default.
3661         * tree.c (build_complex_type): Add NAMED second parameter and adjust
3662         recursive call.  Create a TYPE_DECL only if NAMED is true.
3663         (build_common_tree_nodes): Pass true in calls to build_complex_type.
3665 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
3667         New avr-passes.def to register AVR specific passes.
3669         * config/avr/avr-passes.def: New file.
3670         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
3671         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
3672         (make_avr_pass_recompute_note): New proto.
3673         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
3674         (avr_pass_recompute_notes): Use anonymous namespace.
3675         (avr_register_passes): Remove function...
3676         (avr_option_override): ...and its call.
3678 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
3680         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
3681         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
3682         PTF_AVOID_BRANCHLIKELY_SPEED for others.
3683         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
3684         flags.
3685         * config/mips/mips.c (mips_option_override): Enable the branch
3686         likely depending on the tune flags and optimization level.
3687         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
3688         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
3689         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
3690         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
3692 2016-10-11  Richard Biener  <rguenther@suse.de>
3694         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
3695         (output_function): Properly stream the whole block tree.
3696         * lto-streamer-in.c (input_function): Likewise.
3698 2016-10-11  Marek Polacek  <polacek@redhat.com>
3700         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
3702 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
3704         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
3705         (evrp_dom_walker::before_dom_children): Infer and push new value
3706         ranges for x in y < x.
3708 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
3710         PR target/77586
3711         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
3712         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3713         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3714         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
3715         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3716         (IA64_NO_LIBGCC_TFMODE): Likewise.
3718 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
3720         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
3721           copying.
3723 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
3725         * config.gcc: Add aarch64-*-freebsd* support.
3726         * config.host: Likewise.
3727         * config/aarch64/aarch64-freebsd.h: New file.
3728         * config/aarch64/t-aarch64-freebsd: Ditto.
3730 2016-10-10  Jeff Law  <law@redhat.com>
3732         PR tree-optimization/71947
3733         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
3734         B with A within a single statement.
3736 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3738         PR tree-optimization/77824
3739         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
3740         zero cost for copies.
3741         (find_candidates_dom_walker::before_dom_children): Replace
3742         MODIFY_EXPR with SSA_NAME.
3743         (replace_mult_candidate): Likewise.
3744         (replace_profitable_candidates): Likewise.
3746 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3748         * config/s390/s390.h: Wrap more macros args in brackets and fix
3750 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
3752         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
3754 2016-10-10  Andreas Schwab  <schwab@suse.de>
3756         PR target/77738
3757         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
3758         pseudo is not DImode.
3760 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
3762         * common/config/arc/arc-common.c (arc_option_optimization_table):
3763         Remove compact casesi option.
3764         * config/arc/arc.c (arc_override_options): Use compact casesi
3765         option only for pre-ARCv2 cores.
3766         * doc/invoke.texi (mcompact-casesi): Update text.
3768 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3770         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
3771         Add macro to say we can efficiently handle overlapping unaligned
3772         loads.
3773         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
3774         poor code for processors older than p8.
3776 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
3778         * gen-pass-instances.awk: Remove GNUism.
3780 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3782         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
3783         NULL of (*ipcp_transformations)][node->uid].
3785 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
3787         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3788         (MALLOC_ABI_ALIGNMENT): Define.
3790 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
3792         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
3793         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
3794         VAR_OR_FUNCTION_DECL_P macros.
3795         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
3796         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
3797         chkp_find_bounds_1): Likewise.
3798         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
3799         * hsa-gen.c (get_symbol_for_decl): Likewise.
3800         * cgraphunit.c (check_global_declaration, analyze_functions,
3801         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
3802         Likewise.
3803         * gimple-fold.c (can_refer_decl_in_current_unit_p,
3804         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
3805         Likewise.
3806         * tree.c (set_decl_section_name, copy_node_stat,
3807         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
3808         merge_dllimport_decl_attributes, handle_dll_attribute,
3809         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
3810         verify_type): Likewise.
3811         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
3812         find_explicit_erroneous_behavior): Likewise.
3813         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
3814         * ipa.c (process_references): Likewise.
3815         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
3816         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
3817         notice_global_symbol, assemble_variable, mark_decl_referenced,
3818         build_constant_desc, output_constant_def_contents, do_assemble_alias,
3819         make_decl_one_only, default_section_type_flags,
3820         categorize_decl_for_section, default_encode_section_info): Likewise.
3821         * trans-mem.c (requires_barrier): Likewise.
3822         * gimple-expr.c (mark_addressable): Likewise.
3823         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
3824         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
3825         expand_debug_expr): Likewise.
3826         * tree-dump.c (dequeue_and_dump): Likewise.
3827         * ubsan.c (instrument_bool_enum_load): Likewise.
3828         * tree-pretty-print.c (print_declaration): Likewise.
3829         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3830         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
3831         * asan.c (asan_protect_global, instrument_derefs): Likewise.
3832         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
3833         pass_build_ssa::execute): Likewise.
3834         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
3835         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
3836         Likewise.
3837         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
3838         Likewise.
3839         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
3840         can_be_nonlocal, remap_decls, copy_debug_stmt,
3841         initialize_inlined_parameters, add_local_variables,
3842         reset_debug_binding, replace_locals_op): Likewise.
3843         * dse.c (can_escape): Likewise.
3844         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
3845         Likewise.
3846         * tree-diagnostic.c (default_tree_printer): Likewise.
3847         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
3848         unpack_ts_decl_with_vis_value_fields,
3849         lto_input_ts_decl_common_tree_pointers): Likewise.
3850         * builtins.c (builtin_save_expr, fold_builtin_expect,
3851         readonly_data_expr): Likewise.
3852         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
3853         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
3854         Likewise.
3855         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3856         * gimplify.c (force_constant_size, gimplify_bind_expr,
3857         gimplify_decl_expr, gimplify_var_or_parm_decl,
3858         gimplify_compound_lval, gimplify_init_constructor,
3859         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
3860         gimplify_type_sizes): Likewise.
3861         * cgraphbuild.c (record_reference, record_type_list, mark_address,
3862         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
3863         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
3864         remove_unused_locals): Likewise.
3865         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
3866         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
3867         * function.c (instantiate_expr, instantiate_decls_1,
3868         setjmp_vars_warning, add_local_decl): Likewise.
3869         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
3870         Likewise.
3871         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
3872         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
3873         optimize_va_list_gpr_fpr_size): Likewise.
3874         * tree-nrv.c (pass_nrv::execute): Likewise.
3875         * tsan.c (instrument_expr): Likewise.
3876         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3877         * vtable-verify.c (verify_bb_vtables): Likewise.
3878         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
3879         get_ref_base_and_extent): Likewise.
3880         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
3881         Likewise.
3882         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
3883         analyze_all_variable_accesses): Likewise.
3884         * tree-nested.c (get_nonlocal_debug_decl,
3885         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
3886         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
3887         get_local_debug_decl, convert_local_omp_clauses,
3888         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
3889         Likewise.
3890         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
3891         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
3892         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
3893         dbxout_symbol, dbxout_common_check): Likewise.
3894         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
3895         string_constant): Likewise.
3896         * hsa.c (hsa_get_declaration_name): Likewise.
3897         * passes.c (rest_of_decl_compilation): Likewise.
3898         * tree-ssanames.c (make_ssa_name_fn): Likewise.
3899         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
3900         pack_ts_decl_with_vis_value_fields,
3901         write_ts_decl_common_tree_pointers): Likewise.
3902         * stor-layout.c (place_field): Likewise.
3903         * symtab.c (symtab_node::maybe_create_reference,
3904         symtab_node::verify_base, symtab_node::make_decl_local,
3905         symtab_node::copy_visibility_from,
3906         symtab_node::can_increase_alignment_p): Likewise.
3907         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
3908         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
3909         fortran_common, add_location_or_const_value_attribute,
3910         add_scalar_info, add_linkage_name, set_block_abstract_flags,
3911         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
3912         optimize_one_addr_into_implicit_ptr,
3913         optimize_location_into_implicit_ptr): Likewise.
3914         * gimple-low.c (record_vars_into): Likewise.
3915         * ipa-visibility.c (update_vtable_references): Likewise.
3916         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
3917         Likewise.
3918         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
3919         DFS::DFS_write_tree_body, write_symbol): Likewise.
3920         * langhooks.c (lhd_warn_unused_global_decl,
3921         lhd_set_decl_assembler_name): Likewise.
3922         * attribs.c (decl_attributes): Likewise.
3923         * except.c (output_ttype): Likewise.
3924         * varpool.c (varpool_node::get_create, ctor_for_folding,
3925         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
3926         * fold-const.c (fold_unary_loc): Likewise.
3927         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3928         ipa_find_agg_cst_from_init): Likewise.
3929         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
3930         expand_omp_target, lower_omp_regimplify_p,
3931         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
3932         find_link_var_op): Likewise.
3933         * tree-chrec.c (chrec_contains_symbols): Likewise.
3934         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
3935         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
3936         execute_fixup_cfg): Likewise.
3938         PR tree-optimization/77901
3939         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
3940         if ranges[i].exp is SSA_NAME when looking for >= and only when
3941         ranges[i].exp is NULL or SSA_NAME when looking for the other
3942         comparison.
3944 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3946         * ipa-cp.c (ipcp_alignment_lattice): Remove.
3947         (ipcp_param_lattices): Remove field alignment.
3948         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
3949         (set_all_contains_variable): Remove call to
3950         ipcp_alignment_lattice::set_to_bottom.
3951         (initialize_node_lattices): Likewise.
3952         (propagate_alignment_accross_jump_function): Remove.
3953         (propagate_constants_accross_call): Remove call to
3954         propagate_alignment_accross_jump_function.
3955         (ipcp_store_alignment_results): Remove.
3956         (ipcp_driver): Remove call to ipcp_store_alignment_results.
3957         (propagate_bits_accross_jump_function): Handle ancestor jump function.
3958         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
3959         pretty-printing of alignment jump function.
3960         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
3961         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
3962         alignments and remove computing ipa_alignment jump function.
3963         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
3964         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
3965         (ipa_read_jump_function): Remove reading of ipa_alignment.
3966         (write_ipcp_transformation_info): Remove streaming for alignment
3967         propagation summary.
3968         (read_ipcp_transformation_info): Remove reading of alignment
3969         propagation summary.
3970         (ipcp_update_alignments): Remove.
3971         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
3972         type.
3973         (ipcp_transform_function): Remove call to ipcp_update_alignments()
3974         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
3975         * ipa-prop.h (ipa_alignment): Remove.
3976         (ipa_jump_func): Remove field alignment.
3977         (ipcp_transformation_summary): Remove field alignments.
3978         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
3979         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
3980         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
3982 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
3984         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
3986         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
3987         change.
3988         (visium_expand_fp_cstore): Likewise.
3990 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3992         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
3993         * diagnostic.c (warning_at_rich_loc_n): New function.
3994         (diagnostic_n_impl_richloc): Likewise.
3995         (diagnostic_n_impl): Move most of the function to
3996         diagnostic_n_impl_richloc and call it.
3998 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
4000         * gen-pass-instances.awk: Rewritten.
4001         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
4002         $(PASSES_EXTRA) after passes.def to the script.
4003         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
4004         * config/i386/i386-passes.def: New file.
4005         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
4006         make_pass_stv): Declare.
4007         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
4008         false.
4009         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
4010         or !TARGET_64BIT.
4011         (pass_stv::clone, pass_stv::set_pass_param): New methods.
4012         (pass_stv::timode_p): New non-static data member.
4013         (ix86_option_override): Don't register passes here.
4015         * doc/invoke.texi: Document accepting Else, fallthrough.
4017         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
4018         style changes.
4020         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
4021         FALLTHRU comment styles.
4023 2016-10-07  Andrew Pinski  <apinski@cavium.com>
4025         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
4026         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
4027         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
4028         Likewise.
4029         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
4030         Likewise.
4031         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
4032         Likewise.
4033         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
4034         (AARCH64_ARCH): Likewise.
4035         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
4036         Likewise.
4037         (AARCH64_CORE): Likewise.
4038         (AARCH64_ARCH): Likewise.
4039         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
4040         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
4041         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
4042         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
4043         (AARCH64_ARCH): Likewise.
4044         (AARCH64_CORE): Likewise.
4045         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
4046         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
4047         (AARCH64_CORE): Likewise.
4048         (AARCH64_ARCH): Likewise.
4050 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4052         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
4053         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
4054         floating point type infrastructre, and -mfloat128 that enables the
4055         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
4056         if -mfloat128-type.  Define __ibm128 to be long double by default.
4057         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
4058         the IEEE 128-bit floating point type infrastructure should
4059         automatically be enabled.
4060         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
4061         instead of -mfloat128 to enable KFmode.
4062         (rs6000_option_override_internal): Split the option -mfloat128
4063         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
4064         systems, automatically set -mfloat128-type, but don't enable it on
4065         other operating systems.  Move setting the long double size and
4066         IEEE quad support before the IEEE 128-bit floating point changes.
4067         (rs6000_init_builtins): Do not create a unique type for __ibm128
4068         if long double is IBM extended double, instead rely on __ibm128
4069         being defined as 'long double'.  If -mfloat128-type and not
4070         -mfloat128, create the KFmode type with an undocumented __ieee128
4071         keyword.
4072         (rs6000_init_libfuncs): Use -mfloat128-type instead of
4073         -mfloat128 for tests about the types, but keep tests for
4074         -mfloat128 to enable the keyword support.
4075         (rs6000_complex_function_value): Likewise.
4076         (rs6000_scalar_mode_supported_p): Likewise.
4077         (rs6000_floatn_mode): Likewise.
4078         (rs6000_c_mode_for_suffix): Likewise.
4079         (rs6000_opt_masks): Add -mfloat128-type.
4080         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
4081         -mfloat128-type being split from -mfloat128.  Add
4082         -mfloat128-hardware, which was missing.
4083         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
4084         -mfloat128 and -mfloat128-type:
4085         (-mfloat128-type): Likewise.
4086         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
4087         that 64-bit Linux systems with enable -mfloat128-type by default
4088         on VSX systems.
4089         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
4090         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
4091         -mfloat128-type instead of -mfloat128.
4092         (FLOAT128_2REG_P): Likewise.
4093         (MASK_FLOAT128_TYPE): Likewise.
4094         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4095         (RS6000_BTM_FLOAT128): Likewise.
4096         (TARGET_FLOAT128): Poison old identifiers.
4097         (OPTION_MASK_FLOAT128): Likewise.
4098         (MASK_FLOAT128): Likewise.
4099         * config/rs6000/rs6000.md (FP): Likewise.
4100         (FLOAT128): Likewise.
4101         (fix_trunc<mode>di2): Likewise.
4102         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4103         (floatdi<mode>2): Likewise.
4104         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
4105         (neg<mode>2, FLOAT128 iterator): Likewise.
4106         (abs<mode>2, FLOAT128 iterator): Likewise.
4107         (ieee_128bit_negative_zero): Likewise.
4108         (ieee_128bit_vsx_neg<mode>2): Likewise.
4109         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
4110         (ieee_128bit_vsx_abs<mode>2): Likewise.
4111         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4112         (ieee_128bit_vsx_nabs<mode>2): Likewise.
4113         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4114         (extendiftf2): Likewise.
4115         (extendifkf2): Likewise.
4116         (extendtfkf2): Likewise.
4117         (trunciftf2): Likewise.
4118         (truncifkf2): Likewise.
4119         (trunckftf2): Likewise.
4120         (trunctfif2): Likewise.
4121         (extendkftf2): Likewise.
4122         (trunctfkf2): Likewise.
4124 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4126         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
4127         before merging in bytes to pass down to real_from_target.
4129 2016-10-07  Richard Biener  <rguenther@suse.de>
4131         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
4132         required hack.
4133         (substitute_and_fold_dom_walker::before_dom_children):
4134         Substitute and fold before pass specific folding to avoid
4135         feeding that with SSA names that will be later released.
4136         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
4137         introduced by folding and visited by evaluate_stmt called during
4138         ccp_fold_stmt.
4139         (likely_value): Likewise.
4140         (evaluate_stmt): Likewise.
4141         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
4142         (simplify_div_or_mod_using_ranges): Likewise.
4143         (simplify_min_or_max_using_ranges): Likewise.
4144         (simplify_abs_using_ranges): Likewise.
4145         (simplify_conversion_using_ranges): Likewise.
4146         (simplify_float_conversion_using_ranges): Likewise.
4147         (simplify_stmt_using_ranges): Likewise.
4149 2016-10-07  Marek Polacek  <polacek@redhat.com>
4151         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
4152         FALLTHROUGH_LABEL_P here...
4153         (warn_implicit_fallthrough_r): ...not here.
4155 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
4157         PR tree-optimization/77880
4158         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
4159         necessary.
4161 2016-10-07  Marek Polacek  <polacek@redhat.com>
4163         PR c++/77803
4164         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
4166 2016-10-07  Richard Biener  <rguenther@suse.de>
4168         * bitmap.h: Document constraints on bitmap modification while
4169         iterating over it.
4171 2016-10-07  Richard Biener  <rguenther@suse.de>
4173         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
4174         * bitmap.h (bmp_iter_set): When advancing to the next element
4175         check that we didn't remove the current one.
4176         (bmp_iter_and): Likewise.
4177         (bmp_iter_and_compl): Likewise.
4178         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
4179         we currently iterate on but keep a one-level queue.
4180         * sched-deps.c (remove_from_deps): Do not clear current bit
4181         but keep a one-level queue.
4183 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
4185         PR tree-optimization/77664
4186         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
4187         for the other ranges.
4188         (optimize_range_tests_diff): Fix up formatting.
4189         (optimize_range_tests_var_bound): New function.
4190         (optimize_range_tests): Use it.
4192 2016-10-07  Martin Liska  <mliska@suse.cz>
4194         * coverage.c (build_gcov_exit_decl): Fix priority what
4195         should be really 99.
4197 2016-10-07  Richard Biener  <rguenther@suse.de>
4199         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
4200         vars in gimple_bind_vars but not in BLOCK_VARS.
4202 2016-10-07  Richard Biener  <rguenther@suse.de>
4204         PR tree-optimization/77879
4205         * tree-ssa-structalias.c (handle_const_call): Properly handle
4206         NRV return slots.
4207         (handle_pure_call): Likewise.
4209 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4211         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
4212         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
4213         possible overflow.
4215 2016-10-06  Andrew Pinski  <apinski@cavium.com>
4217         * config/aarch64/aarch64-cores.def: Add a comment before each
4218         set of cores.
4220 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
4222         PR tree-optimization/77862
4223         * tree-vrp.c (add_equivalence): Use get_value_range so that
4224         num_vr_values is checked before accessing vr_values.
4226 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
4228         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4229           POINTER_TYPE_P.
4231 2016-10-05  Jeff Law  <law@redhat.com>
4233         PR tree-optimization/71661
4234         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
4235         removal of a forwarder exposes a new natural loop.
4237 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
4239         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
4240         Introduce ssesuffix variable.
4241         (<mask_codefor><code><mode>3<mask_name>): Ditto.
4242         (*<code><mode>3): Ditto.
4244 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
4246         * postreload.c (reload_cse_simplify): Skip also USE when detecting
4247         noop move.
4249 2016-10-06  Richard Biener  <rguenther@suse.de>
4251         PR tree-optimization/77855
4252         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
4253         instead of removing the current item while iterating over the set
4254         which is not safe.
4256 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
4257             Eric Botcazou  <ebotcazou@adacore.com>
4259         PR target/77759
4260         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
4261         (classify_registers): Don't set it
4262         (function_arg_slotno): Don't initialize and test it.  Tidy up.
4264 2016-10-06  Richard Biener  <rguenther@suse.de>
4266         PR tree-optimization/77839
4267         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
4268         lattice transition.
4270 2016-10-06  Martin Liska  <mliska@suse.cz>
4272         * gcc.c: Set -fprofile-update=atomic when profiling is
4273         enabled and -pthread is set.  Warn when one combines
4274         -pthread and -fprofile-update=single for an app using
4275         profiling code.
4277 2016-10-06  Martin Liska  <mliska@suse.cz>
4279         PR bootstrap/77788
4280         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
4281         * gimple-ssa-strength-reduction.c (slsr_process_cast):
4282         Initialize a pointer to NULL.
4283         (slsr_process_copy): Likewise.
4284         * input.c (location_get_source_line): Likewise.
4285         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4287 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
4289         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
4290         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
4291         (ix86_handle_option): Deleted handle of OPT_mpcommit.
4292         * config.gcc: Deleted pcommitintrin.h
4293         * config/i386/pcommitintrin.h: Deleted file.
4294         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
4295         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
4296         detection.
4297         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
4298         __PCOMMIT__.
4299         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
4300         (PTA_PCOMMIT): Deleted define.
4301         (ix86_option_override_internal): Deleted handle of option.
4302         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
4303         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
4304         __builtin_ia32_pcommit): Deleted.
4305         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
4306         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
4307         (pcommit): Deleted instruction.
4308         * config/i386/i386.opt: Mention -mpcommit deprecation.
4309         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
4311 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
4313         PR target/77874
4314         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
4315         Remove wrong assert.
4316         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
4317         Use <round_constraint> as operand 1 constraint.
4319 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
4321         PR sanitizer/66343
4322         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
4323         (ubsan_instrument_float_cast): And not here.
4325         PR sanitizer/66343
4326         * ubsan.c (ubsan_ids): New GTY(()) array.
4327         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
4328         instead of static local counters.
4330 2016-10-05  Martin Sebor  <msebor@redhat.com>
4332         PR bootstrap/77819
4333         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
4334         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
4335         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
4336         (default_printf_pointer_format): Define function.
4337         * targhooks.c (linux_printf_pointer_format): Define new function.
4338         * targhooks.h (linux_printf_pointer_format): Declare.
4339         (gnu_libc_printf_pointer_format): Remove declaration.
4341 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4343         * fold-const.c (native_encode_real): Fix logic for selecting offset
4344         to write to when BYTES_BIG_ENDIAN.
4346 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
4348         * builtins.c (fold_builtin_strchr): Remove function.
4349         (fold_builtin_strrchr): Likewise.
4350         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
4351         * gimple-fold.c (target_char_cst_p): New function.
4352         (gimple_fold_builtin_strchr) Add more foldings.
4353         (gimple_fold_builtin): Add index, strrchr, rindex cases.
4355 2016-10-05  Richard Biener  <rguenther@suse.de>
4357         PR middle-end/77863
4358         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
4359         capture ids in c-exprs.
4361 2016-10-05  Richard Biener  <rguenther@suse.de>
4363         PR middle-end/77826
4364         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
4365         with types_match for GIMPLE code gen to handle type mismatched
4366         constants properly.
4367         (dt_operand::gen): Adjust.
4368         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
4369         and constant A.
4371 2016-10-05  Richard Biener  <rguenther@suse.de>
4373         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
4375 2016-10-05  Richard Biener  <rguenther@suse.de>
4377         PR middle-end/77842
4378         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
4380 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
4382         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
4383         version check to protect only DW_TAG_imported_module generation.
4385 2016-10-05  Richard Biener  <rguenther@suse.de>
4387         PR middle-end/55152
4388         * match.pd (min(a,-a) -> -abs(a)): New pattern.
4390 2016-10-04  Ian Lance Taylor  <iant@golang.org>
4392         * explow.c (allocate_dynamic_stack_space): Call
4393         do_pending_stack_adjust before handling flag_split_stack.
4395 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
4397         * genattrtab.c (make_internal_attr): Supply dummy column number to
4398         file_location ctor.
4399         (main): Likewise.
4400         * genoutput.c (init_insn_for_nothing): Likewise.
4401         * gensupport.c (add_define_attr): Likewise.
4402         * read-md.c (message_at_1): Print column number.
4403         (fatal_with_file_and_line): Likewise.
4404         (rtx_reader::read_char): Track column numbers.
4405         (rtx_reader::unread_char): Likewise.
4406         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
4407         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
4408         (rtx_reader::handle_file): Initialize m_read_md_colno.
4409         (rtx_reader::get_current_location): Supply column number to
4410         file_location ctor.
4411         * read-md.h (struct file_location): Add field "colno".
4412         (file_location::file_location): Likewise.
4413         (rtx_reader::get_colno): New accessor.
4414         (rtx_reader::m_read_md_colno): New field.
4415         (rtx_reader::m_last_line_colno): New field.
4417 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
4419         * doc/extend.texi (Java Exceptions): Remove.
4420         (java_interface): Remove.
4422 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
4424         PR tree-optimization/77808
4425         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
4426         and addr are different before copying points-to information.
4428 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
4430         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
4431         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
4432         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
4433         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
4435 2016-10-04  Richard Biener  <rguenther@suse.de>
4437         PR tree-optimization/77399
4438         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
4439         verify the target can convert.
4441 2016-10-04  Richard Biener  <rguenther@suse.de>
4443         PR middle-end/77833
4444         * explow.c (plus_constant): Verify the mode of the constant
4445         pool offset before calling plus_constant.
4447 2016-10-04  Richard Biener  <rguenther@suse.de>
4449         PR middle-end/77407
4450         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
4451         type support, mark with :C.
4452         (X / -X -> -1): Mark with :C.
4454 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
4456         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
4457         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
4458         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
4459         * doc/tm.texi: Regenerated.
4460         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
4461         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
4462         * config/darwin.h (JCR_SECTION_NAME): Remove.
4463         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
4464         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
4465         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
4466         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
4467         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
4468         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
4470 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4472         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
4473         between "because" and "param" in dump message in call to fprintf.
4475 2016-10-03  Jeff Law  <law@redhat.com>
4477         PR tree-optimization/71550
4478         PR tree-optimization/71403
4479         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
4480         (profitable_jump_thread_path): Also return boolean indicating if
4481         the realized path will create an irreducible loop.
4482         Remove loop depth tests from 71403.
4483         (fsm_find_control_statement_thread_paths): Remove loop depth tests
4484         from 71403.  If threading will create an irreducible loop, then
4485         throw away loop iteration and related information.
4487 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
4489         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
4490         -Woverloaded-virtual checks for warning options.
4491         * configure: Regenerate.
4493 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4495         PR preprocessor/77699
4496         * input.c (maybe_grow): Don't allocate one byte extra headroom.
4497         (get_next_line): Return false on error.
4498         (read_next_line): Removed, use get_next_line instead.
4499         (read_line_num): Don't copy the line.
4500         (location_get_source_line): Don't use static data.
4501         (selftest::test_reading_source_line): Add more test cases.
4503 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4505         Revert
4506         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4508         * ifcvt.c (noce_try_avoid_const_materialization): New function.
4509         (noce_process_if_block): Use it.
4511 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4513         * doc/invoke.texi: Update -Wint-in-bool-context.
4515 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
4517         * dwarf2out.c (output_fde, output_call_frame_info,
4518         dwarf2out_do_cfi_startproc, set_indirect_string,
4519         gen_internal_sym, output_die, output_line_info): Use
4520         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
4521         ASM_GENERATE_INTERNAL_LABEL output.
4523 2016-10-01  Richard Biener  <rguenther@suse.de>
4525         PR middle-end/77798
4526         * genmatch.c (get_operand_type): Add operand position arg
4527         and handle COND_EXPR comparison operand with fixed boolean_type_node.
4528         (expr::gen_transform): Adjust.
4529         (dt_simplify::gen_1): Likewise.
4531 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
4533         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
4534         comments.  Simplify asserts, remove unnecessary conditions.
4535         Formatting fixes.
4536         (*<code><mode>3): Likewise.
4538 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
4540         * doc/invoke.texi (-Wregister): Document.
4542 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4544         * configure.ac: Split CHECKING_P into CHECKING_P and
4545         ENABLE_EXTRA_CHECKING.
4546         * configure: Regenerated.
4547         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
4548         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
4550 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
4552         PR other/31566
4553         * gcc.c (process_command): For @filename handling, output
4554         the correct name if the file does not exist.
4556 2016-09-30  Marek Polacek  <polacek@redhat.com>
4558         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
4559         * config/alpha/predicates.md: Likewise.
4561 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4563         * ifcvt.c (noce_try_avoid_const_materialization): New function.
4564         (noce_process_if_block): Use it.
4566 2016-09-30  Martin Liska  <mliska@suse.cz>
4568         * doc/invoke.texi: Document asan-use-after-return that
4569         it's disabled by default in runtime.
4571 2016-09-30  Richard Biener  <rguenther@suse.de>
4573         * tree-vrp.c (intersect_ranges): If we failed to handle
4574         the intersection choose a constant singleton range if available.
4576 2016-09-30  Richard Biener  <rguenther@suse.de>
4578         PR tree-optimization/77399
4579         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4580         float <-> int conversions.
4582 2016-09-30  Alan Modra  <amodra@gmail.com>
4584         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
4586 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
4588         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
4589         ext_level before calling CPUID with 0x80000008.
4590         Simplify xgetbv checks.
4592 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
4594         * Makefile.in (OBJS): Add print-rtl-function.o.
4595         * print-rtl-function.c: New file.
4596         * print-rtl.h (print_rtx_function): New decl.
4598 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
4600         PR target/77756
4601         * config/i386/cpuid.h (__get_cpuid_count): New.
4602         (__get_cpuid): Rename __level to __leaf.
4604 2016-09-29  Marek Polacek  <polacek@redhat.com>
4606         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
4608 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
4610         * builtins.c (expand_builtin_memcmp): don't swap args unless
4611         result is only being compared with zero.
4613 2016-09-29  Marek Polacek  <polacek@redhat.com>
4615         * dwarf2out.c (loc_descriptor): Add fall through comment.
4616         (add_const_value_attribute): Likewise.
4618 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
4620         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
4621         with "v6t2".  Move "arch" attribute above "pool_range".
4622         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
4623         with "v6t2".
4624         (*thumb2_movhi_vfp): Likewise.
4625         (*arm_movhi_fp16): Likewise.
4626         (*thumb2_movhi_fp16): Likewise.
4627         (*arm_movsi_vfp): Remove "arch" attribute.
4628         (*thumb2_movsi_vfp): Likewise.
4630 2016-09-29  Martin Liska  <mliska@suse.cz>
4632         * doc/extend.texi: Remove limitation of Objective C for
4633         __attribute__((constructor)) and __attribute__((destructor)).
4635 2016-09-29  Richard Biener  <rguenther@suse.de>
4637         PR tree-optimization/77768
4638         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4639         Handle stores to readonly memory when removing redundant stores.
4641 2016-09-29  Richard Biener  <rguenther@suse.de>
4643         PR middle-end/77407
4644         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
4645         X / -X -> -1 simplifications.
4647 2016-09-29  Richard Biener  <rguenther@suse.de>
4649         PR middle-end/55152
4650         * match.pd: Add max(a,-a) -> abs(a) pattern.
4651         * tree-ssa-phiopt.c (minmax_replacement): Disable for
4652         HONOR_SIGNED_ZEROS types.
4654 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
4656         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
4657         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
4659 2016-09-29  Richard Biener  <rguenther@suse.de>
4661         * tree-vrp.c (set_defs_to_varying): New helper avoiding
4662         writing to vr_const_varying.
4663         (vrp_initialize): Call it.
4664         (vrp_visit_stmt): Likewise.
4665         (evrp_dom_walker::before_dom_children): Likewise.
4667 2016-09-29  Richard Biener  <rguenther@suse.de>
4669         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
4670         constructors with vector elements.
4672 2016-09-29  Richard Biener  <rguenther@suse.de>
4674         PR tree-optimization/77768
4675         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
4676         with stores to a place we know has a constant value.
4678 2016-09-29  Alan Modra  <amodra@gmail.com>
4680         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
4681         * doc/invoke.texi: Document it.
4682         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
4683         (rs6000_passes_float): Comment.
4684         (rs6000_passes_long_double): New static var.
4685         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
4686         (init_cumulative_args): Set up to emit fp .gnu_attribute for
4687         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
4688         to include fp values returned in vectors.
4689         Set rs6000_passes_long_double.
4690         (rs6000_function_arg_advance_1): Likewise for function args.
4691         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
4692         and SPE.  Emit long double tag value too.
4693         (rs6000_opt_vars): Add gnu-attr.
4694         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
4695         * configure: Regenerate.
4696         * config.in: Regenerate.
4698 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
4700         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
4701         of 0 < x.
4702         (format_floating, format_string, format_directive,
4703         get_destination_size, pass_sprintf_length::handle_gimple_call):
4704         Likewise.
4706 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
4708         * gimple-ssa-sprintf.c: Fix comment formatting.
4709         (format_integer): Use is_gimple_assign.
4710         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
4711         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
4712         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
4713         (pass_sprintf_length::execute): Use is_gimple_call.
4715 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4717         * gimple-fold.c (gimple_fold_builtin): After failing to fold
4718         strchr, also try the generic folding.
4720 2016-09-28  Martin Sebor  <msebor@redhat.com>
4722         PR c/77762
4723         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
4724         Fix typos.
4726 2016-09-28  Martin Sebor  <msebor@redhat.com>
4728         PR middle-end/77683
4729         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
4730         length modifier is not expected.
4731         (format_floating): Ignore l length modifier and fail gracefuly
4732         when it isn't one of the other expected ones.
4734 2016-09-28  Martin Sebor  <msebor@redhat.com>
4736         PR bootstrap/77753
4737         * varasm.c (assemble_addr_to_section): Increase local buffer size.
4739 2016-09-27  Richard Biener  <rguenther@suse.de>
4741         * dwarf2out.c (cu_die_list): New global.
4742         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
4743         main_comp_unit_die to cu_die_list if we created it.
4744         Move break_out_includes ...
4745         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
4746         the cu_die_list.
4748 2016-09-28  Richard Biener  <rguenther@suse.de>
4750         * dwarf2out.c (struct die_struct): Add removed flag.
4751         (lookup_type_die): If the DIE is marked as removed, clear
4752         TYPE_SYMTAB_DIE and return NULL.
4753         (lookup_decl_die): If the DIE is marked as removed, remove it
4754         from the hash and return NULL.
4755         (mark_removed): New helper.
4756         (prune_unused_types_prune): Call it for removed DIEs.
4757         (gen_subprogram_die): Move the premark_used_types call to after
4758         DIEs for the functions scopes are generated.
4759         (process_scope_var): Do not re-create pruned types or type decls.
4760         Make sure to also re-parent type decls.
4761         (dwarf2out_finish): Move unused type pruning and debug_types
4762         handling ...
4763         (dwarf2out_early_finish): ... here.
4765 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
4767         * config/arc/arc-c.c: New file.
4768         * config/arc/arc-c.def: Likewise.
4769         * config/arc/t-arc: Likewise.
4770         * config.gcc: Include arc-c.o as c and cpp object.
4771         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
4772         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
4773         arc_cpu_cpp_builtins.
4775 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
4777         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
4778         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
4780 2016-09-28  Nathan Sidwell  <nathan@acm.org>
4782         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
4783         printing.
4785 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4787         PR tree-optimization/61056
4788         * gimple-fold.c (gimple_fold_builtin_strchr):
4789         New function to optimize strchr (s, 0) to strlen.
4790         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
4792 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
4794         PR tree-optimization/77724
4795         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
4796         Add tree_fits_shwi_p check.
4798 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
4800         * auto-inc-dec.c (try_merge): Remove break after return.
4801         * cselib.c (autoinc_split): Likewise.
4802         * explow.c (promote_mode): Likewise.
4803         * fixed-value.c (fixed_arithmetic): Likewise.
4804         * hsa.c (hsa_internal_fn::get_arity): Likewise.
4805         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
4806         * trans-mem.c (get_attrs_for): Likewise.
4807         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
4808         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
4809         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
4810         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
4811         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
4812         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
4813         * config/cris/cris.c (cris_op_str): Likewise.
4814         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
4815         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
4817 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
4819         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
4820         IFN_GOACC_REDUCTION_CODES): New.
4821         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
4822         ifn_goacc_reduction_kind): Use them.
4823         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
4824         of internal functions, when applicable.
4826 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
4828         * config/mips/constraints.md (d): Fix documentation.
4829         * doc/md.texi (Machine Constraints): Update accordingly.
4831 2016-09-27  Richard Biener  <rguenther@suse.de>
4833         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
4834         cur_line_info_table initialization ...
4835         (dwarf2out_assembly_start): ... here.
4837 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
4839         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
4840         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
4841         (*thumb2_movhi_vfp): Likewise.
4842         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
4843         template.  Expand predicable attribute to mark VMOV.F16 as not
4844         predicable.  Add "arch" attribute.
4845         (*thumb2_movhi_fp16): Likewise.
4846         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
4847         (*thumb2_movsi_vfp): Add "arch" attribute.
4849 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
4851         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
4852         VAR_DECL string.
4854 2016-09-27  Marek Polacek  <polacek@redhat.com>
4856         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
4857         comment.
4859         * config/c6x/c6x.h: Adjust fall through comment.
4860         * config/sh/sh.c (final_prescan_insn): Likewise.
4861         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
4862         (visium_expand_fp_cstore): Likewise.
4864 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4866         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
4867         expected by -Wimplicit-fallthrough.
4868         (thumb1_size_rtx_costs): Likewise.
4869         (thumb2_reorg): Likewise.
4870         (tls_mentioned_p): Add "Fall through" comment.
4871         (thumb2_reorg): Likewise.
4872         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
4873         comment form expected by -Wimplicit-fallthrough.
4875 2016-09-27  Martin Liska  <mliska@suse.cz>
4877         PR gcov-profile/46266
4878         * input.h (RESERVED_LOCATION_P): New macro.
4879         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
4880         instread of comparison with UNKNOWN_LOCATION.
4882 2016-09-27  Richard Biener  <rguenther@suse.de>
4884         PR tree-optimization/77745
4885         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4886         When removing redundant stores make sure to check compatibility
4887         of the TBAA state for downstream accesses.
4888         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
4889         value-numbering virtual operands for store matches.
4891 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4893         PR target/51244
4894         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
4895         movrt patterns.  Match them before anything else in the SET case.
4897 2016-09-27  Martin Liska  <mliska@suse.cz>
4899         PR gcov-profile/7970
4900         PR gcov-profile/16855
4901         PR gcov-profile/44779
4902         * coverage.c (build_gcov_exit_decl): New function.
4903         (coverage_obj_init): Call the function and generate __gcov_exit
4904         destructor.
4905         * doc/gcov.texi: Document when __gcov_exit function is called.
4907 2016-09-27  Marek Polacek  <polacek@redhat.com>
4909         PR bootstrap/77751
4910         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4911         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
4912         -Wno-error instead of -Wno-implicit-fallthrough.
4914 2016-09-27  Martin Liska  <mliska@suse.cz>
4916         PR bootstrap/77749
4917         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
4919 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
4921         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
4922         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
4923         comments.  Remove break after return.
4924         (ix86_fp_compare_code_to_integer, has_dispatch,
4925         ix86_simd_clone_usable): Remove break after return.
4927 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4929         PR rlt-optimization/77714
4930         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
4931         REG_EQUAL note.
4933 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
4935         PR ipa/77677
4936         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
4937         extract_range_from_unary_expr to convert value_range.
4938         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
4939         (extract_range_from_unary_expr): This.
4940         * tree-vrp.h (extract_range_from_unary_expr): Declare.
4942 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
4944         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
4946 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4948         * config/i386/i386.c (ix86_print_operand)
4949         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
4950         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
4951         (epilogue_renumber): Likewise.
4953 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
4955         PR middle-end/77719
4956         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
4957         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
4959 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4961         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4962         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
4963         is_mm_seq_cst, is_mm_sync): Move to ...
4964         * memmodel.h: This.  New file.
4965         * builtins.c: Include memmodel.h.
4966         * optabs.c: Likewise.
4967         * tsan.c: Likewise.
4968         * config/aarch64/aarch64.c: Likewise.
4969         * config/alpha/alpha.c: Likewise.
4970         * config/arm/arm.c: Likewise.
4971         * config/i386/i386.c: Likewise.
4972         * config/ia64/ia64.c: Likewise.
4973         * config/mips/mips.c: Likewise.
4974         * config/rs6000/rs6000.c: Likewise.
4975         * config/sparc/sparc.c: Likewise.
4976         * genconditions.c: Include memmodel.h in generated file.
4977         * genemit.c: Likewise.
4978         * genoutput.c: Likewise.
4979         * genpeep.c: Likewise.
4980         * genpreds.c: Likewise.
4981         * genrecog.c: Likewise.
4983 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
4985         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
4986         "c" instead when parsing characters.  Move operand parsing into...
4987         (read_rtx_operand): ...this new function, renaming "i" to "idx",
4988         and tightening the scope of various locals.
4990 2016-09-26  Liu Hao  <lh_mouse@126.com>
4992         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
4994 2016-09-26  Marek Polacek  <polacek@redhat.com>
4996         * system.h: Use __has_attribute to check whether the fallthrough
4997         attribute is supported.
4999 2016-09-26  Marek Polacek  <polacek@redhat.com>
5001         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
5002         gimple_call_internal_p.
5003         * ipa-split.c (find_return_bb): Likewise.
5004         (execute_split_functions): Likewise.
5005         * omp-low.c (dump_oacc_loop_part): Likewise.
5006         (oacc_loop_xform_head_tail): Likewise.
5007         * predict.c (predict_loops): Likewise.
5008         * sanopt.c (pass_sanopt::execute): Likewise.
5009         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
5010         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
5011         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
5012         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
5013         (expand_ifn_va_arg): Likewise.
5014         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5015         (optimize_mask_stores): Likewise.
5016         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
5017         (vect_transform_stmt): Likewise.
5018         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
5019         * tsan.c (instrument_memory_accesses): Likewise.
5021 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5022             Alexander Monakov  <amonakov@ispras.ru>
5024         * regrename.c (rename_chains): Check
5025         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
5026         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
5027         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5029 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5031         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
5032         (s390_sched_score): Likewise.
5034 2016-09-26  Martin Liska  <mliska@suse.cz>
5036         * doc/gcov.texi: Update program output of gcov tool.
5038 2016-09-26  Martin Liska  <mliska@suse.cz>
5040         PR gcov-profile/23332
5041         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
5042         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
5043         * value-prof.c (dump_histogram_value): Do not handle
5044         HIST_TYPE_CONST_DELTA.
5045         (stream_in_histogram_value): Likewise.
5046         (gimple_find_values_to_profile): Likewise.
5047         * value-prof.h (enum hist_type): Likewise.
5049 2016-09-26  Martin Liska  <mliska@suse.cz>
5051         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
5052         from default sanitize recover values.
5053         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
5054         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
5055         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
5056         consistent.
5057         * opts.c (finish_options): Do a generic loop over options
5058         that can be recovered.
5059         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
5060         SANITIZE_RETURN.
5061         (common_handle_option): Likewise.
5062         * opts.h: Declare can_recover to sanitizer_opts_s.
5064 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5066         * target.def(elf_flags_numeric): Change documentation to present tense.
5067         * doc/tm.texi: Regenerate.
5069 2016-09-26  Marek Polacek  <polacek@redhat.com>
5071         PR c/7652
5072         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5073         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
5074         -Wno-switch-fallthrough.
5075         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
5076         (expand_builtin): Likewise.
5077         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
5078         * convert.c (convert_to_real_1): Likewise.
5079         (convert_to_integer_1): Likewise.
5080         * final.c (output_alternate_entry_point): Likewise.
5081         * genattrtab.c (make_canonical): Likewise.
5082         (write_test_expr): Likewise.
5083         * genpreds.c (validate_exp): Likewise.
5084         * gimple-ssa-strength-reduction.c
5085         (find_candidates_dom_walker::before_dom_children): Likewise.
5086         * godump.c (go_format_type): Likewise.
5087         * reload1.c (elimination_effects): Likewise.
5088         * resource.c (mark_referenced_resources): Likewise.
5089         (mark_set_resources): Likewise.
5090         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
5091         * varasm.c (output_addressed_constants): Likewise.
5093 2016-09-26  Marek Polacek  <polacek@redhat.com>
5095         PR c/7652
5096         * common.opt (Wimplicit-fallthrough): New option.
5097         * doc/extend.texi: Document statement attributes and the fallthrough
5098         attribute.
5099         * doc/invoke.texi: Document -Wimplicit-fallthrough.
5100         * gimple.h (gimple_call_internal_p): New function.
5101         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
5102         (struct label_entry): New struct.
5103         (find_label_entry): New function.
5104         (case_label_p): New function.
5105         (collect_fallthrough_labels): New function.
5106         (last_stmt_in_scope): New function.
5107         (should_warn_for_implicit_fallthrough): New function.
5108         (warn_implicit_fallthrough_r): New function.
5109         (maybe_warn_implicit_fallthrough): New function.
5110         (expand_FALLTHROUGH_r): New function.
5111         (expand_FALLTHROUGH): New function.
5112         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
5113         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
5114         (gimplify_label_expr): New function.
5115         (gimplify_case_label_expr): Set location.
5116         (gimplify_expr): Call gimplify_label_expr.
5117         * internal-fn.c (expand_FALLTHROUGH): New function.
5118         * internal-fn.def (FALLTHROUGH): New internal function.
5119         * langhooks.c (lang_GNU_OBJC): New function.
5120         * langhooks.h (lang_GNU_OBJC): Declare.
5121         * system.h (gcc_fallthrough): Define.
5122         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
5123         * tree.h (FALLTHROUGH_LABEL_P): Define.
5125 2016-09-26  Richard Biener  <rguenther@suse.de>
5127         * dwarf2out.c (stripattributes): Remove unused function.
5128         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
5129         Push dwarf_split_debug_info handling into init_sections_and_labels.
5130         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
5131         (DEBUG_MACRO_SECTION_FLAGS): Remove.
5132         (debug_macinfo_section_name): New global.
5133         (output_macinfo): Use debug_macinfo_section_name.
5134         (init_sections_and_labels): Split out section and label generation
5135         from dwarf2out_init.  Set debug_macinfo_section_name.
5136         (dwarf2out_init): Move text section label generation and emission
5137         to ...
5138         (dwarf2out_assembly_start): ... here.
5139         (dwarf2out_finish): Call init_sections_and_labels before DWARF
5140         output starts.
5142 2016-09-26  Richard Biener  <rguenther@suse.de>
5144         PR debug/77692
5145         * cgraphunit.c (analyze_functions): Before early removing
5146         global vars calls the late_global_decl debug handler mark
5147         the variable as readonly.
5149 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
5151         PR target/51244
5152         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
5153         (sh_rtx_costs): Handle SET of movt and movrt patterns.
5154         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
5155         declare new overloads.
5156         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
5157         operand.
5159 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5161         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
5162         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
5164 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
5166         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
5167         * configure: Regenerate.
5169 2016-09-24  Marek Polacek  <polacek@redhat.com>
5171         PR c/77490
5172         * doc/invoke.texi: Document -Wbool-operation.
5174 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5176         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
5177         * config/rs6000/rs6000.c (expand_block_compare): New function used by
5178         cmpmemsi pattern to do builtin expansion of memcmp ().
5179         (compute_current_alignment): Add helper function for
5180         expand_block_compare used to compute alignment as the compare proceeds.
5181         (select_block_compare_mode): Used by expand_block_compare to select
5182         the mode used for reading the next chunk of bytes in the compare.
5183         (do_load_for_compare): Used by expand_block_compare to emit the load
5184         insns for the compare.
5185         (rs6000_emit_dot_insn): Moved this function to avoid a forward
5186         reference from expand_block_compare ().
5187         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
5188         prototype for this function.
5189         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
5190         target option for controlling how much code inline expansion of
5191         memcmp() will be allowed to generate.
5193 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
5195         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
5196         hook_bool_mode_false, hook_bool_mode_true,
5197         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
5198         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
5199         hook_bool_const_rtx_insn_const_rtx_insn_true,
5200         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
5201         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
5202         hook_bool_const_tree_hwi_hwi_const_tree_false,
5203         hook_bool_const_tree_hwi_hwi_const_tree_true,
5204         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
5205         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
5206         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
5207         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
5208         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
5209         hook_bool_const_tree_true, hook_bool_tree_tree_false,
5210         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
5211         hook_bool_rtx_insn_true, hook_bool_rtx_false,
5212         hook_bool_uintp_uintp_false,
5213         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
5214         hook_rtx_tree_int_null, hook_uint_mode_0,
5215         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
5216         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
5217         hook_constcharptr_const_rtx_insn_null,
5218         hook_constcharptr_const_tree_const_tree_null,
5219         hook_constcharptr_int_const_tree_null,
5220         hook_constcharptr_int_const_tree_const_tree_null,
5221         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
5222         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
5223         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
5225         * vec.h (vNULL): Extend comment to say = vNULL initialization
5226         isn't needed for static vars.
5228         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
5229         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
5230         = vNULL initialization of file scope vec.
5231         * passes.c (pass_tab, enabled_pass_uid_range_tab,
5232         disabled_pass_uid_range_tab): Likewise.
5233         * haifa-sched.c (sched_luids, h_i_d): Likewise.
5234         * tree-chkp-opt.c (check_infos): Likewise.
5235         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
5237         * vec.h (vnull::operator vec): Add constexpr keyword for
5238         C++11 and later.
5240 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
5242         PR tree-optimization/77654
5243         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
5244         to duplicate_ssa_name_ptr_info.
5246 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
5248         PR preprocessor/77672
5249         * input.c (selftest::test_lexer_string_locations_simple): Update
5250         test to expect location information of the terminator character
5251         at the location of the final closing quote.
5252         (selftest::test_lexer_string_locations_hex): Likewise.
5253         (selftest::test_lexer_string_locations_oct): Likewise.
5254         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
5255         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
5256         (selftest::test_lexer_string_locations_ucn4): Likewise.
5257         (selftest::test_lexer_string_locations_ucn8): Likewise.
5258         (selftest::test_lexer_string_locations_u8): Likewise.
5259         (selftest::test_lexer_string_locations_utf8_source): Likewise.
5260         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
5261         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
5262         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
5263         (selftest::test_lexer_string_locations_macro): Likewise.
5264         (selftest::test_lexer_string_locations_long_line): Likewise.
5266 2016-09-23  Richard Biener  <rguenther@suse.de>
5268         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
5269         virtual definition to virtual use if the call devirtualizes
5270         to a const or pure function.
5271         (visit_use): Also visit calls we can devirtualize to a
5272         const or pure function.
5274 2016-09-23  Richard Biener  <rguenther@suse.de>
5276         PR tree-optimization/77697
5277         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
5278         signal error if we have sth ternary or unhandled.
5280 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5282         * config/arm/arm_neon.h (vabd_f16): New.
5283         (vabdq_f16): New.
5284         (vabs_f16): New.
5285         (vabsq_f16): New.
5286         (vadd_f16): New.
5287         (vaddq_f16): New.
5288         (vcage_f16): New.
5289         (vcageq_f16): New.
5290         (vcagt_f16): New.
5291         (vcagtq_f16): New.
5292         (vcale_f16): New.
5293         (vcaleq_f16): New.
5294         (vcalt_f16): New.
5295         (vcaltq_f16): New.
5296         (vceq_f16): New.
5297         (vceqq_f16): New.
5298         (vceqz_f16): New.
5299         (vceqzq_f16): New.
5300         (vcge_f16): New.
5301         (vcgeq_f16): New.
5302         (vcgez_f16): New.
5303         (vcgezq_f16): New.
5304         (vcgt_f16): New.
5305         (vcgtq_f16): New.
5306         (vcgtz_f16): New.
5307         (vcgtzq_f16): New.
5308         (vcle_f16): New.
5309         (vcleq_f16): New.
5310         (vclez_f16): New.
5311         (vclezq_f16): New.
5312         (vclt_f16): New.
5313         (vcltq_f16): New.
5314         (vcltz_f16): New.
5315         (vcltzq_f16): New.
5316         (vcvt_f16_s16): New.
5317         (vcvt_f16_u16): New.
5318         (vcvt_s16_f16): New.
5319         (vcvt_u16_f16): New.
5320         (vcvtq_f16_s16): New.
5321         (vcvtq_f16_u16): New.
5322         (vcvtq_s16_f16): New.
5323         (vcvtq_u16_f16): New.
5324         (vcvta_s16_f16): New.
5325         (vcvta_u16_f16): New.
5326         (vcvtaq_s16_f16): New.
5327         (vcvtaq_u16_f16): New.
5328         (vcvtm_s16_f16): New.
5329         (vcvtm_u16_f16): New.
5330         (vcvtmq_s16_f16): New.
5331         (vcvtmq_u16_f16): New.
5332         (vcvtn_s16_f16): New.
5333         (vcvtn_u16_f16): New.
5334         (vcvtnq_s16_f16): New.
5335         (vcvtnq_u16_f16): New.
5336         (vcvtp_s16_f16): New.
5337         (vcvtp_u16_f16): New.
5338         (vcvtpq_s16_f16): New.
5339         (vcvtpq_u16_f16): New.
5340         (vcvt_n_f16_s16): New.
5341         (vcvt_n_f16_u16): New.
5342         (vcvtq_n_f16_s16): New.
5343         (vcvtq_n_f16_u16): New.
5344         (vcvt_n_s16_f16): New.
5345         (vcvt_n_u16_f16): New.
5346         (vcvtq_n_s16_f16): New.
5347         (vcvtq_n_u16_f16): New.
5348         (vfma_f16): New.
5349         (vfmaq_f16): New.
5350         (vfms_f16): New.
5351         (vfmsq_f16): New.
5352         (vmax_f16): New.
5353         (vmaxq_f16): New.
5354         (vmaxnm_f16): New.
5355         (vmaxnmq_f16): New.
5356         (vmin_f16): New.
5357         (vminq_f16): New.
5358         (vminnm_f16): New.
5359         (vminnmq_f16): New.
5360         (vmul_f16): New.
5361         (vmul_lane_f16): New.
5362         (vmul_n_f16): New.
5363         (vmulq_f16): New.
5364         (vmulq_lane_f16): New.
5365         (vmulq_n_f16): New.
5366         (vneg_f16): New.
5367         (vnegq_f16): New.
5368         (vpadd_f16): New.
5369         (vpmax_f16): New.
5370         (vpmin_f16): New.
5371         (vrecpe_f16): New.
5372         (vrecpeq_f16): New.
5373         (vrnd_f16): New.
5374         (vrndq_f16): New.
5375         (vrnda_f16): New.
5376         (vrndaq_f16): New.
5377         (vrndm_f16): New.
5378         (vrndmq_f16): New.
5379         (vrndn_f16): New.
5380         (vrndnq_f16): New.
5381         (vrndp_f16): New.
5382         (vrndpq_f16): New.
5383         (vrndx_f16): New.
5384         (vrndxq_f16): New.
5385         (vrsqrte_f16): New.
5386         (vrsqrteq_f16): New.
5387         (vrecps_f16): New.
5388         (vrecpsq_f16): New.
5389         (vrsqrts_f16): New.
5390         (vrsqrtsq_f16): New.
5391         (vsub_f16): New.
5392         (vsubq_f16): New.
5394 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5396         * config.gcc (extra_headers): Add arm_fp16.h
5397         * config/arm/arm_fp16.h: New.
5398         * config/arm/arm_neon.h: Include "arm_fp16.h".
5400 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5402         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
5403         variants).
5404         (vmulf): New (v8hf, v4hf variants).
5405         (vfma): New (v8hf, v4hf variants).
5406         (vfms): New (v8hf, v4hf variants).
5407         (vsub): New (v8hf, v4hf variants).
5408         (vcage): New (v8hf, v4hf variants).
5409         (vcagt): New (v8hf, v4hf variants).
5410         (vcale): New (v8hf, v4hf variants).
5411         (vcalt): New (v8hf, v4hf variants).
5412         (vceq): New (v8hf, v4hf variants).
5413         (vcgt): New (v8hf, v4hf variants).
5414         (vcge): New (v8hf, v4hf variants).
5415         (vcle): New (v8hf, v4hf variants).
5416         (vclt): New (v8hf, v4hf variants).
5417         (vceqz): New (v8hf, v4hf variants).
5418         (vcgez): New (v8hf, v4hf variants).
5419         (vcgtz): New (v8hf, v4hf variants).
5420         (vcltz): New (v8hf, v4hf variants).
5421         (vclez): New (v8hf, v4hf variants).
5422         (vabd): New (v8hf, v4hf variants).
5423         (vmaxf): New (v8hf, v4hf variants).
5424         (vmaxnm): New (v8hf, v4hf variants).
5425         (vminf): New (v8hf, v4hf variants).
5426         (vminnm): New (v8hf, v4hf variants).
5427         (vpmaxf): New (v4hf variant).
5428         (vpminf): New (v4hf variant).
5429         (vpadd): New (v4hf variant).
5430         (vrecps): New (v8hf, v4hf variants).
5431         (vrsqrts): New (v8hf, v4hf variants).
5432         (vabs): New (v8hf, v4hf variants).
5433         (vneg): New (v8hf, v4hf variants).
5434         (vrecpe): New (v8hf, v4hf variants).
5435         (vrnd): New (v8hf, v4hf variants).
5436         (vrnda): New (v8hf, v4hf variants).
5437         (vrndm): New (v8hf, v4hf variants).
5438         (vrndn): New (v8hf, v4hf variants).
5439         (vrndp): New (v8hf, v4hf variants).
5440         (vrndx): New (v8hf, v4hf variants).
5441         (vrsqrte): New (v8hf, v4hf variants).
5442         (vmul_lane): Add v4hf and v8hf variants.
5443         (vmul_n): Add v4hf and v8hf variants.
5444         (vext): New (v8hf, v4hf variants).
5445         (vcvts): New (v8hi, v4hi variants).
5446         (vcvts): New (v8hf, v4hf variants).
5447         (vcvtu): New (v8hi, v4hi variants).
5448         (vcvtu): New (v8hf, v4hf variants).
5449         (vcvts_n): New (v8hf, v4hf variants).
5450         (vcvtu_n): New (v8hi, v4hi variants).
5451         (vcvts_n): New (v8hi, v4hi variants).
5452         (vcvtu_n): New (v8hf, v4hf variants).
5453         (vbsl): New (v8hf, v4hf variants).
5454         (vcvtas): New (v8hf, v4hf variants).
5455         (vcvtau): New (v8hf, v4hf variants).
5456         (vcvtms): New (v8hf, v4hf variants).
5457         (vcvtmu): New (v8hf, v4hf variants).
5458         (vcvtns): New (v8hf, v4hf variants).
5459         (vcvtnu): New (v8hf, v4hf variants).
5460         (vcvtps): New (v8hf, v4hf variants).
5461         (vcvtpu): New (v8hf, v4hf variants).
5463 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5465         * config/arm/arm-builtins.c (hf_UP): New.
5466         (si_UP): New.
5467         (vfp_builtin_data): New.  Update comment.
5468         (enum arm_builtins): Include "arm_vfp_builtins.def".
5469         (ARM_BUILTIN_VFP_PATTERN_START): New.
5470         (arm_init_vfp_builtins): New.
5471         (arm_init_builtins): Add arm_init_vfp_builtins.
5472         (arm_expand_vfp_builtin): New.
5473         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
5474         long line.
5475         * config/arm/arm_vfp_builtins.def: New file.
5476         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
5477         (arm-builtins.o): Likewise.
5479 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
5481         PR ipa/77677
5482         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
5483         from constant while creating value range.
5485 2016-09-23  Renlin Li  <renlin.li@arm.com>
5487         * ira.c (ira): Move ira_use_lra_p initialization code to ...
5488         (ira_init_once): Here.
5490 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
5491             Jakub Jelinek  <jakub@redhat.com>
5493         * hooks.h (hook_uint_uintp_false): Rename to...
5494         (hook_bool_uint_uintp_false): ... this.
5495         * hooks.c (hook_uint_uintp_false): Rename to...
5496         (hook_bool_uint_uintp_false): ... this.
5497         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
5498         instead of hook_uint_uintp_false.
5500 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5502         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
5503         (arm_init_builtins): Move body of a loop to the standalone
5504         function arm_init_neon_builtin.
5505         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
5506         moved from arm_neon_builtin with some white-space fixes.
5507         (arm_expand_neon_builtin): Move code into the standalone function
5508         arm_expand_neon_builtin_1.
5510 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5512         * config/arm/iterators.md (VCVTHI): New.
5513         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
5514         (NEON_VAGLTE): New.
5515         (VFM_LANE_AS): New.
5516         (VH_CVTTO): New.
5517         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
5518         (V_HALF): Add V4HF.  Fix white-space.
5519         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
5520         (V_s_elem): Likewise.
5521         (V_sz_elem): Fix white-space.
5522         (V_elem_ch): Likewise.
5523         (VH_elem_ch): New.
5524         (scalar_mul_constraint): Add V8HF and V4HF.
5525         (Is_float_mode): Fix white-space.
5526         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
5527         (q): Add HF.  Fix white-space.
5528         (float_sup): New.
5529         (float_SUP): New.
5530         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
5531         (neon_vfm_lane_as): New.
5532         * config/arm/neon.md (add<mode>3_fp16): New.
5533         (sub<mode>3_fp16): New.
5534         (mul<mode>3add<mode>_neon): New.
5535         (fma<VH:mode>4_intrinsic): New.
5536         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
5537         (fmsub<VH:mode>4_intrinsic): New.
5538         (<absneg_str><mode>2): New.
5539         (neon_v<absneg_str><mode>): New.
5540         (neon_v<fp16_rnd_str><mode>): New.
5541         (neon_vrsqrte<mode>): New.
5542         (neon_vpaddv4hf): New.
5543         (neon_vadd<mode>): New.
5544         (neon_vsub<mode>): New.
5545         (neon_vmulf<mode>): New.
5546         (neon_vfma<VH:mode>): New.
5547         (neon_vfms<VH:mode>): New.
5548         (neon_vc<cmp_op><mode>): New.
5549         (neon_vc<cmp_op><mode>_fp16insn): New
5550         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
5551         (neon_vca<cmp_op><mode>): New.
5552         (neon_vca<cmp_op><mode>_fp16insn): New.
5553         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
5554         (neon_vc<cmp_op>z<mode>): New.
5555         (neon_vabd<mode>): New.
5556         (neon_v<maxmin>f<mode>): New.
5557         (neon_vp<maxmin>fv4hf: New.
5558         (neon_<fmaxmin_op><mode>): New.
5559         (neon_vrecps<mode>): New.
5560         (neon_vrsqrts<mode>): New.
5561         (neon_vrecpe<mode>): New (VH variant).
5562         (neon_vdup_lane<mode>_internal): New.
5563         (neon_vdup_lane<mode>): New.
5564         (neon_vcvt<sup><mode>): New (VCVTHI variant).
5565         (neon_vcvt<sup><mode>): New (VH variant).
5566         (neon_vcvt<sup>_n<mode>): New (VH variant).
5567         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
5568         (neon_vcvt<vcvth_op><sup><mode>): New.
5569         (neon_vmul_lane<mode>): New.
5570         (neon_vmul_n<mode>): New.
5571         * config/arm/unspecs.md (UNSPEC_VCALE): New
5572         (UNSPEC_VCALT): New.
5573         (UNSPEC_VFMA_LANE): New.
5574         (UNSPECS_VFMS_LANE): New.
5576 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5578         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
5579         ("*extzv<mode><clobbercc_or_nocc>"):
5580         Correct a typo in a comment.
5581         Merged patterns.
5582         ("*insv<mode>_zEC12", "*insv<mode>_z10")
5583         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
5584         ("*insv<mode>_zEC12_appendbitsleft")
5585         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
5586         ("*insv<mode>_z10_appendbitsleft"): Ditto.
5587         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
5588         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
5589         Provide pattern with operands switched.
5590         ("*pre_z10_extv<mode>"):
5591         Use new subst patterns.
5592         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
5593         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
5594         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
5595         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
5596         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
5597         ("*<risbg_n>_sidi_ior_and_lshiftrt")
5598         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
5599         New patterns.
5600         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
5601         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5602         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
5603         on zEC12.
5604         ("SINT"): New mode_iterator with SI, HI, QI.
5605         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
5606         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
5607         duplication.
5609 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5611         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
5612         new interface of s390_contiguous_bitmask_p.
5613         ("contiguous_bitmask_nowrap_operand"): New predicate.
5614         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
5615         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
5616         of s390_contiguous_bitmask_p.
5617         ("NxxDw"): Rename NxxDq constraint to NxxDw.
5618         ("NxxSw"): New constraint.
5619         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
5620         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
5621         interface.
5622         (s390_contiguous_bitmask_nowrap_p): Export.
5623         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
5624         former s390_contiguous_bitmask_p.
5625         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
5626         detect contiguous bit ranges with wraparound.  Change signature to
5627         return START and END position instead of POS and LENGTH.
5628         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
5629         ranges with wraparound.
5630         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
5631         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
5632         Adapt to new signature of s390_contiguous_bitmask_p.
5634 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
5636         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
5637         (create_intersect_range_checks): New.
5638         (vect_create_cond_for_alias_checks): Call above function.
5640 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5642         * config/arm/iterators.md (Code iterators): Fix some white-space
5643         in the comments.
5644         (GLTE): New.
5645         (ABSNEG): New
5646         (FCVT): Moved from vfp.md.
5647         (VCVT_HF_US_N): New.
5648         (VCVT_SI_US_N): New.
5649         (VCVT_HF_US): New.
5650         (VCVTH_US): New.
5651         (FP16_RND): New.
5652         (absneg_str): New.
5653         (FCVTI32typename): Moved from vfp.md.
5654         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
5655         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
5656         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
5657         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
5658         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
5659         (vcvth_op): New.
5660         (fp16_rnd_str): New.
5661         (fp16_rnd_insn): New.
5662         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
5663         (UNSPEC_VCVT_HF_U_N): New.
5664         (UNSPEC_VCVT_SI_S_N): New.
5665         (UNSPEC_VCVT_SI_U_N): New.
5666         (UNSPEC_VCVTH_S): New.
5667         (UNSPEC_VCVTH_U): New.
5668         (UNSPEC_VCVTA_S): New.
5669         (UNSPEC_VCVTA_U): New.
5670         (UNSPEC_VCVTM_S): New.
5671         (UNSPEC_VCVTM_U): New.
5672         (UNSPEC_VCVTN_S): New.
5673         (UNSPEC_VCVTN_U): New.
5674         (UNSPEC_VCVTP_S): New.
5675         (UNSPEC_VCVTP_U): New.
5676         (UNSPEC_VCVTP_S): New.
5677         (UNSPEC_VCVTP_U): New.
5678         (UNSPEC_VRND): New.
5679         (UNSPEC_VRNDA): New.
5680         (UNSPEC_VRNDI): New.
5681         (UNSPEC_VRNDM): New.
5682         (UNSPEC_VRNDN): New.
5683         (UNSPEC_VRNDP): New.
5684         (UNSPEC_VRNDX): New.
5685         * config/arm/vfp.md (<absneg_str>hf2): New.
5686         (neon_vabshf): New.
5687         (neon_v<fp16_rnd_str>hf): New.
5688         (neon_vrndihf): New.
5689         (addhf3): New.
5690         (subhf3): New.
5691         (divhf3): New.
5692         (mulhf3): New.
5693         (*mulsf3neghf_vfp): New.
5694         (*negmulhf3_vfp): New.
5695         (*mulsf3addhf_vfp): New.
5696         (*mulhf3subhf_vfp): New.
5697         (*mulhf3neghfaddhf_vfp): New.
5698         (*mulhf3neghfsubhf_vfp): New.
5699         (fmahf4): New.
5700         (neon_vfmahf): New.
5701         (fmsubhf4_fp16): New.
5702         (neon_vfmshf): New.
5703         (*fnmsubhf4): New.
5704         (*fnmaddhf4): New.
5705         (neon_vsqrthf): New.
5706         (neon_vrsqrtshf): New.
5707         (FCVT): Move to iterators.md.
5708         (FCVTI32typename): Likewise.
5709         (neon_vcvth<sup>hf): New.
5710         (neon_vcvth<sup>si): New.
5711         (neon_vcvth<sup>_nhf_unspec): New.
5712         (neon_vcvth<sup>_nhf): New.
5713         (neon_vcvth<sup>_nsi_unspec): New.
5714         (neon_vcvth<sup>_nsi): New.
5715         (neon_vcvt<vcvth_op>h<sup>si): New.
5716         (neon_<fmaxmin_op>hf): New.
5718 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5720         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
5721         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
5722         ("*insv<mode>_zEC12_appendbitsleft")
5723         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
5724         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
5726 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
5728         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
5729         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
5730         construct values without normalization.
5731         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
5732         static local lhs_ops to vNULL.
5734 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5735             Jiong Wang <jiong.wang@arm.com>
5737         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
5738         available when FP16 instructions are available.
5739         (output_move_vfp): Add support for 16-bit data moves.
5740         (arm_validize_comparison): Fix some white-space.  Support HFmode
5741         by conversion to SFmode.
5742         * config/arm/arm.md (truncdfhf2): Fix a comment.
5743         (extendhfdf2): Likewise.
5744         (cstorehf4): New.
5745         (movsicc): Fix some white-space.
5746         (movhfcc): New.
5747         (movsfcc): Fix some white-space.
5748         (*cmovhf): New.
5749         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
5750         instructions are available.
5751         (*thumb2_movhi_vfp): Likewise.
5752         (*arm_movhi_fp16): New.
5753         (*thumb2_movhi_fp16): New.
5754         (*movhf_vfp_fp16): New.
5755         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
5756         (*movhf_vfp): Likewise.
5757         (extendhfsf2): Enable when VFP FP16 instructions are available.
5758         (truncsfhf2):  Enable when VFP FP16 instructions are available.
5760 2016-09-23  Martin Liska  <mliska@suse.cz>
5762         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
5764 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5766         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
5767         V4HF modes.
5768         (arm_evpc_neon_vtrn): Likewise.
5769         (arm_evpc_neon_vrev): Likewise.
5770         (arm_evpc_neon_vext): Likewise.
5771         * config/arm/arm_neon.h (vbsl_f16): New.
5772         (vbslq_f16): New.
5773         (vdup_n_f16): New.
5774         (vdupq_n_f16): New.
5775         (vdup_lane_f16): New.
5776         (vdupq_lane_f16): New.
5777         (vext_f16): New.
5778         (vextq_f16): New.
5779         (vmov_n_f16): New.
5780         (vmovq_n_f16): New.
5781         (vrev64_f16): New.
5782         (vrev64q_f16): New.
5783         (vtrn_f16): New.
5784         (vtrnq_f16): New.
5785         (vuzp_f16): New.
5786         (vuzpq_f16): New.
5787         (vzip_f16): New.
5788         (vzipq_f16): New.
5789         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
5790         (vdup_lane): New (v8hf, v4hf variants).
5791         (vext): New (v8hf, v4hf variants).
5792         (vbsl): New (v8hf, v4hf variants).
5793         * config/arm/iterators.md (VDQWH): New.
5794         (VH): New.
5795         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
5796         (Scalar_mul_8_16): Fix white-space.
5797         (Is_d_reg): Add V4HF and V8HF.
5798         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
5799         (neon_vdup_lane<mode>): New.
5800         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
5801         (*neon_vtrn<mode>_insn): Likewise.
5802         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
5803         (*neon_vzip<mode>_insn): Likewise
5804         (neon_vuzp<mode>_internal): Likewise.
5805         (*neon_vuzp<mode>_insn): Likewise
5806         * config/arm/vec-common.md (vec_perm_const<mode>): New.
5808 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
5809             Matthew Wahab  <matthew.wahab@arm.com>
5811         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
5812         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
5813         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
5814         available.  Also fix some white-space.
5815         * config/arm/vfp.md (*arm_movhi_vfp): New.
5816         (*thumb2_movhi_vfp): New.
5818 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5820         * config/arm/arm-c.c (arm_cpu_builtins): Define
5821         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
5822         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
5824 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5826         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
5827         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
5828         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
5829         arm_v8_2a_fp16_neon_hw.
5830         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
5831         arm_v8_2a_neon.
5833 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5835         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
5836         arm_fp16_alternative_ok and arm_fp16_none_ok.
5838 2016-09-23  Martin Liska  <mliska@suse.cz>
5840         * ipa-icf.c (sem_variable::merge): Replace adress with address.
5842 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
5844         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
5845         ("armv8.2-a"): New.
5846         ("armv8.2-a+fp16"): New.
5847         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
5848         (FL2_FP16INST): New.
5849         (FL2_FOR_ARCH8_2A): New.
5850         * config/arm/arm-tables.opt: Regenerate.
5851         * config/arm/arm.c (arm_arch8_2): New.
5852         (arm_fp16_inst): New.
5853         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
5854         for incompatible fp16-format settings.
5855         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
5856         (TARGET_NEON_FP16INST): New.
5857         (arm_arch8_2): Declare.
5858         (arm_fp16_inst): Declare.
5859         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
5860         march=armv8.2-a and march=armv8.2-a+fp16.
5861         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
5862         and armv8.2-a+fp16.
5863         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
5864         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
5866 2016-09-23  Martin Liska  <mliska@suse.cz>
5868         * doc/extend.texi: Remove fused-madd from i386 target options.
5870 2016-09-23  Martin Liska  <mliska@suse.cz>
5872         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5873         Handle movbe.
5875 2016-09-23  Martin Liska  <mliska@suse.cz>
5877         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5878         Handle crc32.
5880 2016-09-23  Martin Liska  <mliska@suse.cz>
5882         PR target/71652
5883         * config/i386/i386.c (ix86_option_override_internal): Change
5884         signature and return false when there's an error related to
5885         arch string.
5886         (release_options_strings): New function.
5887         (ix86_valid_target_attribute_tree): Call the function.
5889 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
5891         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
5892         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
5893         (gen_hsa_ctor_assignment): Likewise.
5894         * print-tree.c (print_node): Likewise.
5895         * tree-dump.c (dequeue_and_dump): Likewise.
5896         * tree-sra.c (sra_modify_constructor_assign): Likewise.
5897         * expr.c (store_constructor): Likewise.
5898         * fold-const.c (operand_equal_p): Likewise.
5899         * tree-pretty-print.c (dump_generic_node): Likewise.
5900         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
5901         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
5903 2016-09-23  Richard Biener  <rguenther@suse.de>
5905         * hooks.h (hook_uint_uintp_false): Declare.
5907 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5909         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
5910         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
5912 2016-09-22  Martin Sebor  <msebor@redhat.com>
5914         PR target/77676
5915         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
5916         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
5917         (target_int_min): Correct computation.
5918         (format_integer): Use long long as the argument for the ll length
5919         modifier.
5920         (format_floating): Use target_int_max().
5921         (get_string_length): Same.
5922         (format_string): Avoid setting the bounded flag for strings
5923         of unknown length.
5924         (try_substitute_return_value): Avoid setting range info when
5925         the result isn't bounded.
5926         * varasm.c (assemble_name): Increase buffer size.
5928 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5929             Terry Guo  <terry.guo@arm.com>
5931         * target.def (elf_flags_numeric): New target hook.
5932         * targhooks.h (default_asm_elf_flags_numeric): New.
5933         * varasm.c (default_asm_elf_flags_numeric): New.
5934         (default_elf_asm_named_section): Use new target hook.
5935         * config/arm/arm.opt (mpure-code): New.
5936         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
5937         * config/arm/arm.c (arm_asm_init_sections): Add section
5938         attribute to default text section if -mpure-code.
5939         (arm_option_check_internal): Diagnose use of option with
5940         non supported targets and/or options.
5941         (arm_asm_elf_flags_numeric): New.
5942         (arm_function_section): New.
5943         (arm_elf_section_type_flags): New.
5944         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
5945         for -mpure-code.
5946         * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
5947         * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
5949 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
5951         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
5953 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5955         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
5956         * rtl.h: Adjust prototype.
5958 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5960         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
5961         (prev_active_insn): Likewise.
5962         (active_insn_p): Likewise.
5963         * rtl.h: Adjust prototypes.
5964         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5965         * config/arc/arc.md: Likewise.
5966         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
5967         (branch_needs_nop_p): Likewise.
5968         (use_skip_p): Likewise.
5969         * config/sh/sh.c (gen_block_redirect): Likewise.
5970         (split_branches): Likewise.
5971         * reorg.c (optimize_skip): Likewise.
5972         (fill_simple_delay_slots): Likewise.
5973         (fill_slots_from_thread): Likewise.
5974         (relax_delay_slots): Likewise.
5975         * resource.c (mark_target_live_regs): Likewise.
5977 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5979         * config/cris/cris.c (cris_asm_output_case_end): Change argument
5980         type to rtx_insn *.
5981         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
5982         (prev_nonnote_nondebug_insn): Likewise.
5983         * config/cris/cris-protos.h: Adjust prototype.
5984         * rtl.h: Likewise.
5985         * jump.c (rtx_renumbered_equal_p): Adjust.
5987 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5989         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
5990         * rtl.h: Adjust prototype.
5991         * config/sh/sh.md: Adjust.
5992         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5994 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5996         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
5997         (prev_nondebug_insn): Likewise.
5998         * loop-doloop.c (doloop_condition_get): Likewise.
5999         * rtl.h: Adjust prototype.
6000         * cfgloop.h: Likewise.
6002 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6004         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
6005         (prev_nonnote_insn): Likewise.
6006         * jump.c (reversed_comparison_code_parts): Likewise.
6007         (reversed_comparison): Likewise.
6008         * rtl.h: Adjust prototypes.
6009         * config/arc/arc.md: Adjust.
6010         * cse.c (find_comparison_args): Likewise.
6011         * reorg.c (redundant_insn): Change return type to rtx_insn *.
6012         (fix_reg_dead_note): Change argument type to rtx_insn *.
6013         (delete_prior_computation): Likewise.
6014         (delete_computation): Likewise.
6015         (fill_slots_from_thread): Adjust.
6016         (relax_delay_slots): Likewise.
6017         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6018         (simplify_relational_operation_1): Likewise.
6019         (simplify_ternary_operation): Likewise.
6021 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6023         * config/arc/arc-protos.h (arc_label_align): Change type of
6024         variables from rtx to rtx_insn *.
6025         * config/arc/arc.c (arc_label_align): Likewise.
6026         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
6027         * config/bfin/bfin.c (workaround_speculation): Likewise.
6028         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
6029         (find_last_same_clock): Likewise.
6030         (reorg_split_calls): Likewise.
6031         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
6032         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
6033         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
6034         (same_cmp_following_p): Likewise.
6035         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
6036         (same_cmp_following_p): Likwise.
6037         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
6038         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
6039         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
6040         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
6041         (rl78_alloc_physical_registers_cmp): Likewise.
6042         (rl78_alloc_physical_registers_umul): Likewise.
6043         (rl78_calculate_death_notes): Likewise.
6044         * config/s390/s390-protos.h (s390_label_align): Likewise.
6045         * config/s390/s390.c (s390_label_align): Likewise.
6046         * config/sh/sh.c (barrier_align): Likewise.
6047         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
6048         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
6049         (emit_cbcond_nop): Likewise.
6051 2016-09-22  Martin Liska  <mliska@suse.cz>
6053         PR ipa/77653
6054         * ipa-icf.c (sem_variable::merge): Yield merge operation if
6055         alias address matters, not necessarily address of original.
6057 2016-09-22  Richard Biener  <rguenther@suse.de>
6059         PR middle-end/77697
6060         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
6061         fold fails.
6063 2016-09-22  Richard Biener  <rguenther@suse.de>
6065         PR middle-end/77677
6066         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
6067         from constant folding results.
6068         (gimple_resimplify2): Likewise.
6069         (gimple_resimplify3): Likewise.
6071 2016-09-22  Richard Biener  <rguenther@suse.de>
6073         PR middle-end/77678
6074         * expr.c (expand_expr_real_1): Guard array access against negative
6075         offset.
6077 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6079         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
6080         of MPFR_RNDN.
6081         (format_floating): Likewise.
6083 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
6085         PR fortran/77665
6086         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
6087         for all IFN_GOMP_SIMD_* internal fns, not just for
6088         IFN_GOMP_SIMD_ORDERED_*.
6090 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6092         PR target/77670
6093         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
6094         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
6095         instructions when you want to invert the test.
6096         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
6097         correct order for XXSEL.
6098         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
6099         for using XSCMP{EQ,GT,GE}DP.
6101 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
6103         * genconstants.c (main): Introduce noop_reader and convert call
6104         to read_md_files to a method call.
6105         * genenums.c (main): Likewise.
6106         * genmddeps.c (main): Likewise.
6107         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
6108         rtx_reader_ptr->get_top_level_filename ().
6109         (write_tm_preds_h): Likewise.
6110         (write_insn_preds_c): Likewise.
6111         * gensupport.c (class gen_reader): New subclass of rtx_reader.
6112         (rtx_handle_directive): Convert to...
6113         (gen_reader::handle_unknown_directive): ...this.
6114         (init_rtx_reader_args_cb): Convert return type from bool to
6115         rtx_reader *.  Create a gen_reader instance, using it for the
6116         call to read_md_files.  Return it if no errors occur.
6117         (init_rtx_reader_args): Convert return type from bool to
6118         rtx_reader *.
6119         * gensupport.h (init_rtx_reader_args_cb): Likewise.
6120         (init_rtx_reader_args_cb): Likewise.
6121         * read-md.c (struct file_name_list): Move to class rtx_reader.
6122         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
6123         (read_md_filename): Delete in favor of
6124         rtx_reader::m_read_md_filename.
6125         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
6126         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
6127         (base_dir): Delete in favor of rtx_reader::m_base_dir.
6128         (first_dir_md_include): Delete in favor of
6129         rtx_reader::m_first_dir_md_include.
6130         (last_dir_md_include_ptr): Delete in favor of
6131         rtx_reader::m_last_dir_md_include_ptr.
6132         (max_include_len): Delete.
6133         (rtx_reader_ptr): New.
6134         (fatal_with_file_and_line): Use get_filename and get_lineno
6135         accessors of rtx_reader_ptr.
6136         (require_char_ws): Likewise.
6137         (rtx_reader::read_char): New method, based on ::read_char.
6138         (rtx_reader::unread_char): New method, based on ::unread_char.
6139         (read_escape): Use get_filename and get_lineno accessors of
6140         rtx_reader_ptr.
6141         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
6142         (read_string): Use get_filename and get_lineno accessors of
6143         rtx_reader_ptr.
6144         (rtx_reader::rtx_reader): New ctor.
6145         (rtx_reader::~rtx_reader): New dtor.
6146         (handle_include): Convert from a function to...
6147         (rtx_reader::handle_include): ...this method, converting
6148         handle_directive from a callback to a virtual function.
6149         (handle_file): Likewise, converting to...
6150         (rtx_reader::handle_file): ...this method.
6151         (handle_toplevel_file): Likewise, converting to...
6152         (rtx_reader::handle_toplevel_file): ...this method.
6153         (rtx_reader::get_current_location): New method.
6154         (parse_include): Convert from a function to...
6155         (rtx_reader::add_include_path): ...this method, dropping redundant
6156         update to unused max_include_len.
6157         (read_md_files): Convert from a function to...
6158         (rtx_reader::read_md_files): ...this method, converting
6159         handle_directive from a callback to a virtual function.
6160         (noop_reader::handle_unknown_directive): New method.
6161         * read-md.h (directive_handler_t): Delete this typedef.
6162         (in_fname): Delete.
6163         (read_md_file): Delete.
6164         (read_md_lineno): Delete.
6165         (read_md_filename): Delete.
6166         (class rtx_reader): New class.
6167         (rtx_reader_ptr): New decl.
6168         (class noop_reader): New subclass of rtx_reader.
6169         (read_char): Reimplement in terms of rtx_reader::read_char.
6170         (unread_char): Reimplement in terms of rtx_reader::unread_char.
6171         (read_md_files): Delete.
6172         * read-rtl.c (read_rtx_code): Update for deletion of globals
6173         read_md_filename and read_md_lineno.
6175 2016-09-21  Jason Merrill  <jason@redhat.com>
6177         * input.h (from_macro_definition_at): New.
6179 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
6181         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
6183 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6185         PR tree-optimization/77550
6186         * tree-vect-stmts.c (create_array_ref): Change parameters.
6187         (get_group_alias_ptr_type): New function.
6188         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
6190 2016-09-21  Marek Polacek  <polacek@redhat.com>
6192         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
6193         Add falls through comment.
6195 2016-09-21  Richard Biener  <rguenther@suse.de>
6197         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
6198         (replace_child): Likewise.
6199         (remove_child_TAG): Adjust.
6200         (move_marked_base_types): Likewise.
6201         (prune_unused_types_prune): Clear die_sib of removed children.
6203 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
6205         PR target/77326
6206         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
6207         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
6209 2016-09-21  Richard Biener  <rguenther@suse.de>
6211         PR tree-optimization/77648
6212         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
6213         with complex RHS.
6214         (make_transitive_closure_constraints): Adjust comment.
6215         (make_any_offset_constraints): New function.
6216         (handle_rhs_call): Make sure to first expand a pointer to all
6217         subfields before transitively closing it.
6218         (handle_const_call): Likewise.  Properly expand returned
6219         pointers as well.
6220         (handle_pure_call): Likewise.
6222 2016-09-21  Richard Biener  <rguenther@suse.de>
6223             Jakub Jelinek  <jakub@redhat.com>
6225         PR tree-optimization/77621
6226         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
6227         group at non-vectorizable stmts.
6229 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6231         PR tree-optimization/72835
6232         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
6233         (make_new_ssa_for_all_defs): Likewise.
6234         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
6236 2016-09-20  Martin Sebor  <msebor@redhat.com>
6238         PR middle-end/49905
6239         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
6240         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
6241         * config/linux.c (gnu_libc_printf_pointer_format): New function.
6242         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
6243         * config/sol2.c (solaris_printf_pointer_format): New function.
6244         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
6245         options.
6246         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
6247         * doc/tm.texi: Regenerate.
6248         * gimple-fold.h (get_range_strlen): New function.
6249         (get_maxval_strlen): Declare existing function.
6250         * gimple-fold.c (get_range_strlen): Add arguments and compute both
6251         maximum and minimum.
6252          (get_range_strlen): Define overload.
6253         (get_maxval_strlen): Adjust.
6254         * gimple-ssa-sprintf.c: New file and pass.
6255         * passes.def (pass_sprintf_length): Add new pass.
6256         * targhooks.h (default_printf_pointer_format): Declare new function.
6257         (gnu_libc_printf_pointer_format): Same.
6258         (solaris_libc_printf_pointer_format): Same.
6259         * targhooks.c (default_printf_pointer_format): Define new function.
6260         * tree-pass.h (make_pass_sprintf_length): Declare new function.
6261         * print-tree.c: Increase buffer size.
6263 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6265         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
6267 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6269         * common.opt: New option -fipa-vrp.
6270         * ipa-cp.c (ipa_get_vr_lat): New.
6271         (ipcp_vr_lattice::print): Likewise.
6272         (print_all_lattices): Call ipcp_vr_lattice::print.
6273         (ipcp_vr_lattice::meet_with): New.
6274         (ipcp_vr_lattice::meet_with_1): Likewise.
6275         (ipcp_vr_lattice::top_p): Likewise.
6276         (ipcp_vr_lattice::bottom_p): Likewsie.
6277         (ipcp_vr_lattice::set_to_bottom): Likewise.
6278         (set_all_contains_variable): Call VR set_to_bottom.
6279         (initialize_node_lattices): Init VR lattices.
6280         (propagate_vr_accross_jump_function): New.
6281         (propagate_constants_accross_call): Call
6282         propagate_vr_accross_jump_function.
6283         (ipcp_store_vr_results): New.
6284         (ipcp_driver): Handle VR.
6285         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
6286         (ipa_set_jf_unknown): Likewise.
6287         (ipa_compute_jump_functions_for_edge): Likewise.
6288         (ipa_node_params_t::duplicate): Likewise.
6289         (ipa_write_jump_function): Likewise.
6290         (ipa_read_jump_function): Likewise.
6291         (write_ipcp_transformation_info): Likewise.
6292         (read_ipcp_transformation_info): Likewise.
6293         (ipcp_update_vr): New.
6294         (ipcp_transform_function): Handle VR.
6295         * ipa-prop.h (struct ipa_vr): New.
6296         * cgraph.c: Include tree-vrp.h.
6297         * cgraphunit.c: Likewise.
6298         * ipa-utils.c: Likewise.
6299         * ipa.c: Likewise.
6300         * opts.c: Likewise.
6301         * toplev.c: Likewise.
6302         * ipa-devirt.c: Likewise.
6303         * ipa-inline-transform.c: Likewise.
6304         * ipa-inline.c: Likewise.
6305         * ipa-profile.c: Likewise.
6307 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6309         * doc/invoke.texi: Document -fdump-tree-evrp.
6310         * passes.def: Define new pass_early_vrp.
6311         * timevar.def: Define new TV_TREE_EARLY_VRP.
6312         * tree-pass.h (make_pass_early_vrp): New.
6313         * tree-ssa-propagate.c: Make replace_uses_in non static.
6314         * tree-ssa-propagate.h: Export replace_uses_in.
6315         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
6316         (extract_range_from_assert): Factor out
6317         extract_range_for_var_from_comparison_expr.
6318         (vrp_initialize_lattice): New.
6319         (vrp_initialize): Factor out vrp_initialize_lattice.
6320         (vrp_valueize): Fix it to reject complex value ranges.
6321         (vrp_free_lattice): New.
6322         (evrp_dom_walker::before_dom_children): Likewise.
6323         (evrp_dom_walker::after_dom_children): Likewise.
6324         (evrp_dom_walker::push_value_range): Likewise.
6325         (evrp_dom_walker::pop_value_range): Likewise.
6326         (execute_early_vrp): Likewise.
6327         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
6328         (make_pass_early_vrp): New.
6330 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
6332         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
6333         instead of exact_log2.
6335 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
6337         PR target/77621
6338         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
6339         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
6340         (ix86_add_stmt_cost): Penalize DFmode vector operations
6341         for !TARGET_VECTORIZE_DOUBLE.
6343 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
6345         * doc/invoke.texi (Warning Options): Simplify language.
6346         (Optimize Options): Complete sentence.
6348 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
6350         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
6351         early_finish hook.
6353 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6355         PR target/71395
6356         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
6357         inits on power8 and above, use the VMRGEW instruction instead of a
6358         permute.
6360         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
6361         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
6362         initialization.
6364 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
6366         * config/aarch64/arm_neon.h
6367         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
6368         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
6369         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
6371 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6373         * config/var/vax.h (ELIMINABLE_REGS): Define.
6374         (INITIAL_ELIMINATION_OFFSET): Define.
6376 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
6378         PR middle-end/77624
6379         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
6380         cast to void * if the cast is from some other pointer type.
6382 2016-09-20  Richard Biener  <rguenther@suse.de>
6384         PR tree-optimization/77646
6385         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
6386         a VDEF.
6388 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
6390         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
6391         attributes to all inlined functions and make them extern.
6393 2016-09-20  Richard Biener  <rguenther@suse.de>
6395         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
6396         hook.
6397         * debug.c (do_nothing_debug_hooks): Adjust.
6398         * dbxout.c (dbx_debug_hooks): Likewise.
6399         * sdbout.c (sdb_debug_hooks): Likewise.
6400         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
6401         (dwarf2out_finish): Move producer, filename and
6402         path annotation ...
6403         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
6404         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
6406 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6408         PR c++/77434
6409         * doc/invoke.texi: Document -Wint-in-bool-context.
6411         PR middle-end/77421
6412         * dwarf2out.c (output_loc_operands): Fix an assertion.
6414 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
6416         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
6417         (CR_DECIMAL_DIG): New macro.
6419 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
6421         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
6422         element.
6424 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
6426         PR rtl-optimization/77416
6427         * lra-remat.c (operand_to_remat): Process hard coded insn
6428         registers.
6430 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6432         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
6433         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
6435 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
6437         * target.def (lra_p): Wordsmithing.
6438         * doc/tm.texi: Regenerate.
6440 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
6441             Jan Hubicka  <jh@suse.cz>
6443         PR target/77587
6444         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
6445         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
6446         Call ultimate_alias_target just once, not up to 4 times.
6448 2016-09-19  Richard Biener  <rguenther@suse.de>
6450         * dwarf2out.c (early_dwarf_finished): New global.
6451         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
6452         is false.
6453         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
6454         if called from LTO exit early.
6455         (dwarf2out_late_global_decl): When being during the early
6456         debug phase do not add locations but only const value attributes.
6457         Adjust the way we generate early DIEs for LTO.
6459 2016-09-19  Richard Biener  <rguenther@suse.de>
6461         PR middle-end/77605
6462         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
6463         proper niter to bound the loops.
6465 2016-09-19  Richard Biener  <rguenther@suse.de>
6467         PR tree-optimization/77514
6468         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
6469         search for folded stmt.
6471 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
6473         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
6474         * tree-pass.h (make_pass_early_thread_jumps): Declare.
6475         * tree-ssa-threadbackward.c (fsm_find_thread_path,
6476         fsm_find_thread_path, profitable_jump_thread_path,
6477         fsm_find_control_statement_thread_paths,
6478         find_jump_threads_backwards): Add speed_p parameter.
6479         (pass_data_early_thread_jumps): New pass.
6480         (make_pass_early_thread_jumps): New function.
6482 2016-09-17  Andreas Schwab  <schwab@suse.de>
6484         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
6485         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6487 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
6489         * recog.c (rest_of_handle_split_after_reload): Delete.
6490         (pass_split_after_reload::gate): New method.
6491         (pass_split_after_reload::execute): Call split_all_insns directly.
6493 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
6495         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
6496         parameters for functions taking long long arguments.
6498 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6500         PR target/77613
6501         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
6502         splat with truncate.
6504 2016-09-16  Jason Merrill  <jason@redhat.com>
6506         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
6507         New.
6508         * hwint.c (exact_log2): Use pow2p_hwi.
6509         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
6510         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
6511         * builtins.c (get_object_alignment_2, get_object_alignment)
6512         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
6513         least_bit_hwi.
6514         * calls.c (compute_argument_addresses, store_one_arg): Use
6515         least_bit_hwi.
6516         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
6517         * combine.c (force_to_mode): Use least_bit_hwi.
6518         (contains_muldiv, find_split_point, combine_simplify_rtx)
6519         (simplify_if_then_else, simplify_set, force_to_mode)
6520         (if_then_else_cond, simplify_and_const_int_1)
6521         (simplify_compare_const): Use pow2p_hwi.
6522         * cse.c (fold_rtx): Use pow2p_hwi.
6523         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
6524         Use least_bit_hwi.
6525         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
6526         (init_expmed_one_conv): Use pow2p_hwi.
6527         * expr.c (is_aligning_offset): Use pow2p_hwi.
6528         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
6529         (fold_binary_loc): Use pow2p_hwi.
6530         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
6531         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
6532         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
6533         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
6534         Use least_bit_hwi.
6535         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
6536         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
6537         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
6538         * omp-low.c (oacc_loop_fixed_partitions)
6539         (oacc_loop_auto_partitions): Use least_bit_hwi.
6540         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
6541         * stor-layout.c (place_field): Use least_bit_hwi.
6542         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
6543         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
6544         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
6545         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
6546         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
6547         * tree-vect-data-refs.c (vect_analyze_group_access_1)
6548         (vect_grouped_store_supported, vect_grouped_load_supported)
6549         (vect_permute_load_chain, vect_shift_permute_load_chain)
6550         (vect_transform_grouped_load): Use pow2p_hwi.
6551         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
6552         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
6553         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
6554         least_bit_hwi.
6555         * tsan.c (instrument_expr): Use least_bit_hwi.
6556         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
6558 2016-09-16  Andreas Schwab  <schwab@suse.de>
6560         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
6561         OFFSET, not offset.
6562         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6564 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
6566         PR target/77526
6567         * combine.c (rest_of_handle_combine): If any edges have been purged,
6568         free dominators if available.
6570 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
6571             Eric Botcazou  <ebotcazou@adacore.com>
6573         PR middle-end/77594
6574         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
6575         through into expand_addsub_overflow after expand_neg_overflow.
6577 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
6579         * diagnostic-show-locus.c
6580         (selftest::test_fixit_insert_containing_newline): New function.
6581         (selftest::test_fixit_replace_containing_newline): New function.
6582         (selftest::diagnostic_show_locus_c_tests): Call the above.
6584 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
6586         PR tree-optimization/77503
6587         * tree-vect-loop.c (vectorizable_reduction): Record reduction
6588         code for CONST_COND_REDUCTION at analysis stage and use it at
6589         transform stage.
6590         * tree-vectorizer.h (struct _stmt_vec_info): New field.
6591         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
6592         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
6593         field.
6595 2016-09-15  Richard Biener  <rguenther@suse.de>
6597         PR middle-end/77544
6598         * fold-const.c (split_tree): Do not split constant ~X.
6600 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
6602         PR rtl-optimization/77425
6603         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
6604         is NULL.
6606         PR middle-end/77475
6607         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
6608         use %qs instead of %s where desirable, use argument instead of arg in
6609         the diagnostic wording, add list of supported strategies and
6610         spellcheck hint.
6611         (ix86_option_override_internal): Emit target("m...") instead of
6612         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
6613         -march/-mtune option diagnostic.  Add list of supported arches/tunings
6614         and spellcheck hint.  Remove prefix, suffix and sw variables, use
6615         main_args_p ? "..." : "..." in diagnostics to make translation
6616         possible.
6618 2016-09-15  Richard Biener  <rguenther@suse.de>
6620         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
6621         extra offset argument.
6622         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
6623         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
6624         to reflect new offset parameter.
6625         * doc/tm.texi: Regenerate.
6626         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6627         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
6628         offset argument.
6629         (darwin_asm_output_dwarf_offset): Likewise.
6630         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
6631         argument.
6632         (darwin_asm_output_dwarf_offset): Pass offset argument through.
6633         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
6634         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
6636 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
6638         PR fortran/72743
6639         * ipa-icf.c (set_alias_uids): New function.
6640         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
6641         all the merged variable's referring aliases.
6643 2016-09-15  Richard Biener  <rguenther@suse.de>
6645         PR tree-optimization/77514
6646         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
6647         only forced_stmts sequence.
6649 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
6651         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
6652         * cfgexpand.c (update_alias_info_with_stack_vars): Use
6653         FOR_EACH_SSA_NAME to iterate over SSA variables.
6654         (pass_expand::execute): Likewise.
6655         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
6656         * tree-cfg.c (dump_function_to_file): Likewise.
6657         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
6658         (update_ssa): Likewise.
6659         * tree-ssa-alias.c (dump_alias_info): Likewise.
6660         * tree-ssa-ccp.c (ccp_finalize): Likewise.
6661         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
6662         (create_outofssa_var_map): Likewise.
6663         (coalesce_ssa_name): Likewise.
6664         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
6665         * tree-ssa-pre.c (compute_avail): Likewise.
6666         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6667         (scc_vn_restore_ssa_info): Likewise.
6668         (free_scc_vn): Likwise.
6669         (run_scc_vn): Likewise.
6670         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
6671         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
6672         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6673         * tree-ssa.c (verify_ssa): Likewise.
6675 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
6677         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
6678         and mips64r2 as default 32-bit and 64-bit architectures.
6679         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
6680         as default 32-bit and 64-bit architectures.
6682 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
6684         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
6685         of succ edge.
6687 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
6689         * target.def (lra_p): Change commentary (for the manual) for the
6690         new default.
6691         * doc/tm.texi: Regenerate.
6693 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
6695         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
6696         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
6697         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
6698         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
6700 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
6702         * targhooks.c (default_lra_p): Return true instead of false.
6704 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
6706         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
6707         hook_bool_void_false.
6708         * config/avr/avr.c: Ditto.
6709         * config/bfin/bfin.c: Ditto.
6710         * config/c6x/c6x.c: Ditto.
6711         * config/cr16/cr16.c: Ditto.
6712         * config/cris/cris.c: Ditto.
6713         * config/epiphany/epiphany.c: Ditto.
6714         * config/fr30/fr30.c: Ditto.
6715         * config/frv/frv.c: Ditto.
6716         * config/h8300/h8300.c: Ditto.
6717         * config/ia64/ia64.c: Ditto.
6718         * config/iq2000/iq2000.c: Ditto.
6719         * config/lm32/lm32.c: Ditto.
6720         * config/m32c/m32c.c: Ditto.
6721         * config/m32r/m32r.c: Ditto.
6722         * config/m68k/m68k.c: Ditto.
6723         * config/mcore/mcore.c: Ditto.
6724         * config/microblaze/microblaze.c: Ditto.
6725         * config/mmix/mmix.c: Ditto.
6726         * config/mn10300/mn10300.c: Ditto.
6727         * config/moxie/moxie.c: Ditto.
6728         * config/msp430/msp430.c: Ditto.
6729         * config/nios2/nios2.c: Ditto.
6730         * config/nvptx/nvptx.c: Ditto.
6731         * config/pa/pa.c: Ditto.
6732         * config/pdp11/pdp11.c: Ditto.
6733         * config/rl78/rl78.c: Ditto.
6734         * config/sparc/sparc.c: Ditto.
6735         * config/spu/spu.c: Ditto.
6736         * config/stormy16/stormy16.c: Ditto.
6737         * config/tilegx/tilegx.c: Ditto.
6738         * config/tilepro/tilepro.c: Ditto.
6739         * config/v850/v850.c: Ditto.
6740         * config/vax/vax.c: Ditto.
6741         * config/visium/visium.c: Ditto.
6742         * config/xtensa/xtensa.c: Ditto.
6744 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
6746         PR sanitizer/68260
6747         * tsan.c: Include target.h.
6748         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
6749         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
6750         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
6751         BUILT_IN_ATOMIC_TEST_AND_SET entries.
6752         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
6754 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6755             Martin Liska  <mliska@suse.cz>
6757         PR middle-end/77574
6758         * predict.c (force_edge_cold): Add braces to a condition.
6760 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6762         PR rtl-optimization/77289
6763         * lra-constraints.c (get_final_hard_regno): Removed.
6764         (get_hard_regno): Add new parameter final_p.
6765         (get_reg_class): Directly call lra_get_elimination_hard_regno.
6766         (operands_match_p): Adjust call to get_hard_regno.
6767         (uses_hard_regs_p): Likewise.
6768         (process_alt_operands): Likewise.
6770 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
6772         PR target/70713
6773         * config/msp430/msp430.c (msp430_start_function): Emit an error
6774         if a function is both weak and specifies an interrupt number.
6776 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
6778         PR tree-optimization/77454
6779         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
6780         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
6781         Formatting fix.
6783 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
6785         * config/aarch64/aarch64-builtins.c
6786         (aarch64_init_simd_builtins): Fix builtin type signature printing.
6788 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
6790         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
6791         SFmode and SCmode arguments by reference.
6793 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
6795         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
6796         Rename to...
6797         (selftest::test_one_liner_fixit_insert_before): ...this, and update
6798         for renaming of add_fixit_insert to add_fixit_insert_before.
6799         (selftest::test_one_liner_fixit_insert_after): New function.
6800         (selftest::test_one_liner_fixit_validation_adhoc_locations):
6801         Update for renaming of add_fixit_insert to add_fixit_insert_before.
6802         (selftest::test_one_liner_many_fixits): Likewise.
6803         (selftest::test_diagnostic_show_locus_one_liner): Update for
6804         renaming, call new test function.
6805         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
6806         renaming of add_fixit_insert to add_fixit_insert_before.
6807         (selftest::test_fixit_consolidation): Likewise.
6808         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
6809         Likewise.
6810         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
6811         (selftest::test_applying_fixits_insert_before): ...this.
6812         (selftest::test_applying_fixits_insert): Update for renaming of
6813         add_fixit_insert to add_fixit_insert_before.
6814         (selftest::test_applying_fixits_insert_after): New function.
6815         (selftest::test_applying_fixits_insert_after_at_line_end): New
6816         function.
6817         (selftest::test_applying_fixits_insert_after_failure): New function.
6818         (selftest::test_applying_fixits_multiple): Update for renaming of
6819         add_fixit_insert to add_fixit_insert_before.
6820         (selftest::change_line): Likewise.
6821         (selftest::test_applying_fixits_unreadable_file): Likewise.
6822         (selftest::test_applying_fixits_line_out_of_range): Likewise.
6823         (selftest::test_applying_fixits_column_validation): Likewise.
6824         (selftest::test_applying_fixits_column_validation): Likewise.
6825         (selftest::edit_context_c_tests): Update for renamed test function;
6826         call new test functions.
6828 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
6830         PR tree-optimization/77536
6831         PR rtl-optimization/68212
6832         * config/rs6000/rs6000.md (div->recip splitter): Remove
6833         optimize_insn_for_speed_p condition.
6835 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
6837         * optabs.c (prepare_cmp_insn): Update documentation comment.
6839 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
6840             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6842         PR middle-end/77475
6843         * opts.h (candidates_list_and_hint): Declare.
6844         * opts-common.c (candidates_list_and_hint): New function.
6845         (cmdline_handle_error): Use it.
6847 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
6849         * edit-context.c (edited_line::get_len): New accessor.
6850         (edited_file::print_diff): Split out hunk-printing into...
6851         (edited_file::print_diff_hunk): New method.
6852         (edited_file::print_diff_line): New method.
6854 2016-09-12  Andrew Pinski  <apinski@cavium.com>
6856         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
6857         New tuning option.
6858         * config/aarch64/aarch64.c (thunderx_tunings): Enable
6859         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
6860         (aarch64_operands_ok_for_ldpstp): Return false if
6861         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
6862         was SImode and the alignment is less than 8 byte.
6863         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6865 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
6867         PR target/77570
6868         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
6870 2016-09-12  Marek Polacek  <polacek@redhat.com>
6872         * doc/extend.texi: Use lowercase "boolean".
6873         * doc/invoke.texi: Likewise.
6874         * doc/md.texi: Likewise.
6875         * target.def: Likewise.
6876         * doc/tm.texi: Regenerated.
6878 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6880         PR middle-end/77426
6881         * expmed.c (synth_mult): Delete duplicate mode check.
6883 2016-09-10  Tom de Vries  <tom@codesourcery.com>
6885         PR C/71602
6886         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
6887         va_list type only.
6888         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
6889         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
6891 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
6893         PR rtl-optimization/77289
6894         * lra-constraints.c (get_final_hard_regno): Add support for non hard
6895         register numbers.  Remove support for subregs.
6896         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
6897         (get_reg_class): Delete removed get_final_hard_regno() argument.
6898         (uses_hard_regs_p): Call get_final_hard_regno().
6900 2016-09-09  Martin Sebor  <msebor@redhat.com>
6902         PR c/77520
6903         PR c/77521
6904         * pretty-print.c (pp_quoted_string): New function.
6905         (pp_format): Call it for %c and %s directives.
6907 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6909         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
6910         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
6911         INITIAL_ELIMINATION_OFFSET) : Update documentation.
6912         * target.def (frame_pointer_required, can_eliminate): Likewise.
6913         * doc/tm.texi: Regenerated.
6914         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
6915         ELIMINABLE_REGS.
6916         * df-scan.c (df_hard_reg_init): Likewise.
6917         * ira.c (ira_setup_eliminable_regset): Likewise.
6918         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
6919         init_elim_table): Likewise.
6920         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
6921         set_initial_elim_offsets, update_eliminables,
6922         init_elim_table): Likewise.
6923         * rtlanal.c (get_initial_register_offset): Likewise.
6924         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6925         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6926         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6927         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6928         * config/fr30/fr30.h: Fix comment.
6929         * config/frv/frv.c: Likewise.
6930         * config/frv/frv.h: Likewise.
6931         * config/ft32/ft32.h: Likewise.
6932         * config/visium/visium.h: Likewise.
6933         * config/pa/pa64-linux.h: Likewise.
6934         * config/v850/v850.h: Likewise.
6935         * config/cris/cris.c: Likewise.
6936         * config/ia64/ia64.h: Likewise.
6937         * config/moxie/moxie.h: Likewise.
6938         * config/m32r/m32r.h: Likewise.
6940 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6942         PR target/77267
6943         * config.in: Regenerate.
6944         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
6945         New macro.
6946         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
6947         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
6948         static-libmpxwrappers case.
6949         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
6950         MPX_LD_AS_NEEDED_GUARD_POP.
6951         * configure: Regenerate.
6952         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
6953         defined if linker support "--push-state"/"--pop-state".
6955 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6957         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
6959 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
6961         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
6962         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
6963         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
6964         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
6965         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
6966         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
6967         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
6968         Document.
6969         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
6970         width macros from TS 18661-1.
6971         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
6973 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
6975         PR fortran/77516
6976         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
6977         OMP_CLAUSE_SAFELEN_EXPR.
6979 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
6981         * Makefile.in (OBJS): Add substring-locations.o.
6982         * langhooks-def.h (class substring_loc): New forward decl.
6983         (lhd_get_substring_location): New decl.
6984         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
6985         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
6986         * langhooks.c (lhd_get_substring_location): New function.
6987         * langhooks.h (class substring_loc): New forward decl.
6988         (struct lang_hooks): Add field get_substring_location.
6989         * substring-locations.c: New file, taking definition of
6990         format_warning_va and format_warning_at_substring from
6991         c-family/c-format.c, making them non-static.
6992         * substring-locations.h (class substring_loc): Move class here
6993         from c-family/c-common.h.  Add and rewrite comments.
6994         (format_warning_va): New decl.
6995         (format_warning_at_substring): New decl.
6996         (get_source_location_for_substring): Add comment.
6998 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
7000         * config/i386/i386.c: Add 'U' suffix to processor feature bits
7001         to avoid -Wnarrowing warning.
7002         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
7003         * opts.c: Likewise for SANITIZER_OPT bitmasks.
7005 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
7007         * config/aarch64/aarch64.c (aarch64_legitimize_address):
7008         Avoid use of base_offset if offset already in range.
7010 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7012         * config/sh/sh-protos.h (struct sh_atomic_model,
7013         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
7014         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
7015         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
7016         * config/sh/sh.h (struct sh_atomic_model,
7017         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
7018         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
7019         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
7020         Guard with __cplusplus.
7022 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
7024         PR target/69255
7025         * config/i386/i386.c (ix86_expand_builtin): For builtin with
7026         unsupported or unknown ISA, use expand_call.
7028 2016-09-06  Martin Liska  <mliska@suse.cz>
7030         PR gcov-profile/77378
7031         PR gcov-profile/77466
7032         * tree-profile.c (tree_profiling): Detect whether target can use
7033         -fprofile-update=atomic.
7035 2016-09-06  Richard Biener  <rguenther@suse.de>
7037         PR tree-optimization/77479
7038         * tree-vrp.c (update_value_range): Extend overflow handling to
7039         VARYING.
7041 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
7043         PR target/77476
7044         * config/i386/i386.md (isa): Add x64_avx512bw.
7045         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
7046         (kmov_isa): New mode attr.
7047         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
7048         (*zero_extend<mode>si2): Likewise.
7049         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
7051 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
7053         * doc/invoke.texi (SPU Options): nops -> NOPs.
7054         (x86 Options): Ditto.
7056 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
7058         PR middle-end/77475
7059         * toplev.c (process_options): Temporarily set input_location
7060         to UNKNOWN_LOCATION around targetm.target_option.override () call.
7062 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
7064         PR rtl-optimization/77452
7065         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
7066         inner-mode reference to a CONST_VECTOR constant in the constant pool.
7068 2016-09-05  Marek Polacek  <polacek@redhat.com>
7070         PR c/77423
7071         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
7073 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
7075         PR other/77421
7076         * gensupport.c (alter_output_for_subst_insn): Remove redundant
7077         *insn_out == '*' test.  Don't copy unnecessary to yet another
7078         memory buffer, and don't leak it.
7080         PR rtl-optimization/77425
7081         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
7083 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
7085         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
7087 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
7089         * common.opt (fdiagnostics-generate-patch): New option.
7090         * diagnostic.c: Include "edit-context.h".
7091         (diagnostic_initialize): Initialize context->edit_context_ptr.
7092         (diagnostic_finish): Delete context->edit_context_ptr.
7093         (diagnostic_report_diagnostic): Add fix-it hints from the
7094         diagnostic to context->edit_context_ptr, if any.
7095         * diagnostic.h (class edit_context): Add forward decl.
7096         (struct diagnostic_context): Add field "edit_context_ptr".
7097         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7098         -fdiagnostics-generate-patch.
7099         (-fdiagnostics-generate-patch): New item.
7100         * toplev.c: Include "edit-context.h".
7101         (process_options): Set global_dc->edit_context_ptr to a new
7102         edit_context if the options need one.
7103         (toplev::main): Handle -fdiagnostics-generate-patch by using
7104         global_dc->edit_context_ptr.
7106 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7108         PR c/65467
7109         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
7110         map and firstprivate clauses on target construct for _Atomic
7111         qualified decls.
7112         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
7113         on target construct for _Atomic qualified decls.
7114         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
7115         decls.
7116         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
7117         _Atomic qualified arguments not mentioned in uniform clause.
7119 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
7121         * Makefile.in (OBJS-libcommon): Add edit-context.o.
7122         * diagnostic-color.c (color_dict): Add "diff-filename",
7123         "diff-hunk", "diff-delete", and "diff-insert".
7124         (parse_gcc_colors): Update default value of GCC_COLORS in comment
7125         to reflect above changes.
7126         * doc/invoke.texi (-fdiagnostics-color): Update description of
7127         default GCC_COLORS, and of the supported capabilities.
7128         * edit-context.c: New file.
7129         * edit-context.h: New file.
7130         * input.c (struct fcache): Add field "missing_trailing_newline".
7131         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
7132         true.
7133         (add_file_to_cache_tab): Likewise.
7134         (fcache::fcache): Likewise.
7135         (get_next_line): Update c->missing_trailing_newline.
7136         (location_missing_trailing_newline): New function.
7137         * input.h (location_missing_trailing_newline): New decl.
7138         * selftest-run-tests.c (selftest::run_tests): Call
7139         edit_context_c_tests.
7140         * selftest.h (edit_context_c_tests): New decl.
7142 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7143             Richard Biener  <rguenth@suse.de>
7145         PR tree-optimization/77444
7146         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
7147         as steptype, remove redundant initialization.
7149 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7151         PR sanitizer/77396
7152         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
7153         (sanopt_optimize_walker): Optimize away
7154         __asan_before_dynamic_init (...) followed by
7155         __asan_after_dynamic_init () without intervening memory loads/stores.
7156         * ipa-pure-const.c (special_builtin_state): Handle
7157         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
7158         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
7160 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7162         * cfg.c (free_original_copy_tables): Replace second assignment of
7163         bb_copy = NULL by bb_original = NULL.
7165 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7167         PR other/77421
7168         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
7169         assignment added in r216794.
7171 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
7173         * Makefile.in (OBJS): Add typed-splay-tree.o.
7174         * selftest-run-tests.c (selftest::run_tests): Call
7175         typed_splay_tree_c_tests.
7176         * selftest.h (typed_splay_tree_c_tests): New decl.
7177         * typed-splay-tree.c: New file.
7178         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
7179         (typed_splay_tree::max): New method.
7180         (typed_splay_tree::min): New method.
7181         (typed_splay_tree::foreach): New method.
7182         (typed_splay_tree::closure): New struct.
7183         (typed_splay_tree::inner_foreach_fn): New function.
7185 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7187         * ipa-cp.c (ipcp_store_bits_results): Change option name from
7188         -fipa-cp-bit to -fipa-bit-cp.
7190 2016-09-01  Martin Sebor  <msebor@redhat.com>
7192         PR tree-optimization/71831
7193         * tree-object-size.h: Return bool instead of the size and add
7194         argument for the size.
7195         * tree-object-size.c (compute_object_offset): Update signature.
7196         (addr_object_size): Same.
7197         (compute_builtin_object_size): Return bool instead of the size
7198         and add argument for the size.  Handle POINTER_PLUS_EXPR when
7199         optimization is disabled.
7200         (expr_object_size): Adjust.
7201         (plus_stmt_object_size): Adjust.
7202         (pass_object_sizes::execute): Adjust.
7203         * builtins.c (fold_builtin_object_size): Adjust.
7204         * doc/extend.texi (Object Size Checking): Update.
7205         * ubsan.c (instrument_object_size): Adjust.
7207 2016-09-01  Martin Sebor  <msebor@redhat.com>
7209         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
7210         it fits the output of the formatted function regardless of its
7211         arguments.
7212         * genmodes.c (parser::parse_expr): Same.
7213         * gimplify.c (gimplify_asm_expr): Same.
7214         * passes.c (pass_manager::register_one_dump_file): Same.
7215         * print-tree.c (print_node): Same.
7217 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7219         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
7221 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7223         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
7225 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7227         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
7228         * config/rs6000/vector.md: Ditto.
7229         * config/rs6000/vsx.md: Ditto.
7231 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
7233         * ipa-inline-analysis.c (param_change_prob): Get to the base object
7234         first in all cases.
7236 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7238         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
7239         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
7240         *return_and_restore_gpregs_<mode>_r11,
7241         *return_and_restore_gpregs_<mode>_r12,
7242         *return_and_restore_gpregs_<mode>_r1,
7243         *return_and_restore_fpregs_<mode>_r11,
7244         *return_and_restore_fpregs_<mode>_r12,
7245         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
7246         directly instead of via the "l" constraint.  Renumber operands.
7247         Fix whitespace.
7249 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7251         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
7252         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
7253         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
7254         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
7255         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
7256         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
7257         *call_value_nonlocal_darwin64, reload_macho_picbase,
7258         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
7259         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
7260         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
7261         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
7262         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
7263         *save_fpregs_<mode>_r1): Ditto.
7264         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
7265         *return_and_restore_gpregs_spe): Ditto.
7267 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7269         * config/rs6000/rs6000.md
7270         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
7271         the use of the link register.
7272         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
7274 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7275             Michael Meissner  <meissner@linux.vnet.ibm.com>
7277         PR target/72827
7278         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
7279         reg+reg addressing for TImode.
7280         (rs6000_legitimate_address_p): Only allow register indirect
7281         addressing for TImode, even without TARGET_QUAD_MEMORY.
7283 2016-09-01  Richard Biener  <rguenther@suse.de>
7285         PR middle-end/77436
7286         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
7287         check whether the result fits the desired result type.
7289 2016-09-01  Nathan Sidwell  <nathan@acm.org>
7291         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
7293 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
7295         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
7296         New function.
7297         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
7299 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7301         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
7302         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
7303         for comparisons of integer ZERO_EXTEND against zero.
7305 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
7307         * config/i386/i386.c (ix86_option_override_internal): Also disable the
7308         STV pass if -mstackrealign is enabled.
7310 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
7312         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
7313         AVX512IFMA.
7315 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
7317         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
7318         (layout_range::intersects_line_p): New method.
7319         (test_range_contains_point_for_single_point): Rename to...
7320         (test_layout_range_for_single_point): ...this, and add testing
7321         for layout_range::intersects_line_p.
7322         (test_range_contains_point_for_single_line): Rename to...
7323         (test_layout_range_for_single_line): ...this,  and add testing
7324         for layout_range::intersects_line_p.
7325         (test_range_contains_point_for_multiple_lines): Rename to...
7326         (test_layout_range_for_multiple_lines): ...this,  and add testing
7327         for layout_range::intersects_line_p.
7328         (layout::layout): Populate m_fixit_hints.
7329         (layout::get_expanded_location): Handle the case of a line-span
7330         for a fix-it hint.
7331         (layout::validate_fixit_hint_p): New method.
7332         (get_line_span_for_fixit_hint): New function.
7333         (layout::calculate_line_spans): Add spans for fixit-hints.
7334         (layout::should_print_annotation_line_p): New method.
7335         (layout::print_any_fixits): Drop param "richloc", instead using
7336         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
7337         (diagnostic_show_locus): Avoid printing blank annotation lines.
7338         (selftest::test_diagnostic_context::test_diagnostic_context):
7339         Initialize show_column and start_span.
7340         (selftest::test_diagnostic_context::start_span_cb): New static
7341         function.
7342         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
7343         (selftest::diagnostic_show_locus_c_tests): Update for function
7344         renamings.  Call test_diagnostic_show_locus_fixit_lines.
7346 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
7348         PR tree-optimization/73714
7349         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
7351 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
7353         * selftest.c: Move "namespace selftest {" to top of file,
7354         removing explicit "selftest::" qualifiers throughout.
7356 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
7358         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
7359         New types.
7360         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
7361         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
7362         Replace builtin with vector extension.
7363         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
7364         New types.
7365         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
7366         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
7367         Replace builtin with vector extension.
7368         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
7369         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
7370         Replace builtin with vector extension.
7371         * config/i386/xmmintrin.h (__m128_u): New type.
7372         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
7373         (_mm_load_ps, _mm_store_ps): Simplify.
7375 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
7377         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
7379 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
7381         * diagnostic-show-locus.c (colorizer::begin_state): Support more
7382         than 3 ranges per diagnostic by alternating between color 1 and
7383         color 2.
7384         (layout::layout): Replace use of rich_location::MAX_RANGES
7385         with richloc->get_num_locations ().
7386         (layout::calculate_line_spans): Replace use of
7387         rich_location::MAX_RANGES with m_layout_ranges.length ().
7388         (layout::print_annotation_line): Handle arbitrary numbers of
7389         ranges in caret-printing by defaulting to '^'.
7390         (selftest::test_one_liner_many_fixits): New function.
7391         (test_diagnostic_show_locus_one_liner): Call it.
7392         * diagnostic.c (diagnostic_initialize): Update for renaming
7393         of rich_location::MAX_RANGES to
7394         rich_location::STATICALLY_ALLOCATED_RANGES.
7395         * diagnostic.h (struct diagnostic_context): Likewise.
7397 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
7399         * selftest.c (selftest::named_temp_file::named_temp_file): New
7400         ctor.
7401         (selftest::temp_source_file::~temp_source_file): Move to...
7402         (selftest::named_temp_file::~named_temp_file): ...here.
7403         (selftest::test_named_temp_file): New function.
7404         (selftest::selftest_c_tests): Call test_named_temp_file.
7405         * selftest.h (class named_temp_file): New class.
7406         (class temp_source_file): Convert to a subclass of named_temp_file.
7408 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
7410         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
7411         USEs of LR_REGNO in returns and sibcalls.
7412         (rs6000_output_mi_thunk): Similar.
7413         (rs6000_sibcall_aix): Similar.
7414         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
7415         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
7416         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
7417         Remove the USE of LR_REGNO from the patterns as well.  Delete an
7418         obsolete comment.
7419         (return_internal_<mode>): Delete.
7421 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
7423         * config/aarch64/aarch64-simd.md
7424         (aarch64_ld2<mode>_dreg_le): New.
7425         (aarch64_ld2<mode>_dreg_be): New.
7426         (aarch64_ld2<mode>_dreg): Removed.
7427         (aarch64_ld3<mode>_dreg_le): New.
7428         (aarch64_ld3<mode>_dreg_be): New.
7429         (aarch64_ld3<mode>_dreg): Removed.
7430         (aarch64_ld4<mode>_dreg_le): New.
7431         (aarch64_ld4<mode>_dreg_be): New.
7432         (aarch64_ld4<mode>_dreg): Removed.
7433         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
7435 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
7437         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
7438         redundant location param.
7439         (test_one_liner_fixit_remove): Likewise.
7440         (test_one_liner_fixit_replace): Likewise.
7441         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
7442         * gcc-rich-location.c
7443         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
7444         get_range_from_loc.  Drop overload taking a const char *.
7445         * gcc-rich-location.h
7446         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
7447         a const char *.
7449 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7451         * config/linux.c (linux_libc_has_function): Return true on musl.
7453 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7455         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
7457 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
7459         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
7460         used for abnormal egdes.
7462 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
7464         PR tree-optimization/72866
7465         * tree-vect-patterns.c (search_type_for_mask): Turn into
7466         a small wrapper, move all code to ...
7467         (search_type_for_mask_1): ... this new function.  Add caching
7468         and adjust recursive calls.
7470         PR debug/77363
7471         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
7472         instead of lookup_type_die (type_main_variant (type)) even for array
7473         types.
7475         PR middle-end/77377
7476         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
7477         constant pool reference return x instead of c.
7479 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
7481         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
7482         include MQ.
7484 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
7486         * input.c
7487         (selftest::test_make_location_nonpure_range_endpoints): Fix
7488         header comment.
7490 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
7492         * diagnostic-show-locus.c
7493         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
7494         function.
7495         (selftest::test_diagnostic_show_locus_one_liner): Call it.
7496         * input.c (get_pure_location): Move to libcpp/line-map.c.
7497         * input.h (get_pure_location): Convert decl to an inline function
7498         calling implementation in libcpp.
7500 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
7502         PR target/77403
7503         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
7504         template for intel asm dialect.
7505         (vec_set_hi_<mode><mask_name>): Ditto.
7507 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
7509         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
7510         (selftest::fail_formatted): Likewise.
7512 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
7514         * input.c (make_location): Call get_start and get_finish
7515         on the endpoints to avoid storing packed ranges or ad-hoc
7516         ranges in them.
7517         (selftest::test_make_location_nonpure_range_endpoints): New function.
7518         (selftest::input_c_tests): Call it.
7519         * input.h (get_start): New inline function.
7521 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7523         PR c/77398
7524         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
7525         with assert.
7527 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
7529         * Makefile.in (gcov-iov.h): Add dummy recipe.
7531 2016-08-29  Nathan Sidwell  <nathan@acm.org>
7533         * config/nvptx/nvptx.c: #include tree-vrp.h.
7535 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
7537         PR target/77324
7538         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
7539         HIGH+LO construct during reload.
7541 2016-08-28  Tom de Vries  <tom@codesourcery.com>
7543         PR lto/70955
7544         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
7545         'sysv_abi va_list' attribute.
7546         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
7547         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
7548         attributes.
7550 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7552         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
7553         * emit-rtl.c (unshare_all_rtl_1): Adjust.
7554         (unshare_all_rtl_again): Likewise.
7555         * function.c (assign_stack_local_1): Likewise.
7556         (assign_stack_temp_for_type): Likewise.
7558 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7560         * cfgbuild.c (make_edges): Adjust.
7561         * cfgrtl.c (can_delete_label_p): Likewise.
7562         * dwarf2cfi.c (create_trace_edges): Likewise.
7563         * except.c (sjlj_emit_dispatch_table): Likewise.
7564         * function.h (struct expr_status): make x_forced_labels a vector.
7565         * jump.c (rebuild_jump_labels_1): Adjust.
7566         * reload1.c (set_initial_label_offsets): Likewise.
7567         * stmt.c (force_label_rtx): Likewise.
7568         (expand_label): Likewise.
7570 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7572         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
7574 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
7576         PR tree-optimization/71077
7577         PR tree-optimization/68542
7578         * fold-const.c (fold_relational_const): Fix folding of
7579         VECTOR_CST comparisons that have a scalar boolean result type.
7580         (selftest::test_vector_folding): New static function.
7581         (selftest::fold_const_c_tests): Call it.
7583 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
7585         * doc/extend.texi (SPU Built-in Functions): Remove stale
7586         references to material formerly at IBM and Sony.
7588 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
7590         PR target/77349
7591         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
7593 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
7595         * diagnostic-show-locus.c
7596         (selftest::test_fixit_consolidation): New function.
7597         (selftest::diagnostic_show_locus_c_tests): Call it.
7598         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
7599         constructor based on source_range.
7601 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
7603         * diagnostic-color.c (color_dict): Add "fixit-insert" and
7604         "fixit-delete".
7605         (parse_gcc_colors): Update description of default GCC_COLORS.
7606         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
7607         (colorizer::set_fixit_insert): New method.
7608         (colorizer::set_fixit_delete): New method.
7609         (colorizer::get_color_by_name): New method.
7610         (colorizer::STATE_FIXIT_INSERT): New constant.
7611         (colorizer::STATE_FIXIT_DELETE): New constant.
7612         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
7613         fields in favor of new field "m_stop_color".  Add fields
7614         "m_fixit_insert" and "m_fixit_delete".
7615         (colorizer::colorizer): Update for above changes.  Replace
7616         colorize_start calls with calls to get_color_by_name.
7617         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
7618         STATE_FIXIT_DELETE.  Update for field renamings.
7619         (colorizer::finish_state): Simplify by using m_stop_color,
7620         rather than multiple identical "*_ce" fields.
7621         (colorizer::get_color_by_name): New method.
7622         (layout::print_any_fixits): Print insertions and replacements
7623         using the "fixit-insert" color, and deletions using the
7624         "fixit-delete" color.
7625         * doc/invoke.texi (-fdiagnostics-color): Update description of
7626         default GCC_COLORS, and of the supported capabilities.
7628 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
7630         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
7631         current_function_static_stack_size variable with the static
7632         stack frame size of the current function when
7633         flag_stack_usage_info is enabled.
7635 2016-08-26  Nathan Sidwell  <nathan@acm.org>
7637         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
7638         assignment inside if condition.
7640 2016-08-26  Richard Biener  <rguenther@suse.de>
7642         PR tree-optimization/69047
7643         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
7644         extracts similar to what FRE does.
7645         (non_rewritable_mem_ref_base): Likewise.
7647 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
7649         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
7650         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7651         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7652         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7653         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
7654         Likewise.
7655         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7656         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7657         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7658         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
7659         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
7661 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7663         PR target/70473
7664         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
7665         reservation duration to 15 cycles.
7666         (cortex_a8_vfp_macs): Likewise.
7667         (cortex_a8_vfp_macd): Likewise.
7668         (cortex_a8_vfp_divs): Likewise.
7669         (cortex_a8_vfp_divd): Likewise.
7671 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7673         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
7674         (aarch_macro_fusion_pair_p): Use above to avoid early return.
7676 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7677             Martin Jambhor  <mjambor@suse.cz>
7679         * common.opt: New option -fipa-bit-cp.
7680         * doc/invoke.texi: Document -fipa-bit-cp.
7681         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
7682         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
7683         * tree-ssa-ccp.h: New header file.
7684         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
7685         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
7686         Replace all occurences of tree parameter by two new params: signop, int.
7687         (bit_value_unop_1): Change to bit_value_unop and export it.
7688         Replace all occurences of tree parameter by two new params: signop,
7689         int.
7690         (bit_value_binop): Change call from bit_value_binop_1 to
7691         bit_value_binop.
7692         (bit_value_assume_aligned): Likewise.
7693         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
7694         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
7695         to ccp_finalize.
7696         (ccp_finalize): Skip processing if val->mask == 0.
7697         * ipa-cp.c: Include tree-ssa-ccp.h
7698         (ipcp_bits_lattice): New class.
7699         (ipcp_param_lattice (bits_lattice): New member.
7700         (print_all_lattices): Call ipcp_bits_lattice::print.
7701         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
7702         (initialize_node_lattices): Likewise.
7703         (propagate_bits_accross_jump_function): New function.
7704         (propagate_constants_accross_call): Call
7705         propagate_bits_accross_jump_function.
7706         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
7707         (ipcp_store_bits_results): New function.
7708         (ipcp_driver): Call ipcp_store_bits_results.
7709         * ipa-prop.h (ipa_bits): New struct.
7710         (ipa_jump_func): Add new member bits of type ipa_bits.
7711         (ipa_param_descriptor): Change decl to decl_or_type.
7712         (ipa_get_param): Change decl to decl_or_type and assert on
7713         PARM_DECL.
7714         (ipa_get_type): New function.
7715         (ipcp_transformation_summary): New member bits.
7716         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
7717         (ipa_populate_param_decls): Likewise.
7718         (ipa_dump_param): Likewise.
7719         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
7720         function.
7721         (ipa_set_jf_unknown): Set ipa_bits::known to false.
7722         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
7723         propagation.
7724         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
7725         (ipa_write_jump_function): Add streaming for ipa_bits.
7726         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
7727         (write_ipcp_transformation_info): Add streaming for ipa_bits
7728         summary for ltrans.
7729         (read_ipcp_transfomration_info): Add support for reading streamed
7730         ipa_bits.
7731         (ipcp_update_bits): New function.
7732         (ipcp_transform_function): Call ipcp_update_bits.
7734 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7736         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
7737         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
7739 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
7741         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
7743 2016-08-25  Richard Biener  <rguenther@suse.de>
7745         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
7746         Only add locations in late dwarf.
7747         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
7748         (dwarf2out_early_finish): But do it here.
7750 2016-08-24  Michael Collison  <michael.collison@linaro.org>
7751             Michael Collison  <michael.collison@arm.com>
7753         * config/arm/arm-modes.def: Add new condition code mode CC_V
7754         to represent the overflow bit.
7755         * config/arm/arm.c (maybe_get_arm_condition_code):
7756         Add support for CC_Vmode.
7757         (arm_gen_unlikely_cbranch): New function to generate common
7758         rtl conditional branches for overflow patterns.
7759         * config/arm/arm-protos.h: Add prototype for
7760         arm_gen_unlikely_cbranch.
7761         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
7762         addsi3_compareV_upper): New patterns to support signed
7763         builtin overflow add operations.
7764         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
7765         New patterns to support unsigned builtin add overflow operations.
7766         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
7767         builtin overflow subtract operations,
7768         (usubv<mode>4): New patterns to support unsigned builtin subtract
7769         overflow operations.
7770         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
7771         to support builtin overflow negate operations.
7773 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7775         Revert
7776         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7778         * explow.c (get_dynamic_stack_size): Take known alignment of stack
7779         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7780         needed.
7782 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7784         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
7785         MULTILIB_OPTIONS should be used.  Small wording fixes.
7786         * genmultilib: Memorize set of all option combinations in
7787         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
7788         found in MULTILIB_OPTIONS by checking if option set is listed in
7789         combination_space.  Output new and existing error message to stderr.
7791 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7793         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
7794         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
7795         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
7796         (MULTILIB_REUSE): Remove reuse rules for option set including
7797         -mfpu=fp-armv8 and -mfpu=vfpv4
7799 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7801         * config/arm/t-rtems: Add vfp multilib.
7803 2016-08-23  Ian Lance Taylor  <iant@golang.org>
7805         * config/s390/s390.c (s390_asm_file_start): Call
7806         default_file_start.
7808 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7810         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
7811         initialization of all 0's to the 0 constant, instead of directly
7812         generating XOR.  Add support for V4SImode vector initialization on
7813         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
7814         initialization.  Change variables used in V4SFmode vector
7815         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
7816         any memory addresses are in index form.  Add support for using
7817         VSPLTH/VSPLTB to initialize vector short and vector char vectors
7818         with all of the same element.
7819         (regno_or_subregno): New helper function to return a register
7820         number for either REG or SUBREG.
7821         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
7822         Use regno_or_subregno where possible.
7823         (rs6000_split_v4si_init_di_reg): New helper function to build up a
7824         DImode value from two SImode values in order to generate V4SImode
7825         vector initialization on 64-bit systems with direct move.
7826         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
7827         initialization.
7828         (rtx_is_swappable_p): V4SImode vector initialization insn is not
7829         swappable.
7830         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
7831         declaration.
7832         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
7833         attributes to initialize V8HImode and V16QImode vectors with the
7834         same element.
7835         (VSX_SPLAT_COUNT): Likewise.
7836         (VSX_SPLAT_SUFFIX): Likewise.
7837         (UNSPEC_VSX_VEC_INIT): New unspec.
7838         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
7839         Allow SFmode values to come from Altivec registers.
7840         (vsx_init_v4si): New insn/split for V4SImode vector initialization
7841         on 64-bit systems with direct move.
7842         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
7843         vector initializations, to allow V4SImode vector initializations
7844         on 64-bit systems with direct move.
7845         (vsx_splat_v4si): Likewise.
7846         (vsx_splat_v4si_di): Likewise.
7847         (vsx_splat_v4sf): Likewise.
7848         (vsx_splat_v4sf_internal): Likewise.
7849         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
7850         register classes.
7851         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
7852         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
7853         initializing V8HImode and V16QImode vectors with the same
7854         element.
7855         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
7856         optimization if -maltivec=be.
7858 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
7860         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
7861         attribute for alternatives 3 and 4.
7863 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
7865         * selftest.c (selftest::assert_str_contains): New function.
7866         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
7867         * selftest.h (selftest::assert_str_contains): New decl.
7868         (ASSERT_STR_CONTAINS): New macro.
7870 2016-08-23  Richard Biener  <rguenther@suse.de>
7872         PR tree-optimization/77286
7873         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
7874         the CFG here.
7875         (vect_transform_loop): Split exit edges of loop and scalar
7876         loop if required and at the appropriate time.
7878 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7880         * explow.c (get_dynamic_stack_size): Take known alignment of stack
7881         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7882         needed.
7883         Correct a typo in a comment.
7885 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7887         * config/s390/s390.md ("*andc_split"): New splitter for and with
7888         complement.
7890 2016-08-23  Richard Biener  <rguenther@suse.de>
7892         PR tree-optimization/27336
7893         * tree-vrp.c (infer_value_range): Handle stmts that can throw
7894         by looking for a non-EH edge.
7895         (process_assert_insertions_for): Likewise.
7897 2016-08-23  Richard Biener  <rguenther@suse.de>
7899         PR middle-end/77305
7900         * statistics.c (statistics_counter_event): Robustify against
7901         NULL current_pass.
7903 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7905         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
7906         for targets amdfam10 and barcelona.
7908 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
7910         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
7911         (zero_extend<mode>di2): Ditto.
7912         (*zero_extend<mode>si2): Ditto.
7913         (*zero_extendqihi2): Ditto.
7915 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7917         PR middle-end/77269
7918         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
7919         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
7921 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
7923         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
7924         identical consecutive elements.
7925         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
7926         the node's def stmt, avoid printing an unwanted trailing newline by
7927         replacing the call to print_gimple_stmt() with its inlined body and
7928         adjusting it to not set pp_needs_newline and to call pp_flush()
7929         instead of pp_newline_and_flush().
7931 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7933         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
7934         (float32_type_node, float64_type_node, float32x_type_node)
7935         (float128x_type_node): New macros.
7936         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
7937         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
7938         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
7939         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
7940         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
7941         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
7942         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
7943         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
7944         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
7945         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
7946         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
7947         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
7948         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
7949         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
7950         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
7951         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
7952         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
7953         (copysign, fabs, huge_val, inf, nan, nans): Use it.
7954         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
7955         and copysign.
7956         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
7957         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
7958         * doc/extend.texi (Other Builtins): Document these built-in
7959         functions.
7960         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
7961         for nan and nans.
7963 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
7965         * doc/install.texi (Binaries): www.opencsw.org now uses https.
7967 2016-08-22  Richard Biener  <rguenther@suse.de>
7969         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
7971 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
7973         PR target/77270
7974         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
7975         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
7976         non-SSE2 athlons only, otherwise prefer SSE prefetches.
7978 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7980         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
7981         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
7982         (vrp_visit_switch_stmt): Likewise.
7983         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
7984         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
7985         (vrp_visit_stmt): Use extract_range_from_stmt.
7986         (vrp_visit_phi_node): Use extract_range_from_phi_node.
7988 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7990         * Makefile.in: Add tree-vrp.h to GTFILES.
7991         * gengtype.c (open_base_files): Add tree-vrp.h.
7992         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
7993         * builtins.c: Likewise.
7994         * fold-const.c: Likewise.
7995         * gimple-builder.c: Likewise.
7996         * gimple-laddress.c: Likewise.
7997         * hsa-gen.c: Likewise.
7998         * internal-fn.c: Likewise.
7999         * ssa.h: Likewise.
8000         * targhooks.c: Liewise,
8001         * tree-ssa-address.c: Likewise.
8002         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
8003         * tree-vrp.c (struct value_range): Move to tree-vrp.h
8004         * tree-vrp.h: New file.
8006 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
8008         PR tree-optimization/61839
8009         * tree-vrp.c (two_valued_val_range_p): New.
8010         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
8011         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
8012         Also Convert VAR BINOP CST where VAR is two-valued to
8013         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
8015 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
8017         * diagnostic-show-locus.c
8018         (layout::annotation_line_showed_range_p): New method.
8019         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
8020         Reimplement case fixit_hint::REPLACE to cover removals, and
8021         replacements where the range of the replacement isn't one
8022         of the ranges in the rich_location.
8023         (test_one_liner_fixit_replace): Likewise.
8024         (selftest::test_one_liner_fixit_replace_non_equal_range): New
8025         function.
8026         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
8027         New function.
8028         (selftest::test_diagnostic_show_locus_one_liner): Call the new
8029         functions.
8030         * diagnostic.c (print_parseable_fixits): Remove case
8031         fixit_hint::REMOVE.
8033 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
8035         PR target/77270
8036         * config/i386/i386.c (ix86_option_override_internal): Remove
8037         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
8038         Enable SSE prefetch also for TARGET_PREFETCHWT1.
8039         Do not try to enable TARGET_PRFCHW ISA flag here.
8040         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
8041         Rewrite expander function body.
8042         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
8044 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
8046         PR c/32187
8047         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
8048         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
8049         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
8050         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
8051         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
8052         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
8053         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
8054         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
8055         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
8056         tree_index values.
8057         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
8058         macros.
8059         (struct floatn_type_info): New structure type.
8060         (floatn_nx_types): New variable declaration.
8061         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
8062         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
8063         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
8064         * tree.c (floatn_nx_types): New variable.
8065         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
8066         corresponding complex types.
8067         * target.def (floatn_mode): New hook.
8068         * targhooks.c: Include "real.h".
8069         (default_floatn_mode): New function.
8070         * targhooks.h (default_floatn_mode): New prototype.
8071         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
8072         types.
8073         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
8074         effective-target and dg-add-options keywords.
8075         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
8076         Document new effective-target keywords.
8077         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
8078         * doc/tm.texi: Regenerate.
8079         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
8080         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
8081         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
8082         18661-3.
8083         * real.h (struct real_format): Add field ieee_bits.
8084         * real.c (ieee_single_format, mips_single_format)
8085         (motorola_single_format, spu_single_format, ieee_double_format)
8086         (mips_double_format, motorola_double_format)
8087         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
8088         (ieee_extended_intel_128_format)
8089         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
8090         (mips_extended_format, ieee_quad_format, mips_quad_format)
8091         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
8092         (decimal_double_format, decimal_quad_format, ieee_half_format)
8093         (arm_half_format, real_internal_format: Initialize ieee_bits
8094         field.
8095         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
8096         float128_type_node.  Set float80_type_node to float64x_type_node
8097         if appropriate and long_double_type_node not appropriate.
8098         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
8099         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
8100         Initialize ieee_bits field.
8101         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
8102         (rs6000_init_builtins): Set ieee128_float_type_node to
8103         float128_type_node.
8104         (rs6000_floatn_mode): New function.
8106 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8108         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8109         _rdseed64_step): Uglify argument names and/or local variable names
8110         in inline functions.
8111         * config/i386/rtmintrin.h (_xabort): Likewise.
8112         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
8113         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
8114         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
8115         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
8116         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
8117         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
8118         _mm_maskz_ternarylogic_epi32): Likewise.
8119         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
8120         __lwpins32, __lwpins64): Likewise.
8121         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
8122         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
8123         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
8124         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
8125         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
8126         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
8127         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
8128         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
8129         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
8130         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
8131         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
8132         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
8133         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
8134         _mm256_mask_i64gather_epi32): Likewise.
8135         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
8136         * config/i386/ia32intrin.h (__writeeflags): Likewise.
8137         * config/i386/pkuintrin.h (_wrpkru): Likewise.
8138         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
8139         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
8140         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
8141         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
8142         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
8143         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
8144         _mm512_mask_prefetch_i64scatter_ps): Likewise.
8145         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
8146         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
8147         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
8148         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
8149         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
8150         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
8151         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
8152         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
8154         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
8155         returning void.
8156         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
8157         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
8158         Likewise.
8159         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
8160         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
8161         function name.
8162         (_rdpkru_u32): Add space after function name.
8164         * config/i386/t-i386 (i386-c.o): Don't depend on
8165         i386-builtin-types.inc.
8166         (i386.o): Depend on i386-builtin-types.inc.
8168 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
8170         PR target/77281
8171         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
8172         Use const_vec_duplicate to check for duplicated elements.
8174 2016-08-19  Richard Biener  <rguenther@suse.de>
8176         PR tree-optimization/77290
8177         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8178         Fix flag_tree_parallelize_loops check.
8180 2016-08-19  Richard Biener  <rguenther@suse.de>
8182         * match.pd (x | 0 -> x): Add.
8184 2016-08-19  Richard Biener  <rguenther@suse.de>
8186         PR tree-optimization/77286
8187         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8188         Deal with virtual PHIs being out-of-order.
8190 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8192         * doc/invoke.texi (fverbose-asm): Note that source code lines
8193         are emitted, and provide an example.
8194         * final.c (asm_show_source): New function.
8195         (final_scan_insn): Call asm_show_source.
8197 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8199         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
8200         param with diagnostic_kind.
8201         (class colorizer): Similarly replace field m_diagnostic with
8202         m_diagnostic_kind.
8203         (colorizer::colorizer): Replace diagnostic
8204         param with diagnostic_kind.
8205         (colorizer::begin_state): Update for above field change.
8206         (layout::layout): Replace diagnostic param with rich_location *
8207         and diagnostic_kind.
8208         (diagnostic_show_locus): Replace diagnostic param with richloc
8209         and diagnostic_kind.
8210         (class selftest::test_diagnostic_context): New class.
8211         (selftest::test_diagnostic_show_locus_unknown_location): New
8212         function.
8213         (selftest::test_one_liner_simple_caret): New function.
8214         (selftest::test_one_liner_caret_and_range): New function.
8215         (selftest::test_one_liner_multiple_carets_and_ranges): New
8216         function.
8217         (selftest::test_one_liner_fixit_remove): New function.
8218         (selftest::test_one_liner_fixit_replace): New function.
8219         (selftest::test_diagnostic_show_locus_one_liner): New function.
8220         (selftest::diagnostic_show_locus_c_tests): Call the new test
8221         functions.
8222         * diagnostic.c (diagnostic_initialize): Initialize
8223         colorize_source_p, show_ruler_p and parseable_fixits_p.
8224         (default_diagnostic_finalizer): Update for change to
8225         diagnostic_show_locus.
8226         (diagnostic_append_note): Likewise.
8227         * diagnostic.h (diagnostic_show_locus): Replace
8228         const diagnostic_info * param with location * and diagnostic_t.
8230 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8232         * input.c (saved_line_table): New global.
8233         (class selftest::temp_line_table): Rename to line_table_test and
8234         move declaration to selftest.h, and drop field m_old_line_table.
8235         (selftest::temp_line_table::temp_line_table): Rename ctor to...
8236         (selftest::line_table_test::line_table_test): ...this.  Add a
8237         default ctor.  Store current value of line_table within
8238         saved_line_table.
8239         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
8240         (selftest::line_table_test::~line_table_test): ...this, and
8241         restore line_table from the saved_line_table, rather than
8242         m_old_line_table.
8243         (selftest::test_accessing_ordinary_linemaps): Update for above
8244         renaming.
8245         (selftest::test_lexer): Likewise.
8246         (struct selftest::lexer_test): Likewise.
8247         (selftest::lexer_test::lexer_test): Likewise.
8248         (selftest::input_c_tests): Move the looping over test cases from
8249         here into...
8250         (selftest::for_each_line_table_case): New function.
8251         * input.h (saved_line_table): New decl.
8252         * selftest.h (struct selftest::line_table_case): New forward decl.
8253         (class selftest::line_table_test): New class, moved here from
8254         selftest::temp_line_table in input.c, and renamed.
8255         (selftest::for_each_line_table_case): New decl.
8257 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8259         PR target/72839
8260         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
8262 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8264         PR middle-end/70895
8265         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
8266         enclosing parallel construct for reduction variables on OpenACC loop
8267         directives.
8269 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
8271         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
8272         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
8273         -gdwarf-3.
8274         (function_to_dwarf_procedure): Update comment.
8276 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8278         * input.c (diagnostics_file_cache_forcibly_evict_file): New
8279         function.
8280         * input.h (diagnostics_file_cache_forcibly_evict_file): New
8281         declaration.
8282         * selftest.c (selftest::temp_source_file::~temp_source_file):
8283         Evict m_filename from the diagnostic file cache.
8285 2016-08-18  Richard Biener  <rguenther@suse.de>
8287         * tree-pass.h (make_pass_materialize_all_clones): Declare.
8288         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
8289         make_pass_materialize_all_clones): New simple IPA pass encapsulating
8290         clone materialization.
8291         * passes.def (all_late_ipa_passes): Start with
8292         pass_materialize_all_clones.
8293         * cgraphunit.c (symbol_table::compile): Remove call to
8294         materialize_all_clones.
8295         * tree-into-ssa.c: Include statistics.h.
8296         (update_ssa): Count number of times we do incremental/rewrite
8297         SSA update.
8299 2016-08-18  Richard Biener  <rguenther@suse.de>
8301         PR tree-optimization/77282
8302         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8303         When doing auto-parallelizing also prevent use of PHIs that
8304         carry dependences across loop backedges.
8306 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
8307             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8309         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
8311 2016-08-18  Richard Biener  <rguenther@suse.de>
8313         * ssa-iterators.h (ssa_vuse_operand): New inline.
8314         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
8315         (predicate_all_scalar_phis): Use remove_phi_node to remove
8316         phi nodes predicated.  Delay removing virtual PHIs.
8317         (predicate_mem_writes): Update virtual operands.
8318         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
8319         (tree_if_conversion): Do not rewrite virtual SSA form.
8320         * tree-phinodes.c (release_phi_node): Make static.
8321         * tree-phinodes.h (release_phi_node): Remove.
8323 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
8325         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
8326         codes that appear in bdesc_* arrays, instead include i386-builtin.def
8327         twice to define those.
8328         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
8329         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
8330         bdesc_multi_arg): Define by including i386-builtin.def the third time.
8331         * config/i386/i386-builtin.def: New file.
8333 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
8335         * input.c (get_source_range_for_char): Rename to...
8336         (selftest::get_source_range_for_char): ...this, and move within
8337         the #if CHECKING_P guard.
8338         (get_num_source_ranges_for_substring): Rename to...
8339         (selftest::get_num_source_ranges_for_substring): ...this, move
8340         within the #if CHECKING_P guard, and make static.
8341         (selftest::assert_num_substring_ranges): Initialize
8342         actual_num_ranges.
8344 2016-08-18  Alan Modra  <amodra@gmail.com>
8346         PR rtl-optimization/72771
8347         * reload.c (find_reloads): Don't assume that a subreg mem is OK
8348         when find_reloads_toplev returns address_reloaded==-1.
8349         (alternative_allows_const_pool_ref): Update comment.
8351 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
8353         PR tree-optimization/71752
8354         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
8355         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
8357 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
8359         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
8360         instead of testing ECF_NORETURN bit in gimple_call_flags.
8361         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
8362         * predict.c (tree_bb_level_predictions): Likewise.
8363         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
8365         PR middle-end/77259
8366         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
8367         turning a call into __builtin_unreachable-like noreturn call, adjust
8368         gimple_call_set_fntype.
8369         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
8370         gimple_call_fntype has void return type.
8372 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
8374         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
8375         maybe_lookup_decl, to handle nested acc loop directives.
8377 2016-08-17  Richard Biener  <rguenther@suse.de>
8379         PR tree-optimization/76490
8380         * tree-vrp.c (update_value_range): Preserve overflow infinities
8381         when intersecting with ranges from get_range_info.
8382         (operand_less_p): Handle overflow infinities correctly.
8383         (value_range_constant_singleton): Use vrp_operand_equal_p
8384         to handle overflow max/min correctly.
8385         (vrp_valueize): Likewise.
8386         (union_ranges): Likewise.
8387         (intersect_ranges): Likewise.
8388         (vrp_visit_phi_node): Improve iteration limitation to only
8389         apply when we'll possibly re-visit the PHI via a changed argument
8390         on the backedge.
8392 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8394         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
8395         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
8396         rather than those that should not be built.
8398 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
8400         PR target/66488
8401         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
8403 2016-08-17  Richard Biener  <rguenther@suse.de>
8405         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
8406         (verify_vssa): New function verifying virtual SSA form.
8407         (verify_ssa): Call it.
8408         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
8409         Do not apply loop-closed SSA handling to virtuals.
8410         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
8411         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
8412         when rewriting their symbol.
8413         (prepare_def_site_for): Likewise.
8414         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
8415         operands of moved stmts.
8417 2016-08-17  Richard Biener  <rguenther@suse.de>
8419         PR tree-optimization/23855
8420         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
8421         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
8422         find guards to hoist.  Do not update SSA form but rewrite virtuals
8423         into loop closed SSA.
8424         (find_loop_guard): Adjust to skip already hoisted guards.  Do
8425         not mark virtuals for renaming or update SSA form.
8427 2016-08-17  Martin Liska  <mliska@suse.cz>
8429         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
8430         a LONG_LONG_TYPE_SIZE comparison.
8431         * gcov-io.h: Remove macro definitions.
8432         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
8433         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
8434         comparison.
8436 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
8438         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
8439         that builtins not mentioned in bdesc_* arrays come first, then
8440         the ones mentioned in bdesc_* arrays in the order they appear in
8441         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
8442         IX86_BUILTIN__BDESC_*_LAST enumerator.
8443         (bdesc_mpx): Fix up a comment typo.
8444         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
8445         __builtin_ia32_vpcomneu[bwdq] builtins.
8446         (BDESC_VERIFY, BDESC_VERIFYS): Define.
8447         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
8448         enum ix86_builtins ordering.
8449         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
8450         for direct bdesc_* array member access instead of searching all the
8451         arrays until an fcode match is found.
8453 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
8455         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
8456         pattern as define_insn_and_split.  Split insn before reload to
8457         ashl<mode>3_1.
8458         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
8459         <shift_insn><mode>3_1.
8460         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
8461         <rotate_insn><mode>3_1.
8463 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
8465         PR c/72857
8466         * input.c (get_source_range_for_substring): Rename to...
8467         (get_source_location_for_substring): ...this, adding param
8468         "caret_idx", and converting output param from source_range * to
8469         location_t *.
8470         (get_source_range_for_char): New function.
8471         (get_num_source_ranges_for_substring): Update comment to reflect
8472         above renaming.
8473         (assert_char_at_range): Update to use get_source_range_for_char
8474         rather than get_source_range_for_substring.
8475         (test_lexer_string_locations_concatenation_2): Likewise.
8476         * substring-locations.h (get_source_range_for_substring): Rename
8477         to...
8478         (get_source_location_for_substring): ...this, and adding param
8479         "caret_idx", and converting output param from source_range * to
8480         location_t *.
8482 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
8484         * input.c (class selftest::temp_source_file): Move to
8485         selftest.h.
8486         (selftest::temp_source_file::temp_source_file): Move to
8487         selftest.c.
8488         (selftest::temp_source_file::~temp_source_file): Likewise.
8489         * selftest.c (selftest::temp_source_file::temp_source_file): Move
8490         here from input.c.
8491         (selftest::temp_source_file::~temp_source_file): Likewise.
8492         * selftest.h (class selftest::temp_source_file): Move here from
8493         input.c
8495 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
8497         PR target/71910
8498         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
8499         inlining, add cgraph edge for the added __builtin_unreachable call.
8501         PR middle-end/67485
8502         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
8503         only cast it to SHWI for the final comparison.
8505 2016-08-16  Martin Liska  <mliska@suse.cz>
8507         PR gcov-profile/36412
8508         * doc/gcov.texi: Document --hash-filenames(-x).
8509         * gcov.c (print_usage): Add the option.
8510         (process_args): Process the option, sort options alphabetically.
8511         (md5sum_to_hex): New function.
8512         (make_gcov_file_name): Do the md5sum and append it to a
8513         filename.
8515 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
8517         PR tree-optimization/69848
8518         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
8519         and swtich operands to avoid additional NOT instruction.
8520         (vcond<v_cmp_mixed><mode>): Ditto.
8521         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8523 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
8525         * doc/install.texi (*-*-solaris2*): Adjust latest change.
8527 2016-08-16  Richard Biener  <rguenther@suse.de>
8529         PR tree-optimization/76783
8530         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
8531         BB visited flags at start.
8533 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
8535         PR tree-optimization/72817
8536         PR tree-optimization/73450
8537         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
8538         multiple_of_p for adjusted IV.base.
8540 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
8542         PR target/72867
8543         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
8544         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
8545         for !flag_finite_math_only or flag_signed_zeros.
8546         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
8547         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
8548         depend on flag_finite_math_only.
8549         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
8550         New insn pattern.
8551         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
8552         (*ieee_smin<mode>3): Ditto.
8553         (*ieee_smax<mode>3): Ditto.
8554         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
8555         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
8556         flag_signed_zeros.
8557         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
8558         depend on flag_finite_math_only.
8559         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
8560         (*mmx_<code>v2sf3): Remove.
8561         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
8562         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
8563         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
8565 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8567         PR rtl-optimization/73650
8568         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
8569         it is not a simple move.
8571 2016-08-15  Martin Liska  <mliska@suse.cz>
8573         PR driver/72765
8574         * gcc.c (do_spec_1): Call save_string with the right size.
8575         (save_string): Do an assert about string we copy.
8577 2016-08-15  Richard Biener  <rguenther@suse.de>
8579         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
8580         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
8581         TV_MACH_DEP.
8582         (pass_data_stv): Likewise.
8584 2016-08-15  Richard Biener  <rguenther@suse.de>
8586         PR tree-optimization/73434
8587         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
8588         TBAA info on the base when forwarding a non-invariant address.
8590 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
8592         * dwarf2out.c (struct checksum_attributes): Add
8593         at_string_length_bit_size and at_string_length_byte_size fields.
8594         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
8595         and DW_AT_string_length_byte_size.
8596         (die_checksum_ordered): Handle at_string_length_bit_size and
8597         at_string_length_byte_size.
8598         (gen_array_type_die): For dwarf_version >= 5 emit
8599         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8600         (adjust_string_types): For dwarf_version >= 5 remove
8601         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
8602         (resolve_addr): Likewise.
8604         PR debug/71906
8605         * dwarf2out.c (string_types): New variable.
8606         (gen_array_type_die): Change early_dwarf handling of
8607         DW_AT_string_length, create DW_OP_call4 referencing the
8608         length var temporarily.  Handle parameters that are pointers
8609         to string length.
8610         (adjust_string_types): New function.
8611         (gen_subprogram_die): Temporarily set string_types to local var,
8612         call adjust_string_types if needed.
8613         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
8614         New functions.
8615         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
8617 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
8619         * doc/install.texi (*-*-solaris2*): Fix version number and document
8620         requirement on GNU make for building libjava with the Solaris linker.
8622 2016-08-15  Martin Liska  <mliska@suse.cz>
8623             Jakub Jelinek  <jakub@redhat.com>
8625         PR tree-optimization/72824
8626         * tree-loop-distribution.c (const_with_all_bytes_same)
8627         <case VECTOR_CST>: Fix a typo.
8629 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
8631         PR target/76342
8632         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
8633         Renamed from _mm512_undefined_si512.
8634         (_mm_undefined_si512): New definition.
8636 2016-08-13  Richard Biener  <rguenther@suse.de>
8638         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
8639         into PHIs and update the lattice for its def.
8641 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
8643         PR c/71512
8644         * ubsan.c (instrument_si_overflow): Pass true instead of false
8645         to gsi_replace.
8646         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
8647         of bbs.  Return TODO_cleanup_cfg if any returned true.
8649 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8651         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
8652         ISA 3.0 MTVSRDD instruction.
8653         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
8654         vecperm.
8656 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8658         PR tree-optimization/71083
8659         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
8660         bitfield access when possible.
8662 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
8664         PR middle-end/71654
8665         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
8666         sign-changing cast from a shorter unsigned type to a wider
8667         signed type.
8669 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
8671         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
8672         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
8673         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
8675 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8677         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
8678         Correct costs for vec_construct.
8680 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
8682         PR tree-optimization/69848
8683         * tree-vectorizer.h (enum vect_def_type): New condition reduction
8684         type CONST_COND_REDUCTION.
8685         * tree-vect-loop.c (vectorizable_reduction): Support new condition
8686         reudction type CONST_COND_REDUCTION.
8688 2016-08-12  Richard Biener  <rguenther@suse.de>
8690         PR tree-optimization/57326
8691         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
8692         returning an SSA name.
8693         (phi_translate_1): When fully_constant_expression returns a NAME
8694         make sure we have a leader for it.
8696 2016-08-12  Martin Liska  <mliska@suse.cz>
8697             Adam Fineman  <afineman@afineman.com>
8699         * gcov.c (process_file): Create .gcov file when .gcda
8700         file is missing.
8702 2016-08-12  Marek Polacek  <polacek@redhat.com>
8704         PR c/7652
8705         * alias.c (find_base_value): Adjust fall through comment.
8706         * cfgexpand.c (expand_debug_expr): Likewise.
8707         * combine.c (find_split_point): Likewise.
8708         (expand_compound_operation): Likewise.  Add FALLTHRU.
8709         (make_compound_operation): Adjust fall through comment.
8710         (canon_reg_for_combine): Add FALLTHRU.
8711         (force_to_mode): Adjust fall through comment.
8712         (simplify_shift_const_1): Likewise.
8713         (simplify_comparison): Likewise.
8714         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
8715         FALLTHRU.
8716         * config/aarch64/predicates.md: Likewise.
8717         * config/i386/i386.c (function_arg_advance_32): Likewise.
8718         (ix86_gimplify_va_arg): Likewise.
8719         (print_reg): Likewise.
8720         (ix86_print_operand): Likewise.
8721         (ix86_build_const_vector): Likewise.
8722         (ix86_expand_branch): Likewise.
8723         (ix86_sched_init_global): Adjust fall through comment.
8724         (ix86_expand_args_builtin): Add FALLTHRU.
8725         (ix86_expand_builtin): Likewise.
8726         (ix86_expand_vector_init_one_var): Likewise.
8727         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
8728         (rs6000_adjust_cost): Likewise.
8729         (insn_must_be_first_in_group): Likewise.
8730         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
8731         * dbxout.c (dbxout_symbol): Adjust fall through comment.
8732         * df-scan.c (df_uses_record): Likewise.
8733         * dojump.c (do_jump): Add FALLTHRU.
8734         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
8735         comment.
8736         (resolve_args_picking_1): Adjust fall through comment.
8737         (loc_list_from_tree_1): Likewise.
8738         * expmed.c (make_tree): Likewise.
8739         * expr.c (expand_expr_real_2): Add FALLTHRU.
8740         (expand_expr_real_1): Likewise.  Adjust fall through comment.
8741         * fold-const.c (const_binop): Adjust fall through comment.
8742         (fold_truth_not_expr): Likewise.
8743         (fold_cond_expr_with_comparison): Add FALLTHRU.
8744         (fold_binary_loc): Likewise.
8745         (contains_label_1): Adjust fall through comment.
8746         (multiple_of_p): Likewise.
8747         * gcov-tool.c (process_args): Add FALLTHRU.
8748         * genattrtab.c (check_attr_test): Likewise.
8749         (write_test_expr): Likewise.
8750         * genconfig.c (walk_insn_part): Likewise.
8751         * genpreds.c (validate_exp): Adjust fall through comment.
8752         (needs_variable): Likewise.
8753         * gensupport.c (get_alternatives_number): Add FALLTHRU.
8754         (subst_dup): Likewise.
8755         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
8756         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
8757         (gimplify_scan_omp_clauses): Add FALLTHRU.
8758         (goa_stabilize_expr): Likewise.
8759         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
8760         through comment.
8761         * hsa-gen.c (get_address_from_value): Likewise.
8762         * ipa-icf.c (sem_function::hash_stmt): Likewise.
8763         * ira.c (ira_setup_alts): Add FALLTHRU.
8764         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
8765         comment.
8766         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
8767         * opts.c (common_handle_option): Likewise.
8768         * read-rtl.c (read_rtx_code): Likewise.
8769         * real.c (round_for_format): Likewise.
8770         * recog.c (asm_operand_ok): Likewise.
8771         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
8772         * reload1.c (set_label_offsets): Likewise.
8773         (eliminate_regs_1): Likewise.
8774         (reload_reg_reaches_end_p): Likewise.
8775         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
8776         (rtx_cost): Likewise.
8777         * sched-rgn.c (is_exception_free): Likewise.
8778         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
8779         * stor-layout.c (int_mode_for_mode): Likewise.
8780         * toplev.c (print_to_asm_out_file): Likewise.
8781         (print_to_stderr): Likewise.
8782         * tree-cfg.c (gimple_verify_flow_info): Likewise.
8783         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
8784         (chrec_fold_multiply): Likewise.
8785         (evolution_function_is_invariant_rec_p): Likewise.
8786         (for_each_scev_op): Likewise.
8787         * tree-data-ref.c (siv_subscript_p): Likewise.
8788         (get_references_in_stmt): Likewise.
8789         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
8790         (substitute_in_expr): Likewise.
8791         (type_cache_hasher::equal): Likewise.
8792         (walk_type_fields): Likewise.
8793         * var-tracking.c (adjust_mems): Add FALLTHRU.
8794         (set_dv_changed): Adjust fall through comment.
8795         * varasm.c (default_function_section): Add FALLTHRU.
8797 2016-08-12  Marek Polacek  <polacek@redhat.com>
8799         PR c/7652
8800         * tree-complex.c (expand_complex_division): Add missing break.
8802 2016-08-12  Richard Biener  <rguenther@suse.de>
8804         * passes.c (execute_todo): Do not push/pop TV_TODO.
8805         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
8806         (execute_one_pass): Likewise.
8807         * common.opt (ftime-report-details): New switch.
8808         * doc/invoke.texi (ftime-report-details): Document.
8809         * timevar.h (timer::print_row): Adjust signature.
8810         (timer::all_zero): New static helper.
8811         (timer::child_map_t): New typedef.
8812         (timer::time_var_def): Add children field.
8813         * timevar.c (timer::named_items::print): Adjust.
8814         (timer::~timer): Free timevar recorded children.
8815         (timer::pop_internal): When -ftime-report-details record
8816         time spent in sub-timevars.
8817         (timer::print_row): Adjust.
8818         (timer::print): Print sub-timevar stats, use all_zero.
8819         * timevar.def (TV_TODO): Remove.
8821 2016-08-12  Richard Biener  <rguenther@suse.de>
8823         PR tree-optimization/72851
8824         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
8825         worklists to use bitmaps indexed in execution order.
8826         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
8827         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
8828         (cfg_blocks): Make a bitmap.
8829         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
8830         New globals.
8831         (cfg_blocks_empty_p): Adjust.
8832         (cfg_blocks_add): Likewise.
8833         (cfg_blocks_get): Likewise.
8834         (add_ssa_edge): Likewise.
8835         (add_control_edge): Likewise.
8836         (simulate_stmt): Likewise.
8837         (process_ssa_edge_worklist): Likewise.
8838         (simulate_block): Likewise.
8839         (ssa_prop_init): Compute PRE order and stmt UIDs.
8840         (ssa_prop_fini): Adjust.
8841         (ssa_propagate): Adjust.
8843 2016-08-12  Richard Biener  <rguenther@suse.de>
8845         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
8846         the currently executable edges have fixed ranges.  Always
8847         go through update_value_range.
8849 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
8851         PR debug/63240
8852         * langhooks-def.h
8853         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
8854         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
8855         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
8856         (LANG_HOOKS_DECLS): Add it.
8857         * langhooks.h (struct lang_hooks_for_decls): Add
8858         function_decl_defaulted.  Const_tree-ify
8859         function_decl_explicit_p and function_decl_deleted_p.
8860         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
8861         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
8862         also at strict DWARF v5.
8864         PR debug/55641
8865         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
8866         TYPE_QUAL_CONST in reference-typed decls.
8868         PR debug/49366
8869         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
8870         in DW_OP_pieces, just enough to handle pointers to member
8871         functions.
8872         (gen_remaining_tmpl_value_param_die_attribute): Use a location
8873         expression on DWARFv5 if a constant value doesn't work.
8875 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
8877         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
8878         * selftest.c (selftest::test_assertions): New function.
8879         (selftest::selftest_c_tests): New function.
8880         * selftest.h (selftest::selftest_c_tests): New declaration.
8882 2016-08-11  Richard Biener  <rguenther@suse.de>
8883             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8885         PR rtl-optimization/72855
8886         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
8888 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8890         PR target/72863
8891         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
8892         (vsx_store_<mode>): Likewise.
8894 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
8896         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
8897         TImode CONST_WIDE_INT store.
8898         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
8900 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
8902         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
8903         mode if unaligned SSE load and store are optimal.
8905 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8907         PR tree-optimization/71083
8908         * tree-predcom.c (ref_at_iteration): Correctly align the
8909         reference type.
8911 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8913         * config/s390/s390-builtin-types.def: Add INT128 types.
8914         * config/s390/s390-builtins.def: Add INT128 variants for the add
8915         sub low-level builtins dealing with TImode.
8916         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
8917         via subreg when expanding a builtin.
8918         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
8919         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
8920         Fix comment.
8921         * config/s390/vecintrin.h: Adjust builtin names accordingly.
8922         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
8923         ("vec_addc<mode>", "vec_addc_u128"): Merge to
8924         "vacc<bhfgq>_<mode>".
8925         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
8926         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
8927         ("vec_subc<mode>", "vec_subc_u128"): Merge to
8928         "vscbi<bhfgq>_<mode>".
8929         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
8930         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
8932 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8934         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
8936 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
8938         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
8939         unused declaration.
8940         (vcond<v_cmp_mixed><mode>): Ditto.
8941         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8943 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
8945         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
8946         variable explicitly, also assert on it before use.
8948 2016-08-11  Richard Biener  <rguenther@suse.de>
8950         PR tree-optimization/72772
8951         * cfgloopmanip.c (create_preheader): Use split_edge if there
8952         is a single loop entry, avoiding degenerate PHIs.
8954 2016-08-11  Richard Biener  <rguenther@suse.de>
8956         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
8957         unconditional TODO_cleanup_cfg.
8958         (pass_thread_jumps::execute): Initialize loops, perform a CFG
8959         cleanup only if we threaded a jump.
8961 2016-08-11  Alan Modra  <amodra@gmail.com>
8963         PR target/71680
8964         * lra-constraints.c (simplify_operand_subreg): Allow subreg
8965         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
8966         slow.  Emit two reloads for slow mem case, first loading in
8967         fast innermode, then converting to required mode.
8969 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8971         * config/rs6000/altivec.h (vec_extract_exp): New macro.
8972         (vec_extract_sig): New macro.
8973         (vec_insert_exp): New macro.
8974         (vec_test_data_class): New macro.
8975         (scalar_extract_exp): New macro.
8976         (scalar_extract_sig): New macro.
8977         (scalar_insert_exp): New macro.
8978         (scalar_test_data_class): New macro.
8979         (scalar_test_neg): New macro.
8980         (scalar_cmp_exp_gt): New macro.
8981         (scalar_cmp_exp_lt): New macro.
8982         (scalar_cmp_exp_eq): New macro.
8983         (scalar_cmp_exp_unordered): New macro.
8984         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
8985         to enforce constraint that operand is a 7-bit unsigned literal.
8986         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
8987         for power9 built-ins.
8988         (BU_P9V_VSX_2): Likewise.
8989         (BU_P9V_64BIT_VSX_2): Likewise.
8990         (VSEEDP): Add scalar extract exponent support.
8991         (VSEESP): Add scalar extract signature support.
8992         (VSTDCNDP): Add scalar test negative support.
8993         (VSTDCNSP): Likewise.
8994         (VSIEDP): Add scalar insert exponent support.
8995         (VSCEDPGT): Add scalar compare exponent greater than support.
8996         (VSCEDPLT): Add scalar compare exponent less than support.
8997         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
8998         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
8999         (VSTDCDP): Add scalar test data class support.
9000         (VSTDCSP): Likewise.
9001         (VSEEDP): Add overload support for scalar extract exponent
9002         operation.
9003         (VSESDP): Add overload support for scalar extract signature
9004         operation.
9005         (VSTDCN): Add overload support for scalar test negative
9006         operation.
9007         (VSTDCNDP): Add overload support for scalar test negative
9008         operation.
9009         (VSTDCNSP): Add overload support for scalar test negative
9010         operation.
9011         (VSIEDP): Add overload support for scalar insert exponent
9012         operation.
9013         (VSTDC): Add overload support for scalar test data class
9014         operation.
9015         (VSTDCDP): Add overload support for scalar test data class
9016         operation.
9017         (VSTDCSP): Add overload support for scalar test data class
9018         opreation.
9019         (VSCEDPGT): Add overload support for scalar compare exponent
9020         greater than operation.
9021         (VSCEDPLT): Add overload support for scalar compare exponent
9022         less than operation.
9023         (VSCEDPEQ): Add overload support for scalar compare exponent
9024         test-for-equality operation.
9025         (VSCEDPUO): Add overload support for scalar compare exponent
9026         test-for-unordered operation.
9027         (VEEDP): Add vector extract exponent support.
9028         (VEESP): Likewise.
9029         (VESDP): Add vector extract significand support.
9030         (VESSP): Likewise.
9031         (VIEDP): Add vector insert exponent support.
9032         (VIESP): Likewise.
9033         (VTDCDP): Add vector test data class support.
9034         (VTDCSP): Likewise.
9035         (VES): Add overload support for vector extract significand operation.
9036         (VESDP): Likewise.
9037         (VESSP): Likewise
9038         (VEE): Add overload support for vector extract exponent operation.
9039         (VEEDP): Likewise.
9040         (VEESP): Likewise.
9041         (VTDC): Add overload support for vector test data class operation.
9042         (VTDCDP): Likewise.
9043         (VTDCSP): Likewise.
9044         (VIE): Add overload support for vector insert exponent operation.
9045         (VIEDP): Likewise.
9046         (VIESP): Likewise.
9047         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9048         overloaded binary floating point functions.
9049         (altivec_resolve_overloaded_builtin): Improve error messages to
9050         distinguish between functions not supported in the current
9051         compiler configuration and functions that were invoked with an
9052         invalid parameter combination, and include the built-in function
9053         name in both error messages.
9054         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
9055         New prototype.
9056         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
9057         function.
9058         (rs6000_expand_binop_builtin): Add check to enforce that argument
9059         2 of the test data class operations is a 7-bit unsigned literal.
9060         (rs6000_invalid_builtin): Add code to issue an error message if a
9061         built-in function that requires the power9_vector and -m32
9062         command-line options is compiled without these options.
9063         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
9064         (UNSPEC_VSX_SXSIGDP): New value.
9065         (UNSPEC_VSX_SXSIGPDP): New value.
9066         (UNSPEC_VSX_SIEXPDP): New value.
9067         (UNSPEC_VSX_SCMPEXPDP): New value.
9068         (UNSPEC_VSX_STSTDC): New value.
9069         (UNSPEC_VSX_VXEXP): New value.
9070         (UNSPEC_VSX_VXSIG): New value.
9071         (UNSPEC_VSX_VIEXP): New value.
9072         (UNSPEC_VSX_VTSTDC): New value.
9073         (xsxexpdp): New insn for scalar extract exponent.
9074         (xsxsigdp): New insn for scalar extract significand.
9075         (xsiexpdp): New insn for scalar insert exponent.
9076         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
9077         (*xscmpexpdp): New insn for scalar compare exponents.
9078         (xststdc<Fvsx): New expansion for both single- and
9079         double-precision scalar test data class operations.
9080         (xststdcneg<Fvsx>): New expansion for both single- and
9081         double-precision scalar test for negative value operations.
9082         (*xststdc<Fvsx>): New insn for scalar test data class
9083         operation.
9084         (xvxexp<VSs>): New insn for single- and double-precision
9085         vector extract exponent operation.
9086         (xvxsig<VSs>): New insn for single- and double-precision
9087         vector extract significand operation.
9088         (xviexp<VSs>): New insn for single- and double-precision
9089         vector insert exponent operation.
9090         (xvtstdc<VSs>): New insn for single- and double-precision
9091         vector test data class operation.
9092         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9093         built-in functions to represent the Power9 binary floating-point
9094         support instructions.
9096 2016-08-10  bin cheng  <bin.cheng@arm.com>
9098         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
9100 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
9101             Renlin Li  <renlin.li@arm.com>
9102             Bin Cheng  <bin.cheng@arm.com>
9104         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
9105         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
9106         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
9107         (aarch64_vcond_internal<mode><mode>): Delete pattern.
9108         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
9109         (vcond<v_cmp_result><mode>): Ditto.
9110         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
9111         (vcondu<mode><mode>): Ditto.
9112         (vcond<v_cmp_mixed><mode>): New pattern.
9113         (vcondu<mode><v_cmp_mixed>): New pattern.
9114         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
9115         of aarch64_vcond_internal.
9117 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
9118             Renlin Li  <renlin.li@arm.com>
9119             Bin Cheng  <bin.cheng@arm.com>
9121         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
9122         (vec_cmp<mode><v_cmp_result>): New pattern.
9123         (vec_cmpu<mode><mode>): New pattern.
9124         (vcond_mask_<mode><v_cmp_result>): New pattern.
9126 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
9128         PR tree-optimization/71734
9129         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
9130         REF_LOOP, invoke ref_indep_loop_p_1.
9131         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
9132         to ref_indep_loop_p.
9133         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
9134         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
9135         is inside LOOP, do not cache dpendence value for loops with
9136         non-zero SAFELEN.
9137         (ref_indep_loop_p_2): Delete function.
9138         (can_sm_ref_p): Pass LOOP as additional argument to
9139         ref_indep_loop_p.
9141 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
9143         PR target/72853
9144         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
9145         being an offsettable address.
9147 2016-08-10  Martin Liska  <mliska@suse.cz>
9149         PR gcov-profile/58306
9150         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
9151         atomic variants of profile update functions.
9153 2016-08-10  Martin Liska  <mliska@suse.cz>
9155         Cherry picked (and modified) from google-4_7 branch
9156         2012-12-26  Rong Xu  <xur@google.com>
9157         * common.opt (fprofile-update): Add new flag.
9158         * coretypes.h: Define enum profile_update.
9159         * doc/invoke.texi: Document -fprofile-update.
9160         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
9161         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
9162         * tree-profile.c (gimple_init_edge_profiler): Generate
9163         also atomic profiler update.
9164         (gimple_gen_edge_profiler): Likewise.
9166 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
9168         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
9169         stack_usage_file to NULL after fclose calls.
9171 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9173         PR target/71873
9174         * reload.c (push_reload): Compute subreg_in_class for
9175         subregs of constants and plus expressions. Remove special
9176         handling of SYMBOL_REFs.
9178 2016-08-10  Alan Modra  <amodra@gmail.com>
9180         PR target/71680
9181         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
9182         SImode for TARGET_E500_DOUBLE when given SImode.
9184 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
9186         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
9187         unused variable __O.
9189 2016-08-09  Martin Liska  <mliska@suse.cz>
9191         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
9192         _gcov_reset to __gcov_reset.
9193         * doc/gcov-tool.texi: Fix typo.
9195 2016-08-09  Martin Liska  <mliska@suse.cz>
9197         * value-prof.c (gimple_divmod_values_to_profile): Do not
9198         instrument MOD histogram if a value is not a SSA name.
9200 2016-08-09  Martin Liska  <mliska@suse.cz>
9202         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
9203         values.
9205 2016-08-09  Renlin Li  <renlin.li@arm.com>
9207         PR middle-end/64971
9208         * calls.c (prepare_call_address): Convert funexp to Pmode when
9209         necessary.
9210         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
9211         (sibcall_value): Likewise.
9213 2016-08-09  Marek Polacek  <polacek@redhat.com>
9215         PR c/7652
9216         * cselib.c (cselib_expand_value_rtx_1): Add return.
9217         * gengtype.c (dbgprint_count_type_at): Likewise.
9218         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
9219         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
9221 2016-08-09  Martin Jambor  <mjambor@suse.cz>
9223         PR ipa/71981
9224         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
9225         if instance is a MEM_REF.
9227 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
9229         PR target/72843
9230         * config/i386/i386.md (*movtf_internal): Use
9231         lra_in_progress || reload_completed instead of !can_create_pseudo_p
9232         in the insn constraint.
9233         (*movxf_internal): Ditto.
9234         (*movdf_internal): Ditto.
9235         (*movsf_internal): Ditto.
9237 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
9239         PR tree-optimization/72772
9240         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9241         for expanded base.
9243 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
9245         PR tree-optimization/72772
9246         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
9247         parameter STOP.
9248         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
9249         parameter STOP and update calls.  Move expand_simple_operations
9250         function call from here...
9251         (simplify_using_initial_conditions): ...to here.  Delete parameter
9252         STOP.
9253         (tree_simplify_using_condition): Delete parameter STOP.
9254         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
9255         simplify_using_initial_conditions.
9257 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
9259         PR c/65345
9260         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
9261         Use create_tmp_var_raw instead of create_tmp_var.
9263 2016-08-09  Richard Biener  <rguenther@suse.de>
9265         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
9266         Treat same SSA names related.
9268 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
9270         PR tree-optimization/72824
9271         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
9272         real_zerop is not negative.
9274 2016-08-09  Richard Biener  <rguenther@suse.de>
9276         PR tree-optimization/71802
9277         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
9278         all merge opportunities with the predecessor.
9280 2016-08-09  Richard Biener  <rguenther@suse.de>
9282         PR ipa/68273
9283         * ipa-prop.c (ipa_modify_formal_parameters): Build
9284         parameter types with natural alignment also for the
9285         over-aligned case.
9287 2016-08-08  Andi Kleen  <ak@linux.intel.com>
9289         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
9291 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
9293         PR c/64955
9294         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
9295         do-nothing langhook.
9296         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
9297         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
9298         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
9299         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
9301 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
9303         PR bootstrap/72844
9304         * input.c: Ensure that HAVE_ICONV is defined.
9306 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
9308         PR middle-end/72781
9309         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
9310         private vars for lastprivate and for linear iterator.
9312         PR middle-end/68762
9313         * omp-simd-clone.c: Include varasm.h.
9314         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
9315         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
9316         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
9317         update function name.
9319 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9321         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
9322         (avr_diagnose_devicespecs_error): Remove.
9323         (avr_devicespecs_file): Remove composing absolute path for specfile
9324         and its verbose info. Remove conditions to check specs-file,
9326 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
9328         PR rtl-optimization/72821
9329         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
9330         just return false for them.
9332 2016-08-08  Alan Modra  <amodra@gmail.com>
9334         PR target/72771
9335         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
9336         toc refs created during reload.  Update function comment.
9338 2016-08-08  Alan Modra  <amodra@gmail.com>
9340         PR target/72802
9341         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
9342         alternatives.  Put loads first, then stores, and reg/reg moves
9343         within same class later.  Delete attr length.
9345 2016-08-08  Alan Modra  <amodra@gmail.com>
9347         PR target/72802
9348         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
9349         (mem_operand_ds_form): New predicate.
9350         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
9351         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
9352         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
9353         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
9354         (extendsfdf2_fpr): Replace o constraint with wY.
9356 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
9358         * tree-ssa-threadbackward.c: Include tree-inline.h
9359         (profitable_jump_thread_path): Use estimate_num_insns to estimate
9360         size of copied block; for cold paths reduce duplication.
9361         (find_jump_threads_backwards): Remove redundant tests.
9362         (pass_thread_jumps::gate): Enable for -Os.
9364 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
9366         PR c/72816
9367         * stor-layout.c (layout_decl): Fix up formatting.
9368         (relayout_decl): Allow DECL to be FIELD_DECL.
9370 2016-08-07  Alan Modra  <amodra@gmail.com>
9372         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
9374 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9376         * data-streamer-in.c (streamer_read_wide_int): New.
9377         (streamer_read_widest_int): Renamed function.
9378         * data-streamer-out.c (streamer_write_wide_int): New
9379         (streamer_write_widest_int): Renamed function.
9380         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
9381         data-stream-in.c.
9382         (input_cfg): Call renamed function.
9383         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
9384         data-stream-out.c.
9385         (output_cfg): Call renamed function.
9386         * data-streamer.h: Add declarations.
9388 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9390         * tree-ssa-ccp.c (extend_mask): New param sgn.
9391         Remove ORing with wi::mask.
9392         (get_default_value): Adjust call to extend_mask to pass sign.
9393         (evaluate_stmt): Likewise.
9395 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
9397         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
9398         INT64_MAX.
9400 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9402         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
9403         transform if operand's type is pointer to function or method.
9405 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
9407         PR tree-optimization/18046
9408         * tree-ssa-threadedge.c: Include cfganal.h.
9409         (simplify_control_statement_condition): If simplifying a
9410         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
9411         with the dominating ASSERT_EXPR before handing it off to VRP.
9412         Mention that a CASE_LABEL_EXPR may be returned.
9413         (thread_around_empty_blocks): Adjust to handle
9414         simplify_control_statement_condition() returning a
9415         CASE_LABEL_EXPR.
9416         (thread_through_normal_block): Likewise.
9417         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
9418         a switch statement by trying to determine which case label
9419         will be taken.
9421 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
9423         PR rtl-optimization/69847
9424         * lra-constraints.c (process_invariant_for_inheritance): Save
9425         pattern instead of src.
9426         (remove_inheritance_pseudos): Use the pattern.  Add assert.
9428 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
9430         * input.c (string_concat::string_concat): New constructor.
9431         (string_concat_db::string_concat_db): New constructor.
9432         (string_concat_db::record_string_concatenation): New method.
9433         (string_concat_db::get_string_concatenation): New method.
9434         (string_concat_db::get_key_loc): New method.
9435         (class auto_cpp_string_vec): New class.
9436         (get_substring_ranges_for_loc): New function.
9437         (get_source_range_for_substring): New function.
9438         (get_num_source_ranges_for_substring): New function.
9439         (class selftest::lexer_test_options): New class.
9440         (struct selftest::lexer_test): New struct.
9441         (class selftest::ebcdic_execution_charset): New class.
9442         (selftest::ebcdic_execution_charset::s_singleton): New variable.
9443         (selftest::lexer_test::lexer_test): New constructor.
9444         (selftest::lexer_test::~lexer_test): New destructor.
9445         (selftest::lexer_test::get_token): New method.
9446         (selftest::assert_char_at_range): New function.
9447         (ASSERT_CHAR_AT_RANGE): New macro.
9448         (selftest::assert_num_substring_ranges): New function.
9449         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
9450         (selftest::assert_has_no_substring_ranges): New function.
9451         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
9452         (selftest::test_lexer_string_locations_simple): New function.
9453         (selftest::test_lexer_string_locations_ebcdic): New function.
9454         (selftest::test_lexer_string_locations_hex): New function.
9455         (selftest::test_lexer_string_locations_oct): New function.
9456         (selftest::test_lexer_string_locations_letter_escape_1): New function.
9457         (selftest::test_lexer_string_locations_letter_escape_2): New function.
9458         (selftest::test_lexer_string_locations_ucn4): New function.
9459         (selftest::test_lexer_string_locations_ucn8): New function.
9460         (selftest::uint32_from_big_endian): New function.
9461         (selftest::test_lexer_string_locations_wide_string): New function.
9462         (selftest::uint16_from_big_endian): New function.
9463         (selftest::test_lexer_string_locations_string16): New function.
9464         (selftest::test_lexer_string_locations_string32): New function.
9465         (selftest::test_lexer_string_locations_u8): New function.
9466         (selftest::test_lexer_string_locations_utf8_source): New function.
9467         (selftest::test_lexer_string_locations_concatenation_1): New
9468         function.
9469         (selftest::test_lexer_string_locations_concatenation_2): New
9470         function.
9471         (selftest::test_lexer_string_locations_concatenation_3): New
9472         function.
9473         (selftest::test_lexer_string_locations_macro): New function.
9474         (selftest::test_lexer_string_locations_stringified_macro_argument):
9475         New function.
9476         (selftest::test_lexer_string_locations_non_string): New function.
9477         (selftest::test_lexer_string_locations_long_line): New function.
9478         (selftest::test_lexer_char_constants): New function.
9479         (selftest::input_c_tests): Call the new test functions once per
9480         case within the line_table test matrix.
9481         * input.h (struct string_concat): New struct.
9482         (struct location_hash): New struct.
9483         (class string_concat_db): New class.
9484         * substring-locations.h: New header.
9486 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
9488         PR tree-optimization/72810
9489         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
9490         the type of the case labels when truncating.
9492 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
9494         PR Target/72819
9495         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
9496         (aarch64_fp16_ptr_type_node): Likewise.
9497         * config/aarch64/aarch64-simd-builtins.c
9498         (aarch64_fp16_ptr_type_node): Define.
9499         (aarch64_init_fp16_types): New, refactored out of...
9500         (aarch64_init_builtins): ...here, update to call
9501         aarch64_init_fp16_types.
9502         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
9503         HFmode.
9504         (aapcs_vfp_sub_candidate): Likewise.
9506 2016-08-05  Martin Liska  <mliska@suse.cz>
9507             Joshua Cranmer  <Pidgeot18@gmail.com>
9509         * gcov.c (line_t::has_block): New function.
9510         (enum loop_type): New enum.
9511         (handle_cycle): New function.
9512         (unblock): Likewise.
9513         (circuit): Likewise.
9514         (get_cycles_count): Likewise.
9515         (accumulate_line_counts): Use new loop detection algorithm.
9517 2016-08-05  Martin Liska  <mliska@suse.cz>
9519         * gcov.c (output_intermediate_file): Rename
9520         function_info::line_next to next_file_fn.
9521         (process_file): Likewise.
9522         (read_graph_file): Likewise.
9523         (accumulate_line_counts): Likewise.
9524         (output_lines): Likewise.
9526 2016-08-05  Richard Biener  <rguenther@suse.de>
9528         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
9529         restriction on threading to a loop header.
9531 2016-08-05  Richard Biener  <rguenther@suse.de>
9533         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
9534         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
9535         adjust loop info accordingly.
9537 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9539         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
9540         before folding call to __builtin_constant_p with parameters to false.
9542 2016-08-05  Alan Modra  <amodra@gmail.com>
9544         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
9545         code accidentally committed 2016-05-02 providing class when given
9546         NO_REGS.
9548 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
9550         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
9551         the case label ranges that partially overlap with OP's value
9552         range.
9554 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
9556         PR target/72805
9557         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
9558         Cast builtin function result to __mmask16 instead of __mmask8.
9559         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9560         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
9561         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
9563 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
9565         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
9566         (ASSERT_TRUE_AT): New macro.
9567         (ASSERT_FALSE): Reimplement in terms of...
9568         (ASSERT_FALSE_AT): New macro.
9569         (ASSERT_STREQ_AT): Fix typo in comment.
9571 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
9573         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
9574         labels are exhaustive, designate the label with the widest
9575         range to be the default label.
9577 2016-08-04  Andrew Pinski  <apinski@cavium.com>
9579         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
9580         (thunderx_tunings): Use thunderx_vector_cost instead of
9581         generic_vector_cost.
9583 2016-08-04  Martin Liska  <mliska@suse.cz>
9585         * gcov.c (main): Fix GNU coding style.
9586         (output_intermediate_file): Likewise.
9587         (process_file): Likewise.
9588         (generate_results): Likewise.
9589         (release_structures): Likewise.
9590         (create_file_names): Likewise.
9591         (find_source): Likewise.
9592         (read_graph_file): Likewise.
9593         (find_exception_blocks): Likewise.
9594         (canonicalize_name): Likewise.
9595         (make_gcov_file_name): Likewise.
9596         (mangle_name): Likewise.
9597         (accumulate_line_counts): Likewise.
9598         (output_branch_count): Likewise.
9599         (read_line): Likewise.
9601 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9603         PR rtl-optimization/71779
9604         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
9605         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
9606         or if it was truncated.
9608         PR rtl-optimization/70903
9609         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
9611 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
9613         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
9614         accessing SSA_NAME_PTR_INFO.
9616 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
9618         PR 70677
9619         * common/config/avr/avr-common.c (avr_option_optimization_table)
9620         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
9622 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
9624         PR 55181
9625         * config/avr/avr.md: New pattern to work around do_store_flag
9626         generating shift instructions for bit extractions.
9628 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
9630         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
9631         BITMAP_ALLOC.
9632         (add_equivalence): Likewise.
9633         (get_value_range): Allocate value range with vrp_value_range_pool.
9634         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
9635         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
9637 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9639         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
9640         the default for the rs6000 port.
9642 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9644         PR middle-end/71876
9645         * calls.c (special_function_p): Remove special handling of
9646         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
9647         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
9648         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
9650 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
9652         PR middle-end/72778
9653         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
9654         Don't stop on regular insns.
9656 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
9658         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
9659         size to DImode boundary.
9660         (nvptx_propagate): Likewise.
9662 2016-08-03  Alan Modra  <amodra@gmail.com>
9664         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
9665         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
9666         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
9667         from -mefficient-unaligned-vector.  Note that this affects fp too.
9669 2016-08-03  Alan Modra  <amodra@gmail.com>
9671         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
9672         cost more.
9674 2016-08-03  Alan Modra  <amodra@gmail.com>
9676         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
9677         to a reg.  Localize vars.
9679 2016-08-03  Alan Modra  <amodra@gmail.com>
9681         * config/rs6000/rs6000.opt: Remove negatives from help strings
9682         and comments.
9684 2016-08-03  Alan Modra  <amodra@gmail.com>
9686         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
9687         Delete duplicated code.
9689 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
9691         PR middle-end/72778
9692         * lra-spills.c (regno_in_use_p): New.
9693         (lra_final_code_change): Use it.
9695 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
9697         PR rtl-optimization/69847
9698         * lra-int.h (struct lra-reg): Use restore_rtx instead of
9699         restore_regno.
9700         (lra_rtx_hash): New.
9701         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
9702         of restore_regno.
9703         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
9704         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
9705         * lra-spills.c (lra_final_code_change): Don't delete insn when the
9706         next insn is USE with the same reg as the current insn source.
9707         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
9708         of restore_regno.
9709         (lra_constraints_init): Call initiate_invariants.
9710         (lra_constraints_finish): Call finish_invariants.
9711         (struct invariant, invariant_t, invariant_ptr_t): New.
9712         (const_invariant_ptr_t, invariants, invariants_pool): New.
9713         (invariant_table, invariant_hash, invariant_eq_p): New.
9714         (insert_invariant, initiate_invariants, finish_invariants): New.
9715         (clear_invariants, invalid_invariant_regs): New.
9716         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
9717         instead of restore_regno.
9718         (invariant_p, process_invariant_for_inheritance): New.
9719         (inherit_in_ebb): Implement invariant inheritance.
9720         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
9721         (remove_inheritance_pseudos): Implement undoing invariant
9722         inheritance.
9723         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
9724         instead of restore_regno.
9725         * lra-assigns.c (regno_live_length): New.
9726         (reload_pseudo_compare_func): Use regno_live_length.
9727         (assign_by_spills): Use restore_rtx instead of restore_regno.
9728         (lra_assign): Ditto.  Initiate regno_live_length.
9730 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
9732         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
9733         __builtin_aarch64_fmindf.
9735 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
9737         PR tree-optimization/34114
9738         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
9739         information for more control IVs.
9741 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
9743         PR tree-optimization/34114
9744         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
9745         PLUS_EXPR case.  Handle SSA_NAME case.
9747 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
9749         * config/aarch64/aarch64-simd-builtins.def
9750         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
9751         (__builtin_aarch64_fmaxdf): Likewise.
9752         (__builtin_aarch64_smin_nandf): Likewise.
9753         (__builtin_aarch64_smax_nandf): Likewise.
9754         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
9755         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
9756         (<fmaxmin><mode>3): ...this.
9757         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
9758         (vminnm_f64): Likewise.
9759         (vmin_f64): Likewise.
9760         (vmax_f64): Likewise.
9761         * config/aarch64/iterators.md (FMAXMIN): Merge with...
9762         (FMAXMIN_UNS): ...this.
9763         (fmaxmin): Merged with
9764         (fmaxmin_op): ...this...
9765         (maxmin_uns_op): ...in to this.
9767 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9769         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9770         Add support for vec_extract on vector float, vector int, vector
9771         short, and vector char vector types.
9772         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9773         vector float, vector int, vector short, and vector char
9774         optimizations on 64-bit ISA 2.07 systems for both constant and
9775         variable element numbers.
9776         (rs6000_split_vec_extract_var): Likewise.
9777         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
9778         Altivec registers on ISA 2.07 and above.
9779         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
9780         which never was matched due to the split occuring before register
9781         allocation (and the code would not have worked on little endian
9782         systems if it did match).  Allow extracts to go to the Altivec
9783         registers if ISA 2.07 (power8).  Change from using "" around the
9784         C++ code to using {}'s.
9785         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
9786         vec_extracts when the vector is in memory.
9787         (vsx_extract_v4sf_var): New insn to optimize vector float
9788         vec_extracts when the element number is variable on 64-bit ISA
9789         2.07 systems.
9790         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
9791         for 64-bit ISA 2.07 as well as ISA 3.0.
9792         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
9793         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
9794         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
9795         optimize vector int, vector short, and vector char vec_extracts
9796         when the vector is in memory.
9797         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
9798         optimize vector int, vector short, and vector char vec_extracts
9799         when the element number is variable.
9801 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
9803         PR target/71948
9804         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
9805         does not overlap with other symbol flags.
9807 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
9809         * config/aarch64/aarch64.h (aarch64_frame):
9810         Remove padding0 and hardfp_offset.  Add locals_offset,
9811         initial_adjust, callee_adjust, callee_offset and final_adjust.
9812         * config/aarch64/aarch64.c (aarch64_layout_frame):
9813         Remove unused padding0 and hardfp_offset initializations.
9814         Choose frame layout and set frame variables accordingly.
9815         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
9816         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
9817         (aarch64_pop_regs): Likewise.
9818         (aarch64_expand_prologue): Remove all decision code, just emit
9819         prolog according to frame variables.
9820         (aarch64_expand_epilogue): Remove all decision code, just emit
9821         epilog according to frame variables.
9822         (aarch64_initial_elimination_offset): Use offset to local/arg area.
9824 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9826         PR target/72748
9827         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
9828         fix_debug_reg_uses after changing source register mode to
9829         V1TImode if source register is undefined.
9831 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
9833         PR tree-optimization/71818
9834         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
9835         with non invariant evolutions
9837 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
9839         PR target/72767
9840         * config/avr/avr.md (length) [branch]: Correct insn length
9841         attribute for forward branches.
9843 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
9845         * doc/extend.texi (AVR Built-in Functions): Document
9846         __builtin_avr_nops.
9847         * config/avr/builtins.def (NOPS): New.
9848         * config/avr/avr.c (avr_expand_nops): New static function.
9849         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
9851 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9853         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
9854         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
9855         addresses.
9857 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
9859         * config/aarch64/aarch64.c (vulcan_tunings): Update
9860         vulcan L1 cache_line_size.
9862 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9864         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
9865         function that takes a vector memory address, a hard register, an
9866         element number and a temporary base register, and recreates an
9867         address that points to the appropriate element within the vector.
9868         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
9869         (rs6000_split_vec_extract_var): Add support for the target of a
9870         vec_extract with variable element number being a scalar memory
9871         location.
9872         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
9873         swappable.
9874         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
9875         vsx_extract_<mode>_load insn with a new insn that optimizes
9876         storing either element to a memory location, using scratch
9877         registers to pick apart the vector and reconstruct the address.
9878         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
9879         (vsx_extract_<mode>_store): Rework alternatives to more correctly
9880         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
9881         store instruction.
9882         (vsx_extract_<mode>_var): Add support for extracting a variable
9883         element number from memory.
9885 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
9887         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
9888         when testing for compares against constants of the form 0xabab.
9890 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
9892         PR tree-optimization/57558
9893         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
9894         function.
9895         (vect_loop_versioning): Support versioning with niter assumptions.
9896         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
9897         (vect_get_loop_niters): New parameter.  Reimplement to support
9898         assumptions in loop niter info.
9899         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
9900         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
9901         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
9902         Support loop versioning for niters.
9903         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
9904         (vect_free_loop_info_assumptions): New function.
9905         (vectorize_loops): Free loop niter info for loops with flag
9906         LOOP_F_ASSUMPTIONS set if vectorization failed.
9907         * tree-vectorizer.h (struct _loop_vec_info): New field
9908         num_iters_assumptions.
9909         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
9910         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
9911         (LOOP_REQUIRES_VERSIONING): New macro.
9912         (vect_free_loop_info_assumptions): New decl.
9914 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
9916         * cfgloop.h (struct loop): New field constraints.
9917         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
9918         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
9919         functions.
9920         * cfgloop.c (alloc_loop): Initialize new field.
9921         * cfgloopmanip.c (copy_loop_info): Copy constraints.
9922         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9923         Adjust niter analysis wrto loop constraints.
9924         * doc/loop.texi (@node Number of iterations): Add description for loop
9925         constraints.
9927 2016-07-29  Marek Polacek  <polacek@redhat.com>
9929         PR c/7652
9930         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
9931         (ix86_expand_round_builtin): Likewise.
9933 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
9934             Georg-Johann Lay  <avr@gjlay.de>
9936         PR rtl-optimization/71976
9937         * combine.c (get_last_value): Return 0 if the argument for which
9938         the function is called has a wider mode than the recorded value.
9940 2016-07-29  Marek Polacek  <polacek@redhat.com>
9942         PR c/7652
9943         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
9944         (altivec_expand_st_builtin): Likewise.
9946 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
9948         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
9949         introduced in r238381.
9951 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
9953         PR middle-end/68217
9954         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
9955         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
9957 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
9959         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
9960         New declaration.
9961         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9962         Add support for vec_extract of vector double or vector long having
9963         a variable element number on 64-bit ISA 2.07 systems or newer.
9964         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9965         Likewise.
9966         (rs6000_split_vec_extract_var): New function to split a
9967         vec_extract built-in function with variable element number.
9968         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
9969         swappable.
9970         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
9971         (UNSPEC_VSX_EXTRACT): Likewise.
9972         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
9973         direct move instructions to be generated on 64-bit ISA 2.07
9974         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
9975         instruction.
9976         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
9977         arguments for vec_extract variable element.
9978         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
9979         vec_extract with variable element on V2DFmode and V2DImode
9980         vectors.
9981         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
9982         -mupper-regs-df requirement, since it isn't needed.
9983         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
9984         do direct moves on 64-bit systems, which allows optimization of
9985         vec_extract on 64-bit ISA 2.07 systems and newer.
9987 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
9988 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
9990          * config/aarch64/aarch64.md
9991         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
9992         statement and type.
9993         (<optab>qihi2_aarch64): Likewise, and split into two.
9994         (extendqihi2_aarch64): New.
9995         (zero_extendqihi2_aarch64): New.
9996         * config/aarch64/iterators.md (ldrxt): Remove.
9997         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
9998         uxtb/uxth.
10000 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
10002         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
10004 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
10006         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
10007         (aarch64_push_reg): New function to push 1 or 2 registers.
10008         (aarch64_pop_reg): New function to pop 1 or 2 registers.
10009         (aarch64_expand_prologue): Use aarch64_push_regs.
10010         (aarch64_expand_epilogue): Use aarch64_pop_regs.
10012 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
10014         PR tree-optimization/71734
10015         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
10016         attribute instead of REF_LOOP and use it.
10017         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
10018         set it for Loops having non-zero safelen attribute.
10019         (ref_indep_loop_p): Pass zero as initial value for safelen.
10021 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
10023         PR middle-end/72657
10024         PR target/72683
10025         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
10026         call using chkp_gimple_call_builtin_p.
10027         (chkp_copy_bounds_for_assign): Likewise.
10029 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10031         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
10032         * config/arm/arm-protos.h (struct tune_params): Likewise.
10033         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
10034         (cortex_a9_sched_adjust_cost): Likewise.
10035         (fa726te_sched_adjust_cost): Likewise.
10036         (arm_adjust_cost): Likewise.
10037         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
10038         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
10039         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
10040         * config/i386/i386.c (ix86_adjust_cost): Likewise.
10041         * config/ia64/ia64.c: Likewise.
10042         * config/m68k/m68k.c: Likewise.
10043         * config/mep/mep.c (mep_adjust_cost): Likewise.
10044         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10045         * Likewise.
10046         * config/mips/mips.c (mips_adjust_cost): Likewise.
10047         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
10048         * Likewise.
10049         * config/pa/pa.c (pa_adjust_cost): Likewise.
10050         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
10051         (rs6000_debug_adjust_cost): Likewise.
10052         * config/sh/sh.c (sh_adjust_cost): Likewise.
10053         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
10054         (hypersparc_adjust_cost): Likewise.
10055         (sparc_adjust_cost): Likewise.
10056         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
10057         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
10058         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
10059         * Likewise.
10060         * config/visium/visium.c (visium_adjust_cost): Likewise.
10061         * doc/tm.texi: Regenerate.
10062         * haifa-sched.c (dep_cost_1): Adjust.
10063         * target.def: Merge adjust_cost and adjust_cost_2.
10065 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10067         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
10069 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10071         * store-motion.c (struct st_expr): Make pattern_regs a vector.
10072         (extract_mentioned_regs): Append to a vector instead of
10073         returning a rtx_expr_list.
10074         (st_expr_entry): Adjust.
10075         (free_st_expr_entry): Likewise.
10076         (store_ops_ok): Likewise.
10077         (store_killed_in_insn): Likewise.
10078         (find_moveable_store): Likewise.
10080 2016-07-28  Martin Liska  <mliska@suse.cz>
10082         PR gcov-profile/68025
10083         * tree-profile.c (tree_profiling): Respect
10084         no_profile_instrument_function attribute.
10085         * doc/extend.texi: Document no_profile_instrument_function
10086         attribute.
10088 2016-07-28  Martin Liska  <mliska@suse.cz>
10090         PR rtl-optimization/70944
10091         * combine.c (make_compound_operation):
10092         Do not allow make_compound_operation for vector mode
10094 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
10096         PR middle-end/71994
10097         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
10098          before calling get_ops.
10100 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10102         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
10103         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
10104         (BITS_PER_UNIT_LOG): Remove.
10105         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
10106         * expr.c (expand_assignment): Likewise.
10107         * stor-layout.c (initialize_sizetypes): Likewise.
10109 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
10111         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
10112         signature of rs6000_expand_vector_extract so that the element
10113         number is a RTX instead of a constant integer.
10114         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
10115         Likewise.
10116         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
10117         (altivec_expand_vec_ext_builtin): Likewise.
10118         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
10119         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
10120         MFVSRLD instruction.
10122 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
10124         * input.c (get_pure_location): Move here from tree.c.
10125         (make_location): Likewise.  Add header comment.
10126         (selftest::test_accessing_ordinary_linemaps): Verify
10127         pure_location_p, make_location, get_location_from_adhoc_loc and
10128         get_range_from_loc.
10129         * input.h (get_pure_location): Move declaration here from tree.h.
10130         (get_finish): Likewise for inline function.
10131         (make_location): Likewise for declaration.
10132         * tree.c (get_pure_location): Move to input.c.
10133         (make_location): Likewise.
10134         * tree.h (get_pure_location): Move declaration to tree.h.
10135         (get_finish): Likewise for inline function.
10136         (make_location): Likewise for declaration.
10138 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10140         PR middle-end/71078
10141         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
10143 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
10145         * system.h (STATIC_ASSERT): Use static_assert if building
10146         with C++11 onwards.
10148 2016-07-27  Richard Biener  <rguenther@suse.de>
10150         PR tree-optimization/72517
10151         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10152         Revert change to not compute read-read dependences.
10154 2016-07-27  Richard Biener  <rguenther@suse.de>
10156         * predict.c (set_even_probabilities): Make nedges unsigned.
10158 2016-07-27  Martin Liska  <mliska@suse.cz>
10160         * predict.c (set_even_probabilities): Handle unlikely edges.
10161         (combine_predictions_for_bb): Likewise.
10163 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10165         PR target/71869
10166         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
10167         __float128 support when we don't have hardware support, so that
10168         the IEEE built-in functions like isgreater, first call __unordkf3
10169         to make sure neither operand is a NaN, and if both operands are
10170         ordered, do the normal comparison.
10172 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
10174         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
10175         name.
10176         (extract_code_and_val_from_cond_with_ops): Verify that name is
10177         either cond_op0 or cond_op1.
10179 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
10181         PR tree-optimization/18046
10182         * genmodes.c (emit_mode_size_inline): Emit an assert that
10183         verifies that mode is a valid array index.
10184         (emit_mode_nuinits_inline): Likewise.
10185         (emit_mode_inner_inline): Likewise.
10186         (emit_mode_unit_size_inline): Likewise.
10187         (emit_mode_unit_precision_inline): Likewise.
10188         * tree-vrp.c: Include params.h.
10189         (find_switch_asserts): Register edge assertions for the default
10190         label which correspond to the anti-ranges of each case label.
10191         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
10192         * doc/invoke.texi: Document it.
10194 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10196         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
10197         and unnecessary call to gimple_bb.
10199 2016-07-26  Richard Biener  <rguenther@suse.de>
10201         PR rtl-optimization/71984
10202         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
10203         for VOIDmode.
10205 2016-07-26  Richard Biener  <rguenther@suse.de>
10207         PR middle-end/72517
10208         * expmed.c (extract_bit_field_1): Constrain the vector mode
10209         with element size matching the extraction mode size when
10210         choosing a better vector mode to do the extraction from.
10212 2016-07-26  Richard Biener  <rguenther@suse.de>
10213             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10215         PR middle-end/70920
10216         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
10217         pattern.
10219 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10221         * tree-ssa-structalias.c (struct scc_info): Change types of
10222         members to auto_sbitmap and auto_vec.
10223         (scc_info::scc_info): New constructor.
10224         (scc_info::~scc_info): New destructor.
10225         (init_scc_info): Remove.
10226         (free_scc_info): Remove.
10227         (find_indirect_cycles): Adjust.
10228         (perform_var_substitution): Likewise.
10229         (free_var_substitution_info): Likewise.
10231 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10233         * tree-outof-ssa.c (struct elim_graph): Change type of members
10234         to auto_vec and auto_sbitmap.
10235         (elim_graph::elim_graph): New constructor.
10236         (delete_elim_graph): Remove.
10237         (expand_phi_nodes): Adjust.
10239 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10241         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
10242         (new_elim_graph): Adjust.
10243         (clear_elim_graph): Likewise.
10244         (delete_elim_graph): Likewise.
10245         (elim_graph_size): Likewise.
10246         (elim_graph_add_node): Likewise.
10247         (elim_graph_add_edge): Likewise.
10248         (elim_graph_remove_succ_edge): Likewise.
10249         (eliminate_name): Likewise.
10250         (eliminate_build): Likewise.
10251         (elim_forward): Likewise.
10252         (elim_unvisited_predecessor): Likewise.
10253         (elim_backward): Likewise.
10254         (elim_create): Likewise.
10255         (eliminate_phi): Likewise.
10256         (expand_phi_nodes): Likewise.
10258 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10260         * bt-load.c (compute_out): Use auto_sbitmap class.
10261         (link_btr_uses): Likewise.
10262         * cfganal.c (mark_dfs_back_edges): Likewise.
10263         (post_order_compute): Likewise.
10264         (inverted_post_order_compute): Likewise.
10265         (pre_and_rev_post_order_compute_fn): Likewise.
10266         (single_pred_before_succ_order): Likewise.
10267         * cfgexpand.c (pass_expand::execute): Likewise.
10268         * cfgloop.c (verify_loop_structure): Likewise.
10269         * cfgloopmanip.c (fix_bb_placements): Likewise.
10270         (remove_path): Likewise.
10271         (update_dominators_in_loop): Likewise.
10272         * cfgrtl.c (break_superblocks): Likewise.
10273         * ddg.c (check_sccs): Likewise.
10274         (create_ddg_all_sccs): Likewise.
10275         * df-core.c (df_worklist_dataflow): Likewise.
10276         * dse.c (dse_step3): Likewise.
10277         * except.c (eh_region_outermost): Likewise.
10278         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10279         * gcse.c (prune_expressions): Likewise.
10280         (prune_insertions_deletions): Likewise.
10281         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
10282         * graph.c (draw_cfg_nodes_no_loops): Likewise.
10283         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
10284         * lcm.c (compute_earliest): Likewise.
10285         (compute_farthest): Likewise.
10286         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
10287         (unroll_loop_runtime_iterations): Likewise.
10288         (unroll_loop_stupid): Likewise.
10289         * lower-subreg.c (decompose_multiword_subregs): Likewise.
10290         * lra-lives.c: Likewise.
10291         * lra.c (lra): Likewise.
10292         * modulo-sched.c (schedule_reg_moves): Likewise.
10293         (optimize_sc): Likewise.
10294         (get_sched_window): Likewise.
10295         (sms_schedule_by_order): Likewise.
10296         (check_nodes_order): Likewise.
10297         (order_nodes_of_sccs): Likewise.
10298         (order_nodes_in_scc): Likewise.
10299         * recog.c (split_all_insns): Likewise.
10300         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
10301         * reload1.c (reload): Likewise.
10302         * sched-rgn.c (haifa_find_rgns): Likewise.
10303         (split_edges): Likewise.
10304         (compute_trg_info): Likewise.
10305         * sel-sched.c (init_seqno): Likewise.
10306         * store-motion.c (remove_reachable_equiv_notes): Likewise.
10307         * tree-into-ssa.c (update_ssa): Likewise.
10308         * tree-ssa-live.c (live_worklist): Likewise.
10309         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
10310         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10311         * Likewise.
10312         (try_peel_loop): Likewise.
10313         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10314         * Likewise.
10315         * tree-ssa-pre.c (compute_antic): Likewise.
10316         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
10317         * tree-stdarg.c (reachable_at_most_once): Likewise.
10318         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
10319         * var-tracking.c (vt_find_locations): Likewise.
10321 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10323         * sbitmap.h (auto_sbitmap): New class.
10325 2016-07-26  Alan Modra  <amodra@gmail.com>
10327         PR target/72103
10328         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
10329         sri->t_icode.
10331 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
10333         * input.c (selftest::temp_source_file::temp_source_file): Fix
10334         missing "%s" in fprintf.
10336 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
10338         PR middle-end/71732
10339         * cselib.c (cselib_process_insn): Invalidate argument slots for
10340         const/pure calls.
10342 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10344         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
10345         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
10346         vmulxh_lane_f16, vmulxh_laneq_f16): New.
10348 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10350         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10351         * config/aarch64/aarch64.md (fma, fnma): Support HF.
10352         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
10354 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10356         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10357         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
10358         New.
10359         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
10360         (add<mode>3): Likewise.
10361         (sub<mode>3): Likewise.
10362         (mul<mode>3): Likewise.
10363         (div<mode>3): Likewise.
10364         (*div<mode>3): Likewise.
10365         (<fmaxmin><mode>3): Extend to HF.
10366         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
10367         (fabd<mode>3): Likewise.
10368         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
10369         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
10370         (aarch64_fmulx<mode>): Likewise.
10371         (aarch64_fac<optab><mode>): Likewise.
10372         (aarch64_frecps<mode>): Likewise.
10373         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
10374         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
10375         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
10376         (VSDQ_HSDI): Support HI.
10377         (fcvt_target, FCVT_TARGET): Likewise.
10378         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
10379         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
10380         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
10381         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
10382         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
10383         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
10384         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
10385         vrsqrtsh_f16): New.
10387 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10389         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
10390         * config/aarch64/aarch64-builtins.c (hi_UP): New.
10391         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10392         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
10393         mode.
10394         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10395         (aarch64_cm<optab><mode>): Likewise.
10396         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
10397         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
10398         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
10399         (sqrt<mode>2): Likewise.
10400         (*sqrt<mode>2): Likewise.
10401         (abs<mode>2): Likewise.
10402         (<optab><mode>hf2): New pattern for HF mode.
10403         (<optab>hihf2): Likewise.
10404         * config/aarch64/arm_neon.h: Include arm_fp16.h.
10405         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
10406         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
10407         Support HF mode.
10408         * config/aarch64/arm_fp16.h: New file.
10409         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
10410         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
10411         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
10412         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
10413         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
10414         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
10415         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
10416         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
10417         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
10418         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
10419         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
10420         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
10421         vsqrth_f16): New.
10423 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10425         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
10426         reduc_smin_scal_): Use VDQIF_F16.
10427         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
10428         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
10429         Use VHSDF.
10430         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
10431         * config/aarch64/iterators.md (VDQIF_F16): New.
10432         (vp): Support HF modes.
10433         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
10434         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
10436 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10438         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
10439         "*aarch64_mulx_elt_from_dup<mode>".
10440         (*aarch64_mul3_elt<mode>): Update schedule type.
10441         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
10442         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
10443         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
10444         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
10445         (f, fp): Support HF modes.
10446         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
10447         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
10448         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
10449         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
10450         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
10451         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
10453 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10455         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10456         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
10457         modes.
10458         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
10459         vfmsq_f16): New.
10461 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10463         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10464         * config/aarch64/aarch64-simd.md
10465         (aarch64_rsqrts<mode>): Extend to HF modes.
10466         (fabd<mode>3): Likewise.
10467         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
10468         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
10469         (aarch64_<maxmin_uns>p<mode>): Likewise.
10470         (<su><maxmin><mode>3): Likewise.
10471         (<maxmin_uns><mode>3): Likewise.
10472         (<fmaxmin><mode>3): Likewise.
10473         (aarch64_faddp<mode>): Likewise.
10474         (aarch64_fmulx<mode>): Likewise.
10475         (aarch64_frecps<mode>): Likewise.
10476         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
10477         (add<mode>3): Extend to HF modes.
10478         (sub<mode>3): Likewise.
10479         (mul<mode>3): Likewise.
10480         (div<mode>3): Likewise.
10481         (*div<mode>3): Likewise.
10482         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
10483         HF, V4HF and V8HF.
10484         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
10485         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
10486         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
10487         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
10488         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
10489         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
10490         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
10491         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
10492         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
10493         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
10494         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
10495         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
10496         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
10497         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
10499 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10501         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
10502         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
10503         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
10504         (neg<mode>2): Likewise.
10505         (abs<mode>2): Likewise.
10506         (<frint_pattern><mode>2): Likewise.
10507         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10508         (<optab><VDQF:mode><fcvt_target>2): Likewise.
10509         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
10510         (ftrunc<VDQF:mode>2): Likewise.
10511         (<optab><fcvt_target><VDQF:mode>2): Likewise.
10512         (sqrt<mode>2): Likewise.
10513         (*sqrt<mode>2): Likewise.
10514         (aarch64_frecpe<mode>): Likewise.
10515         (aarch64_cm<optab><mode>): Likewise.
10516         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
10517         HF, V4HF and V8HF.
10518         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
10519         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
10520         (stype): New.
10521         * config/aarch64/arm_neon.h (vdup_n_f16): New.
10522         (vdupq_n_f16): Likewise.
10523         (vld1_dup_f16): Use vdup_n_f16.
10524         (vld1q_dup_f16): Use vdupq_n_f16.
10525         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
10526         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
10527         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
10528         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
10529         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
10530         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
10531         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
10532         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
10533         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
10534         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
10535         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
10536         vsqrt_f16, vsqrtq_f16): New.
10538 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10540         * config/aarch64/aarch64-simd.md
10541         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
10542         (aarch64_ext<mode>): Likewise.
10543         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
10544         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
10545         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
10546         and V8HFmode.
10547         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
10548         float16x8_t.
10549         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
10550         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
10551         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
10552         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
10553         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
10554         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
10555         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
10556         New.
10557         (vmov_n_f16): Reimplement using vdup_n_f16.
10558         (vmovq_n_f16): Reimplement using vdupq_n_f16..
10560 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10562         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
10563         "frame_related_p".  Generate CFA annotation when it's necessary.
10564         (aarch64_expand_prologue): Use aarch64_add_constant.
10565         (aarch64_expand_epilogue): Likewise.
10566         (aarch64_output_mi_thunk): Pass "false" when calling
10567         aarch64_add_constant.
10569 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10571         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
10572         sequences.
10574 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
10576         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
10577         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
10578         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
10579         (aarch64_build_constant): Delete.
10581 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
10583         Revert
10584         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
10586         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10587         flag_toplevel_reorder.
10589 2016-07-25  Richard Biener  <rguenther@suse.de>
10591         * cgraph.c (cgraph_node::verify_node): Compare against builtin
10592         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
10593         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
10594         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
10595         (streamer_get_builtin_tree): Likewise.
10596         (streamer_write_builtin): Likewise.
10597         * lto-streamer.h (LTO_builtin_decl): Remove.
10598         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
10599         (lto_input_scc): Remove LTO_builtin_decl handling.
10600         (lto_input_tree_1): Liekwise.
10601         * lto-streamer-out.c (lto_output_tree_1): Remove special
10602         handling of builtins.
10603         (DFS::DFS): Likewise.
10604         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
10605         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
10606         assert.
10607         (streamer_write_builtin): Remove.
10609 2016-07-25  Martin Liska  <mliska@suse.cz>
10611         * lto-cgraph.c (input_symtab): Don't call get_working_sets
10612         if flag_auto_profile is set to true.
10614 2016-07-25  Martin Liska  <mliska@suse.cz>
10616         PR gcov-profile/71868
10617         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
10618         have a function with multiple latches, count them all.
10620 2016-07-25  Martin Liska  <mliska@suse.cz>
10622         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
10624 2016-07-25  Martin Liska  <mliska@suse.cz>
10626         PR tree-optimization/71987
10627         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
10628         just for SSA_NAMEs. Fix GNU coding style.
10630 2016-07-25  Martin Liska  <mliska@suse.cz>
10632         PR gcov-profile/64874
10633         * gcov-io.h: Update command about file format.
10634         * gcov-iov.c (main): Adapt the numbering scheme.
10636 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
10638         PR middle-end/66726
10639         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
10640         whose result is used in PHI.
10641         (final_range_test_p): Likewise.
10642         (maybe_optimize_range_tests): Likewise.
10644 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10646         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10647         Reformat two multi-line strings.
10649 2016-07-22  Martin Sebor  <msebor@redhat.com>
10651         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
10653 2016-07-22  Martin Sebor  <msebor@redhat.com>
10655         PR c/71560
10656         * doc/extend.texi (Compound Literals): Correct and clarify.
10657         (Cast to Union): Same.
10659 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10661         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10662         comments to explain why certain error messages make mention of
10663         undocumented options.
10664         (rs6000_invalid_builtin): Change error messages to replace mention
10665         of undocumented options with mention of the -mcpu=power9 option
10666         that enables those undocumented options.
10667         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
10668         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
10669         definition of this macro to correct an existing error.
10670         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
10671         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
10672         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
10673         descriptions of built-in functions so that they depend on
10674         -mcpu=power9 instead of on the corresponding undocumented flags.
10675         * doc/invoke.texi (Option Summary):  Remove all mention of newly
10676         undocumented flags.
10677         (IBM RS/6000 and PowerPC Options): Likewise.
10678         * doc/md.texi (Constraints for Particuliar Machines): Remove all
10679         mention of newly undocumented flags.
10681 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
10683         * ipa-cp.c (determine_versionability): Do not create constprop clones,
10684         when target_clones attribute is set.
10686 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
10688         * common.opt (funsafe-loop-optimizations): Mark ignore.
10689         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
10690         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
10691         related code.
10692         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
10693         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
10695 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
10697         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10698         Parameter.
10699         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10700         Parameter.
10701         (number_of_iterations_exit): Warn missed loop optimization for
10702         possible infinite loops.
10704 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
10706         PR target/71216
10707         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
10708         when to emit a ".machine" pseudo-op.
10710 2016-07-22  Martin Liska  <mliska@suse.cz>
10712         PR gcov-profile/69028
10713         PR gcov-profile/62047
10714         * coverage.c (coverage_compute_lineno_checksum): Do not
10715         calculate checksum for fns w/o xloc.file.
10716         (coverage_compute_profile_id): Likewise.
10718 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
10720         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
10721         (avr_secondary_reload): ...and implementation.
10722         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
10723         * config/avr/avr.md (reload_in<mode>): Remove insns.
10724         (adjust_len) [lpm]: Remove insn attribute value.
10725         * config/avr/predicates.md (flash_operand): Remove insn predicate.
10727 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10729         PR middle-end/71876
10730         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
10731         attribute.
10732         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
10733         * calls.c (special_function_p): Remove the special handling of the
10734         "__builtin_" prefix.
10736 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10738         PR middle-end/71876
10739         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
10740         if STMT may be an alloca call.
10741         (gimple_alloca_call_p, alloca_call_p): Return only true for the
10742         builtin alloca call.
10743         * calls.h (gimple_maybe_alloca_call_p): New function.
10744         * tree-inline.c (inline_forbidden_p_stmt): Use
10745         gimple_maybe_alloca_call_p here.
10747 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
10749         * spellcheck-tree.c (best_macro_match::best_macro_match):
10750         Explictly specify the template arguments when invoking the base
10751         class constructor, to help older C++ compilers.
10753 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
10755         PR sanitizer/71953
10756         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
10757         before builtin_decl_implicit.
10759 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
10761         * optabs.c (emit_condiitonal_move): Short circuit for identical
10762         sources.
10764 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
10766         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
10767         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
10768         (noce_conversion_profitable_p): New.
10769         (noce_try_store_flag_constants): Use it.
10770         (noce_try_addcc): Likewise.
10771         (noce_try_store_flag_mask): Likewise.
10772         (noce_try_cmove): Likewise.
10773         (noce_try_cmove_arith): Likewise.
10774         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
10775         overwriting it.
10776         (noce_convert_multiple_sets): Move cost model to here, from...
10777         (bb_ok_for_noce_convert_multiple_sets) ...here.
10778         (noce_process_if_block): Update calls for above changes.
10779         (noce_find_if_block): Record new noce_if_info parameters.
10781 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
10783         * target.def (max_noce_ifcvt_seq_cost): New.
10784         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
10785         * doc/tm.texi: Regenerate.
10786         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
10787         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
10788         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
10789         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
10790         * doc/invoke.texi: Document new params.
10792 2016-07-21  Richard Biener  <rguenther@suse.de>
10794         PR tree-optimization/71947
10795         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
10796         ranges have useful limit_vr information.
10798 2016-07-21  Richard Biener  <rguenther@suse.de>
10800         * function-tests.c (build_trivial_generic_function): Set
10801         BLOCK_SUPERCONTEXT of DECL_INITIAL.
10802         * omp-low.c (create_omp_child_function): Likewise.
10803         (grid_expand_target_grid_body): Likewise.
10804         * cgraphunit.c (init_lowered_empty_function): Likewise.
10805         (cgraph_node::expand_thunk): Likewise.
10806         * tree-parloops.c (create_loop_fn): Likewise.
10807         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
10809 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10811         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
10812         in comment.
10814 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
10816         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
10817         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
10818         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
10819         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
10820         values for insn attribute.
10821         * config/avr/avr.c (avr_out_insert_notbit): New function.
10822         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
10823         ADJUST_LEN_INSV_NOTBIT_0/_7.
10824         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
10826 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
10828         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
10829         (chrec_convert_1, chrec_convert): Ditto.
10830         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
10831         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
10832         * tree-vrp.c (adjust_range_with_scev): Ditto.
10833         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
10834         (scev_var_range_cant_overflow): New function.
10835         (scev_probably_wraps_p): New parameter.  Call above function.
10836         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
10838 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
10840         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
10841         by removing computation of may_be_zero.
10843 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
10845         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
10847 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
10849         Improving concepts performance and diagnostics.
10850         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
10851         for constraint satisfaction and subsumption.
10852         * timevar.h (auto_timevar): New constructor that matches the push/pop
10853         pattern of usage in pt.c.
10855 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
10857         * hwint.h (HOST_WIDE_INT_0): New define.
10858         (HOST_WIDE_INT_0U): Ditto.
10859         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
10860         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
10861         * simplify-rtx.c: Ditto.
10862         * tree-object-size.c: Ditto.
10864 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10866         * config/s390/s390.c (s390_encode_section_info): Remove mode size
10867         check.
10869 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
10871         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
10872         * combine.c: Use HOST_WIDE_INT_M1U instead of
10873         ~(unsigned HOST_WIDE_INT) 0.
10874         * double-int.h: Ditto.
10875         * dse.c: Ditto.
10876         * dwarf2asm.c:Ditto.
10877         * expmed.c: Ditto.
10878         * genmodes.c: Ditto.
10879         * match.pd: Ditto.
10880         * read-rtl.c: Ditto.
10881         * tree-ssa-loop-ivopts.c: Ditto.
10882         * tree-ssa-loop-prefetch.c: Ditto.
10883         * tree-vect-generic.c: Ditto.
10884         * tree-vect-patterns.c: Ditto.
10885         * tree.c: Ditto.
10887 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10889         * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
10890         constant addresses outside [0,0xc0] into a register.
10891         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
10892         cases where the base address register is unused after.
10893         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
10894         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
10895         (avr_out_store_psi_reg_disp_tiny): Same.
10897 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10899         Implement attribute progmem on reduced Tiny cores by adding
10900         flash offset 0x4000 to respective symbols.
10902         PR target/71948
10903         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
10904         documentation how it works on reduced Tiny cores.
10905         (AVR Named Address Spaces): No support for reduced Tiny.
10906         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
10907         (avr_address_tiny_pm_p): New static function.
10908         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
10909         if the address is in progmem.
10910         (avr_assemble_integer): Same.
10911         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
10912         for symbol_ref in progmem.
10913         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
10914         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
10915         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
10917 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
10919         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
10920         * configure: Regenerate.
10921         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
10922         (USE_THIN_ARCHIVES): New variable.
10923         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
10924         this archive as a thin archive.
10926 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
10928         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
10929         same location as last time, don't skip if we have fix-it hints.
10930         Clarify the skipping logic by converting it from one "if" clause
10931         to repeated "if" clauses.
10932         * spellcheck-tree.c: Include "cpplib.h".
10933         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
10934         (best_macro_match::best_macro_match): New constructor.
10935         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
10936         Move here from c/c-decl.c.
10937         (class best_macro_match): Move here from c/c-decl.c, converting
10938         from a typedef to a subclass, gaining a ctor.
10940 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10942         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
10943         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
10944         define...
10945         (avr_addr_space_diagnose_usage): ...and implementation.
10946         (avr_addr_space_supported_p): New function.
10947         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
10948         report bad address space usage if that space is supported.
10949         (avr_insert_attributes): Same.  No more complain about unsupported
10950         address spaces.
10951         * config/avr/avr-c.c (tm_p.h): Include it.
10952         (avr_cpu_cpp_builtins): Only define addr-space related built-in
10953         macro if avr_addr_space_supported_p.
10955 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
10957         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10958         flag_toplevel_reorder.
10960 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
10962         * gcc-rich-location.c
10963         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
10964         a const char *.
10965         * gcc-rich-location.h
10966         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
10968 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10970         * target.def (addr_space): Add new diagnose_usage to hook vector.
10971         * targhooks.c (default_addr_space_diagnose_usage): Add default
10972         implementation and...
10973         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
10974         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
10975         is some address space, call targetm.addr_space.diagnose_usage.
10976         * doc/tm.texi.in (Named Address Spaces): Add anchor for
10977         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
10978         * doc/tm.texi: Regenerate.
10980 2016-07-20  Martin Liska  <mliska@suse.cz>
10982         PR middle-end/71898
10983         * graphite-isl-ast-to-gimple.c (later_of_the_two):
10984         Properly handly PHI stmts.
10986 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
10988         PR tree-optimization/71503
10989         PR tree-optimization/71683
10990         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
10991         and break.
10993 2016-07-20  Martin Liska  <mliska@suse.cz>
10995         * doc/invoke.texi (-fipa-ra): Document when the option is
10996         disabled. Fix a typo.
10998 2016-07-20  Martin Liska  <mliska@suse.cz>
11000         * Makefile.in: Include fibonacci_heap.c
11001         * fibonacci_heap.c: New file.
11002         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
11003         (fibonacci_heap::union_with): Fix deletion of the second heap.
11004         * selftest-run-tests.c (selftest::run_tests): Incorporate
11005         fibonacci heap tests.
11006         * selftest.h: Declare fibonacci_heap_c_tests.
11008 2016-07-20  Martin Liska  <mliska@suse.cz>
11010         * selftest-run-tests.c (selftest::run_tests): New function.
11011         * selftest.h (sreal_c_tests): Declare.
11012         * sreal.c (sreal_verify_basics): New function.
11013         (verify_aritmetics): Likewise.
11014         (sreal_verify_arithmetics): Likewise.
11015         (verify_shifting): Likewise.
11016         (sreal_verify_shifting): Likewise.
11017         (void sreal_c_tests): Likewise.
11019 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
11021         PR rtl-optimization/71916
11022         * cfgrtl.c (contains_no_active_insn_p): Return false also for
11023         bb which have a single succ fake edge.
11025 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
11027         PR debug/71855
11028         * dwarf2out.c (gen_subprogram_die): Only call
11029         gen_unspecified_parameters_die while dumping early dwarf.
11031 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
11033         PR middle-end/71874
11034         * gimple-fold.c (fold_builtin_memory_op): Use
11035         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
11037 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
11039         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
11040         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
11041         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
11042         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
11043         * combine.c: Ditto.
11044         * cse.c: Ditto.
11045         * dojump.c: Ditto.
11046         * double-int.c: Ditto.
11047         * dse.c: Ditto.
11048         * dwarf2out.c: Ditto.
11049         * expmed.c: Ditto.
11050         * expr.c: Ditto.
11051         * fold-const.c: Ditto.
11052         * function.c: Ditto.
11053         * fwprop.c: Ditto.
11054         * genmodes.c: Ditto.
11055         * hwint.c: Ditto.
11056         * hwint.h: Ditto.
11057         * ifcvt.c: Ditto.
11058         * loop-doloop.c: Ditto.
11059         * loop-invariant.c: Ditto.
11060         * loop-iv.c: Ditto.
11061         * match.pd: Ditto.
11062         * optabs.c: Ditto.
11063         * real.c: Ditto.
11064         * reload.c: Ditto.
11065         * rtlanal.c: Ditto.
11066         * simplify-rtx.c: Ditto.
11067         * stor-layout.c: Ditto.
11068         * toplev.c: Ditto.
11069         * tree-ssa-loop-ivopts.c: Ditto.
11070         * tree-vect-generic.c: Ditto.
11071         * tree-vect-patterns.c: Ditto.
11072         * tree.c: Ditto.
11073         * tree.h: Ditto.
11074         * ubsan.c: Ditto.
11075         * varasm.c: Ditto.
11076         * wide-int-print.cc: Ditto.
11077         * wide-int.cc: Ditto.
11078         * wide-int.h: Ditto.
11080 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
11082         * selftest.c (selftest::assert_streq): Handle NULL values of
11083         val_actual and val_expected.
11085 2016-07-19  Martin Jambor  <mjambor@suse.cz>
11087         PR fortran/71688
11088         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
11089         rather than cgraph_create_node to get a call graph node.
11091 2016-07-19  Richard Biener  <rguenther@suse.de>
11093         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
11094         handle all tcc_constant bases and valueize SSA names.
11095         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
11096         tcc_constant bases.
11098 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
11100         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
11101         the flags of the exit block and bb2, not just the entry block.
11103 2016-07-19  Richard Biener  <rguenther@suse.de>
11105         PR tree-optimization/71901
11106         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11107         align member, group stuff with the bitfield.
11108         (vn_ref_op_align_unit): New inline.
11109         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
11110         record element alignment and operand 3 unchanged.
11111         (ao_ref_init_from_vn_reference): Adjust.
11112         (valueize_refs_1): Likewise.
11113         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11115 2016-07-19  Richard Biener  <rguenther@suse.de>
11117         PR tree-optimization/71908
11118         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
11119         symbolic constants in a more reliable way.
11121 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11123         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
11124         comment.
11125         (vect_update_inits_of_drs): Likewise.
11126         (vect_create_cond_for_alias_checks): Likewise.
11127         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
11129 2016-07-19  Richard Biener  <rguenther@suse.de>
11131         PR lto/71907
11132         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
11133         with an abstract origin that is not an inlined function outer
11134         scope add a self-reference as abstract origin.
11135         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
11137 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11139         PR target/71493
11140         * config/rs6000/rs6000.c (rs6000_function_value): Fix
11141         unintentional System V.4 structure return breakage for structures
11142         with a single floating point element.
11144 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
11146         PR tree-optimization/71734
11147         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
11148         contains REF, use it to check safelen, assume that safelen value
11149         must be greater 1, fix style.
11150         (ref_indep_loop_p_2): Add REF_LOOP argument.
11151         (ref_indep_loop_p): Pass LOOP as additional argument to
11152         ref_indep_loop_p_2.
11154 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11156         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
11157         allocation in the prologue.
11158         * explow.c (get_dynamic_stack_base): New function to return an address
11159         expression for the dynamic stack base.
11160         (get_dynamic_stack_size): New function to do the required dynamic stack
11161         space size calculations.
11162         (allocate_dynamic_stack_space): Use new functions.
11163         (align_dynamic_address): Move some code from
11164         allocate_dynamic_stack_space to new function.
11165         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
11167 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11169         * config/s390/s390.c (s390_encode_section_info): Always set
11170         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
11171         found.
11173 2016-07-18  Richard Biener  <rguenther@suse.de>
11175         PR tree-optimization/71893
11176         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
11177         for sizetype cast added by array_ref_element_size.
11178         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11180 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
11182         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
11183         register parameters.  Remove code to initialize argument pointer
11184         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
11185         using a pc-relative branch.  Cleanup conditional code.
11186         * config/pa/pa.md (call_mcount): New expander.
11187         (call_mcount_nonpic): New insn.
11188         (call_mcount_pic): New insn and split.
11189         (call_mcount_pic_post_reload): New insn.
11190         (call_mcount_64bit): New insn and split.
11191         (call_mcount_64bit_post_reload): New insn.
11193 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
11195         * config/avr/predicates.md (const_m255_to_m1_operand): New.
11196         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
11197         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
11198         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
11199         (*usum_widenqihi3, *udiff_widenqihi3)
11200         (*addhi3_zero_extend.const): New combiner insns.
11201         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
11202         just 1 bit is affected.
11203         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
11204         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
11206 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
11208         * omp-low.c (lower_omp_target): Mark data clauses with
11209         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
11210         zero-length subarrays.
11212 2016-07-15  Richard Biener  <rguenther@suse.de>
11214         PR tree-optimization/71881
11215         * tree-loop-distribution.c (destroy_loop): Remove blocks in
11216         reverse DOM order to make debug temp generation happy.
11218 2016-07-15  Richard Biener  <rguenther@suse.de>
11220         PR tree-optimization/71887
11221         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
11222         verify it is not zero for division / modulo handling.
11223         (value_replacement): Adjust.
11225 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
11226             Julian Brown  <julian@codesourcery.com>
11228         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
11229         * config/aarch64/aarch64-cost-tables.h
11230         (vulcan_extra_costs): New variable.
11231         * config/aarch64/aarch64.c
11232         (vulcan_addrcost_table): Likewise.
11233         (vulcan_regmove_cost): Likewise.
11234         (vulcan_vector_cost): Likewise.
11235         (vulcan_branch_cost): Likewise.
11236         (vulcan_tunings): Likewise.
11238 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
11240         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
11241         (output_in_order): Loop over undefined variables too.  Output them
11242         via assemble_undefined_decl.  Skip variables that correspond to hard
11243         registers or have value-exprs.
11244         * varpool.c (symbol_table::output_variables): Handle undefined
11245         variables together with defined ones.
11247 2016-07-15  Richard Biener  <rguenther@suse.de>
11249         * tree-ssa-pre.c (get_representative_for): Make sure to return
11250         the value number of SSA names.
11251         (phi_translate_1): get_representative_for cannot return NULL.
11252         (do_pre_regular_insertion): Remove redundant call to
11253         fully_constant_expression.
11254         (do_pre_partial_partial_insertion): Likewise.
11256 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
11258         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
11259         (derive_simple_iv_with_niters): New function.
11260         (simple_iv): Rewrite using simple_iv_with_niters.
11261         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
11262         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
11263         function.
11264         (number_of_iterations_exit): Rewrite using above function.
11265         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
11266         Decl.
11268 2016-07-15  Richard Biener  <rguenther@suse.de>
11270         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
11271         vec_construct cost.
11273 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
11275         PR tree-optimization/71872
11276         * tree-data-ref.c (get_references_in_stmt): Ignore references
11277         with is_gimple_constant get_base_address.
11279 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11281         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
11282         (TARGET_HAVE_LDACQD): New macro.
11283         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
11284         than TARGET_HAVE_LDACQ.
11285         (arm_load_acquire_exclusivedi): Likewise.
11286         (arm_store_release_exclusivedi): Likewise.
11288 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11290         PR rtl-optimization/71878
11291         * lra-constraints.c (match_reload): Pass information about other
11292         output operands.  Create new unique register value if matching input
11293         operand shares same register value as output operand being considered.
11294         (curr_insn_transform): Record output operands already processed.
11296 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11298         PR target/65951
11299         PR tree-optimization/70923
11300         * tree-vect-patterns.c: Include mult-synthesis.h.
11301         (target_supports_mult_synth_alg): New function.
11302         (synth_lshift_by_additions): Likewise.
11303         (apply_binop_and_append_stmt): Likewise.
11304         (vect_synth_mult_by_constant): Likewise.
11305         (target_has_vecop_for_code): Likewise.
11306         (vect_recog_mult_pattern): Use above functions to synthesize vector
11307         multiplication by integer constants.
11309 2016-07-14  Alan Modra  <amodra@gmail.com>
11311         * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
11312         gpr alternatives.  Correct '*' placement on Y,r alternative.
11313         Add '*' on operand 1 of r,r alternative.
11315 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11317         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
11318         * expmed.h: ... Here.
11320 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
11322         * gimple.h (stmt_can_terminate_bb_p): New function.
11323         * tree-cfg.c (need_fake_edge_p): Rename to ...
11324         (stmt_can_terminate_bb_p): ... this; return true if stmt can
11325         throw external; handle const and pure calls.
11326         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
11328 2016-07-14  Richard Biener  <rguenther@suse.de>
11330         PR tree-optimization/71866
11331         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
11332         (do_hoist_insertion): Avoid endless recursion when we
11333         didn't insert anything because we managed to simplify
11334         things down to a constant or SSA name.
11335         (fully_constant_expression): Re-write in terms of ...
11336         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
11337         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
11338         vn_nary_build_or_lookup_1.
11339         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
11340         (vn_nary_build_or_lookup): ... this which now wraps it.
11342 2016-07-14  Alan Modra  <amodra@gmail.com>
11344         PR target/71733
11345         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
11346         with p9_vector override before power9-dform override.
11348 2016-07-13  Andi Kleen  <ak@linux.intel.com>
11350         * value-prof.c (gimple_value_profile_transformations): Don't run
11351         when auto_profile is on.
11353 2016-07-13  Andi Kleen  <ak@linux.intel.com>
11355         * auto-profile.c (update_inlined_ind_target,
11356         afdo_indirect_call): Print information to dump file.
11358 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
11360         * genrecog.c (special_predicate_operand_p): New function.
11361         (predicate_name): Move function.
11362         (validate_pattern): Don't warn about missing mode for all
11363         define_special_predicate predicates.
11365 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
11367         * tree-vect-data-refs.c (vect_no_alias_p): New function.
11368         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
11369         resolve alias checks which are known at compilation time.
11370         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
11371         alias checks are resolved.  Move dump info for too many runtime
11372         alias checks to here...
11373         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
11375 2016-07-13  Richard Biener  <rguenther@suse.de>
11377         PR tree-optimization/24574
11378         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
11379         position and add shift, rotate, divison and modulo support
11380         for left zero.
11381         (value_replacement): Pass in argument position to absorbing_element_p.
11383 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11385         PR ipa/71633
11386         * ipa-inline-transform.c (inline_call): Support
11387         instrumented thunks.
11389 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11391         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
11392         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
11393         divide feature.
11394         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
11395         Baseline.  Make initial alternative TARGET_32BIT only.
11396         (udivsi3): Likewise.
11397         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
11398         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
11399         target.
11401 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11403         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
11404         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
11405         availability with TARGET_HAVE_MOVT.
11406         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
11407         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
11408         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
11409         UINTVAL.
11410         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
11411         extra instruction if MOVW is available.  Use a cost variable
11412         incremented by COSTS_N_INSNS (1) when the condition match rather than
11413         returning an arithmetic expression based on COSTS_N_INSNS.  Make
11414         constant with bottom half word zero cost 2 instruction if MOVW is
11415         available.
11416         * config/arm/arm.md (define_attr "arch"): Add v8mb.
11417         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
11418         target is ARMv8-M Baseline.
11419         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
11420         (arm_movtas_ze): Likewise.
11421         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
11422         alternative for constants satisfying j constraint.
11423         (thumb1_movsi_insn): Likewise.
11424         (movsi splitter for K alternative): Tighten condition to not trigger
11425         if movt is available and j constraint is satisfied.
11426         (Pe immediate splitter): Likewise.
11427         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
11428         constant fitting in an halfword to use MOVW.
11429         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
11430         effective target.
11432 2016-07-13  Richard Biener  <rguenther@suse.de>
11434         PR middle-end/71104
11435         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
11436         gimplifying the LHS.  Make sure to gimplify a returning twice
11437         call LHS without using SSA names.
11439 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11441         * tree-data-ref.c (find_data_references_in_stmt): Remove
11442         unnecessary call to vec::release.
11443         (graphite_find_data_references_in_stmt): Likewise.
11444         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
11445         * tree-vect-stmts.c (vectorizable_condition): Likewise.
11447 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11449         * cfgexpand.c (expand_used_vars): Make the type of a local
11450         variable auto_vec.
11451         * genmatch.c (lower_for): Likewise.
11452         * haifa-sched.c (haifa_sched_init): Likewise.
11453         (add_to_speculative_block): Likewise.
11454         (create_check_block_twin): Likewise.
11455         * predict.c (handle_missing_profiles): Likewise.
11456         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
11457         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
11458         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11459         Likewise.
11460         (maybe_lower_iteration_bound): Likewise.
11461         * tree-ssa-sccvn.c (DFS): Likewise.
11462         * tree-stdarg.c (reachable_at_most_once): Likewise.
11463         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
11464         (vectorizable_store): Likewise.
11466 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11468         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
11469         (sccvn_dom_walker): make cond_stack an auto_vec.
11471 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11473         * ree.c (struct ext_state): Make type of members auto_vec.
11474         (find_and_remove_re): Adjust.
11476 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11478         * cfgexpand.c (struct stack_vars_data): Make type of fields
11479         auto_vec.
11480         (expand_used_vars): Adjust.
11482 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11484         * ipa.c (record_cdtor_fn): Adjust.
11485         (build_cdtor_fns): Likewise.
11486         (ipa_cdtor_merge): Make static_ctors and static_dtors local
11487         variables.
11489 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11491         * genextract.c (struct accum_extract): Add constructor and make
11492         members auto_vec.
11493         (gen_insn): Adjust.
11495 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11497         * tree.c (struct free_lang_data_d): Add constructor and change
11498         types of members to ones that automatically manage resources.
11499         (fld_worklist_push): Adjust.
11500         (find_decls_types): Likewise.
11501         (find_decls_types_in_eh_region): Likewise.
11502         (free_lang_data_in_cgraph): Stop manually creating and
11503         destroying members of free_lang_data_d.
11505 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
11507         PR rtl-optimization/68961
11508         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
11509         peephole variant.  Use sse_reg_operand predicates.
11511 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
11513         * config/i386/predicates.md (x86_64_immediate_operand)
11514         <case CONST_INT>: Remove unneeded truncation to DImode.
11515         <case CONST>: Ditto.
11516         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11518 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11520         PR target/71805
11521         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
11522         The xxperm and xxpermr instructions require that the 2nd input
11523         operand overlap with the output operand, and not the 1st.
11524         (altivec_vperm_v8hiv16qi): Likewise.
11525         (altivec_vperm_<mode>_uns_internal): Likewise.
11526         (altivec_vpermr_<mode>_internal): Likewise.
11527         (vperm_v8hiv4si): Likewise.
11528         (vperm_v16qiv8hi): Likewise.
11530 2016-07-12  Nathan Sidwell  <nathan@acm.org>
11532         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
11533         when -mno-pic-data-is-text-relative is in effect, by default.
11534         * doc/invoke.texi (mpic-data-is-text-relative): Document new
11535         behavior and clarify.
11537 2016-07-12  Martin Liska  <mliska@suse.cz>
11539         * params.def: Add avg-loop niter.
11540         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
11541         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
11542         * doc/invoke.texi: Document the new parameter.
11544 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11546         PR middle-end/71700
11547         * expr.c (store_constructor): Mask sign-extended bits when widening
11548         sub-word constructor element at the start of a word.
11550 2016-07-12  Martin Liska  <mliska@suse.cz>
11552         * Makefile.in: Append rule for params-options.h.
11553         * params-options.h: New file.
11555 2016-07-12  Martin Liska  <mliska@suse.cz>
11557         * ira-build.c (mark_loops_for_removal): Properly iterate
11558         loops.
11560 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
11561             Richard Biener  <rguenther@suse.de>
11563         PR tree-optimization/23286
11564         PR tree-optimization/70159
11565         * doc/invoke.texi: Document -fcode-hoisting.
11566         * common.opt (fcode-hoisting): New flag.
11567         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
11568         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
11569         (do_regular_insertion): Rename to ...
11570         (do_pre_regular_insertion): ... this and amend general comments
11571         on insertion strathegy.
11572         (do_partial_partial_insertion): Rename to ...
11573         (do_pre_partial_partial_insertion): ... this.
11574         (do_hoist_insertion): New function.
11575         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
11576         and call do_hoist_insertion properly.
11577         (insert): Adjust.
11578         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
11579         (pass_pre::execute): Register hoist_insert stats.
11581 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
11583         PR middle-end/71716
11584         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
11585         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
11586         is different from mode's bitsize.  Small cleanup.
11588 2016-07-12  Richard Biener  <rguenther@suse.de>
11590         PR rtl-optimization/68961
11591         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
11592         to simplify to a non-constant.
11594 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
11596         PR middle-end/71758
11597         * omp-low.c (expand_omp_target): Gimplify device.
11599         PR tree-optimization/71823
11600         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
11601         to get vec_oprnds2 from op2.
11603 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
11605         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
11606         Hoist common subexpressions.
11607         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
11609 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
11611         PR target/71800
11612         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
11613         prevent generation of 'stxsiwx' on pre Power8 hardware.
11615 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
11617         * input.c: Include cpplib.h.
11618         (selftest::temp_source_file): New class.
11619         (selftest::temp_source_file::temp_source_file): New ctor.
11620         (selftest::temp_source_file::~temp_source_file): New dtor.
11621         (selftest::should_have_column_data_p): New function.
11622         (selftest::test_should_have_column_data_p): New function.
11623         (selftest::temp_line_table): New class.
11624         (selftest::temp_line_table::temp_line_table): New ctor.
11625         (selftest::temp_line_table::~temp_line_table): New dtor.
11626         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
11627         it to create a temp_line_table.
11628         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
11629         locations that are known to have column data.
11630         (selftest::line_table_case): New struct.
11631         (selftest::test_reading_source_line): Move tempfile handling
11632         to class temp_source_file.
11633         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
11634         (selftest::assert_token_loc_eq): New function.
11635         (ASSERT_TOKEN_LOC_EQ): New macro.
11636         (selftest::test_lexer): New function.
11637         (selftest::boundary_locations): New array.
11638         (selftest::input_c_tests): Call test_should_have_column_data_p.
11639         Loop over a test matrix of interesting values of location and
11640         default_range_bits, calling test_lexer on each case in the matrix.
11641         Move call to test_accessing_ordinary_linemaps into the matrix.
11642         * selftest.h (ASSERT_EQ): Reimplement in terms of...
11643         (ASSERT_EQ_AT): New macro.
11645 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
11647         PR target/71801
11648         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11649         Don't convert TImode in debug insn.
11651 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11653         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
11654         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
11655         (tree_type_common::lang_flag_7): New.
11656         (tree_type_common::spare): Reduce size.
11657         * tree.h (TYPE_ALIGN_OK): Remove.
11658         (TYPE_LANG_FLAG_7): New.
11659         (get_inner_reference): Adjust header.
11660         * print-tree.c (print_node): Adjust.
11661         * expr.c (get_inner_reference): Remove parameter keep_aligning.
11662         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
11663         calls to get_inner_reference.
11664         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
11665         handling of TYPE_ALIGN_OK.
11666         * builtins.c (get_object_alignment_2): Adjust call to
11667         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
11668         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
11669         TYPE_ALIGN_OK.
11670         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
11671         * cfgexpand.c (expand_debug_expr): Likewise.
11672         * dbxout.c (dbxout_expand_expr): Likewise.
11673         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
11674         loc_list_from_tree, fortran_common): Likewise.
11675         * fold-const.c (optimize_bit_field_compare,
11676         decode_field_reference, fold_unary_loc, fold_comparison,
11677         split_address_to_core_and_offset): Likewise.
11678         * gimple-laddress.c (execute): Likewise.
11679         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
11680         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
11681         * hsa-gen.c (gen_hsa_addr): Likewise.
11682         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
11683         * tsan.c (instrument_expr): Likewise.
11684         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
11685         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
11686         * tree-affine.c (tree_to_aff_combination,
11687         get_inner_reference_aff): Adjust calls to get_inner_reference.
11688         * tree-data-ref.c (split_constant_offset_1,
11689         dr_analyze_innermost): Likewise.
11690         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
11691         * tree-sra.c (ipa_sra_check_caller): Likewise.
11692         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
11693         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
11694         bswap_replace): Likewise.
11695         * tree-vect-data-refs.c (vect_check_gather,
11696         vect_analyze_data_refs): Likewise.
11697         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
11698         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
11699         TYPE_ALIGN_OK.
11701 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
11703         * Makefile.in (selftest-valgrind): New phony target.
11704         * function-tests.c (selftest::build_cfg): Delete pass instances
11705         created by the test.
11706         (selftest::convert_to_ssa): Likewise.
11707         (selftest::test_expansion_to_rtl): Likewise.
11708         * tree-cfg.c (selftest::test_linear_chain): Release dominator
11709         vectors.
11710         (selftest::test_diamond): Likewise.
11712 2016-07-11  Richard Biener  <rguenther@suse.de>
11714         PR tree-optimization/71816
11715         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
11716         than replacing all of its operands.
11718 2016-07-11  Alan Modra  <amodra@gmail.com>
11720         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
11721         (ctr<mode>): Add unspec.
11722         (ctr<mode>_internal*): Likewise.
11724 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
11726         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
11727         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
11729 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
11731         PR rtl-optimization/71621
11732         * lra-constraints.c (process_alt_operands): Check combination of
11733         reg class and mode.
11735 2016-07-08  Jason Merrill  <jason@redhat.com>
11736             Richard Biener  <rguenther@suse.de>
11738         P0145: Refining Expression Order for C++.
11739         * gimplify.c (initial_rhs_predicate_for): New.
11740         (gimplfy_modify_expr): Gimplify RHS before LHS.
11742 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11744         PR target/71297
11745         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11746         Allow standard error handling to take over when a wrong number
11747         of arguments is presented to __builtin_vec_ld () or
11748         __builtin_vec_st ().
11750 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
11752         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
11753         variants.
11754         (smin): Likewise.
11755         (fmax): New entry.
11756         (fmin): Likewise.
11757         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
11758         __builtin_aarch64_fmaxv2sf.
11759         (vmaxnmq_f32): Likewise.
11760         (vmaxnmq_f64): Likewise.
11761         (vminnm_f32): Likewise.
11762         (vminnmq_f32): Likewise.
11763         (vminnmq_f64): Likewise.
11765 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11767         PR target/71806
11768         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
11769         enable -mfloat128-hardware by default.
11770         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
11771         that IEEE 128-bit hardware support needs.
11772         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11773         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
11774         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
11775         floating point requires.
11776         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11777         -mfloat128 and -mfloat128-hardware changes.
11779 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
11781         PR tree-optimization/71667
11782         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
11784 2016-07-08  Martin Liska  <mliska@suse.cz>
11786         PR middle-end/71606
11787         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
11788         folding produces SAVE_EXPRs, thus return false for the type.
11790 2016-07-07  Martin Liska  <mliska@suse.cz>
11792         * file-find.c (remove_prefix): New function.
11793         * file-find.h (remove_prefix): Declare the function.
11794         * gcc-ar.c (main): Skip a folder of the wrapper if
11795         a wrapped binary would point to the same file.
11797 2016-07-07  Jan Hubicka  <jh@suse.cz>
11799         * tree-scalar-evolution.c (iv_can_overflow_p): export.
11800         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
11801         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
11803 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11805         PR ipa/71624
11806         * ipa-inline-analysis.c (compute_inline_parameters): Set
11807         local.can_change_signature to false for intrumentation
11808         thunk callees.
11810 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11812         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
11813         with TARGET_HAVE_MOVT.
11814         (TARGET_HAVE_MOVT): Define.
11815         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
11816         availability with TARGET_HAVE_MOVT.
11817         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
11818         availability.
11819         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
11820         TARGET_THUMB2.
11821         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
11822         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
11823         * config/arm/constraints.md (define_constraint "j"): Use
11824         TARGET_HAVE_MOVT to check MOVT availability.
11826 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11828         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
11830 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11832         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
11833         (armv8-m.main): Likewise.
11834         (armv8-m.main+dsp): Likewise.
11835         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
11836         (FL_FOR_ARCH8M_MAIN): Likewise.
11837         * config/arm/arm-tables.opt: Regenerate.
11838         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
11839         armv8-m.main+dsp to BE8_LINK_SPEC.
11840         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
11841         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
11842         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
11843         Baseline and Mainline.
11844         (arm_option_override_internal): Also disable arm_restrict_it when
11845         !arm_arch_notm.  Update comment for -munaligned-access to also cover
11846         ARMv8-M Baseline.
11847         (arm_file_start): Increase buffer size for printing architecture name.
11848         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
11849         and armv8-m.main+dsp.
11850         (mno-unaligned-access): Clarify that this is disabled by default for
11851         ARMv8-M Baseline architectures as well.
11853 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11855         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
11856         decide whether to prevent some libgcc routines being included for some
11857         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
11858         link between this condition and the one in
11859         libgcc/config/arm/lib1func.S.
11861 2016-07-07  Richard Biener  <rguenther@suse.de>
11863         * tree-ssa-pre.c: Include alias.h.
11864         (compute_avail): If we have multiple VN_REFERENCEs with the
11865         same hashtable entry adjust that to make it a valid replacement
11866         for all of them with respect to alignment and aliasing
11867         when doing insertion.
11868         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
11869         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
11871 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
11873         PR target/70098
11874         PR target/71763
11875         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11876         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
11877         constraint.
11879 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11881         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
11882         (adjust_mems): Adjust.
11883         (adjust_insn): Likewise.
11884         (prepare_call_arguments): Likewise.
11886 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11888         * gcse.c (struct ls_expr): Make stores field a vector.
11889         (ldst_entry): Adjust.
11890         (free_ldst_entry): Likewise.
11891         (print_ldst_list): Likewise.
11892         (compute_ld_motion_mems): Likewise.
11893         (update_ld_motion_stores): Likewise.
11895 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11897         * gcse.c (struct ls_expr): Remove loads field.
11898         (ldst_entry): Adjust.
11899         (free_ldst_entry): Likewise.
11900         (print_ldst_list): Likewise.
11901         (compute_ld_motion_mems): Likewise.
11903 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11905         * store-motion.c (struct st_expr): Make antic_stores a vector.
11906         (st_expr_entry): Adjust.
11907         (free_st_expr_entry): Likewise.
11908         (print_store_motion_mems): Likewise.
11909         (find_moveable_store): Likewise.
11910         (compute_store_table): Likewise.
11911         (remove_reachable_equiv_notes): Likewise.
11912         (replace_store_insn): Likewise.
11913         (build_store_vectors): Likewise.
11915 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11917         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
11918         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
11920 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
11922         PR tree-optimization/71518
11923         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
11924         misalign also for outer loops with negative step.
11926 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
11928         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
11929         (cortex_a53_shift): Add mov_shift.
11930         (cortex_a53_shift_reg): Add new reservation for register shifts.
11931         (cortex_a53_alu): Remove bfm.
11932         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
11933         (cortex_a53_alu_extr): Add new reservation for EXTR.
11934         (bypasses): Improve bypass modelling.
11936 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11938         PR target/50739
11939         * config/avr/avr.c (avr_asm_select_section): Strip off
11940         SECTION_DECLARED from flags when calling get_section.
11942 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11944         * tree-vectorizer.h (vect_memory_access_type): Add
11945         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
11946         * tree-vect-stmts.c (compare_step_with_zero): New function.
11947         (perm_mask_for_reverse): Move further up file.
11948         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
11949         step is negative.
11950         (get_negative_load_store_type): New function.
11951         (get_load_store_type): Call it.  Add an ncopies argument.
11952         (vectorizable_mask_load_store): Update call accordingly and
11953         remove tests for negative steps.
11954         (vectorizable_store, vectorizable_load): Likewise.  Handle new
11955         memory_access_types.
11957 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11959         * tree-vectorizer.h (vect_memory_access_type): New enum.
11960         (_stmt_vec_info): Add a memory_access_type field.
11961         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
11962         (vect_model_store_cost): Take an access type instead of a boolean.
11963         (vect_model_load_cost): Likewise.
11964         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
11965         vect_model_store_cost and vect_model_load_cost.
11966         * tree-vect-stmts.c (vec_load_store_type): New enum.
11967         (vect_model_store_cost): Take an access type instead of a
11968         store_lanes_p boolean.  Simplify tests.
11969         (vect_model_load_cost): Likewise, but for load_lanes_p.
11970         (get_group_load_store_type, get_load_store_type): New functions.
11971         (vectorizable_store): Use get_load_store_type.  Record the access
11972         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
11973         (vectorizable_load): Likewise.
11974         (vectorizable_mask_load_store): Likewise.  Replace is_store
11975         variable with vls_type.
11977 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11979         * tree-vectorizer.h (vect_grouped_load_supported): Add a
11980         single_element_p parameter.
11981         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11982         Check the PR65518 case here rather than in vectorizable_load.
11983         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
11984         * tree-vect-stmts.c (vectorizable_load): Likewise.
11986 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11988         * tree-vectorizer.h (gather_scatter_info): New structure.
11989         (vect_check_gather_scatter): Return a bool rather than a decl.
11990         Replace return-by-pointer arguments with a single
11991         gather_scatter_info *.
11992         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
11993         (vect_analyze_data_refs): Update call accordingly.
11994         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11995         (vectorizable_mask_load_store): Likewise.  Also record the
11996         offset dt and vectype in the gather_scatter_info.
11997         (vectorizable_store): Likewise.
11998         (vectorizable_load): Likewise.
12000 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12002         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
12003         strided groups, use the cost of N scalar accesses instead
12004         of ncopies vector accesses.
12005         (vect_model_load_cost): Likewise.
12007 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12009         * tree-vect-stmts.c (vect_cost_group_size): Delete.
12010         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
12011         variable to indicate when once-per-group costs are being used.
12012         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
12014 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12016         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
12017         peeling-for-gaps condition.
12019 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12021         * config/s390/s390.c (s390_expand_vec_init): Force initializer
12022         element to register if it doesn't match general_operand.
12024 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12025             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12027         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
12028         prototype.
12029         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
12030         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
12031         (SIGNBIT): New mode iterator.
12032         (Fsignbit): New mode attribute.
12033         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
12034         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
12035         when direct moves are available.
12036         (signbit<mode>2_dm): New define_insn_and_split).
12037         (signbit<mode>2_dm2): New define_insn.
12039 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12041         PR rtl-optimization/71594
12042         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
12043         into subregs of appropriate mode before trying to emit a conditional
12044         move.
12046 2016-07-05  Jan Hubicka  <jh@suse.cz>
12048         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
12049         (simple_iv): Use it.
12051 2016-07-05  Jan Hubicka  <jh@suse.cz>
12053         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
12055 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
12057         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
12058         "offmemok".
12060 2016-07-05  Jan Hubicka  <jh@suse.cz>
12062         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
12063         IV can overflow.
12065 2016-07-05  Richard Biener  <rguenther@suse.de>
12067         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
12068         Handle empty else block.
12069         (is_feasible_trace): Likewise.
12070         (split_paths): Likewise.
12072 2016-07-05  Richard Biener  <rguenther@suse.de>
12074         * tree-loop-distribution.c (distribute_loop): Fix issue with
12075         the cost model loop.
12077 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
12079         * config/arm/neon-testgen.ml: Delete.
12080         * config/arm/neon.ml: Delete.
12082 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
12084         PR c++/71739
12085         * tree.c (attribute_value_equal): Use get_attribute_name instead of
12086         directly using TREE_PURPOSE.
12088 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
12090         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
12091         * config/aarch64/aarch64_neon.h: Likewise.
12092         * config/aarch64/arm_neon.h: Likewise.
12093         * config/aarch64/atomics.md: Likewise.
12094         * config/aarch64/aarch64-simd-builtins.def: Likewise.
12095         * doc/invoke.texi: Likewise.
12097 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12099         * config/s390/s390.md: Add "z13" cpu_facility.
12100         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
12101         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
12102         condition" type instructions.
12104 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12105             Jeff Law  <law@redhat.com>
12107         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
12108         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
12110 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
12112         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
12113         permutation for TARGET_AVX512F.
12114         (ix86_expand_vec_one_operand_perm_avx512): New function.
12115         (expand_vec_perm_1): Invoke introduced function.
12116         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12117         it may be not valid after vectorization.
12119 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12121         PR target/63874
12122         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
12123         typo in comment.  Only force to memory if it is a weak
12124         external reference.
12126 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
12127             Jiong Wang  <jiong.wang@arm.com>
12129         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
12130         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
12131         (AARCH64_FL_F16): New.
12132         (AARCH64_FL_FOR_ARCH8_2): New.
12133         (AARCH64_ISA_8_2): New.
12134         (AARCH64_ISA_F16): New.
12135         (TARGET_FP_F16INST): New.
12136         (TARGET_SIMD_F16INST): New.
12137         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
12138         ("fp"): Disabling "fp" also disables "fp16".
12139         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
12140         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
12141         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
12142         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
12144 2016-07-04  Jan Beulich  <jbeulich@suse.com>
12146         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
12148 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12150         PR target/71720
12151         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
12152         the insns, use an insn form that does not adjust the offset on
12153         little endian systems.
12155 2016-07-01  Jan Beulich  <jbeulich@suse.com>
12157         * varasm.c (get_variable_section): Validate initializer in
12158         named .bss-like sections.
12160 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12162         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
12163         Exchange the order of the second and third operands in the vpermr
12164         instruction tmeplate.
12166 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
12168         PR target/71698
12169         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
12170         Disallow TDmode values.
12172 2016-07-01  Alan Modra  <amodra@gmail.com>
12174         PR rtl-optimization/71709
12175         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
12176         being set, not referenced.
12178 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12180         PR tree-optimization/70729
12181         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
12182         of loop since it can be not valid after transformation.
12184 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12186         * config/arm/arm.c (thumb_reload_in_hi): Delete.
12187         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
12189 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
12191         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
12192         for NULL decl.
12194 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
12196         PR target/71677
12197         * config/rs6000/constraints.md (wY constraint): New constraint to
12198         match the requirements for the LXSD and STXSD instructions.
12199         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
12200         predicate to match the requirements for the LXSD and STXSD
12201         instructions.
12202         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
12203         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
12204         to make sure that the bottom 2 bits of offset are 0, the address
12205         form is offsettable, and no updating is done in the address mode.
12206         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
12207         (movdi_internal32): Likewise
12208         (movdi_internal64): Likewise.
12210 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
12212         PR tree-optimization/71707
12213         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
12214         strinfo even for ADDR_EXPR ptr.
12216 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12218         * config/rs6000/altivec.md (darn_32): Change the condition to
12219         TARGET_P9_MISC instead of TARGET_MODULO.
12220         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
12221         condition expression.
12222         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
12223         condition expression.
12224         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
12225         (DFP_TEST): New code iterator.
12226         (dfptstsfi_<code>_mode>): New define_expand.
12227         (*dfp_sgnfcnc_<mode>): New define_insn.
12228         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
12229         definition next to BU_P9_MISC_1 definition and change the MASK
12230         value to RS6000_BTM_P9_MISC.
12231         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
12232         (BU_P9_64BIT_MISC_0): Likewise.
12233         (BU_P9_DFP_MISC_0): New macro definition.
12234         (BU_P9_DFP_MISC_1): New macro definition.
12235         (BU_P9_DFP_MISC_2): New macro definition.
12236         (BU_P9_DFP_OVERLOAD_1): New macro definition.
12237         (BU_P9_DFP_OVERLOAD_2): New macro definition.
12238         (BU_P9_DFP_OVERLOAD_3): New macro definition.
12239         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
12240         (TSTSFI_LT_TD): Likewise.
12241         (TSTSFI_EQ_DD): Likewise.
12242         (TSTSFI_EQ_TD): Likewise.
12243         (TSTSFI_GT_DD): Likewise.
12244         (TSTSFI_GT_TD): Likewise.
12245         (TSTSFI_OV_DD): Likewise.
12246         (TSTSFI_OV_TD): Likewise.
12247         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
12248         (TSTSFI_LT_DD): Likewise.
12249         (TSTSFI_LT_TD): Likewise.
12250         (TSTSFI_EQ): Likewise.
12251         (TSTSFI_EQ_DD): Likewise.
12252         (TSTSFI_EQ_TD): Likewise.
12253         (TSTSFI_GT): Likewise.
12254         (TSTSFI_GT_DD): Likewise.
12255         (TSTSFI_GT_TD): Likewise.
12256         (TSTSFI_OV): Likewise.
12257         (TSTSFI_OV_DD): Likewise.
12258         (TSTSFI_OV_TD): Likewise.
12259         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12260         overloaded test significance functions.
12261         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12262         OPTION_MASK_P9_MISC into the representation of this mask.
12263         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
12264         of this mask.
12265         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
12266         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
12267         non-zero.
12268         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
12269         argument is a 6-bit unsigned literal value if the icode argument
12270         represents a DFP test significance built-in call.
12271         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
12272         flag used independently and in combination with the
12273         RS6000_BTM_64BIT flag.
12274         (rs6000_opt_masks): Add entry for power9-misc command-line option.
12275         (rs6000_builtin_mask_names): Add entry for power9-misc
12276         command-line option.
12277         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
12278         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
12279         RS6000_BTM_P9_MISC macros.
12280         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
12281         option and change the description of the -mpower9-vector option to
12282         enable only vector instructions, removing its erroneously claimed
12283         support for scalar instructions.
12284         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12285         the ISA 3.0 digital floating point test significance built-in
12286         functions.
12288 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
12290         * config/aarch64/aarch64.c (cortexa35_tunings):
12291         Enable AES fusion.  Use cortexa57_branch_cost.
12292         (cortexa53_tunings): Use cortexa57_branch_cost.
12293         (cortexa72_tunings): Use cortexa57_branch_cost.
12294         Use AUTOPREFETCHER_WEAK.
12295         (cortexa73_tunings): Use cortexa57_branch_cost.
12297 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12298             James Greenhalgh  <james.greenhalgh@arm.com>
12300         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
12301         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
12302         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
12303         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
12304         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
12305         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
12306         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
12307         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
12308         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
12309         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
12310         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
12311         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
12312         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
12313         New intrinsics.
12315 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
12316             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12318         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
12319         New define_insn.
12320         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
12322 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
12324         PR driver/71651
12325         * gcc.c (driver::build_option_suggestions): Pass "option" to
12326         add_misspelling_candidates.
12327         * opts-common.c (add_misspelling_candidates): Add "option" param;
12328         use it to avoid adding negated forms for options marked with
12329         RejectNegative.
12330         * opts.h (add_misspelling_candidates): Add "option" param.
12332 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
12334         PR middle-end/71693
12335         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
12336         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
12337         first when permuting bitwise operation with rotate.  Cast
12338         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
12340 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
12342         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
12343         for misspelled param names.
12344         * params.c: Include spellcheck.h.
12345         (find_param_fuzzy): New function.
12346         * params.h (find_param_fuzzy): New prototype.
12347         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
12348         * spellcheck.h (struct edit_distance_traits<const char *>):
12349         ...here.
12351 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
12353         * config/rs6000/predicates.md (const_0_to_7_operand): New
12354         predicate, recognize 0..7.
12355         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12356         support for doing extracts from V16QImode, V8HImode, V4SImode
12357         under ISA 3.0.
12358         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
12359         vector extract support.
12360         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
12361         for ISA 3.0 vector extract.
12362         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
12363         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
12364         extracts of a constant element number from small integer vectors
12365         on 64-bit ISA 3.0 systems.
12366         (vsx_extract_<mode>_di): Likewise.
12367         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
12368         say when we can do ISA 3.0 vector extracts.
12369         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
12370         registers, using the stxsiwx instruction.
12372 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
12374         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
12375         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
12376         qdf24xx_regmove_cost, qdf24xx_tunings): New.
12377         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
12378         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
12379         * config/arm/arm.c (arm_qdf24xx_tune): New.
12381 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
12383         * config/aarch64/aarch64.c (cortexa53_tunings):
12384         Increase loop alignment to 8.  Set function alignment to 16.
12385         (cortexa35_tunings): Likewise.
12386         (cortexa57_tunings): Increase loop alignment to 8.
12387         (cortexa72_tunings): Likewise.
12388         (cortexa73_tunings): Likewise.
12390 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12392         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
12393         for arm_fp16_ok and arm_fp16_hw.
12394         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
12395         arm_fp16_alternative.
12397 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12399         PR tree-optimization/71655
12400         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
12401         types when swapping operands.
12403 2016-06-29  Martin Liska  <mliska@suse.cz>
12405         PR middle-end/71585
12406         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
12407         * ipa-inline-transform.c (inline_call): Remove unnecessary call
12408         of build_optimization_node.
12410 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
12412         PR tree-optimization/70729
12413         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
12414         independent in loops having positive safelen value.
12415         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
12416         it may be not valid after vectorization.
12418 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
12420         PR tree-optimization/71625
12421         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
12422         is sorted by ascending list->offset.  If PTR is non-NULL and there is
12423         previous strinfo, call get_stridx_plus_constant.
12424         (get_stridx): Pass exp as second argument to get_addr_stridx.
12425         (addr_stridxptr): Add missing list = list->next, so that there can be
12426         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
12427         the list is sorted by ascending list->offset.
12428         (get_stridx_plus_constant): Adjust so that it can be also called with
12429         ADDR_EXPR instead of SSA_NAME as PTR.
12430         (handle_char_store): Pass NULL_TREE as second argument to
12431         get_addr_stridx.
12433 2016-06-29  Richard Biener  <rguenther@suse.de>
12435         PR rtl-optimization/68961
12436         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
12438 2016-06-29  Richard Biener  <rguenther@suse.de>
12440         PR middle-end/71002
12441         * alias.c (component_uses_parent_alias_set_from): Handle
12442         type punning through union accesses by using the union alias set.
12443         * gimple.c (gimple_get_alias_set): Remove union type punning case.
12445 2016-07-29  Richard Biener  <rguenther@suse.de>
12447         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
12448         precision not matching mode precision.
12450 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
12452         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
12453         pa_output_arg_descriptor.
12454         (call_val_symref_64bit_post_reload): Likewise.
12455         (call_val_powf_64bit_post_reload): Likewise.
12456         (sibcall_internal_symref_64bit): Likewise.
12457         (sibcall_value_internal_symref_64bit): Likewise.
12459 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
12461         PR middle-end/71626
12462         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
12463         a constant, force its SUBREG_REG into memory or register instead
12464         of whole op1.
12466 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12468         PR target/58655
12469         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
12470         * doc/invoke.texi (AVR Options): Document it.
12472 2016-06-28  Walter Lee  <walt@tilera.com>
12474         * config/tilegx/linux.h: Do not include arch/icache.h
12475         (CLEAR_INSN_CACHE): Provide inlined definition directly.
12476         * config/tilepro/linux.h: Do not include arch/icache.h
12477         (CLEAR_INSN_CACHE): Provide inlined definition directly.
12479 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
12481         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
12482         for big-endian BIT_FIELD_REF.
12484 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
12486         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
12487         ('size' attribute): Add '128'.
12488         Include power9.md.
12489         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
12490         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
12491         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
12492         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
12493         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
12494         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
12495         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
12496         *trunc<mode>df2_odd): Set size attribute to '128'.
12497         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
12498         * config/rs6000/power6.md (power6-fp): Include dfp type.
12499         * config/rs6000/power7.md (power7-fp): Likewise.
12500         * config/rs6000/power8.md (power8-fp): Likewise.
12501         * config/rs6000/power9.md: New file.
12502         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
12503         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
12504         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
12505         htmsimple.
12506         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
12507         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12508         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
12509         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
12510         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
12511         dfp_dscri_<mode>): Change type attribute to dfp.
12512         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
12513         attribute to vecsimple.
12514         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
12515         and prefetch streams.
12516         (rs6000_option_override_internal): Remove temporary code setting
12517         tuning to power8.  Don't set rs6000_sched_groups for power9.
12518         (last_scheduled_insn): Change to rtx_insn *.
12519         (divide_cnt, vec_load_pendulum): New variables.
12520         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
12521         (rs6000_issue_rate): Set issue rate for Power9.
12522         (is_power9_pairable_vec_type): New.
12523         (power9_sched_reorder2): New.
12524         (rs6000_sched_reorder2): Call new function for Power9 specific
12525         reordering.
12526         (insn_must_be_first_in_group): Remove Power9.
12527         (insn_must_be_last_in_group): Likewise.
12528         (force_new_group): Likewise.
12529         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
12530         Initialize divide_cnt/vec_load_pendulum.
12531         (_rs6000_sched_context, rs6000_init_sched_context,
12532         rs6000_set_sched_context): Handle context save/restore of new
12533         variables.
12535 2016-06-28  Richard Biener  <rguenther@suse.de>
12537         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12538         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
12539         COMPONENT_REF operand.
12540         (nonoverlapping_component_refs_p): Likewise.
12541         * stor-layout.c (start_bitfield_representative): Mark
12542         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
12544 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
12546         * Makefile.in: Don't cat ../stage_current if it does not exist.
12548         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
12549         last argument is a bit-field.
12551         PR rtl-optimization/71673
12552         * internal-fn.c (expand_arith_overflow_result_store): Use
12553         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
12554         expand_simple_binop.
12556         PR middle-end/66867
12557         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
12558         expand_ifn_atomic_compare_exchange): New functions.
12559         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
12560         * tree.h (build_call_expr_internal_loc): Rename to ...
12561         (build_call_expr_internal_loc_array): ... this.  Fix up type of
12562         last argument.
12563         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
12564         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
12565         ATOMIC_COMPARE_EXCHANGE result.
12566         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
12567         * gimple-fold.h (optimize_atomic_compare_exchange_p,
12568         fold_builtin_atomic_compare_exchange): New prototypes.
12569         * gimple-fold.c (optimize_atomic_compare_exchange_p,
12570         fold_builtin_atomic_compare_exchange): New functions..
12571         * tree-ssa.c (execute_update_addresses_taken): If
12572         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
12573         of call when finding addressable vars, and if such var becomes
12574         non-addressable, call fold_builtin_atomic_compare_exchange.
12576 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
12578         PR target/71670
12579         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
12580         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
12582 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
12584         * config/rs6000/rs6000.md ('type' attribute): Add
12585         veclogical,veccmpfx,vecexts,vecmove insn types.
12586         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
12587         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
12588         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
12589         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
12590         *nabs<mode>2_hw): Change type to vecmove.
12591         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
12592         *boolcc<mode>3_internal, *eqv<mode>3_internal,
12593         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
12594         *ieee_128bit_vsx_abs<mode>2_internal,
12595         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
12596         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
12597         *ieee128_mtvsrd_32bit): Change type to veclogical.
12598         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12599         *movdi_internal32, *movdi_internal64): Update insn types.
12600         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
12601         vsx_extract_<mode>): Change type to veclogical.
12602         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
12603         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
12604         *vsx_sign_extend_si_v2di): Change type to vecexts.
12605         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
12606         type to veclogical.
12607         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
12608         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
12609         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
12610         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
12611         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12612         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
12613         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
12614         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
12615         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
12616         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
12617         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
12618         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
12619         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
12620         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
12621         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
12622         (ppc7450-vecsimple): Add veclogical, vecmove.
12623         (ppc7450-veccmp): Add veccmpfx.
12624         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
12625         vecmove.
12626         (ppc8540_vector_compare): Add veccmpfx.
12627         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
12628         * config/rs6000/cell.md (cell-fp): Add fpsimple.
12629         (cell-vecsimple): Add veclogical, vecmove.
12630         (cell-veccmp): Add veccmpfx.
12631         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
12632         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
12633         veccmpfx.
12634         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
12635         * config/rs6000/power4.md (power4-fp): Add fpsimple.
12636         (power4-vecsimple): Add veclogical, vecmove.
12637         (power4-veccmp): Add veccmpfx.
12638         * config/rs6000/power5.md (power5-fp): Add fpsimple.
12639         * config/rs6000/power6.md (power6-fp): Add fpsimple.
12640         (power6-vecsimple): Add veclogical, vecmove.
12641         (power6-veccmp): Add veccmpfx.
12642         * config/rs6000/power7.md (power7-fp): Add fpsimple.
12643         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
12644         * config/rs6000/power8.md (power8-fp): Add fpsimple.
12645         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
12646         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
12647         * config/rs6000/titan.md (titan_fp): Add fpsimple.
12648         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
12649         fpsimple.
12650         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
12652 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
12654         PR target/71656
12655         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
12656         OPTION_MASK_P9_DFORM_VECTOR.
12657         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12658         disable -mpower9-dform-vector when using reload.
12659         (quad_address_p): Remove 'gpr_p' argument and all associated code.
12660         New 'strict' argument.  Update all callers.  Add strict addressing
12661         support.
12662         (rs6000_legitimate_offset_address_p): Remove call to
12663         virtual_stack_registers_memory_p.
12664         (rs6000_legitimize_reload_address): Add quad address support.
12665         (rs6000_legitimate_address_p): Move call to quad_address_p above
12666         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
12667         to account for new strict usage.
12668         (rs6000_output_move_128bit): Adjust quad_address_p args to account
12669         for new strict usage.
12670         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
12672 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
12674         PR target/70902
12675         PR target/71453
12676         PR target/71555
12677         PR target/71596
12678         PR target/71657
12679         * config/i386/i386.c (ix86_spill_class): Disable condition to
12680         always return NO_REGS.
12682 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
12684         * predict.c: Include gimple-pretty-print.h
12685         (predicted_by_loop_heuristics_p): Check also
12686         PRED_LOOP_EXIT_WITH_RECURSION
12687         (predict_loops): Find self recursive calls and use special purpose
12688         predictors for them; dump log about decisions.
12689         (pass_profile::execute): Dump info about #of iterations.
12690         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
12691         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
12693 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
12695         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
12696         output_asm_insn calls and shorten long lines.  Output .CALL
12697         argument descriptor using pa_output_arg_descriptor.  Add various
12698         inline $$dyncall and other optimizations.
12699         (pa_attr_length_indirect_call): Adjust ordering and lengths.
12701 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
12703         PR tree-optimization/71643
12704         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
12705         EH preds.
12707         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
12708         leak a bitmap if dep_bb is NULL.
12710         PR tree-optimization/71631
12711         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
12712         to rewrite_expr_tree even if negate_result, move new_lhs var
12713         declaration and initialization earlier, for powi_result set afterwards
12714         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
12715         if new_lhs != lhs, and don't shadow gsi var.
12717 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
12719         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
12720         Add in_loop parameter.
12721         (predict_loops): Add loop guard heuristics.
12722         * predict.def (PRED_LOOP_GUARD): New heuristics.
12724 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
12726         * predict.c: Include ipa-utils.h
12727         (tree_bb_level_prediction): Predict recursive calls.
12728         (tree_estimate_probability_bb): Skip inexpensive calls for call
12729         predictor.
12730         * predict.def (PRED_RECURSIVE_CALL): New.
12732 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12734         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
12735         (BU_FLOAT128_1): Likewise.
12736         (FABSQ): Likewise.
12737         (COPYSIGNQ): Likewise.
12738         (RS6000_BUILTIN_NANQ): Likewise.
12739         (RS6000_BUILTIN_NANSQ): Likewise.
12740         (RS6000_BUILTIN_INFQ): Likewise.
12741         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
12742         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
12743         (TARGET_FOLD_BUILTIN): New #define.
12744         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
12745         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
12746         (rs6000_fold_builtin): New target hook implementation, handling
12747         folding of 128-bit NaNs and infinities.
12748         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
12749         entries are filled in to avoid problems during bootstrap
12750         self-test; define builtins for 128-bit NaNs and infinities.
12751         (rs6000_opt_mask): Add entry for float128.
12752         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
12753         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
12754         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
12755         (const_str_type_node): New #define.
12756         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
12757         to a define_expand that dispatches to either copysign<mode>3_soft
12758         or copysign<mode>3_hard.
12759         (copysign<mode>3_hard): Rename from copysign<mode>3.
12760         (copysign<mode>3_soft): New define_insn.
12761         * doc/extend.texi: Document new builtins.
12763 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
12765         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
12766         PRIu64 instead of lu.
12768 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
12770         PR debug/71642
12771         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
12772         copy the type name.
12774 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
12776         PR tree-optimization/71647
12777         * omp-low.c (lower_rec_input_clauses): Convert
12778         omp_clause_aligned_alignment (c) to size_type_node for the
12779         last argument of __builtin_assume_aligned.
12781 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12783         * configure.ac (calling ___tls_get_addr via GOT): New
12784         assembler/linker check.
12785         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
12786         assembler and linker supports calling ___tls_get_addr via GOT.
12787         Otherise, defined to 0.
12788         * config.in: Regenerated.
12789         * configure: Likewise.
12790         * config/i386/constraints.md (Yb): New constraint.
12791         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
12792         (REG_CLASS_NAMES): Likewise.
12793         (REG_CLASS_CONTENTS): Likewise.
12794         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
12795         the b constraint with the Yb constraint.  Call ___tls_get_addr
12796         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
12797         is 1.
12798         (*tls_local_dynamic_base_32_gnu): Likewise.
12799         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
12800         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
12801         (*tls_local_dynamic_base_64_<mode>): Likewise.
12803 2016-06-24  Martin Liska  <mliska@suse.cz>
12805         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
12806         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
12807         few functions.
12808         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
12809         argument to true if the expected number of iterations is
12810         loop-based.
12812 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
12814         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
12815         assemble for 32bit target.
12816         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
12817         and $ld_ix86_gld_32_opt to link for 32bit target.
12818         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
12819         * configure: Regenerate.
12821 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12823         * config/arm/arm.c (int_log2): Delete definition and prototype.
12824         (shift_op): Use exact_log2 instead of int_log2.
12825         (vfp3_const_double_for_fract_bits): Likewise.
12827 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
12829         * internal-fn.c (expand_arith_set_overflow): New function.
12830         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
12831         Use it.
12832         (expand_arith_overflow_result_store): Likewise.  Handle precision
12833         smaller than mode precision.
12834         * tree-vrp.c (extract_range_basic): For imag part, handle
12835         properly signed 1-bit precision result.
12836         * doc/extend.texi (__builtin_add_overflow): Document that last
12837         argument can't be pointer to enumerated or boolean type.
12838         (__builtin_add_overflow_p): Document that last argument can't
12839         have enumerated or boolean type.
12841 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12842             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12844         * config/rs6000/predicates.md (splat_input_operand): Rework.
12845         Don't allow constants, since the insns that use this predicate
12846         don't support constants.  Constants are handled by other insns
12847         that are created via combine.  During and after register
12848         allocation, only allow indexed or indirect addresses, and not
12849         general addresses.  Only allow modes supported by the hardware.
12850         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
12851         comment.  Move check for using VSPLTIS<x> to a common location,
12852         instead of doing it in two different places.
12854 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
12856         * config/i386/driver-i386.c (host_detect_local_cpu): Set
12857         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
12858         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
12859         signature_CENTAUR_ebx.
12861 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12863         PR target/66232
12864         PR target/67400
12865         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
12866         (as_ix86_gas_32_opt): This.
12867         (ld_ix86_tls_ldm_opt): Renamed to ...
12868         (ld_ix86_gld_32_opt): This.
12869         (R_386_TLS_LDM reloc): Updated.
12870         (R_386_GOT32X reloc): New assembler/linker check.
12871         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
12872         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
12873         defined to 0.
12874         * config.in: Regenerated.
12875         * configure: Likewise.
12876         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
12877         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
12878         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
12879         if ix86_force_load_from_GOT_p returns true.
12880         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
12881         ix86_force_load_from_GOT_p returns true.
12882         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
12883         the external function address via the GOT slot.
12884         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
12885         HAVE_AS_IX86_GOT32X before returning false.
12886         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
12887         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
12889 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
12891         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
12893 2016-06-23  Andi Kleen  <ak@linux.intel.com>
12895         * Makefile.in: Regenerate.
12896         * doc/install.texi: Document autoprofiledbootstrap.
12898 2016-06-23  Andi Kleen  <ak@linux.intel.com>
12900         * config/i386/gcc-auto-profile: New file.
12902 2016-06-23  Martin Liska  <mliska@suse.cz>
12904         PR middle-end/71619
12905         * predict.c (predict_loops): Revert the hunk that was removed
12906         in r237103.
12908 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
12910         * config.gcc: Add support for arm*-*-phoenix* targets.
12911         * config/arm/t-phoenix: New.
12912         * config/phoenix.h: New.
12914 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
12915             H.J. Lu  <hongjiu.lu@intel.com>
12917         PR target/67400
12918         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
12919         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
12920         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
12921         ix86_force_load_from_GOT_p returns true.
12922         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
12923         ix86_force_load_from_GOT_p returns true.
12924         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
12925         ix86_force_load_from_GOT_p returns true.
12926         (ix86_expand_move): Load the external function address via the
12927         GOT slot if ix86_force_load_from_GOT_p returns true.
12928         * config/i386/predicates.md (x86_64_immediate_operand): Return
12929         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
12930         (x86_64_zext_immediate_operand): Ditto.
12932 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
12934         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
12936 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
12938         PR c/70339
12939         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
12940         * diagnostic.c (pedwarn_at_rich_loc): New function.
12941         * spellcheck.h (best_match::best_match): Add a
12942         "best_distance_so_far" optional parameter.
12943         (best_match::set_best_so_far): New method.
12944         (best_match::get_best_distance): New accessor.
12945         (best_match::get_best_candidate_length): New accessor.
12947 2016-06-22  Nick Clifton  <nickc@redhat.com>
12949         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
12950         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
12951         modes are accepted as well.
12952         (ucompare_loc_descriptor): Likewise.
12953         (minmax_loc_descriptor): Likewise.
12954         (clz_loc_descriptor): Likewise.
12955         (popcount_loc_descriptor): Likewise.
12956         (bswap_loc_descriptor): Likewise.
12957         (rotate_loc_descriptor): Likewise.
12958         (mem_loc_descriptor): Likewise.
12959         (loc_descriptor): Likewise.
12961 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
12963         * common.opt (fdiagnostics-parseable-fixits): New option.
12964         * diagnostic.c: Include "selftest.h".
12965         (print_escaped_string): New function.
12966         (print_parseable_fixits): New function.
12967         (diagnostic_report_diagnostic): Call print_parseable_fixits.
12968         (selftest::assert_print_escaped_string): New function.
12969         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
12970         (selftest::test_print_escaped_string): New function.
12971         (selftest::test_print_parseable_fixits_none): New function.
12972         (selftest::test_print_parseable_fixits_insert): New function.
12973         (selftest::test_print_parseable_fixits_remove): New function.
12974         (selftest::test_print_parseable_fixits_replace): New function.
12975         (selftest::diagnostic_c_tests): New function.
12976         * diagnostic.h (struct diagnostic_context): Add field
12977         "parseable_fixits_p".
12978         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12979         -fdiagnostics-parseable-fixits.
12980         (-fdiagnostics-parseable-fixits): New option.
12981         * opts.c (common_handle_option): Handle
12982         -fdiagnostics-parseable-fixits.
12983         * selftest-run-tests.c (selftest::run_tests): Call
12984         selftest::diagnostic_c_tests.
12985         * selftest.h (selftest::diagnostic_c_tests): New prototype.
12987 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
12989         PR tree-optimization/71488
12990         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
12991         comparison of boolean vectors.
12992         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
12993         of boolean vectors using bitwise operations.
12995 2016-06-22  Andreas Schwab  <schwab@suse.de>
12997         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
12998         Remove declaration.
13000 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13002         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
13004 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13006         * config/i386/i386.c (print_reg): Emit an error message on attempt to
13007         print FLAGS_REG.
13009 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13011         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
13012         * config/arm/arm-cores.def (cortex-a73): New entry.
13013         (cortex-a73.cortex-a35): Likewise.
13014         (cortex-a73.cortex-a53): Likewise.
13015         * config/arm/arm-tables.opt: Regenerate.
13016         * config/arm/arm-tune.md: Likewise.
13017         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
13018         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
13019         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
13020         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
13021         * doc/invoke.texi (ARM Options): Document cortex-a73,
13022         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
13024 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13026         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
13027         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
13028         (cortex-a73.cortex-a35): Likewise.
13029         (cortex-a73.cortex-a53): Likewise.
13030         * config/aarch64/aarch64-tune.md: Regenerate.
13031         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
13032         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
13033         -mcpu and -mtune.
13035 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13037         * configure.ac (gcc_cv_as_compress_debug): Remove
13038         --compress-debug-sections as extra as switch.
13039         Handle gas --compress-debug-sections=type.
13040         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
13041         Handle gld --compress-debug-sections=type.
13042         * configure: Regenerate.
13044 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
13046         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
13048 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
13050         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
13051         (do_rewrite): likewise.
13053 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13055         * common/config/mep/mep-common.c: Remove.
13056         * config.gcc: Remove mep-* support.
13057         * config/mep/constraints.md: Remove.
13058         * config/mep/default.h: Remove.
13059         * config/mep/intrinsics.h: Remove.
13060         * config/mep/intrinsics.md: Remove.
13061         * config/mep/ivc2-template.h: Remove.
13062         * config/mep/mep-c5.cpu: Remove.
13063         * config/mep/mep-core.cpu: Remove.
13064         * config/mep/mep-default.cpu: Remove.
13065         * config/mep/mep-ext-cop.cpu: Remove.
13066         * config/mep/mep-intrin.h: Remove.
13067         * config/mep/mep-ivc2.cpu: Remove.
13068         * config/mep/mep-pragma.c: Remove.
13069         * config/mep/mep-protos.h: Remove.
13070         * config/mep/mep.c: Remove.
13071         * config/mep/mep.cpu: Remove.
13072         * config/mep/mep.h: Remove.
13073         * config/mep/mep.md: Remove.
13074         * config/mep/mep.opt: Remove.
13075         * config/mep/predicates.md: Remove.
13076         * config/mep/t-mep: Remove.
13077         * doc/install.texi: Remove mep-* documentation.
13078         * doc/md.texi: Likewise.
13080 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13082         * config.gcc: Remove support for avr-rtems.
13083         * config/avr/gen-avr-mmcu-specs.c: Likewise.
13084         * config/avr/rtems.h: Remove.
13085         * config/avr/t-rtems: Remove.
13087 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13089         * config.gcc: Remove m32r-rtems support.
13090         * config/m32r/rtems.h: Remove.
13092 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13094         * config.gcc: Remove h8300-rtems support.
13095         * config/h8300/rtems.h: Remove.
13096         * config/h8300/t-rtems: Remove.
13098 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13100         * config.gcc: Remove support for knetbsd.
13101         * configure.ac: Likewise.
13102         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
13103         * config/knetbsd-gnu.h: Remove.
13104         * configure: Regenerate.
13106 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13108         * config.gcc: Remove support for openbsd 2 and 3.
13109         * config/openbsd-oldgas.h: Remove.
13111 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13113         * config.gcc: Remove interix support.
13114         * config/i386/i386-interix.h: Remove.
13115         * config/i386/interix.opt: Remove.
13116         * config/i386/t-interix: Remove.
13117         * configure: Regenerate.
13118         * configure.ac: Remove interix support.
13119         * doc/install.texi: Remove interix documentation.
13121 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13123         * config/rs6000/rs6000.h: Add conditional preprocessing directives
13124         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
13125         not defined.
13127 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
13129         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
13130         they are both PLACEHOLDER_EXPRs.
13132 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13134         * stor-layout.c (layout_type): Move setting complex MODE to
13135         layout_type, instead of setting it ahead of time by the caller.
13136         * tree.c (build_complex_type): Likewise.
13138 2016-06-21  Martin Liska  <mliska@suse.cz>
13140         * predict.c (force_edge_cold): Replace imposisble with
13141         impossible.
13143 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
13145         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
13146         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
13148 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
13150         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
13152 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13153             Ilya Enkovich  <ilya.enkovich@intel.com>
13155         PR target/71549
13156         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
13157         New member function to convert V1TImode register to SUBREG
13158         TImode in debug insn.
13159         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
13160         after changing register mode to V1TImode.
13162 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
13164         * config/aarch64/aarch64-cores.def (vulcan): New core.
13165         * config/aarch64/aarch64-tune.md: Regenerate.
13166         * doc/invoke.texi: Document vulcan as an available option.
13168 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
13170         * cse.c (canon_asm_operands): New function extracted from...
13171         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
13172         either standalone or member of a PARALLEL.
13174 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
13176         PR target/30417
13177         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
13178         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
13179         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
13181 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
13183         PR target/71103
13184         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
13185         constant addresses if can_create_pseudo_p.
13187 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
13189         PR tree-optimization/71588
13190         * tree-ssa-strlen.c (valid_builtin_call): New function.
13191         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
13192         it.
13194 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
13196         PR middle-end/71581
13197         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
13198         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
13199         for conversion of scalar user var to complex type and use the
13200         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
13201         punt.
13203         PR rtl-optimization/71591
13204         * toplev.c (toplev::run_self_tests): If no_backend, complain and
13205         don't run any tests.
13207 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
13209         PR target/71571
13210         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
13211         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
13212         space for PIC with non-v32 and the common non-PIC "jump".
13214 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
13216         PR target/71559
13217         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
13218         returned values and add UN*/LTGT/*ORDERED cases with values matching
13219         D operand modifier on vcmp for AVX.
13221 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13223         * config/aarch64/aarch64.opt
13224         (mpc-relative-literal-loads): Rename internal option name.
13225         * config/aarch64/aarch64.c
13226         (aarch64_nopcrelative_literal_loads): Rename to
13227         aarch64_pcrelative_literal_loads.
13228         (aarch64_expand_mov_immediate): Likewise.
13229         (aarch64_secondary_reload): Likewise.
13230         (aarch64_can_use_per_function_literal_pools_p): Likewise.
13231         (aarch64_override_options_after_change_1): Rename and simplify logic.
13232         (aarch64_classify_symbol): Merge large model checks into switch,
13233         remove pc-relative load check.
13235 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
13237         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
13238         costs relative to the cost of a register move.
13240 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
13242         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
13243         (vcvt_n_f64_u64): Likewise.
13244         (vcvt_n_s64_f64): Likewise.
13245         (vcvt_n_u64_f64): Likewise.
13246         (vcvt_f64_s64): Likewise.
13247         (vrecpe_f64): Likewise.
13248         (vcvt_f64_u64): Likewise.
13249         (vrecps_f64): Likewise.
13251 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
13253         * config/aarch64/aarch64.md
13254         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
13255         iterators.
13256         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
13257         attributes.
13258         * config/aarch64/aarch64-builtins.c
13259         (aarch64_types_binop_uss_qualifiers): Delete.
13260         (TYPES_BINOP_USS): Likewise.
13261         (aarch64_types_binop_sus_qualifiers): Likewise.
13262         (TYPES_BINOP_SUS): Likewise.
13263         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
13264         (TYPES_FCVTIMM_SUS): Likewise.
13265         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
13266         rather than BINOP.
13267         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
13268         (fcvtzs): Use SHIFTIMM rather than BINOP.
13269         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
13271 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
13273         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
13274         costs relative to the cost of a register move.
13276 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13278         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
13279         Allow scalar/single vector modes to be tieable.
13281 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13283         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
13285 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13287         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
13288         "alignement".
13289         * tree.h (TYPE_ALIGN): Likewise.
13291 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
13293         PR target/71103
13294         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
13296 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
13298         * config/avr/avr.c (avr_print_operand): Fix "format not a string
13299         literal" build warnings.
13300         (avr_print_operand_address): Dito.
13302 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
13304         PR target/71375
13305         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
13306         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
13308 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
13310         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
13312 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13314         PR bootstrap/71435
13315         * reload1.c (reload): Pass 0 to finish_spills when called because
13316         update_eliminables_and_spill returns true and remove did_spill.
13317         (finish_spills): Adjust comment and document GLOBAL parameter.
13319 2016-06-17  DJ Delorie  <dj@redhat.com>
13321         PR target/71338
13322         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
13323         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
13324         (umulqihi3_virt): Likewise.
13325         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
13326         (umulqihi3_real): Likewise.
13328 2016-06-17  Martin Liska  <mliska@suse.cz>
13330         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
13332 2016-06-17  Martin Liska  <mliska@suse.cz>
13334         * predict.def: PRED_LOOP_EXIT from 92 to 85.
13336 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
13338         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
13339         __FAST_MATH__.
13340         (vaddq_f32): Likewise.
13341         (vmul_f32): Likewise.
13342         (vmulq_f32): Likewise.
13343         (vsub_f32): Likewise.
13344         (vsubq_f32): Likewise.
13346 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
13348         PR tree-optimization/71347
13349         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
13350         cost for all uses in group.
13352 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
13354         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
13355         insert gimple seq if it's not empty.
13357 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
13359         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
13360         member OFFSET.
13361         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
13362         rather than OFFSET.
13363         (comp_dr_with_seg_len_pair): Ditto.
13364         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
13365         struct dr_with_seg_len_pair against DR_OFFSET.
13366         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
13367         DR_OFFSET directly.
13369 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13371         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
13373 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
13375         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
13376         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
13377         (pa_output_millicode_call): Likewise.
13378         (pa_output_call): Likewise.
13379         (pa_output_indirect_call): Likewise.
13380         (pa_asm_output_mi_thunk): Likewise.
13382 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13384         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
13386 2016-06-16  Martin Liska  <mliska@suse.cz>
13388         * predict.c (combine_predictions_for_insn): When we find a first
13389         match predictor, we should consider just predictors with
13390         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
13391         DS theory predictor.
13392         (combine_predictions_for_bb): Likewise.
13394 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13396         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
13397         with base of reference to struct.
13399 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
13401         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
13403 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13405         PR target/71151
13406         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
13407         progmem_swtable_section.
13408         (progmem_swtable_section): Remove.
13409         (avr_asm_function_rodata_section): Remove.
13410         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13411         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
13413 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
13415         * config/i386/driver-i386.c (host_detect_local_cpu): Set
13416         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
13417         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
13418         signature_CENTAUR_ebx.
13419         * config/i386/i386.c (ix86_option_override_internal): Add
13420         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
13421         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
13422         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
13424 2016-06-16  Martin Liska  <mliska@suse.cz>
13426         * predict.def: Add fortran loop preheader predictor.
13427         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
13428         fold IFN_BUILTIN_EXPECT with a known constant argument.
13430 2016-06-16  Martin Liska  <mliska@suse.cz>
13432         * predict.def: Add 'Fortran' to display text of all
13433         PRED_FORTRAN_* predictors.
13435 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
13437         PR target/71242
13438         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
13439         [IA64_BUILTIN_NANSQ]: Ditto.
13440         (ia64_fold_builtin): New function.
13441         (TARGET_FOLD_BUILTIN): New define.
13442         (ia64_init_builtins) Declare const_string_type node.
13443         Add __builtin_nanq and __builtin_nansq builtin functions.
13444         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
13446 2016-06-16  Nick Clifton  <nickc@redhat.com>
13448         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
13449         MSP430_HWMULT_ prefix to enum values.
13450         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
13451         * config/msp430/msp430.c: Update use of enum values.
13452         * config/msp430/msp430.md: Likewise.
13453         * config/msp430/msp430.opt: Likewise.
13455 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
13457         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
13458         of comparsions in the last iteration.
13460 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
13461             Joern Rennecke  <joern.rennecke@embecosm.com>
13463         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
13464         addresses.
13465         (arc_needs_pcl_p): Add GOTOFFPC.
13466         (arc_legitimate_pic_addr_p): Likewise.
13467         (arc_output_pic_addr_const): Likewise.
13468         (arc_legitimize_pic_address): Generate a pc-relative address using
13469         GOTOFFPC.
13470         (arc_output_libcall): Use @pcl syntax.
13471         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
13472         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
13473         (*movsi_insn): Use @pcl syntax.
13474         (doloop_begin_i): Likewise.
13476 2016-06-16  Martin Liska  <mliska@suse.cz>
13478         * predict.def: Define a new predictor.
13480 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
13482         * config/arc/arc.opt (mtp-regno): Update text.
13484 2016-06-16  Renlin Li  <renlin.li@arm.com>
13486         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
13488 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13490         PR target/71554
13491         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
13492         (setcc + and peephole2): Likewise.
13494         PR rtl-optimization/71532
13495         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
13496         memory slots.
13498 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
13500         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
13501         DImode constants with XXSPLTIB in vector registers.
13502         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
13503         vsx_extract_<mode>_internal{1,2} into a single insn that handles
13504         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
13505         extraction of the element at the top of the register as a scalar
13506         value.
13507         (vsx_extract_<mode>_internal1): Likewise.
13508         (vsx_extract_<mode>_internal2): Likewise.
13509         * config/rs6000/constraints.md (wi constraint): Remove a comment
13510         about DImode not being allowed in Altivec registers.
13511         (wB constraint): New constraint for constants that can be
13512         generated in Altivec registers with VSPLTISW/VUPKHSW.
13513         * config/rs6000/predicates.md (xxspltib_constant_split): Update
13514         comments.
13515         (xxspltib_constant_nosplit): Likewise.
13516         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
13517         support for -mupper-regs-di to enable DImode to go into Altivec
13518         registers.
13519         (POWERPC_MASKS): Likewise.
13520         (power7 cpu): Likewise.
13521         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
13522         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
13523         for DImode being allowed in Altivec registers.  Update wi/wj
13524         constraints.  Set scalar_in_vmx_p flag.
13525         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
13526         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
13527         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
13528         (rs6000_opt_masks): Add -mupper-regs-di.
13529         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
13530         direct move to use wi and not wj.
13531         (lfiwzx): Likewise.
13532         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
13533         alternative.
13534         (floatunssi<mode>2_lfiwzx_mem): Likewise.
13535         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
13536         any VSX register, instead of just Altivec registers, to allow
13537         either operand to be an Altivec register or both.
13538         (fixuns_trunc<mode>di2_fctiduz): Likewise.
13539         (movdi_internal32): Add support for -mupper-regs-di.  Add support
13540         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
13541         the alternatives and attributes to be lined up to be easier to
13542         read.
13543         (movdi_internal64): Likewise.
13544         (64-bit DImode splitters): Change predicates to only split loading
13545         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
13546         load constants in ISA 3.0 or ISA 2.07 respectively.
13547         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13548         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
13549         mention -mcpu=power9 sets these options.
13550         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
13551         wB constraint.
13553 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13555         PR target/67353
13556         * config/avr/avr.c (avr_set_current_function): Warn misspelled
13557         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
13558         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
13559         by default to warn misspelled interrupt/ signal handler.
13560         * doc/invoke.texi (AVR Options): Document it. Update description
13561         for -nodevicelib option.
13563 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13565         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
13566         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
13567         (aarch64_<sur>shll2_n<mode>): Likewise.
13569 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
13571         PR middle-end/71529
13572         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
13573         DECL_CONTEXT for copied arguments.
13575 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
13577         PR tree-optimization/71483
13578         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
13579         for slp
13581 2016-06-15  Martin Liska  <mliska@suse.cz>
13583         * predict.c (tree_predict_by_opcode): Call predict_edge_def
13584         instead of predict_edge w/o a probability.
13586 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
13588         PR tree-optimization/71439
13589         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
13590         live PHIs.
13592 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13594         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
13595         register subregs in SET_SRC.
13597 2016-06-15  Richard Biener  <rguenther@suse.de>
13599         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
13600         store restrictions.
13602 2016-06-15  Richard Biener  <rguenther@suse.de>
13604         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
13605         not consider dependences between accesses that belong to the
13606         same group.
13607         (vect_analyze_data_ref_dependences): Do not analyze read-read
13608         or self-dependences.
13610 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
13612         * spellcheck-tree.c: Include spellcheck-tree.h rather than
13613         spellcheck.h.
13614         (find_closest_identifier): Reimplement in terms of
13615         best_match<tree,tree>.
13616         * spellcheck-tree.h: New file.
13617         * spellcheck.c (struct edit_distance_traits<const char *>): New
13618         struct.
13619         (find_closest_string): Reimplement in terms of
13620         best_match<const char *, const char *>.
13621         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
13622         overload to spellcheck-tree.h.
13623         (find_closest_identifier): Likewise.
13624         (struct edit_distance_traits<T>): New template.
13625         (class best_match): New class.
13627 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
13629         * selftest-run-tests.c (selftest::run_tests): Call
13630         selftest::spellcheck_tree_c_tests.
13631         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
13632         * spellcheck-tree.c: Include selftest.h and stringpool.h.
13633         (selftest::test_find_closest_identifier): New function.
13634         (selftest::spellcheck_tree_c_tests): New function.
13635         * spellcheck.c (selftest::test_find_closest_string): Verify that
13636         the order of the vec does not affect the results for this case.
13637         (selftest::test_data): New array.
13638         (selftest::test_metric_conditions): New function.
13639         (selftest::spellcheck_c_tests): Add a test of case-comparison.
13640         Call selftest::test_metric_conditions.
13642 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13644         * config/rs6000/rs6000-builtin.def (commentary): Typo.
13645         (BU_P9_MISC_1): Likewise.
13646         (BU_P9_64BIT_MISC_0): Likewise.
13647         (BU_P9_MISC_0): Likewise.
13649 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
13651         * gcc-rich-location.c
13652         (gcc_rich_location::add_fixit_misspelled_id): New method.
13653         * gcc-rich-location.h
13654         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
13656 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
13658         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
13659         FreeBSD 11 and above.
13661 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
13663         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
13665 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13667         * expmed.h: Close parenthesis in "at your option" in copyright
13668         boilerplate.
13669         * lower-subreg.h: Likewise.
13671 2016-06-14  Richard Biener  <rguenther@suse.de>
13673         PR middle-end/71526
13674         * genmatch.c (expr::gen_transform): Use in_type for comparisons
13675         if available.
13677 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13679         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
13680         New function.
13681         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
13682         mask+shift version.
13683         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
13684         New prototype.
13685         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
13686         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
13688 2016-06-14  Richard Biener  <rguenther@suse.de>
13690         PR tree-optimization/71522
13691         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
13692         copying into float copying.
13694 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
13696         PR tree-optimization/71520
13697         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
13698         (replace_block_by): Move user labels from bb1 to bb2.
13700 2016-06-14  Richard Biener  <rguenther@suse.de>
13702         PR middle-end/71310
13703         PR bootstrap/71510
13704         * expr.h (get_bit_range): Declare.
13705         * expr.c (get_bit_range): Export.
13706         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
13707         word_mode again to constrain the bitfield access.
13709 2016-06-14  Richard Biener  <rguenther@suse.de>
13711         PR tree-optimization/71521
13712         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
13713         division int_const_binop against zero divisor.
13715 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
13717         * config/i386/i386.md (signbittf2): New expander.
13718         * config/i386/sse.md (ptesttf2): New insn pattern.
13720 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
13722         PR bootstrap/71481
13723         * input.c (selftest::test_reading_source_line): Avoid reading from
13724         __FILE__ by creating a tempfile with known content and reading
13725         from that instead.
13727 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
13729         * pretty-print.c (assert_pp_format_colored): Skip the test if
13730         GCC_COLORS is set.
13731         (test_pp_format): Remove comment about GCC_COLORS.
13733 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
13735         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
13736         * pretty-print.c (assert_pp_format_va): Add location param and use
13737         it with ASSERT_STREQ_AT.
13738         (assert_pp_format): Add location param and pass it to
13739         assert_pp_format_va.
13740         (assert_pp_format_colored): Likewise.
13741         (ASSERT_PP_FORMAT_1): New.
13742         (ASSERT_PP_FORMAT_2): New.
13743         (ASSERT_PP_FORMAT_3): New.
13744         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
13745         explicitly, or implicitly via the above macros.
13746         * selftest.c (selftest::pass): Use a selftest::location rather
13747         than file and line.
13748         (selftest::fail): Likewise.  Print the function name.
13749         (selftest::fail_formatted): Likewise.
13750         (selftest::assert_streq): Use a selftest::location rather than
13751         file and line.
13752         * selftest.h (selftest::location): New struct.
13753         (SELFTEST_LOCATION): New macro.
13754         (selftest::pass): Accept a const location & rather than file
13755         and line.
13756         (selftest::fail): Likewise.
13757         (selftest::fail_formatted): Likewise.
13758         (selftest::assert_streq): Likewise.
13759         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
13760         (ASSERT_FALSE): Likewise.
13761         (ASSERT_EQ): Likewise.
13762         (ASSERT_NE): Likewise.
13763         (ASSERT_STREQ): Likewise.
13764         (ASSERT_PRED1): Likewise.
13765         (ASSERT_STREQ_AT): New macro.
13767 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
13769         * selftest.c (selftest::fail_formatted): New function.
13770         (selftest::assert_streq): New function.
13771         * selftest.h (selftests::fail_formatted): New decl.
13772         (selftest::assert_streq): New decl.
13773         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
13775 2016-06-13  Jeff Law  <law@redhat.com>
13777         PR tree-optimization/71403
13778         * tree-ssa-threadbackward.c
13779         (convert_and_register_jump_thread_path): No longer accept reference
13780         to path.  Do not pop items off the path anymore.
13781         (fsm_find_control_statement_thread_paths): Do not allow threading
13782         to a deeper loop nest.  Pop the last item off the path here rather
13783         than in convert_and_register_jump_thread_path.
13785 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
13786             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
13788         [AArch64] Emit division using the Newton series
13790         * config/aarch64/aarch64-protos.h
13791         (cpu_approx_modes): Add new member "division".
13792         (aarch64_emit_approx_div): Declare new function.
13793         * config/aarch64/aarch64.c
13794         (generic_approx_modes): New member "division".
13795         (exynosm1_approx_modes): Likewise.
13796         (xgene1_approx_modes): Likewise.
13797         (aarch64_emit_approx_div): Define new function.
13798         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
13799         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
13800         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
13801         * doc/invoke.texi (-mlow-precision-div): Describe new option.
13803 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
13804             Wilco Dijkstra  <wilco.dijkstra@arm.com>
13806         [AArch64] Emit square root using the Newton series
13808         * config/aarch64/aarch64-protos.h
13809         (aarch64_emit_approx_rsqrt): Replace with new function
13810         "aarch64_emit_approx_sqrt".
13811         (cpu_approx_modes): New member "sqrt".
13812         * config/aarch64/aarch64.c
13813         (generic_approx_modes): New member "sqrt".
13814         (exynosm1_approx_modes): Likewise.
13815         (xgene1_approx_modes): Likewise.
13816         (aarch64_emit_approx_rsqrt): Replace with new function
13817         "aarch64_emit_approx_sqrt".
13818         (aarch64_override_options_after_change_1): Handle new option.
13819         * config/aarch64/aarch64-simd.md
13820         (rsqrt<mode>2): Use new function instead.
13821         (sqrt<mode>2): New expansion and insn definitions.
13822         * config/aarch64/aarch64.md: Likewise.
13823         * config/aarch64/aarch64.opt
13824         (mlow-precision-sqrt): Add new option description.
13825         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
13827 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
13829         [AArch64] Add more choices for the reciprocal square root approximation
13831         Allow a target to prefer such operation depending on the operation mode.
13833         * config/aarch64/aarch64-protos.h
13834         (AARCH64_APPROX_MODE): New macro.
13835         (AARCH64_APPROX_{NONE,ALL}): Likewise.
13836         (cpu_approx_modes): New structure.
13837         (tune_params): New member "approx_modes".
13838         * config/aarch64/aarch64-tuning-flags.def
13839         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
13840         * config/aarch64/aarch64.c
13841         (generic_approx_modes): New core "cpu_approx_modes" structure.
13842         (exynosm1_approx_modes): Likewise.
13843         (xgene1_approx_modes): Likewise.
13844         (generic_tunings): New member "approx_modes".
13845         (cortexa35_tunings): Likewise.
13846         (cortexa53_tunings): Likewise.
13847         (cortexa57_tunings): Likewise.
13848         (cortexa72_tunings): Likewise.
13849         (exynosm1_tunings): Likewise.
13850         (thunderx_tunings): Likewise.
13851         (xgene1_tunings): Likewise.
13852         (use_rsqrt_p): New argument for the mode and use new member from
13853         "tune_params".
13854         (aarch64_builtin_reciprocal): Devise mode from builtin.
13855         (aarch64_optab_supported_p): New argument for the mode.
13856         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
13858 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13860         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
13861         RS6000_BTM_MODULO flag into the set of flags that are considered
13862         to be part of the common configuration.
13864 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13866         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
13867         difference unsigned.
13868         (vec_absdb): New macro for vector absolute difference unsigned
13869         byte.
13870         (vec_absdh): New macro for vector absolute difference unsigned
13871         half-word.
13872         (vec_absdw): New macro for vector absolute difference unsigned word.
13873         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
13874         (vadu<mode>3): New insn.
13875         (*p9_vadu<mode>3): New insn.
13876         * config/rs6000/rs6000-builtin.def (vadub): New built-in
13877         definition.
13878         (vaduh): New built-in definition.
13879         (vaduw): New built-in definition.
13880         (vadu): New overloaded built-in definition.
13881         (vadub): New overloaded built-in definition.
13882         (vaduh): New overloaded built-in definition.
13883         (vaduw): New overloaded built-in definition.
13884         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13885         overloaded vector absolute difference unsigned functions.
13886         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13887         the ISA 3.0 vector absolute difference unsigned built-in functions.
13889 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
13891         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
13892         update shared_lookup_references only once after changing operands.
13894 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
13896         PR middle-end/71373
13897         * tree-nested.c (convert_nonlocal_omp_clauses)
13898         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
13900         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
13901         * tree.def (CASE_LABEL_EXPR): Likewise.
13903 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13905         PR bootstrap/71481
13906         * input.c (test_builtins): Fix an assertion.
13908 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
13910         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
13911         (paritysi2): Ditto.
13912         (isinfxf2): Ditto.
13913         (isinf<mode>2): Ditto.
13915 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
13917         * ggc-tests.c (test_finalization): Only test need_finalization_p
13918         for GCC_VERSION >= 4003.
13920 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13922         * config/s390/vecintrin.h: Fix file description in comment.
13924 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13926         * config/s390/s390-builtin-types.def: Change builtin type naming
13927         scheme to match builtin-types.def.
13929 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
13931         * fold-const.c (optimize_minmax_comparison): Remove.
13932         (fold_comparison): Remove call to the above.
13933         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
13934         New transformations.
13936 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
13938         PR tree-optimization/71416
13939         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
13940         multiple entries
13942 2016-06-13  Martin Liska  <mliska@suse.cz>
13944         * predict.c (enum predictor_reason): Prefix enum with REASON_.
13945         (combine_predictions_for_insn): Likewise.
13946         (prune_predictions_for_bb): Likewise.
13947         (combine_predictions_for_bb): Likewise.
13949 2016-06-13  Richard Biener  <rguenther@suse.de>
13951         PR tree-optimization/71505
13952         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
13953         assert match comment.
13955 2016-06-13  Marek Polacek  <polacek@redhat.com>
13957         PR middle-end/71476
13958         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
13959         gimplify_switch_expr.
13960         (warn_switch_unreachable_r): New function.
13962 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13964         PR target/71379
13965         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
13966         one.
13968 2016-06-13  Richard Biener  <rguenther@suse.de>
13970         PR middle-end/64516
13971         * fold-const.c (fold_unary_loc): Preserve alignment when
13972         folding a VIEW_CONVERT_EXPR into a MEM_REF.
13974 2016-06-13  Martin Liska  <mliska@suse.cz>
13976         PR sanitizer/71458
13977         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
13978         w/ -fsanitize=bounds.
13980 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
13982         * config/i386/i386.c (ix86_init_builtins): Calculate
13983         FLOAT128_FTYPE_CONST_STRING function type only once.
13984         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
13985         built-in functions are available for x86-32 and x86-64 targets.
13987 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
13989         PR target/71241
13990         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
13991         New primitive type.
13992         (FLOAT128_FTYPE_CONST_STRING): New function type.
13993         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
13994         [IX86_BUILTIN_NANSQ]: Ditto.
13995         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13996         (ix86_init_builtin_types): Declare const_string_type_node.
13997         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
13998         builtin functions.
13999         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
14000         * doc/extend.texi (x86 Built-in Functions): Document
14001         __builtin_nanq and __builtin_nansq.
14003 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
14005         PR target/71061
14006         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
14007         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
14008         length for pop patterns.
14009         (arm_attr_length_push_multi): Update comments.
14010         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
14011         attribute.
14012         (*pop_multiple_with_writeback_and_return): Likewise.
14013         (*pop_multiple_with_return): Likewise.
14015 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
14017         PR middle-end/71310
14018         * fold-const.c (optimize_bit_field_compare): Don't try to use
14019         word_mode unconditionally for reading the bit field, look at
14020         DECL_BIT_FIELD_REPRESENTATIVE instead.
14022 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
14024         PR middle-end/71478
14025         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
14026         vector integer type.
14028 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
14030         PR middle-end/71494
14031         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
14032         without LABEL_DECL, set *handled_ops_p to false instead of true.
14034 2016-06-10  Martin Sebor  <msebor@redhat.com>
14036         PR c/71392
14037         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
14038         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
14039         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
14040         them.
14041         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
14042         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
14043         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
14044         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
14045         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
14046         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
14047         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
14048         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
14050 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14052         * config/arm/arm.h (pool_vector_label,
14053         return_used_this_function): Remove.
14055 2016-06-10  Jeff Law  <law@redhat.com>
14057         PR tree-optimization/71335
14058         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
14059         zero length paths here.
14060         (convert_and_register_jump_thread_path): Remove hacks related to
14061         duplicated blocks in the jump thread path.
14062         (fsm_find_control_statement_thread_paths): Avoid putting the same
14063         block on the thread path twice, but ensure the thread path is
14064         unchanged from the caller's point of view.
14066 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
14068         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
14069         * predict.def (PRED_LOOP_BRANCH): Remove.
14071 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
14073         * Makefile.in (OBJS): Add ggc-tests.o.
14074         (GTFILES): Add ggc-tests.c.
14075         * ggc-tests.c: New file.
14076         * selftest-run-tests.c (selftest::run_tests): Call
14077         selftest::ggc_tests_c_tests.
14078         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
14080 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
14082         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
14084 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
14086         PR sanitizer/71480
14087         * varasm.c (place_block_symbol): Adjust alignment for asan protected
14088         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
14090 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
14092         * profile.c: Include cfgloop.h.
14093         (branch_prob): Compute estimated number of iterations.
14094         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
14095         recompute estimate number of iterations from profile.
14097 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14099         PR inline-asm/68843
14100         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
14101         must be grouped on top of stack.  Don't force early clobber
14102         on ordinary reg outputs.
14104 2016-06-10  Richard Biener  <rguenther@suse.de>
14106         * targhooks.c (default_builtin_vectorization_cost): Adjust
14107         vec_construct cost.
14109 2016-06-10  Richard Biener  <rguenther@suse.de>
14111         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
14112         to fold the RHS to a constant if possible.
14114 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14116         PR middle-end/71373
14117         * tree-nested.c (convert_nonlocal_omp_clauses)
14118         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
14119         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
14120         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
14122         * gimplify.c (gimplify_adjust_omp_clauses): Discard
14123         OMP_CLAUSE_TILE.
14124         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
14126         * omp-low.c (scan_sharing_clauses): Don't expect
14127         OMP_CLAUSE__CACHE_.
14129 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
14131         PR tree-optimization/71407
14132         PR tree-optimization/71416
14133         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
14134         BIT_FIELD_REF type.
14136 2016-06-10  Richard Biener  <rguenther@suse.de>
14138         PR middle-end/71477
14139         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
14141 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14143         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
14145 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
14146             Jiong Wang  <jiong.wang@arm.com>
14148         PR rtl-optimization/70751
14149         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
14150         spilled into memory.
14152 2016-06-09  Jonathan Yong  <10walls@gmail.com>
14154         Revert:
14155         2015-09-21  Jonathan Yong  <10walls@gmail.com>
14157         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14158         sysroot/usr/lib/32api for additional win32 libraries,
14159         fixes failing Cygwin bootstrapping.
14161 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
14163         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
14164         Delete.
14166 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
14168         PR bootstrap/71471
14169         * pretty-print.c (pp_indent): Specify that %p is printed in a
14170         host-dependent manner.
14171         (test_pp_format): Remove the test for %p.
14173 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
14175         * config/mips/mips.c (mips_output_jump): Fix formatting.
14177 2016-06-09  Richard Biener  <rguenther@suse.de>
14179         PR tree-optimization/71462
14180         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
14181         removed blocks.
14183 2016-06-09  Martin Liska  <mliska@suse.cz>
14185         * predict.c (dump_prediction): Add new argument.
14186         (enum predictor_reason): New enum.
14187         (struct predictor_hash): New struct.
14188         (predictor_hash::hash): New function.
14189         (predictor_hash::equal): Likewise.
14190         (not_removed_prediction_p): New function.
14191         (prune_predictions_for_bb): Likewise.
14192         (combine_predictions_for_bb): Prune predictions.
14194 2016-06-09  Martin Liska  <mliska@suse.cz>
14196         * predict.c (filter_predictions): New function.
14197         (remove_predictions_associated_with_edge): Use the filter
14198         function.
14199         (equal_edge_p): New function.
14201 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
14203         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
14204         Correct usage of @samp vs @option, add @samp where appropriate.
14205         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
14206         Add armv6s-m and document it, as it is no official ARM name.
14208 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14210         * ifcvt.c (struct noce_if_info): Add transform_name field.
14211         (noce_try_move): Set if_info->transform_name to the function name.
14212         (noce_try_ifelse_collapse): Likewise.
14213         (noce_try_store_flag): Likewise.
14214         (noce_try_inverse_constants): Likewise.
14215         (noce_try_store_flag_constants): Likewise.
14216         (noce_try_addcc): Likewise.
14217         (noce_try_store_flag_mask): Likewise.
14218         (noce_try_cmove): Likewise.
14219         (noce_try_cmove_arith): Likewise.
14220         (noce_try_minmax): Likewise.
14221         (noce_try_abs): Likewise.
14222         (noce_try_sign_mask): Likewise.
14223         (noce_try_bitop): Likewise.
14224         (noce_convert_multiple_sets): Likewise.
14225         (noce_process_if_block): Print if_info->transform_name to
14226         dump_file if transformation succeeded.
14228 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14230         * config/arm/cortex-a57.md (cortex_a57_alu):
14231         Handle csel type.
14233 2016-06-08  Martin Sebor  <msebor@redhat.com>
14234             Jakub Jelinek  <jakub@redhat.com>
14236         PR c++/70507
14237         PR c/68120
14238         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
14239         BUILT_IN_MUL_OVERFLOW_P): New builtins.
14240         * builtins.c: Include gimple-fold.h.
14241         (fold_builtin_arith_overflow): Handle
14242         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
14243         (fold_builtin_3): Likewise.
14244         * doc/extend.texi (Integer Overflow Builtins): Document
14245         __builtin_{add,sub,mul}_overflow_p.
14247 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
14249         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
14250         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
14252 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
14254         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
14255         Rewrite, looking one level down for records and arrays.
14257 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
14259         * pretty-print.c: Include "selftest.h".
14260         (pp_format): Fix comment.
14261         (identifier_to_locale): Likewise.
14262         (selftest::test_basic_printing): New function.
14263         (selftest::assert_pp_format): New function.
14264         (selftest::test_pp_format): New function.
14265         (selftest::pretty_print_c_tests): New function.
14266         * selftest-run-tests.c (selftest::run_tests): Call
14267         selftest::pretty_print_c_tests.
14268         * selftest.h (pretty_print_c_tests): New declaration.
14270 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
14272         * invoke.texi (max-loop-headers-insns): Document.
14273         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
14274         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
14275         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
14277 2016-06-08  Richard Biener  <rguenther@suse.de>
14279         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
14280         on strided SLP loads and fall back to scalar loads in case
14281         we can't chunk them.
14283 2016-06-08  Richard Biener  <rguenther@suse.de>
14285         PR tree-optimization/71452
14286         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
14287         type used for the SSA rewrite has enough precision to cover
14288         the dynamic type of the location.
14290 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
14291             Richard Biener  <rguenther@suse.de>
14293         PR c++/71448
14294         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
14295         the same as DECL_P (base0) for indirect_base0.  Use equality_code
14296         in one further place.
14298 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
14300         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
14301         to one word if the field is known to overlap other words.
14302         (extract_bit_field_1): Likewise.
14303         (store_split_bit_field): Remove compensating code.
14304         (extract_split_bit_field): Likewise.
14306 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
14308         PR debug/71432
14309         PR ada/71413
14310         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
14312 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14314         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
14315         VDQF.
14316         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
14317         (arch64_addpv4sf): Delete.
14318         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
14319         "gen_aarch64_addpv4sf".
14320         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
14321         builtin.
14322         (vpadds_f32): Likewise.
14323         (vpaddq_f32): Likewise.
14324         (vpaddq_f64): Likewise.
14326 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14328         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
14329         VALLF.
14330         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
14331         to VALLF.  Rename to "fabd<mode>3".
14332         "*fabd_scalar<mode>3): Delete.
14333         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
14334         Use builtin.
14335         (vabdd_f64): Likewise.
14336         (vabd_f32): Likewise.
14337         (vabd_f64): Likewise.
14338         (vabdq_f32): Likewise.
14339         (vabdq_f64): Likewise.
14341 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14343         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
14344         VALLF.
14345         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
14346         "aarch64_rsqrts<mode>".
14347         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
14348         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
14349         builtin.
14350         (vrsqrtsd_f64): Likewise.
14351         (vrsqrts_f32): Likewise.
14352         (vrsqrts_f64): Likewise.
14353         (vrsqrtsq_f32): Likewise.
14354         (vrsqrtsq_f64): Likewise.
14356 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14358         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
14359         VALLF.
14360         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
14361         "aarch64_rsqrte<mode>".
14362         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
14363         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
14364         builtin.
14365         (vrsqrted_f64): Likewise.
14366         (vrsqrte_f32): Likewise.
14367         (vrsqrte_f64): Likewise.
14368         (vrsqrteq_f32): Likewise.
14369         (vrsqrteq_f64): Likewise.
14371 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14373         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
14374         (ucvtf): Likewise.
14375         (fcvtzs): Likewise.
14376         (fcvtzu): Likewise.
14377         * config/aarch64/aarch64-simd.md
14378         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
14379         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
14380         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
14381         Use builtin.
14382         (vcvt_n_f32_u32): Likewise.
14383         (vcvt_n_s32_f32): Likewise.
14384         (vcvt_n_u32_f32): Likewise.
14385         (vcvtq_n_f32_s32): Likewise.
14386         (vcvtq_n_f32_u32): Likewise.
14387         (vcvtq_n_f64_s64): Likewise.
14388         (vcvtq_n_f64_u64): Likewise.
14389         (vcvtq_n_s32_f32): Likewise.
14390         (vcvtq_n_s64_f64): Likewise.
14391         (vcvtq_n_u32_f32): Likewise.
14392         (vcvtq_n_u64_f64): Likewise.
14393         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
14394         (VSDQ_SDI): Likewise.
14395         (fcvt_target): Support V4DI, V4SI and V2SI.
14396         (FCVT_TARGET): Likewise.
14398 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
14400         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
14401         (TYPES_BINOP_SUS): Likewise.
14402         (aarch64_simd_builtin_data): Update include file name.
14403         (aarch64_builtins): Likewise.
14404         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
14405         for conversion between scalar float-point and fixed-point.
14406         (ucvtf): Likewise.
14407         (fcvtzs): Likewise.
14408         (fcvtzu): Likewise.
14409         * config/aarch64/aarch64.md
14410         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
14411         pattern for conversion between scalar float to fixed-pointer.
14412         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
14413         (UNSPEC_FCVTZS): New UNSPEC enumeration.
14414         (UNSPEC_FCVTZU): Likewise.
14415         (UNSPEC_SCVTF): Likewise.
14416         (UNSPEC_UCVTF): Likewise.
14417         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
14418         Use builtin.
14419         (vcvtd_n_f64_u64): Likewise.
14420         (vcvtd_n_s64_f64): Likewise.
14421         (vcvtd_n_u64_f64): Likewise.
14422         (vcvtd_n_f32_s32): Likewise.
14423         (vcvts_n_f32_u32): Likewise.
14424         (vcvtd_n_s32_f32): Likewise.
14425         (vcvts_n_u32_f32): Likewise.
14426         * config/aarch64/iterators.md (fcvt_target): Support integer to float
14427         mapping.
14428         (FCVT_TARGET): Likewise.
14429         (FCVT_FIXED2F): New iterator.
14430         (FCVT_F2FIXED): Likewise.
14431         (fcvt_fixed_insn): New define_int_attr.
14433 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
14435         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
14436         some statements was removed.
14438 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
14440         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
14441         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
14442         (vect_can_advance_ivs_p): likewise.
14443         (vect_update_ivs_after_vectorizer): likewise.
14444         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
14445         (vect_analyze_scalar_cycles_1): likewise.
14446         (vect_analyze_loop_operations): likewise.
14447         (report_vect_op): likewise.
14448         (vect_is_slp_reduction): likewise.
14449         (vect_is_simple_reduction): likewise.
14450         (get_initial_def_for_induction): likewise.
14451         (vect_transform_loop): likewise.
14452         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
14453         (vect_recog_sad_pattern): likewise.
14454         (vect_recog_widen_sum_pattern): likewise.
14455         (vect_recog_widening_pattern): likewise.
14456         (vect_recog_divmod_pattern): likewise.
14457         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
14458         (vect_analyze_slp_instance): likewise.
14459         (vect_transform_slp_perm_load): likewise.
14460         (vect_schedule_slp_instance): likewise.
14462 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
14464         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
14465         (return_prediction): PRED_CONST_RETURN predict return as not taken.
14466         * predict.def (PRED_CONTINUE): Change hitrate 50->67
14467         (PRED_LOOP_BRANCH): Document predictor as broken.
14468         (PRED_LOOP_EXIT): Change hitrate 91->92.
14469         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
14470         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
14471         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
14472         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
14473         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
14474         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
14475         (PRED_CALL): Chane hitrate 71->67.
14476         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
14477         (PRED_GOTO): Document as unused right now.
14478         (PRED_CONST_RETURN): Change hitrate 67->69
14479         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
14480         (PRED_NULL_RETURN): Change hitrate 91->90.
14481         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
14482         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
14483         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
14485 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
14487         * config/rs6000/altivec.h: Add __builtin_vec_mul.
14488         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
14489         special case Altivec builtin.
14490         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
14491         VSX_BUILTIN_VEC_MUL (replaced with special case code).
14492         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14493         code for ALTIVEC_BUILTIN_VEC_MUL.
14494         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
14495         for __builtin_vec_mul.
14497 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
14499         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
14500         -mno-htm.
14502 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
14504         * spellcheck.c (selftest::test_find_closest_string): New function.
14505         (spellcheck_c_tests): Call the above.
14507 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14509         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
14511 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
14513         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
14514         Yv=Yv,C alternatives.
14516 2016-06-07  Richard Biener  <rguenther@suse.de>
14518         PR c/61564
14519         * common.opt (ffast-math): Make Optimization.
14521 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
14522             Prachi Godbole  <prachi.godbole@imgtec.com>
14524         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
14525         `fabs' and `fneg' type attributes.
14526         (p5600_fpu_fabs): Add `fmove' to the comment.
14528 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
14530         * gimple.c: Include builtins.h
14531         (gimple_inexpensive_call_p): New function.
14532         * gimple.h (gimple_inexpensive_call_p): Declare.
14533         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
14534         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
14535         fix formatting.
14537 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
14539         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
14540         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
14541         warning_at_rich_loc, warning_n, pedwarn, permerror,
14542         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
14543         sorry, fatal_error, internal_error, internal_error_no_backtrace):
14544         Use the above.
14546 2016-06-07  Richard Biener  <rguenther@suse.de>
14548         PR tree-optimization/71428
14549         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
14550         BIT_FIELD_REF op vs. load.
14552 2016-06-07  Richard Biener  <rguenther@suse.de>
14554         PR middle-end/71423
14555         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
14556         for signed ops.
14558 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
14560         * config/pa/pa.md (call): Generate indirect long calls to non-local
14561         functions on TARGET_64BIT.
14562         (call_value): Likewise.
14564 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
14566         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
14567         pattern and subsequent splitters.
14568         (call_val_reg_64bit_post_reload): Likewise.
14570 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14572         PR middle-end/71408
14573         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
14574         propagate_op_to_single_use.
14576 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14578         PR middle-end/71281
14579         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
14581 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
14583         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
14584         (enum x86_dirflag_state): New enum.
14585         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
14586         (machine_function): Remove needs_cld.
14587         (ix86_current_function_needs_cld): Remove.
14588         * config/i386/i386.c (ix86_set_func_type): Set
14589         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
14590         (ix86_expand_prologue): Do not emit CLD here.
14591         (ix86_dirflag_mode_needed): New function.
14592         (ix86_dirflag_mode_entry): Ditto.
14593         (ix86_mode_needed): Handle X86_DIRFLAG entity.
14594         (ix86_mode_after): Ditto.
14595         (ix86_mode_entry): Ditto.
14596         (ix86_mode_exit): Ditto.
14597         (ix86_emit_mode_set): Ditto.
14598         * config/i386/i386.md (strmov_singleop): Set
14599         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
14600         Do not set ix86_current_function_needs_cld.
14601         (rep_mov): Ditto.
14602         (strset_singleop): Ditto.
14603         (rep_stos): Ditto.
14604         (cmpstrnqi_nz_1): Ditto.
14605         (cmpstrnqi_1): Ditto.
14606         (strlenqi_1): Ditto.
14608 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
14610         PR tree-optimization/71259
14611         * tree-vect-slp.c (vect_get_constant_vectors): For
14612         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
14613         one for constant op, and use COND_EXPR for non-constant.
14615 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
14617         * Makefile.in (OBJS): Add function-tests.o,
14618         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
14619         selftest-run-tests.o.
14620         (OBJS-libcommon): Add selftest.o.
14621         (OBJS-libcommon-target): Add selftest.o.
14622         (all.internal): Add "selftest".
14623         (all.cross): Likewise.
14624         (selftest): New phony target.
14625         (s-selftest): New target.
14626         (selftest-gdb): New phony target.
14627         (COLLECT2_OBJS): Add selftest.o.
14628         * bitmap.c: Include "selftest.h".
14629         (selftest::test_gc_alloc): New function.
14630         (selftest::test_set_range): New function.
14631         (selftest::test_clear_bit_in_middle): New function.
14632         (selftest::test_copying): New function.
14633         (selftest::test_bitmap_single_bit_set_p): New function.
14634         (selftest::bitmap_c_tests): New function.
14635         * common.opt (fself-test): New.
14636         * diagnostic-show-locus.c: Include "selftest.h".
14637         (make_range): New function.
14638         (test_range_contains_point_for_single_point): New function.
14639         (test_range_contains_point_for_single_line): New function.
14640         (test_range_contains_point_for_multiple_lines): New function.
14641         (assert_eq): New function.
14642         (test_get_line_width_without_trailing_whitespace): New function.
14643         (selftest::diagnostic_show_locus_c_tests): New function.
14644         * et-forest.c: Include "selftest.h".
14645         (selftest::test_single_node): New function.
14646         (selftest::test_simple_tree): New function.
14647         (selftest::test_disconnected_nodes): New function.
14648         (selftest::et_forest_c_tests): New function.
14649         * fold-const.c: Include "selftest.h".
14650         (selftest::assert_binop_folds_to_const): New function.
14651         (selftest::assert_binop_folds_to_nonlvalue): New function.
14652         (selftest::test_arithmetic_folding): New function.
14653         (selftest::fold_const_c_tests): New function.
14654         * function-tests.c: New file.
14655         * gimple.c: Include "selftest.h".
14656         Include "gimple-pretty-print.h".
14657         (selftest::verify_gimple_pp): New function.
14658         (selftest::test_assign_single): New function.
14659         (selftest::test_assign_binop): New function.
14660         (selftest::test_nop_stmt): New function.
14661         (selftest::test_return_stmt): New function.
14662         (selftest::test_return_without_value): New function.
14663         (selftest::gimple_c_tests): New function.
14664         * hash-map-tests.c: New file.
14665         * hash-set-tests.c: New file.
14666         * input.c: Include "selftest.h".
14667         (selftest::assert_loceq): New function.
14668         (selftest::test_accessing_ordinary_linemaps): New function.
14669         (selftest::test_unknown_location): New function.
14670         (selftest::test_builtins): New function.
14671         (selftest::test_reading_source_line): New function.
14672         (selftest::input_c_tests): New function.
14673         * rtl-tests.c: New file.
14674         * selftest-run-tests.c: New file.
14675         * selftest.c: New file.
14676         * selftest.h: New file.
14677         * spellcheck.c: Include "selftest.h".
14678         (selftest::levenshtein_distance_unit_test_oneway): New function,
14679         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
14680         (selftest::levenshtein_distance_unit_test): Likewise.
14681         (selftest::spellcheck_c_tests): Likewise.
14682         * toplev.c: Include selftest.h.
14683         (toplev::run_self_tests): New.
14684         (toplev::main): Handle -fself-test.
14685         * toplev.h (toplev::run_self_tests): New.
14686         * tree.c: Include "selftest.h".
14687         (selftest::test_integer_constants): New function.
14688         (selftest::test_identifiers): New function.
14689         (selftest::test_labels): New function.
14690         (selftest::tree_c_tests): New function.
14691         * tree-cfg.c: Include "selftest.h".
14692         (selftest::push_fndecl): New function.
14693         (selftest::test_linear_chain): New function.
14694         (selftest::test_diamond): New function.
14695         (selftest::test_fully_connected): New function.
14696         (selftest::tree_cfg_c_tests): New function.
14697         * vec.c: Include "selftest.h".
14698         (selftest::safe_push_range): New function.
14699         (selftest::test_quick_push): New function.
14700         (selftest::test_safe_push): New function.
14701         (selftest::test_truncate): New function.
14702         (selftest::test_safe_grow_cleared): New function.
14703         (selftest::test_pop): New function.
14704         (selftest::test_safe_insert): New function.
14705         (selftest::test_ordered_remove): New function.
14706         (selftest::test_unordered_remove): New function.
14707         (selftest::test_block_remove): New function.
14708         (selftest::reverse_cmp): New function.
14709         (selftest::test_qsort): New function.
14710         (selftest::vec_c_tests): New function.c.
14711         * wide-int.cc: Include selftest.h and wide-int-print.h.
14712         (selftest::from_int <wide_int>): New function.
14713         (selftest::from_int <offset_int>): New function.
14714         (selftest::from_int <widest_int>): New function.
14715         (selftest::assert_deceq): New function.
14716         (selftest::assert_hexeq): New function.
14717         (selftest::test_printing <VALUE_TYPE>): New function template.
14718         (selftest::test_ops <VALUE_TYPE>): New function template.
14719         (selftest::test_comparisons <VALUE_TYPE>): New function template.
14720         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
14721         template.
14722         (selftest::wide_int_cc_tests): New function.
14724 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14726         PR middle-end/37780
14727         * ifcvt.c (noce_try_ifelse_collapse): New function.
14728         Declare prototype.
14729         (noce_process_if_block): Call noce_try_ifelse_collapse.
14730         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
14731         (simplify_ternary_operation): Use the above to simplify
14732         conditional CLZ/CTZ expressions.
14734 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14736         PR middle-end/37780
14737         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
14738         define_insn_and_split.
14740 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14742         PR middle-end/37780
14743         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
14745 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14747         PR c/24414
14748         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
14749         Implicitly clobber memory for basic asm with non-empty assembler
14750         string.  Use targetm.md_asm_adjust also here.
14751         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
14752         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
14753         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
14754         non-empty assembler string.
14755         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
14756         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
14757         (decode_asm_operands): Handle basic asm in PARALLEL block.
14758         (extract_insn): Handle basic asm in PARALLEL block.
14759         * doc/extend.texi: Mention new behavior of basic asm.
14760         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
14761         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
14762         branch_needs_nop_p): Use asm_noperands.
14764 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
14766         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
14767         Include the M7 SPARC DFA scheduler.
14768         New attribute v3pipe.
14769         Annotate insns with v3pipe where appropriate.
14770         Define cpu_feature vis4.
14771         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
14772         Add (V8QI "8") to vbits.
14773         Add insns {add,sub}v8qi3
14774         Add insns ss{add,sub}v8qi3
14775         Add insns us{add,sub}{v8qi,v4hi}3
14776         Add insns {min,max}{v8qi,v4hi,v2si}3
14777         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
14778         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
14779         * config/sparc/niagara4.md: Add a comment explaining the
14780         discrepancy between the documented latenty numbers and the
14781         implemented ones.
14782         * config/sparc/niagara7.md: New file.
14783         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
14784         supports SPARC5 and VIS 4.0 instructions.
14785         * configure: Regenerate.
14786         * config.in: Likewise.
14787         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
14788         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
14789         TARGET_CPU_niagara7.
14790         (ASM_CPU64_DEFAULT_SPEC): Likewise.
14791         (CPP_CPU_SPEC): Handle niagara7.
14792         (ASM_CPU_SPEC): Likewise.
14793         * config/sparc/sparc-opts.h (processor_type): Add
14794         PROCESSOR_NIAGARA7.
14795         (mvis4): New option.
14796         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
14797         (AS_NIAGARA7_FLAG): Define.
14798         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
14799         (CPP_CPU64_DEFAULT_SPEC): Likewise.
14800         (CPP_CPU_SPEC): Handle niagara7.
14801         (ASM_CPU_SPEC): Likewise.
14802         * config/sparc/sparc.c (niagara7_costs): Define.
14803         (sparc_option_override): Handle niagara7 and adjust cache-related
14804         parameters with better values for niagara cpus.  Also support VIS4.
14805         (sparc32_initialize_trampoline): Likewise.
14806         (sparc_use_sched_lookahead): Likewise.
14807         (sparc_issue_rate): Likewise.
14808         (sparc_register_move_cost): Likewise.
14809         (dump_target_flag_bits): Support VIS4.
14810         (sparc_vis_init_builtins): Likewise.
14811         (sparc_builtins): Likewise.
14812         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
14813         VIS4 4.0.
14814         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
14815         UltraSparc M7.
14816         * config/sparc/sparc.opt (sparc_processor_type): New value
14817         niagara7.
14818         * config/sparc/visintrin.h (__attribute__): Prototypes for the
14819         VIS4 builtins.
14820         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
14821         -mvis4.
14822         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14823         VIS4 builtins.
14825 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
14827         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
14829 2016-06-06  Richard Biener  <rguenther@suse.de>
14831         PR tree-optimization/71398
14832         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
14833         remove edges.
14835 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
14837         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
14838         ft32_expand_prolog, ft32_expand_epilogue):
14839         Handle pretend_args.
14840         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
14841         * config/ft32/ft32.md: Add pretend_returner.
14843 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
14845         PR target/71389
14846         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14847         Copy op1 RTX to avoid invalid sharing.
14848         (ix86_expand_vector_move_misalign): Ditto.
14850 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
14852         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
14853         ATTRIBUTE_UNUSED.
14855 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
14857         * predict.c (predicted_by_loop_heuristics_p): New function.
14858         (predict_iv_comparison): Use it.
14859         (predict_loops): Walk from innermost loops; do not predict edges
14860         leaving multiple loops multiple times; implement
14861         PRED_LOOP_ITERATIONS_MAX heuristics.
14862         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
14864 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
14866         * cfg.c (check_bb_profile): Do not report mismatched profiles when
14867         only edges out of BB are EH edges.
14869 2016-06-04  Martin Sebor  <msebor@redhat.com>
14870             Marcin Baczyński  <marbacz@gmail.com>
14872         PR c/48116
14873         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
14874         a void expression in a void function.
14876 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
14878         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
14879         aux; dump reasons of decisions.
14880         (should_duplicate_loop_header_p): Likewise.
14881         (do_while_loop_p): Likewise.
14882         (ch_base::copy_headers): Dump asi num insns duplicated.
14884 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
14886         PR tree-optimization/71405
14887         * tree-ssa.c (execute_update_addresses_taken): For clobber with
14888         incompatible type, build a new clobber with the right type instead
14889         of building a VIEW_CONVERT_EXPR around it.
14891 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
14893         PR tree-optimization/52171
14894         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
14895         by_pieces_ninsns instead of move_by_pieces_ninsns.
14897 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
14899         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
14900         for reg+reg addressing mode.
14902 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14904         * rs6000-c.c (c/c-tree.h): Add #include.
14905         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
14906         in C++ when found in the base position of vec_ld or vec_st.
14908 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
14910         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
14911         use of profile unless profile status is PROFILE_READ.
14912         * profile.c (compute_branch_probabilities): Set profile status
14913         only after reporting predictor hitrates.
14915 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
14917         PR target/71276
14918         PR target/71277
14919         * common.opt (ffp-int-builtin-inexact): New option.
14920         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14921         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
14922         (ceil@var{m}2): Document dependence on this option.
14923         * ipa-inline-transform.c (inline_call): Handle
14924         flag_fp_int_builtin_inexact.
14925         * ipa-inline.c (can_inline_edge_p): Likewise.
14926         * config/i386/i386.md (rintxf2): Do not test
14927         flag_unsafe_math_optimizations.
14928         (rint<mode>2_frndint): New define_insn.
14929         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
14930         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
14931         for 387 instead of extending and truncating.
14932         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
14933         !flag_trapping_math instead of flag_unsafe_math_optimizations.
14934         Change to frndint<mode>2_<rounding>.
14935         (frndintxf2_<rounding>_i387): Likewise.  Change to
14936         frndint<mode>2_<rounding>_i387.
14937         (<rounding_insn>xf2): Likewise.
14938         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
14939         !flag_trapping_math instead of flag_unsafe_math_optimizations for
14940         x87.  Test TARGET_ROUND || !flag_trapping_math ||
14941         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
14942         SSE.  Use ROUND_NO_EXC in constant operand of
14943         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
14944         for 387 instead of extending and truncating.
14946 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
14947             Julia Koval  <julia.koval@intel.com>
14949         PR target/66960
14950         PR target/67630
14951         PR target/67634
14952         PR target/67841
14953         PR target/68037
14954         PR target/68618
14955         PR target/68661
14956         PR target/69575
14957         PR target/69596
14958         PR target/69734
14959         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
14960         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
14961         all registers, except for function return registers if there are
14962         no caller-saved registers.
14963         (ix86_set_func_type): New function.
14964         (ix86_set_current_function): Call ix86_set_func_type to set
14965         no_caller_saved_registers and func_type.  Call reinit_regs if
14966         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
14967         nor x87 instructions in interrupt handler nor function with
14968         no_caller_saved_registers attribute.
14969         (ix86_function_ok_for_sibcall): Return false if there are no
14970         caller-saved registers.
14971         (type_natural_mode): Don't warn ABI change for MMX in interrupt
14972         handler.
14973         (ix86_function_arg_advance): Skip for callee in interrupt handler.
14974         (ix86_function_arg): Return special arguments in interrupt handler.
14975         (ix86_promote_function_mode): Promote pointer to word_mode only
14976         for normal functions.
14977         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
14978         interrupt handler.
14979         (ix86_epilogue_uses): New function.
14980         (ix86_hard_regno_scratch_ok): Likewise.
14981         (ix86_save_reg): Preserve all registers in interrupt handler
14982         after reload.  Preserve all registers, except for function return
14983         registers, if there are no caller-saved registers after reload.
14984         (find_drap_reg): Always use callee-saved register if there are
14985         no caller-saved registers.
14986         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
14987         for interrupt handler.
14988         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
14989         Emit cld instruction if stringops are used in interrupt handler
14990         or interrupt handler isn't a leaf function.
14991         (ix86_expand_epilogue): Generate interrupt return for interrupt
14992         handler and pop the 'ERROR_CODE' off the stack before interrupt
14993         return in exception handler.
14994         (ix86_expand_call): Disallow calling interrupt handler directly.
14995         If there are no caller-saved registers, mark all registers that
14996         are clobbered by the call which returns as clobbered.
14997         (ix86_handle_no_caller_saved_registers_attribute): New function.
14998         (ix86_handle_interrupt_attribute): Likewise.
14999         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
15000         attributes.
15001         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
15002         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
15003         accumulation in interrupt function if stack may be realigned to
15004         avoid DRAP.
15005         (EPILOGUE_USES): New.
15006         (function_type): New enum.
15007         (machine_function): Add func_type and no_caller_saved_registers.
15008         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
15009         (interrupt_return): New pattern.
15010         * doc/extend.texi: Document x86 interrupt and
15011         no_caller_saved_registers attributes.
15013 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
15015         PR tree-optimization/52171
15016         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
15017         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
15018         Look for constant strings.  Move some code to emit_block_cmp_hints
15019         and use it.
15020         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
15021         * defaults.h (COMPARE_MAX_PIECES): New macro.
15022         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
15023         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
15024         (clear_by_pieces_1): Don't declare.  Move definition before use.
15025         (can_do_by_pieces): New static function.
15026         (can_move_by_pieces): Use it.  Return bool.
15027         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
15028         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
15029         (class pieces_addr); New.
15030         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
15031         pieces_addr::adjust, pieces_addr::increment_address,
15032         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
15033         functions for it.
15034         (class op_by_pieces_d): New.
15035         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
15036         functions for it.
15037         (class move_by_pieces_d, class compare_by_pieces_d,
15038         class store_by_pieces_d): New subclasses of op_by_pieces_d.
15039         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
15040         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
15041         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
15042         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
15043         compare_by_pieces_d::finish_mode): New member functions.
15044         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
15045         functions.
15046         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
15047         (emit_block_cmp_hints): New function.
15048         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
15049         use the newly defined classes.
15050         * expr.h (by_pieces_constfn): New typedef.
15051         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
15052         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
15053         (move_by_pieces_ninsns): Don't declare.
15054         (can_move_by_pieces): Change return value to bool.
15055         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
15056         (compare_by_pieces_branch_ratio): New hook.
15057         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
15058         (by_pieces_ninsns): Declare.
15059         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
15060         COMPARE_BY_PIECES.
15061         (default_compare_by_pieces_branch_ratio): New function.
15062         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
15063         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
15064         * doc/tm.texi: Regenerate.
15065         * tree-ssa-strlen.c: Include "builtins.h".
15066         (handle_builtin_memcmp): New static function.
15067         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
15068         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
15070 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
15072         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
15073         relevant stmts which are simple and invariant.
15074         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
15075         instead of simple and invariant
15077 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
15079         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
15080         (vectorizable_reduction): Check for new relevant state.
15081         (vectorizable_live_operation): vectorize live stmts using
15082         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
15083         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
15084         (vect_stmt_relevant_p): Check for stmts which are only used live.
15085         (process_use): Use of a stmt does not inherit it's live value.
15086         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
15087         (vect_analyze_stmt): Check for new relevant state.
15088         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
15089         outside the loop, but not inside it.
15091 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
15093         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
15094         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
15095         (vect_get_vec_def_for_operand): Split out code.
15097 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
15099         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
15101 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
15103         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
15105 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15107         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
15109 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
15111         PR middle-end/71387
15112         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
15113         to noreturn e->callee->decl that has void return type and void
15114         arguments, adjust gimple_call_fntype and remove lhs even if it had
15115         previously addressable type.
15117 2016-06-02  Jeff Law  <law@redhat.com>
15119         PR tree-optimization/71328
15120         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
15121         error when checking for a jump back onto the copied path.
15123 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
15125         * config/microblaze/microblaze.c (get_branch_target): Add return
15126         NULL_RTX for the non-CALL_P case.
15127         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
15128         (insert_wic): Remove unused local "j".
15130 2016-06-02  Martin Liska  <mliska@suse.cz>
15132         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
15134 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15135             Julia Koval  <julia.koval@intel.com>
15137         * function.c (assign_parm_setup_stack): Force source into a
15138         register if needed.
15139         * target.def (function_incoming_arg): Update documentation to
15140         allow arbitrary address computation based on hard register.
15141         * doc/tm.texi: Regenerated.
15143 2016-06-02  Martin Liska  <mliska@suse.cz>
15145         * predict.c (combine_predictions_for_bb): Fix first match in
15146         cases where a first predictor contains more than one occurence
15147         in list of predictors.  Take the best value in such case.
15149 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15151         PR rtl-optimization/71295
15152         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
15153         offset would go over the size of the inner mode reject it.
15155 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
15157         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
15158         x=x,x and v=v,m instead of x=x,m.
15160         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
15161         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
15162         alternative to v=rm,C.
15164         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
15165         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
15166         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
15167         instead of vex for the last two above mentioned alternatives.
15169 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15171         PR target/70830
15172         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
15174 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
15176         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
15178 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
15180         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
15181         from int to unsigned.
15183 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
15185         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
15186         alternatives, eliminating preferred register class.  Add support
15187         for the MTVSRDD instruction in ISA 3.0.
15188         (vsx_splat_v4si_internal): Use splat_input_operand instead of
15189         reg_or_indexed_operand.
15190         (vsx_splat_v4sf_internal): Likewise.
15192 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
15194         PR target/71186
15195         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
15196         for loading up all 0's or all 1's.
15198 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15200         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
15202 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
15204         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
15205         extension.
15206         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
15207         * gcc.c (set_source_date_epoch_envvar): New function, sets
15208         the SOURCE_DATE_EPOCH environment variable to the current time.
15210 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
15212         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
15213         the factor for live Phi nodes.
15215 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
15217         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
15218         * tree-parloops.c (parallelize_loops): likewise.
15219         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
15220         tree_unswitch_outer_loop): likewise.
15222 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
15224         PR middle-end/71371
15225         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
15226         around creation of the temporary.
15228 2016-06-01  Richard Biener  <rguenther@suse.de>
15230         PR tree-optimization/71366
15231         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
15232         (unloop_loops): Move removing edges here ...
15233         (try_unroll_loop_completely): ... from here.
15234         (try_peel_loop): ... and here.
15235         (tree_unroll_loops_completely_1): Track parent loops via
15236         bitmap of header BBs.
15237         (tree_unroll_loops_completely): Adjust for that.
15239 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15241         * config/rs6000/altivec.h (vec_slv): New macro.
15242         (vec_srv): New macro.
15243         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
15244         (UNSPEC_VSRV): New value.
15245         (vslv): New insn.
15246         (vsrv): New insn.
15247         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
15248         (vsrv): New builtin definition.
15249         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
15250         define argument types for new builtin.
15251         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
15252         new builtin.
15253         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
15254         functions.
15256 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
15257             Jocelyn Mayer  <l_indien@magic.fr>
15259         PR target/67310
15260         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
15261         detect processor family for signature_CENTAUR_ebx.
15262         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
15263         signature_CENTAUR_ebx.
15264         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
15265         <default>: Pass x86-64 for has_longmode.
15267 2016-06-01  Nathan Sidwell  <nathan@acm.org>
15269         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
15270         undefined weak.
15272 2016-06-01  Richard Biener  <rguenther@suse.de>
15274         PR tree-optimization/71261
15275         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
15276         of stmts successfully put in the bool pattern.  Remove
15277         single-use restriction.
15278         (adjust_bool_pattern_cast): Add cast at the use site via the
15279         pattern def sequence.
15280         (adjust_bool_pattern): Remove recursion, maintain a hash-map
15281         of patterned defs.  Use the pattern def seqence instead of
15282         multiple independent patterns.
15283         (sort_after_uid): New qsort compare function.
15284         (adjust_bool_stmts): New function to process stmts in the bool
15285         pattern in IL order.
15286         (vect_recog_bool_pattern): Adjust.
15287         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
15288         (ifcvt_walk_pattern_tree): Likewise.
15289         (stmt_is_root_of_bool_pattern): Likewise.
15290         (ifcvt_repair_bool_pattern): Likewise.
15291         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
15293 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
15295         * loop-unroll.c (decide_unroll_constant_iterations,
15296         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
15297         likely upper bounds.
15298         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
15300 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
15302         * tree-core.h (enum omp_clause_code): Remove
15303         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
15305 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15307         * config/arm/sync.md (arm_store_exclusive<mode>):
15308         Use 'H' output modifier on operands[2] rather than creating a new
15309         entry in out-of-bounds memory of the operands array.
15310         (arm_store_release_exclusivedi): Likewise.
15312 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15314         * config/arm/arm.c (arm_fusion_enabled_p): New function.
15315         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
15316         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
15317         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
15319 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
15321         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
15322         into account live statements for mask producers.
15324 2016-06-01  Richard Biener  <rguenther@suse.de>
15326         PR tree-optimization/71311
15327         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
15328         restrict to non-INTEGER_CST @0.
15330 2016-06-01  Richard Biener  <rguenther@suse.de>
15332         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
15333         (relational patterns): Use :c to avoid pattern duplications.
15335 2016-06-01  Richard Biener  <rguenther@suse.de>
15337         * genmatch.c (comparison_code_p): New predicate.
15338         (swap_tree_comparison): New function.
15339         (commutate): Add for_vec parameter to append new for entries.
15340         Support commutating relational operators by swapping it alongside
15341         operands.
15342         (lower_commutative): Adjust.
15343         (dt_simplify::gen): Do not pass artificial operators to gen
15344         functions.
15345         (decision_tree::gen): Do not add artificial operators as parameters.
15346         (parser::parse_expr): Verify operator commutativity when :c is
15347         applied.  Allow :C to override this.
15348         * match.pd: Adjust patterns to use :C instead of :c where required.
15350 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
15352         PR tree-optimization/71077
15353         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
15354         the combining step, use boolean_false_node and boolean_true_node
15355         as the designated false/true return values.
15357 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
15359         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
15360         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
15361         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
15362         PRED_LOOP_EXIT.
15364 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
15366         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
15367         of flags impliying the register renaming.
15368         * toplev.c (process_options): Do not imply flag_rename_registers with
15369         loop peeling.
15371 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
15373         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
15374         default implementation.
15376 2016-05-31  Nathan Sidwell  <nathan@acm.org>
15378         * dwarf2out.c (cur_line_info_table): Add GTY marker.
15380 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
15382         * config/sh/constraints.md (b): Remove constraint.
15383         * config/sh/predicates.md (arith_reg_operand): Remove
15384         TARGET_REGISTER_P.
15385         * config/sh/sh-modes.def (PDI): Remove.
15386         * config/sh/sh.c (sh_target_reg_class,
15387         sh_optimize_target_register_callee_saved): Remove functions.
15388         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
15389         (sh_expand_epilogue): Update comment.
15390         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
15391         sh_secondary_reload): Remove TARGET_REGS related code.
15392         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
15393         TARGET_REGISTER_P): Remove macros.
15394         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
15395         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
15396         TR1_REG, TR2_REG): Remove constants.
15397         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
15399 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
15401         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
15402         define_expand patterns.
15403         (adddi3_compact): Rename to adddi3.
15404         (subdi3_compact): Rename to subdi3.
15405         (*negdi2): Rename to negdi2.
15406         (*abs<mode>2): Rename to abs<mode>2.
15408 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
15410         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
15411         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
15412         (atomic_sub_fetchsi): ... this new pattern.
15413         (mvtc): Add CC_REG clobber.
15415 2016-05-31  Marek Polacek  <polacek@redhat.com>
15417         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
15419 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15421         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
15422         aarch64_fusion_enabled_p to check for fusion capabilities.
15424 2016-05-31  Richard Biener  <rguenther@suse.de>
15426         PR tree-optimization/71352
15427         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
15428         minus one and a negate.
15430 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15432         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
15433         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
15434         Delete prototype.
15435         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
15436         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
15437         Remove use of aarch64_simd_attr_length_move, set length attribute
15438         directly.
15439         (*aarch64_be_movoi): Likewise.
15440         (*aarch64_be_movci): Likewise.
15441         (*aarch64_be_movxi): Likewise.
15443 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
15445         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
15446         It no longer does that.
15447         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
15449 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
15451         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
15452         attribute __unused__.
15454 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15456         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
15457         * config/arm/arm.c (arm_arch_thumb1): Define.
15458         (arm_option_override): Initialize arm_arch_thumb1.
15459         * config/arm/arm.h (arm_arch_thumb1): Declare.
15460         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
15461         support Thumb-1 ISA.
15463 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
15465         PR target/71346
15466         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
15467         `Yv' for scalar operand.
15469 2016-05-31  Tom de Vries  <tom@codesourcery.com>
15471         PR tree-optimization/69068
15472         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
15473         phis with more than two args.
15475 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
15477         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
15478         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
15479         target.
15481 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
15483         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
15484         tune_64.
15485         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
15486         support on SPARC.
15487         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
15488         cpu_32, cpu_64, tune_32 and tune_64.
15489         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
15491 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
15493         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
15495 2016-05-30  Andi Kleen  <ak@linux.intel.com>
15497         * auto-profile.c (read_profile): Replace asserts with errors
15498         when file does not exist.
15499         * gcov-io.c (gcov_read_words): Dito.
15501 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15503         * tree-cfg.c (print_loop): Print likely upper bounds.
15505 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15507         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
15508         * opts.c (default_options): Enable peel loops at -O3.
15509         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
15510         (try_peel_loop): Do not re-peel already peeled loops;
15511         use likely upper bounds; fix profile updating.
15512         (pass_complete_unroll::execute): Initialize peeled_loops.
15514 2016-05-30  Martin Liska  <mliska@suse.cz>
15516         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
15517         computed costs by frequency of BB they belong to.
15518         (get_scaled_computation_cost_at): New function.
15520 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
15521             Marc Glisse  <marc.glisse@inria.fr>
15523         PR tree-optimization/71289
15524         * match.pd (-1 / B < A, A > -1 / B): New transformations.
15526 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15528         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
15530 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15532         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
15533         for peeled copies; avoid underflow when updating estimates; correctly
15534         scale loop profile.
15536 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
15538         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
15539         r236875. Corrected oe3 to oe2 as obvious.
15541 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
15543         PR middle-end/71269
15544         PR middle-end/71252
15545         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
15546         that inserted stmt will not dominate stmts that defines its operand.
15547         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
15548         (rewrite_expr_tree_parallel): Likewise.
15550 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
15552         PR middle-end/71252
15553         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
15554         all fields including stmt_to_insert are swapped.
15556 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15558         * predict.h (force_edge_cold): Declare.
15559         * predict.c (force_edge_cold): New function.
15560         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
15561         updating.
15562         (canonicalize_loop_induction_variables): Fix formating.
15564 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
15566         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
15567         (visium_expand_copysign): Use gen_int_mode directly.
15568         (visium_compute_frame_size): Minor tweaks.
15570 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
15572         * tree-vect-loop.c (vect_analyze_loop_2): Use
15573         likely_max_stmt_executions_int.
15575 2016-05-30  Tom de Vries  <tom@codesourcery.com>
15577         PR tree-optimization/69067
15578         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
15580 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
15582         PR target/71245
15583         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
15584         New peepholes to remove unneeded fild/fistp pairs.
15585         (define_peephole2 atomic_loaddi_fpu): Ditto.
15587 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15589         * predict.c (maybe_hot_frequency_p): Avoid division.
15591 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
15593         * doc/install.texi: Use https for shop.fsf.org.
15595 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15597         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
15598         likely_max_stmt_executions_int.
15600 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15602         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
15603         likely_max_stmt_executions_int.
15605 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15607         * profile.c (compute_branch_probabilities): Do not report hitrates
15608         here.
15609         (branch_prob): Report hitrates here.
15610         * predict.c (gimple_predict_edge): Do not assert profile status;
15611         fix formatting issues.
15613 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15615         * predict.c (edge_predicted_by_p): New function.
15616         (predict_paths_for_bb): Do not put multiple predictions of the same type
15617         on one edge.
15619 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15621         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
15622         commit.
15624 2016-05-28  Alan Modra  <amodra@gmail.com>
15626         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
15628 2016-05-28  Alan Modra  <amodra@gmail.com>
15630         PR rtl-optimization/71275
15631         * ira.c (ira): Free dominance info.
15633 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
15635         * doc/sourcebuild.texi: New address for upstream Go repository.
15637 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15639         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
15640         (TARGET_ARM_V7M): Likewise.
15642 2016-05-26  Jeff Law  <law@redhat.com>
15644         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
15645         (thread_across_edge): Remove calls to find_jump_threads_backwards.
15646         * passes.def: Add jump threading passes before DOM/VRP.
15647         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
15648         argument to a basic block from an edge.  Remove tests which are
15649         handled elsewhere.
15650         (pass_data_thread_jumps, class pass_thread_jumps): New.
15651         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
15652         (make_pass_thread_jumps): Likewise.
15653         * tree-pass.h (make_pass_thread_jumps): Declare.
15655 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15657         * config/visium/visium-protos.h (split_double_move): Rename into...
15658         (visium_split_double_move): ...this.
15659         (visium_split_double_add): Declare.
15660         * config/visium/visium.c (split_double_move): Rename into...
15661         (visium_split_double_move): ...this.
15662         (visium_split_double_add): New function.
15663         (visium_expand_copysign): Renumber operands for consistency.
15664         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
15665         (DFmode move splitter): Likewise.
15666         (*addi3_insn): Split by means of visium_split_double_add.
15667         (*adddi3_insn_flags): Delete.
15668         (*plus_plus_sltu<subst_arith>): New insn.
15669         (*subdi3_insn): Split by means of visium_split_double_add.
15670         (subdi3_insn_flags): Delete.
15671         (*minus_minus_sltu<subst_arith>): New insn.
15672         (*negdi2_insn): Split by means of visium_split_double_add.
15673         (*negdi2_insn_flags): Delete.
15675 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
15677         * configure.ac: Treat a --with-headers option without argument
15678         the same as the default (i.e. consult sys-include directory).
15679         * configure: Regenerate.
15681 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15683         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
15684         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
15685         prototype.
15686         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
15687         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
15689 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
15691         PR target/63596
15692         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
15693         tree-stdarg analysis results.
15694         (aarch64_setup_incoming_varargs): Likewise.
15696 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
15698         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
15699         va_list_gpr_counter_field and va_list_fpr_counter_field.
15701 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
15703         PR67609
15704         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
15705         * config/aarch64/aarch64.c
15706         (aarch64_cannot_change_mode_class): Remove function.
15707         * config/aarch64/aarch64-protos.h
15708         (aarch64_cannot_change_mode_class): Remove.
15710 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
15712         * cfgloop.c (record_niter_bound): Record likely upper bounds.
15713         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
15714         get_likely_max_loop_iterations_int): New.
15715         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
15716         any_likely_upper_bound.
15717         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
15718         Declare.
15719         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
15720         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
15721         upper bound.
15722         (unroll_loop_constant_iterations): Likewise.
15723         (unroll_loop_runtime_iterations): Likewise.
15724         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
15725         * lto-streamer-out.c (output_cfg): Likewise.
15726         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
15727         bounds.
15728         (canonicalize_loop_induction_variables): Dump likely upper bounds.
15729         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
15730         (likely_max_loop_iterations): New.
15731         (likely_max_loop_iterations_int): New.
15732         (likely_max_stmt_executions): New.
15733         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
15734         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
15735         likely_max_stmt_executions): Declare.
15737 2016-05-27  Marek Polacek  <polacek@redhat.com>
15739         PR middle-end/71308
15740         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
15742 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15744         * config/s390/s390.md (2x risbg splitters): Use
15745         reg_overlap_mentioned_p instead of rtx_equal_p.
15747 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15749         * combine.c (make_compound_operation): Take known zero bits into
15750         account when checking for possible zero_extend.
15752 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15754         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
15755         Use const_int_operand for operand 2 predicate.  Simplify expand code
15756         as a result.
15758 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15760         PR middle-end/71279
15761         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
15762         into comparison.
15764 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15766         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
15767         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
15768         that returns CC_SESWPmode and CC_ZESWPmode.
15769         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
15770         and CC_SESWPmode.
15771         (aarch64_rtx_costs): Likewise.
15773 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15775         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
15776         for ISA 3.0 min/max support.
15777         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
15778         conditional move support.
15779         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
15780         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
15781         available.
15782         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
15783         conditional moves where the comparison type is different from move
15784         type.
15785         (fp_minmax): New code iterator for smin/smax.
15786         (minmax): New code attributes for min/max.
15787         (SMINMAX): Likewise.
15788         (smax<mode>3): Combine min, max insns into one insn using the
15789         fp_minmax code iterator.  Add support for ISA 3.0 min/max
15790         instructions that don't need -ffast-math.
15791         (s<minmax><mode>3): Likewise.
15792         (smax<mode>3_vsx): Likewise.
15793         (smin<mode>3): Likewise.
15794         (s<minmax><mode>3_vsx): Likewise.
15795         (smin<mode>3_vsx): Likewise.
15796         (pre-VSX min/max splitters): Likewise.
15797         (s<minmax><mode>3_fpr): Likewise.
15798         (movsfcc): Rewrite floating point conditional moves to combine
15799         SFmode/DFmode into a single insn.
15800         (mov<mode>cc): Likewise.
15801         (movdfcc): Likewise.
15802         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
15803         SFDF2 iterators to handle all combinations.
15804         (fseldfsf4): Likewise.
15805         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
15806         (fseldfdf4): Likewise.
15807         (fselsfdf4): Likewise.
15808         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
15809         comparison instructions that set a 0/-1 mask, and use it for
15810         floating point conditional move via XXSEL.
15811         (fpmask<mode>): Likewise.
15812         (xxsel<mode>): Likewise.
15813         * config/rs6000/predicates.md (min_max_operator): Delete, no
15814         longer used.
15815         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
15816         instructions that generate a 0/-1 mask for use with XXSEL.
15817         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
15818         say whether floating point min/max is available, either through
15819         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
15820         (TARGET_MINMAX_DF): Likewise.
15822 2016-05-27  Alan Modra  <amodra@gmail.com>
15824         PR rtl-optimization/71275
15825         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
15826         for update_equiv_regs and combine_and_move_insns.
15828 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
15830         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
15831         if_then_else or cond RTXes to calculate attribute value.
15832         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
15833         <attr "length_immediate>: Ditto.
15834         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
15835         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
15836         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
15837         <attr "type">: Ditto.
15838         <attr "prefix_data16">: Ditto.
15839         <attr "prefix_extra">: Ditto.
15840         <attr "length_immediate">: Ditto.
15841         <attr "prefix">: Ditto.
15842         (vec_set<mode>_0) <attr "isa">: Ditto.
15843         <attr "prefix_extra">: Ditto.
15844         <attr "length_immediate">: Ditto.
15845         <attr "prefix">: Ditto.
15846         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
15847         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
15848         (sse2_storelpd) <attr "prefix_data16">: Ditto.
15849         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
15850         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
15851         <attr "length_immediate">: Ditto.
15852         <attr "prefix">: Ditto.
15853         (sse2_movsd) <attr "length_immediate">: Ditto.
15854         <attr "prefix">: Ditto.
15855         (vec_concatv2df)  <attr "isa">: Ditto.
15856         <attr "prefix">: Ditto.
15857         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
15858         (*vec_extractv2di_1) <attr "isa">: Ditto.
15859         <attr "type">: Ditto.
15860         <attr "length_immediate">: Ditto.
15861         <attr "prefix_rex">: Ditto.
15862         <attr "prefix_extra">: Ditto.
15863         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
15864         <attr "prefix_extra">: Ditto.
15865         <attr "length_immediate">: Ditto.
15866         (vec_concatv2di) <attr "isa">: Ditto.
15867         <attr "prefix_extra">: Ditto.
15868         <attr "length_immediate">: Ditto.
15869         <attr "prefix">: Ditto.
15871 2016-05-26  Martin Liska  <mliska@suse.cz>
15873         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
15874         function.
15875         (operator+): Likewise.
15876         (operator-): Likewise.
15877         (comp_cost::operator+=): Likewise.
15878         (comp_cost::operator-=): Likewise.
15879         (comp_cost::operator/=): Likewise.
15880         (comp_cost::operator*=): Likewise.
15881         (operator<): Likewise.
15882         (operator==): Likewise.
15883         (operator<=): Likewise.
15884         (new_cost): Remove.
15885         (infinite_cost_p): Likewise.
15886         (add_costs): Likewise.
15887         (sub_costs): Likewise.
15888         (compare_costs): Likewise.
15889         (set_group_iv_cost): Use the newly introduced functions.
15890         (get_address_cost): Likewise.
15891         (get_shiftadd_cost): Likewise.
15892         (force_expr_to_var_cost): Likewise.
15893         (split_address_cost): Likewise.
15894         (ptr_difference_cost): Likewise.
15895         (difference_cost): Likewise.
15896         (get_computation_cost_at): Likewise.
15897         (determine_group_iv_cost_generic): Likewise.
15898         (determine_group_iv_cost_address): Likewise.
15899         (determine_group_iv_cost_cond): Likewise.
15900         (autoinc_possible_for_pair): Likewise.
15901         (determine_group_iv_costs): Likewise.
15902         (cheaper_cost_pair): Likewise.
15903         (iv_ca_recount_cost): Likewise.
15904         (iv_ca_set_no_cp): Likewise.
15905         (iv_ca_set_cp): Likewise.
15906         (iv_ca_cost): Likewise.
15907         (iv_ca_new): Likewise.
15908         (iv_ca_dump): Likewise.
15909         (iv_ca_narrow): Likewise.
15910         (iv_ca_prune): Likewise.
15911         (iv_ca_replace): Likewise.
15912         (try_add_cand_for): Likewise.
15913         (try_improve_iv_set): Likewise.
15914         (find_optimal_iv_set): Likewise.
15916 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
15918         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
15919         that internal functions will clobber all caller-saved registers.
15921 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
15923         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
15924         Return a better case_values_threshold when optimizing.
15926 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
15928         * config/aarch64/aarch64-simd.md (aarch64_combinez):
15929         Add ? to integer variant.
15930         (aarch64_combinez_be): Likewise.
15932 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
15934         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15935         instead of x constraint.
15936         (vcvtps2ph256<mask_name>): Likewise.
15938         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
15939         alternative.  Formatting fix.
15941         * config/i386/sse.md
15942         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
15943         to ...
15944         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
15945         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
15946         maybe_evex prefix instead of vex.
15947         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
15948         EXT_REX_SSE_REG_P (op0) case in the splitter.
15950 2016-05-25  Jeff Law  <law@redhat.com>
15952         PR tree-optimization/71272
15953         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
15954         Update comments.  Add test for empty path.
15956 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
15958         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
15959         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
15960         special case builtin.
15961         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15962         code for ALTIVEC_BUILTIN_VEC_CMPNE.
15963         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15964         for __builtin_vec_cmpne.
15966 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15968         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
15969         redundant test and bail out if the type of the new operand is not
15970         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
15972 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
15974         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
15975         (x_ix86_target_flags_explicit): Remove.
15976         * config/i386/i386.c (ix86_function_specific_save): Do not copy
15977         x_ix86_target_flags_explicit.
15978         (ix86_function_specific_restore): Ditto.
15980 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
15981             H.J. Lu  <hongjiu.lu@intel.com>
15983         PR target/70738
15984         * common/config/i386/i386-common.c
15985         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
15986         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
15987         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
15988         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
15989         (-mgeneral-regs-only): Add new option.
15990         * config/i386/i386.c (ix86_option_override_internal): Don't enable
15991         x87 instructions if only general registers are allowed.
15992         (ix86_target_string): Add ix86_flags argument. Handle additional
15993         flags options through ix86_flags argument.  Update all callers.
15994         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
15996 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15998         PR rtl-optimization/66940
15999         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
16000         decrementing desired_val will not overflow before performing these
16001         operations.
16003 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
16005         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
16006         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
16007         * config/i386/i386.c (enum ix86_builtins): Add
16008         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
16009         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
16010         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
16011         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
16012         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
16013         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
16014         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
16015         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
16016         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
16017         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
16018         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
16019         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
16020         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
16021         __builtin_ia32_cvtps2dq512_mask.
16022         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
16023         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
16024         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
16025         * config/i386/sse.md
16026         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
16027         Rename to ...
16028         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
16029         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
16030         to ...
16031         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
16032         (avx512f_vec_pack_sfix_v8df): New define_expand.
16033         (avx512f_roundpd512): Rename to ...
16034         (avx512f_round<castmode>512): ... this.  Change iterator.
16035         (avx512f_roundps512_sfix): New define_expand.
16036         (round<mode>2_sfix): Change iterator.
16038 2016-05-25  Nick Clifton  <nickc@redhat.com>
16040         * config/msp430/msp430.c (msp430_attr): Produce an error if a
16041         static interrupt handler is detected.
16042         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
16043         default linker script.
16044         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
16045         the low part of a symbolic pointer.
16047 2016-05-25  Richard Biener  <rguenther@suse.de>
16049         PR tree-optimization/71261
16050         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
16051         interesting stmt instead of immediate uses when looking
16052         for the use operand to replace.
16054 2016-05-25  Martin Liska  <mliska@suse.cz>
16056         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
16058 2016-05-25  Richard Biener  <rguenther@suse.de>
16060         PR tree-optimization/71264
16061         * tree-vect-stmts.c (vect_init_vector): Properly deal with
16062         vector type val.
16064 2016-05-25  Martin Liska  <mliska@suse.cz>
16066         PR tree-optimization/71239
16067         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
16068         if DECL_SIZE is NULL.
16070 2016-05-25  Richard Biener  <rguenther@suse.de>
16072         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
16073         * tree-if-conv.c (pass_data_if_conversion): Use it.
16075 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16077         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
16078         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
16079         * varpool.c (varpool_node::get_availability): Likewise.
16081 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16083         * config/rs6000/altivec.md (VNEG iterator): New iterator for
16084         VNEGW/VNEGD instructions.
16085         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
16086         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
16087         support for ISA 3.0 VNEGW/VNEGD instructions.
16089 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
16091         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
16092         pointers inside OACC_DATA regions.
16093         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
16094         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
16095         (gimplify_adjust_omp_clauses): Fix typo in comment.
16097 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16099         * config/rs6000/altivec.md (VParity): New mode iterator for vector
16100         parity built-in functions.
16101         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
16102         zeros.
16103         (p9v_parity<mode>2): Likewise.
16104         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
16105         parity.
16106         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
16107         (parity<mode>2): ISA 3.0 expander for vector parity.
16108         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
16109         power9 built-ins.
16110         (BU_P9_64BIT_MISC_0): Likewise.
16111         (BU_P9_MISC_0): Likewise.
16112         (BU_P9V_AV_1): Likewise.
16113         (BU_P9V_AV_2): Likewise.
16114         (BU_P9V_AV_3): Likewise.
16115         (BU_P9V_AV_P): Likewise.
16116         (BU_P9V_VSX_1): Likewise.
16117         (BU_P9V_OVERLOAD_1): Likewise.
16118         (BU_P9V_OVERLOAD_2): Likewise.
16119         (BU_P9V_OVERLOAD_3): Likewise.
16120         (VCTZB): Add vector count trailing zeros support.
16121         (VCTZH): Likewise.
16122         (VCTZW): Likewise.
16123         (VCTZD): Likewise.
16124         (VPRTYBD): Add vector parity support.
16125         (VPRTYBQ): Likewise.
16126         (VPRTYBW): Likewise.
16127         (VCTZ): Add overloaded vector count trailing zeros support.
16128         (VPRTYB): Add overloaded vector parity support.
16129         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16130         overloaded vector count trailing zeros and parity instructions.
16131         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
16132         vector parity support.
16133         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
16134         trailing zeros support.
16135         (vec_cntlz): Likewise.
16136         (vec_vctzb): Likewise.
16137         (vec_vctzd): Likewise.
16138         (vec_vctzh): Likewise.
16139         (vec_vctzw): Likewise.
16140         (vec_vprtyb): Add ISA 3.0 vector parity support.
16141         (vec_vprtybd): Likewise.
16142         (vec_vprtybw): Likewise.
16143         (vec_vprtybq): Likewise.
16144         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16145         the ISA 3.0 vector count trailing zeros and vector parity built-in
16146         functions.
16148 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
16150         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
16151         when there is stmt_to_insert.
16153 2016-05-24  Martin Sebor  <msebor@redhat.com>
16155         PR c++/71147
16156         * tree.h (complete_or_array_type_p): New inline function.
16158 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
16160         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
16161         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
16162         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
16164         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
16165         Limit 1st alternative to noavx isa, split 2nd alternative into one
16166         noavx and one avx alternative, use *x and Bm in the former and
16167         x and m in the latter.
16169         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
16170         of sse4 for the first alternative, drop %v from the template
16171         and d operand modifier.  Split second alternative into one sse4_noavx
16172         and one avx alternative, use *x instead of *v in the former and v
16173         instead of *v in the latter.
16174         (*sse4_1_extractps): Use noavx isa instead of * for the first
16175         alternative, drop %v from the template.  Split second alternative into
16176         one noavx and one avx alternative, use *x instead of *v in the
16177         former and v instead of *v in the latter.
16178         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
16179         with noavx and the last one with avx.
16180         (sse4_1_phminposuw): Guard first alternative with noavx isa,
16181         split the second one into one noavx and one avx alternative,
16182         use *x and Bm in the former and x and m in the latter one.
16183         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
16184         alternatives.
16186         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
16187         first two alternatives to noavx, use *x instead of *v in the second
16188         one, add avx alternative without *.
16189         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
16190         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
16191         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
16193 2016-05-24  Jeff Law  <law@redhat.com>
16195         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
16196         New function, extracted from...
16197         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
16198         Allow simple copies and constant initializations in the SSA chain.
16200 2016-05-24  Marek Polacek  <polacek@redhat.com>
16202         PR c/71249
16203         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
16204         scope.
16206 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
16208         PR c++/71257
16209         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
16210         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
16211         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
16212         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
16213         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
16215 2016-05-24  Richard Biener  <rguenther@suse.de>
16217         PR tree-optimization/71240
16218         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
16219         has integral type.
16221 2016-05-24  Richard Biener  <rguenther@suse.de>
16223         PR tree-optimization/71230
16224         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
16226 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
16228         * tree-vectorizer.h (vectorizable_comparison): Delete.
16229         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
16230         PURE_SLP_STMT check.
16231         * tree-vect-stmts.c (vectorizable_call): Likewise.
16232         (vectorizable_simd_clone_call): Likewise.
16233         (vectorizable_conversion): Likewise.
16234         (vectorizable_assignment): Likewise.
16235         (vectorizable_shift): Likewise.
16236         (vectorizable_operation): Likewise.
16237         (vectorizable_load): Likewise.
16238         (vectorizable_condition): Likewise.
16239         (vectorizable_store): Likewise.  Assert that we don't have
16240         hybrid SLP.
16241         (vectorizable_comparison): Make static.  Remove redundant
16242         PURE_SLP_STMT check.
16243         (vect_transform_stmt): Assert that we always have an slp_node
16244         if PURE_SLP_STMT.
16246 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16248         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
16249         operands[2] against 1 with comparison against CONST1_RTX.
16250         (<shift>di3_neon): Likewise.
16251         * config/arm/predicates.md (const0_operand): Replace with comparison
16252         against CONST0_RTX.
16254 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16256         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
16257         operands[2] against 1 with comparison against CONST1_RTX.
16258         (ashrdi3): Likewise.
16259         (lshrdi3): Likewise.
16260         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
16261         UINTVAL.
16262         (ashrsi3): Likewise.
16263         (lshrsi3): Likewise.
16264         (rotrsi3): Likewise.
16265         (define_split above *compareqi_eq0): Likewise.
16266         (define_split above "prologue"): Likewise.
16267         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
16268         * config/arm/predicates.md (shift_operator): Likewise.
16269         (shift_nomul_operator): Likewise.
16270         (sat_shift_operator): Likewise.
16271         (thumb1_cmp_operand): Likewise.
16272         (const_neon_scalar_shift_amount_operand): Replace manual range
16273         check with IN_RANGE.
16274         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
16275         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
16277 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16279         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
16280         with HOST_WIDE_INT_1.
16281         (insv): Likewise.
16282         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
16283         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
16284         (arm_canonicalize_comparison): Likewise.
16285         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
16286         HOST_WIDE_INT_1.
16287         (thumb1_size_rtx_costs): Likewise.
16288         (vfp_const_double_index): Replace cast of 1 to unsigned
16289         HOST_WIDE_INT with HOST_WIDE_INT_1U.
16290         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
16291         HOST_WIDE_INT_1.
16292         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
16293         HOST_WIDE_INT with HOST_WIDE_INT_1U.
16294         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
16295         HOST_WIDE_INT with HOST_WIDE_INT_1.
16297 2016-05-24  Marek Polacek  <polacek@redhat.com>
16299         * tree-cfg.h (should_remove_lhs_p): New predicate.
16300         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16301         * gimplify.c (gimplify_modify_expr): Likewise.
16302         * tree-cfg.c (verify_gimple_call): Likewise.
16303         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16304         * gimple-fold.c: Include "tree-cfg.h".
16305         (gimple_fold_call): Use should_remove_lhs_p.
16307 2016-05-24  Richard Biener  <rguenther@suse.de>
16309         PR tree-optimization/71253
16310         * cfganal.h (control_dependences): Make robust against edge
16311         and BB removal.
16312         (control_dependences::control_dependences): Remove edge_list argument.
16313         (control_dependences::get_edge): Remove.
16314         (control_dependences::get_edge_src): Add.
16315         (control_dependences::get_edge_dest): Likewise.
16316         (control_dependences::m_el): Make a vector of edge src/dest index.
16317         * cfganal.c (control_dependences::find_control_dependence): Adjust.
16318         (control_dependences::control_dependences): Likewise.
16319         (control_dependences::~control_dependence): Likewise.
16320         (control_dependences::get_edge): Remove.
16321         (control_dependences::get_edge_src): Add.
16322         (control_dependences::get_edge_dest): Likewise.
16323         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
16324         get_edge_src.
16325         (perform_tree_ssa_dce): Adjust.
16326         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
16327         get_edge_src.
16328         (pass_loop_distribution::execute): Adjust.  Do loop destroying
16329         conditional on changed.
16331 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16333         PR target/69857
16334         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
16335         return.  Reindent transformation comment and mention the ARM state
16336         behavior.
16338 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
16340         PR middle-end/71252
16341         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
16342         after build_and_add_sum creates new use stmt.
16344 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
16346         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
16347         load_lanes/grouped_load classification comes first.  Don't check
16348         whether the vectorization factor is a multiple of the group size
16349         for load_lanes.
16351 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
16353         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
16354         GROUP_GAP for single-element interleaving.
16355         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
16356         variable.
16358 2016-05-24  Richard Biener  <rguenther@suse.de>
16360         PR middle-end/70434
16361         PR c/69504
16362         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
16363         bases which are accessed with non-invariant indices.
16364         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
16365         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
16367 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
16369         PR middle-end/71170
16370         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
16371         (add_to_ops_vec): Add stmt_to_insert.
16372         (add_repeat_to_ops_vec): Init stmt_to_insert.
16373         (insert_stmt_before_use): New.
16374         (transform_add_to_multiply): Remove mult_stmt insertion and add it
16375         to ops vector.
16376         (get_ops): Init stmt_to_insert.
16377         (maybe_optimize_range_tests): Likewise.
16378         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
16379         (rewrite_expr_tree_parallel): Likewise.
16380         (reassociate_bb): Likewise.
16382 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16384         PR target/71201
16385         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
16386         ISA 3.0 xxperm fusion alternative.
16387         (altivec_vperm_v8hiv16qi): Likewise.
16388         (altivec_vperm_<mode>_uns_internal): Likewise.
16389         (vperm_v8hiv4si): Likewise.
16390         (vperm_v16qiv8hi): Likewise.
16392 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16393             Kelvin Nilsen  <kelvin@gcc.gnu.org>
16395         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
16396         vpermr/xxpermr on ISA 3.0.
16397         (altivec_expand_vec_perm_le): Likewise.
16398         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
16399         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
16400         ISA 3.0.
16402 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
16404         * config/i386/i386.h (IS_STACK_MODE): Enable for
16405         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
16406         SSE_FLOAT_MODE_P macros.
16407         * config/i386/i386.c (ix86_preferred_reload_class): Use
16408         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
16409         Cleanup regclass processing for CONST_DOUBLE_P.
16410         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
16411         (ix86_rtx_costs): Remove redundant TARGET_80387 check
16412         with IS_STACK_MODE macro.
16413         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
16414         with TARGET_SSE2.
16415         (*movdf_internal): Use IS_STACK_MODE macro.
16416         (*movsf_internal): Ditto.
16418 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
16420         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
16421         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
16423 2016-05-23  Jeff Law  <law@redhat.com>
16425         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
16426         extracted from ...
16427         (fsm_find_control_statement_thread_paths): Call it.
16429 2016-05-23  Martin Jambor  <mjambor@suse.cz>
16431         PR ipa/71234
16432         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
16433         from_global_constant if t is not NULL.
16435 2016-05-23  Marek Polacek  <polacek@redhat.com>
16437         PR c/49859
16438         * common.opt (Wswitch-unreachable): New option.
16439         * doc/invoke.texi: Document -Wswitch-unreachable.
16440         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
16441         warning.
16443 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
16445         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
16446         TMR_INDEX is non-NULL.
16448 2016-05-23  Richard Biener  <rguenther@suse.de>
16450         PR tree-optimization/71230
16451         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
16452         (try_special_add_to_ops): ... here.  Always test for single-use.
16454 2016-05-23  Martin Jambor  <mjambor@suse.cz>
16456         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
16457         default block if a PHI node in the original one would be resized.
16459 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16461         PR tree-optimization/58135
16462         * tree-vect-slp.c: When group size is not multiple
16463         of vector size, allow splitting of store group at
16464         vector boundary.
16466 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
16468         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
16470 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
16472         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16473         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
16474         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
16475         of 64x2.
16477         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
16478         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
16479         v constraint instead of x and vinserti32x4 insn.
16481         * config/i386/sse.md (i128vldq): New mode iterator.
16482         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
16483         avx512dq and avx512vl alternatives.
16485         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
16486         constraint, use maybe_evex prefix instead of vex.
16487         (vec_dupv4sf): Use v constraint instead of x for output
16488         operand except for noavx alternative, use Yv constraint
16489         instead of x for input.  Use maybe_evex prefix instead of vex.
16490         (*vec_dupv4si): Likewise.
16491         (*vec_dupv2di): Likewise.
16493 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16495         PR middle-end/40921
16496         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
16497         (linearize_expr_tree): Call try_special_add_to_ops.
16498         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
16500 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16502         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
16503         to computed stack_usage.
16505 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16507         PR target/71103
16508         * config/avr/avr.md (define_expand "mov<mode>"): If the source
16509         operand is subreg (symbol_ref) then move the symbol ref to register.
16511 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
16513         * tree.c (array_at_struct_end_p): Look through MEM_REF.
16515 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
16517         PR middle-end/71179
16518         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
16519         VECTOR type.
16521 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16523         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
16524         ranges by calling get_single_symbol and tidy up.  Look more closely
16525         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
16527 2016-05-20  Jeff Law  <law@redhat.com>
16529         * bitmap.c (bitmap_find_bit): Remove useless test.
16531 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
16533         * function.c (thread_prologue_and_epilogue_insns): Commit the
16534         insertion of the epilogue.
16536 2016-05-20  Martin Jambor  <mjambor@suse.cz>
16538         PR tree-optimization/70884
16539         * tree-sra.c (initialize_constant_pool_replacements): Do not check
16540         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
16541         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
16542         of constant pool data as a reason for scalarization.
16544 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16546         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
16547         for naked functions.
16548         (thumb1_expand_prologue): Likewise.
16550 2016-05-20  Nathan Sidwell  <nathan@acm.org>
16552         * config/nvptx/nptx.c (nvptx_option_override): Only set
16553         flag_toplevel_reorder, if not explicitly specified.  Set
16554         flag_no_common, unless explicitly specified.
16556 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
16558         * calls.c (can_implement_as_sibling_call_p): Mark param
16559         reg_parm_stack_space with ATTRIBUTE_UNUSED.
16561 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
16563         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
16564         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
16565         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
16566         constants.
16567         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
16568         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
16569         and CASE_CONST_ANY.
16571 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
16573         * config/nvptx/nvptx.md (sincossf3): New pattern.
16575 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
16577         * calls.c (maybe_complain_about_tail_call): New function.
16578         (initialize_argument_information): Call
16579         maybe_complain_about_tail_call when clearing *may_tailcall.
16580         (can_implement_as_sibling_call_p): Call
16581         maybe_complain_about_tail_call when returning false.
16582         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
16583         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
16584         if tail-call optimization fails.
16585         * cfgexpand.c (expand_call_stmt): Initialize
16586         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
16587         * gimple-pretty-print.c (dump_gimple_call): Dump
16588         gimple_call_must_tail_p.
16589         * gimple.c (gimple_build_call_from_tree): Call
16590         gimple_call_set_must_tail with the value of
16591         CALL_EXPR_MUST_TAIL_CALL.
16592         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
16593         (gimple_call_set_must_tail): New function.
16594         (gimple_call_must_tail_p): New function.
16595         * print-tree.c (print_node): Update printing of TREE_STATIC
16596         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
16597         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
16598         trailing comment listing applicable flags.
16599         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
16601 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
16603         * calls.c (expand_call): Move "Rest of purposes for tail call
16604         optimizations to fail" to...
16605         (can_implement_as_sibling_call_p): ...this new function, and
16606         split into multiple "if" statements.
16608 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
16610         * cfgloop.h (expected_loop_iterations_unbounded,
16611         expected_loop_iterations): Unconstify.
16612         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
16613         profile with known upper bound; return 3 when profile is absent.
16614         (expected_loop_iterations): Update.
16616 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
16618         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
16619         and get_max_loop_iterations_int.
16621 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
16623         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
16624         realistic upper bounds here.
16626 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
16628         PR c++/71210
16629         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
16630         calls if the LHS is variable length or has addressable type.
16631         If targets[0]->decl is a noreturn call with void return type and
16632         zero arguments, adjust fntype and remove lhs in that case.
16634 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
16636         PR tree-optimization/71079
16637         PR tree-optimization/71206
16638         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
16640 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16642         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
16643         (get_vec_alignment_for_array_decl): Likewise.
16644         (get_vec_alignment_for_record_decl): Likewise.
16645         (increase_alignment::execute): Move code to find alignment to
16646         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
16647         (type_align_map): New hash_map.
16649 2016-05-20  Richard Guenther  <rguenther@suse.de>
16651         PR tree-optimization/29756
16652         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
16653         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
16654         * fold-const.c (operand_equal_p): Likewise.
16655         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
16656         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
16657         * tree-inline.c (estimate_operator_cost): Likewise.
16658         * tree-pretty-print.c (dump_generic_node): Likewise.
16659         * tree-ssa-operands.c (get_expr_operands): Likewise.
16660         * cfgexpand.c (expand_debug_expr): Likewise.
16661         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16662         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
16663         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
16664         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
16665         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
16666         (execute_update_addresses_taken): Do it.
16668 2016-05-20  Richard Biener  <rguenther@suse.de>
16670         PR tree-optimization/71185
16671         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
16672         register operations.
16674 2016-05-20  Richard Biener  <rguenther@suse.de>
16676         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
16677         gimple_seq_add_seq_without_update.
16678         (release_bb_predicate): Assert we have no operands to free.
16679         (if_convertible_loop_p_1): Calculate post dominators later.
16680         Do not free BB predicates here.
16681         (combine_blocks): Do not recompute BB predicates.
16682         (version_loop_for_if_conversion): Save BB predicates around
16683         loop versioning.
16685 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16687         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
16688         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
16689         code.  Ignore sibcalls on EDGE_IGNORE edges.
16690         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
16691         on edges for sibcalls that run without prologue.  The rest of the
16692         function is combined from...
16693         (fix_fake_fallthrough_edge): ... this, and ...
16694         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
16695         function argument, make it a local variable.
16697 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
16699         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
16700         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
16701         for 32-bit mode and SEH for 64-bit.
16702         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
16703         TARGET_64BIT_DEFAULT.
16705 2016-05-19  Ryan Burn  <contact@rnburn.com>
16707         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
16708         * gengtype.c (open_base_files): Add cilk.h to ifiles.
16710 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
16712         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
16713         force pending loads from memory.
16715 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16717         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
16718         (UNSPEC_DARN_32): New unspec constant.
16719         (UNSPEC_DARN_RAW): New unspec constant.
16720         (darn_32): New instruction.
16721         (darn_raw): New instruction.
16722         (darn): New instruction.
16723         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
16724         support and documentation for this macro.
16725         (BU_P9_MISC_1): New macro definition.
16726         (BU_P9_64BIT_MISC_0): New macro definition.
16727         (BU_P9_MISC_0): New macro definition.
16728         (darn_32): New builtin definition.
16729         (darn_raw): New builtin definition.
16730         (darn): New builtin definition.
16731         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
16732         RS6000_BUILTIN_0 directives to surround each occurrence of
16733         #include "rs6000-builtin.def".
16734         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
16735         RS6000_BTM_64BIT flags to the returned mask, depending on
16736         configuration.
16737         (def_builtin): Correct an error in the assignments made to the
16738         debugging variable attr_string.
16739         (rs6000_expand_builtin): Add support for no-operand built-in
16740         functions.
16741         (builtin_function_type): Remove fatal_error assertion that is no
16742         longer valid.
16743         (rs6000_common_init_builtins): Add support for no-operand built-in
16744         functions.
16745         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
16746         definition.
16747         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
16748         definition.
16749         (RS6000_BTM_64BIT): New macro definition.
16750         * doc/extend.texi: Document __builtin_darn (void),
16751         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
16752         functions.
16754 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
16756         * tree-vect-loop.c (vect_analyze_loop_2): Use also
16757         max_loop_iterations_int.
16759 2016-05-19  Marek Polacek  <polacek@redhat.com>
16761         PR tree-optimization/71031
16762         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
16763         condition and adjust the code a bit.
16765 2016-05-19  Martin Liska  <mliska@suse.cz>
16767         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
16768         auto_vec instead of vec.
16770 2016-05-19  Martin Liska  <mliska@suse.cz>
16772         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
16774 2016-05-19  Martin Liska  <mliska@suse.cz>
16776         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
16778 2016-05-19  Martin Liska  <mliska@suse.cz>
16780         * ipa-pure-const.c (set_function_state): Remove an existing
16781         funct_state.
16782         (remove_node_data): Do not free it as it's released
16783         in set_function_state.
16785 2016-05-19  Martin Liska  <mliska@suse.cz>
16787         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
16788         bitmap.
16790 2016-05-19  Martin Liska  <mliska@suse.cz>
16792         * omp-simd-clone.c (simd_clone_adjust): Release vector.
16794 2016-05-19  Martin Liska  <mliska@suse.cz>
16796         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
16797         an auto_vec instead of re-creating it.
16799 2016-05-19  Martin Liska  <mliska@suse.cz>
16801         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
16802         auto_vec instead of vec.
16804 2016-05-19  Martin Liska  <mliska@suse.cz>
16806         * lto-section-in.c (lto_get_section_data): Call
16807         lto_check_version with additional argument.
16808         * lto-streamer.c (lto_check_version): Add new argument.
16809         * lto-streamer.h (lto_check_version): Likewise.
16811 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16813         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
16814         Don't add cost of inner memory when handling sign-extended loads.
16816 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16818         PR rtl-optimization/71148
16819         * cse.c (cse_main): Free dominance info.
16820         (rest_of_handle_cse): Don't free dominance info.
16821         (rest_of_handle_cse2): Likewise.
16822         (rest_of_handle_cse_after_global_opts): Likewise.
16824 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16826         PR target/71056
16827         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
16828         NULL_TREE early if NEON is not available.  Remove now redundant check
16829         in ARM_CHECK_BUILTIN_MODE.
16831 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
16833         PR sanitizer/64354
16834         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
16835         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
16836         * doc/cpp.texi: Document new macros.
16838 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
16840         PR tree-optimization/69848
16841         * tree-vect-loop.c (vectorizable_reduction): Don't factor
16842         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
16844 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16846         * function.c (thread_prologue_and_epilogue_insn): Move the
16847         "goto epilogue_done" one block later.
16849 2016-05-19  Richard Biener  <rguenther@suse.de>
16851         PR tree-optimization/70729
16852         * passes.def: Move LIM pass before PRE.  Remove no longer
16853         required copyprop and move first DCE out of the loop pipeline.
16855 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
16857         PR driver/69265
16858         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
16859         (OBJS-libcommon-target): ...here.
16860         * opts-common.c: Include spellcheck.h.
16861         (cmdline_handle_error): Build a vec of valid options and use it
16862         to suggest provide hints for misspelled arguments.
16864 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
16866         PR c++/71100
16867         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
16868         lhs if it has TREE_ADDRESSABLE type.
16870 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
16872         PR target/71145
16873         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
16874         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
16876 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16878         PR ipa/69708
16879         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
16880         input for NOP_EXPR pass-through functions.
16881         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
16882         aggregate global constant VAR_DECLs in constant jump functions.
16884 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16886         PR ipa/69708
16887         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
16888         from TREE_READONLY parameters.
16890 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16892         PR ipa/69708
16893         * cgraph.h (cgraph_indirect_call_info): New field
16894         guaranteed_unmodified.
16895         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
16896         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16897         appropriate.
16898         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
16899         pass the parameter value to ipa_find_agg_cst_for_param.
16900         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
16901         guaranteed_unmodified, store AA results there instead of bailing out
16902         if present.
16903         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
16904         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
16905         (find_constructor_constant_at_offset): New function.
16906         (ipa_find_agg_cst_from_init): Likewise.
16907         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
16908         static initializers of contants, report back through a new paameter
16909         from_global_constant if that was the case.
16910         (try_make_edge_direct_simple_call): Also pass parameter value to
16911         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16912         appropriate.
16913         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
16914         (ipa_read_indirect_edge_info): Likewise.
16915         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
16916         (ipa_load_from_parm_agg): Likewise.
16918 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
16920         PR rtl-optimization/71150
16921         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
16922         check.
16924 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
16926         PR target/70915
16927         * config/rs6000/constraints.md (wE constraint): New constraint
16928         for a vector constant that can be loaded with XXSPLTIB.
16929         (wM constraint): New constraint for a vector constant of a 1's.
16930         (wS constraint): New constraint for a vector constant that can be
16931         loaded with XXSPLTIB and a vector sign extend instruction.
16932         * config/rs6000/predicates.md (xxspltib_constant_split): New
16933         predicates for wE/wS constraints.
16934         (xxspltib_constant_nosplit): Likewise.
16935         (easy_vector_constant): Add support for constants that can be
16936         loaded via XXSPLTIB.
16937         (all_ones_constant): New predicate for vector constant with all
16938         1's set.
16939         (splat_input_operand): Add support for ISA 3.0 word splat operations.
16940         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
16941         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
16942         instruction and possibly with a sign extension.
16943         (output_vec_const_move): Add support for XXSPLTIB. If we are
16944         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
16945         instead of XXLXOR/XXLORC.
16946         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
16947         operations.
16948         (rs6000_legitimize_reload_address): Likewise.
16949         (rs6000_output_move_128bit): Use output_vec_const_move to emit
16950         constants.
16951         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
16952         combine VSX_M and VSX_M2 into one iterator.
16953         (VSX_M2): Likewise.
16954         (VSINT_84): New iterators for loading constants with XXSPLTIB.
16955         (VSINT_842): Likewise.
16956         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
16957         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
16958         XXSPLTIB instruction.
16959         (xxspltib_<mode>_nosplit): Likewise.
16960         (xxspltib_<mode>_split): New insn to load up constants with
16961         XXSPLTIB and a sign extend instruction.
16962         (vsx_mov<mode>): Replace single move that handled all vector types
16963         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
16964         moves (when -mvsx-timode is in effect) into the main vector
16965         moves.  Eliminate separate moves for <VSr> <VSa>, where the
16966         preferred register class (<VSr>) is listed first, and the
16967         secondary register class (<VSa>) is listed second with a '?' to
16968         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
16969         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
16970         that if the register was involved in a slow operation, the
16971         clear/set operation does not wait for the slow operation to
16972         finish.  Adjust the length attributes for 32-bit mode.  Use
16973         rs6000_output_move_128bit and drop the use of the string
16974         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
16975         spacing so that the alternatives and attributes don't generate
16976         long lines, and put things in columns, so that it is easier to
16977         match up the operands and attributes with the insn alternatives.
16978         (vsx_mov<mode>_64bit): Likewise.
16979         (vsx_mov<mode>_32bit): Likewise.
16980         (vsx_movti_64bit): Fold movti into normal vector moves.
16981         (vsx_movti_32bit): Likewise.
16982         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
16983         splat instructions.
16984         (vsx_splat_v4si_internal): Likewise.
16985         (vsx_splat_v4sf_internal): Likewise.
16986         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
16987         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
16988         extend vector elements.
16989         (vsx_sign_extend_hi_<mode>): Likewise.
16990         (vsx_sign_extend_si_v2di): Likewise.
16991         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
16992         declaration.
16993         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
16994         constraints.  Add trailing period to wL documentation.
16996 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
16998         PR middle-end/71020
16999         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
17000         * tree-dfa.c (replace_abnormal_ssa_names): New function.
17001         * tree-call-cdce.c: Include tree-dfa.h.
17002         (can_guard_call_p): New function, extracted from...
17003         (can_use_internal_fn): ...here.
17004         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
17005         and return void.
17006         (shrink_wrap_one_built_in_call): Likewise.
17007         (use_internal_fn): Likewise.
17008         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
17009         and return void.  Call replace_abnormal_ssa_names.
17010         (pass_call_cdce::execute): Check can_guard_call_p during the
17011         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
17012         will always change something.
17014 2016-05-18  Martin Jambor  <mjambor@suse.cz>
17016         PR ipa/70646
17017         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
17018         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
17020 2016-05-18  Martin Jambor  <mjambor@suse.cz>
17022         PR ipa/70646
17023         * ipa-inline.h (condition): New field size.
17024         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
17025         for comaprison and store it into the new condition.
17026         (evaluate_conditions_for_known_args): Use condition size to check
17027         access sizes for all but CHANGED conditions.
17028         (unmodified_parm_1): New parameter size_p, store access size into it.
17029         (unmodified_parm): Likewise.
17030         (unmodified_parm_or_parm_agg_item): Likewise.
17031         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
17032         (set_cond_stmt_execution_predicate): Extract access sizes and store
17033         them to conditions.
17034         (set_switch_stmt_execution_predicate): Likewise.
17035         (will_be_nonconstant_expr_predicate): Likewise.
17036         (will_be_nonconstant_predicate): Likewise.
17037         (inline_read_section): Stream condition size.
17038         (inline_write_summary): Likewise.
17040 2016-05-18  Richard Biener  <rguenther@suse.de>
17042         * tree-ssa-loop-im.c (determine_max_movement): Properly add
17043         condition cost to PHI cost instead of total_cost.
17045 2016-05-18  Martin Liska  <mliska@suse.cz>
17047         PR fortran/70856
17048         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
17049         merged variables.
17051 2016-05-18  Richard Biener  <rguenther@suse.de>
17053         * lto-streamer.h (LTO_major_version): Bump to 6.
17055 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
17057         * function.c (make_split_prologue_seq, make_prologue_seq,
17058         make_epilogue_seq): New functions, factored out from...
17059         (thread_prologue_and_epilogue_insns): Here.
17061 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
17063         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
17064         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
17065         of before.  Add a comment.
17067 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
17069         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
17070         expression pointer, not pointer to the pointer.
17072 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
17074         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
17075         (avx2_pbroadcast<mode>): Add another alternative with v instead
17076         of x constraints in it, using <pbroadcast_evex_isa> isa.
17077         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
17079         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
17080         constraint x instead of v in second alternative, add avx512bw
17081         alternative.
17083         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
17084         constraint x instead of v in second alternative, add avx512bw
17085         alternative.
17087         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
17088         constraint x instead of v in second alternative, add avx512bw
17089         alternative.
17091         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
17092         avx512bw alternative.
17094 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
17096         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
17097         array to 128 chars.
17098         (define_insn "*andnottf3"): Ditto.
17099         (define_insn "*<code><mode>3"/any_logic): Ditto.
17100         (define_insn "*<code>tf3"/any_logic): Ditto.
17101         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
17102         operand to block AVX-512VL insn variant emit when it is not enabled.
17104 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
17106         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
17107         constraint fot SF mode.
17109 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
17110             Kirill Yukhin  <kirill.yukhin@intel.com>
17112         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
17113         modifiers.
17114         (define_insn "rsqrt14<mode>"): Ditto.
17115         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
17116         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
17117         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
17118         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
17119         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
17120         Ditto.
17121         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
17122         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
17123         * config/i386/i386.c (ix86_print_operand): Expand check for size
17124         override codes for Intel syntax.
17126 2016-05-18  Richard Biener  <rguenther@suse.de>
17128         PR tree-optimization/71168
17129         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
17130         initialization earlier.
17132 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
17134         * config/aarch64/aarch64-simd.md
17135         (aarch64_reduc_plus_internal<mode>): Rename to...
17136         (reduc_plus_scal): ...This, and remove previous implementation.
17138 2016-05-18  Richard Biener  <rguenther@suse.de>
17140         * passes.def: Put late dse and cd_dce in canonical order.
17142 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
17144         * ipa-inline-transform.c (preserve_function_body_p): Look for
17145         first non-thunk clone.
17146         (save_function_body): Save into first non-thunk.
17147         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
17148         up call stmt id.
17149         (lto_output_node): Inline thunks don't need body in every
17150         partition.
17151         * lto-streamer-in.c: Do not fixup thunk clones.
17152         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
17153         thunks.
17154         * tree-inline.c (copy_bb): Be prepared for target node to be new after
17155         folding suceeds.
17157 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
17159         PR middle-end/63586
17160         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
17161         (reassociate_bb): Call transform_add_to_multiply.
17163 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
17165         * config/aarch64/aarch64.c (all_extensions): Removed unused
17166         static variable.
17168 2016-05-17  Nathan Sidwell  <nathan@acm.org>
17170         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
17171         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
17173 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
17175         PR tree-optimization/54579
17176         PR middle-end/55299
17177         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
17179 2016-05-17  Marek Polacek  <polacek@redhat.com>
17181         PR ipa/71146
17182         * tree-inline.c (expand_call_inline): Call
17183         maybe_remove_unused_call_args.
17185 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
17187         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
17188         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
17189         * doc/md.texi (fmin@var{m}3): Likewise.
17191 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
17193         * match.pd (X & C): New transformation.
17195 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
17197         * match.pd (~X & Y): New transformation.
17199 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
17201         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
17202         information for new SSA_NAME.
17203         (simplify_conversion_using_ranges): Get range through get_range_info
17204         instead of get_value_range.
17206 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
17208         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
17209         Remove inline assembly.
17210         (vmvn_s16): Likewise.
17211         (vmvn_s32): Likewise.
17212         (vmvn_u8): Likewise.
17213         (vmvn_u16): Likewise.
17214         (vmvn_u32): Likewise.
17215         (vmvnq_s8): Likewise.
17216         (vmvnq_s16): Likewise.
17217         (vmvnq_s32): Likewise.
17218         (vmvnq_u8): Likewise.
17219         (vmvnq_u16): Likewise.
17220         (vmvnq_u32): Likewise.
17221         (vmvn_p8): Likewise.
17222         (vmvnq_p16): Likewise.
17224 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
17226         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
17227         Use builtin.
17228         (vmul_n_s16): Likewise.
17229         (vmul_n_s32): Likewise.
17230         (vmul_n_u16): Likewise.
17231         (vmul_n_u32): Likewise.
17232         (vmulq_n_f32): Likewise.
17233         (vmulq_n_f64): Likewise.
17234         (vmulq_n_s16): Likewise.
17235         (vmulq_n_s32): Likewise.
17236         (vmulq_n_u16): Likewise.
17237         (vmulq_n_u32): Likewise.
17239 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
17241         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
17242         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
17244 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
17246         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
17247         to *aarch64_fma4_elt_from_dup<mode>.
17248         (*aarch64_fnma4_elt_to_128df): Rename to
17249         *aarch64_fnma4_elt_from_dup<mode>.
17250         * config/aarch64/arm_neon.h (vfma_n_f64): New.
17251         (vfms_n_f32): Likewise.
17252         (vfms_n_f64): Likewise.
17253         (vfmsq_n_f32): Likewise.
17254         (vfmsq_n_f64): Likewise.
17256 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
17258         * wide-int.h: Change fixed_wide_int_storage from class to struct.
17260 2016-05-17  Richard Biener  <rguenther@suse.de>
17262         PR tree-optimization/71132
17263         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
17264         Only add control dependences for blocks in the loop.
17265         (build_rdg): Adjust.
17266         (generate_code_for_partition): Return whether loop should
17267         be destroyed and delay that.
17268         (distribute_loop): Likewise.
17269         (pass_loop_distribution::execute): Record loops to be destroyed
17270         and perform delayed destroying of loops.
17272 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17274         PR target/70809
17275         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
17277 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
17279         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
17281 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
17283         PR target/71114
17284         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
17285         insertion point for instructions generated by validize_mem.
17287 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
17289         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
17290         in brackets.
17292 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
17294         * config/aarch64/aarch64.c
17295         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
17296         rather than a macro.
17298 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
17300         * doc/invoke.texi (AArch64 Options): Various updates.
17302 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17304         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
17305         into instrumentation thunks.
17306         * cif-code.def (CIF_CHKP): New.
17308 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
17310         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
17312 2016-05-16  Martin Jambor  <mjambor@suse.cz>
17314         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
17315         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
17317 2016-05-16  Marek Polacek  <polacek@redhat.com>
17319         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
17320         commentary.
17322 2016-05-16  Martin Jambor  <mjambor@suse.cz>
17324         PR hsa/70857
17325         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
17326         the outlined kernel function.
17328 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17330         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
17331         (ISA_HAS_DLSA): Ditto.
17333 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
17335         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
17337 2016-05-16  Nathan Sidwell  <nathan@acm.org>
17339         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
17340         (nvptx_name_replacement): Restore.  Add comment.
17341         (write_fn_proto, write_fn_proto_from_insn,
17342         nvptx_output_call_insn): Restore
17343         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
17345 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
17347         * config/aarch64/aarch64.md
17348         (add<mode>3_compareC_cconly_imm): Remove use of %w.
17349         (add<mode>3_compareC_imm): Likewise.
17350         (<optab>si3_uxtw): Split into register and immediate variants.
17351         (andsi3_compare0_uxtw): Likewise.
17352         (and<mode>3_compare0): Likewise.
17353         (and<mode>3nr_compare0): Likewise.
17354         (stack_protect_test_<mode>): Don't use %x for memory operands.
17356 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
17358         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
17360 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
17362         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17363         Split integer shifts into shift_reg and bfm.
17364         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17365         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17366         (ror<mode>3_insn): Likewise.
17367         (<optab>si3_insn_uxtw): Likewise.
17368         (<optab><mode>3_insn): Change to rotate_imm.
17369         (extr<mode>5_insn_alt): Likewise.
17370         (extrsi5_insn_uxtw): Likewise.
17371         (extrsi5_insn_uxtw_alt): Likewise.
17373 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
17375         * doc/tm.texi: Regenerate.
17376         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
17377         (TARGET_INVALID_RETURN_TYPE): Remove.
17378         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
17379         TARGET_INVALID_RETURN_TYPE.
17380         * target.def (invalid_parameter_type): Remove.
17381         (invalid_return_type): Remove.
17383 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17385         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
17386         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
17387         calls from thunk.
17388         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
17389         gimple body.
17390         (preserve_function_body_p): No need to preserve function body
17391         * cif-codes.def (CIF_THUNK): Remove.
17392         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
17394 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17396         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
17398 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17400         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
17401         for thunks.
17403 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17405         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
17406         (inline_small_functions): Do not look for function symbol when
17407         resetting caches.
17409 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
17411         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
17412         of inline thunks
17414 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
17415             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17416             Jiong Wang  <jiong.wang@arm.com>
17418         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
17419         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
17420         Define __ARM_FP16_ARGS when appropriate.
17421         * config/arm/arm.c (arm_invalid_parameter_type): Remove
17422         declaration.
17423         (arm_invalid_return_type): Likewise.
17424         (TARGET_INVALID_PARAMETER_TYPE): Remove.
17425         (TARGET_INVALID_RETURN_TYPE): Remove.
17426         (aapcs_vfp_sub_candidate): Allow HFmode.
17427         (aapcs_vfp_allocate): Add comment.  Support HFmode.
17428         (aapcs_vfp_allocate_return_reg): Likewise.
17429         (struct aapcs_cp_arg_layout): Slightly reword comments for
17430         is_return_candidate and allocate_return_reg.
17431         (output_mov_vfp): Update assert.
17432         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
17433         condition.
17434         (arm_invalid_parameter_type): Remove.
17435         (amr_invalid_return_type): Remove.
17436         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
17437         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
17438         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
17440 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
17442         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17443         * config/aarch64/arch64-protos.h
17444         (aarch64_legitimize_reload_address): Remove.
17445         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
17446         Remove.
17448 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17450         * configure.ac: Add ACX_NONCANONICAL_HOST.
17451         * configure: Regenerate.
17452         * Makefile.in: Set host_noncanonical.
17454 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
17456         PR target/71097
17457         * config/i386/i386.md (*movtf_internal): Before register allocation,
17458         do not allow FP constants for CM_MEDIUM memory model, allow only
17459         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
17460         (*movxf_internal): Ditto.
17461         (*movdf_internal): Ditto.
17462         (*movsf_internal): Ditto.
17464 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
17466         PR rtl-optimization/67483
17467         * combine.c (make_compound_operation): Don't call extract_left_shift
17468         with negative shift amounts.
17470 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
17472         PR bootstrap/71071
17473         * fold-const.c (fold_checksum_tree): Allow modification
17474         of TYPE_ALIAS_SET during folding.
17476         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
17477         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
17478         (ix86_split_to_parts): Likewise.  Fix up formatting.
17480 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17482         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
17483         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
17484         printf format.
17486 2016-05-13  Nathan Sidwell  <nathan@acm.org>
17488         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
17489         (nvptx_name_replacement): Delete.
17490         (write_fn_proto, write_fn_proto_from_insn,
17491         nvptx_output_call_insn): Remove nvptx_name_replacement call.
17492         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
17493         * langhooks.c (add_builtin_funcction_common): Call
17494         targetm.mangle_decl_assembler_name.
17496         * config/nvptx/nvptx.c (write_fn_proto): Handle
17497         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
17499 2016-05-13  Martin Liska  <mliska@suse.cz>
17501         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
17502         and PRIu64 in printf format.
17504 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17506         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
17507         comment.
17509 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17511         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17512         Change --param max-completely-peeled-times to
17513         --param max-completely-peel-times in dump file printing.
17515 2016-05-13  Richard Biener  <rguenther@suse.de>
17517         PR tree-optimization/42587
17518         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
17519         (find_bswap_or_nop_1): Likewise.
17520         (bswap_replace): Likewise.
17522 2016-05-13  Martin Liska  <mliska@suse.cz>
17524         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
17525         Initialize a variable with default value.
17527 2016-05-13  Martin Liska  <mliska@suse.cz>
17529         * doc/invoke.texi: Enhance explanation of error recovery
17530         of sanitizers.
17532 2016-05-13  Martin Liska  <mliska@suse.cz>
17534         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
17535         (struct cost_pair): Change inv_expr_id (int) to inv_expr
17536         (iv_inv_expr_ent *).
17537         (struct iv_inv_expr_ent): Comment struct fields.
17538         (sort_iv_inv_expr_ent): New function.
17539         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
17540         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
17541         a hash_map between iv_inv_expr_ent and number of usages.
17542         (niter_for_exit): Fix coding style.
17543         (tree_ssa_iv_optimize_init): Use renamed variable.
17544         (determine_base_object): Fix coding style.
17545         (alloc_iv): Likewise.
17546         (find_interesting_uses_outside): Likewise.
17547         (add_candidate_1): Likewise.
17548         (add_standard_iv_candidates): Likewise.
17549         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
17550         (prepare_decl_rtl): Fix coding style.
17551         (get_address_cost): Likewise.
17552         (get_shiftadd_cost): Likewise.
17553         (force_expr_to_var_cost): Likewise.
17554         (compare_aff_trees): Likewise.
17555         (get_expr_id): Restructure the function.
17556         (get_loop_invariant_expr_id): Renamed to
17557         get_loop_invariant_expr.
17558         (get_computation_cost_at): Replace usage of inv_expr_id with
17559         inv_expr.
17560         (get_computation_cost): Likewise.
17561         (determine_group_iv_cost_generic): Likewise.
17562         (determine_group_iv_cost_address): Likewise.
17563         (iv_period): Fix coding style.
17564         (iv_elimination_compare_lt): Likewise.
17565         (may_eliminate_iv): Likewise.
17566         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
17567         inv_expr.
17568         (determine_group_iv_costs): Dump invariant expressions.
17569         (iv_ca_recount_cost): Use the newly added hash_map.
17570         (iv_ca_set_remove_invariants): Fix coding style.
17571         (iv_ca_set_add_invariants): Fix coding style.
17572         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
17573         invariants.
17574         (iv_ca_set_cp): Likewise.
17575         (iv_ca_new): Initialize the newly added hash_map and remove
17576         initialization of fields.
17577         (iv_ca_free): Delete the hash_map.
17578         (iv_ca_dump): Dump invariant expressions.
17579         (iv_ca_extend): Fix coding style.
17580         (try_add_cand_for): Likewise.
17581         (create_new_ivs): Dump information about # of avg iterations and
17582         # of used invariant expressions.
17583         (rewrite_use_compare): Fix coding style.
17584         (free_loop_data): Set default value for max_inv_expr_id.
17586 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17588         * cse.c (rest_of_handle_cse): Use cleanup_cfg
17589         returned value cse_cfg_altered computation.
17590         (rest_of_handle_cse2): Likewise.
17591         (rest_of_handle_cse_after_global_opts): Likewise.
17593 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17595         PR target/53440
17596         * config/arm/arm.c (arm32_output_mi_thunk): New.
17597         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
17598         to split Thumb1 vs TARGET_32BIT functionality.
17599         (arm_thumb1_mi_thunk): New.
17601 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17603         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
17604         to true.
17606 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17608         PR target/71080
17609         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
17611 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17613         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
17614         (expand_builtin_trap): Emit a regular call.
17615         (set_builtin_user_assembler_name): Remove obsolete cases.
17616         * dse.c (scan_insn): Adjust.
17617         * except.c: Include calls.h.
17618         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
17619         emit a regular call to setjmp.
17620         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
17621         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
17622         (emit_block_move_via_libcall): Delete.
17623         (block_move_fn): Delete.
17624         (init_block_move_fn): Likewise.
17625         (emit_block_move_libcall_fn): Likewise.
17626         (emit_block_op_via_libcall): New function.
17627         (set_storage_via_libcall): Tidy up and use memset builtin.
17628         (block_clear_fn): Delete.
17629         (init_block_clear_fn): Likewise.
17630         (clear_storage_libcall_fn): Likewise.
17631         (expand_assignment): Call emit_block_move_via_libcall.
17632         Do not include gt-expr.h.
17633         * expr.h (emit_block_op_via_libcall): Declare.
17634         (emit_block_copy_via_libcall): New inline function.
17635         (emit_block_move_via_libcall): Likewise.
17636         (emit_block_comp_via_libcall): Likewise.
17637         (block_clear_fn): Delete.
17638         (init_block_move_fn): Likewise.
17639         (init_block_clear_fn): Likewise.
17640         (emit_block_move_via_libcall): Likewise.
17641         (set_storage_via_libcall): Add default parameter value.
17642         * libfuncs.h (enum libfunc_index): Remove obsolete values.
17643         (abort_libfunc): Delete.
17644         (memcpy_libfunc): Likewise.
17645         (memmove_libfunc): Likewise.
17646         (memcmp_libfunc): Likewise.
17647         (memset_libfunc): Likewise.
17648         (setbits_libfunc): Likewise.
17649         (setjmp_libfunc): Likewise.
17650         (longjmp_libfunc): Likewise.
17651         (profile_function_entry_libfunc): Likewise.
17652         (profile_function_exit_libfunc): Likewise.
17653         (gcov_flush_libfunc): Likewise.
17654         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
17655         and DECL_VISIBILITY on the declaration.
17656         (init_optabs): Do not initialize obsolete libfuncs.
17657         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
17658         * tree-core.h (ECF_RET1): Define.
17659         (ECF_TM_PURE): Adjust.
17660         (ECF_TM_BUILTIN): Likewise.
17661         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
17662         (build_common_builtin_nodes): Initialize abort builtin.
17663         Add ECF_RET1 on memcpy, memmove and memset builtins.
17664         Pass final flags for alloca and alloca_with_align builtins.
17665         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
17666         obsolete builtins.
17667         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
17668         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
17669         set_storage_via_libcall and call emit_block_copy_via_libcall.
17671 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
17673         * config/i386/i386.md (*call_got_x32): Change operand 0 to
17674         DImode before it is passed to ix86_output_call_operand.
17675         (*call_value_got_x32): Ditto for operand 1.
17677 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
17679         PR rtl-optimization/70904
17680         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
17681         reload for wide mode.
17683 2016-05-12  Marek Polacek  <polacek@redhat.com>
17685         PR c/70756
17686         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
17687         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
17688         * langhooks.h (incomplete_type_error): Likewise.
17689         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
17690         parameter, pass it down to incomplete_type_error.
17691         * tree.h (size_in_bytes): New inline overload.
17692         (size_in_bytes_loc): Renamed from size_in_bytes.
17694 2016-05-12  Richard Biener  <rguenther@suse.de>
17696         PR tree-optimization/71059
17697         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
17698         nary before looking up or entering the expression into the VN
17699         hashes.
17700         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
17701         Make sure to re-use NARYs without result as inserted by
17702         phi-translation.
17704 2016-05-12  Richard Biener  <rguenther@suse.de>
17706         PR tree-optimization/71062
17707         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17708         field.
17709         * tree-ssa-structalias.c (set_uids_in_ptset): Set
17710         vars_contains_restrict if the var is a restrict tag.
17711         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
17712         do not disambiguate pointers against it.
17713         (dump_points_to_solution): Re-structure and adjust for new
17714         vars_contains_restrict flag.
17715         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
17717 2016-05-12  Martin Liska  <mliska@suse.cz>
17719         * doc/invoke.texi: Explain connection between
17720         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
17722 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
17724         PR tree-optimization/71006
17725         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
17726         consider COND_EXPR as a mask producer.
17728 2016-05-12  Marek Polacek  <polacek@redhat.com>
17730         PR driver/71063
17731         * opts.c (common_handle_option): Detect missing argument for --help^.
17733 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17735         PR target/70830
17736         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
17737         when popping the PC and within an interrupt handler routine.
17738         Add missing tab to output of "ldmfd".
17739         (output_return_instruction): Output LDMFD with SP update rather
17740         than POP when returning from interrupt handler.
17742 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
17744         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
17745         TARGET_64BIT && TARGET_AVX512DQ.
17746         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
17747         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
17748         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
17749         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
17750         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
17751         (*vec_extractv4si_zext): Add avx512dq alternative.
17752         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
17753         use v instead of x constraint in other alternatives where possible.
17755         * config/i386/sse.md (sse2_loadld): Use v instead of x
17756         constraint in alternatives 0,1,4.
17758         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
17759         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
17760         v constraints instead of x and <pinsr_evex_isa> isa attribute.
17762         PR target/71019
17763         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
17764         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
17765         is not emitted unless TARGET_AVX512BW.
17766         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
17767         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
17768         for the result operand.
17770         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
17771         constraint instead of x in avx alternatives.  Use maybe_evex instead
17772         of vex prefix.
17774         * config/i386/constraints.md (Yv): New constraint.
17775         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
17776         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
17777         * config/i386/i386.md (avx512fvecmode): New mode attr.
17778         (*pushtf): Use v constraint instead of x.
17779         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
17780         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
17781         (*absneg<mode>2): Use Yv constraint instead of x constraint.
17782         (*absnegtf2_sse): Likewise.
17783         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
17784         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
17785         avx512f alternatives.
17786         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
17788 2016-05-12  Richard Biener  <rguenther@suse.de>
17790         PR tree-optimization/71060
17791         * tree-data-ref.c (initialize_data_dependence_relation): Do not
17792         require exact match of DR_BASE_OBJECT but only matching address and
17793         type.
17795 2016-05-12  Richard Biener  <rguenther@suse.de>
17797         PR tree-optimization/70986
17798         * cfganal.c: Include cfgloop.h.
17799         (dfs_find_deadend): Prefer to take edges exiting loops.
17801 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17803         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
17804         compile and run time.
17806 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
17808         PR c/43651
17809         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
17811 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
17813         * config/i386/i386.c (legitimize_pic_address): Use
17814         copy_to_suggested_reg instead of gen_movsi.
17816 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17818         * config/rs6000/predicates.md (quad_memory_operand): Move most of
17819         the code into quad_address_p and call it to share code with
17820         vsx_quad_dform_memory_operand.
17821         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
17822         d-form support.
17823         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
17824         bit instead of being a separate word.  Split -mpower9-dform into
17825         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17826         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
17827         for the register class supporting 128-bit quad word memory offsets.
17828         (mode_supports_vsx_dform_quad): Helper function to return if the
17829         register class uses quad word memory offsets.
17830         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
17831         (rs6000_debug_reg_global): Always print if we are using LRA or not.
17832         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
17833         instructions are enabled, set up the appropriate addr_masks for
17834         128-bit types.
17835         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
17836         -mpower9-dform-scalar, instead of -mpower9-dform.
17837         (rs6000_option_override_internal): Split -mpower9-dform into two
17838         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
17839         -mpower9-dform switch sets or clears both.  If we are not using
17840         the LRA register allocator, do not enable -mpower9-dform-vector by
17841         default.  If we are using LRA, enable -mpower9-dform-vector and
17842         -mvsx-timode if it is appropriate.  Issue a warning if either
17843         -mpower9-dform-vector or -mvsx-timode are explicitly used without
17844         enabling LRA.
17845         (quad_address_offset_p): New helper function to return if the
17846         offset is legal for quad word memory instructions.
17847         (quad_address_p): New function to determin if GPR or vector
17848         register quad word memory addresses are legal.
17849         (mem_operand_gpr): Validate quad word address offsets.
17850         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
17851         d-form (register + offset) instructions.
17852         (offsettable_ok_by_alignment): Likewise.
17853         (rs6000_legitimate_offset_address_p): Likewise.
17854         (legitimate_lo_sum_address_p): Likewise.
17855         (rs6000_legitimize_address): Likewise.
17856         (rs6000_legitimize_reload_address): Add more debug statements for
17857         -mdebug=addr.
17858         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
17859         d-form instructions.
17860         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
17861         d-form instructions.  Distinguish different cases in debug
17862         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
17863         d-form instructions.
17864         (rs6000_preferred_reload_class): Likewise.
17865         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
17866         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
17867         of the ISA 2.06 indexed memory instructions.
17868         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
17869         use them to save/restore the saved vector registers instead of
17870         using Altivec instructions.
17871         (rs6000_emit_epilogue): Likewise.
17872         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
17873         (rs6000_opt_masks): Split -mpower9-dform into
17874         -mpower9-dform-scalar and -mpower9-dform-vector.
17875         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
17876         was not selected.
17877         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
17878         ISA 3.0 vector indexed memory instructions, and fold the code into
17879         the normal mov<mode> patterns.
17880         (p9_vecstore_<mode>): Likewise.
17881         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
17882         instructions.
17883         (vsx_movti_64bit): Likewise.
17884         (vsx_movti_32bit): Likewise.
17885         * config/rs6000/constraints.md (wO constraint): New constraint for
17886         ISA 3.0 vector d-form support.
17887         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
17888         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
17889         include -mpower9-dform-vector until we switch over to LRA.
17890         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
17891         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17892         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
17893         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
17894         for -mpower9-dform and -mlra.
17895         * doc/md.texi (wO constraint): Document wO constraint.
17897 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
17899         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
17900         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
17901         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
17902         Move handling of non-insn arguments inline into the sole user:
17903         (output_trans_func): ...here.
17904         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
17905         in emitted function prototype.
17906         (output_internal_insn_latency_func): Ditto.  Simplify.
17907         (output_internal_maximal_insn_latency_func): Ditto.  Delete
17908         always-unused argument.
17909         (output_insn_latency_func): Ditto.
17910         (output_maximal_insn_latency_func): Ditto.
17912 2016-05-11  Richard Biener  <rguenther@suse.de>
17914         PR tree-optimization/71055
17915         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
17916         sth with precision not equal to access size verify we don't chop
17917         off bits.
17919 2016-05-11  Richard Biener  <rguenther@suse.de>
17921         PR debug/71057
17922         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
17923         (dwarf2out_finish): Move retry_incomplete_types call ...
17924         (dwarf2out_early_finish): ... here.
17926 2016-05-11  Richard Biener  <rguenther@suse.de>
17928         PR middle-end/71002
17929         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
17930         if the langhook insists on it.
17931         * fold-const.c (make_bit_field_ref): Add arg for the original
17932         reference and preserve its alias-set.
17933         (decode_field_reference): Take exp by reference and adjust it
17934         to the original memory reference.
17935         (optimize_bit_field_compare): Adjust callers.
17936         (fold_truth_andor_1): Likewise.
17937         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
17939 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
17941         PR middle-end/70807
17942         * cfgrtl.h (delete_insn_and_edges): Now return bool.
17943         * cfgrtl.c (delete_insn_and_edges): Likewise.
17944         * config/i386/i386.c (convert_scalars_to_vector): Remove
17945         redundant code.
17946         * cse.c (cse_insn): Compute cse_cfg_altered.
17947         (delete_trivially_dead_insns): Likewise.
17948         (cse_cc_succs): Likewise.
17949         (rest_of_handle_cse): Free dominance info if required.
17950         (rest_of_handle_cse2): Likewise.
17951         (rest_of_handle_cse_after_global_opts): Likewise.
17953 2016-05-11  Alan Modra  <amodra@gmail.com>
17955         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
17956         abi_v4_pass_in_fpr): New functions.
17957         (rs6000_function_arg_boundary): Exclude complex IBM long double
17958         from 64-bit alignment when ABI_V4.
17959         (rs6000_function_arg, rs6000_function_arg_advance_1,
17960         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
17962 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
17964         PR rtl-optimization/71028
17965         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
17966         jump with just a return in the fallthrough block if the branch
17967         block contains just a return as well.
17969 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
17971         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
17972         * match.pd ((X & Y) ^ Y): ... this.
17973         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
17974         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
17976 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
17978         * read-md.c (require_char_ws): New function.
17979         (read_string): Simplify using require_char_ws.
17980         (handle_constants): Likewise.
17981         (handle_enum): Likewise.
17982         (handle_file): Likewise.
17983         * read-md.h (require_char_ws): New declaration.
17984         * read-rtl.c (read_conditions): Simplify using require_char_ws.
17985         (read_mapping): Likewise.
17986         (read_rtx_code): Likewise.
17987         (read_nested_rtx): Likewise.
17989 2016-05-10  James Norris  <jnorris@codesourcery.com>
17991         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
17992         if offloading is enabled and -fopenacc or -fopenmp is specified.
17993         (CRTOFFLOADEND): Likewise.
17994         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
17995         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
17997 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
17999         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
18000         gotoff_operand code paths.  Use copy_to_suggested_regs and
18001         expand_simple_binop where appropriate.  Cleanup.
18003 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18005         PR target/70799
18006         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
18007         integer constants.
18008         (dimode_scalar_chain::vector_const_cost): New.
18009         (dimode_scalar_chain::compute_convert_gain): Handle constants.
18010         (dimode_scalar_chain::convert_op): Likewise.
18011         (dimode_scalar_chain::convert_insn): Likewise.
18013 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
18015         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
18016         unary operation, not a binary one.
18018 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18020         PR middle-end/70877
18021         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
18022         calls with type casted fndecl.
18024 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18026         PR tree-optimization/70786
18027         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
18028         * calls.c (initialize_argument_information): Bind bounds
18029         with corresponding args passed by reference.
18031 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
18033         PR target/70927
18034         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
18035         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
18036         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
18037         accordingly.
18039 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18041         PR target/70963
18042         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
18043         code for a zero scale factor.
18044         (vsx_xvcvdpuxds_scale): Likewise.
18046 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
18048         * diagnostic-show-locus.c (layout::layout): Call show_ruler
18049         if show_ruler_p was set on the context.
18050         (layout::show_ruler): New method.
18051         * diagnostic.h (struct diagnostic_context): Add field
18052         "show_ruler_p".
18054 2016-05-10  Richard Biener  <rguenther@suse.de>
18056         PR tree-optimization/71039
18057         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
18058         (chk_uses): New function.
18059         (propagate_with_phi): Verify we can safely replicate the lhs of an
18060         aggregate assignment on all incoming edges.
18062 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
18064         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
18065         Forward declare.
18066         (rx_atomic_sequence): New class.
18067         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
18068         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
18069         non-inline.
18070         (rx_atomic_sequence::rx_atomic_sequence,
18071         rx_atomic_sequence::~rx_atomic_sequence): New functions.
18072         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
18073         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
18074         CTRLREG_INTB): New constants.
18075         (FETCHOP): New code iterator.
18076         (fethcop_name, fetchop_name2): New iterator code attributes.
18077         (QIHI): New mode iterator.
18078         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
18079         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
18080         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
18082 2016-05-10  Martin Liska  <mliska@suse.cz>
18084         * tree-inline.c (remap_dependence_clique): Do not remap
18085         debugging statements.
18087 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18089         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
18090         ("*fixuns_truncdfdi2_z13")
18091         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
18092         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
18093         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
18095 2016-05-10  Richard Biener  <rguenther@suse.de>
18097         PR tree-optimization/70497
18098         PR tree-optimization/28367
18099         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
18100         split out from ...
18101         (visit_reference_op_load): ... here.
18102         (vn_reference_lookup_3): Use it to handle subreg-like accesses
18103         with simplified BIT_FIELD_REFs.
18104         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
18105         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
18106         correctly.
18108 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
18110         * dwarf2out.c (add_abstract_origin_attribute): Adjust
18111         documentation comment.  For BLOCK nodes, add a
18112         DW_AT_abstract_origin attribute that points to the DIE generated
18113         for the origin BLOCK.
18114         (gen_lexical_block_die): Call add_abstract_origin_attribute for
18115         blocks from inlined functions.
18117 2016-05-10  Alan Modra  <amodra@gmail.com>
18119         PR target/70947
18120         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
18121         regrename modifying insns saving lr before __morestack call.
18122         * config/rs6000/rs6000.md (split_stack_return): Similarly for
18123         insns restoring lr after __morestack call.
18125 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
18127         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
18128         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
18129         expanders.
18130         * config/i386/sse.md (vec_interleave_high<mode>,
18131         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
18132         <avx512>_vpermt2var<mode>3_maskz): Likewise.
18134 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
18136         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
18137         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
18138         parallel reassociation for power8 and forward.
18140 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
18142         * config/i386/i386.md (absneg splitters with general regs): Use
18143         general_reg_operand predicate.
18144         (btsq peephole2): Use x86_64_immediate_operand to check if new
18145         value is suitable for immediate operand.  Generate emitted insn
18146         using RTL expressions.
18147         (btcq peephole2): Ditto.
18148         (btrq peephole2): Ditto.  Generate correct immediate operand
18149         for AND masking.
18151 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
18153         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
18154         bitpos.
18156 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
18158         * tree-affine.c (wide_int_constant_multiple_p): Add missing
18159         pointer dereference.
18161 2016-05-09  Richard Biener  <rguenther@suse.de>
18163         PR tree-optimization/70985
18164         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
18165         op0 isn't a gimple register.
18167 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
18169         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
18170         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
18171         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
18172         (i6400_fpu_mult): New cpu units.
18173         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
18174         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
18175         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
18176         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
18177         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
18178         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
18179         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
18180         (i6400_msa_long_float4, i6400_msa_long_float5)
18181         (i6400_msa_long_float8, i6400_msa_fdiv_df)
18182         (i6400_msa_fdiv_sf): New reservations.
18183         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
18184         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
18185         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
18186         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
18187         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
18188         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
18189         (msa_short_cmp, msa_short_float2, msa_short_logic3)
18190         (msa_short_store4, msa_long_load, msa_short_store)
18191         (msa_long_logic, msa_long_float2, msa_long_float4)
18192         (msa_long_float5, msa_long_float8, msa_long_mult)
18193         (msa_long_fdiv, msa_long_div): New reservations.
18195 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
18196             Sameera Deshpande  <sameera.deshpande@imgtec.com>
18197             Matthew Fortune  <matthew.fortune@imgtec.com>
18198             Graham Stott  <graham.stott@imgtec.com>
18199             Chao-ying Fu  <chao-ying.fu@imgtec.com>
18201         * config.gcc: Add MSA header file for mips*-*-* target.
18202         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
18203         (Ubv8i, Urv8):  New constraints.
18204         * config/mips/mips-ftypes.def: Add function types for MSA
18205         builtins.
18206         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
18207         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
18208         * config/mips/mips-msa.md: New file.
18209         * config/mips/mips-protos.h
18210         (mips_split_128bit_const_insns): New prototype.
18211         (mips_msa_idiv_insns): Likewise.
18212         (mips_split_128bit_move): Likewise.
18213         (mips_split_128bit_move_p): Likewise.
18214         (mips_split_msa_copy_d): Likewise.
18215         (mips_split_msa_insert_d): Likewise.
18216         (mips_split_msa_fill_d): Likewise.
18217         (mips_expand_msa_branch): Likewise.
18218         (mips_const_vector_same_val_p): Likewise.
18219         (mips_const_vector_same_bytes_p): Likewise.
18220         (mips_const_vector_same_int_p): Likewise.
18221         (mips_const_vector_shuffle_set_p): Likewise.
18222         (mips_const_vector_bitimm_set_p): Likewise.
18223         (mips_const_vector_bitimm_clr_p): Likewise.
18224         (mips_msa_vec_parallel_const_half): Likewise.
18225         (mips_msa_output_division): Likewise.
18226         (mips_ldst_scaled_shift): Likewise.
18227         (mips_expand_vec_cond_expr): Likewise.
18228         * config/mips/mips.c (enum mips_builtin_type): Add
18229         MIPS_BUILTIN_MSA_TEST_BRANCH.
18230         (mips_gen_const_int_vector_shuffle): New prototype.
18231         (mips_const_vector_bitimm_set_p): New function.
18232         (mips_const_vector_bitimm_clr_p): Likewise.
18233         (mips_const_vector_same_val_p): Likewise.
18234         (mips_const_vector_same_bytes_p): Likewise.
18235         (mips_const_vector_same_int_p): Likewise.
18236         (mips_const_vector_shuffle_set_p): Likewise.
18237         (mips_symbol_insns): Forbid loading symbols via immediate for
18238         MSA.
18239         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
18240         stores.
18241         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
18242         MSA.
18243         (mips_lx_address_p): Add support load indexed address for MSA.
18244         (mips_address_insns): Add calculation of instructions needed for
18245         stores and loads for MSA.
18246         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
18247         CONST_VECTOR for MSA and let it fall through.
18248         (mips_ldst_scaled_shift): New function.
18249         (mips_subword_at_byte): Likewise.
18250         (mips_msa_idiv_insns): Likewise.
18251         (mips_legitimize_move): Validate MSA moves.
18252         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
18253         calculation of costs for MSA division.
18254         (mips_split_move_p): Check if MSA moves need splitting.
18255         (mips_split_move): Split MSA moves if necessary.
18256         (mips_split_128bit_move_p): New function.
18257         (mips_split_128bit_move): Likewise.
18258         (mips_split_msa_copy_d): Likewise.
18259         (mips_split_msa_insert_d): Likewise.
18260         (mips_split_msa_fill_d): Likewise.
18261         (mips_output_move): Handle MSA moves.
18262         (mips_expand_msa_branch): New function.
18263         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
18264         Reinstate 'y' modifier.
18265         (mips_file_start): Add MSA .gnu_attribute.
18266         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
18267         FPRs.
18268         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
18269         (mips_class_max_nregs): Add register size for MSA supported mode.
18270         (mips_cannot_change_mode_class): Allow conversion between MSA
18271         vector modes and TImode.
18272         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
18273         instruction.
18274         (mips_secondary_reload_class): Force MSA loads/stores via memory.
18275         (mips_preferred_simd_mode): Add preffered modes for MSA.
18276         (mips_vector_mode_supported_p): Add MSA supported modes.
18277         (mips_autovectorize_vector_sizes): New function.
18278         (mips_msa_output_division): Likewise.
18279         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
18280         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
18281         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
18282         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
18283         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
18284         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
18285         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
18286         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
18287         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
18288         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
18289         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
18290         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
18291         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
18292         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
18293         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
18294         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
18295         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
18296         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
18297         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
18298         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
18299         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
18300         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
18301         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
18302         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
18303         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
18304         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
18305         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
18306         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
18307         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
18308         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
18309         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
18310         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
18311         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
18312         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
18313         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
18314         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
18315         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
18316         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
18317         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
18318         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
18319         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
18320         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
18321         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
18322         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
18323         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18324         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18325         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18326         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18327         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
18328         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
18329         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
18330         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
18331         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
18332         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
18333         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
18334         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
18335         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
18336         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
18337         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
18338         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
18339         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
18340         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
18341         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
18342         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
18343         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
18344         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
18345         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
18346         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
18347         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
18348         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
18349         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
18350         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
18351         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
18352         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
18353         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
18354         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
18355         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
18356         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
18357         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
18358         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
18359         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
18360         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
18361         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
18362         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
18363         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
18364         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
18365         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
18366         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
18367         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
18368         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
18369         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
18370         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
18371         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
18372         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
18373         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
18374         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
18375         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
18376         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
18377         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
18378         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
18379         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
18380         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
18381         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
18382         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
18383         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
18384         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
18385         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
18386         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
18387         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
18388         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
18389         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
18390         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
18391         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
18392         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
18393         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
18394         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
18395         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
18396         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
18397         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
18398         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
18399         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
18400         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
18401         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
18402         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
18403         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
18404         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
18405         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
18406         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
18407         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
18408         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
18409         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
18410         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
18411         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
18412         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
18413         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
18414         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
18415         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
18416         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
18417         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
18418         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
18419         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
18420         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
18421         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
18422         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
18423         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
18424         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
18425         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
18426         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
18427         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
18428         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
18429         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
18430         move_v builtins.
18431         (mips_get_builtin_decl_index): New array.
18432         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
18433         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
18434         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
18435         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
18436         (mips_init_builtins): Initialize mips_get_builtin_decl_index
18437         array.
18438         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
18439         hook.
18440         (mips_expand_builtin_insn): Prepare operands for
18441         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
18442         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
18443         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
18444         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
18445         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
18446         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
18447         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
18448         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
18449         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
18450         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
18451         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
18452         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
18453         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
18454         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
18455         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
18456         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
18457         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
18458         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
18459         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
18460         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
18461         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
18462         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
18463         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
18464         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
18465         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
18466         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
18467         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
18468         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
18469         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
18470         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
18471         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
18472         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
18473         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
18474         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
18475         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
18476         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
18477         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
18478         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
18479         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
18480         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
18481         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
18482         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
18483         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
18484         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
18485         These are set implicitly and an error is reported if overridden.
18486         (mips_expand_builtin_msa_test_branch): New function.
18487         (mips_expand_msa_shuffle): Likewise.
18488         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
18489         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
18490         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
18491         (mips_expand_vec_unpack): Add support for MSA.
18492         (mips_expand_vector_init): Likewise.
18493         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
18494         instead of const0_rtx.
18495         (mips_msa_vec_parallel_const_half): New function.
18496         (mips_gen_const_int_vector): Likewise.
18497         (mips_gen_const_int_vector_shuffle): Likewise.
18498         (mips_expand_msa_cmp): Likewise.
18499         (mips_expand_vec_cond_expr): Likewise.
18500         * config/mips/mips.h
18501         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
18502         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
18503         specified.
18504         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
18505         (ISA_HAS_MSA): New macro.
18506         (UNITS_PER_MSA_REG): Likewise.
18507         (BITS_PER_MSA_REG): Likewise.
18508         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
18509         (MSA_REG_FIRST): New macro.
18510         (MSA_REG_LAST): Likewise.
18511         (MSA_REG_NUM): Likewise.
18512         (MSA_REG_P): Likewise.
18513         (MSA_REG_RTX_P): Likewise.
18514         (MSA_SUPPORTED_MODE_P): Likewise.
18515         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
18516         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
18517         * config/mips/mips.md: Include mips-msa.md.
18518         (alu_type): Add simd_add.
18519         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
18520         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
18521         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
18522         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
18523         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
18524         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
18525         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
18526         simd_move, simd_load, simd_store.  Choose "multi" for moves
18527         for "qword_mode".
18528         (qword_mode): New attribute.
18529         (insn_count): Add instruction count for quad moves.
18530         Increase the count for MIPS SIMD division.
18531         (UNITMODE): Add UNITMODEs for vector types.
18532         (addsub): New code iterator.
18533         * config/mips/mips.opt (mmsa): New option.
18534         * config/mips/msa.h: New file.
18535         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
18536         specified.
18537         * config/mips/mti-linux.h: Likewise.
18538         * config/mips/predicates.md
18539         (const_msa_branch_operand): New constraint.
18540         (const_uimm3_operand): Likewise.
18541         (const_uimm4_operand): Likewise.
18542         (const_uimm5_operand): Likewise.
18543         (const_uimm8_operand): Likewise.
18544         (const_imm5_operand): Likewise.
18545         (aq10b_operand): Likewise.
18546         (aq10h_operand): Likewise.
18547         (aq10w_operand): Likewise.
18548         (aq10d_operand): Likewise.
18549         (const_m1_operand): Likewise.
18550         (reg_or_m1_operand): Likewise.
18551         (const_exp_2_operand): Likewise.
18552         (const_exp_4_operand): Likewise.
18553         (const_exp_8_operand): Likewise.
18554         (const_exp_16_operand): Likewise.
18555         (const_vector_same_val_operand): Likewise.
18556         (const_vector_same_simm5_operand): Likewise.
18557         (const_vector_same_uimm5_operand): Likewise.
18558         (const_vector_same_uimm6_operand): Likewise.
18559         (const_vector_same_uimm8_operand): Likewise.
18560         (par_const_vector_shf_set_operand): Likewise.
18561         (reg_or_vector_same_val_operand): Likewise.
18562         (reg_or_vector_same_simm5_operand): Likewise.
18563         (reg_or_vector_same_uimm6_operand): Likewise.
18564         * doc/extend.texi (MIPS SIMD Architecture Functions): New
18565         section.
18566         * doc/invoke.texi (-mmsa): Document new option.
18568 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18570         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
18571         * configure: Regenerate.
18572         * config.in: Regenerate.
18573         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
18574         on -fvtable-verify.
18575         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
18576         (ENDFILE_VTV_SPEC): Define.
18578 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
18580         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
18581         registers in all interrupt handlers if necessary.
18582         (rl78_option_override): Add warning.
18583         (MUST_SAVE_MDUC_REGISTERS): New macro.
18584         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
18585         * config/rl78/rl78.c (check_mduc_usage): New function.
18586         (mduc_regs): New structure to hold MDUC register data.
18587         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
18588         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
18589         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
18590         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
18591         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
18592         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
18594 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
18596         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
18597         (tree-ssa-loop-niter.h): Ditto.
18598         (idx_within_array_bound, ref_within_array_bound): New functions.
18599         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
18600         Factor out check on writable base object to ...
18601         (base_object_writable): ... here.
18603 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18605         * config/arm/arm.md (probe_stack): Add modes to set source
18606         and destination.
18608 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
18610         * regrename.c (base_reg_class_for_rename): New static function.
18611         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
18613 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
18615         * cgraph.c (thunk_adjust): Export.
18616         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
18617         * cgraphunit.c (thunk_adjust): Export.
18618         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
18619         thunks.
18620         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
18621         inlinable.
18622         * tree-inline.c (expand_call_inline): Expand thunks inline.
18624 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
18626         PR target/70998
18627         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
18628         (*sse2_vd_cvtss2sd): Ditto.
18629         * config/i386/i386.md
18630         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
18631         Generate *sse2_vd_cvtsd2ss pattern.
18632         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
18633         Generate *sse2_vd_cvtss2sd pattern.
18635 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
18637         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
18638         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
18639         users.
18641 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
18643         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
18644         * config/sh/sh.c: Define and declare variables on first use throughout
18645         the file.
18646         (current_function_interrupt): Change to bool type.
18647         (frame_insn): Rename to emit_frame_insn and update users.
18648         (push_regs): Use bool for 'interrupt_handler' argument.
18649         (save_schedule_s): Remove.
18650         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
18651         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
18652         targetm.asm_out.unaligned_op.di.
18653         (gen_far_branch): Remove redundant forward declaration.
18654         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
18655         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
18656         (sh_set_return_address, sh_function_ok_for_sibcall,
18657         scavenge_reg): Update comments.
18658         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
18659         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
18660         (sh_attr_renesas_p): Remove unnecessary parentheses.
18661         (branch_dest): Simplify.
18662         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
18663         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
18664         (CUMULATIVE_ARGS): Change macro to typedef.
18665         (current_function_interrupt): Change to bool type.
18666         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
18667         Surround with __cplusplus ifdef.
18668         (sh_compare_op0, sh_compare_op1): Remove.
18669         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
18671 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
18673         * config/arm/arm.md: (arch): Add neon.
18674         (arch_enabled): Return yes for arch neon when TARGET_NEON.
18675         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
18676         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
18677         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
18678         attributes for alt renumbering.  Mark alt 3 as non-predicable.
18679         (thumb2_movdf_vfp): Likewise.
18681 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
18683         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
18684         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
18685         (*andqi_1): Add preferred_for_speed attribute to disparage
18686         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
18687         (*<code>qi_1): Ditto.
18688         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
18689         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
18690         (*ashlqi3_1): Ditto.
18691         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
18692         Add preferred_for_size attribute to disparage alternative 0 and
18693         preferred_for_speed attribute to disparage alternative 1 for
18694         TARGET_PARTIAL_REG_STALL targets.
18696 2016-05-07  Tom de Vries  <tom@codesourcery.com>
18698         PR tree-optimization/70956
18699         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
18700         def.
18702 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
18704         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
18705         * config/sh/sh.c (sh_cbranch_distance): Implement it.
18706         * config/sh/sh.md (branch_zero): Remove define_attr.
18707         (define_delay): Disable delay slot if branch distance is one insn.
18709 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
18711         * config/i386/i386.md (LEAMODE): New mode attribute.
18712         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
18713         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
18714         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
18715         operand 2 predicate.
18716         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
18717         (*lea<mode>_general_3): Ditto.
18718         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
18720 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
18722         * genmddump.c (main): Convert argv from char ** to const char **.
18724 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
18726         * coretypes.h (OVERRIDE): New macro.
18727         (FINAL): New macro.
18729 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
18731         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
18732         allow coalescing if the types are compatible.
18734 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
18736         * pass_manager.h (pass_manager::register_pass_name): New method.
18737         (pass_manager::get_pass_by_name): New method.
18738         (pass_manager::create_pass_tab): New method.
18739         (pass_manager::m_name_to_pass_map): New field.
18740         * passes.c (name_to_pass_map): Delete global in favor of field
18741         "m_name_to_pass_map" of pass_manager.
18742         (register_pass_name): Rename from a function to...
18743         (pass_manager::register_pass_name): ...this method, updating
18744         for renaming of global "name_to_pass_map" to field
18745         "m_name_to_pass_map".
18746         (create_pass_tab): Rename from a function to...
18747         (pass_manager::create_pass_tab): ...this method, updating
18748         for renaming of global "name_to_pass_map" to field.
18749         (get_pass_by_name): Rename from a function to...
18750         (pass_manager::get_pass_by_name): ...this method.
18751         (enable_disable_pass): Convert use of get_pass_by_name to
18752         a method call, locating the pass_manager singleton.
18754 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
18756         * genattr-common.c (main): Convert argv from char ** to const char **.
18757         * genattr.c (main): Likewise.
18758         * genattrtab.c (main): Likewise.
18759         * genautomata.c (initiate_automaton_gen): Likewise.
18760         (main): Likewise.
18761         * gencodes.c (main): Likewise.
18762         * genconditions.c (main): Likewise.
18763         * genconfig.c (main): Likewise.
18764         * genconstants.c (main): Likewise.
18765         * genemit.c (main): Likewise.
18766         * genenums.c (main): Likewise.
18767         * genextract.c (main): Likewise.
18768         * genflags.c (main): Likewise.
18769         * genmddeps.c (main): Likewise.
18770         * genopinit.c (main): Likewise.
18771         * genoutput.c (main): Likewise.
18772         * genpeep.c (main): Likewise.
18773         * genpreds.c (main): Likewise.
18774         * genrecog.c (main): Likewise.
18775         * gensupport.c (init_rtx_reader_args_cb): Likewise.
18776         (init_rtx_reader_args): Likewise.
18777         * gensupport.h (init_rtx_reader_args_cb): Likewise.
18778         (init_rtx_reader_args): Likewise.
18779         * gentarget-def.c (main): Likewise.
18780         * read-md.c (read_md_files): Likewise.
18781         * read-md.h (read_md_files): Likewise.
18783 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
18785         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
18786         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
18787         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
18788         Remove unused predicate.
18789         (register_and_not_fp_reg_operand): Ditto.
18791 2016-05-06  Martin Liska  <mliska@suse.cz>
18793         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
18794         instead of vec as the vector is local to the function.
18796 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
18798         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
18799         avx512bw alternative.
18801         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
18802         before the ashr<mode>3 pattern.
18804         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
18805         v instead of x in vex or maybe_vex alternatives, use
18806         maybe_evex instead of vex in prefix.
18808         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
18809         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
18810         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
18811         in vex or maybe_vex alternatives, use maybe_evex instead of vex
18812         in prefix.
18814         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
18815         v instead of x in vex or maybe_vex alternatives, use
18816         maybe_evex instead of vex in prefix.
18818         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
18819         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
18820         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
18821         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
18822         alternatives, use maybe_evex instead of vex in prefix.
18824         * config/i386/sse.md (vec_interleave_lowv4sf,
18825         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
18826         v instead of x in vex or maybe_vex alternatives, use
18827         maybe_evex instead of vex in prefix.
18829         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
18830         v instead of x in vex or maybe_vex alternatives, use
18831         maybe_evex instead of vex in prefix.
18833         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
18834         v constraint instead of x.
18836 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
18838         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
18839         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
18840         equality first.
18842 2016-05-06  Richard Biener  <rguenther@suse.de>
18844         PR tree-optimization/70948
18845         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18846         Properly clobber all fields of va_list for __builtin_va_start.
18848 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
18850         PR debug/70935
18851         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
18852         loop latch destination.
18854 2016-05-06  Martin Liska  <mliska@suse.cz>
18856         * tree-ssa-uninit.c: Apply manual changes
18857         to the GNU coding style.
18858         (prune_uninit_phi_opnds): Rename from
18859         prune_uninit_phi_opnds_in_unrealizable_paths.
18861 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18863         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
18864         mspace): Remove deprecated options.
18865         * doc/invoke.texi (SH options): Remove -mspace.
18867 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18869         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
18871 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18873         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
18874         corresponding combine split pattern.
18876 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18878         PR target/58219
18879         * config/sh/predicates.md (long_displacement_mem_operand): New.
18880         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
18881         Add movi20, movi20s alternatives.  Adjust length attribute for
18882         alternatives.
18883         (movsi_ie): Allow for any FPU.  Adjust length attribute for
18884         alternatives.
18885         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
18886         attribute for alternatives.
18887         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
18888         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
18889         length attribute for alternatives.
18891 2016-05-06  Richard Biener  <rguenther@suse.de>
18893         PR tree-optimization/70960
18894         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
18896 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18898         PR target/52933
18899         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
18900         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
18902 2016-05-06  Marek Polacek  <polacek@redhat.com>
18904         PR sanitizer/70875
18905         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
18907 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18909         PR target/54089
18910         * config/sh/sh.md (*rotcr): Add another variant.
18912 2016-05-06  Richard Biener  <rguenther@suse.de>
18914         PR middle-end/70931
18915         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
18917 2016-05-06  Richard Biener  <rguenther@suse.de>
18919         PR middle-end/70941
18920         * fold-const.c (split_tree): Always convert to the original type
18921         before negating.
18923 2016-05-06  Richard Biener  <rguenther@suse.de>
18925         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
18926         (fwprop_addr): Likewise.
18928 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
18930         PR target/70873
18931         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
18932         New prototype.
18933         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
18934         * config/i386/i386.md (push mem splitter): Use find_constant_src in
18935         the splitter condition.
18936         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
18937         the splitter condition.
18938         (FP float_extend load splitter): Ditto.
18940 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
18942         * config/i386/i386.md (peehole2 patterns): Change true_regnum
18943         to REGNO in all peephole2 patterns.
18944         (post-reload splitters): Change true_regnum to REGNO in
18945         post-reload splitters.
18946         (zero_extend splitters): Use general_reg_operand and
18947         nonimmediate_gr_operand predicates.
18949 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
18951         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
18952         v constraint instead of x.
18954 2016-05-05  Alan Modra  <amodra@gmail.com>
18956         PR target/68662
18957         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
18958         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
18959         TARGET_NO_FP_IN_TOC for -mrelocatable.
18960         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
18961         TARGET_RELOCATABLE test.
18962         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18963         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18964         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18965         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18966         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18967         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18968         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18969         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18970         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
18971         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18972         Likewise.
18973         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
18974         (rs6000_stack_info): Likewise.
18975         (rs6000_elf_asm_out_constructor): Likewise.
18976         (rs6000_elf_asm_out_destructor): Likewise.
18977         (rs6000_elf_declare_function_name): Likewise.
18978         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
18979         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
18980         Don't define.
18982 2016-05-05  Alan Modra  <amodra@gmail.com>
18984         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
18986 2016-05-05  Alan Modra  <amodra@gmail.com>
18988         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
18989         out-of-line gpr restore for one or two regs if that would add
18990         a save of lr.
18992 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
18994         PR target/70873
18995         * config/i386/i386.md
18996         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
18997         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
18998         as operand 0 predicate.
18999         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
19000         Ditto.
19001         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
19002         Ditto.  Emit the pattern using RTX.
19004         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
19005         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
19006         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
19007         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
19008         Ditto.
19009         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
19010         sse_reg_operand as operand 0 predicate.
19012         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
19013         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
19014         instead of gen_rtx_REG.
19015         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
19016         Ditto.
19018 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
19020         * function.c (emit_use_return_register_into_block): Delete.
19021         (gen_return_pattern): Delete.
19022         (emit_return_into_block): Delete.
19023         (active_insn_between): Delete.
19024         (convert_jumps_to_returns): Delete.
19025         (emit_return_for_exit): Delete.
19026         (thread_prologue_and_epilogue_insns): Delete all code dealing with
19027         simple_return for shrink-wrapped blocks.
19028         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
19029         end of blocks that need one.
19030         (get_unconverted_simple_return): Delete.
19031         (convert_to_simple_return): Delete.
19032         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
19033         (convert_to_simple_return): Ditto.
19035 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
19037         * cfgcleanup.c (bb_is_just_return): New function.
19038         (try_optimize_cfg): Simplify jumps to return, branches to return,
19039         and branches around return.
19041 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
19043         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
19044         branch to a return.
19046 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
19048         PR c++/70906
19049         PR c++/70933
19050         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
19051         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
19052         assert flags & OEP_HASH_CHECK, instead of asserting it
19053         never happens.  Handle TARGET_EXPR.
19054         * fold-const.c (operand_equal_p): For hash verification,
19055         or in OEP_HASH_CHECK into flags.
19057 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
19059         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
19060         comment.
19061         (compute_samebase_partition_bases): Fix typo.
19063 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
19065         * config/i386/sse.md (vec_interleave_highv8sf,
19066         vec_interleave_lowv8sf, vec_interleave_highv4df,
19067         vec_interleave_lowv4df): Remove constraints from expanders.
19069         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
19071 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
19073         * tree-inline.c (expand_call_inline): Fix path dealing with
19074         making lhs of call statement undefined.
19076 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
19078         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19079         Check availability on NODE, too.
19080         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
19081         (cgraph_node::call_for_symbol_and_aliases): Likewise.
19082         (varpool_node::call_for_symbol_and_aliase): Likewise.
19083         * ipa-pure-const.c (add_new_function): Analyze all bodies.
19084         (propagate_pure_const): Propagate across interposable functions, too.
19085         (skip_function_for_local_pure_const): Do not skip interposable bodies
19086         with aliases.
19087         (pass_local_pure_const::execute): Update.
19089 2016-05-04  Marek Polacek  <polacek@redhat.com>
19091         * doc/invoke.texi: Document -Wdangling-else.
19093 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19095         * config.gcc: Error out when conflicting multilib is detected.  Do not
19096         loop over multilibs since no combination is legal.
19098 2016-05-04  Alan Modra  <amodra@gmail.com>
19100         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
19101         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
19102         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
19103         Align .toc.
19105 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
19107         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
19108         Clean up p5600 comments.
19110 2016-05-04  Richard Biener  <rguenther@suse.de>
19112         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
19113         constructor simplifications.
19114         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
19116 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
19118         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
19119         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
19120         result.set_rtx is null instead of aborting.
19121         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
19122         Always enable.
19123         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
19124         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
19125         *mov<mode>_store_postinc): New patterns.
19127 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
19129         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
19130         as commutative.  Check both conversions are NOP.
19131         ((A & B) OP (C & B)): Remove.
19133 2016-05-04  Alan Modra  <amodra@gmail.com>
19135         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
19137 2016-05-04  Alan Modra  <amodra@gmail.com>
19139         PR target/70866
19140         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
19141         when cr2,3,4 are all fixed regs.
19143 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
19145         PR rtl-optimization/57193
19146         * opts.c (default_options_table): Revert OPT_frename_registers change.
19147         * doc/invoke.texi (-frename-registers, -O2): Likewise.
19149 2016-05-03  Martin Sebor  <msebor@redhat.com>
19151         PR c++/66561
19152         * builtins.c (fold_builtin_FILE): New function.
19153         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
19154         (fold_builtin_0): Call them.
19155         * gimplify.c (gimplify_call_expr): Remove the handling of
19156         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
19158         PR c++/66561
19159         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
19160         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
19161         constants.
19163         PR c++/66639
19164         * doc/extend.texi (Function Names as Strings): Update __func__,
19165         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
19166         constants.
19168 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
19169             Richard Biener  <rguenther@suse.de>
19171         PR tree-optimization/70916
19172         * tree-if-conv.c: Include cfganal.h.
19173         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
19174         and remove_fake_exit_edges around the optimization pass.
19176 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
19178         * cgraph.c (symbol_table::create_edge): Set inline_failed.
19179         (cgraph_edge::make_direct): Likewise.
19180         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
19181         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
19182         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
19183         (CIF_THUNK): New code.
19184         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
19185         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
19186         (compute_inline_parameters): Set inline_failed for thunks.
19187         (inline_analyze_function): Cleanup.
19188         * ipa-inline.c (can_inline_edge_p): Do not deal with
19189         call_stmt_cannot_inline_p.
19190         (can_early_inline_edge_p): Likewise.
19191         (early_inliner): Initialize inline_failed.
19192         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
19194 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
19196         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
19197         from nonimm_ssenomem_operand.
19198         (nonimm_ssenomem_operand): New predicate.
19199         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
19200         as operand 0 predicate.
19201         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
19202         Disable unsupported alternatives using "enabled" attribute.
19203         Use register_ssemem_operand as operand 0 predicate.
19204         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
19206 2016-05-03  Marek Polacek  <polacek@redhat.com>
19208         PR c/70859
19209         * input.c (expansion_point_location): New function.
19210         * input.h (expansion_point_location): Declare.
19212 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
19214         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
19215         occurence with frame_offset_ ones.
19217 2016-05-03  Alan Modra  <amodra@gmail.com>
19219         PR rtl-optimization/70890
19220         * ira.c (combine_and_move_insns): When moving def_insn, remove
19221         equivs on use_insn.
19223 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19225         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
19226         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
19227         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
19228         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
19230 2016-05-03  Alan Modra  <amodra@gmail.com>
19232         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
19233         for SAVE_MULTIPLE/STORE_MULTIPLE.
19235 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
19237         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
19238         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
19240 2016-05-03  Richard Biener  <rguenther@suse.de>
19242         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
19243         default true.
19244         (gimplify_arg): Likewise.
19245         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
19246         re-writing the result to a decl if required.
19247         (internal_get_tmp_var): Add allow_ssa parameter
19248         and override into_ssa with it.
19249         (get_formal_tmp_var): Adjust.
19250         (get_initialized_tmp_var): Add allow_ssa parameter.
19251         (gimplify_arg): Add allow_ssa parameter and avoid generating
19252         SSA names for the result false.
19253         (gimplify_call_expr): If the call may return twice do not
19254         gimplify parameters into SSA.
19255         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
19256         (gimplify_modify_expr): Adjust assert.  For noreturn calls
19257         with a SSA name LHS adjust its def.
19258         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
19259         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
19260         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
19261         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
19262         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
19263         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
19264         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
19265         (optimize_target_teams): Do not allow SSA names for clause operands.
19266         (gimplify_expr): Likewise for where we mark the result addressable.
19267         * passes.def (pass_init_datastructures): Remove.
19268         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
19269         (rewrite_stmt): Likewise.
19270         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
19271         (replace_locals_op): Replace SSA names.
19272         (copy_gimple_seq_and_replace_locals): Init src_cfun.
19273         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
19274         * cgraph.c (release_function_body): Free CFG annotations only
19275         when we have a CFG.  Simplify.
19276         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
19277         force_gimple_operand instead of get_initialized_tmp_var.
19278         * tree-pass.h (make_pass_init_datastructures): Remove.
19279         * tree-ssa.c (execute_init_datastructures): Remove.
19280         (pass_data_init_datastructures): Likewise.
19281         (class pass_init_datastructures): Likewise.
19282         (make_pass_init_datastructures): Likewise.
19283         * omp-low.c (create_omp_child_function): Init SSA data structures.
19284         (grid_expand_target_grid_body): Likewise.
19285         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
19286         name before adding it to names_to_release.
19287         (remove_bb): Always release SSA defs.
19288         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
19289         before dereferencing it.
19290         * cgraphunit.c (init_lowered_empty_function): Always
19291         int SSA data structures.
19292         * tree-ssanames.c (release_defs): Remove assert that we are in
19293         SSA form.
19294         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
19296 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
19297             Uros Bizjak  <ubizjak@gmail.com>
19299         PR rtl-optimization/70467
19300         * config/i386/predicates.md (x86_64_hilo_int_operand,
19301         x86_64_hilo_general_operand): New predicates.
19302         * config/i386/constraints.md (Wd): New constraint.
19303         * config/i386/i386.md (mode attr di): Use Wd instead of e.
19304         (general_hilo_operand): New mode attr.
19305         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
19306         instead of <general_operand>.
19307         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
19308         x86_64_hilo_general_operand instead of <general_operand>.
19310 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
19312         PR tree-optimization/70916
19313         * tree-if-conv.c (constant_or_ssa_name): Removed.
19314         (fold_build_cond_expr): Use is_gimple_val instead of
19315         constant_or_ssa_name.
19317         PR tree-optimization/70916
19318         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
19319         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
19321         PR target/49244
19322         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
19323         (optimize_atomic_bit_test_and): New function.
19324         (pass_fold_builtins::execute): Use it.
19325         * optabs.def (atomic_bit_test_and_set_optab,
19326         atomic_bit_test_and_complement_optab,
19327         atomic_bit_test_and_reset_optab): New optabs.
19328         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
19329         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
19330         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
19331         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
19332         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
19333         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
19334         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
19335         * doc/md.texi (atomic_bit_test_and_set@var{mode},
19336         atomic_bit_test_and_complement@var{mode},
19337         atomic_bit_test_and_reset@var{mode}): Document.
19338         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
19339         atomic_bit_test_and_complement<mode>,
19340         atomic_bit_test_and_reset<mode>): New expanders.
19341         (atomic_bit_test_and_set<mode>_1,
19342         atomic_bit_test_and_complement<mode>_1,
19343         atomic_bit_test_and_reset<mode>_1): New insns.
19345 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
19347         PR rtl-optimization/70687
19348         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
19349         instead of unsigned HOST_WIDE_INT.
19351 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
19353         PR rtl-optimization/44281
19354         * hard-reg-set.h (struct target_hard_regs): New field
19355         x_fixed_nonglobal_reg_set.
19356         (fixed_nonglobal_reg_set): New macro.
19357         * reginfo.c (init_reg_sets_1): Initialize it.
19358         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
19359         of fixed_reg_set.
19360         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
19362 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
19364         PR tree-optimization/56541
19365         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
19366         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
19367         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
19368         (any_complicated_phi): new static variable.
19369         (aggressive_if_conv): delete.
19370         (if_convertible_phi_p): support phis with more than two arguments.
19371         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
19372         critical pred edges.
19373         (ifcvt_split_critical_edges): support phis with more than two
19374         arguments by checking new parameter.  only split critical edges
19375         if needed.
19376         (tree_if_conversion): handle simd pragma marked loop using new
19377         local variable aggressive_if_conv.  check any_complicated_phi.
19379 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
19381         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
19382         before using it.
19384 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
19386         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
19387         cbase.
19389 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19391         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
19392         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
19393         define_insn_and_split.
19394         (mulsi3_i): New define_insn_and_split.
19395         (mulsi3_call): Convert to define_insn.
19396         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
19397         Remove constraints.
19399 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19401         * machmode.h (mode_complex): Add support to give the complex mode
19402         for a given mode.
19403         (GET_MODE_COMPLEX_MODE): Likewise.
19404         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
19405         stored by build_complex_type and gfc_build_complex_type instead of
19406         trying to figure out the appropriate mode based on the size. Raise
19407         an assertion error, if the type was not set.
19408         * genmodes.c (struct mode_data): Add field for the complex type of
19409         the given type.
19410         (blank_mode): Likewise.
19411         (make_complex_modes): Remember the complex mode created in the
19412         base type.
19413         (emit_mode_complex): Write out the mode_complex array to map a
19414         type mode to the complex version.
19415         (emit_insn_modes_c): Likewise.
19416         * tree.c (build_complex_type): Set the complex type to use before
19417         calling layout_type.
19418         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
19419         support for __float128 complex datatypes.
19420         (rs6000_hard_regno_mode_ok): Likewise.
19421         (rs6000_setup_reg_addr_masks): Likewise.
19422         (rs6000_complex_function_value): Likewise.
19423         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
19424         __float128 and __ibm128 complex.
19425         (FLOAT128_IBM_P): Likewise.
19426         (ALTIVEC_ARG_MAX_RETURN): Likewise.
19427         * doc/extend.texi (Additional Floating Types): Document that
19428         -mfloat128 must be used to enable __float128.  Document complex
19429         __float128 and __ibm128 support.
19431 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
19433         PR target/49244
19434         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
19435         char/short arguments promoted to int because of promote_prototypes.
19437 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
19439         * config/i386/predicates.md (register_ssemem_operand): New predicate.
19440         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
19441         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
19442         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
19443         alternatives using "enabled" attribute.  Use register_ssemem_operand
19444         as operand 1 predicate.
19445         (*cmpi<unord>xf_i387): Split XFmode pattern from
19446         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
19447         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
19448         *absneg<mode>2_i387.  Disable unsupported alternatives using
19449         "enabled" attribute.
19450         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
19452 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
19454         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
19455         marker.
19456         (oacc_loop_process): Check mask for loop termination.
19458 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
19460         * cif-code.def (CIF_THUNK): Add.
19461         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
19462         accidental change.
19464 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
19466         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
19467         (dump_inline_summary): Dump it.
19468         (fp_expression_p): New predicate.
19469         (estimate_function_body_sizes): Use it.
19470         (inline_merge_summary): Merge fp_expressions.
19471         (inline_read_section): Read fp_expressions.
19472         (inline_write_summary): Write fp_expressions.
19473         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
19474         codegen boundary if either caller or callee is !fp_expressions.
19475         * ipa-inline.h (inline_summary): Add fp_expressions.
19476         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
19477         to fp_expressions be sure the fp generation flags are updated.
19479 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
19481         PR rtl-optimization/70467
19482         * cse.c (cse_insn): Handle no-op MEM moves after folding.
19484         PR rtl-optimization/70467
19485         * ipa-pure-const.c (check_call): Handle internal calls even in
19486         ipa mode like in local mode.
19488 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19490         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
19492 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
19494         * match.pd (X u< X, X u> X): New transformations.
19496 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
19498         * flag-types.h (enum warn_strict_overflow_code): Move ...
19499         * coretypes.h: ... here.
19500         * fold-const.h (fold_overflow_warning): Declare.
19501         * fold-const.c (fold_overflow_warning): Make non-static.
19502         (fold_comparison): Move the transformation of X +- C1 CMP C2
19503         into X CMP C2 -+ C1 ...
19504         * match.pd: ... here.
19505         * gimple-fold.c (fold_stmt_1): Protect with
19506         fold_defer_overflow_warnings.
19508 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
19510         * omp-low.c (struct oacc_loop): Add 'inner' field.
19511         (new_oacc_loop_raw): Initialize it to zero.
19512         (oacc_loop_fixed_partitions): Initialize it.
19513         (oacc_loop_auto_partitions): Partition outermost loop to outermost
19514         available partitioning.
19516 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
19518         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
19519         register_operand.
19520         (umulsidi3): Likewise.
19521         (indirect_jump): Fix jump instruction assembly patterns.
19523 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
19525         PR target/70860
19526         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
19527         (nvptx_function_value): Assert non-NULL cfun.
19529 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
19531         PR rtl-optimization/70886
19532         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
19534         * cselib.h (rtx_equal_for_cselib_1): Declare.
19535         (rtx_equal_for_cselib_p: New inline function.
19536         * cselib.c (rtx_equal_for_cselib_p): Delete.
19537         (rtx_equal_for_cselib_1): Make public.
19539 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
19541         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
19542         (register_mixssei387nonimm_operand): Remove predicate.
19543         * config/i386/i386.md (*fop_<mode>_comm): Merge from
19544         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
19545         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
19546         for TARGET_MIX_SSE_I387 alternatives.
19547         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
19548         Disable unsupported alternatives using "enabled" attribute.  Use
19549         nonimm_ssenomem_operand as operand 1 predicate.  Also check
19550         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
19552 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
19554         * tree.c (cst_and_fits_in_hwi): Simplify.
19556 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
19558         * tree.h (wi::to_wide): New function.
19559         * expr.c (expand_expr_real_1): Use wi::to_wide.
19560         * fold-const.c (int_const_binop_1): Likewise.
19561         (extract_muldiv_1): Likewise.
19563 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
19565         * wide-int.h: Update offset_int and widest_int documentation.
19566         (WI_SIGNED_SHIFT_RESULT): New macro.
19567         (wi::binary_shift): Define signed_shift_result_type for
19568         shifts on offset_int- and widest_int-like types.
19569         (generic_wide_int): Support <<= and >>= if << and >> are supported.
19570         * tree.h (int_bit_position): Use shift operators instead of wi::
19571          shifts.
19572         * alias.c (adjust_offset_for_component_ref): Likewise.
19573         * expr.c (get_inner_reference): Likewise.
19574         * fold-const.c (fold_comparison): Likewise.
19575         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
19576         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
19577         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19578         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19579         (stmt_kills_ref_p): Likewise.
19580         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
19581         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
19582         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19583         (ao_ref_init_from_vn_reference): Likewise.
19585 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
19587         * wide-int.h: Update offset_int and widest_int documentation.
19588         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
19589         (wi::binary_traits): Allow ordered comparisons between offset_int and
19590         offset_int, between widest_int and widest_int, and between either
19591         of these types and basic C types.
19592         (operator <, <=, >, >=): Define for the same combinations.
19593         * tree.h (tree_int_cst_lt): Use comparison operators instead
19594         of wi:: comparisons.
19595         (tree_int_cst_le): Likewise.
19596         * gimple-fold.c (fold_array_ctor_reference): Likewise.
19597         (fold_nonarray_ctor_reference): Likewise.
19598         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
19599         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
19600         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
19601         * tree-sra.c (completely_scalarize): Likewise.
19602         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
19603         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
19604         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
19605         (check_for_binary_op_overflow): Likewise.
19606         (search_for_addr_array): Likewise.
19607         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
19609 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
19611         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
19612         (arc_save_restore): Likewise.
19613         (arc_dwarf_register_span): Likewise.
19614         (arc_output_pic_addr_const): Initialize suffix variable.
19616 2016-05-02  Martin Liska  <mliska@suse.cz>
19618         * symbol-summary.h (function_summary::function_summary):
19619         Remove checking assert for all cgraph nodes.
19620         (function_summary::get): Check summary_uid.
19621         (symtab_insertion): Check summary_uid.
19623 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
19625         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
19626         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
19627         bmaskn instruction.
19628         (arc_dwarf_register_span): Remove enum keyword.
19629         (compact_memory_operand_p): New function.
19630         * config/arc/arc.h (reg_class): Add code density register classes.
19631         (REG_CLASS_NAMES): Likewise.
19632         (REG_CLASS_CONTENTS): Likewise.
19633         * config/arc/arc.md (*movqi_insn): Add code density instructions.
19634         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
19635         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
19636         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
19637         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
19638         constraints.
19639         (h, Rcd, Rsd, Rzd): New register constraints.
19640         (T): Use compact_memory_operand_p function.
19641         * config/arc/predicates.md (compact_load_memory_operand): Remove.
19643 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
19645         * config/sh/sh.md (*negnegt, *movtt): Remove.
19647 2016-05-02  Marek Polacek  <polacek@redhat.com>
19648             Tom de Vries  <tom@codesourcery.com>
19650         PR tree-optimization/70700
19651         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
19652         bigger than FIRST_REF_NODE.
19654 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
19656         PR target/52898
19657         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
19658         TARGET_CMPEQDI_T.
19659         (prepare_cbranch_operands): Don't use scratch register.  Assume that
19660         function is used when pseudos can be created.
19661         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
19662         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
19663         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
19664         define_expand.  Allow it only when pseudos can be created.
19665         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
19667 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
19669         * config/i386/constraints.md (BC): Only allow -1 operands.
19670         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
19671         Add "enabled" attribute.  Update XI mode attribute calculation.
19672         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
19673         (*movoi_internal_avx): Update XI mode attribute calculation.
19674         (*movti_internal): Ditto.
19676 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
19678         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
19679         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
19681 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
19683         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
19684         statement on instruction code.  Remove trailing spaces.
19685         (altivec_expand_stv_builtin): Likewise.
19687 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
19689         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
19690         (TARGET_FPU_DOUBLE): Simplify.
19691         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
19692         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
19693         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
19694         with 'TARGET_FPU_DOUBLE'.
19695         * config/sh/sh.md: Likewise.
19697 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
19699         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
19700         SH_DIV_STR_FOR_SIZE): Remove.
19701         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
19702         SH_DIV_STR_FOR_SIZE): Remove.
19704 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
19706         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
19707         logical_reg_operand): Delete.
19708         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
19709         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
19710         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
19711         match_operand and match_test.
19712         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
19713         variables on their first use.  Return bool values.
19714         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
19715         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
19716         arith_reg_operand for input operand.  Remove empty constraints.
19717         (xorsi3): Delete.
19718         (*xorsi3_compact): Rename to xorsi3.
19719         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
19720         (*zero_extend<mode>si2_disp_mem): Update comment.
19721         (mov_nop): Delete.
19723 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
19725         * config/sh/t-sh: Remove SH5 support.
19726         * config.gcc: Likewise.
19727         * configure: Likewise.
19729 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19731         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
19733 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
19735         * config/sh/sh.c (register_sh_passes, sh_option_override,
19736         sh_print_operand, prepare_move_operands,
19737         sh_can_follow_jump): Remove TARGET_SH1 checks.
19738         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
19739         PROMOTE_MODE): Likewise.
19740         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
19741         movdi): Likewise.
19743 2016-04-30  Alan Modra  <amodra@gmail.com>
19745         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
19746         restoring when fixed_reg_p, but allow out-of-line or stmw save.
19747         Check for user regs later to avoid unnecessary looping over regs.
19748         Merge user reg check with non-saved reg check.  Don't force
19749         inline VR restore when static chain used.
19750         (rs6000_frame_related): Omit eh_frame info for user regs when
19751         saving.
19752         (fixed_regs_p): Delete.
19754 2016-04-30  Alan Modra  <amodra@gmail.com>
19756         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
19757         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
19758         Update all uses.
19760 2016-04-30  Alan Modra  <amodra@gmail.com>
19762         PR target/69645
19763         * config/rs6000/rs6000.c (fixed_reg_p): New function.
19764         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
19765         Update all uses.
19767 2016-04-30  Alan Modra  <amodra@gmail.com>
19769         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
19770         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
19771         flag_pic test for Darwin.
19773 2016-04-30  Alan Modra  <amodra@gmail.com>
19775         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
19776         throw_calls_crossed.
19777         (REG_FREQ_CALLS_CROSSED): Delete.
19778         (REG_N_THROWING_CALLS_CROSSED): Delete.
19779         * regstat.c (regstat_bb_compute_ri): Don't calculate
19780         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
19781         (dump_reg_info): Don't print call cross frequency.
19782         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
19783         and REG_N_THROWING_CALLS_CROSSED.
19785 2016-04-30  Alan Modra  <amodra@gmail.com>
19787         * regs.h (struct reg_info_t): Delete live_length.
19788         (REG_LIVE_LENGTH): Delete macro.
19789         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
19790         local_live, local_processed and local_live_last_luid params.
19791         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
19792         Formatting fixes.
19793         (regstat_compute_ri): Adjust for above.  Don't set
19794         REG_LIVE_LENGTH.
19795         (dump_reg_info): Don't print live length.
19796         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
19797         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
19798         Localize loop_depth var.
19800 2016-04-30  Alan Modra  <amodra@gmail.com>
19802         * ira.c (enum valid_equiv): New.
19803         (validate_equiv_mem): Return enum.
19804         (update_equiv_mem): Create replacement in more cases.
19805         (add_store_equivs): Update validate_equiv_mem call.
19807 2016-04-30  Alan Modra  <amodra@gmail.com>
19809         * ira.c (combine_and_move_insns): Rather than scanning insns,
19810         use DF infrastucture to find use and def insns.
19812 2016-04-30  Alan Modra  <amodra@gmail.com>
19814         ira.c (combine_and_move_insns): Move invariant conditions..
19815         (ira.c): ..to here.  Call combine_and_move_insns before
19816         add_store_equivs.  Call grow_reg_equivs later.  Allocate
19817         req_equiv later using max_reg_num() rather than global max_regno.
19818         (contains_replace_regs): Delete.
19819         (add_store_equivs): Remove contains_replace_regs test.
19821 2016-04-30  Alan Modra  <amodra@gmail.com>
19823         * ira.c (struct equiv_mem_data): New.
19824         (equiv_mem, equiv_mem_modified): Delete static vars.
19825         (validate_equiv_mem_from_store): Use "data" param to communicate..
19826         (validate_equiv_mem): ..from here.
19828 2016-04-30  Alan Modra  <amodra@gmail.com>
19830         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
19831         split out from..
19832         (update_reg_equivs): ..here.  Move allocation and freeing of
19833         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
19834         end_alias_analysis to..
19835         (ira): ..here.
19837 2016-04-30  Alan Modra  <amodra@gmail.com>
19839         * ira.c (pdx_subregs): Delete.
19840         (struct equivalence): Add pdx_subregs field.
19841         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
19842         pdx_subregs access.
19843         (update_equiv_regs): Don't create or free pdx_subregs.  Update
19844         pdx_subregs access.
19846 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19848         * config/rs6000/altivec.h: Change definitions of vec_xl and
19849         vec_xst.
19850         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
19851         (LD_ELEMREV_V2DI): New.
19852         (LD_ELEMREV_V4SF): New.
19853         (LD_ELEMREV_V4SI): New.
19854         (LD_ELEMREV_V8HI): New.
19855         (LD_ELEMREV_V16QI): New.
19856         (ST_ELEMREV_V2DF): New.
19857         (ST_ELEMREV_V2DI): New.
19858         (ST_ELEMREV_V4SF): New.
19859         (ST_ELEMREV_V4SI): New.
19860         (ST_ELEMREV_V8HI): New.
19861         (ST_ELEMREV_V16QI): New.
19862         (XL): New.
19863         (XST): New.
19864         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19865         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
19866         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
19867         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
19868         (altivec_expand_builtin): Add handling for
19869         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
19870         (rs6000_invalid_builtin): Add error-checking for
19871         RS6000_BTM_P9_VECTOR.
19872         (altivec_init_builtins): Define builtins used to implement vec_xl
19873         and vec_xst.
19874         (rs6000_builtin_mask_names): Define power9-vector.
19875         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
19876         (RS6000_BTM_P9_VECTOR): Define.
19877         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
19878         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
19879         (vsx_ld_elemrev_v2df): Likewise.
19880         (vsx_ld_elemrev_v4sf): Likewise.
19881         (vsx_ld_elemrev_v4si): Likewise.
19882         (vsx_ld_elemrev_v8hi): Likewise.
19883         (vsx_ld_elemrev_v16qi): Likewise.
19884         (vsx_st_elemrev_v2df): Likewise.
19885         (vsx_st_elemrev_v2di): Likewise.
19886         (vsx_st_elemrev_v4sf): Likewise.
19887         (vsx_st_elemrev_v4si): Likewise.
19888         (vsx_st_elemrev_v8hi): Likewise.
19889         (vsx_st_elemrev_v16qi): Likewise.
19890         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
19891         grammar.
19893 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
19895         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
19896         out into ...
19897         (simplify_control_stmt_condition_1): ... here.  Recurse into
19898         BIT_AND_EXPRs and BIT_IOR_EXPRs.
19900 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
19902         PR target/69810
19903         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
19904         (zero_extendqi<mode>2_dot): Revert earlier conversion from
19905         define_insn_and_split to define_insn.
19906         (zero_extendqi<mode>2_dot2): Same.
19907         (extendqi<mode>2_dot): Same.
19908         (extendqi<mode>2_dot2): Same.
19910 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19912         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
19913         (probe_stack): New expander.
19914         (probe_stack_<mode>): New insn pattern.
19916 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19918         * config/i386/i386.md
19919         (operations with memory inputs setting flags peephole2):
19920         Remove uneeded REG_P checks.  Cleanup pattern generation.
19922 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19924         * tree-vect-loop.c (vect_transform_loop): Fix
19925         nb_iterations_upper_bound computation for vectorized loop.
19927 2016-04-29  Marek Polacek  <polacek@redhat.com>
19928             Jakub Jelinek  <jakub@redhat.com>
19930         PR sanitizer/70342
19931         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
19932         TARGET_EXPR_SLOT as a base.
19934 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
19936         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
19937         with 'rCm2' constraints to limit possible immediate size.
19938         (*load_zeroextendqisi_update): Likewise.
19939         (*load_signextendqisi_update): Likewise.
19940         (*loadhi_update): Likewise.
19941         (*load_zeroextendhisi_update): Likewise.
19942         (*load_signextendhisi_update): Likewise.
19943         (*loadsi_update): Likewise.
19944         (*loadsf_update): Likewise.
19946 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19948         * config/i386/predicates.md (constm1_operand): Fix comparison.
19950 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
19952         * testsuite/gcc.target/arc/ieee_eq.c: New test.
19954 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
19956         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
19957         remaining SH5 related settings.
19958         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
19959         shmedia_prepare_call_address): Delete.
19960         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
19961         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
19962         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
19963         UNSUPPORTED_SH2A): Remove m5 checks.
19964         (sh_divide_strategy_e): Remove SH5 division strategies.
19965         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
19966         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
19968 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19970         * config/s390/s390.c (s390_rtx_costs): Update documentation.
19972 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19974         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
19975         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
19976         Change lder to ldr.
19977         * config/s390/vector.md ("mov<mode>"): Likewise.
19979 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
19981         * config/s390/constraints.md ("U", "W"): Invoke
19982         s390_mem_constraint with "ZR" and "ZT".
19983         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
19984         addresses when using LRA.  Accept also short displacements for S
19985         and T constraints.  Do not check for long displacement target for
19986         S and T constraints.
19987         (s390_mem_constraint): Remove handling of U and W constraints.
19988         * config/s390/s390.md (various patterns): Remove the short
19989         displacement constraints (Q and R) if a long displacement
19990         constraint is present.  Add longdisp as required CPU capability.
19991         * config/s390/vector.md: Likewise.
19992         * config/s390/vx-builtins.md: Likewise.
19994 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19996         PR target/60040
19997         * reload1.c (reload): Call finish_spills before
19998         restarting reload loop. Skip select_reload_regs
19999         if update_eliminables_and_spill returns true.
20001 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
20003         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
20004         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
20005         (umulhisi3_imm): Update predicates and constraint letters.
20006         (umulhisi3_reg): Declare instruction as commutative.
20007         * config/arc/constraints.md (J12, J16): New constraints.
20008         * config/arc/predicates.md (short_unsigned_const_operand): New
20009         predicate.
20010         (arc_short_operand): Likewise.
20011         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
20013 2016-04-29  Richard Biener  <rguenther@suse.de>
20015         PR tree-optimization/13962
20016         PR tree-optimization/65686
20017         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
20018         * tree-ssa-alias.c (ptrs_compare_unequal): New function
20019         using PTA to compare pointers.
20020         * match.pd: Add pattern for pointer equality compare simplification
20021         using ptrs_compare_unequal.
20023 2016-04-29  Richard Biener  <rguenther@suse.de>
20025         * stor-layout.c (layout_type): Do not build a pointer-to-element
20026         type for arrays.
20028 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
20030         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
20031         Use SWI mode iterator.  Use general_reg_operand predicate.
20032         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
20033         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
20034         predicates.
20036 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
20038         PR middle-end/70843
20039         * fold-const.c (operand_equal_p): Don't verify hash value equality
20040         if arg0 == arg1.
20041         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
20042         and OMP_CLAUSE.
20044 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
20046         PR target/70858
20047         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
20048         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
20049         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
20050         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
20051         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
20053 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
20055         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
20056         to info.  Don't initialize separate fields to 0.  Clean up
20057         formatting a bit.
20059 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
20061         * config/i386/i386.md (peephole2s for operations with memory inputs):
20062         Use SWI mode iterator.
20063         (peephole2s for operations with memory outputs): Ditto.
20064         Do not check for stack checking probe.
20066         (probe_stack): Remove expander.
20068 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20069             Andrew Burgess  <andrew.burgess@embecosm.com>
20071         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
20072         operands as 32-bits.
20074 2016-04-28  Jason Merrill  <jason@redhat.com>
20076         * gdbinit.in: Skip line-map.h.
20078 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20079             Andrew Burgess  <andrew.burgess@embecosm.com>
20081         * config/arc/arc.c (arc_conditional_register_usage): Take
20082         TARGET_RRQ_CLASS into account.
20083         (arc_print_operand): Support printing 'p' and 's' operands.
20084         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
20085         as 0.
20086         (TARGET_RRQ_CLASS): Define.
20087         (IS_POWEROF2_OR_0_P): Define.
20088         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
20089         alternatives.
20090         (*tst_movb): New define_insn.
20091         (*tst): Avoid recognition if it could prevent '*tst_movb'
20092         combination; replace c/CnL with c/Chs alternative.
20093         (*tst_bitfield_tst): New define_insn.
20094         (*tst_bitfield_asr): New define_insn.
20095         (*tst_bitfield): New define_insn.
20096         (andsi3_i): Add Rrq variant.
20097         (extzv): New define_expand.
20098         (insv): New define_expand.
20099         (*insv_i): New define_insn.
20100         (*movb): New define_insn.
20101         (*movb_signed): New define_insn.
20102         (*movb_high): New define_insn.
20103         (*movb_high_signed): New define_insn.
20104         (*movb_high_signed + 1): New define_split pattern.
20105         (*mrgb): New define_insn.
20106         (*mrgb + 1): New define_peephole2 pattern.
20107         (*mrgb + 2): New define_peephole2 pattern.
20108         * config/arc/arc.opt (mbitops): New option for nps400, uses
20109         TARGET_NPS_BITOPS_DEFAULT.
20110         * config/arc/constraints.md (q): Make register class conditional.
20111         (Rrq): New register constraint.
20112         (Chs): New constraint.
20113         (Clo): New constraint.
20114         (Chi): New constraint.
20115         (Cbf): New constraint.
20116         (Cbn): New constraint.
20117         (C18): New constraint.
20118         (Cbi): New constraint.
20120 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
20122         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
20123         dst->popcount.
20124         (bitmap_intersection_of_preds): Ditto.
20125         (bitmap_union_of_succs): Ditto.
20126         (bitmap_union_of_preds): Ditto.
20127         * sbitmap.c (do_popcount): Delete.
20128         (BITMAP_DEBUGGING): Delete.
20129         (sbitmap_verify_popcount): Delete.
20130         (sbitmap_alloc): Don't initialize the popcount field.
20131         (sbitmap_alloc_with_popcount): Delete.
20132         (sbitmap_resize): Don't resize the popcount array.
20133         (sbitmap_vector_alloc): Don't initialize the popcount field.
20134         (bitmap_copy): Don't copy the popcount array.
20135         (bitmap_clear): Don't clear the popcount array.
20136         (bitmap_clear): Delete the popcount array handling.
20137         (bitmap_ior_and_compl): Delete the popcount assert.
20138         (bitmap_not): Ditto.
20139         (bitmap_and_compl): Ditto.
20140         (bitmap_and): Delete the popcount array handling.
20141         (bitmap_xor): Ditto.
20142         (bitmap_ior): Ditto.
20143         (bitmap_or_and): Delete the popcount assert.
20144         (bitmap_and_or): Ditto.
20145         (popcount_table): Delete.
20146         (sbitmap_elt_popcount): Delete.
20147         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
20148         (bitmap_set_bit): Delete the popcount assert.
20149         (bitmap_clear_bit): Ditto.
20150         (sbitmap_free): Don't free the popcount array.
20151         (sbitmap_alloc_with_popcount): Delete declaration.
20152         (sbitmap_popcount): Ditto.
20154 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20155             Andrew Burgess  <andrew.burgess@embecosm.com>
20157         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
20158         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
20159         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
20160         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
20161         * config/arc/arc.opt (mcmem): New option.
20162         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
20163         supply length for r/m alternative.
20164         (*extendqisi2_ac): Likewise.
20165         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
20166         r/Uex alternative.
20167         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
20168         (movhi_insn): Likewise.
20169         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
20170         (*zero_extendqihi2_i): Add r/Ucm alternative.
20171         (*zero_extendqisi2_ac): Likewise.
20172         (*zero_extendhisi2_i): Likewise.
20173         * config/arc/constraints.md (Uex): New memory constraint.
20174         (Ucm): New define_constraint.
20175         * config/arc/predicates.md (long_immediate_loadstore_operand):
20176         Return 0 for MEM with cmem_address address.
20177         (cmem_address_0): New predicates.
20178         (cmem_address_1): Likewise.
20179         (cmem_address_2): Likewise.
20180         (cmem_address): Likewise.
20182 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
20184         * config/rs6000/rs6000.c (machine_function): Rename
20185         insn_chain_scanned_p to spe_insn_chain_scanned_p.
20186         (rs6000_stack_info): Adjust.
20188 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20189             Andrew Burgess  <andrew.burgess@embecosm.com>
20191         * config/arc/constraints.md (Usd): Convert to define_constraint.
20192         (Us<): Likewise.
20193         (Us>): Likewise.
20195 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
20197         PR target/70821
20198         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
20199         Add new peephole2 where the first insn is *mov<mode>_or instead of
20200         *mov<mode>_internal.
20202 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
20204         * tracer.c (bb_seen): Make static.
20206 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
20208         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
20209         support, setup defaults.
20210         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
20211         * config/arc/arc.c (arc_init): Add NPS400 support.
20212         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
20213         (TARGET_ARC700): NPS400 is also an ARC700.
20214         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
20216 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
20218         PR target/70668
20219         * config/nds32/nds32.md (casesi): Don't access the operands array
20220         out of bounds.
20222 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
20224         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
20225         (or $-1,reg peephole2): Ditto.
20226         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
20228 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
20230         * doc/extend.texi (Common Function Attributes) [optimize]:
20231         Discourage use of the optimize attribute.
20233 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
20235         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
20236         special case builtin.
20237         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20238         ALTIVEC_BUILTIN_VEC_ADDE.
20239         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20240         support for ALTIVEC_BUILTIN_VEC_ADDE.
20241         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20242         for __builtin_vec_adde.
20244 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
20246         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
20247         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
20249 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20251         PR testsuite/70595
20252         * doc/sourcebuild.texi (Effective-Target Keywords, Other
20253         attributes): Document cilkplus_runtime.
20255 2016-04-28  Martin Jambor  <mjambor@suse.cz>
20257         * tree-cfg.c (verify_expr): Verify that local declarations belong to
20258         this function.  Call verify_expr on MEM_REFs and bases of other
20259         handled_components.
20261 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20263         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
20264         for WORD_REGISTER_OPERATIONS to runtime check.
20266 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
20268         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
20270 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
20272         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
20273         big-endian compilation.
20274         * config/arc/arc.md (addf3): Likewise.
20275         (subdf3): Likewise.
20276         (muldf3): Likewise.
20278 2016-04-28  Richard Biener  <rguenther@suse.de>
20280         PR tree-optimization/70840
20281         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
20282         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
20283         Mark x * pow(x,c) -> pow(x,c+1) commutative.
20284         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
20286 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20288         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
20289         and explain why in a comment.
20291 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
20293         * config/arc/arc.md (cpu_facility): Add fpx variant.
20294         (subdf3): Prohibit use reverse sub when assist operations option
20295         is enabled.
20296         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
20297         instructions only when FPX is enabled.
20298         * testsuite/gcc.target/arc/trsub.c: New test.
20300 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
20302         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
20303         mult_operator when calculating "type" attribute.
20304         (*fop_<mode>_1_i387): Ditto.
20305         (*fop_xf_1_i387): Ditto.
20306         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
20307         Use std::swap to swap operands.  Use RTL expressions to generate
20308         converted pattern.
20310 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
20311             Joern Rennecke  <joern.rennecke@embecosm.com>
20313         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
20314         declaration.
20315         (emit_pic_move): Remove.
20316         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
20317         * config/arc/arc.c (emit_pic_move): Removed.
20318         (TARGET_HAVE_TLS): Define.
20319         (arc_conditional_register_usage): Test for arc_tp_regno.
20320         (arc_print_operand, arc_print_operand_address): Handle TLS
20321         unspecs.
20322         (arc_needs_pcl_p): New function.
20323         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
20324         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
20325         (arc_raw_symbolic_reference_mentioned_p): Likewise.
20326         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
20327         (arc_legitimize_tls_address): Likewise.
20328         (DTPOFF_ZERO_SYM): Define.
20329         (arc_legitimize_pic_address): Make it static, handle TLS cases.
20330         (arc_output_pic_addr_const): Print TLS unspecs.
20331         (prepare_pic_move): New function, replaces emit_pic_move.
20332         (arc_legitimate_constant_p): Handle TLS unspecs.
20333         (arc_legitimate_address_p): Likewise.
20334         (arc_rewrite_small_data_p): Use assert for TLS constants.
20335         (prepare_move_operands): Use prepare_pic_move.
20336         (arc_legitimize_address): Legitimize tls addresses.
20337         (arc_epilogue_uses): Check for arc_tp_regno.
20338         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
20339         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
20340         Define.
20341         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
20342         Likewise.
20343         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
20344         %(arc_tls_extra_start_spec).
20345         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
20346         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
20347         (EH_USES): Define.
20348         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
20349         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
20350         (UNSPEC_TLS_OFF): Add.
20351         (R10_REG): Define.
20352         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
20353         (get_thread_pointersi): New patterns.
20354         * config/arc/arc.opt (mtp-regno): New option.
20355         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
20356         (move_dest_operand): Likewise.
20357         * configure: Regenerate.
20358         * configure.ac: Add arc*-*-* case to test for tls.
20359         * doc/invoke.texi (ARC options): Document mtp-regno.
20361 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
20363         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
20364         the new ARC HS SIMD instructions.
20365         (arc_preferred_simd_mode): New function.
20366         (arc_autovectorize_vector_sizes): Likewise.
20367         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20368         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20369         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
20370         (arc_init_builtins): Add new SIMD builtin types.
20371         (arc_split_move): Handle 64 bit vector moves.
20372         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
20373         (TARGET_PLUS_QMACW): Define.
20374         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
20375         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
20376         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
20377         (VSUBADD4H): New builtins.
20378         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
20379         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
20381 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
20382             Matthias Klose  <doko@debian.org>
20384         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
20386 2016-04-28  Richard Biener  <rguenther@suse.de>
20388         PR middle-end/70777
20389         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
20390         canonicalization.
20392 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
20394         * common/config/sh/sh-common.c: Remove SH5 support.
20395         * config/sh/constraints.md: Likewise.
20396         * config/sh/config/sh/elf.h: Likewise.
20397         * config/sh/linux.h: Likewise.
20398         * config/sh/netbsd-elf.h: Likewise.
20399         * config/sh/predicates.md: Likewise.
20400         * config/sh/sh-c.c: Likewise.
20401         * config/sh/sh-protos.h: Likewise.
20402         * config/sh/sh.c: Likewise.
20403         * config/sh/sh.h: Likewise.
20404         * config/sh/sh.md: Likewise.
20405         * config/sh/sh.opt: Likewise.
20406         * config/sh/sync.md: Likewise.
20407         * config/sh/sh64.h: Delete.
20408         * config/sh/shmedia.h: Likewise.
20409         * config/sh/shmedia.md: Likewise.
20410         * config/sh/sshmedia.h: Likewise.
20411         * config/sh/t-netbsd-sh5-64: Likewise.
20412         * config/sh/t-sh64: Likewise.
20413         * config/sh/ushmedia.h: Likewise.
20415 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
20417         * config/i386/i386.md (sign_extend to memory peephole2s): Use
20418         general_reg_operand instead of register_operand predicate.
20420 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20422         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
20424 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
20426         * match.pd (A - B > A, A + B < A): New transformations.
20428 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
20430         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
20431         which defaults to true.  Emit an outer pair of parentheses only if
20432         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
20433         don't emit parentheses for the right-hand operand.
20435 2016-04-27  Jeff Law  <law@redhat.com>
20437         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
20439 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20441         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
20442         (altivec_lvx_<mode>_internal): Document.
20443         (altivec_lvx_<mode>_2op): New define_insn.
20444         (altivec_lvx_<mode>_1op): Likewise.
20445         (altivec_lvx_<mode>_2op_si): Likewise.
20446         (altivec_lvx_<mode>_1op_si): Likewise.
20447         (altivec_stvx_<mode>): Remove.
20448         (altivec_stvx_<mode>_internal): Document.
20449         (altivec_stvx_<mode>_2op): New define_insn.
20450         (altivec_stvx_<mode>_1op): Likewise.
20451         (altivec_stvx_<mode>_2op_si): Likewise.
20452         (altivec_stvx_<mode>_1op_si): Likewise.
20453         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20454         Expand vec_ld and vec_st during parsing.
20455         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
20456         changes.
20457         (altivec_expand_stvx_be): Likewise.
20458         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
20459         address-masking behavior in RTL.
20460         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
20461         address-masking behavior in RTL.
20462         (altivec_expand_builtin): Change builtin code arguments for calls
20463         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
20464         (insn_is_swappable_p): Avoid incorrect swap optimization in the
20465         presence of lvx/stvx patterns.
20466         (alignment_with_canonical_addr): New function.
20467         (alignment_mask): Likewise.
20468         (find_alignment_op): Likewise.
20469         (recombine_lvx_pattern): Likewise.
20470         (recombine_stvx_pattern): Likewise.
20471         (recombine_lvx_stvx_patterns): Likewise.
20472         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
20473         stvx patterns from expand.
20474         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
20475         expansions.
20476         (vector_altivec_store_<mode>): Likewise.
20478 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
20480         * config/aarch64/aarch64.md
20481         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
20482         remove the "fp" attributes.
20483         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
20484         add the "simd" attributes.
20485         (*movdf_aarch64): Likewise.
20486         (*movtf_aarch64): Remove the "fp" attributes.
20487         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
20488         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
20490 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
20492         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
20493         rtx to rtx_code_label *.
20494         * rtl.h (maybe_set_first_label_num): Likewise.
20496 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
20498         * df-core.c (df_add_problem): Make the problem param be const.
20499         (df_remove_problem): Make local "problem" be const.
20500         * df-problems.c (problem_RD): Make const.
20501         (problem_LR): Likewise.
20502         (problem_LIVE): Likewise.
20503         (problem_MIR): Likewise.
20504         (problem_CHAIN): Likewise.
20505         (problem_WORD_LR): Likewise.
20506         (problem_NOTE): Likewise.
20507         (problem_MD): Likewise.
20508         * df-scan.c (problem_SCAN): Likewise.
20509         * df.h (struct df_problem): Make field "dependent_problem" be
20510         const.
20511         (struct dataflow): Likewise for field "problem".
20512         (df_add_problem): Make param const.
20514 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
20516         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
20517         inter-unit moves to/from vector registers are enabled.  Do not disable
20518         for TARGET_MMX.
20520 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
20522         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
20523         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
20524         #define to...
20525         (enum df_problem_id): ...this new enum.
20526         (struct df_problem): Convert field "id" from "int" to
20527         enum df_problem_id.
20529 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
20531         * rtl.def: Update comment for "things in the instruction chain" to
20532         reflect the removal of the leading "i" field for INSN_UID in
20533         r210360.  Fix bogus apostrophe.
20535 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
20537         * config/i386/i386.md
20538         (lea arith with mem operand + setcc peephole2): Set operator mode.
20540 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
20542         PR target/70155
20543         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
20544         (dimode_scalar_to_vector_candidate_p): This.
20545         (timode_scalar_to_vector_candidate_p): New function.
20546         (scalar_to_vector_candidate_p): Likewise.
20547         (timode_check_non_convertible_regs): Likewise.
20548         (timode_remove_non_convertible_regs): Likewise.
20549         (remove_non_convertible_regs): Likewise.
20550         (remove_non_convertible_regs): Renamed to ...
20551         (dimode_remove_non_convertible_regs): This.
20552         (scalar_chain::~scalar_chain): Make it virtual.
20553         (scalar_chain::compute_convert_gain): Make it pure virtual.
20554         (scalar_chain::mark_dual_mode_def): Likewise.
20555         (scalar_chain::convert_insn): Likewise.
20556         (scalar_chain::convert_registers): Likewise.
20557         (scalar_chain::add_to_queue): Make it protected.
20558         (scalar_chain::emit_conversion_insns): Likewise.
20559         (scalar_chain::replace_with_subreg): Likewise.
20560         (scalar_chain::replace_with_subreg_in_insn): Likewise.
20561         (scalar_chain::convert_op): Likewise.
20562         (scalar_chain::convert_reg): Likewise.
20563         (scalar_chain::make_vector_copies): Likewise.
20564         (scalar_chain::convert_registers): New pure virtual function.
20565         (class dimode_scalar_chain): New class.
20566         (class timode_scalar_chain): Likewise.
20567         (scalar_chain::mark_dual_mode_def): Renamed to ...
20568         (dimode_scalar_chain::mark_dual_mode_def): This.
20569         (timode_scalar_chain::mark_dual_mode_def): New function.
20570         (timode_scalar_chain::convert_insn): Likewise.
20571         (dimode_scalar_chain::convert_registers): Likewise.
20572         (scalar_chain::compute_convert_gain): Renamed to ...
20573         (dimode_scalar_chain::compute_convert_gain): This.
20574         (scalar_chain::replace_with_subreg): Renamed to ...
20575         (dimode_scalar_chain::replace_with_subreg): This.
20576         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
20577         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
20578         (scalar_chain::make_vector_copies): Renamed to ...
20579         (dimode_scalar_chain::make_vector_copies): This.
20580         (scalar_chain::convert_reg): Renamed to ...
20581         (dimode_scalar_chain::convert_reg ): This.
20582         (scalar_chain::convert_op): Renamed to ...
20583         (dimode_scalar_chain::convert_op): This.
20584         (scalar_chain::convert_insn): Renamed to ...
20585         (dimode_scalar_chain::convert_insn): This.
20586         (scalar_chain::convert): Call convert_registers.
20587         (convert_scalars_to_vector): Change to scalar_chain pointer to
20588         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
20589         in 32-bit mode.  Delete scalar_chain pointer.  Call
20590         free_dominance_info in 64-bit mode.
20591         (pass_stv::gate): Remove TARGET_64BIT check.
20592         (ix86_option_override): Put the 64-bit STV pass before the CSE
20593         pass.
20595 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
20597         * dwarf2out.h (struct dw_loc_descr_node): Remove the
20598         dw_loc_frame_offset field.
20599         * dwarf2out.c (new_loc_descr): Likewise.
20600         (resolve_args_picking_1): Turn the VISITED hash set into a
20601         FRAME_OFFSET hash map. Use it to associate a frame offset to
20602         visited nodes. Remove uses of the CHECKING_P macro.
20603         (resolve_args_picking): Update call to resolve_args_picking_1.
20605 2016-04-27  Martin Liska  <mliska@suse.cz>
20607         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
20608         (free_loop_data): Release vuses of groups.
20610 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
20612         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
20613         instead of redundant use_id and boolean have_use_for.
20614         (struct iv_use): Change sub_id into group_id.  Remove field next.
20615         Move fields: related_cands, n_map_members, cost_map and selected
20616         to ...
20617         (struct iv_group): ... here.  New structure.
20618         (struct iv_common_cand): Use structure declaration directly.
20619         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
20620         (MAX_CONSIDERED_USES): Rename macro to ...
20621         (MAX_CONSIDERED_GROUPS): ... here.
20622         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
20623         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
20624         (dump_uses): Rename to ...
20625         (dump_groups): ... here.  Update all uses.
20626         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
20627         (find_induction_variables): Refactor format of dump information.
20628         (record_sub_use): Delete.
20629         (record_use): Update all uses.
20630         (record_group): New function.
20631         (record_group_use, find_interesting_uses_op): Call above functions.
20632         Update all uses.
20633         (find_interesting_uses_cond): Ditto.
20634         (group_compare_offset): New function.
20635         (split_all_small_groups): Rename to ...
20636         (split_small_address_groups_p): ... here.  Update all uses.
20637         (split_address_groups):  Update all uses.
20638         (find_interesting_uses): Refactor format of dump information.
20639         (add_candidate_1): Update all uses.  Remove redundant check on iv,
20640         base and step.
20641         (add_candidate, record_common_cand): Remove redundant assert.
20642         (add_iv_candidate_for_biv): Update use.
20643         (add_iv_candidate_derived_from_uses): Update all uses.
20644         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
20645         (alloc_use_cost_map): Ditto.
20646         (set_use_iv_cost, get_use_iv_cost): Rename to ...
20647         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
20648         (determine_use_iv_cost_generic): Ditto.
20649         (determine_group_iv_cost_generic): Ditto.
20650         (determine_use_iv_cost_address): Ditto.
20651         (determine_group_iv_cost_address): Ditto.
20652         (determine_use_iv_cost_condition): Ditto.
20653         (determine_group_iv_cost_cond): Ditto.
20654         (determine_use_iv_cost): Ditto.
20655         (determine_group_iv_cost): Ditto.
20656         (set_autoinc_for_original_candidates): Update all uses.
20657         (find_iv_candidates): Update all uses.  Refactor dump information.
20658         (determine_use_iv_costs): Ditto.
20659         (determine_iv_costs): Ditto.
20660         (iv_ca_cand_for_use): Rename to ...
20661         (iv_ca_cand_for_group): ... here.  Update all uses.
20662         (iv_ca_add_use, iv_ca_add_group): Ditto.
20663         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
20664         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
20665         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
20666         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
20667         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
20668         (create_new_iv, adjust_iv_update_pos): Ditto.
20669         (rewrite_use_address): Delete.
20670         (rewrite_use_address_1): Rename to ...
20671         (rewrite_use_address): ... here.
20672         (rewrite_use_compare): Update all uses.
20673         (rewrite_use): Delete.
20674         (rewrite_uses): Rename to ...
20675         (rewrite_groups): ... here.  Update all uses.
20676         (remove_unused_ivs, free_loop_data): Update all uses.
20677         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
20679 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20681         * rtlanal.c (nonzero_bits1): Convert preprocessor check
20682         for WORD_REGISTER_OPERATIONS to runtime check.
20684 2016-04-27  Richard Biener  <rguenther@suse.de>
20686         PR ipa/70760
20687         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
20688         aggregate_value_p to determine if a function result is
20689         returned by reference.
20690         (ipa_pta_execute): Functions having their address taken are
20691         not automatically nonlocal.
20693 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
20695         PR sanitizer/70683
20696         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
20697         * fold-const.c (operand_equal_p): If flag_checking and
20698         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
20699         and if it returns non-zero, assert iterative_hash_expr on both
20700         args is the same.
20702 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
20704         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
20706 2016-04-27  Nick Clifton  <nickc@redhat.com>
20708         PR middle-end/49889
20709         * varasm.c (merge_weak): Generate an error if an attempt is made
20710         to convert a non-weak static function into a weak, public function.
20712 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20714         * params.def (MAX_PARTITION_SIZE): New param.
20715         * doc/invoke.texi: Document lto-max-partition.
20717 2016-04-27  Richard Biener  <rguenther@suse.de>
20719         PR ipa/70785
20720         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
20721         function cummulating used_from_other_partition, externally_visible
20722         and force_output from aliases.
20723         (refered_from_nonlocal_var): Likewise.
20724         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
20725         node flags properly.
20727 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
20729         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
20730         (-Wmemset-elt-size): New item.
20732 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
20734         PR ada/70759
20735         * stor-layout.h (internal_reference_types): Delete.
20736         * stor-layout.c (reference_types_internal): Likewise.
20737         (internal_reference_types): Likewise.
20738         (layout_type) <REFERENCE_TYPE>: Adjust.
20740 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
20742         PR sanitizer/70683
20743         * tree.h (inchash::add_expr): Add FLAGS argument.
20744         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
20745         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
20746         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
20747         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
20748         if swap_tree_comparison (code) is smaller than code, hash that
20749         and arguments in the other order.  Hash CONVERT_EXPR the same
20750         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
20751         of ADDR_EXPR of decl as the decl itself.  Add or remove
20752         OEP_ADDRESS_OF from recursive flags as needed.  For
20753         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
20754         operands commutatively and only the third one normally.
20755         For internal CALL_EXPR hash in CALL_EXPR_IFN.
20757 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20759         * config/rtems.h (LIB_SPEC): Add -latomic.
20761 2016-04-27  Joel Sherrill  <joel@rtems.org>
20763         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
20764         xilink.ld and flags not relevant to RTEMS.
20766 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20768         * toplev.c (backend_init_target): Avoid calling init_reload when using
20769         LRA.
20771 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
20773         * reorg.c (try_merge_delay_insns): Declare i and j inside the
20774         for loops rather than one for the whole function.
20776 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
20778         * match.pd (X + CST CMP X): New transformation.
20780 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
20782         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
20783         * fold-const.c (fold_binary_loc): Remove 2 transformations
20784         superseded by match.pd.
20785         * match.pd (x+x -> x*2): Generalize to integers.
20787 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
20789         * config/i386/i386.md (operation on memory peephole): Duplicate an
20790         existing peephole and adapt it to match lea rather than an operation
20791         that clobbers CC.
20793         PR rtl-optimization/57193
20794         * opts.c (default_options_table): Add OPT_frename_registers at -O2
20795         and above.
20796         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
20798 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
20800         * tree-if-conv.c (any_pred_load_store): New static variable.
20801         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
20802         any_pred_load_store instead of and_mask_load_store.
20803         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
20804         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
20805         (combine_blocks, tree_if_conversion): Ditto.
20807 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
20809         PR tree-optimization/70771
20810         PR tree-optimization/70775
20811         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
20812         virtual PHI nodes.  Delete parameter.
20813         (if_convertible_loop_p_1): Delete argument to above function.
20814         (predicate_all_scalar_phis): Delete code handling single-argument
20815         PHIs.
20816         (tree_if_conversion): Mark and update virtual SSA.
20818 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20820         PR target/61821
20821         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
20822         (x86_elf_aligned_common): Rename to ...
20823         (x86_elf_aligned_decl_common): ... this.
20824         Add decl arg.  Switch to .lbss for largecomm object.  Use
20825         LARGECOMM_SECTION_ASM_OP.
20826         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
20827         renaming.
20828         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
20829         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
20830         Pass new decl arg.
20831         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20832         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
20834 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20836         PR target/59407
20837         * config/i386/i386.c (SECTION_LARGE): Define.
20838         (x86_64_elf_select_section): Set it for large data/bss sections.
20839         Only clear SECTION_WRITE for .lrodata.
20840         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
20841         data/bss sections.
20842         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
20843         * varasm.c (default_elf_asm_named_section): Grow flagchars.
20844         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
20845         SECTION_MACH_DEP.
20846         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
20847         * doc/tm.texi: Regenerate.
20849 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
20851         PR bootstrap/70704
20852         * configure.ac (--enable-checking): Document extra flag, for
20853         non-release builds default to --enable-checking=yes,extra.
20854         If misc checking and extra checking, define CHECKING_P to 2 instead
20855         of 1.
20856         * common.opt (fchecking=): Add.
20857         * doc/invoke.texi (-fchecking=): Document.
20858         * doc/install.texi: Document --enable-checking changes.
20859         * configure: Regenerated.
20860         * config.in: Regenerated.
20862 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20864         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
20865         attribute instead of which_alternative.
20866         * config/i386/sse.md (*mov<mode>_internal): Ditto.
20867         Use EXT_REX_SSE_REG_P where appropriate.
20869 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20871         * config/i386/predicates.md (const0_operand): Do not match
20872         const_wide_int code.
20873         (const1_operand): Ditto.
20875 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20877         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
20878         for SSE constm1 operands and TARGET_AVX512VL.
20879         (*movti_internal): Ditto.
20880         (*mov<mode>_or): Use constm1_operand predicate.
20881         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
20882         for SSE vector_all_ones operands and TARGET_AVX512VL.
20883         * config/i386/predicates.md (constm1_operand): New predicate.
20884         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
20885         emission of constant -1 load.
20887 2016-04-25  Jason Merrill  <jason@redhat.com>
20889         * gdbinit.in: Skip is-a.h.
20891         * attribs.c (register_scoped_attributes): Fix logic.
20892         * attribs.h: Declare register_scoped_attributes.
20894 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20896         * config/rs6000/rs6000-builtin.def: Correct pasto error for
20897         stxvd2x and stxvw4x built-in functions.
20899 2016-04-25  DJ Delorie  <dj@redhat.com>
20901         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
20902         (ashrhi3): Likewise.
20903         (lshrhi3): Likewise.
20905 2016-04-25  Richard Biener  <rguenther@suse.de>
20907         PR tree-optimization/70780
20908         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
20909         wasn't visited yet.
20910         (compute_antic): Mark blocks with abnormal preds as visited as
20911         they have a final empty antic-in solution already.
20913 2016-04-25  Michael Collison  <michael.collison@linaro.org>
20915         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
20917 2016-04-25  Michael Collison  <michael.collison@linaro.org>
20919         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
20920         mode is VQI to improve mixed mode vectorization.
20921         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
20922         define_insn to match low half of signed vaddw.
20923         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
20924         define_insn to match high half of signed vaddw.
20925         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
20926         define_insn to match low half of unsigned vaddw.
20927         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
20928         define_insn to match high half of unsigned vaddw.
20929         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
20930         (arm_simd_check_vect_par_cnst_half_p): Likewise.
20931         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
20932         for new function.
20933         (arm_simd_check_vect_par_cnst_half_p): Likewise.
20934         * config/arm/predicates.md (vect_par_constant_high): Support
20935         big endian and simplify by calling
20936         arm_simd_check_vect_par_cnst_half
20937         (vect_par_constant_low): Likewise.
20939 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20941         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
20942         predicate for operand 2.
20944 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
20945             H.J. Lu  <hongjiu.lu@intel.com>
20947         * config/i386/i386-protos.h (standard_sse_constant_p): Add
20948         machine_mode argument.
20949         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
20950         constm1_rtx operands.  For VOIDmode constants, get mode from
20951         pred_mode.  Check mode size if the mode is supported by ABI.
20952         (standard_sse_constant_opcode): Do not use standard_constant_p.
20953         Strictly check ABI support for all-ones operands.
20954         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
20955         immediates. Update calls to standard_sse_constant_p.
20956         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
20957         (ix86_rtx_costs): Ditto.
20958         * config/i386/i386.md (*movxi_internal_avx512f): Use
20959         nonimmediate_or_sse_const_operand instead of vector_move_operand.
20960         Use (v,BC) alternative instead of (v,C). Use register_operand
20961         checks instead of MEM_P.
20962         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
20963         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
20964         isa attribute.  Use register_operand checks instead of MEM_P.
20965         (*movti_internal): Use nonimmediate_or_sse_const_operand for
20966         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
20967         alternative and corresponding sse2 isa attribute.
20968         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
20969         to standard_sse_constant_p.
20970         (FP constant splitters): Ditto.
20971         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
20972         (C): Ditto.
20973         * config/i386/predicates.md (constm1_operand): Remove.
20974         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
20975         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
20976         vector_all_ones_operand instead of constm1_operand.
20978 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20980         * print-rtl.c (print_rtx_insn_vec): New function.
20981         * print-rtl.h: New prototype.
20982         * store-motion.c (struct st_expr): Make avail_stores a vector.
20983         (st_expr_entry): Adjust.
20984         (free_st_expr_entry): Likewise.
20985         (print_store_motion_mems): Likewise.
20986         (find_moveable_store): Likewise.
20987         (compute_store_table): Likewise.
20988         (delete_store): Likewise.
20989         (build_store_vectors): Likewise.
20991 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20993         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
20995 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20997         * vec.h (vec_safe_contains): New function.
20998         (vec::contains): Likewise.
20999         (vec::begin): Likewise.
21000         (vec::end): Likewise.
21002 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
21004         PR sanitizer/70712
21005         * cfgexpand.c (expand_stack_vars): Fix typo.
21007 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21009         * system.h (list, map, set, vector): Include conditionally.
21010         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
21011         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
21012         * ipa-icf.c (INCLUDE_LIST): Define.
21013         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
21014         * config/sh/sh.c (INCLUDE_VECTOR): Define.
21015         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
21016         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
21017         * cp/logic.cc (INCLUDE_LIST): Define.
21018         * fortran/trans-common.c (INCLUDE_MAP): Define.
21020 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21022         * auto-profile.c: Remove <string.h> include.
21023         * ipa-icf-gimple.c: Remove <list> include.
21024         * diagnostic.c: Remove <new> include.
21025         * genmatch.c: Likewise.
21026         * pretty-print.c: Likewise.
21027         * toplev.c: Likewise
21028         * c/c-objc-common.c: Likewise.
21029         * cp/error.c: Likewise.
21030         * fortran/error.c: Likewise.
21032 2016-04-22  Richard Biener  <rguenther@suse.de>
21034         * lto-streamer-in.c (input_ssa_names): Do not allocate
21035         GIMPLE_NOP for all SSA names.
21036         * lto-streamer-out.c (output_ssa_names): Do not output
21037         SSA names that should have been released.
21039 2016-04-22  Richard Biener  <rguenther@suse.de>
21041         PR tree-optimization/70740
21042         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
21043         VDEF.
21045 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
21047         PR target/70750
21048         * config/i386/predicates.md (call_insn_operand): Replace
21049         sibcall_memory_operand with memory_operand.
21051 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
21053         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
21054         has_single_use() tests.
21055         (register_edge_assert_for_1): Likewise.
21056         (find_assert_locations_1): Check the liveness bitmap instead of
21057         checking has_single_use().
21059 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
21061         PR target/70728
21062         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
21063         Extract AVX-512BW constraint from AVX.
21065 2016-04-21  Richard Biener  <rguenther@suse.de>
21067         PR tree-optimization/70725
21068         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
21069         for phi_convertible_by_degenerating_args.
21070         (predicate_all_scalar_phis): Handle single-argument PHIs.
21072 2016-04-21  Richard Biener  <rguenther@suse.de>
21074         PR middle-end/70747
21075         * fold-const.c (fold_comparison): Return properly typed
21076         constant boolean.
21078 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
21080         PR tree-optimization/70715
21081         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
21082         after expanding BASE using expand_simple_operations.
21084 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
21086         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
21087         New transformations.
21089 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
21091         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
21093 2016-04-20  Jan Hubicka  <jh@suse.cz>
21095         * ipa-inline.c (can_inline_edge_p): Pass caller info to
21096         ultiimate_alias_target.
21097         (update_callee_keys): Likewise.
21098         (lookup_recursive_calls): Likewise.
21099         (speculation_useful_p): Likewise.
21101 2016-04-20  Jan Hubicka  <jh@suse.cz>
21103         PR ipa/70018
21104         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
21105         (set_nothrow_flag_1): ... this; handle interposition correctly;
21106         recurse on aliases and thunks.
21107         (cgraph_node::set_nothrow_flag): New.
21108         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
21109         functions compiled with non-call exceptions that binds to current
21110         def.
21111         (propagate_nothrow): Be safe WRT interposition.
21112         * cgraph.h (set_nothrow_flag): Update prototype.
21114 2016-04-18  Jan Hubicka  <jh@suse.cz>
21116         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21117         max_loop_iterations_int.
21118         (tree_unswitch_outer_loop): Likewise.
21120 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
21122         PR tree-optimization/69489
21123         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
21124         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
21125         Revise dump message.
21126         (if_convertible_bb_p): Remove check on edge count of basic block's
21127         predecessors.
21129 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
21131         PR tree-optimization/56625
21132         PR tree-optimization/69489
21133         * tree-data-ref.h (DR_INNERMOST): New macro.
21134         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
21135         hashing struct innermost_loop_behavior.
21136         (ref_DR_map): Remove.
21137         (innermost_DR_map): New map.
21138         (baseref_DR_map): Revise comment.
21139         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
21140         to innermost_DR_map accroding to its innermost loop behavior.
21141         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
21142         to its innermost loop behavior.
21143         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
21144         Add initialization for innermost_DR_map.  Record memory reference
21145         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
21146         have innermost loop behavior.
21147         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
21148         innermost_DR_map.
21150 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
21152         * config/i386/i386.md (*lea<mode>_general_1): Rename from
21153         *lea_general_1.  Use explicit SWI12 mode interator.
21154         (*lea<mode>_general_2): Rename from *lea_general_2.
21155         Use explicit SWI12 mode interator.
21156         (*lea<mode>_general_3): Rename from *lea_general_3.
21157         Use explicit SWI12 mode interator.
21158         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
21159         Use explicit SWI12 mode interator.
21160         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
21161         Use explicit SWI48 mode interator.
21163 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
21165         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21166         Short-cut unaligned load and store cases.  Handle all integer
21167         vector modes.
21168         (ix86_expand_vector_move_misalign): Short-cut unaligned load
21169         and store cases.  Call ix86_avx256_split_vector_move_misalign
21170         directly without checking mode class.
21172 2016-04-20  Andrew Pinski  <apinski@cavium.com>
21173             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21175         PR target/64971
21176         * config/aarch64/aarch64.md (sibcall): Force call
21177         address to be DImode for ILP32.
21178         (sibcall_value): Likewise.
21180 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
21182         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
21184 2016-04-20  Richard Biener  <rguenther@suse.de>
21186         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
21187         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
21188         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
21189         (maybe_push_res_to_seq): Adjust.
21190         * gimple-fold.c (maybe_build_generic_op): Likewise.
21192 2016-04-20  Marek Polacek  <polacek@redhat.com>
21194         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
21195         rather than true.
21197 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
21199         * config/i386/sse.md (vec_unpacks_lo_hi): Always
21200         use kmovw to support AVX512F target.
21202 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
21204         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
21206 2016-04-20  Marek Polacek  <polacek@redhat.com>
21208         PR tree-optimization/70725
21209         * tree-if-conv.c (is_false_predicate): New function.
21210         (predicate_mem_writes): Use it.
21212 2016-04-20  Richard Biener  <rguenther@suse.de>
21214         PR tree-optimization/70726
21215         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
21216         shift amounts from a pattern stmt operand.
21218 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21220         PR target/70674
21221         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
21222         stack_restore_from_fpr pattern when restoring r15.
21223         (s390_optimize_prologue): Strip away the memory barrier in the
21224         parallel when trying to get rid of restore insns.
21225         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
21226         definition for loading the stack pointer from an FPR.  Compared to
21227         the normal move insn this pattern includes a full memory barrier.
21229 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
21231         PR middle-end/70680
21232         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
21233         implicitly linear or lastprivate iterator on the outer context.
21235 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
21237         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
21238         alignment check.
21239         * config/i386/i386.md (ssememalign): Removed.
21240         * config/i386/sse.md: Remove ssememalign attribute from patterns.
21242 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
21244         PR target/69201
21245         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
21246         const short * to __builtin_ia32_loaddquhi512_mask.
21247         (_mm512_maskz_loadu_epi16): Likewise.
21248         (_mm512_mask_storeu_epi16): Pass short * to
21249         __builtin_ia32_storedquhi512_mask.
21250         (_mm512_mask_loadu_epi8): Pass const char * to
21251         __builtin_ia32_loaddquqi512_mask.
21252         (_mm512_maskz_loadu_epi8): Likewise.
21253         (_mm512_mask_storeu_epi8): Pass char * to
21254         __builtin_ia32_storedquqi512_mask.
21255         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
21256         const double * to __builtin_ia32_loadupd512_mask.
21257         (_mm512_mask_loadu_pd): Likewise.
21258         (_mm512_maskz_loadu_pd): Likewise.
21259         (_mm512_storeu_pd): Pass double * to
21260         __builtin_ia32_storeupd512_mask.
21261         (_mm512_mask_storeu_pd): Likewise.
21262         (_mm512_loadu_ps): Pass const float * to
21263         __builtin_ia32_loadups512_mask.
21264         (_mm512_mask_loadu_ps): Likewise.
21265         (_mm512_maskz_loadu_ps): Likewise.
21266         (_mm512_storeu_ps): Pass float * to
21267         __builtin_ia32_storeups512_mask.
21268         (_mm512_mask_storeu_ps): Likewise.
21269         (_mm512_mask_loadu_epi64): Pass const long long * to
21270         __builtin_ia32_loaddqudi512_mask.
21271         (_mm512_maskz_loadu_epi64): Likewise.
21272         (_mm512_mask_storeu_epi64): Pass long long *
21273         to __builtin_ia32_storedqudi512_mask.
21274         (_mm512_loadu_si512): Pass const int * to
21275         __builtin_ia32_loaddqusi512_mask.
21276         (_mm512_mask_loadu_epi32): Likewise.
21277         (_mm512_maskz_loadu_epi32): Likewise.
21278         (_mm512_storeu_si512): Pass int * to
21279         __builtin_ia32_storedqusi512_mask.
21280         (_mm512_mask_storeu_epi32): Likewise.
21281         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
21282         char * to __builtin_ia32_storedquqi256_mask.
21283         (_mm_mask_storeu_epi8): Likewise.
21284         (_mm256_mask_loadu_epi16): Pass const short * to
21285         __builtin_ia32_loaddquhi256_mask.
21286         (_mm256_maskz_loadu_epi16): Likewise.
21287         (_mm_mask_loadu_epi16): Pass const short * to
21288         __builtin_ia32_loaddquhi128_mask.
21289         (_mm_maskz_loadu_epi16): Likewise.
21290         (_mm256_mask_loadu_epi8): Pass const char * to
21291         __builtin_ia32_loaddquqi256_mask.
21292         (_mm256_maskz_loadu_epi8): Likewise.
21293         (_mm_mask_loadu_epi8): Pass const char * to
21294         __builtin_ia32_loaddquqi128_mask.
21295         (_mm_maskz_loadu_epi8): Likewise.
21296         (_mm256_mask_storeu_epi16): Pass short * to.
21297         __builtin_ia32_storedquhi256_mask.
21298         (_mm_mask_storeu_epi16): Pass short * to.
21299         __builtin_ia32_storedquhi128_mask.
21300         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
21301         const double * to __builtin_ia32_loadupd256_mask.
21302         (_mm256_maskz_loadu_pd): Likewise.
21303         (_mm_mask_loadu_pd): Pass onst double * to
21304         __builtin_ia32_loadupd128_mask.
21305         (_mm_maskz_loadu_pd): Likewise.
21306         (_mm256_mask_storeu_pd): Pass double * to
21307         __builtin_ia32_storeupd256_mask.
21308         (_mm_mask_storeu_pd): Pass double * to
21309         __builtin_ia32_storeupd128_mask.
21310         (_mm256_mask_loadu_ps): Pass const float * to
21311         __builtin_ia32_loadups256_mask.
21312         (_mm256_maskz_loadu_ps): Likewise.
21313         (_mm_mask_loadu_ps): Pass const float * to
21314         __builtin_ia32_loadups128_mask.
21315         (_mm_maskz_loadu_ps): Likewise.
21316         (_mm256_mask_storeu_ps): Pass float * to
21317         __builtin_ia32_storeups256_mask.
21318         (_mm_mask_storeu_ps): ass float * to
21319         __builtin_ia32_storeups128_mask.
21320         (_mm256_mask_loadu_epi64): Pass const long long * to
21321         __builtin_ia32_loaddqudi256_mask.
21322         (_mm256_maskz_loadu_epi64): Likewise.
21323         (_mm_mask_loadu_epi64): Pass const long long * to
21324         __builtin_ia32_loaddqudi128_mask.
21325         (_mm_maskz_loadu_epi64): Likewise.
21326         (_mm256_mask_storeu_epi64): Pass long long * to
21327         __builtin_ia32_storedqudi256_mask.
21328         (_mm_mask_storeu_epi64): Pass long long * to
21329         __builtin_ia32_storedqudi128_mask.
21330         (_mm256_mask_loadu_epi32): Pass const int * to
21331         __builtin_ia32_loaddqusi256_mask.
21332         (_mm256_maskz_loadu_epi32): Likewise.
21333         (_mm_mask_loadu_epi32): Pass const int * to
21334         __builtin_ia32_loaddqusi128_mask.
21335         (_mm_maskz_loadu_epi32): Likewise.
21336         (_mm256_mask_storeu_epi32): Pass int * to
21337         __builtin_ia32_storedqusi256_mask.
21338         (_mm_mask_storeu_epi32): Pass int * to
21339         __builtin_ia32_storedqusi128_mask.
21340         * config/i386/i386-builtin-types.def (PCSHORT): New.
21341         (PINT64): Likewise.
21342         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
21343         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
21344         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
21345         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
21346         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
21347         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
21348         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
21349         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
21350         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
21351         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
21352         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
21353         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
21354         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
21355         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
21356         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
21357         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
21358         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
21359         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
21360         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
21361         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
21362         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
21363         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
21364         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
21365         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
21366         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
21367         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
21368         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
21369         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
21370         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
21371         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
21372         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
21373         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
21374         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
21375         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
21376         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
21377         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
21378         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
21379         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
21380         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
21381         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
21382         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
21383         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
21384         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
21385         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
21386         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
21387         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
21388         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
21389         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
21390         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
21391         use UNSPEC_STOREU.
21392         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
21393         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
21394         load nor store.
21395         (ix86_expand_vector_move_misalign): Likewise.
21396         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
21397         to scalar function prototype for unaligned load/store builtins.
21398         (ix86_expand_special_args_builtin): Updated.
21399         * config/i386/sse.md (UNSPEC_LOADU): Removed.
21400         (UNSPEC_STOREU): Likewise.
21401         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
21402         (VI_ULOADSTORE_F_AVX512VL): Likewise.
21403         (ssescalarsize): Handle V4TI, V2TI and V1TI.
21404         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21405         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
21406         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
21407         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
21408         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
21409         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
21410         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
21411         (<avx512>_storedqu<mode>_mask): Likewise.
21412         (*sse4_2_pcmpestr_unaligned): Likewise.
21413         (*sse4_2_pcmpistr_unaligned): Likewise.
21414         (*mov<mode>_internal): Renamed to ...
21415         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
21416         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
21417         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
21418         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
21420 2016-04-19  Richard Biener  <rguenther@suse.de>
21422         PR tree-optimization/70171
21423         * tree-ssa-phiprop.c: Include stor-layout.h.
21424         (phiprop_insert_phi): Handle the aggregate copy case.
21425         (propagate_with_phi): Likewise.
21427 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
21429         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
21430         instead of simplify_gen_subreg (... , 0).
21431         (ix86_delegitimize_address): Ditto.
21432         (ix86_split_divmod): Ditto.
21433         (ix86_split_copysign_const): Ditto.
21434         (ix86_split_copysign_var): Ditto.
21435         (ix86_expand_args_builtin): Ditto.
21436         (ix86_expand_round_builtin): Ditto.
21437         (ix86_expand_special_args_builtin): Ditto.
21438         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
21439         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
21440         (udivmodqi4): Ditto.
21441         (absneg splitters): Ditto.
21442         (*jcc_bt<mode>_1): Ditto.
21444 2016-04-19  Richard Biener  <rguenther@suse.de>
21446         PR tree-optimization/70724
21447         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
21448         restoring out from ...
21449         (free_scc_vn): ... here.
21450         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
21451         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
21452         tail merging.
21453         (pass_fre::execute): Restore SSA info.
21455 2016-04-19  Richard Biener  <rguenther@suse.de>
21457         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
21458         * gimple-walk.c (walk_gimple_op): Initialize it.
21459         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
21460         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
21461         remapping SSA names of defs.
21462         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
21463         adjustment.
21465 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
21467         PR middle-end/70689
21468         * lra-constraints.c (equiv_substition_p): New.
21469         (process_alt_operands): Use it.
21470         (swap_operands): Swap it.
21471         (curr_insn_transform): Update it.
21473 2016-04-18  Michael Matz  <matz@suse.de>
21475         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
21476         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
21477         * tree-core.h (tree_type_common.align): Use bit-field.
21478         (tree_type_common.spare): New.
21479         (tree_decl_common.off_align): Make smaller.
21480         (tree_decl_common.align): Use bit-field.
21482         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
21483         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
21484         (scan_sharing_clauses): Ditto.
21485         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21486         (omp_finish_file): Ditto.
21487         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
21488         (layout_decl): Ditto.
21489         (relayout_decl): Ditto.
21490         (finalize_record_size): Use SET_TYPE_ALIGN.
21491         (finalize_type_size): Ditto.
21492         (finish_builtin_struct): Ditto.
21493         (layout_type): Ditto.
21494         (initialize_sizetypes): Ditto.
21495         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
21496         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
21497         (lookup_field_for_decl): Use SET_DECL_ALIGN.
21498         (get_chain_field): Ditto.
21499         (get_trampoline_type): Ditto.
21500         (get_nl_goto_field): Ditto.
21501         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
21502         SET_DECL_ALIGN.
21503         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
21504         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
21505         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
21506         (build_qualified_type): Use SET_TYPE_ALIGN.
21507         (build_aligned_type, build_range_type_1): Ditto.
21508         (build_atomic_base): Ditto.
21509         (build_common_tree_nodes): Ditto.
21510         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
21511         (expand_one_stack_var_at): Ditto.
21512         * coverage.c (build_var): Use SET_DECL_ALIGN.
21513         * except.c (init_eh): Ditto.
21514         * function.c (assign_parm_setup_block): Ditto.
21515         * symtab.c (increase_alignment_1): Ditto.
21516         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
21517         * tree-vect-stmts.c (ensure_base_align): Ditto.
21518         * varasm.c (align_variable): Ditto.
21519         (assemble_variable): Ditto.
21520         (build_constant_desc): Ditto.
21521         (output_constant_def_contents): Ditto.
21523         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
21524         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
21525         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
21526         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
21527         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
21529 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
21531         PR target/70708
21532         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
21533         replace %vmovsd with "%vmovq".
21534         (vec_concatv2df): Likewise.
21536 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
21538         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
21539         (*vec_extractv2si_0): Ditto.
21540         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
21541         (zero_extended_scalar_load_operand splitters): Ditto.
21542         (vec_extract splitters): Ditto.
21543         (*vec_extractv4si_0_zext): Ditto.
21544         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
21545         and lowpart_subreg.
21546         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
21547         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
21548         (*sse4_1_extractps): Use lowpart_subreg.
21549         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
21551 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21553         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
21554         gld requirements.
21555         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
21556         Mention Solaris 11 packaging changes.
21557         Update gas and gld requirements.
21558         Remove reference to pre-Solaris 10 bug.
21559         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
21560         systems and bugs.
21561         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
21562         with cc.
21564 2016-04-17  Jan Hubicka  <jh@suse.cz>
21566         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
21567         max_loop_iterations_int.
21569 2016-04-18  Richard Biener  <rguenther@suse.de>
21571         PR tree-optimization/43434
21572         * tree-ssa-structalias.c (struct vls_data): New.
21573         (visit_loadstore): Handle all pointer-based accesses.
21574         (compute_dependence_clique): Compute a bitmap of restrict tags
21575         assigned bases and pass it to visit_loadstore.
21577 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
21579         PR target/70711
21580         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
21581         armv8.1-a and armv8.1-a+crc.
21583 2016-04-18  Richard Biener  <rguenther@suse.de>
21585         PR tree-optimization/70701
21586         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
21587         references after translating through a memcpy.
21589 2016-04-18  Richard Biener  <rguenther@suse.de>
21591         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
21592         (compute_antic): ... here.  For partial antic use regular
21593         postorder and scrap iteration.
21594         (compute_partial_antic_aux): Remove unused return value.
21595         (init_pre): Do not allocate postorder.
21596         (fini_pre): Do not free postorder.
21598 2016-04-18  Richard Biener  <rguenther@suse.de>
21600         PR middle-end/37870
21601         * expmed.c (extract_bit_field_1): Remove broken case
21602         using a wider MODE_INT mode.
21604 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
21606         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
21607         unless compiling with at least GCC-4.8.
21609 2016-04-17  Jan Hubicka  <jh@suse.cz>
21611         PR bootstrap/70706
21612         * graphite.c (graphite_finalize): Update call to
21613         tree_estimate_probability.
21614         * predict.h (tree_estimate_probability): Update prototype.
21616 2016-04-17  Jan Hubicka  <jh@suse.cz>
21618         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
21619         (tree_estimate_probability): Likewise.
21620         (pass_profile::execute): Update.
21621         (report_predictor_hitrates): New function.
21622         * profile.c (compute_branch_probabilities): Use it.
21623         * predict.h (report_predictor_hitrates): Declare.
21625 2016-04-17  Jan Hubicka  <jh@suse.cz>
21627         PR ipa/70018
21628         * cgraph.h (cgraph_node::set_const_flag,
21629         cgraph_node::set_pure_flag): Update prototype to return bool;
21630         update comment.
21631         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
21632         of interposable symbol are interposable, too.
21633         (cgraph_set_const_flag_1): Rename to ...
21634         (set_const_flag_1): ... this one; change to self recursive function
21635         instead of call_for_symbol_thunks_and_aliases. Handle correctly
21636         clearnig the flag in all variants and also virtual thunks of const
21637         functions are pure; track if any change was done.
21638         (cgraph_node::set_const_flag): Update.
21639         (struct set_pure_flag_info): New struct.
21640         (cgraph_set_pure_flag_1): Rename to ...
21641         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
21642         rather than pointer encoded flags; track if any changes was done;
21643         handle correctly clearning flag and setting flag of aliases already
21644         declared const.
21645         (cgraph_node::set_pure_flag): Update.
21646         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
21648 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21650         PR other/70433
21651         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
21652         backslash in label.
21654 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21656         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
21657         '{}<> ' as escape-for-record.
21659 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21661         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
21662         structure.
21664 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21666         PR other/70185
21667         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
21668         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
21669         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
21670         * passes.c (finish_optimization_passes): Only call
21671         finish_graph_dump_file if dfi->graph_dump_initialized.
21672         (execute_function_dump, pass_init_dump_file): Use
21673         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
21675 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21677         PR tree-optimization/70256
21678         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
21679         (debug_varmap): New function.
21681 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21683         PR other/70183
21684         * passes.c (pass_manager::register_pass): Propagate pflags.
21686 2016-04-17  Tom de Vries  <tom@codesourcery.com>
21688         PR other/68875
21689         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
21690         * passes.c (pass_manager::pass_manager): Declare and init p_start in
21691         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
21692         check if it's equal to p_start.
21693         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
21695 2016-04-15  Jan Hubicka  <jh@suse.cz>
21697         PR ipa/70018
21698         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
21699         function does not bind to current def.
21700         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
21701         handle conservatively calls to functions that does not need to bind
21702         to current def.
21703         (check_call): Update call of worse_state.
21704         (ignore_edge_for_nothrow): Update.
21705         (ignore_edge_for_pure_const): Likewise.
21706         (propagate_pure_const): Update calls to worse_state.
21707         (skip_function_for_local_pure_const): Reformat comments.
21709 2016-04-15  Jan Hubicka  <jh@suse.cz>
21711         PR ipa/70018
21712         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
21713         (cgraph_node::function_symbol): Likewise.
21714         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21715         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
21716         (symtab_node::ultimate_alias_target): Add REF parameter.
21717         (symtab_node::binds_to_current_def_p): Declare.
21718         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
21719         (cgraph_node::function_symbol): Likewise.
21720         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
21721         (cgraph_node::get_availability): Likewise.
21722         (cgraph_edge::binds_to_current_def_p): New inline function.
21723         (varpool_node::get_availability): Add REF parameter.
21724         (varpool_node::ultimate_alias_target): Likewise.
21725         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
21726         (symtab_node::binds_to_current_def_p): Likewise.
21727         * varpool.c (varpool_node::get_availability): Likewise.
21729 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
21731         PR target/70662
21732         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
21733         Fix mode size check.
21735 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
21737         * BASE-VER: Set to 7.0.0.
21739 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
21741         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
21743 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21745         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
21746         architecture revisions.
21748 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
21750         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
21751         * config/i386/i386.c (ix86_using_red_zone): No longer static.
21752         * config/i386/i386.md (stack decrement to push peepholes): Guard
21753         with !x86_using_red_zone ().
21755 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
21757         PR c++/70675
21758         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
21759         to dump_generic_node.
21760         (NIY): Pass also flags to do_niy.
21762 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
21764         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
21765         (simd_clone_vector_of_formal_parm_types)
21766         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
21767         (simd_clone_mangle, simd_clone_create)
21768         (simd_clone_adjust_return_type, create_tmp_simd_array)
21769         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
21770         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
21771         (ipa_simd_modify_function_body, simd_clone_linear_addend)
21772         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
21773         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
21774         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
21775         * omp-simd-clone.c: ... this new file.
21776         (simd_clone_vector_of_formal_parm_types): Make it static.
21777         * Makefile.in (OBJS): Add omp-simd-clone.o.
21779 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
21781         PR target/70662
21782         * config/i386/sse.md: Use proper memory operand modifiers.
21785 2016-04-15  Richard Biener  <rguenther@suse.de>
21786         Alan Modra  <amodra@gmail.com>
21788         PR tree-optimization/70130
21789         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
21790         when alignment stays not the same and no not use the realign
21791         scheme then.
21793 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21795         PR target/70669
21796         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21797         direct move handlers for KFmode. Change TFmode handlers test from
21798         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
21800 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
21802         PR c++/70594
21803         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
21804         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
21805         (inlined_polymorphic_ctor_dtor_block_p): Use it.
21806         * tree-ssa-live.c (remove_unused_scope_block_p): When
21807         in_ctor_dtor_block, avoid discarding not just BLOCKs with
21808         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
21809         block_ultimate_origin is FUNCTION_DECL.
21810         (remove_unused_locals): If current_function_decl is
21811         polymorphic_ctor_dtor_p, pass initial true to
21812         remove_unused_scope_block_p' is_ctor_dtor_block.
21814 2016-04-14  Martin Sebor  <msebor@redhat.com>
21816         PR c++/69517
21817         PR c++/70019
21818         PR c++/70588
21819         * doc/extend.texi (Variable Length): Revert.
21821 2016-04-14  Marek Polacek  <polacek@redhat.com>
21822             Jan Hubicka  <hubicka@ucw.cz>
21824         PR c++/70029
21825         * tree.c (verify_type): Disable the canonical type of main variant
21826         check.
21828 2016-04-14  Jason Merrill  <jason@redhat.com>
21830         * cfgexpand.c, expr.c: Revert previous change.
21832 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
21834         PR middle-end/70643
21835         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
21836         when building a mem ref for the incoming reduction variable.
21838 2016-04-14  Richard Biener  <rguenther@suse.de>
21840         PR tree-optimization/70614
21841         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
21842         loop if the evolution dropped to chrec_dont_know.
21843         (interpret_condition_phi): Likewise.
21845 2016-04-14  Richard Biener  <rguenther@suse.de>
21847         PR tree-optimization/70623
21848         * tree-ssa-pre.c (changed_blocks): Make global ...
21849         (compute_antic): ... local here.  Move and fix worklist
21850         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
21851         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
21852         worklist handling, dump when ANTIC_IN changed.
21853         (compute_partial_antic_aux): Remove worklist handling.
21854         (init_pre): Do not compute post dominators.  Add a comment about
21855         the CFG order chosen.
21856         (fini_pre): Do not free post dominators.
21858 2016-04-13  Martin Sebor  <msebor@redhat.com>
21860         PR c++/69517
21861         PR c++/70019
21862         PR c++/70588
21863         * doc/extend.texi (Variable Length): Document C++ specifics.
21865 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
21867         PR c++/70641
21868         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
21869         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
21870         eh edges have been purged.
21872         PR c++/70594
21873         * tree-sra.c (create_access_replacement,
21874         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
21875         gets fancy name.
21876         * tree-pretty-print.c (dump_fancy_name): New function.
21877         (dump_decl_name, dump_generic_node): Use it.
21879 2016-04-13  Jason Merrill  <jason@redhat.com>
21881         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
21882         * expr.c (expand_expr_real_1): Likewise.
21884 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21886         * config/i386/i386.md (kunpckhi): Swap operands.
21887         (kunpcksi): Likewise.
21888         (kunpckdi): Likewise.
21889         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
21890         (vec_pack_trunc_<mode>): Likewise.
21892 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
21894         PR debug/70628
21895         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
21897         PR middle-end/70633
21898         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
21899         gimplification turns some element into non-constant.
21901         PR debug/70628
21902         * rtl.h (convert_memory_address_addr_space_1): New prototype.
21903         * explow.c (convert_memory_address_addr_space_1): No longer static,
21904         add NO_EMIT argument and don't call convert_modes if true, pass
21905         it down recursively, remove break after return.
21906         (convert_memory_address_addr_space): Adjust caller.
21907         * simplify-rtx.c (simplify_unary_operation_1): Call
21908         convert_memory_address_addr_space_1 instead of convert_memory_address,
21909         if it returns NULL, don't simplify.
21911 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21913         PR target/70630
21914         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
21916 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21918         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21919         Bump the upper SIMDLEN limits, so that if the return type or
21920         characteristic type if the return type is void can be passed in
21921         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
21922         allowed.
21924 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21926         PR target/70640
21927         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
21928         Do not use "=" constraint on an input constraint.
21929         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
21930         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
21931         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
21932         generates (neg (abs ...)) instead of (abs ...).
21934 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21936         PR rtl-optimization/70596
21937         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
21938         just invalidate LRA data and reset them.  Adjust dump wording.
21940 2016-04-12  Martin Liska  <mliska@suse.cz>
21942         Revert
21943         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
21945         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21946         estimates here.
21947         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21948         max_loop_iterations_int.
21949         (tree_unswitch_outer_loop): Likewise.
21950         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21951         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21953 2016-04-12  Tom de Vries  <tom@codesourcery.com>
21955         PR tree-optimization/68756
21956         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
21957         instead of new_name.
21959 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21961         PR tree-optimization/70602
21962         * tree-sra.c (generate_subtree_copies): Don't write anything into
21963         constant pool decls.
21965         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
21966         regardless whether there are depend clauses or not.
21968 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21970         PR target/70381
21971         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
21972         target attribute and pragma from changing the -mfloat128
21973         and -mfloat128-hardware options.
21975         * doc/extend.texi (Additional Floating Types): Document PowerPC
21976         __float128 restrictions.
21978 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
21980         PR target/70133
21981         * config/aarch64/driver-aarch64.c
21982         (aarch64_get_extension_string_for_isa_flags): New.
21983         (arch_extension): Rename to...
21984         (aarch64_arch_extension): ...This.
21985         (ext_to_feat_string): Rename to...
21986         (aarch64_extensions): ...This.
21987         (aarch64_core_data): Keep track of architecture extension flags.
21988         (cpu_data): Rename to...
21989         (aarch64_cpu_data): ...This.
21990         (aarch64_arch_driver_info): Keep track of architecture extension
21991         flags.
21992         (get_arch_name_from_id): Rename to...
21993         (get_arch_from_id): ...This, change return type.
21994         (host_detect_local_cpu): Update and reformat for renames, handle
21995         extensions through common infrastructure.
21997 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
21999         PR target/70133
22000         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
22001         track of a canonical flag name.
22002         (all_extensions): Likewise.
22003         (arch_to_arch_name): Also track extension flags enabled by the arch.
22004         (all_architectures): Likewise.
22005         (aarch64_parse_extension): Move to here.
22006         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
22007         rework.
22008         (aarch64_rewrite_selected_cpu): Update for above change.
22009         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
22010         are handled, such that the single explicit value enabled by an
22011         extension is kept seperate from the implicit values it also enables.
22012         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
22013         to here.
22014         (aarch64_parse_extension): New.
22015         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
22016         here to config/aarch64/aarch64-protos.h.
22017         (aarch64_parse_extension): Move from here to
22018         common/config/aarch64/aarch64-common.c.
22019         (aarch64_option_print): Update.
22020         (aarch64_declare_function_name): Likewise.
22021         (aarch64_start_file): Likewise.
22022         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
22023         the canonical flag for extensions.
22024         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
22025         flags.
22027 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
22029         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
22030         AARCH64_FL_CRC.
22032 2016-04-09  Tom de Vries  <tom@codesourcery.com>
22034         PR tree-optimization/68953
22035         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
22036         first to last subscript.
22038 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
22040         PR tree-optimization/70586
22041         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
22042         for any calls.
22044 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
22046         PR lto/70289
22047         PR ipa/70348
22048         PR tree-optimization/70373
22049         PR middle-end/70533
22050         PR middle-end/70534
22051         PR middle-end/70535
22052         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
22053         clauses for acc parallel reductions as necessary.  Error on those
22054         that are private.
22055         * omp-low.c (scan_sharing_clauses): Don't install variables which
22056         are used in acc parallel reductions.
22057         (lower_rec_input_clauses): Remove dead code.
22058         (lower_oacc_reductions): Add support for reference reductions.
22059         (lower_reduction_clauses): Remove dead code.
22060         (lower_omp_target): Don't remap variables appearing in acc parallel
22061         reductions.
22062         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
22064 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
22066         PR middle-end/70593
22067         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
22068         with multiple SSA_NAME defs, force the outputs other than first
22069         to be live before calling live_track_process_def on each output.
22071         PR rtl-optimization/70574
22072         * fwprop.c (forward_propagate_and_simplify): Don't add
22073         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
22074         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
22075         paradoxical subregs within *loc.
22077 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
22079         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
22080         -ftree-parallelize-loops={0,1}.
22081         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
22082         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
22083         * config/ia64/hpux.h (LIB_SPEC): Likewise.
22084         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22085         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
22087 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
22089         PR sanitizer/70541
22090         * asan.c (instrument_derefs): If we get unknown location, extract it
22091         with EXPR_LOCATION.
22092         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
22094 2016-04-08  Tom de Vries  <tom@codesourcery.com>
22096         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
22097         implicit firstprivate clause.
22099 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22101         PR target/70566
22102         * config/arm/thumb2.md (tst + branch-> lsls + branch
22103         peephole below *orsi_not_shiftsi_si): Require that condition
22104         register is dead after the peephole.
22105         (second peephole after the above): Likewise.
22107 2016-04-08  Alan Modra  <amodra@gmail.com>
22109         PR target/70117
22110         * builtins.c (fold_builtin_classify): For IBM extended precision,
22111         look at just the high-order double to test for NaN.
22112         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
22113         test just the high double for Inf but both doubles for subnormal
22114         limit.
22116 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
22118         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
22119         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
22120         node->simdclone->mask_mode != VOIDmode masks.
22121         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
22122         earlier, use it instead of node->simdclone.
22123         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22124         Set clonei->mask_mode.
22126 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
22128         PR c/70436
22129         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
22130         Pass it through to cp_parser_already_scoped_statement.
22131         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
22132         it through to cp_parser_statement.
22133         (cp_parser_statement): Pass IF_P through to
22134         cp_parser_iteration_statement.
22135         (cp_parser_pragma): Adjust call to
22136         cp_parser_iteration_statement.
22138 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
22140         PR c/70436
22141         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
22142         resolve a future -Wparentheses warning.
22143         * omp-low.c (scan_sharing_clauses): Likewise.
22144         * tree-parloops.c (eliminate_local_variables): Likewise.
22146 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
22148         PR rtl-optimization/70398
22149         * lra-constraints.c (process_address_1): Check zero scale and code
22150         for reloading with zero scale.
22152 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
22154         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
22155         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
22157 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
22159         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22160         Add support for AVX512F clones, include them by default for
22161         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
22162         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
22163         up to 128.
22165         PR middle-end/70550
22166         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
22167         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
22168         firstprivate clauses.
22169         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
22170         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
22171         (lower_omp_target): Set TREE_NO_WARNING for
22172         non-addressable possibly uninitialized vars which are copied into
22173         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
22175 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
22177         * config/pa/predicates.md (integer_store_memory_operand): Accept
22178         REG+D operands with a large offset when reload_in_progress is true.
22179         (floating_point_store_memory_operand): Likewise.
22181 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
22183         PR c++/70336
22184         * match.pd (nested int casts): Limit to GIMPLE.
22186 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
22188         PR ipa/66223
22189         * ipa-devirt.c (maybe_record_node): Fix comment; use
22190         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
22192 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
22194         PR rtl-optimization/70542
22195         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
22196         if there are any uses other than insn or debug insns.
22198 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
22199             Jakub Jelinek  <jakub@redhat.com>
22201         PR tree-optimization/70509
22202         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
22203         Shift HOST_WIDE_INT_1U instead of 1.
22205 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
22207         PR tree-optimization/70509
22208         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
22209         of the vector base type for index.
22211 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
22213         PR target/70510
22214         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
22216 2016-04-05  Richard Biener  <rguenther@suse.de>
22218         PR tree-optimization/70526
22219         * tree-sra.c (build_ref_for_offset): Use prev_base to
22220         extract the alias pointer type.
22222 2016-04-05  Richard Biener  <rguenther@suse.de>
22224         * dse.c (struct store_info): Remove alias_set member.
22225         (struct read_info_type): Likewise.
22226         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
22227         spill_deleted, clear_alias_set_lookup): Remove.
22228         (get_group_info): Remove dead base == NULL_RTX case.
22229         (dse_step0): Remove initialization of removed variables.
22230         (delete_dead_store_insn): Reomve alias set dumping.
22231         (free_read_records): Remove alias_set handling.
22232         (canon_address): Remove alias_set_out parameter.
22233         (record_store): Remove spill_alias_set, it's always zero.
22234         (check_mem_read_rtx): Likewise.
22235         (dse_step2): Rename from ...
22236         (dse_step2_nospill): ... this.  Adjust.
22237         (scan_stores): Rename from ...
22238         (scan_stores_nospill): ... this.
22239         (scan_reads): Rename from ...
22240         (scan_reads_nospill): ... this.
22241         (scan_stores_spill, scan_reads_spill): Remove.
22242         (dse_step3_scan): Remove for_spills argument which is always false.
22243         (dse_step3): Likewise.
22244         (dse_step5): Rename from ...
22245         (dse_step5_nospill): ... this.  Remove alias_set handling.
22246         (rest_of_handle_dse): Adjust.
22248 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
22250         PR target/70525
22251         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
22252         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
22253         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
22254         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
22256 2016-04-05  Richard Biener  <rguenther@suse.de>
22258         PR middle-end/70499
22259         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
22260         non-register type temporaries into SSA.
22262 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
22264         PR ipa/66223
22265         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
22266         calls when sanitizing.
22267         (possible_polymorphic_call_target_p): Fix formatting.
22269 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22270             Jakub Jelinek  <jakub@redhat.com>
22272         PR middle-end/70457
22273         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
22274         to ensure a call statement is compatible with a built-in's
22275         prototype.
22276         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
22277         Likewise.
22279 2016-04-04  Richard Biener  <rguenther@suse.de>
22281         PR rtl-optimization/70484
22282         * rtl.h (canon_output_dependence): Declare.
22283         * alias.c (canon_output_dependence): New function.
22284         * dse.c (record_store): Use canon_output_dependence rather
22285         than canon_true_dependence.
22287 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
22289         PR ipa/68881
22290         * cgraph.h (symtab_node::copy_visibility_from): New function.
22291         * symtab.c (symtab_node::copy_visibility_from): New function.
22292         * ipa-visibility.c (optimize_weakref): New function.
22293         (function_and_variable_visibility): Use it.
22295 2016-04-04  Martin Liska  <mliska@suse.cz>
22297         PR hsa/70402
22298         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
22299         value that is really in range handled by SBR instruction.
22300         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
22301         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
22302         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
22304 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
22306         PR target/70416
22307         PR target/67391
22308         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
22309         set, but not for SP_REG operands.
22311 2016-04-02  Martin Sebor  <msebor@redhat.com>
22313         PR c++/67376
22314         * fold-const.c (maybe_nonzero_address): New function.
22315         (fold_comparison): Call it.  Fold equality and relational
22316         expressions involving null pointers.
22317         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
22319 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
22321         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
22322         the "Y" constraint (scalar FP 0.0 immediate).
22324         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
22325         Add the "const_double" to the list of operand constraints.
22327 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
22329         PR rtl-optimization/70467
22330         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
22331         If low word of the last operand is 0, just emit addition/subtraction
22332         for the high word.
22334 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22336         PR target/70404
22337         * config/s390/s390.c (s390_expand_insv): Check for everything
22338         constant instead of just VOIDmode stuff.
22340 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22342         PR target/70496
22343         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
22345 2016-04-01  Nathan Sidwell  <nathan@acm.org>
22347         * tree.def (TRY_CATCH_EXPR): Correct documentation.
22349 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
22351         PR rtl-optimization/70461
22352         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
22353         is necessary.
22355 2016-03-31  Martin Liska  <mliska@suse.cz>
22357         PR hsa/70399
22358         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
22359         a tree value or an immediate integer value to a buffer
22360         that is eventually copied to a BRIG section.
22361         (emit_immediate_operand): Call the function here.
22362         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
22363         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
22364         of class' fields that are removed.
22365         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
22366         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
22367         m_brig_repr_size fields.
22369 2016-03-31  Martin Liska  <mliska@suse.cz>
22371         PR hsa/70391
22372         * hsa-gen.c (hsa_function_representation::update_dominance): New
22373         function.
22374         (convert_addr_to_flat_segment): Likewise.
22375         (gen_hsa_memory_set): New alignment argument.
22376         (gen_hsa_ctor_assignment): Likewise.
22377         (gen_hsa_insns_for_single_assignment): Provide alignment
22378         to gen_hsa_ctor_assignment.
22379         (gen_hsa_insns_for_direct_call): Add new argument.
22380         (expand_lhs_of_string_op): New function.
22381         (expand_string_operation_builtin): Likewise.
22382         (expand_memory_copy): New function.
22383         (expand_memory_set): New function.
22384         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
22385         (convert_switch_statements): Change signature.
22386         (generate_hsa): Use a return value of the function.
22387         (pass_gen_hsail::execute): Do not call
22388         convert_switch_statements here.
22389         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
22390         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
22391         (hsa_function_representation::update_dominance): New function.
22393 2016-03-31  Martin Liska  <mliska@suse.cz>
22395         PR hsa/70391
22396         * hsa-brig.c (emit_directive_variable): Emit alignment
22397         according to hsa_symbol::m_align.
22398         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
22399         (dump_hsa_symbol): Dump alignment of HSA symbols.
22400         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
22401         (gen_hsa_addr_with_align): New function.
22402         (hsa_bitmemref_alignment): Use newly added function.
22403         (gen_hsa_insns_for_load): Likewise.
22404         (gen_hsa_insns_for_store): Likewise.
22405         (gen_hsa_memory_copy): New argument added.
22406         (gen_hsa_insns_for_single_assignment): Respect
22407         alignment for assignments processed via gen_hsa_memory_copy.
22408         (gen_hsa_insns_for_direct_call): Likewise.
22409         (gen_hsa_insns_for_return): Likewise.
22410         (gen_function_def_parameters): Set default alignment.
22411         * hsa.c (hsa_object_alignment): New function.
22412         (hsa_byte_alignment): Pasted function.
22413         * hsa.h (hsa_symbol::m_align): New field.
22415 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
22417         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
22418         scratch field for goto case.
22420 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
22422         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
22424 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
22426         PR target/70442
22427         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
22428         (scalar_chain::convert_insn): Call convert_op for reg
22429         moves to handle undefined registers.
22431 2016-03-31  Nathan Sidwell  <nathan@acm.org>
22433         PR c++/70393
22434         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
22435         Assert we don't want to move backwards.
22437 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
22439         PR target/70453
22440         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
22442 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
22444         PR rtl-optimization/70460
22445         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
22446         with operand from REG_LABEL_OPERAND, instead substitute
22447         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
22448         Don't do anything for REG_NON_LOCAL_GOTO jumps.
22450 2016-03-31  Martin Liska  <mliska@suse.cz>
22452         * passes.c (execute_one_pass): Do not call
22453         todo_after for a discarded function.
22455 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
22457         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
22458         (no_cost, infinite_cost): Initialize the new field.
22459         (get_computation_cost_at): Record setup cost.
22460         (determine_use_iv_cost_address): Skip cost computation for sub
22461         uses if we can estimate it without losing accuracy.
22463 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
22465         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
22466         estimates here.
22467         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
22468         max_loop_iterations_int.
22469         (tree_unswitch_outer_loop): Likewise.
22470         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
22471         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22473 2016-03-30  Richard Biener  <rguenther@suse.de>
22475         PR middle-end/70450
22476         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
22478 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
22480         PR target/70421
22481         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
22482         in gen_blendm expander.
22484 2016-03-30  Nick Clifton  <nickc@redhat.com>
22486         PR target/62254
22487         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
22488         case where we are already provided with an SImode SUBREG.
22490 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22492         PR target/70439
22493         * config/i386/i386.c (ix86_expand_epilogue): Properly check
22494         conflict between DRAP register and __builtin_eh_return.
22496 2016-03-30  Michael Matz  <matz@suse.de>
22497             Richard Biener  <rguenther@suse.de>
22499         PR ipa/12392
22500         * ipa-polymorphic-call.c (struct type_change_info): Change
22501         speculative to an unsigned allowing to limit the work we do.
22502         (csftc_abort_walking_p): New inline function..
22503         (check_stmt_for_type_change): Limit the number of may-defs
22504         skipped for speculative devirtualization to
22505         max-speculative-devirt-maydefs.
22506         * params.def (max-speculative-devirt-maydefs): New param.
22507         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
22509 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
22511         PR target/63890
22512         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
22513         and TARGET_MACHO.
22515 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
22517         PR tree-optimization/59124
22518         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
22519         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
22521 2016-03-29  Jeff Law  <law@redhat.com>
22523         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
22525 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22527         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
22528         to HOST_WIDE_INT.
22530 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
22532         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
22533         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
22534         gcrt0.o if linking dynamically.
22536 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22538         PR ipa/70283
22539         * ipa-devirt.c (methods_equal_p): New function.
22540         (compare_virtual_tables): Use it.
22541         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
22542         * cgraphclones.c (clone_function_name_1): Use
22543         symbol_table::symbol_suffix_separator.
22544         * coverage.c (build_var): Likewise.
22545         * symtab.c (symbol_table::symbol_suffix_separator): New.
22547 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
22549         PR rtl-optimization/70429
22550         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
22551         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
22552         mode != result_mode.
22554         PR c++/70353
22555         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
22557         PR tree-optimization/70405
22558         * ssa-iterators.h (num_imm_uses): Add missing braces.
22560 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22562         PR rtl-optimization/68695
22563         * ira-color.c (allocno_copy_cost_saving): New.
22564         (improve_allocation): Use it.
22566 2016-03-29  Richard Henderson  <rth@redhat.com>
22568         PR middle-end/70355
22569         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
22571 2016-03-29  Richard Biener  <rguenther@suse.de>
22573         PR middle-end/70424
22574         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
22575         use alignment returned by get_pointer_alignment_1 if it is
22576         bigger than BITS_PER_UNIT.
22577         * builtins.c (get_pointer_alignment_1): Do not return true
22578         for alignment extracted from SSA info.
22580 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
22582         * config/ft32/ft32.opt (mnodiv): New.
22583         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
22584         * doc/invoke.texi (FT32 Options -mnodiv): New.
22586 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22588         PR target/70406
22589         * config/i386/i386.md (define_split, andn): Fix modes.
22591 2016-03-26  Richard Biener  <rguenther@suse.de>
22592             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22594         PR ipa/70366
22595         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
22596         instead of
22597         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
22598         as 2nd argument to cl_optimization_restore().
22600 2016-03-25  Richard Henderson  <rth@redhat.com>
22602         PR target/70120
22603         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
22604         * config/aarch64/aarch64-protos.h: Declare it.
22605         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
22607 2016-03-25  Alan Modra  <amodra@gmail.com>
22609         PR target/70052
22610         * config/rs6000/constraints.md (j): Simplify.
22611         * config/rs6000/predicates.md (easy_fp_constant): Exclude
22612         decimal float 0.D.
22613         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
22614         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
22615          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
22616         in all constraint alternatives.
22617         (movtd_64bit_nodm): Delete "j" constraint alternative.
22619 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
22621         * tree-ssa-propagate.c: Enhance docs for
22622         SSA_PROP_NOT_INTERESTING.
22624 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
22626         * doc/extend.texi: Fix typo in documentation to pure attribute.
22628 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
22630         PR target/70319
22631         * config/pa/pa.md (bswapdi2): Use a scratch register.
22633 2016-03-24  Richard Henderson  <rth@redhat.com>
22635         PR middle-end/69845
22636         * fold-const.c (extract_muldiv_1): Correct test for multiplication
22637         overflow.
22639 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
22641         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
22642         using ix86_expand_binary_operator instead of gen_andsi3.
22644 2016-03-24  Richard Biener  <rguenther@suse.de>
22646         PR tree-optimization/70396
22647         * tree-vect-stmts.c (vectorizable_comparison): Use
22648         get_vectype_for_scalar_type.
22650 2016-03-24  Richard Biener  <rguenther@suse.de>
22652         PR middle-end/70370
22653         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
22654         with register bases.
22656 2016-03-24  Richard Biener  <rguenther@suse.de>
22658         PR tree-optimization/70372
22659         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
22660         build_all_ones_cst to also handle vector types correctly.
22662 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
22664         PR target/70381
22665         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
22666         -mfloat128 here.
22668 2016-03-23  Marek Polacek  <polacek@redhat.com>
22670         PR c++/69884
22671         * doc/invoke.texi: Document -Wignored-attributes.
22673 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
22675         PR tree-optimization/69042
22676         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
22677         parameter from 30 to 40.
22679 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
22681         PR tree-optimization/69042
22682         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
22683         for use with constant offset stripped in base.
22685 2016-03-23  Richard Biener  <rguenther@suse.de>
22687         PR middle-end/70251
22688         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
22689         mode compatibility check.
22690         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22692 2016-03-23  Jeff Law  <law@redhat.com>
22694         PR tree-optimization/64058
22695         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
22696         CONFLICT_COUNT.
22697         (struct ssa_conflicts): Move up earlier in the file.
22698         (conflicts_, var_map_): New static variables.
22699         (initialize_conflict_count): New function to initialize the
22700         CONFLICT_COUNT field for each conflict pair.
22701         (compare_pairs): Lazily initialize the conflict count and use it
22702         as the first tie-breaker.
22703         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
22704         and wipe conflicts_ and map_ around the call to qsort.  Remove
22705         special case for 2 coalesce pairs.
22706         * bitmap.c (bitmap_count_unique_bits): New function.
22707         (bitmap_count_bits_in_word): New function, extracted from
22708         bitmap_count_bits.
22709         (bitmap_count_bits): Use bitmap_count_bits_in_word.
22710         * bitmap.h (bitmap_count_unique_bits): Declare it.
22712 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
22714         PR target/69917
22715         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
22716         transparent alias chain for decl assembler name.
22717         * config/sol2.c (solaris_assemble_visibility): Likewise.
22719 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22721         * config/arm/arm1020e.md (1020call_op): Reduce reservation
22722         duration.
22723         (v10_fdivs): Likewise.
22724         (v10_fdivd): Likewise.
22726 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22728         PR driver/70132
22729         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
22730         to not call fclose twice on file.
22732 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
22734         PR tree-optimization/70354
22735         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22736         oprnd0 is wider than oprnd1 and there is a cast from the wider
22737         type to oprnd1, mask it with the mask of the narrower type.
22739         PR target/70321
22740         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
22741         Optimize TARGET_STV splitters, if high or low word of last argument
22742         is 0 or -1.
22744 2016-03-22  Jeff Law  <law@redhat.com>
22746         PR target/70232
22747         tree-ssa-threadbackward.c
22748         (fsm_find_control_statement_thread_paths): Correctly distinguish
22749         between old style jump threads vs FSM jump threads.
22751 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
22753         PR target/70302
22754         * config/i386/i386.c (scalar_chain::convert_op): Support
22755         uninitialized register usage case.
22757 2016-03-22  Richard Biener  <rguenther@suse.de>
22759         PR middle-end/70251
22760         * genmatch.c (gen_transform): Adjust last parameter to a three-state
22761         int...
22762         (capture::gen_transform): ... to change behavior when substituting
22763         a condition into cond or not-cond expr context.
22764         (dt_simplify::gen_1): Adjust.
22765         * gimple-match-head.c: Include gimplify.h for unshare_expr.
22766         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
22767         last change and instead change to
22768         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
22769         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22771 2016-03-22  Anthony Green  <green@moxielogic.com>
22773         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
22774         issue for moxiebox targets.
22775         (CC1PLUS_SPEC): Ditto.
22777 2016-03-22  Richard Biener  <rguenther@suse.de>
22779         PR middle-end/70333
22780         * fold-const.c (extract_muldiv_1): Properly perform multiplication
22781         in the wide type.
22783 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
22785         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
22787 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
22789         PR target/70325
22790         * config/i386/i386.c (def_builtin): Handle
22791         OPTION_MASK_ISA_AVX512VL to be and-ed with other
22792         bits.
22793         (const struct builtin_description bdesc_special_args[]):
22794         Remove duplicate ISA bits.
22796 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
22798         PR target/70329
22799         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
22800         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
22801         in a way that works also for AVX512BW.
22803         PR target/70300
22804         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
22805         instead of source if operands[1] is xmm16 and above and
22806         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
22807         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
22809         PR c++/70295
22810         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
22811         on assign if (*from_p) is a comparison, set it to
22812         TREE_NO_WARNING (*from_p).
22814 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
22816         PR middle-end/70326
22817         * lra.c (restore_scratches): Ignore deleted insns.
22819 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
22820             Jakub Jelinek  <jakub@redhat.com>
22822         PR tree-optimization/70317
22823         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
22824         to HONOR_NANS.
22826 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
22828         PR target/70327
22829         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
22830         of ix86_expand_move.
22831         (movoi): Ditto.
22832         (movti): Use general_operand for operand 1 predicate.
22834 2016-03-21  Martin Liska  <mliska@suse.cz>
22836         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
22837         insns.
22838         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
22840 2016-03-21  Martin Liska  <mliska@suse.cz>
22842         PR ipa/70306
22843         * ipa-icf.c (sem_function::parse): Skip static
22844         constructors and destructors.
22846 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
22848         PR target/70296
22849         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
22850         function-like macro, peek following token(s) if it is followed
22851         by CPP_OPEN_PAREN token with optional padding in between, and
22852         if not, don't treat it like a macro.
22854 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
22855             Alexander Monakov  <amonakov@ispras.ru>
22857         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
22858         for the stabs debug format.
22860 2016-03-21  Richard Biener  <rguenther@suse.de>
22862         PR tree-optimization/70310
22863         * tree-vect-generic.c (expand_vector_condition): Fold the built
22864         condition.
22866 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
22868         PR target/70293
22869         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
22870         Block third alternative for AVX-512VL target,
22872 2016-03-21  Martin Liska  <mliska@suse.cz>
22874         PR hsa/70234
22875         * hsa-brig.c (emit_function_directives): Mark unemitted
22876         global variables for emission.
22877         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
22878         (get_symbol_for_decl): Likewise.
22879         * hsa.h (struct hsa_symbol): New flag.
22881 2016-03-21  Richard Biener  <rguenther@suse.de>
22883         PR tree-optimization/70288
22884         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
22885         we do not estimate unsimplified all-constant conditionals or
22886         switches as optimized away.
22888 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
22890         PR rtl-optimization/69102
22891         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
22892         when we have a readonly dependency context.
22894 2016-03-18  Jeff Law  <law@redhat.com>
22896         PR rtl-optimization/70263
22897         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
22898         (update_equiv_regs): When trying to move a store to after the insn
22899         that sets the source of the store, make sure the store occurs after
22900         the insn that sets the source of the store.  When successful note
22901         the REG_EQUIV note created in the dump file.
22903 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
22904             Bernd Schmidt  <bschmidt@redhat.com>
22906         * doc/extend.texi: Document more potential problems with basic asms.
22908 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
22910         PR rtl-optimization/70278
22911         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
22912         VOIDmode.
22914 2016-03-18  Jason Merrill  <jason@redhat.com>
22916         * calls.c (load_register_parameters): Fix zero size sibcall logic.
22918 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
22920         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
22921         values to 128b regs.
22923 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22925         PR tree-optimization/70252
22926         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
22927         boolean vector has a proper number of elements.
22928         (supportable_narrowing_operation): Likewise.
22930 2016-03-18  Tom de Vries  <tom@codesourcery.com>
22932         PR ipa/70269
22933         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
22935 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
22937         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
22938         instead of replace_rtx for DEBUG_INSNs.
22940 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22942         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
22943         load type reservations.
22945 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
22947         PR target/70188
22948         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
22949         define_constraint for "Q" and "T" constraints.
22951 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
22953         Tweak the pipeline model for Exynos M1
22955         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
22956         model.
22958 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
22960         PR c/70264
22961         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
22962         where one or both locations aren't within a line_map.
22964 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22966         PR driver/70192
22967         * opts.c (finish_options): Don't set flag_pie to the default if
22968         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
22969         if it is -1.
22971 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
22973         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
22974         true as ALL_REGS argument to replace_rtx.
22976 2016-03-17  Richard Biener  <rguenther@suse.de>
22978         PR debug/70271
22979         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
22980         last.
22982 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
22984         PR target/70245
22985         * rtl.h (replace_rtx): Add ALL_REGS argument.
22986         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
22987         equality and assert mode is the same, instead of just rtx pointer
22988         equality.
22989         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
22990         true as ALL_REGS argument to replace_rtx.
22992 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
22994         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
22995         for boolean vector with vector mode only.
22996         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22998 2016-03-17  Nick Clifton  <nickc@redhat.com>
23000         PR target/70162
23001         * config/rx/rx.c (rx_print_integer): Print negative constants in
23002         decimal.
23004 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
23006         PR target/70261
23007         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
23009 2016-03-16  Richard Henderson  <rth@redhat.com>
23010             Richard Biener  <rguenth@suse.de>
23012         PR middle-end/70240
23013         PR middle-end/68215
23014         PR tree-opt/68714
23015         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
23016         first operand as is_gimple_condexpr.
23018         PR middle-end/70240
23019         PR middle-end/68215
23020         Revert r231575
23021         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
23022         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
23023         Do not gimplify the result.
23024         (do_unop): Adjust call to tree_vec_extract.
23025         (do_binop): Likewise.
23026         (do_compare): Likewise.
23027         (do_plus_minus): Likewise.
23028         (do_negate): Likewise.
23029         (expand_vector_condition): Likewise.
23030         (do_cond): Likewise.
23032 2016-03-16  Richard Henderson  <rth@redhat.com>
23034         PR target/70048
23035         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
23036         (aarch64_classify_address): Use it.
23037         (aarch64_legitimize_address): Force all subexpressions of PLUS
23038         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
23040 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
23041             Richard Biener  <rguenth@suse.de>
23043         PR target/70245
23044         * rtlanal.c (replace_rtx): For REG, if from is a REG,
23045         return to even if only REGNO is equal, and assert
23046         mode is the same.
23048 2016-03-11  Jeff Law  <law@redhat.com>
23050         PR rtl-optimization/70224
23051         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
23053 2016-03-16  Richard Henderson  <rth@redhat.com>
23055         PR middle-end/70199
23056         * function.h (struct function): Add has_forced_label_in_static.
23057         * gimplify.c (force_labels_r): Set it.
23058         * lto-streamer-in.c (input_struct_function_base): Read it.
23059         * lto-streamer-out.c (output_struct_function_base): Write it.
23060         * tree-inline.c (has_label_address_in_static_1): Remove.
23061         (copy_forbidden): Remove fndecl parameter; test
23062         has_forced_label_in_static.
23063         (inline_forbidden_p): Update call to copy_forbidden.
23064         (tree_versionable_function_p): Likewise.
23065         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
23066         (chkp_versioning): Likewise.
23067         * tree-inline.h (copy_forbidden): Update decl.
23069 2016-03-16  Marek Polacek  <polacek@redhat.com>
23071         PR c/70093
23072         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
23073         function being thunked if the result type doesn't have fixed size.
23074         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
23075         doesn't have fixed size.
23077 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
23079         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
23080         reporting malformed loop nest.
23082 2016-03-16  Tom de Vries  <tom@codesourcery.com>
23084         PR lto/70187
23085         * ipa-devirt.c (possible_polymorphic_call_targets): Move
23086         nodes.length () == 1 test to before first nodes[0] access.
23088 2016-03-16  Tom de Vries  <tom@codesourcery.com>
23090         PR tree-optimization/68715
23091         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
23092         single_pred_p test.
23094 2016-03-16  Tom de Vries  <tom@codesourcery.com>
23096         PR tree-optimization/68809
23097         * graphite-scop-detection.c (same_close_phi_node): Test if result types
23098         are the same.
23100 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
23101             Sandra Loosemore  <sandra@codesourcery.com>
23103         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
23104         on leaf attribute. Mention ELF interposition problems.
23106 2016-03-16  Alan Modra  <amodra@gmail.com>
23108         PR rtl-optimization/69195
23109         PR rtl-optimization/47992
23110         * ira.c (indirect_jump_optimize): Ignore artificial defs.
23111         Add comments.
23113 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23115         PR bootstrap/69513
23116         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
23118 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23120         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
23122 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
23124         PR rtl-optimization/70222
23125         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
23126         optimization if mode is different from result_mode, queue up masking
23127         of the result in outer_op.  Formatting fix.
23129         PR middle-end/70239
23130         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
23131         of safe_grow.
23133 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
23135         PR rtl-optimization/69032
23136         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
23137         looping backwards over basic block insns.
23139 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
23141         PR target/66660
23142         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
23143         to non-speculative when propagating trap bits.
23145 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
23147         PR rtl-optimization/63384
23148         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
23149         DEBUG_INSN_P insns.
23151 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
23153         PR target/64411
23154         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
23155         factored out from ...
23156         (sched_analyze_insn): ... here.
23157         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
23158         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
23159         get_implicit_reg_pending_clobbers in it.
23160         (setup_id_reg_sets): Use setup_id_implicit_regs.
23161         (deps_init_id): Ditto.
23163 2016-03-15  Tom de Vries  <tom@codesourcery.com>
23165         PR ipa/70161
23166         * cgraph.c (cgraph_node::get_body): Save, reset and restore
23167         dump_file_name.
23168         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
23169         execute_function_dump.
23170         (execute_one_pass): Don't dump function if it will be dumped after ipa
23171         transform.
23173 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
23175         * genrecog.c (match_pattern_2): If pred is NULL don't call
23176         safe_predicate_mode on it.
23178 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
23180         PR middle-end/70219
23181         * lra-constraints.c (delete_move_and_clobber): Change assertion
23182         to also allow dregno == 0.
23184 2016-03-14  Richard Henderson  <rth@redhat.com>
23186         PR tree-opt/68714
23187         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
23188         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
23189         (reassociate_bb): Use optimize_vec_cond_expr; avoid
23190         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
23191         on vectors.
23193 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
23195         PR target/70083
23196         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
23197         regs.
23198         (lra_create_live_ranges_1): initialize hard register biggest_mode to
23199         VOIDmode.
23200         * lra-constraints.c (split_reg): For hard regs, try to find the
23201         biggest single-register mode used in the function.
23203 2016-03-14  Richard Biener  <rguenther@suse.de>
23205         PR tree-optimization/56365
23206         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
23207         constants to compare against.
23209 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
23211         PR target/70098
23212         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
23213         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
23214         (define_split for the GPR case): Use int_reg_operand instead of
23215         gpc_reg_operand for the output.
23217 2016-03-14  Tom de Vries  <tom@codesourcery.com>
23219         PR tree-optimization/70045
23220         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
23221         create_empty_if_region_on_edge argument.
23223 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
23225         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
23226         (STACK_CHECK_PROTECT): Likewise.
23227         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23228         (STACK_CHECK_PROTECT): Likewise.
23229         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
23230         (STACK_CHECK_PROTECT): Likewise.
23231         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
23232         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
23233         (STACK_CHECK_PROTECT): Likewise.
23235 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
23237         PR rtl-optimization/69307
23238         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
23239         registers in modes that span more than one register.
23241 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
23243         PR target/69614
23244         * lra-constraints.c (delete_move_and_clobber): New.
23245         (remove_inheritance_pseudos): Use it.
23247 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
23249         PR ada/70017
23250         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
23251         the libcall is LCT_THROW.
23252         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
23253         for the checking routine.
23255 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23257         PR target/70131
23258         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
23259         optimization if we have direct move.
23260         (roundu32<mode>2_fprs): Likewise.
23262 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
23264         PR target/70123
23265         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
23266         be rematerialized.
23267         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
23268         Arguments swapped.  All callers changed.  Take reg_renumber into
23269         account, and Calculate and compare register ranges for hard regs.
23271 2016-03-11  Jeff Law  <law@redhat.com>
23273         PR tree-optimization/70190
23274         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23275         Handle cases where we can not extract the taken edge, even though we
23276         found a constant value.
23278         PR tree-optimization/64058
23279         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
23280         (num_coalesce_pairs): Move up earlier in file.
23281         (find_coalesce_pair): Initialize the INDEX field for each pair
23282         discovered.
23283         (compare_pairs): No longer sort on the elements in each pair.
23284         Instead break ties with the index of the coalesce pair.
23286 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23288         PR target/70002
23289         * config/aarch64/aarch64-protos.h
23290         (aarch64_save_restore_target_globals): New prototype.
23291         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
23292         Call the above when popping pragma.
23293         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
23294         New function.
23295         (aarch64_set_current_function): Rewrite using the above.
23297 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
23299         PR tree-optimization/70177
23300         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
23301         (extract_ops_from_tree): ... this.  In the 2 argument
23302         overload remove _1 suffix.
23303         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
23304         (extract_ops_from_tree): ... this.
23305         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
23306         Adjust callers.
23307         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
23308         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
23309         extract_ops_from_tree instead of 2 operand one.
23311 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
23313         PR tree-optimization/70013
23314         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
23315         for constant-pool entries.
23317 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
23319         PR rtl-optimization/70174
23320         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
23321         followed by gen_lowpart on force_reg instead of just gen_lowpart.
23323         PR tree-optimization/70169
23324         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
23325         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
23326         for unknown codes.
23328 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
23329             Jakub Jelinek  <jakub@redhat.com>
23331         PR target/70160
23332         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
23333         of uninitialized values.
23335 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23337         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
23338         define_expand.
23339         ("*trunctddd2"): New pattern definition.
23340         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
23341         TD->DD truncation.
23343 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23345         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
23346         definitions for BFP and DFP rounding modes.
23347         ("fixuns_truncdddi2", "fixuns_trunctddi2")
23348         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
23349         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
23350         ("fix_trunctf<mode>2"): Use the new constants instead of magic
23351         numbers.
23353 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23355         * config/s390/constraints.md: Adjust comment.
23356         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
23357         s390_decompose_addrstyle_without_index.
23358         * config/s390/predicates.md (shift_count_or_setmem_operand):
23359         Rename to setmem_operand.
23360         * config/s390/s390-protos.h
23361         (s390_decompose_shift_count): Rename to
23362         s390_decompose_addrstyle_without_index.
23363         * config/s390/s390.c (s390_decompose_shift_count)
23364         (s390_mem_constraint, print_shift_count_operand)
23365         (print_operand_address, print_operand): Rename
23366         s390_decompose_shift_count to
23367         s390_decompose_addrstyle_without_index and rename
23368         print_shift_count_operand to print_addrstyle_operand troughout the
23369         file.
23370         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
23371         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
23372         Rename shift_count_or_setmem_operand to setmem_operand.
23373         * config/s390/vx-builtins.md ("vec_insert<mode>")
23374         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
23375         nonmemory_operand.
23377 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23379         PR target/70168
23380         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23381         Handle overlapping retval and newval.
23383 2016-03-10  Nick Clifton  <nickc@redhat.com>
23385         PR target/7044
23386         * config/aarch64/aarch64.c
23387         (aarch64_override_options_after_change_1): When forcing
23388         flag_omit_frame_pointer to be true, use a special value that can
23389         be detected if this function is called again, thus preventing
23390         flag_omit_leaf_frame_pointer from being forced to be false.
23392 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23394         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
23395         Set x_flag_omit_leaf_frame_pointer when handling
23396         -momit-leaf-frame-pointer.
23398 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
23400         PR lto/69589
23401         * cgraph.c (cgraph_node::dump): Dump split_part and
23402         indirect_call_target.
23403         * cgraph.h (cgraph_node): Add indirect_call_target flag.
23404         * ipa.c (has_addr_references_p): Cleanup.
23405         (is_indirect_call_target_p): New.
23406         (walk_polymorphic_call_targets): Do not mark virtuals that may be
23407         called indirectly as local.
23408         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
23410 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
23412         PR ipa/69630
23413         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23414         on cxa_pure_virtual.
23416 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
23418         PR lto/69589
23419         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
23421 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
23423         PR lto/69589
23424         * tree.c (need_assembler_name_p): Only record main variant type names.
23426 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
23428         PR target/70113.
23429         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
23430         Always define to 0 or 1.
23431         (TARGET_FIX_ERR_A53_843419): New macro.
23432         * config/aarch64/aarch64-elf-raw.h
23433         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
23434         * config/aarch64/aarch64-linux.h: Likewise.
23435         * config/aarch64/aarch64.c
23436         (aarch64_override_options_after_change_1): Do not default
23437         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
23438         843419 is on.
23439         (aarch64_attributes): Handle fix-cortex-a53-843419.
23440         (aarch64_can_inline_p): Likewise.
23441         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
23443 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
23444             Jakub Jelinek  <jakub@redhat.com>
23446         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
23447         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
23448         DECL_COMMONS if flag_unconstrained_commons is set.
23449         * tree-dfa.c (get_ref_base_and_extent): Likewise.
23450         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
23451         (funconstrained-commons): Document.
23453 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
23455         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
23456         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
23458 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
23460         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
23461         has a proper number of elements.
23463 2016-03-10  Alan Modra  <amodra@gmail.com>
23465         PR rtl-optimization/69195
23466         PR rtl-optimization/47992
23467         * ira.c (recorded_label_ref): Delete.
23468         (update_equiv_regs): Return void.
23469         (indirect_jump_optimize): New function.
23470         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
23471         before regstat_compute_ri.  Don't rebuild_jump_labels here.
23472         Delete update_regstat.
23474 2016-03-10  Richard Biener  <rguenther@suse.de>
23476         PR tree-optimization/70128
23477         * tree-ssa-structalias.c (set_uids_in_ptset): Set
23478         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
23480 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
23482         PR tree-optimization/70152
23483         * tree-sra.c (replace_removed_params_ssa_names): Copy over
23484         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
23486         PR target/70086
23487         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
23488         instead of gen_sse2_loadlpd.
23489         * config/i386/sse.md (*vec_concatv2df): Rename to...
23490         (vec_concatv2df): ... this.
23492         PR tree-optimization/70127
23493         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
23495 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
23497         PR c/68473
23498         PR c++/70105
23499         * diagnostic-show-locus.c (compatible_locations_p): New function.
23500         (layout::layout): Sanitize ranges using compatible_locations_p.
23502 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
23504         PR c/68473
23505         PR c++/70105
23506         * diagnostic-show-locus.c (layout_range::layout_range): Replace
23507         location_range param with three const expanded_locations * and a
23508         bool.
23509         (layout::layout): Replace call to
23510         rich_location::lazily_expand_location with get_expanded_location.
23511         Extract the range and perform location expansion here, passing
23512         the results to the layout_range ctor.
23513         * diagnostic.c (source_range::debug): Delete.
23514         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
23515         of rich_location::get_expanded_location.
23516         * gcc-rich-location.c (get_range_for_expr): Delete.
23517         (gcc_rich_location::add_expr): Reimplement to avoid the
23518         rich_location::add_range overload that took a location_range,
23519         passing a location_t instead.
23521 2016-03-09  Richard Biener  <rguenther@suse.de>
23522         Jakub Jelinek  <jakub@redhat.com>
23524         PR tree-optimization/70138
23525         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23526         Also skip vect_double_reduction_def.
23528 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
23530         PR target/70049
23531         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
23532         if the operand is "m".
23534 2016-03-09  Nathan Sidwell  <nathan@acm.org>
23536         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
23538 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23540         * config/i386/i386.c (processor_target_table): Fix cost table
23541         intialization order for znver1.
23543 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
23545         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
23546         - becuase -> because.
23547         * ipa-reference.c (ignore_module_statics): Likewise.
23548         * cgraph.c (cgraph_node::get_body): Likewise.
23549         * ipa-inline.c (early_inliner): Likewise.
23550         * ipa-devirt.c (types_same_for_odr): Likewise.
23551         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
23552         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
23554 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23556         * tree-ssa-math-opts.c: Fix typo in comment.
23558 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
23560         PR target/70110
23561         * config/i386/i386.c (scalar_chain::make_vector_copies,
23562         scalar_chain::convert_reg): Call end_sequence in between
23563         get_insns and emit_conversion_insns rather than after both
23564         calls.
23566 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
23568         PR target/70064
23569         * config/i386/i386.h (machine_function): Add
23570         pc_thunk_call_expanded flag.
23571         (ix86_pc_thunk_call_expanded): New define.
23572         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
23573         (*set_got): Rename insn pattern from set_got.
23574         (*set_got_labelled): Rename inst pattern from set_got_labelled.
23575         * config/i386/i386.c (ix86_compute_frame_layout): Use
23576         ix86_pc_thunk_call_expanded to prevent red-zone.
23578 2016-03-07  Martin Jambor  <mjambor@suse.cz>
23580         * hsa.h (hsa_get_ctor_statements): Declare.
23581         (hsa_get_dtor_statements): Likewise.
23582         (hsa_get_kernel_dispatch_type): Likewise.
23583         * hsa.c (hsa_get_ctor_statements): New function.
23584         (hsa_get_dtor_statements): Likewise.
23585         (hsa_get_kernel_dispatch_type): Likewise.
23586         * hsa-brig.c (hsa_cdtor_statements): Removed.
23587         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
23588         hsa_get_dtor_statements.
23589         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
23590         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
23592 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
23594         * config/arm/arm-cores.def (cortex-r8): New.
23595         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
23596         * config/arm/arm-tune.md: Likewise.
23597         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
23599 2016-03-07  Martin Sebor  <msebor@redhat.com>
23601         PR rtl-optimization/19705
23602         * doc/invoke.texi (Options That Control Optimization): Clarify
23603         -fno-branch-count-reg.
23605 2016-02-26  Richard Biener  <rguenther@suse.de>
23606             Jeff Law  <law@redhat.com>
23608         PR tree-optimization/69740
23609         * cfghooks.c (remove_edge): Request loop fixups if we delete
23610         an edge that might turn an irreducible loop into a natural
23611         loop.
23612         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
23613         Move after definition of loops_state_clear.
23615 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
23617         PR rtl-optimization/69052
23618         * rtlanal.c (commutative_operand_precedence): Set higher precedence
23619         to CONST_WIDE_INT.
23621 2016-03-07  Tom de Vries  <tom@codesourcery.com>
23623         PR tree-optimization/70116
23624         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
23625         is_tm_ending stmts and ubsan/asan internal functions.
23626         (find_duplicate): Use it.  Don't test is_tm_ending here.
23628 2016-03-07  Richard Biener  <rguenther@suse.de>
23630         PR tree-optimization/70115
23631         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
23632         (propagate_constants_for_unrolling): Use replace_uses_by.
23634 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
23636         PR middle-end/69916
23637         * omp-low.c (struct oacc_loop): Add ifns.
23638         (new_oacc_loop_raw): Initialize it.
23639         (finish_oacc_loop): Clear mask & flags if no ifns.
23640         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
23641         (oacc_loop_xform_loop): Add ifns arg & adjust.
23642         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
23644 2016-03-07  Richard Henderson  <rth@redhat.com>
23646         PR rtl-opt/70061
23647         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
23648         (insert_value_copy_on_edge): Likewise.
23650 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23652         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
23654 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23656         PR target/62281
23657         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
23659 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
23661         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
23663 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
23665         Fix sseimul type attribute.
23666         * config/i386/znver1.md
23667         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
23668         znver1_sseimul_avx256_load) : Fix the type attribute.
23669         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
23670         pipe usage and latency.
23672 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
23674         PR c++/70084
23675         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
23676         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
23677         to the right type.
23679 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
23681         PR c/69973
23682         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
23684         PR rtl-optimization/69941
23685         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
23686         the reg share its mode.
23688 2016-03-04  Jeff Law  <law@redhat.com>
23690         PR tree-optimization/69196
23691         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23692         If the both SSA_NAMEs are anonymous, then consider them unassociated
23693         and include the PHI in the statement count.
23695 2016-03-05  Tom de Vries  <tom@codesourcery.com>
23697         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
23698         construct in oacc routine.  Check for oacc region in oacc routine.
23700 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
23702         PR target/70062
23703         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
23704         2016-02-22 changes, instead don't recurse if RECUR is already true.
23705         Don't change *dynamic_check if RECUR.  Adjust recursive caller
23706         to pass true to the new argument.
23707         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
23709         PR target/70059
23710         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23711         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
23712         fixes.
23713         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
23715 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
23717         PR rtl-optimization/57676
23718         * lra-assigns.c (lra_assign): Guard test for maximum iterations
23719         with flag_checking.
23721 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
23723         * tree-vect-patterns.c (search_type_for_mask): Handle
23724         comparison of booleans.
23726 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
23728         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
23729         Fix @xref usage.
23731         PR debug/69947
23732         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
23733         all other ops that have dw_val_class_die_ref operands,
23734         and DW_OP_GNU_entry_value.
23736 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23738         PR rtl-optimization/69904
23739         * config/arm/arm.c (arm_cannot_copy_insn_p):
23740         Return true for load-exclusive instructions.
23742 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
23744         PR target/70021
23745         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
23746         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
23747         the pattern no matter if it is used just by non-pattern, pattern
23748         or mix thereof.
23749         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
23750         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
23751         oprnd1 def_stmt is in pattern, don't look through it.
23753 2016-03-03  Marek Polacek  <polacek@redhat.com>
23755         PR middle-end/70050
23756         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
23758 2016-03-03  Martin Liska  <mliska@suse.cz>
23760         PR tree-optimization/70043
23761         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
23762         previous statement if we see a debug statement.
23764 2016-03-03  Richard Biener  <rguenther@suse.de>
23766         PR tree-optimization/55936
23767         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
23768         parameter and guard unsafe equivalence use.
23769         (vrp_evaluate_conditional_warnv_with_ops): Always use
23770         safe equivalences but not via the quadratic compare_names
23771         helper.
23773 2016-03-03  Michael Collison  <michael.collison@linaro.org>
23775         PR target/70014
23776         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
23777         for operand 1 to s_register_operand. Change predicate for operand
23778         2 to arm_not_immediate_operand.
23780 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
23782         * doc/tm.texi: Regenerated.
23784 2016-03-02  Richard Henderson  <rth@redhat.com>
23786         PR rtl-opt/67145
23787         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
23788         simplification when all args are positive non-fixed registers.
23790 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23792         * target.def (lra_p): Specify that new ports should use LRA.
23794 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
23796         PR libgomp/69555
23797         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
23798         gimplify_type_sizes the type they refer to.
23799         (omp_notice_variable): Handle reference vars to VLAs.
23800         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
23801         reference to VLA decls in the second pass instead of first pass.
23803 2016-03-02  Tom de Vries  <tom@codesourcery.com>
23805         PR tree-optimization/68659
23806         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
23807         new_expr == NULL_TREE.
23808         (get_new_name): Handle ADDR_EXPR.
23810 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
23812         PR rtl-optimization/69052
23813         * loop-invariant.c (canonicalize_address): New function.
23814         (inv_can_prop_to_addr_use): Check validity of address expression
23815         which is canonicalized by above function.
23817 2016-03-02  Alan Modra  <amodra@gmail.com>
23819         PR ipa/69990
23820         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
23821         larger alignment.
23823 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
23825         PR target/70028
23826         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
23827         (*movhi_internal): Put mask moves from and to memory separately
23828         from moves from/to GPRs.
23830 2016-03-02  Richard Biener  <rguenther@suse.de>
23832         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
23833         GENERIC expressions in GIMPLE.
23835 2016-03-02  Richard Biener  <rguenther@suse.de>
23837         * config/i386/i386.c (type_natural_mode): Fix typo.
23839 2016-03-02  Nick Clifton  <nickc@redhat.com>
23841         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
23843 2016-03-02  Richard Biener  <rguenther@suse.de>
23844             Uros Bizjak  <ubizjak@gmail.com>
23846         PR target/67278
23847         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
23849 2016-03-02  Richard Biener  <rguenther@suse.de>
23851         PR middle-end/67278
23852         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
23854 2016-03-02  Marek Polacek  <polacek@redhat.com>
23856         PR c/67854
23857         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
23858         "is promoted to" warning.
23860 2016-03-01  DJ Delorie  <dj@redhat.com>
23862         * config.gcc: Deprecate mep-*.
23864 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
23866         PR middle-end/70025
23867         * lra-constraints.c (regno_val_use_in): New.
23868         (match_reload): Use it instead of regno_use_in.
23870 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
23872         PR rtl-optimization/70007
23873         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
23874         references present in REG_EQUAL notes attached to non-SET patterns.
23876 2016-03-01  Jeff Law  <law@redhat.com>
23878         PR tree-optimization/69196
23879         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23880         Appropriately clamp the number of statements to copy when the
23881         thread path does not traverse a loop backedge.
23883         PR tree-optimization/69196
23884         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23885         Do count some PHIs in the thread path against the insn count.  Decrease
23886         final statement count by one as the control statement in the last
23887         block will get removed.  Remove special cased code for handling PHIs
23888         in the last block.
23890 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
23892         PR target/70027
23893         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
23894         asm dialect alternatives to explicit GOTPCREL calls.
23896 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
23898         PR ada/70017
23899         * ira.c (do_reload): Issue warning for generic stack checking here...
23900         * reload1.c (reload): ...instead of here and streamline it.
23902 2016-03-01  Nick Clifton  <nickc@redhat.com>
23904         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
23906 2016-03-01  Richard Biener  <rguenther@suse.de>
23908         PR tree-optimization/69983
23909         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
23910         types and fall back to operand_equal_p.
23912 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23914         Revert
23915         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23917         * config/s390/constraints.md ("jm8"): New constraint.
23918         * config/s390/predicates.md ("const_int_8bitset_operand"): New
23919         predicate.
23920         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
23921         into ...
23922         ("*setmem_long<setmem_and>"): New pattern.
23923         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
23924         into ...
23925         ("*setmem_long_31z<setmem_and>"): New pattern.
23926         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
23927         New substitution rules with the required attributes.
23930 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23932         Revert
23933         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23935         * gensupport.c (process_substs_on_one_elem): Split loop to
23936         complete mark_operands_used_in_match_dup on all expressions in the
23937         vector first.
23938         (adjust_operands_numbers): Inline into process_substs_on_one_elem
23939         and remove function.
23941 2016-03-01  Richard Biener  <rguenther@suse.de>
23943         PR middle-end/70022
23944         * fold-const.c (fold_indirect_ref_1): Fix range checking for
23945         vector BIT_FIELD_REF extract.
23947 2016-03-01  Richard Biener  <rguenther@suse.de>
23949         PR tree-optimization/69994
23950         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
23952 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
23954         PR tree-optimization/69956
23955         * tree-vect-stmts.c (supportable_widening_operation): Support
23956         multi-step conversion of boolean vectors.
23957         (supportable_narrowing_operation): Likewise.
23959 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23961         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
23962         anymore.
23964 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23966         * config/s390/subst.md (DSI_VI): New mode iterator.
23967         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
23968         * config/s390/vector.md ("vec_set<mode>"): Move expander before
23969         the insn definition.
23970         ("*vec_set<mode>"): Change predicate and add alternative to
23971         support only either register or const_int operands as element
23972         selector.
23973         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
23974         operands.
23975         ("vec_extract<mode>"): New expander.
23976         ("*vec_extract<mode>"): New insn definition supporting reg and
23977         const_int element selectors.
23978         ("*vec_extract<mode>_plus"): New insn definition supporting
23979         reg+const_int element selectors.
23980         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
23981         following expander+insn definition.
23982         ("<vec_shifts_name><mode>3"): New expander.
23983         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
23985 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23987         * config/s390/s390.md ("*tabort_1"): Change predicate to
23988         nonmemory_operand.  Add a second alternative to cover
23989         register as well as const int operands.
23990         ("*tabort_1_plus"): New pattern definition.
23992 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23994         * config/s390/s390.md ("*ashrdi3_cc_31")
23995         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
23996         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
23997         Merge insn definitions into ...
23998         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23999         New pattern definition.
24000         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
24001         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
24002         ("*ashr<mode>3_and"): Merge insn definitions into ...
24003         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
24004         New pattern definition.
24005         * config/s390/subst.md ("addr_style_op_cc_subst")
24006         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
24007         substitutions patterns plus attributes.
24008         Add ashiftrt to SUBST iterator.
24010 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24012         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
24013         op2 to nonmemory_operand.
24014         ("*<shift>di3_31", "*<shift>di3_31_and"):
24015         Merge into single pattern definition ...
24016         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
24017         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
24018         pattern definition ...
24019         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
24020         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
24021         iterator.
24023 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24025         * config/s390/predicates.md (const_int_6bitset_operand): New
24026         predicate.
24027         * config/s390/s390.md: Include subst.md.
24028         ("rotl<mode>3"): New expander.
24029         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
24030         ...
24031         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
24032         * config/s390/subst.md: New file.
24034 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24036         * config/s390/s390.md ("op_type", "atype", "length" attributes):
24037         Remove RRR type.  It doesn't really exist.
24038         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
24039         attributes.
24040         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
24041         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
24042         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
24043         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
24044         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
24045         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
24046         `enabled' attribute.
24048 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24050         * gensupport.c (process_substs_on_one_elem): Split loop to
24051         complete mark_operands_used_in_match_dup on all expressions in the
24052         vector first.
24053         (adjust_operands_numbers): Inline into process_substs_on_one_elem
24054         and remove function.
24056 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
24058         PR target/69706
24059         * config/sparc/sparc.c (NWORDS_UP): Rename to...
24060         (CEIL_NWORDS): ...this.  Use CEIL macro.
24061         (compute_fp_layout): Adjust to above renaming.
24062         (function_arg_union_value): Likewise.
24063         (sparc_arg_partial_bytes): Likewise.
24064         (sparc_function_arg_advance): Likewise.
24066 2016-02-29  Jeff Law  <law@redhat.com>
24068         PR tree-optimization/70005
24069         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
24070         where an object with a boolean range is compared against a value
24071         outside [0..1].
24073         PR tree-optimization/69999
24074         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
24075         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
24076         loop cleanups.
24078 2016-02-29  Richard Biener  <rguenther@suse.de>
24080         PR tree-optimization/69994
24081         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
24082         (get_unary_op): Look through nop conversions.
24083         (ops_equal_values_p): New function, look for equality diregarding
24084         nop conversions.
24085         (eliminate_plus_minus_pair): Use ops_equal_values_p
24086         (repropagate_negates): Do not use get_unary_op here.
24088 2016-02-29  Martin Liska  <mliska@suse.cz>
24090         * system.h: Poison ENABLE_CHECKING macro.
24092 2016-02-29  Martin Liska  <mliska@suse.cz>
24094         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
24095         is presented in dump flags.
24096         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24097         (hsa_regalloc): Likewise.
24099 2016-02-19  Richard Biener  <rguenther@suse.de>
24101         PR tree-optimization/69980
24102         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
24103         permutation of those we need to keep.
24105 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
24107         PR target/69706
24108         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
24109         (NWORDS_UP): ...this
24110         (init_cumulative_args): Minor tweaks.
24111         (sparc_promote_function_mode): Likewise.
24112         (scan_record_type): Delete.
24113         (traverse_record_type): New function template.
24114         (classify_data_t): New structure type.
24115         (classify_registers): New inline function.
24116         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
24117         exhausted.  Instantiate traverse_record_type on classify_registers and
24118         deal with the case of a structure passed in slot #15 with no FP field
24119         in the first word.
24120         (assign_data_t): New structure type.
24121         (compute_int_layout): New static function.
24122         (compute_fp_layout): Likewise.
24123         (count_registers): New inline function.
24124         (assign_int_registers): New static function.
24125         (assign_fp_registers): Likewise.
24126         (assign_registers): New inline function.
24127         (function_arg_record_value_1): Delete.
24128         (function_arg_record_value_2): Likewise.
24129         (function_arg_record_value_3): Likewise.
24130         (function_arg_record_value): Adjust to above changes.  Instantiate
24131         traverse_record_type on count_registers to first count the number of
24132         registers to be used and then on assign_registers to assign them.
24133         (function_arg_union_value): Adjust to above renaming.
24134         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
24135         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
24136         case of a structure passed in slot #15
24137         (sparc_function_arg_advance): Likewise.
24138         (function_arg_padding): Minor tweak.
24140 2016-02-29  Richard Biener  <rguenther@suse.de>
24142         PR tree-optimization/69720
24143         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
24144         the adjustment_def path for possibly vectorized defs.
24145         (vect_create_epilog_for_reduction): Handle vectorized initial
24146         defs properly.
24148 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
24150         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
24152 2016-02-27  Jeff Law  <law@redhat.com>
24154         Revert
24155         2016-02-26  Richard Biener  <rguenther@suse.de>
24156                     Jeff Law  <law@redhat.com>
24158         PR tree-optimization/69740
24159         * cfghooks.c (remove_edge): Request loop fixups if we delete
24160         an edge that might turn an irreducible loop into a natural
24161         loop.
24163 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
24165         PR rtl-optimization/69896
24166         * tree-vect-generic.c (get_compute_type): Avoid single element
24167         vector types.
24169 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
24171         Rename the AArch64 tuning option and related functions to enable the
24172         Newton series for the reciprocal square root to reflect its
24173         approximative characteristic.
24175         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
24176         function to "aarch64_emit_approx_rsqrt".
24177         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
24178         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
24179         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
24180         (xgene1_tunings): Likewise.
24181         (use_rsqrt_p): Likewise.
24182         (aarch64_emit_swrsqrt): Use new function name.
24183         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
24184         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
24185         text explaining this option.
24186         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
24188 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
24190         PR target/69969
24191         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24192         complain about -mallow-movmisalign without -mvsx if
24193         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
24195 2016-02-26  Joel Sherrill  <joel@rtems.org>
24197         * config.gcc: Add x86_64-*-rtems*.
24198         * config/i386/rtems-64.h: New file.
24200 2016-02-26  Joel Sherrill  <joel@rtems.org>
24202         * config.gcc: Add aarch64-*-rtems*.
24203         * config/aarch64/rtems.h: New file.
24205 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
24207         PR target/69946
24208         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
24209         shift amount using %h.  Add comment.
24211 2016-02-26  Richard Biener  <rguenther@suse.de>
24212             Jeff Law  <law@redhat.com>
24214         PR tree-optimization/69740
24215         * cfghooks.c (remove_edge): Request loop fixups if we delete
24216         an edge that might turn an irreducible loop into a natural
24217         loop.
24219 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24221         PR middle-end/69920
24222         * tree-sra.c (sra_modify_assign): Do not remove loads of
24223         uninitialized aggregates to SSA_NAMEs.
24225 2016-02-26  Richard Henderson  <rth@redhat.com>
24227         PR target/69709
24228         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
24229         pseudo in case the target rtx matches the source of the left
24230         shift.
24232 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24234         PR hsa/69568
24235         * hsa.h (hsa_type_packed_p): Declare.
24236         * hsa.c (hsa_type_packed_p): New function.
24237         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
24238         loads.
24239         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
24240         * hsa-brig.c (emit_basic_insn): Likewise.
24242 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24244         pr hsa/69674
24245         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
24246         pointers.
24247         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
24249 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24251         * hsa.h (is_a_helper): New overload for hsa_op_immed for
24252         hsa_op_with_type operands.
24253         (hsa_unsigned_type_for_type): Declare.
24254         * hsa.c (hsa_unsigned_type_for_type): New function.
24255         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
24256         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
24257         the finalizer.  Do not emit extra move.
24259 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24261         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
24262         atomic operations in private segment.
24264 2016-02-26  Martin Jambor  <mjambor@suse.cz>
24266         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
24267         statements to wi->info.  Also disallow omp simd constructs.
24268         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
24269         for not gridifying.  Dump special string for omp_for.
24271 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24273         PR target/69245
24274         * config/aarch64/aarch64.c (aarch64_set_current_function):
24275         Save/restore target globals when switching to
24276         target_option_default_node.
24278 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24280         PR target/69613
24281         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
24282         Return 0 if !SHIFT_COUNT_TRUNCATED.
24284 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
24285             Eric Botcazou  <ebotcazou@adacore.com>
24287         PR rtl-optimization/69891
24288         * dse.c (scan_insn): If we can't figure out memset arguments
24289         or they are non-constant, call clear_rhs_from_active_local_stores.
24291 2016-02-26  Martin Liska  <mliska@suse.cz>
24293         * doc/extend.texi: Mention clog10, clog10f an clog10l
24294         in Builtins section.
24296 2016-02-26  Martin Liska  <mliska@suse.cz>
24298         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
24299         CHECKING_P.
24300         (resolve_args_picking_1): Likewise.
24301         * dwarf2out.h (struct GTY): Likewise.
24303 2016-02-26  Martin Liska  <mliska@suse.cz>
24305         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
24306         with flag_checking.
24307         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
24309 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
24310             Martin Liska  <mliska@suse.cz>
24312         * doc/install.texi: Mention --enable-valgrind-annotations.
24314 2016-02-26  Richard Biener  <rguenther@suse.de>
24316         PR tree-optimization/69551
24317         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
24318         looking through aliases adjust DECL_PT_UID to refer to the
24319         ultimate alias target.
24321 2016-02-25  Martin Liska  <mliska@suse.cz>
24323         PR middle-end/69919
24324         * alloc-pool.c (after_memory_report): New variable.
24325         * alloc-pool.h (base_pool_allocator ::release): Do not use
24326         the infrastructure if after_memory_report.
24327         * toplev.c (toplev::main): Mark after memory report.
24329 2016-02-25  Richard Biener  <rguenther@suse.de>
24331         PR tree-optimization/48795
24332         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
24334 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
24336         PR driver/68463
24337         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
24338         offloading is enabled and -fopenacc or -fopenmp is specified.
24339         (CRTOFFLOADEND): Likewise.
24340         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
24341         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
24342         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
24343         (offload_objects_file_name): New static var.
24344         (tool_cleanup): Remove offload_objects_file_name file.
24345         (find_offloadbeginend): Replace with ...
24346         (find_crtoffloadtable): ... this.
24347         (run_gcc): Remove offload_argc and offload_argv.
24348         Get offload_objects_file_name from -foffload-objects=... option.
24349         Read names of object files with offload from this file, pass them to
24350         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
24351         don't pass offloadbegin and offloadend to the linker.  Don't pass
24352         offload non-LTO files to the linker, because now they're not claimed.
24354 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
24356         PR ipa/69630
24357         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
24358         on builtin_unreachable.
24360 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
24362         PR rtl-optimization/69896
24363         * regcprop.c: Include cfgrtl.h.
24364         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
24365         than remembered mode, either delete it (if noop_move_p), or
24366         treat like copy_p but not noop_p instruction.
24368 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
24370         PR debug/69705
24371         * dwarf2out.c (gen_variable_die): Work around buggy LTO
24372         - allow NULL decl for Fortran DW_TAG_common_block variables.
24374 2016-02-24  Jason Merrill  <jason@redhat.com>
24376         * common.opt (flifetime-dse): Add -flifetime-dse=1.
24378 2016-02-24  Richard Biener  <rguenther@suse.de>
24379             Jakub Jelinek  <jakub@redhat.com>
24381         PR middle-end/69760
24382         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
24383         conditionally executed ops to well-defined overflow behavior.
24385 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
24387         PR middle-end/69915
24388         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
24389         elements.
24391 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24393         PR rtl-optimization/69886
24394         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
24395         argument.  Use it when checking validity of set instructions.
24396         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
24397         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
24398         callsite.
24399         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
24400         * store-motion.c (find_moveable_store): Update
24401         can_assign_to_reg_without_clobbers_p callsite.
24403 2016-02-24  Richard Biener  <rguenther@suse.de>
24405         PR middle-end/68963
24406         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
24407         bogus check.
24408         (record_nonwrapping_iv): Do not fall back to the low/high bound
24409         for non-constant IV bases if the stmt is not always executed.
24411 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24413         * config/arm/arm-cores.def (cortex-a32): New entry.
24414         * config/arm/arm-tables.opt: Regenerate.
24415         * config/arm/arm-tune.md: Regenerate.
24416         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
24417         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
24418         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
24419         for -mcpu and -mtune.
24421 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24423         PR target/69875
24424         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
24425         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
24426         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
24427         (atomic_loaddi_1): Delete.
24428         (atomic_loaddi): Rewrite expander using the above changes.
24430 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
24432         PR c/69918
24433         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
24434         2 to 3.
24436 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
24437             Richard Biener  <rguenth@suse.de>
24439         PR middle-end/69909
24440         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
24441         set_mem_attributes if tem is SSA_NAME which got expanded
24442         as a MEM.
24444 2016-02-24  Richard Biener  <rguenther@suse.de>
24446         PR tree-optimization/69907
24447         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
24448         end of permutations for BB vectorization.
24450 2016-02-24  Christian Bruel  <christian.bruel@st.com>
24452         * config/arm/arm-c.c (arm_option_override): Initialize
24453         target_option_current_node.
24454         * config/arm/arm.c (arm_pragma_target_parse): Replace
24455         build_target_option_node call by target_option_current_node.
24456         Set target_option_current_node.
24457         Fix comments.
24459 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
24461         PR target/69810
24462         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
24463         define_insn_and_split to define_insn.
24464         (zero_extendqi<mode>2_dot2): Same.
24465         (extendqi<mode>2_dot): Same.
24466         (extendqi<mode>2_dot2): Same.
24468 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
24470         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
24471         and add bypass for AES{D,E} and AESMC pairs.
24472         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
24473         and AESMC pairs.
24475 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
24477         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
24478         series for reciprocal square root in Exynos M1.
24480 2016-02-23  Martin Sebor  <msebor@redhat.com>
24482         PR c/69759
24483         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
24484         __builtin_alloca_with_align.
24486 2016-02-23  Richard Henderson  <rth@redhat.com>
24488         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
24489         (ix86_register_pragmas): Remove __seg_tls.
24490         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
24491         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
24492         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
24493         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
24494         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
24495         * doc/extend.texi (__seg_tls): Remove item.
24497 2016-02-23  Richard Biener  <rguenther@suse.de>
24499         * alloc-pool.h (struct allocation_object): Make id member
24500         conditional on CHECKING_P again.
24501         (get_instance): Adjust.
24502         (base_pool_allocator): Likewise.
24504 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
24506         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
24507         (parallelize_loops): In OpenACC kernels mode, set n_threads to
24508         zero.
24509         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
24510         flag_openacc.
24511         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
24513 2016-02-23  Richard Biener  <rguenther@suse.de>
24515         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
24516         * bitmap.h (struct bitmap_usage): Likewise.
24517         (bitmap_move): Declare.
24518         * bitmap.c (register_overhead): Take size_t argument.
24519         (bitmap_move): New function.
24520         * df-problems.c (df_rd_transfer_function): Use bitmap_move
24521         to properly account overhead.
24522         * tree.c (free_node): Use tree_size.
24524 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
24526         PR c++/69902
24527         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
24528         when inverting comparison.
24530         PR c/69900
24531         * common.opt (Wunreachable-code): Add Warning flag.
24533 2016-02-23  Mark Wielaard  <mjw@redhat.com>
24534             Jakub Jelinek  <jakub@redhat.com>
24536         PR c/69911
24537         * cgraphunit.c (check_global_declaration): Check main_input_filename
24538         and DECL_SOURCE_FILE are not NULL.
24540 2016-02-23  Martin Jambor  <mjambor@suse.cz>
24542         PR tree-optimization/69666
24543         * tree-sra.c (sra_modify_assign): Do not attempt to create
24544         default_def replacements for unscalarizable regions.
24546 2016-02-20  Mark Wielaard  <mjw@redhat.com>
24548         PR c/28901
24549         * cgraphunit.c (check_global_declaration): Check level of
24550         warn_unused_const_variable and main_input_filename.
24551         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
24552         (-Wunused-variable): For C implies -Wunused-const-variable=1.
24553         (-Wunused-const-variable): Explain levels 1 and 2.
24555 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
24557         PR target/69888
24558         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
24559         identical arguments.  Formatting and spelling fixes.
24561         PR target/69885
24562         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
24563         be specified.
24565         PR target/69894
24566         PR target/69895
24567         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
24568         and m68k-devices.def.
24569         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
24570         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
24572 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
24574         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
24575         and HImode registers.
24577 2016-02-22  Richard Biener  <rguenther@suse.de>
24579         PR tree-optimization/69882
24580         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
24581         preserve permutations present because of gaps.
24582         (vect_supported_load_permutation_p): Always continue checking
24583         permutations after vect_attempt_slp_rearrange_stmts.
24585 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
24587         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
24588         min_profitable_estimate, rather than min_profitable_iters.
24590 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
24592         PR target/69885
24593         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
24594         SImode for last match_operand.
24596 2016-02-22  Martin Liska  <mliska@suse.cz>
24598         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
24599         return bitsize - 1 as the return value.
24601 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
24603         PR target/69806
24604         PR target/54089
24605         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
24606         Handle negative shift counts.
24607         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
24608         force_reg on the shift constant.
24609         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
24610         (lshrsi3_d): Handle negative shift counts.
24612 2016-02-22  Richard Biener  <rguenther@suse.de>
24613             Tom de Vries  <tom@codesourcery.com>
24615         * graph.c: Include dumpfile.h.
24616         (print_graph_cfg): Split into three overloads.
24617         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
24619 2016-02-22  Tom de Vries  <tom@codesourcery.com>
24621         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
24622         dump-fn.
24624 2016-02-22  Richard Biener  <rguenther@suse.de>
24626         PR ipa/37448
24627         * ipa-inline-transform.c (inline_call): When not updating
24628         overall summaries adjust self size by the growth estimate.
24629         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
24630         hash-set, do not update overall summaries here.  Renamed from ...
24631         (inline_to_all_callers): ... this which is now wrapping the
24632         above and performing delayed overall summary update.
24633         (early_inline_small_functions): Delay updating of the overall
24634         summary.
24636 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
24638         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
24639         variable.
24641 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
24643         PR driver/69805
24644         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
24645         :%* in %:gt() argument.
24646         (greater_than_spec_func): Adjust for expecting only numbers,
24647         if there are more than two numbers, compare the last two.
24649 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
24651         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
24652         -Wnarrowing with -std.
24654 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
24656         PR c++/69851
24657         * expr.c (store_field): Don't use bit-field path if exp is
24658         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
24659         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
24660         and the assignment can be performed by bitwise copy.  Formatting
24661         fix.
24663         PR middle-end/69838
24664         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
24665         call copy_reg_eh_region_note_forward on before and/or after sequences
24666         and remove note from insn if it no longer can throw.
24668         PR target/69820
24669         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
24670         if TARGET_AVX512BW.
24672 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24674         * config/s390/vector.md: Add missing commutative operand markers
24675         to the patterns which qualify for one.
24676         * config/s390/vx-builtins.md: Likewise.
24678 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24680         * config/s390/vector.md (VI, VI_QHS): Add single element vector
24681         types to mode iterators.
24682         (vec_double): ... and mode attribute.
24683         * config/s390/vx-builtins.md (non_vec_int): Likewise.
24685 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24687         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
24688         Change the predicate of op2 from nonimmediate to general and let
24689         reload fix it if necessary.
24691 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24693         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
24695 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24697         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
24698         mode.
24700 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24702         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
24703         * config/s390/s390.c (s390_expand_vec_movstr): New function.
24704         * config/s390/s390.md ("movstr<P:mode>"): Call
24705         s390_expand_vec_movstr.
24707 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24709         * config/s390/s390.md: Add missing output modifier for operand 1
24710         to print it as address properly.
24712 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24714         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
24715         * config/s390/2964.md: New file.
24716         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
24717         of insn grouping attributes depending on the CPU level.
24718         (s390_get_unit_mask): New function.
24719         (s390_sched_score): Remove the OOO from the scheduling macros.
24720         Add loop to calculate a score for the instruction mix.
24721         (s390_sched_reorder): Likewise plus improve debug output.
24722         (s390_sched_variable_issue): Rename macros as above.  Calculate
24723         the unit distances after actually scheduling an insn.  Improve
24724         debug output.
24725         (s390_sched_init): Clear last_scheduled_unit_distance array.
24726         * config/s390/s390.md: Include 2964.md.
24728 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
24730         PR target/69671
24731         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
24732         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
24733         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
24734         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
24735         *avx512f_<code>v8div16qi2_mask_1): New insns.
24737 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
24739         PR target/68404
24740         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
24741         2016-02-09 change.
24743         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
24744         earlyclobber from target.  Use wF constraint for fused memory
24745         address.
24746         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
24748 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
24749             Martin Liska  <mliska@suse.cz>
24751         PR sanitizer/69863
24752         * cfgexpand.c (asan_sanitize_stack_p): New function.
24753         (partition_stack_vars): Use the function.
24754         (expand_stack_vars): Likewise.
24755         (defer_stack_allocation): Likewise.
24756         (expand_used_vars): Likewise.
24758 2016-02-18  Richard Biener  <rguenther@suse.de>
24760         PR middle-end/69553
24761         * fold-const.c (operand_equal_p): Properly compare offsets for
24762         IMAGPART_EXPR and ARRAY_REF.
24764 2016-02-18  Nick Clifton  <nickc@redhat.com>
24766         PR target/62254
24767         PR target/69610
24768         * config/arm/arm.c (arm_option_override_internal): Disable
24769         interworking if the target does not support thumb instructions.
24770         (arm_reload_in_hi): Handle the case where a register to register
24771         move needs reloading because there is no simple pattern to handle
24772         it.
24773         (arm_reload_out_hi): Likewise.
24775 2016-02-18  Richard Biener  <rguenther@suse.de>
24777         PR middle-end/69854
24778         * match.pd: Don't use fold_binary or fold_unary for folding
24779         constants.
24781 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
24783         PR c++/69850
24784         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
24785         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
24786         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
24787         warn on gimple_no_warning_p statements.
24789 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
24791         * doc/extend.texi (C++ Attributes): Correct description of
24792         warn_unused type attribute.
24794 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24796         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
24797         correct instruction.
24799 2016-02-17  Richard Biener  <rguenther@suse.de>
24801         PR rtl-optimization/69609
24802         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
24803         (find_traces_1_round): When ending a trace update cached priority
24804         of successors.
24805         (bb_to_key): Use cached priority when available.
24806         (copy_bb): Initialize cached priority.
24807         (reorder_basic_blocks_software_trace_cache): Likewise.
24809 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24811         PR target/69161
24812         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
24813         New predicate.
24814         (aarch64_comparison_operator): Break overly long line into two.
24815         (aarch64_comparison_operation): Likewise.
24816         * config/aarch64/aarch64.md (cstorecc4): Use
24817         aarch64_comparison_operator_mode instead of
24818         aarch64_comparison_operator.
24819         (cstore<mode>4): Likewise.
24820         (aarch64_cstore<mode>): Likewise.
24821         (*cstoresi_insn_uxtw): Likewise.
24822         (cstore<mode>_neg): Likewise.
24823         (*cstoresi_neg_uxtw): Likewise.
24825 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24827         PR target/69161
24828         * config/arm/predicates.md (arm_comparison_operator_mode):
24829         New predicate.
24830         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
24831         instead of arm_comparison_operator.
24832         (*mov_negscc): Likewise.
24833         (*mov_notscc): Likewise.
24834         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
24835         (*thumb2_mov_negscc): Likewise.
24836         (*thumb2_mov_negscc_strict_it): Likewise.
24837         (*thumb2_mov_notscc): Likewise.
24838         (*thumb2_mov_notscc_strict_it): Likewise.
24840 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
24842         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
24843         Add missing return.
24845 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
24847         * config/visium/visium.c (machine_libfunc_index): New enum.
24848         (machine_libfuncs): New structure.
24849         (visium_libfuncs): New static variable.
24850         (TARGET_INIT_LIBFUNCS): Define to...
24851         (visium_init_libfuncs): ...this.  New function.
24852         (expand_block_move_4): Use the appropriate libfunc.
24853         (expand_block_move_2): Likewise.
24854         (expand_block_move_1): Likewise.
24855         (expand_block_set_4): Likewise.
24856         (expand_block_set_2): Likewise.
24857         (expand_block_set_1): Likewise.
24858         (visium_trampoline_init): Likewise.
24860 2016-02-17  Nick Clifton  <nickc@redhat.com>
24862         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
24863         TI's devices.csv file as of March 2016.
24865 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
24867         PR Target/48344
24868         * opts-global.c (handle_common_deferred_options): Introduce and
24869         initialize two global variables to remember command-line options
24870         specifying a stack-limiting register.
24871         * opts.h: Add extern declarations of the two new global variables.
24872         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
24873         variable based on the values of the two new global variables.
24875 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24877         PR c/69835
24878         * common.opt (Wnonnull-compare): New warning.
24879         * doc/invoke.texi (-Wnonnull): Remove text about comparison
24880         of arguments against NULL.
24881         (-Wnonnull-compare): Document.
24882         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
24883         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
24884         * passes.def (pass_warn_nonnull_compare): Add.
24885         * gimple-ssa-nonnull-compare.c: New file.
24887 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24889         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
24890         AARCH64_EXTRA_TUNE_RECIP_SQRT.
24892 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24894         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
24895         reciprocal sqrt for -mlow-precision-recip-sqrt.
24897 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24898             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24900         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
24901         always use lane loads to construct non-constant vectors.
24903 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24905         * config/aarch64/aarch64.md
24906         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
24907         constraints for operand 3.
24908         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
24910 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24911             Richard Biener  <rguenther@suse.de>
24913         PR tree-optimization/69820
24914         * tree-vect-patterns.c (type_conversion_p): Return false if
24915         *orig_type is unsigned single precision or boolean.
24916         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
24917         Formatting fix.
24919 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24921         PR rtl-optimization/69764
24922         PR rtl-optimization/69771
24923         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
24924         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
24926 2016-02-16  Richard Biener  <rguenther@suse.de>
24928         PR tree-optimization/69776
24929         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
24930         sets from caller.
24931         (indirect_refs_may_alias_p): Likewise.
24932         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
24933         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
24934         according to tbaa_p.
24935         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
24936         (optimize_stmt): For redundant store discovery do not allow tbaa.
24938 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
24940         PR tree-optimization/69714
24941         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
24942         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
24944 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
24946         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
24947         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
24948         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
24949         * config/arc/arc.c (arc_init): Check FPU options.
24950         (get_arc_condition_code): Handle new CC_FPU* modes.
24951         (arc_select_cc_mode): Likewise.
24952         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
24953         register pair only. Allow access for ARCv2 accumulator.
24954         (gen_compare_reg): Whenever we have FPU support use FPU compare
24955         instructions.
24956         (arc_reorg): Don't generate brcc insns when FPU compare
24957         instructions are involved.
24958         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
24959         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
24960         floating point emulation.
24961         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
24962         (REVERSE_CONDITION): Add new CC_FPU* modes.
24963         (TARGET_FP_SP_BASE): Define.
24964         (TARGET_FP_DP_BASE): Likewise.
24965         (TARGET_FP_SP_FUSED): Likewise.
24966         (TARGET_FP_DP_FUSED): Likewise.
24967         (TARGET_FP_SP_CONV): Likewise.
24968         (TARGET_FP_DP_CONV): Likewise.
24969         (TARGET_FP_SP_SQRT): Likewise.
24970         (TARGET_FP_DP_SQRT): Likewise.
24971         (TARGET_FP_DP_AX): Likewise.
24972         * config/arc/arc.md (ARCV2_ACC): New constant.
24973         (type): New fpu type attribute.
24974         (SDF): Conditional iterator.
24975         (cstore<mode>, cbranch<mode>): Change expand condition.
24976         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
24977         handles FPU/FPX cases as well.
24978         * config/arc/arc.opt (mfpu): New option.
24979         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
24980         Renamed.
24981         (adddf3, muldf3, subdf3): Removed.
24982         * config/arc/predicates.md (proper_comparison_operator): Recognize
24983         CC_FPU* modes.
24984         * config/arc/fpu.md: New file.
24985         * doc/invoke.texi (ARC Options): Document mfpu option.
24987 2016-02-16  Richard Biener  <rguenther@suse.de>
24989         PR rtl-optimization/69291
24990         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
24991         noce_operand_ok check.
24993 2016-02-16  Tom de Vries  <tom@codesourcery.com>
24995         PR lto/67709
24996         * omp-low.c (simd_clone_create): Remove call to
24997         symtab->call_cgraph_insertion_hooks.
24999 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
25001         PR tree-optimization/69802
25002         * tree-ssa-reassoc.c (update_range_test): If op is
25003         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
25004         op == 1 test of precision 1 integral op, otherwise handle
25005         that case as op itself.  Fix up formatting.
25006         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
25007         up formatting.
25009 2016-02-16  Richard Biener  <rguenther@suse.de>
25011         PR tree-optimization/69586
25012         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
25013         types for conversion sources.
25015 2016-02-16  Richard Biener  <rguenther@suse.de>
25017         PR middle-end/69801
25018         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
25019         mask OEP_ADDRESS_OF.
25021 2016-02-16  Alan Modra  <amodra@gmail.com>
25023         PR target/68973
25024         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
25025         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
25026         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
25027         (p8_mtvsrwz): New.
25028         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
25029         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
25030         (p8_fmrgow_<mode>): Likewise.
25031         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
25032         changes.
25033         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
25034         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
25035         to use movdi_internal64.  Remove op0_di.
25036         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
25038 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
25040         Add support for the FCCMP insn types
25042         * config/aarch64/aarch64.md (fccmp): Change insn type.
25043         (fccmpe): Likewise.
25044         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
25045         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
25046         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
25047         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
25048         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
25049         * config/arm/types.md (fccmps): Add new insn type.
25050         (fccmpd): Likewise.
25052 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25054         * alias.c (get_alias_set): Fix a typo in comment.
25056 2016-02-15  Richard Biener  <rguenther@suse.de>
25058         PR tree-optimization/69595
25059         * match.pd: Complete range test simplification to true.
25061 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
25063         PR rtl-optimization/69648
25064         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
25065         pic_offset_table_rtx.
25067         PR rtl-optimization/69752
25068         * ira.c (update_equiv_regs): When looking for more than a single SET,
25069         also take other side effects into account.
25071 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
25073         * config/s390/s390.c (s390_function_profiler): Add a new sequence
25074         for z900+ CPUs in 31-bit mode.
25076 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
25078         * common/config/s390/s390-common.c (s390_supports_split_stack):
25079         New function.
25080         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
25081         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
25082         * config/s390/s390.c (struct machine_function): New field
25083         split_stack_varargs_pointer.
25084         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
25085         in s390_emit_prologue.
25086         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
25087         vararg pointer.
25088         (morestack_ref): New global.
25089         (SPLIT_STACK_AVAILABLE): New macro.
25090         (s390_expand_split_stack_prologue): New function.
25091         (s390_live_on_entry): New function.
25092         (s390_va_start): Use split-stack vararg pointer if appropriate.
25093         (s390_asm_file_end): Emit the split-stack note sections.
25094         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
25095         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
25096         (UNSPECV_SPLIT_STACK_CALL): New unspec.
25097         (UNSPECV_SPLIT_STACK_DATA): New unspec.
25098         (split_stack_prologue): New expand.
25099         (split_stack_space_check): New expand.
25100         (split_stack_data): New insn.
25101         (split_stack_call): New expand.
25102         (split_stack_call_*): New insn.
25103         (split_stack_cond_call): New expand.
25104         (split_stack_cond_call_*): New insn.
25106 2016-02-15  Richard Biener  <rguenther@suse.de>
25108         PR tree-optimization/69783
25109         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25110         Add trivially correct cases.
25112 2016-02-15  Tom de Vries  <tom@codesourcery.com>
25114         PR lto/69655
25115         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
25116         do_force_output.
25117         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
25119 2016-02-15  Richard Biener  <rguenther@suse.de>
25121         PR tree-optimization/69776
25122         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
25123         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
25124         indicate whether we can use TBAA to disambiguate against stores.
25125         Use alias-set zero if not.
25126         (visit_reference_op_store): Do not use TBAA when looking up
25127         redundant stores.
25128         * tree-ssa-pre.c (compute_avail): Use TBAA here.
25129         (eliminate_dom_walker::before_dom_children): But not when looking
25130         up redundant stores.
25132 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
25134         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
25136 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25138         *  config/i386/znver1.md
25139         (znver1_pop, znver1_pop_mem,
25140         znver1_load_imov_double_store,
25141         znver1_load_imov_direct_store,
25142         znver1_load_imov_direct_load,
25143         znver1_load_imov_double_load): Add new.
25144         (znver1_insn, znver1_insn_load): Add icmov type.
25145         (znver1_sseavx_fma,
25146         znver1_sseavx_fma_load,
25147         znver1_avx256_fma,
25148         znver1_avx256_fma_load): Fix pipe usage.
25150 2016-02-14  Alan Modra  <amodra@gmail.com>
25152         PR target/68973
25153         * reload.c (find_reloads_address_1): For pre/post-inc/dec
25154         with an invalid hard reg, reload just the reg not the entire
25155         pre/post-inc/dec address expression.
25157 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
25159         PR target/67260
25160         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
25161         fixed R1_REG scratch reg.
25162         (sibcall_value_pcrel_fdpic): Likewise.
25164 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
25166         PR target/67636
25167         PR target/64345
25168         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
25170 2016-02-12  Walter Lee  <walt@tilera.com>
25172         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
25173         * config/tilegx/t-tilegx: Likewise.
25175 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
25177         PR other/69554
25178         * diagnostic-show-locus.c (struct line_span): New struct.
25179         (layout::get_first_line): Delete.
25180         (layout::get_last_line): Delete.
25181         (layout::get_num_line_spans): New member function.
25182         (layout::get_line_span): Likewise.
25183         (layout::print_heading_for_line_span_index_p): Likewise.
25184         (layout::get_expanded_location): Likewise.
25185         (layout::calculate_line_spans): Likewise.
25186         (layout::m_first_line): Delete.
25187         (layout::m_last_line): Delete.
25188         (layout::m_line_spans): New field.
25189         (layout::layout): Update comment.  Replace m_first_line and
25190         m_last_line with m_line_spans, replacing their initialization
25191         with a call to calculate_line_spans.
25192         (diagnostic_show_locus): When printing source lines and
25193         annotations, rather than looping over a single span
25194         of lines, instead loop over each line_span within
25195         the layout, with an inner loop over the lines within them.
25196         Call the context's start_span callback when changing line spans.
25197         * diagnostic.c (diagnostic_initialize): Initialize start_span.
25198         (diagnostic_build_prefix): Break out the building of the location
25199         part of the string into...
25200         (diagnostic_get_location_text): ...this new function, rewriting
25201         it from nested ternary expressions to a sequence of "if"
25202         statements.
25203         (default_diagnostic_start_span_fn): New function.
25204         * diagnostic.h (diagnostic_start_span_fn): New typedef.
25205         (diagnostic_context::start_span): New field.
25206         (default_diagnostic_start_span_fn): New prototype.
25208 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
25210         PR driver/69779
25211         * gcc.c (driver::finalize): Fix cleanup of "specs".
25213 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
25215         PR driver/69265
25216         PR driver/69453
25217         * gcc.c (driver::driver): Initialize m_option_suggestions.
25218         (driver::~driver): Clean up m_option_suggestions.
25219         (suggest_option): Convert to...
25220         (driver::suggest_option): ...this, and split out into
25221         driver::build_option_suggestions and find_closest_string.
25222         (driver::build_option_suggestions): New function, from
25223         first half of suggest_option.  Special-case
25224         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
25225         the sanitizer_opts array.  For options of enum types, add the
25226         various enum values to the candidate strings.
25227         (driver::handle_unrecognized_options): Remove "const".
25228         * gcc.h (driver::handle_unrecognized_options): Likewise.
25229         (driver::build_option_suggestions): New decl.
25230         (driver::suggest_option): New decl.
25231         (driver::m_option_suggestions): New field.
25232         * opts-common.c (add_misspelling_candidates): New function.
25233         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
25234         and make non-static.
25235         * opts.h (sanitizer_opts): New array decl.
25236         (add_misspelling_candidates): New function decl.
25237         * spellcheck.c (find_closest_string): New function.
25238         * spellcheck.h (find_closest_string): New function decl.
25240 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
25242         PR rtl-optimization/69764
25243         PR rtl-optimization/69771
25244         * optabs.c (expand_binop_directly): For shift_optab_p, force
25245         convert_modes with VOIDmode if xop1 has VOIDmode.
25247 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
25249         PR target/69729
25250         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
25251         to correctly determine instrumentation thunks.
25253 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
25255         PR ipa/69241
25256         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
25257         type by reference, force lhs on the call.
25259         PR ipa/68672
25260         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
25261         Compute retval and retbnd early in all cases if split_part_return_p
25262         and return_bb is not EXIT.  Remove all clobber stmts and reset
25263         all debug stmts that refer to SSA_NAMEs defined in split part,
25264         except if it is retval, in that case replace the old retval with the
25265         lhs of the call to the split part.
25267 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25269         revert:
25270         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25272         PR middle-end/66726
25273         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25274         whose result is used in PHI.
25275         (maybe_optimize_range_tests): Likewise.
25276         (final_range_test_p): Likweise.
25278 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25280         PR middle-end/66726
25281         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
25282         whose result is used in PHI.
25283         (maybe_optimize_range_tests): Likewise.
25284         (final_range_test_p): Likweise.
25286 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
25288         * cgraph.c: Spelling fixes - behaviour -> behavior and
25289         neighbour -> neighbor.
25290         * target.def: Likewise.
25291         * sel-sched.c: Likewise.
25292         * config/mips/mips.c: Likewise.
25293         * config/arc/arc.md: Likewise.
25294         * config/arm/cortex-a57.md: Likewise.
25295         * config/arm/arm.c: Likewise.
25296         * config/arm/neon.md: Likewise.
25297         * config/arm/arm-c.c: Likewise.
25298         * config/vms/vms-c.c: Likewise.
25299         * config/s390/s390.c: Likewise.
25300         * config/i386/znver1.md: Likewise.
25301         * config/i386/i386.c: Likewise.
25302         * config/ia64/hpux-unix2003.h: Likewise.
25303         * config/msp430/msp430.md: Likewise.
25304         * config/rx/rx.c: Likewise.
25305         * config/rx/rx.md: Likewise.
25306         * config/aarch64/aarch64-simd.md: Likewise.
25307         * config/aarch64/aarch64.c: Likewise.
25308         * config/nvptx/nvptx.c: Likewise.
25309         * config/bfin/bfin.c: Likewise.
25310         * config/cris/cris.opt: Likewise.
25311         * config/rs6000/rs6000.c: Likewise.
25312         * target.h: Likewise.
25313         * spellcheck.c: Likewise.
25314         * ira-build.c: Likewise.
25315         * tree-inline.c: Likewise.
25316         * builtins.c: Likewise.
25317         * lra-constraints.c: Likewise.
25318         * explow.c: Likewise.
25319         * hwint.h: Likewise.
25320         * targhooks.c: Likewise.
25321         * tree-vect-data-refs.c: Likewise.
25322         * expr.c: Likewise.
25323         * doc/tm.texi: Likewise.
25324         * doc/extend.texi: Likewise.
25325         * doc/install.texi: Likewise.
25326         * doc/md.texi: Likewise.
25327         * tree-ssa-tail-merge.c: Likewise.
25328         * sched-int.h: Likewise.
25329         * match.pd: Likewise.
25330         * sched-ebb.c: Likewise.
25331         * target.def (omit_struct_return_reg): Likewise.
25332         * gimple-ssa-isolate-paths.c: Likewise.
25333         (find_implicit_erroneous_behaviour): Renamed to...
25334         (find_implicit_erroneous_behavior): ... this.
25335         (find_explicit_erroneous_behaviour): Renamed to...
25336         (find_explicit_erroneous_behavior): ... this.
25337         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
25339 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
25341         PR rtl-optimization/64682
25342         PR rtl-optimization/69567
25343         PR rtl-optimization/69737
25344         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
25345         in I2 as well, just lose it.
25347 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25349         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
25350         New variable.
25351         (aarch64_last_printed_tune_string): Likewise.
25352         (aarch64_declare_function_name): Only output .arch assembler
25353         directive if it will be different from the previously output
25354         directive.  Same for .tune comment but only if -dA is set.
25355         (aarch64_start_file): New function.
25356         (TARGET_ASM_FILE_START): Define.
25358 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
25360         PR plugins/69758
25361         * Makefile.in (PLUGIN_HEADERS): Add params.list.
25363 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
25365         PR target/65313
25366         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
25367         -Wmaybe-uninitialized warning.
25369 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
25371         PR target/69713
25372         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
25374 2016-02-11  Richard Biener  <rguenther@suse.de>
25376         PR rtl-optimization/69291
25377         * ifcvt.c (noce_try_store_flag_constants): Do not allow
25378         subexpressions affected by changing the result.
25380 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
25382         PR target/69148
25383         * lra-constraints.c (curr_insn_transform): Find in/out operands
25384         for secondary memory moves.  Update dups.
25386 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
25388         PR tree-optimization/69652
25389         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
25390         to nested loop, did source re-formatting, skip debug statements,
25391         add check on statement with volatile operand, remove dead scalar
25392         statements.
25394 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
25395             Patrick Palka  <ppalka@gcc.gnu.org>
25397         PR ipa/69241
25398         PR c++/69649
25399         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
25400         calls if the return type is TREE_ADDRESSABLE.
25401         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
25402         * ipa-split.c (split_function): Fix doubled "we" in comment.
25403         Use void return type for the split part even if
25404         !split_point->split_part_set_retval.
25406 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
25408         PR tree-optimization/68021
25409         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
25410         when computing the value of biv cand by itself.
25412 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
25414         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
25415         (cortexa57_tunings): Likewise.
25416         (cortexa72_tunings): Likewise.
25417         (arch_macro_fusion_pair_p): Add support for AES fusion.
25418         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
25419         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
25420         Allow virtual registers before reload so early scheduling works.
25421         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
25422         correct latency and pipeline.
25423         (cortex_a57_crypto_complex): Likewise.
25424         (cortex_a57_crypto_xor): Likewise.
25425         (define_bypass): Add AES bypass.
25427 2016-02-10  Richard Biener  <rguenther@suse.de>
25429         PR tree-optimization/69726
25430         * passes.def: Add DCE pass before late uninit.
25431         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
25432         really fixup if-conversions job.
25434 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
25436         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
25437         (arm_cortex_a57_tune): Likewise.
25438         (aarch_macro_fusion_pair_p): Add support for AES fusion.
25439         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
25441 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25443         * timevar.def (TV_PHASE_DBGINFO): Delete.
25444         (TV_PHASE_CHECK_DBGINFO): Likewise.
25445         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
25447 2016-02-10  Richard Biener  <rguenther@suse.de>
25449         PR tree-optimization/69719
25450         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25451         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
25453 2016-02-09  Andrew Pinski  <apinski@cavium.com>
25455         PR tree-opt/69282
25456         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
25457         get_vcond_mask_icode returns false.
25459 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
25461         PR target/68404
25462         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
25463         an ADDIS that adds a pointer to a large constant that sets the
25464         upper16 bits with a load operation.
25466 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
25468         PR target/68532
25469         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
25470         order.
25471         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
25472         endian.
25473         (vzipq_s16): Likewise.
25474         (vzipq_s32): Likewise.
25475         (vzipq_f32): Likewise.
25476         (vzipq_u8): Likewise.
25477         (vzipq_u16): Likewise.
25478         (vzipq_u32): Likewise.
25479         (vzipq_p8): Likewise.
25480         (vzipq_p16): Likewise.
25482 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
25484         PR target/68532
25485         * config/arm/arm.c (neon_endian_lane_map): New function.
25486         (neon_vector_pair_endian_lane_map): New function.
25487         (arm_evpc_neon_vuzp): Allow for big endian lane order.
25488         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
25489         endian.
25490         (vuzpq_s16): Likewise.
25491         (vuzpq_s32): Likewise.
25492         (vuzpq_f32): Likewise.
25493         (vuzpq_u8): Likewise.
25494         (vuzpq_u16): Likewise.
25495         (vuzpq_u32): Likewise.
25496         (vuzpq_p8): Likewise.
25497         (vuzpq_p16): Likewise.
25499 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
25501         PR target/69634
25502         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
25503         debug insns.
25505 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
25507         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
25508         truncate const_int operand 1 to QImode.
25510 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25512         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
25513         corresponding to an abnormal edge.
25515 2016-02-09  Tom de Vries  <tom@codesourcery.com>
25517         PR tree-optimization/69599
25518         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
25519         function.
25520         (find_func_aliases_for_builtin_call, find_func_clobbers)
25521         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
25522         partition.
25524 2016-02-09  Richard Biener  <rguenther@suse.de>
25526         PR tree-optimization/69715
25527         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
25528         LHS on calls as non-rewritable.
25530 2016-02-09  Tom de Vries  <tom@codesourcery.com>
25532         PR lto/69707
25533         * lto-wrapper.c (append_diag_options): New function.
25534         (compile_offload_image): Call append_diag_options.
25536 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
25538         PR other/69722
25539         * doc/extend.texi (Flag Output Operands): Correct sectioning.
25540         Minor copy-edit to fix verb tenses.
25542 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
25544         PR tree-optimization/69209
25545         * ipa-split.c (split_function): If split part is not
25546         returning retval, retval has gimple type but is not
25547         gimple value, force it into a SSA_NAME first.
25549 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
25551         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
25552         outdated section.
25554 2016-02-08  Jason Merrill  <jason@redhat.com>
25556         PR c++/69631
25557         * convert.c (convert_to_integer_1): Check dofold on truncation
25558         distribution.
25559         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
25560         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
25561         Rename from *_nofold.
25562         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
25563         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
25565 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
25567         PR target/60410
25568         * tree.c (build_common_tree_nodes): Remove short_double argument.
25569         All callers changed.
25570         * tree.h (build_common_tree_nodes): Adjust declaration.
25571         * doc/invoke.texi (-fshort-double): Remove documentation.
25572         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25573         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
25574         * lto-wrapper.c (merge_and_complain, append_compiler_options)
25575         (append_linker_options): Don't handle OPT_fshort_double.
25577         PR rtl-optimization/68730
25578         * lra-remat.c (insn_to_cand_activation): New static variable.
25579         (lra_remat): Allocate and free it.
25580         (create_cand): New arg activation. Initialize a field in
25581         insn_to_cand_activation if it is nonnull.
25582         (create_cands): Pass the activation insn to create_cand when making
25583         a candidate involving an output reload.  Reorganize code a little.
25584         (do_remat): Keep track of active status of candidates in a separate
25585         bitmap.
25587 2016-02-08  Richard Biener  <rguenther@suse.de>
25589         PR tree-optimization/69719
25590         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25591         Properly use absolute of the difference of the two offsets to
25592         compare or adjust the segment length.
25594 2016-02-08  Richard Biener  <rguenther@suse.de>
25595             Jeff Law  <law@redhat.com>
25597         PR target/68273
25598         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
25599         types for anonymous SSA names.
25601 2016-02-08   Richard Biener  <rguenther@suse.de>
25603         PR rtl-optimization/69274
25604         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
25606 2016-02-08  Jeff Law  <law@redhat.com>
25608         PR tree-optimization/65917
25609         * tree-ssa-dom.c (record_temporary_equivalences): Record both
25610         equivalences from if (x == y) style conditionals.
25611         (loop_depth_of_name): Remove.
25612         (record_equality): Remove loop depth check.
25613         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
25614         (const_and_copies::record_const_or_copy_raw): New member function.
25615         * tree-ssa-scopedtables.c
25616         (const_and_copies::record_const_or_copy_raw): New, factored out of
25617         (const_and_copies::record_const_or_copy): Call new member function.
25619 2016-02-05  Jeff Law  <law@redhat.com>
25621         PR tree-optimization/68541
25622         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
25623         (count_stmts_in_block): New function.
25624         (poor_ifcvt_candidate_code): Likewise.
25625         (is_feasible_trace): Add some heuristics to determine when path
25626         splitting is profitable.
25627         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
25628         is a diamond with a single exit.
25630 2016-02-05  Martin Sebor  <msebor@redhat.com>
25632         PR c++/69662
25633         * doc/invoke.texi: Update -Wplacement-new to take an optional
25634         argument.
25636 2016-02-06  Richard Henderson  <rth@redhat.com>
25638         PR c/69643
25639         * tree.c (tree_nop_conversion_p): Do not strip casts into or
25640         out of non-standard address spaces.
25642 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
25644         PR rtl-optimization/69691
25645         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
25647 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
25649         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
25650         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
25651         (*ieee128_mfvsrd_64bit): Likewise.
25652         (*ieee128_mfvsrd_32bit): Likewise.
25654 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
25656         PR target/69369
25657         Revert r232560:
25658         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
25660         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25661         instrumented_version.
25663 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
25665         * doc/invoke.texi (Optimize Options): In table of --param options
25666         rename second occurrence of tracer-min-branch-ratio to
25667         tracer-min-branch-probability, rename
25668         tracer-min-branch-ratio-feedback to
25669         tracer-min-branch-probability-feedback and clarify description,
25670         rename sched-spec-state-edge-prob-cutoff to
25671         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
25672         to selsched-insns-to-rename, rename lto-minpartition to
25673         lto-min-partition, delete reorder-blocks-duplicate and
25674         reorder-blocks-duplicate-feedback.
25676 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25678         * config/s390/s390.c (s390_register_info_set_ranges): Remove
25679         superfluous loops.
25681 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25683         * doc/extend.texi: S/390: Correct some typos.
25685 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25687         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
25689 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25691         PR target/69625
25692         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
25693         (s390_register_info_gprtofpr): Use new macros above.
25694         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
25695         its name.
25696         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
25697         its name.  Adjust restore and save gpr ranges.
25698         (s390_register_info_set_ranges): New function.
25699         (s390_register_info): Use new macros above.  Call
25700         s390_register_info_set_ranges.
25701         (s390_optimize_register_info): Likewise.
25702         (s390_hard_regno_rename_ok): Use new macros.
25703         (s390_hard_regno_scratch_ok): Likewise.
25704         (s390_emit_epilogue): Likewise.
25705         (s390_can_use_return_insn): Likewise.
25706         (s390_optimize_prologue): Likewise.
25707         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
25709 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
25711         PR bootstrap/69677
25712         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
25713         alignment fixes.
25714         (ix86_option_override_internal): Disable TARGET_STV even for
25715         -m{incoming,preferred}-stack-boundary=3.
25717 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25719         * config.gcc: Mark deprecated rtems targets as obsolete.
25721 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
25723         PR rtl-optimization/64682
25724         PR rtl-optimization/69567
25725         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
25726         before I2 only if the register is both used and set in I2.
25728 2016-02-04  DJ Delorie  <dj@redhat.com>
25730         * config/msp430/msp430.c (msp430_start_function): Add function type.
25732 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
25734         PR fortran/69368
25735         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
25737 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
25739         PR rtl-optimization/69577
25740         Revert:
25741         2015-10-29  Richard Henderson  <rth@redhat.com>
25743         PR target/68124
25744         PR rtl-opt/67609
25745         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
25746         sse check to the exact conditions of PR 67609.
25748 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
25750         PR target/69667
25751         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
25752         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
25753         not allowed into the traditional Altivec registers.
25754         (movtd_64bit_nodm): Likewise.
25755         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
25757 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
25759         * config/aarch64/cortex-a57-fma-steering.c
25760         (aarch64_register_fma_steering): Remove "static" from arguments
25761         to register_pass.
25763 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
25765         PR target/69619
25766         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
25767         twice when complex.
25769 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
25771         * doc/invoke.texi: Delete -mno-fma4.
25773 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
25775         PR rtl-optimization/69577
25776         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
25777         (find_subregs_of_mode): Update accordingly.  Iterate over partial
25778         definitions.
25780 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
25782         * config/arm/arm-protos.h (neon_reinterpret): Remove.
25783         * config/arm/arm.c (neon_reinterpret): Remove.
25784         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
25785         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
25786         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
25787         vreinterpretti): Remove.
25788         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
25789         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
25790         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
25791         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
25792         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
25793         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
25794         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
25795         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
25796         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
25797         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
25798         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
25799         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
25800         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
25801         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
25802         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
25803         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
25804         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
25805         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
25806         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
25807         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
25808         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
25809         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
25810         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
25811         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
25812         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
25813         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
25814         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
25815         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
25816         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
25817         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
25818         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
25819         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
25820         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
25821         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
25822         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
25823         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
25824         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
25825         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
25826         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
25827         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
25828         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
25829         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
25830         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
25831         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
25832         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
25833         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
25834         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
25835         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
25836         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
25837         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
25838         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
25839         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
25840         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
25841         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
25842         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
25843         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
25844         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
25845         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
25846         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
25847         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
25848         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
25849         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
25850         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
25851         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
25852         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
25853         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
25854         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
25855         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
25856         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
25857         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
25858         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
25859         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
25860         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
25861         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
25862         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
25863         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
25864         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
25865         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
25866         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
25867         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
25868         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
25869         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
25870         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
25871         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
25872         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
25873         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
25874         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
25875         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
25876         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
25877         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
25878         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
25879         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
25880         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
25881         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
25882         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
25883         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
25884         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
25885         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
25886         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
25887         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
25888         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
25889         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
25890         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
25892 2016-02-04  Martin Liska  <mliska@suse.cz>
25894         PR sanitizer/69276
25895         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
25896         that are gimple_store_p.
25897         (maybe_instrument_call): Likewise.
25899 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
25901         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
25902         register scaling out of memory reference and comment why.
25904 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25906         PR target/65932
25907         PR target/67714
25908         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
25909         folding the source of a SET.
25911 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25913         PR target/65932
25914         PR target/67714
25915         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
25916         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
25918 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
25920         PR target/65932
25921         PR target/67714
25922         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
25923         HImode.
25925 2016-02-04  Christian Bruel  <christian.bruel@st.com>
25927         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
25928         * config/arm/arm.c (arm_set_current_function): Likewise.
25930 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
25931             Ilya Enkovich  <enkovich.gnu@gmail.com>
25932             H.J. Lu  <hongjiu.lu@intel.com>
25934         PR target/69454
25935         * config/i386/i386.c (convert_scalars_to_vector): Remove
25936         stack alignment fixes.
25937         (ix86_option_override_internal): Disable TARGET_STV if stack
25938         might not be aligned enough.
25939         (ix86_minimum_alignment): Assert that TARGET_STV is false.
25941 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
25943         * config/i386/x86-tune.def: Disable default prefetching
25944         for -march=znver1.
25946 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25947             Vladimir Makarov  <vmakarov@redhat.com>
25949         PR target/69461
25950         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
25951         in validating fused toc addresses.
25953 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
25955         PR c/69627
25956         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
25957         range->m_caret fields if range->m_show_caret_p is false.
25959         PR target/69644
25960         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25961         Force oldval into register if it does not satisfy reg_or_short_operand
25962         predicate.  Fix up formatting.
25964 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
25965             Alexandre Oliva  <aoliva@redhat.com>
25967         PR target/69461
25968         * lra-constraints.c (simplify_operand_subreg): Check additionally
25969         address validity after potential reloading.
25970         (process_address_1): Check insns validity.  In case of failure do
25971         nothing.
25973 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
25975         PR target/69118
25976         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
25977         Fix target.
25979 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
25981         * wide-int.cc (canonize_uhwi): New function.
25982         (wi::divmod_internal): Use it.
25984 2016-02-02  James Norris  <jnorris@codesourcery.com>
25986         * gimplify.c (omp_notice_variable): Add usage check.
25988 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
25990         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
25991         like LE, GE, LT, GT when emitting relational operator.
25993 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
25995         * ira-costs.c (find_costs_and_classes): Add extra argument.
25996         * target.def (ira_change_pseudo_allocno_class): Add parameter.
25997         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
25998         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
25999         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
26000         Add best_class parameter, and return it if not ALL_REGS.
26001         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
26002         Add parameter.
26003         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
26004         Update target hook.
26006 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
26008         * config/aarch64/aarch64.c
26009         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
26010         (aarch64_ira_change_pseudo_allocno_class): New function.
26012 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
26014         PR target/67032
26015         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
26017 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26019         * config/avr/avr.c (avr_option_override): Set
26020         PARAM_ALLOW_STORE_DATA_RACES to 1.
26022 2016-02-02  Richard Biener  <rguenther@suse.de>
26024         PR tree-optimization/69595
26025         * match.pd: Add range test simplifications to true/false.
26027 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
26029         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
26030         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
26031         instead.
26033 2016-02-02  Richard Biener  <rguenther@suse.de>
26035         PR tree-optimization/69606
26036         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
26037         info on the result before moving a stmt.
26039 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
26041         PR middle-end/68542
26042         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
26043         branch with vector comparison.
26044         * config/i386/sse.md (VI48_AVX): New mode iterator.
26045         (define_expand "cbranch<mode>4): Add support for conditional branch
26046         with vector comparison.
26047         * tree-vect-loop.c (optimize_mask_stores): New function.
26048         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
26049         has_mask_store field of vect_info.
26050         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
26051         vectorized loops having masked stores after vec_info destroy.
26052         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
26053         correspondent macros.
26054         (optimize_mask_stores): Add prototype.
26056 2016-02-02  Alan Modra  <amodra@gmail.com>
26058         PR target/69548
26059         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
26060         allow subregs.
26062 2016-02-02  Alan Modra  <amodra@gmail.com>
26064         PR target/68662
26065         * config/rs6000/rs6000.c (need_toc_init): New var, set it
26066         whenever toc_label_name used.
26067         (rs6000_file_start): Don't set up toc section here,
26068         (rs6000_output_function_epilogue): do so here instead,
26069         (rs6000_xcoff_file_start): and here.
26070         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
26071         (load_toc_aix_di): Likewise.
26073 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
26075         PR rtl-optimization/69592
26076         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
26077         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
26078         (num_sign_bit_copies_binary_arith_p): New inline function.
26079         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
26081 2016-02-01  Jeff Law  <law@redhat.com>
26083         PR tree-optimization/69580
26084         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
26085         * tree-ssa-threadbackward.c
26086         (fsm_find_control_statement_thread_paths): Do not try to walk
26087         through large PHI nodes.
26089 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
26091         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
26092         when count is incremented above limit, don't analyze further
26093         insns afterwards.
26095         * omp-low.c (oacc_parse_default_dims): Avoid
26096         -Wsign-compare warning, make sure value fits into int
26097         rather than just unsigned int.
26099 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
26101         PR tree-optimization/67921
26102         * fold-const.c (split_tree): New parameters.  Convert pointer
26103         type variable part to proper type before negating.
26104         (fold_binary_loc): Pass new arguments to split_tree.
26106 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
26108         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
26109         (nvptx_goacc_validate_dims): Extend to handle global defaults.
26110         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
26111         * doc/tm.texti: Rebuilt.
26112         * doc/invoke.texi (fopenacc-dim): Document.
26113         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
26114         (append_compiler_options): Likewise.
26115         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
26116         (oacc_parse_default_dims): New.
26117         (oacc_validate_dims): Add USED arg.  Select non-unity default when
26118         possible.
26119         (oacc_loop_fixed_partitions): Return mask of used partitions.
26120         (oacc_loop_auto_partitions): Emit dump info.
26121         (oacc_loop_partition): Return mask of used partitions.
26122         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
26123         loop partitioning and validation calls.
26125 2016-02-01  Richard Biener  <rguenther@suse.de>
26127         PR middle-end/69556
26128         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
26130 2016-02-01  Richard Biener  <rguenther@suse.de>
26132         PR tree-optimization/69574
26133         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
26134         of asserting return chrec_dont_know.
26136 2016-02-01  Martin Liska  <mliska@suse.cz>
26138         * mem-stats-traits.h: Add copyright header.
26139         * mem-stats.h: Likewise.
26141 2016-02-01  Richard Biener  <rguenther@suse.de>
26143         PR tree-optimization/69579
26144         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
26145         Do not propagate through abnormal PHI results.
26147 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
26149         * postreload.c (reload_cse_simplify): Remove dead code.
26151 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
26153         PR rtl-optimization/69570
26154         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
26155         if there is more than one set, not if there is a single set.
26157 2016-02-01  Richard Henderson  <rth@redhat.com>
26159         PR rtl-opt/69535
26160         * combine.c (make_compound_operation): When looking through a
26161         subreg, make sure to re-extend to the width of the outer mode.
26163 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
26165         PR tree-optimization/69546
26166         * wide-int.cc (wi::divmod_internal): For unsigned division
26167         where both operands fit into uhwi, if o1 is 1 and o0 has
26168         msb set, if divident_prec is larger than bits per hwi,
26169         clear another quotient word and return 2 instead of 1.
26170         Similarly for remainder with msb in HWI set, if dividend_prec
26171         is larger than bits per hwi.
26173 2016-01-29  Martin Jambor  <mjambor@suse.cz>
26175         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
26176         Use short lowercase names.
26177         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
26178         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
26179         acq_rel one.  Protect warning agains segfaults if
26180         get_memory_order_name returns NULL.
26181         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
26182         with release semantics.  Do not warn if get_memory_order already did.
26183         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
26184         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
26185         if get_memory_order already did.
26187 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
26189         * doc/install.texi: Document that isl-0.16 is supported.
26191 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
26193         PR target/69299
26194         * config/i386/constraints.md (Bm): Describe as special memory
26195         constraint.
26196         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
26197         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26198         * genpreds.c (struct constraint_data): Add is_special_memory.
26199         (have_special_memory_constraints, special_memory_start): New
26200         static vars.
26201         (special_memory_end): Ditto.
26202         (add_constraint): Add new arg is_special_memory.  Add code to
26203         process its true value.  Update have_special_memory_constraints.
26204         (process_define_constraint): Pass the new arg.
26205         (process_define_register_constraint): Ditto.
26206         (choose_enum_order): Process special memory.
26207         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
26208         function insn_extra_special_memory_constraint.
26209         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26210         * gensupport.c (process_rtx): Process
26211         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
26212         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
26213         * ira-lives.c (single_reg_class): Use
26214         insn_extra_special_memory_constraint.
26215         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
26216         * lra-constraints.c (process_alt_operands): Ditto.
26217         (curr_insn_transform): Use insn_extra_special_memory_constraint.
26218         * recog.c (asm_operand_ok, preprocess_constraints): Process
26219         CT_SPECIAL_MEMORY.
26220         * reload.c (find_reloads): Ditto.
26221         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
26222         * stmt.c (parse_input_constraint): Use
26223         insn_extra_special_memory_constraint.
26225 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
26227         PR target/69530
26228         * lra-splill.c (lra_final_code_change): Revert r229087 by
26229         removing all sub-registers.
26231 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
26233         PR target/65604
26234         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
26236 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
26238         PR target/69551
26239         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
26240         SSE1, copy target into the temporary reg first before recursing
26241         on it.
26243 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
26245         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
26246         with vm.
26248 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
26250         * ginclude/stdarg.h: Test __cplusplus instead of
26251         __GXX_EXPERIMENTAL_CXX0X__.
26253 2016-01-29  Richard Biener  <rguenther@suse.de>
26255         PR tree-optimization/69547
26256         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
26257         Do not mark clobbers necessary.
26258         (mark_all_reaching_defs_necessary_1): Likewise.
26260 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26262         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
26263         declaration name with %qs and print it in both error messages.
26264         Also fix indentation.
26266 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26268         PR other/69006
26269         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
26270         trailing blank line from error message.
26272 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
26274         PR c++/69462
26275         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
26276         for C++-11.
26278 2016-01-29  Richard Biener  <rguenther@suse.de>
26280         PR middle-end/69537
26281         * match.pd: Allow all integral types when simplifying a
26282         widening or sign-changing conversion.
26284 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
26286         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
26287         back to setting codegen_error to fail codegen.
26289 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
26291         PR target/69459
26292         * config/i386/constraints.md (C): Only accept constant zero operand.
26293         (BC): New constraint.
26294         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
26295         instead of C constraint.
26296         * doc/md.texi (Machine Constraints): Update description
26297         of C constraint.
26299 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
26301         PR target/68400
26302         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
26304 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
26306         PR middle-end/69542
26307         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
26308         non-debug insns.
26310 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
26312         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
26313         branches if using guessed profile.
26315 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
26317         * graphite-optimize-isl.c (optimize_isl): Fix dump.
26319 2016-01-28  Richard Henderson  <rth@redhat.com>
26321         PR target/69305
26322         * config/aarch64/aarch64-modes.def (CC_Cmode): New
26323         * config/aarch64/aarch64-protos.h: Update.
26324         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
26325         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
26326         (aarch64_get_condition_code_1): Handle CC_Cmode.
26327         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
26328         (*add<mode>3_compareC_cconly_imm): New.
26329         (*add<mode>3_compareC_cconly): New.
26330         (*add<mode>3_compareC_imm): New.
26331         (add<mode>3_compareC): New.
26332         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
26333         to be first.  Use aarch64_carry_operation.
26334         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
26335         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
26336         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
26337         (subti3): Use subdi3_compare1.
26338         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
26339         (sub<mode>3_compare1): New.
26340         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
26341         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
26342         (*subsi3_carryin_uxtw): Likewise.
26343         (*ngc<mode>, *ngcsi_uxtw): Likewise.
26344         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
26345         * config/aarch64/iterators.md (DWI): New.
26346         * config/aarch64/predicates.md (aarch64_carry_operation): New.
26347         (aarch64_borrow_operation): New.
26349 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
26351         * graphite-optimize-isl.c (optimize_isl): Print a different debug
26352         message when isl does not return a valid schedule.
26354 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
26356         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
26357         Remove comments from class declarations: they are already in the code
26358         close by the defs.
26360 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
26362         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
26363         codegen_error_p.
26364         (ternary_op_to_tree): Same.
26365         (unary_op_to_tree): Same.
26366         (nary_op_to_tree): Same.
26367         (gcc_expression_from_isl_expr_op): Same.
26368         (gcc_expression_from_isl_expression): Same.
26369         (graphite_create_new_loop): Same.
26370         (graphite_create_new_loop_guard): Same.
26371         (build_iv_mapping): Same.
26372         (graphite_create_new_guard): Same.
26373         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
26374         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
26376 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
26378         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
26379         instead of setting codegen_error to fail codegen.
26381 2016-01-28  Jason Merrill  <jason@redhat.com>
26383         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
26385 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
26387         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26388         Remove CONST_INT_P check in CCMP cost calculation.
26390 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
26392         * config/aarch64/aarch64.c (generic_vector_cost):
26393         Set vec_permute_cost.
26394         (cortexa57_vector_cost): Likewise.
26395         (exynosm1_vector_cost): Likewise.
26396         (xgene1_vector_cost): Likewise.
26397         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
26398         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
26399         Add vec_permute_cost entry.
26401 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
26403         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
26404         immediate as %1.
26405         (add<mode>3_compare0): Likewise.
26406         (addsi3_compare0_uxtw): Likewise.
26407         (add<mode>3nr_compare0): Likewise.
26408         (compare_neg<mode>): Likewise.
26409         (<optab><mode>3): Likewise.
26411 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
26413         * tree-vect-stmts.c (vectorizable_comparison): Add
26414         NULL check for vectype.
26416 2016-01-28  Richard Biener  <rguenther@suse.de>
26418         PR tree-optimization/69466
26419         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
26420         Account for PHIs we couldn't duplicate.
26422 2016-01-28  Martin Liska  <mliska@suse.cz>
26424         PR pch/68758
26425         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
26426         instead of ENABLE_VALGRIND_CHECKING.
26428 2016-01-27  Richard Henderson  <rth@redhat.com>
26430         PR rtl-opt/69447
26431         * lra-remat.c (subreg_regs): New.
26432         (dump_candidates_and_remat_bb_data): Dump it.
26433         (operand_to_remat): Reject if operand in subreg_regs.
26434         (set_bb_regs): Collect subreg_regs.
26435         (lra_remat): Init and free subreg_regs.  Compute
26436         calculate_local_reg_remat_bb_data before create_cands.
26438 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
26440         PR target/68986
26441         * config/i386/i386.c (ix86_update_stack_boundary): Don't
26442         change stack_alignment_needed for __tls_get_addr call.
26444 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
26446         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
26448 2016-01-27  Jeff Law  <law@redhat.com>
26450         PR tree-optimization/68398
26451         PR tree-optimization/69196
26452         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
26453         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
26454         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26455         Only count PHIs in the last block in the path.  The others will
26456         const/copy propagate away.  Add heuristic to allow more irreducible
26457         subloops to be created when it is likely profitable to do so.
26459         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26460         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
26461         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
26463 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
26465         PR lto/69254
26466         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
26467         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
26468         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
26469         * tree-streamer-in.c: Include asan.h.
26470         (streamer_get_builtin_tree): For builtins in sanitizer
26471         range call initialize_sanitizer_builtins and retry.
26473 2016-01-27  Ian Lance Taylor  <iant@google.com>
26475         * common.opt (fkeep-gc-roots-live): New undocumented option.
26476         * tree-ssa-loop-ivopts.c (add_candidate_1): If
26477         -fkeep-gc-roots-live, skip pointers.
26478         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
26479         NULL.
26481 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
26483         PR target/69512
26484         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
26485         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
26487 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
26489         PR target/68380
26490         * configure.ac: NetBSD provides SSP in its C library.
26491         * configure: Updated.
26493 2016-01-27  Richard Biener  <rguenther@suse.de>
26495         PR tree-optimization/69166
26496         * tree-vect-loop.c (vect_is_simple_reduction): Always check
26497         reduction code for commutativity / associativity.
26499 2016-01-27  Martin Jambor  <mjambor@suse.cz>
26501         PR tree-optimization/69355
26502         * tree-sra.c (analyze_access_subtree): Correct hole detection when
26503         total_scalarization fails.
26505 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
26507         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
26508         power9.
26510 2016-01-27  Christian Bruel  <christian.bruel@st.com>
26512         PR target/69245
26513         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
26514         Move arm_reset_previous_fndecl and set_target_option_current_node in
26515         the conditional part.  Call save_restore_target_globals.
26516         * config/arm/arm.c (arm_set_current_function):
26517         Refactor to better support #pragma target and attribute mix.
26518         Call save_restore_target_globals.
26519         * config/arm/arm-protos.h (save_restore_target_globals): New function.
26521 2016-01-27  Martin Liska  <mliska@suse.cz>
26523         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
26524         reference for an HSA kernel and its host function.
26526 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
26528         PR tree-optimization/69399
26529         * wide-int.h (wi::lrshift): For larger precisions, only
26530         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
26532 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
26534         * config/arc/predicates.md (proper_comparison_operator): Reject
26535         constant-constant comparison.
26537 2016-01-26  Tom de Vries  <tom@codesourcery.com>
26539         PR tree-optimization/69110
26540         * tree-data-ref.c (initialize_data_dependence_relation): Handle
26541         DR_NUM_DIMENSIONS == 0.
26543 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
26544             Sebastian Pop  <s.pop@samsung.com>
26546         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
26547         isl_ast_op_cond and isl_ast_op_select.
26548         (gcc_expression_from_isl_expr_op): Same.
26550 2016-01-26  Jason Merrill  <jason@redhat.com>
26552         PR c++/68782
26553         * tree.c (recompute_constructor_flags): Split out from
26554         build_constructor.
26555         (verify_constructor_flags): New.
26556         * tree.h: Declare them.
26558 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
26560         PR rtl-optimization/69217
26561         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
26562         are no TYPE_FIELDS set for the record type.
26564 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
26566         PR target/68662
26567         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
26568         toc_label_name unconditionally.
26569         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
26570         SYMBOL_REF string.  Use toc_label_name instead of constructing
26571         LCTOC1.
26572         (rs6000_elf_declare_function_name): Use toc_label_name instead of
26573         constructing LCTOC1.
26575 2016-01-26  Martin Sebor  <msebor@redhat.com>
26577         PR other/69477
26578         * doc/extend.texi (Common Type Attributes): Move text that talks about
26579         attribute packed from attribute aligned to the section discussing
26580         the former attribute for clarity.
26582 2016-01-26  Richard Henderson  <rth@redhat.com>
26584         PR middle-end/60908
26585         * trans-mem.c (tm_region_init): Mark entry block as visited.
26587 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
26589         PR other/69006
26590         * diagnostic-show-locus.c (layout::print_source_line): Replace
26591         call to pp_newline with call to layout::print_newline.
26592         (layout::print_annotation_line): Likewise.
26593         (layout::move_to_column): Likewise.
26594         (layout::print_any_fixits): After printing any fixits, print a
26595         trailing newline, if necessary.
26596         (layout::print_newline): New method, resetting any colorization
26597         before a newline.
26598         (diagnostic_show_locus): Move the pp_newline to before the
26599         early bailout.  Remove dummy block enclosing the layout instance.
26600         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
26601         of pp_newline_and_flush with pp_flush.
26602         (diagnostic_append_note): Delete use of pp_newline.
26603         (diagnostic_append_note_at_rich_loc): Delete.
26604         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
26605         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
26606         when newline characters are added to the buffer.
26608 2016-01-26  Michael Matz  <matz@suse.de>
26610         * configure.ac (ac_cv_std_swap_in_utility): New test.
26611         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
26612         * configure: Regenerate.
26613         * config.in: Regenerate.
26615 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
26617         * config/arc/arc.md (cstoresi4): Force operand into register.
26618         (arcset<code>): Fix predicate.
26619         (arcsetltu): Likewise.
26620         (arcsetgeu): Likewise.
26621         (arcsethi): Likewise.
26622         (arcsetls): Likewise.
26624 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
26626         PR tree-optimization/69483
26627         * gimple-fold.c (canonicalize_constructor_val): Return NULL
26628         if base has error_mark_node type.
26630 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
26632         PR target/68620
26633         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
26634         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
26635         New helper macros.
26636         (vget_lane_f16): Handle big-endian.
26637         (vgetq_lane_f16): Likewise.
26638         (vset_lane_f16): Likewise.
26639         (vsetq_lane_f16): Likewise.
26640         * config/arm/iterators.md (VQXMOV): Add V8HF.
26641         (VDQ): Add V4HF and V8HF.
26642         (V_reg): Handle V4HF and V8HF.
26643         (Is_float_mode): Likewise.
26644         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
26645         neon_vdup_nv8hf): New patterns.
26646         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
26647         Use VD_LANE iterator.
26648         (neon_vld1_dup<mode>): Use VQ2 iterator.
26650 2016-01-26  Nathan Sidwell  <nathan@acm.org>
26652         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
26653         (set_oacc_fn_attrib): Add IS_KERNEL arg.
26654         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
26655         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
26656         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
26657         (oacc_validate_dims): Add LEVEL arg, don't return level.
26658         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
26659         oacc_validate_dims.
26660         (execute_oacc_device_lower): Adjust, add more dump output.
26661         * tree-ssa-loop.c (gate_oacc_kernels): Use
26662         oacc_fn_attrib_kernels_p.
26663         * tree-parloops.c (create_parallel_loop): Adjust
26664         set_oacc_fn_attrib call.
26666 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
26668         PR lto/69254
26669         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
26670         (append_compiler_options): Handle -fcilkplus.
26671         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
26673 2016-01-26  Nick Clifton  <nickc@redhat.com>
26675         PR target/66655
26676         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
26677         been marked as DECL_ONE_ONLY but we do not the means to make it
26678         so, then do not allow it to bind locally.
26680 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
26682         PR lto/69254
26683         * opts.h (parse_sanitizer_options): New prototype.
26684         * opts.c (sanitizer_opts): New array.
26685         (parse_sanitizer_options): New function.
26686         (common_handle_option): Use parse_sanitizer_options.
26688 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
26690         PR target/68986
26691         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
26692         alignment adjustment to ...
26693         (ix86_update_stack_boundary): Here.  Don't over-align stack for
26694         __tls_get_addr.
26695         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
26696         if __tls_get_addr is called.
26698 2016-01-26  Christian Bruel  <christian.bruel@st.com>
26700         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
26702 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26704         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
26706 2016-01-26  Richard Biener  <rguenther@suse.de>
26708         PR middle-end/69467
26709         * match.pd: Guard X * CST CMP 0 pattern with single_use.
26711 2016-01-26  Richard Biener  <rguenther@suse.de>
26713         PR tree-optimization/69452
26714         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
26715         (move_computations_dom_walker::before_dom_children): Rename
26716         to ...
26717         (move_computations_worker): This.
26718         (move_computations): Perform an RPO rather than a DOM walk.
26720 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
26722         PR target/69442
26723         * combine.c (combine_instructions): For REG_EQUAL note with
26724         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
26725         to the underlying register.
26726         * doc/rtl.texi (REG_EQUAL): Document the behavior of
26727         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
26729 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
26731         PR target/67896
26732         * config/aarch64/aarch64-builtins.c
26733         (aarch64_init_simd_builtin_types): Do not set structural
26734         equality to __Poly{8,16,64,128}_t types.
26736 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
26738         PR tree-optimization/69400
26739         * wide-int.cc (wi_pack): Take the precision as argument and
26740         perform canonicalization here rather than in the callers.
26741         Use the main loop to handle all full-width HWIs.  Add a
26742         zero HWI if in_len isn't a full result.
26743         (wi::divmod_internal): Update accordingly.
26744         (wi::mul_internal): Likewise.  Simplify.
26746 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
26747             Sebastian Pop  <s.pop@samsung.com>
26749         * graphite-poly.c (apply_poly_transforms): Simplify.
26750         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
26751         (print_isl_map): Same.
26752         (print_isl_union_map): Same.
26753         (print_isl_schedule): New.
26754         (debug_isl_schedule): New.
26755         * graphite-dependences.c (scop_get_reads): Do not call
26756         isl_union_map_add_map that is undocumented isl functionality.
26757         (scop_get_must_writes): Same.
26758         (scop_get_may_writes): Same.
26759         (scop_get_original_schedule): Remove.
26760         (scop_get_dependences): Do not call isl_union_map_compute_flow that
26761         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
26762         (compute_deps): Remove.
26763         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
26764         (debug_schedule_ast): New.
26765         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
26766         set_separate_option.
26767         (graphite_regenerate_ast_isl): Add dump.
26768         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
26769         from scop->transformed_schedule.
26770         (graphite_regenerate_ast_isl): Add more dump.
26771         * graphite-optimize-isl.c (optimize_isl): Set
26772         scop->transformed_schedule.  Check whether schedules are equal.
26773         (apply_poly_transforms): Move here.
26774         * graphite-poly.c (apply_poly_transforms): ... from here.
26775         (free_poly_bb): Static.
26776         (free_scop): Static.
26777         (pbb_number_of_iterations_at_time): Remove.
26778         (print_isl_ast): New.
26779         (debug_isl_ast): New.
26780         (debug_scop_pbb): New.
26781         * graphite-scop-detection.c (print_edge): Move.
26782         (print_sese): Move.
26783         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
26784         (build_scop_scattering): Remove.
26785         (create_pw_aff_from_tree): Assert instead of bailing out.
26786         (add_condition_to_pbb): Remove unused code, do not fail.
26787         (add_conditions_to_domain): Same.
26788         (add_conditions_to_constraints): Remove.
26789         (build_scop_context): New.
26790         (add_iter_domain_dimension): New.
26791         (build_iteration_domains): Initialize pbb->iterators.
26792         Call add_conditions_to_domain.
26793         (nested_in): New.
26794         (loop_at): New.
26795         (index_outermost_in_loop): New.
26796         (index_pbb_in_loop): New.
26797         (outermost_pbb_in): New.
26798         (add_in_sequence): New.
26799         (add_outer_projection): New.
26800         (outer_projection_mupa): New.
26801         (add_loop_schedule): New.
26802         (build_schedule_pbb): New.
26803         (build_schedule_loop): New.
26804         (embed_in_surrounding_loops): New.
26805         (build_schedule_loop_nest): New.
26806         (build_original_schedule): New.
26807         (build_poly_scop): Call build_original_schedule.
26808         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
26809         (free_poly_dr): Remove.
26810         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
26811         (free_poly_bb): Remove.
26812         (debug_loop_vec): Remove.
26813         (print_isl_ast): Declare.
26814         (debug_isl_ast): Declare.
26815         (scop_do_interchange): Remove.
26816         (scop_do_strip_mine): Remove.
26817         (scop_do_block): Remove.
26818         (flatten_all_loops): Remove.
26819         (optimize_isl): Remove.
26820         (pbb_number_of_iterations_at_time): Remove.
26821         (debug_scop_pbb): Declare.
26822         (print_schedule_ast): Declare.
26823         (debug_schedule_ast): Declare.
26824         (struct scop): Remove schedule.  Add original_schedule,
26825         transformed_schedule.
26826         (free_gimple_poly_bb): Remove.
26827         (print_generated_program): Remove.
26828         (debug_generated_program): Remove.
26829         (unify_scattering_dimensions): Remove.
26830         * sese.c (print_edge): ... here.
26831         (print_sese): ... here.
26832         (debug_edge): ... here.
26833         (debug_sese): ... here.
26834         * sese.h (print_edge): Declare.
26835         (print_sese): Declare.
26836         (dump_edge): Declare.
26837         (dump_sese): Declare.
26839 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
26840             Sebastian Pop  <s.pop@samsung.com>
26842         * Makefile.in: Set ISLVER in site.exp.
26844 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
26846         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
26847         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
26848         through DECL_VALUE_EXPR for expansion.
26850 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26852         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
26853         the frame info after reload completed.
26855 2016-01-25  Jeff Law  <law@redhat.com>
26857         PR tree-optimization/69196
26858         PR tree-optimization/68398
26859         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
26860         tree-ssa-threadupdate.c.
26861         (determine_bb_domination_status): Prototype
26862         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
26863         (determine_bb_domination_status): No longer static.
26864         (valid_jump_thread_path): Remove code to detect characteristics
26865         of the jump thread path not associated with correctness.
26866         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
26867         Correct test for thread path length.  Count PHIs for real operands as
26868         statements that need to be copied.  Do not count ASSERT_EXPRs.
26869         Look at all the blocks in the thread path.  Compute and selectively
26870         filter thread paths based on threading through the latch, threading
26871         a multiway branch or crossing a multiway branch.
26873 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26875         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
26876         decl with __attribute__ ((unused)) annotation.
26878 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
26880         PR target/69421
26881         * tree-vect-stmts.c (vectorizable_condition): Check vectype
26882         of operands is compatible with a statement vectype.
26884 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
26886         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
26887         improve wording for mixed storage order support.
26889 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
26891         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
26892         (vcvt_u64_f64): Likewise.
26893         (vcvta_s64_f64): Likewise.
26894         (vcvta_u64_f64): Likewise.
26895         (vcvtm_s64_f64): Likewise.
26896         (vcvtm_u64_f64): Likewise.
26897         (vcvtn_s64_f64): Likewise.
26898         (vcvtn_u64_f64): Likewise.
26899         (vcvtp_s64_f64): Likewise.
26900         (vcvtp_u64_f64): Likewise.
26902 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
26904         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
26905         (arc_init): Check validity mll64 option.
26906         (arc_save_restore): Use double load/store instruction.
26907         (arc_expand_movmem): Likewise.
26908         (arc_split_move): Don't split if we have double load/store
26909         instructions. Returns a boolean.
26910         (arc_process_double_reg_moves): Change function to return boolean
26911         instead of a sequence of instructions.
26912         (arc_dwarf_register_span): New function.
26913         * config/arc/arc-protos.h (arc_split_move): Change prototype.
26914         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
26915         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
26916         (*movdf_insn): Likewise.
26917         * config/arc/arc.opt (mll64): New option.
26918         * config/arc/predicates.md (even_register_operand): New predicate.
26919         * doc/invoke.texi (ARC Options): Add mll64 documentation.
26921 2016-01-25  Richard Biener  <rguenther@suse.de>
26923         PR lto/69393
26924         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
26925         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
26926         DECL_NAMELESS.
26927         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
26929 2016-01-25  Richard Biener  <rguenther@suse.de>
26931         PR tree-optimization/69376
26932         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
26933         flag.
26934         (VN_INFO_ANTI_RANGE_P): New inline.
26935         (VN_INFO_RANGE_TYPE): Likewise.
26936         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
26937         SSA_NAME_ANTI_RANGE_P.
26938         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
26939         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26940         Properly query VN_INFO_RANGE_TYPE.
26942 2016-01-25  Nick Clifton  <nickc@redhat.com>
26944         PR target/66655
26945         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
26947 2016-01-23  Tom de Vries  <tom@codesourcery.com>
26949         PR tree-optimization/69426
26950         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
26951         removed clobber.
26953 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
26955         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
26956         "the the" with "the" in the comments.
26957         * ipa-devirt.c (build_type_inheritance_graph,
26958         update_type_inheritance_graph): Likewise.
26959         * tree.c (build_function_type_list_1): Likewise.
26960         * cfgloopmanip.c (scale_loop_profile): Likewise.
26961         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
26962         * gimple-ssa-split-paths.c
26963         (find_block_to_duplicate_for_splitting_paths): Likewise.
26964         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
26965         * expr.c (convert_move): Likewise.
26966         * var-tracking.c (vt_stack_adjustments): Likewise.
26967         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
26968         * tree-vrp.c (test_for_singularity): Likewise.
26970         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
26971         directly instead of building a temporary tree.
26973         PR bootstrap/69434
26974         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
26975         remove <algorithm> include.
26977 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
26979         PR target/69432
26980         * config/i386/i386.c: Include dojump.h.
26981         (expand_small_movmem_or_setmem,
26982         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
26983         fixes.
26984         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
26985         if dynamic_check != -1.
26987 2016-01-21  Jeff Law  <law@redhat.com>
26989         PR middle-end/69347
26990         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
26991         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
26992         into dominated_by_p.
26993         (cprop_into_successor_phis): Avoid unnecessary tests.
26995 2016-01-22  Richard Henderson  <rth@redhat.com>
26997         PR target/69416
26998         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
26999         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
27001 2016-01-22  Michael Matz  <matz@suse.de>
27003         * system.h (string, algorithm): Include only conditionally.
27004         (new): Include always under C++.
27005         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
27006         * final.c (toplevel): Ditto.
27007         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
27008         * genconditions.c (write_header): Make gencondmd.c define
27009         INCLUDE_STRING.
27010         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
27012         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
27013         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
27015 2016-01-22  Christian Bruel  <christian.bruel@st.com>
27017         PR target/68674
27018         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
27020 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27022         PR target/69403
27023         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
27024         define_insn_and_split.  Ensure operands[1] and operands[0] do not
27025         get assigned the same register.
27027 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
27029         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
27031 2016-01-22  Christian Bruel  <christian.bruel@st.com>
27033         * config/arm/arm-c.c (arm_pragma_target_parse):
27034         Remove warn_builtin_macro_redefined overwrite.
27036 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
27038         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
27039         flag_non_call_exceptions compatibility.
27041 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
27043         PR debug/66668
27044         * dwarf2out.c (add_child_die_after): New function.
27045         (dwarf_qual_info_t): New type.
27046         (dwarf_qual_info): New variable.
27047         (qualified_die_p): New function.
27048         (modified_type_die): For -fdebug-types-section, ensure
27049         canonical order of qualifiers.  Put qualified DIEs adjacent
27050         to the corresponding non-qualified type DIE and search there
27051         for existing qualified DIEs.
27053 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
27055         * doc/extend.texi (scalar_storage_order type attribute): Document
27056         restriction on type punning and aliasing, and remove future tense.
27058 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
27060         PR target/69252
27061         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
27062         first stage.
27064 2016-01-21  Jeff Law  <law@redhat.com>
27066         PR middle-end/69347
27067         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
27068         useless call to record_temporary_equivalences.
27069         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
27070         allocate 10 slots in the bb_path vector and let it grow as needed.
27071         (fsm_find_control_statement_thread_paths): Similarly for the next_path
27072         vector.
27074 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
27076         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
27077         Detangle.
27078         * configure: Regenerate.
27080 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
27082         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
27083         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
27085 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
27087         PR middle-end/66178
27088         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
27089         drop EXPAND_INITIALIZER.
27090         * rtl.h (contains_symbolic_reference_p): Declare.
27091         * rtlanal.c (contains_symbolic_reference_p): New function.
27092         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
27093         a subtraction into a NOT if symbolic constants are involved.
27095 2016-01-21  Anton Blanchard  <anton@samba.org>
27096             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27098         PR target/63354
27099         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
27100         #define.
27101         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
27102         function.
27104 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
27106         * config/microblaze/microblaze.c
27107         (get_branch_target): New.
27108         (insert_wic_for_ilb_runout): New.
27109         (insert_wic): New.
27110         (microblaze_machine_dependent_reorg): New.
27111         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
27112         * config/microblaze/microblaze.md
27113         (UNSPEC_IPREFETCH): Define.
27114         (iprefetch): New pattern
27115         * config/microblaze/microblaze.opt
27116         (mxl-prefetch): New flag.
27118 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
27120         * config/microblaze/microblaze.h
27121         (FIXED_REGISTERS): Update in macro.
27122         (CALL_USED_REGISTERS): Update in macro.
27124 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
27126         PR rtl-optimization/68920
27127         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
27128         moves.
27130 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27132         PR rtl-optimization/68990
27133         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
27134         pseudo instead of inheritance ones.
27136 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27137             Nick Clifton  <nickc@redhat.com>
27139         PR target/69129
27140         PR target/69012
27141         * config/mips/mips.c (mips_compute_frame_info): Initialise
27142         args_size and hard_frame_pointer_offset fields of the frame
27143         structure before calling mips_global_pointer.
27145 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
27147         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
27148         label reference.
27149         * configure: Regenerate.
27151 2016-01-21  Richard Biener  <rguenther@suse.de>
27153         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
27155 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
27157         * config/s390/s390.c (s390_asm_declare_function_size): Add code
27158         to actually emit the .size directive.
27160 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
27161              Jakub Jelinek  <jakub@redhat.com>
27163         PR target/69187
27164         PR target/65624
27165         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
27166         args array size by one to avoid buffer overflow.
27168 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
27170         * config/s390/s390.md (pool_section_start): Use switch_to_section
27171         to select proper read-only data section instead of hardcoding
27172         .rodata.
27173         (pool_section_end): Use switch_to_section to match the above.
27175 2016-01-21  Richard Biener  <rguenther@suse.de>
27177         PR tree-optimization/69378
27178         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
27179         (set_ssa_val_to): Use it for dominance checks taking into
27180         account not executable edges.
27182 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
27184         PR c++/69355
27185         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
27186         for bitsize instead of GET_MODE_PRECISION (mode).
27188 2016-01-20  Martin Sebor  <msebor@redhat.com>
27190         PR c/52291
27191         * extend.texi (__sync Builtins): Clarify the semantics of
27192         __sync_fetch_and_OP built-ins on pointers.
27193         (__atomic Builtins): Same.
27195 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27196             Sebastian Pop  <s.pop@samsung.com>
27198         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
27199         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
27200         (is_valid_rename): Same.
27201         (translate_isl_ast_to_gimple::get_rename): Same.
27202         (translate_isl_ast_to_gimple::rename_all_uses): Same.
27203         (translate_isl_ast_to_gimple::rename_uses): Same.
27204         (get_new_name): Check for close_phi nodes.
27205         (copy_loop_phi_args): Use phi_node_kind.
27206         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
27207         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
27209 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27210             Sebastian Pop  <s.pop@samsung.com>
27212         Revert commit r229783.
27213         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
27214         Remove use of parameter_rename_map.
27215         (copy_def): Remove.
27216         (copy_internal_parameters): Remove.
27217         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
27218         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
27219         (free_sese_info): Do not free parameter_rename_map.
27220         (set_rename): Do not use parameter_rename_map.
27221         (rename_uses): Update call to set_rename.
27222         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
27223         * sese.h (parameter_rename_map_t): Remove.
27224         (struct sese_info_t): Remove field parameter_rename_map.
27226 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27227             Sebastian Pop  <s.pop@samsung.com>
27229         * graphite-isl-ast-to-gimple.c: Fix comment.
27230         * graphite-scop-detection.c (defined_in_loop_p): New.
27231         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
27232         names defined in loop.
27234 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27235             Sebastian Pop  <s.pop@samsung.com>
27237         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
27238         Discard unstructured if-then-else regions.
27240 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27241             Sebastian Pop  <s.pop@samsung.com>
27243         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
27244         (cleanup_loop_iter_dom): Remove.
27245         (build_loop_iteration_domains): Remove.
27246         (build_scop_context): Remove.
27247         (build_scop_iteration_domain): Remove.
27248         (add_loop_constraints): New.
27249         (build_iteration_domains): New.
27250         (build_poly_scop): Call build_iteration_domains.
27252 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27253             Sebastian Pop  <s.pop@samsung.com>
27255         * graphite-scop-detection.c
27256         (scop_detection::harmful_loop_in_region): Free dom and loops.
27257         (scop_detection::loop_body_is_valid_scop): Free bbs.
27259 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27260             Sebastian Pop  <s.pop@samsung.com>
27262         * graphite-scop-detection.c (record_loop_in_sese): New.
27263         (gather_bbs::before_dom_children): Call record_loop_in_sese.
27264         (build_scops): Remove call to build_sese_loop_nests.
27265         * sese.c (sese_record_loop): Remove.
27266         (build_sese_loop_nests): Remove.
27267         (new_sese_info): Remove region->loops.
27268         (free_sese_info): Same.
27269         * sese.h (sese_contains_loop): Same.
27270         (build_sese_loop_nests): Remove.
27271         (sese_contains_loop): Remove.
27273 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27274             Sebastian Pop  <s.pop@samsung.com>
27276         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
27277         loop_is_valid_in_scop.
27278         (scop_detection::harmful_stmt_in_region): Renamed
27279         harmful_loop_in_region.
27280         Call loop_is_valid_in_scop.
27282 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27283             Sebastian Pop  <s.pop@samsung.com>
27285         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
27286         isl_ast_node_mark.
27288 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27289             Sebastian Pop  <s.pop@samsung.com>
27291         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
27292         * graphite.h (struct poly_bb): Remove field is_reduction.
27293         (PBB_IS_REDUCTION): Remove.
27295 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
27296             Sebastian Pop  <s.pop@samsung.com>
27298         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
27299         (add_pdr_constraints): Same.
27300         (scop_get_reads): Same.
27301         (scop_get_must_writes): Same.
27302         (scop_get_may_writes): Same.
27303         (scop_get_original_schedule): Same.
27304         (extend_schedule): Same.
27305         (apply_schedule_on_deps): Same.
27306         (carries_deps): Same.
27307         (compute_deps): Same.
27308         (scop_get_dependences): Same.
27309         * graphite-isl-ast-to-gimple.c
27310         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
27311         * graphite-optimize-isl.c (get_schedule_for_band): Same.
27312         (get_schedule_for_band_list): Same.
27313         (get_schedule_map): Same.
27314         (apply_schedule_map_to_scop): Same.
27315         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27316         (build_loop_iteration_domains): Same.
27317         (add_condition_to_pbb): Same.
27318         (add_param_constraints): Same.
27319         (pdr_add_memory_accesses): Same.
27320         (pdr_add_data_dimensions): Same.
27322 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
27324         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
27325         requirements.
27327 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
27329         * common.opt (feliminate-dwarf2-dups): Replace references to
27330         "DWARF 2" with just "DWARF".
27331         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
27332         * doc/extend.texi: Likewise.
27333         * doc/cpp.texi: Likewise.
27334         * doc/invoke.texi: Likewise.
27335         (Option Summary): Add -gdwarf to list of Debugging Options.
27336         (Debugging Options): Document -gdwarf.
27337         * doc/contrib.texi: Spell "DWARF" like that.
27339 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
27341         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
27342         warning.  Fix up formatting.
27344         PR middle-end/67653
27345         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
27346         attempt to mark memory input operand addressable and
27347         call prepare_gimple_addressable in that case.  Don't adjust
27348         input_location for diagnostics, use error_at instead.
27350 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
27352         * config/rs6000/ppc-auxv.h: New file.
27353         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
27354         (cpu_is): Likewise.
27355         (cpu_supports): Likewise.
27356         * config/rs6000/rs6000.c: include "ppc-auxv.h".
27357         (cpu_is_info): New variable.
27358         (cpu_supports_info): Likewise.
27359         (tcb_verification_symbol): Likewise.
27360         (cpu_builtin_p): Likewise.
27361         (cpu_expand_builtin): New function.
27362         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
27363         (rs6000_init_builtins): Likewise.
27364         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
27365         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
27366         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
27367         * configure: Regenerate.
27368         * config.in: Likewise.
27369         * doc/extend.texi (PowerPC Built-in Functions): Document
27370         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
27372 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
27374         PR target/68609
27375         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
27376         domain check.
27377         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
27378         for V4SFmode.
27380 2016-01-20  Richard Henderson  <rth@redhat.com>
27382         PR bootstrap/69343
27383         PR bootstrap/69339
27384         PR tree-opt/68964
27385         Revert:
27386         * tree.c (tm_define_builtin): New.
27387         (find_tm_vector_type): New.
27388         (build_tm_vector_builtins): New.
27389         (build_common_builtin_nodes): Call it.
27391 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
27393         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
27394         (arm_fp_ok): Likewise.
27395         (arm_fp): Likewise.
27396         (arm_crypto): Likewise.
27398 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
27399             Richard Biener  <rguenther@suse.de>
27401         PR tree-optimization/69328
27402         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
27403         vectors have same number of elements.
27404         (vectorizable_condition): Fix masked version recognition.
27406 2016-01-20  Richard Biener  <rguenther@suse.de>
27408         PR tree-optimization/69345
27409         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
27410         (VN_INFO_PTR_INFO): Likewise.
27411         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
27412         info when it is equal between non-dominating SSA names.
27413         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27414         Make sure to look at original SSA infos.
27416 2016-01-20  Jeff Law  <law@redhat.com>
27418         PR target/25114
27419         * config/m68k/predicates.md (pow2_m1_operand): New predicate
27420         extracted from ...
27421         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
27422         (pc_or_label_operand): New predicate.
27423         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
27424         tests for small integers that are 2^n - 1.
27426 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
27428         * doc/invoke.texi (Options Summary): Add '.' after @xref.
27430 2016-01-19  Jeff Law  <law@redhat.com>
27432         PR middle-end/69347
27433         * tree-ssa-threadbackwards.c
27434         (fsm_find_control_statement_thread_paths): Do not try to lookup
27435         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
27437 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27439         * doc/lto.texi: Remove text that says only Gold has linker plugin
27440         support.
27442 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
27444         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
27445         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
27446         the DIE accordingly.
27447         (modified_type_die): Add REVERSE parameter and pass it recursively,
27448         as well as to base_type_die.  Adjust presence check accordingly.
27449         (base_type_for_mode): Adjust call to modified_type_die.
27450         (add_type_attribute): Add REVERSE parameter and pass it to
27451         modified_type_die.
27452         (generic_parameter_die): Adjust call to add_type_attribute.
27453         (add_scalar_info): Likewise.
27454         (add_subscript_info): Likewise.
27455         (gen_array_type_die): Likewise.
27456         (gen_descr_array_type_die): Likewise.
27457         (gen_entry_point_die): Likewise.
27458         (gen_enumeration_type_die): Likewise.
27459         (gen_formal_parameter_die): Likewise.
27460         (gen_subprogram_die): Likewise.
27461         (gen_variable_die ): Likewise.
27462         (gen_const_die): Likewise.
27463         (gen_field_die): Likewise.
27464         (gen_pointer_type_die): Likewise.
27465         (gen_reference_type_die): Likewise.
27466         (gen_ptr_to_mbr_type_die): Likewise.
27467         (gen_inheritance_die): Likewise.
27468         (gen_subroutine_type_die): Likewise.
27469         (gen_typedef_die): Likewise.
27470         (force_type_die): Adjust call to modified_type_die.
27472 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
27474         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
27475         flow throughout the file.  Fix broken link to Objective-C 2.0
27476         documentation.
27477         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
27478         errors.
27480 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
27482         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
27484 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
27486         PR ipa/66223
27487         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
27488         (maybe_record_node): Record cxa_pure_virtual as the only possible
27489         target if there are not ohter candidates.
27490         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
27492 2016-01-19  Richard Biener  <rguenther@suse.de>
27494         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
27495         (get_memory_order): Likewise.
27497 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
27499         * tree-vect-stmts.c (vectorizable_store): Check
27500         rhs vectype.
27502 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
27504         PR jit/68446
27505         * gcc.c (driver::decode_argv): Add call to
27506         init_opts_obstack before init_options_struct.
27507         * opts.c (init_opts_obstack): Remove idempotency.
27508         (init_options_struct): Replace call to init_opts_obstack
27509         with a gcc_assert to verify that it has already been called.
27510         * toplev.c (toplev::main): Add call to init_opts_obstack before
27511         calls to init_options_struct.
27512         (toplev::finalize): Move cleanup of opts_obstack next to
27513         cleanup of save_decoded_options, clearing the latter, and
27514         save_decoded_options_count.
27516 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27518         PR target/69135
27519         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
27520         attribute to unconditional.  Remove %? from output template.
27522 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
27523             Jiong Wang  <jiong.wang@arm.com>
27525         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
27526         generated from different expand order.
27528 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
27530         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
27531         Add support for CCMP costing.
27533 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
27535         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
27536         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
27537         (fccmpe<mode>): Likewise.
27538         (fcmp): Rename to fcmp and globalize pattern.
27539         (fcmpe): Likewise.
27540         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
27541         (aarch64_gen_ccmp_next): Add FP support.
27543 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
27545         * target.def (gen_ccmp_first): Update documentation.
27546         (gen_ccmp_next): Likewise.
27547         * doc/tm.texi (gen_ccmp_first): Update documentation.
27548         (gen_ccmp_next): Likewise.
27549         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
27550         expand_ccmp_expr_1.  Improve comments.
27551         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
27552         (ccmp_ior<mode>): Remove pattern.
27553         (cmp<mode>): Remove expand.
27554         (cmp): Globalize pattern.
27555         (cstorecc4): Use cc_register.
27556         (mov<mode>cc): Remove ccmp_cc_register check.
27557         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
27558         Simplify after removal of CC_DNE/* modes.
27559         (aarch64_ccmp_mode_to_code): Remove.
27560         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
27561         In 'k' case use integer as condition.
27562         (aarch64_nzcv_codes): Remove inverted cases.
27563         (aarch64_code_to_ccmode): Remove.
27564         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
27565         comparison with CC register to be used in folowing CCMP/branch/CSEL.
27566         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
27567         pattern.  Return the comparison with CC register.  Invert conditions
27568         when bitcode is OR.
27569         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
27570         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
27572 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
27574         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
27575         instrumented_version.
27577 2016-01-19  Richard Biener  <rguenther@suse.de>
27579         PR tree-optimization/69336
27580         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
27581         handled components with get_ref_base_and_extent.
27582         (equal_mem_array_ref_p): Adjust.
27584 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
27586         PR debug/65779
27587         * shrink-wrap.c: Include valtrack.h.
27588         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
27589         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
27590         in between insn and where it will be moved to.  Call
27591         dead_debug_insert_temp.
27592         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
27593         first and dead_debug_local_finish at the end.
27594         For uses and defs bitmap, handle all regs in between REGNO and
27595         END_REGNO, not just the first one.
27597 2016-01-19  Richard Biener  <rguenther@suse.de>
27599         PR tree-optimization/69352
27600         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
27601         (equal_mem_array_ref_p): Constrain size and max size properly.
27602         Compare the reverse flag.
27604 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
27606         * ira.c (ira): Update regstat data if we deleted insns.
27608 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
27610         PR rtl-optimization/68955
27611         PR rtl-optimization/64557
27612         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
27613         here.  Fix up formatting.
27614         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
27616 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
27618         PR lto/69133
27619         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
27620         assume that the node has body.
27621         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
27622         check.
27624 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
27626         * lto-streamer-out.c (lto_output): Do not stream instrumentation
27627         thunks.
27629 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
27631         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
27632         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
27634 2016-01-19  Martin Jambor  <mjambor@suse.cz>
27635             Martin Liska  <mliska@suse.cz>
27636             Michael Matz  <matz@suse.de>
27638         * Makefile.in (OBJS): Add new source files.
27639         (GTFILES): Add hsa.c.
27640         * common.opt (disable_hsa): New variable.
27641         (-Whsa): New warning.
27642         * config.in (ENABLE_HSA): New.
27643         * configure.ac: Treat hsa differently from other accelerators.
27644         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
27645         $enable_offloading.
27646         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
27647         * doc/install.texi (Configuration): Document --with-hsa-runtime,
27648         --with-hsa-runtime-include, --with-hsa-runtime-lib and
27649         --with-hsa-kmt-lib.
27650         * doc/invoke.texi (-Whsa): Document.
27651         (hsa-gen-debug-stores): Likewise.
27652         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
27653         to invoke offload compiler for hsa acclerator.
27654         * opts.c (common_handle_option): Determine whether HSA offloading
27655         should be performed.
27656         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
27657         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
27658         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
27659         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
27660         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
27661         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
27662         GF_OMP_FOR_KIND_GRID_LOOP.
27663         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
27664         (pp_gimple_stmt_1): Likewise.
27665         * gimple-walk.c (walk_gimple_stmt): Likewise.
27666         * gimple.c (gimple_build_omp_grid_body): New function.
27667         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
27668         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
27669         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
27670         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
27671         GF_OMP_TEAMS_GRID_PHONY.
27672         (gimple_statement_omp_single_layout): Updated comments.
27673         (gimple_build_omp_grid_body): New function.
27674         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
27675         (gimple_omp_for_grid_phony): New function.
27676         (gimple_omp_for_set_grid_phony): Likewise.
27677         (gimple_omp_parallel_grid_phony): Likewise.
27678         (gimple_omp_parallel_set_grid_phony): Likewise.
27679         (gimple_omp_teams_grid_phony): Likewise.
27680         (gimple_omp_teams_set_grid_phony): Likewise.
27681         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
27682         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
27683         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
27684         (BUILT_IN_GOMP_TARGET): Updated type.
27685         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
27686         (adjust_for_condition): New function.
27687         (get_omp_for_step_from_incr): Likewise.
27688         (extract_omp_for_data): Moved parts to adjust_for_condition and
27689         get_omp_for_step_from_incr.
27690         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
27691         (fixup_child_record_type): Bail out if receiver_decl is NULL.
27692         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
27693         (scan_omp_parallel): Do not create child functions for phony
27694         constructs.
27695         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
27696         (scan_omp_1_op): Checking assert we are not remapping to
27697         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
27698         (parallel_needs_hsa_kernel_p): New function.
27699         (expand_parallel_call): Register apprpriate parallel child
27700         functions as HSA kernels.
27701         (grid_launch_attributes_trees): New type.
27702         (grid_attr_trees): New variable.
27703         (grid_create_kernel_launch_attr_types): New function.
27704         (grid_insert_store_range_dim): Likewise.
27705         (grid_get_kernel_launch_attributes): Likewise.
27706         (get_target_argument_identifier_1): Likewise.
27707         (get_target_argument_identifier): Likewise.
27708         (get_target_argument_value): Likewise.
27709         (push_target_argument_according_to_value): Likewise.
27710         (get_target_arguments): Likewise.
27711         (expand_omp_target): Call get_target_arguments instead of looking
27712         up for teams and thread limit.
27713         (grid_expand_omp_for_loop): New function.
27714         (grid_arg_decl_map): New type.
27715         (grid_remap_kernel_arg_accesses): New function.
27716         (grid_expand_target_kernel_body): New function.
27717         (expand_omp): Call it.
27718         (lower_omp_for): Do not emit phony constructs.
27719         (lower_omp_taskreg): Do not emit phony constructs but create for them
27720         a temporary variable receiver_decl.
27721         (lower_omp_taskreg): Do not emit phony constructs.
27722         (lower_omp_teams): Likewise.
27723         (lower_omp_grid_body): New function.
27724         (lower_omp_1): Call it.
27725         (grid_reg_assignment_to_local_var_p): New function.
27726         (grid_seq_only_contains_local_assignments): Likewise.
27727         (grid_find_single_omp_among_assignments_1): Likewise.
27728         (grid_find_single_omp_among_assignments): Likewise.
27729         (grid_find_ungridifiable_statement): Likewise.
27730         (grid_target_follows_gridifiable_pattern): Likewise.
27731         (grid_remap_prebody_decls): Likewise.
27732         (grid_copy_leading_local_assignments): Likewise.
27733         (grid_process_kernel_body_copy): Likewise.
27734         (grid_attempt_target_gridification): Likewise.
27735         (grid_gridify_all_targets_stmt): Likewise.
27736         (grid_gridify_all_targets): Likewise.
27737         (execute_lower_omp): Call grid_gridify_all_targets.
27738         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
27739         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
27740         (tree_omp_clause): Added union field dimension.
27741         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
27742         * tree.c (omp_clause_num_ops): Added number of arguments of
27743         OMP_CLAUSE__GRIDDIM_.
27744         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
27745         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
27746         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
27747         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
27748         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
27749         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
27750         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
27751         * tree-pass.h (make_pass_gen_hsail): Declare.
27752         (make_pass_ipa_hsa): Likewise.
27753         * ipa-hsa.c: New file.
27754         * lto-section-in.c (lto_section_name): Add hsa section name.
27755         * lto-streamer.h (lto_section_type): Add hsa section.
27756         * timevar.def (TV_IPA_HSA): New.
27757         * hsa-brig-format.h: New file.
27758         * hsa-brig.c: New file.
27759         * hsa-dump.c: Likewise.
27760         * hsa-gen.c: Likewise.
27761         * hsa.c: Likewise.
27762         * hsa.h: Likewise.
27763         * toplev.c (compile_file): Call hsa_output_brig.
27764         * hsa-regalloc.c: New file.
27766 2016-01-18  Jeff Law  <law@redhat.com>
27768         PR tree-optimization/69320
27769         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
27770         ranged object, do nothing if the RHS constant is not [0..1].
27771         (optimize_stmt): Comparing a boolean ranged object against a
27772         constant outside [0..1] results in a compile-time constant.
27774         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
27775         test.
27777 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
27779         * doc/invoke.texi (Invoking GCC): Add new section to menu.
27780         (Option Summary): Update to reflect new section and moved options.
27781         (C++ Dialect Options): Move -fstats to new section.
27782         (Debugging Options): Move all dump, statistics, and other GCC
27783         developer options to new section.  Rewrite section introduction
27784         and re-order remaining options to put the more basic ones first.
27785         (Optimization Options): Move -fira-verbose and -flto-report* to
27786         new section.
27787         (Developer Options): New section incorporating moved options.
27788         * doc/cppopts.texi (-dM): Update cross-reference.
27790 2016-01-18  Richard Henderson  <rth@redhat.com>
27792         PR target/69176
27793         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
27794         operands to pseudo only if CSE is expected.  Split long immediate
27795         operands only after reload, and for the stack pointer.
27796         (*add<GPI>3_pluslong): Remove.
27797         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
27798         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
27799         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
27800         (*add<GPI>3 peepholes): New.
27801         (*add<GPI>3 splitters): New.
27802         * config/aarch64/constraints.md (Upl): New.
27803         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
27805 2016-01-18  Richard Biener  <rguenther@suse.de>
27807         PR tree-optimization/69297
27808         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
27809         stmt at most once.
27810         (vect_bb_vectorization_profitable_p): Clear visited flag again.
27812 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
27814         PR middle-end/68542
27815         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
27816         of mixind vector and scalar types.
27817         (fold_relational_const): Add handling of vector
27818         comparison with boolean result.
27819         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
27820         comparison of vector operands with boolean result for EQ/NE only.
27821         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
27822         (verify_gimple_cond): Likewise.
27823         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
27824         valid type of VAL.
27826 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
27828         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
27829         !TARGET_OCTEON.
27831 2016-01-18  Richard Biener  <rguenther@suse.de>
27833         PR middle-end/69308
27834         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
27836 2016-01-18  Tom de Vries  <tom@codesourcery.com>
27838         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
27840 2016-01-18  Tom de Vries  <tom@codesourcery.com>
27842         * omp-low.c (set_oacc_fn_attrib): Make extern.
27843         * omp-low.h (set_oacc_fn_attrib): Declare.
27844         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
27845         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
27846         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
27847         Add and handle function parameter oacc_kernels_p.
27848         (find_reduc_addr, get_omp_data_i_param): New function.
27849         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
27850         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
27851         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
27852         Calculate dominance info.  Skip loops that are not in a kernels region
27853         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
27854         (pass_parallelize_loops::execute): Call parallelize_loops with
27855         oacc_kernels_p argument.
27856         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
27857         New member function.
27858         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
27859         * passes.def: Add argument to pass_parallelize_loops instantation.
27861 2016-01-18  Tom de Vries  <tom@codesourcery.com>
27863         * tree-parloops.c (pass_parallelize_loops::execute): Allow
27864         pass_parallelize_loops to be run outside the loop pipeline.
27866 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
27868         * tree-scalar-evolution.c (follow_copies_to_constant): New.
27869         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
27871 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
27873         PR target/63679
27874         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
27875         using get_ref_base_and_extent.
27876         (equal_mem_array_ref_p): New.
27877         (hashable_expr_equal_p): Add call to previous.
27879 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
27881         PR target/63679
27882         * tree-sra.c (disqualified_constants, constant_decl_p): New.
27883         (sra_initialize): Allocate disqualified_constants.
27884         (sra_deinitialize): Free disqualified_constants.
27885         (disqualify_candidate): Update disqualified_constants when appropriate.
27886         (create_access): Scan for constant-pool entries as we go along.
27887         (scalarizable_type_p): Add check against type_contains_placeholder_p.
27888         (maybe_add_sra_candidate): Allow constant-pool entries.
27889         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
27890         (initialize_constant_pool_replacements): New.
27891         (sra_modify_assign): Avoid mangling assignments created by previous,
27892         and don't generate writes into constant pool.
27893         (sra_modify_function_body): Call initialize_constant_pool_replacements.
27895 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
27897         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
27898         andnot instruction.
27899         (scalar_chain::convert_op): Likewise.
27900         * config/i386/i386.md (*andndi3_doubleword): New.
27902 2016-01-18  Richard Biener  <rguenther@suse.de>
27904         PR tree-optimization/69170
27905         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
27906         building a vector from scalar results of a pattern stmt.
27908 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
27910         * haifa-sched.c (autopref_multipass_init): Work around
27911         -Wmaybe-uninitialized warning.
27913 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27915         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
27916         against the constant 0.
27918 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27920         PR tree-optimization/68799
27921         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
27922         look up phi candidates in the statement-candidate map.
27923         (phi_add_costs): Likewise.
27924         (record_phi_increments): Likewise.
27925         (phi_incr_cost): Likewise.
27926         (ncd_with_phi): Likewise.
27927         (all_phi_incrs_profitable): Likewise.
27929 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
27931         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
27932         -Wmaybe-uninitialized warning.
27934 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
27936         * doc/invoke.texi (Invoking GCC): Add new section to menu.
27937         (Option Summary): Update to reflect new section and moved options.
27938         (C++ Dialect Options): Move -fvtable-verify and related options.
27939         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
27940         and profiling-related options.
27941         (Optimization Options): Move profile generation options and
27942         -fstack-protector and related options.
27943         (Instrumentation Options): New section incorporating moved options.
27944         (Code Generation Options): Move -finstrument-functions and
27945         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
27947 2016-01-16  Tom de Vries  <tom@codesourcery.com>
27949         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
27951 2016-01-16  Tom de Vries  <tom@codesourcery.com>
27953         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
27955 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
27957         * hash-table.h (hash_table::empty): Turn into an inline wrapper
27958         that checks whether the table is already empty.  Rename the
27959         original implementation to...
27960         (hash_table::empty_slot): ...this new private function.
27962 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
27964         PR diagnostic/68899
27965         * diagnostic-show-locus.c (layout::print_source_line): Move x
27966         offset of line until after call to
27967         get_line_width_without_trailing_whitespace.
27969 2016-01-15  Jeff Law  <law@redhat.com>
27971         PR tree-optimization/69270
27972         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
27973         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
27974         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
27975         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
27976         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27977         ssa_name_has_boolean_range and constant_boolean_node.
27979 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27981         PR rtl-optimization/69030
27982         * lra-spills.c (remove_pseudos): Check nrefs and make the function
27983         returning bool.
27984         (spill_pseudos): Delete debug insn for dead pseudo.
27985         (lra_spill): Initiate spill_hard_reg and slots memory separately.
27987 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
27989         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
27990         New.
27991         (TYPES_UNOPUS): Likewise.
27992         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
27993         builtin type, from UNOP to UNOPUS.
27994         (lbtruncuv4sf): Likewise.
27995         (lbtruncuv2df): Likewise.
27996         (lrounduv2sf): Likewise.
27997         (lrounduv4sf): Likewise.
27998         (lrounduv2df): Likewise.
27999         (lroundusf): Likewise.
28000         (lroundusf): Likewise.
28001         (lceiluv2sf): Likewise.
28002         (lceiluv4sf): Likewise.
28003         (lceiluv2df): Likewise.
28004         (lceilusf): Likewise.
28005         (lceiludf): Likewise.
28006         (lflooruv2sf): Likewise.
28007         (lflooruv4sf): Likewise.
28008         (lflooruv2df): Likewise.
28009         (lfloorusf): Likewise.
28010         (lfloorudf): Likewise.
28011         (lfrintnuv2sf): Likewise.
28012         (lfrintnuv4sf): Likewise.
28013         (lfrintnuv2df): Likewise.
28014         (lfrintnusf): Likewise.
28015         (lfrintnudf): Likewise.
28016         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
28017         conversion.
28018         (vcvtq_u32_f32): Likewise.
28019         (vcvtq_u64_f64): Likewise.
28020         (vcvta_u32_f32): Likewise.
28021         (vcvtaq_u32_f32): Likewise.
28022         (vcvtaq_u64_f64): Likewise.
28023         (vcvtm_u32_f32): Likewise.
28024         (vcvtmq_u32_f32): Likewise.
28025         (vcvtmq_u64_f64): Likewise.
28026         (vcvtn_u32_f32): Likwise.
28027         (vcvtnq_u32_f32): Likewise.
28028         (vcvtnq_u64_f64): Likewise.
28029         (vcvtp_u32_f32): Likewise.
28030         (vcvtpq_u32_f32): Likewise.
28031         (vcvtpq_u64_f64): Likewise.
28032         (vcvtmd_u64_f64): Likewise.
28033         (vcvtms_u32_f32): Likewise.
28034         (vcvtad_u64_f64): Likewise.
28035         (vcvtas_u32_f32): Likewise.
28036         (vcvtnd_u64_f64): Likewise.
28037         (vcvtns_u32_f32): Likewise.
28038         (vcvtpd_u64_f64): Likewise.
28039         (vcvtps_u32_f32): Likewise.
28041 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28043         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
28044         CSEL of zero_extended registers.
28046 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28048         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28049         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
28051 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28053         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
28054         false when argument string is not found in the attributes table
28055         at all.
28057 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
28059         PR target/68609
28060         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
28061         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
28062         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
28063         precision estimate.
28065 2016-01-15  Richard Biener  <rguenther@suse.de>
28067         PR tree-optimization/66856
28068         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
28069         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
28070         (vect_create_new_slp_node): Increment stmt reference count.
28071         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
28072         an SLP tree before swapping operands.
28073         (vect_build_slp_tree): Likewise.
28074         (destroy_bb_vec_info): Free stmt info after SLP instances.
28075         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
28076         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
28077         (STMT_VINFO_NUM_SLP_USES): New macro.
28079 2016-01-15  Richard Biener  <rguenther@suse.de>
28081         PR debug/69137
28082         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
28083         (add_linkage_name): ... here.
28084         (gen_typedef_die): Use add_linkage_name_raw instead of
28085         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
28086         if necessary.
28088 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
28090         * gimplify.c (oacc_default_clause): Decode reference and pointer
28091         types for both kernels and parallel regions.
28093 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
28095         PR middle-end/69246
28096         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
28098 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28100         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
28101         (convert_scalars_to_vector): Likewise.
28103 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
28105         * doc/extend.texi (Type Traits): Fix grammar.
28107 2016-01-15  Martin Jambor  <mjambor@suse.cz>
28109         * tree-inline.c (remap_decl): Use existing dclarations if
28110         remapping a type and prevent_decl_creation_for_types.
28111         (replace_locals_stmt): Do an initial remapping of non-VLA typed
28112         decls first.  Do real remapping with
28113         prevent_decl_creation_for_types set.
28114         * tree-inline.h (copy_body_data): New field
28115         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
28116         padding.
28118 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28120         * config/s390/s390.opt (mmvcle): More verbose help text.
28122 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28124         * config/s390/s390.opt: Add period to -mzvector option text.
28126 2016-01-15  Richard Biener  <rguenther@suse.de>
28128         PR tree-optimization/68961
28129         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
28130         of invariants in stores again.
28132 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28134         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
28136 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28138         * config/i386/i386.c (ix86_expand_branch): Don't split
28139         DI mode xor instruction to SI mode.
28141 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
28143         PR ipa/68148
28144         * ipa-icf.c (sem_function::merge): Virtual functions may become
28145         reachable even if they address is not taken and there are no
28146         idrect calls.
28148 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
28150         * lto-streamer-out.c (subtract_estimated_size): New function.
28151         (get_symbol_initial_value): Use it.
28153 2016-01-15  Christian Bruel  <christian.bruel@st.com>
28155         PR target/65837
28156         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
28157         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
28158         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
28159         use add_builtin_function_ext_scope instead of add_builtin_function.
28160         (neon_set_p, neon_crypto_set_p): Remove.
28161         (arm_init_builtins): Always call arm_init_neon_builtins and
28162         arm_init_crypto_builtins.
28163         (arm_expand_builtin): Check that builtins are allowed for the arch.
28164         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
28165         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
28166         arm_init_neon_builtins call.
28168 2016-01-15  Richard Biener  <rguenther@suse.de>
28170         PR tree-optimization/69117
28171         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
28172         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
28173         of the leader conservatively.
28174         (free_scc_vn): Restore original SSA name infos.
28176 2016-01-14  Jeff Law  <law@redhat.com>
28178         PR tree-optimization/69270
28179         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
28180         single bit of precision, verify it's also unsigned.
28181         (record_edge_info): Use constant_boolean_node rather than fold_convert
28182         to convert boolean_true/boolean_false to the right type.
28184 2016-01-14  Richard Henderson  <rth@redhat.com>
28186         PR rtl-opt/69014
28187         * loop-doloop.c (record_reg_sets): New.
28188         (doloop_optimize): Reject the transform if the sequence
28189         clobbers registers live at the end of the loop block.
28190         (doloop_optimize_loops): Enable df_live if needed.
28192 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28194         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
28195         * config/rs6000/rs6000.c: Likewise.
28196         * config/rs6000/rs6000.h: Likewise.
28197         * config/rs6000/rs6000.md: Likewise.
28198         * doc/extend.texi: Likewsie.
28200 2016-01-14  Jeff Law  <law@redhat.com>
28202         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
28203         typo.
28205 2016-01-14  Richard Henderson  <rth@redhat.com>
28207         PR c/69272
28208         PR tree-opt/68964
28209         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
28210         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
28211         instead of builtin_decl_declared_p to test for declaration.
28213 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
28215         * doc/loop.texi (Loop Analysis and Representation): Document
28216         loop_depth function.
28218 2016-01-14  Tom de Vries  <tom@codesourcery.com>
28220         PR tree-optimization/68773
28221         * omp-low.c (expand_omp_target): Don't set force_output.
28222         * varpool.c (varpool_node::get_create): Same.
28223         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
28224         offload_funcs with force_output.
28226 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
28228         PR debug/69244
28229         * lra-eliminations.c (move_plus_up): Don't change anything if either
28230         the outer or inner subreg mode is not MODE_INT.
28231         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
28232         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
28234 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
28236         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
28237         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
28238         reduc_uplus_@var{m}): Remove.
28239         * expr.c (expand_expr_real_2): Remove expansion path for
28240         reduc_[us](min|max|plus) optabs.
28241         * optabs-tree.c (scalar_reduc_to_vector): Remove.
28242         * optabs-tree.h (scalar_reduc_to_vector): Remove.
28243         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
28244         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
28245         * tree-vect-loop.c (vectorizable_reduction): Remove test for
28246         reduc_[us](min|max|plus) optabs.
28248 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
28250         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
28251         (reduc_plus_scal_v2sf): New.
28252         (reduc_smax_v2sf): Rename to...
28253         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
28254         (reduc_smin_v2sf): Rename to...
28255         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
28257 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
28259         * alias.c (compare_base_symbol_refs): New function.
28260         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
28261         it.
28263 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
28265         PR middle-end/68146
28266         PR tree-optimization/69155
28267         * tree-complex.c: Include cfganal.h.
28268         (phis_to_revisit): New variable.
28269         (extract_component): Add phiarg_p argument.  Assert that returned
28270         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
28271         (update_phi_components): Partly rewrite to use loop over real/imag
28272         components instead of code duplication.  If extract_component returns
28273         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
28274         create_tmp_reg into the PHI node instead, and mention the phi triplet
28275         in phis_to_revisit.
28276         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
28277         in phis_to_revisit at the end.
28279 2016-01-14  Richard Biener  <rguenther@suse.de>
28281         PR tree-optimization/68060
28282         * tree-vect-loop.c (vect_is_simple_reduction): Check the
28283         outer loop reduction is only used in the inner loop before
28284         detecting a double reduction.
28286 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
28288         PR target/68269
28289         * combine.c (expand_field_assignment): Punt if compute_mode is
28290         unsupported scalar mode.
28292 2016-01-14  Richard Biener  <rguenther@suse.de>
28294         PR tree-optimization/66856
28295         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
28296         SLP node only if it built successfully.
28297         (vect_analyze_slp_instance): Adjust.
28299 2016-01-14  Jeff Law  <law@redhat.com>
28301         PR tree-optimization/69270
28302         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
28303         (record_edge_info): Use it.  Convert boolean_{true,false}_node
28304         to the type of op0.
28306 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
28308         PR ipa/66487
28309         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
28310         use block_ultimate_origin
28311         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
28313 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
28315         * doc/invoke.texi (Submodel Options): Rename section to
28316         "Machine-Dependent Options" to better reflect its content.
28317         Rewrite introductory text to remove archaic CPU names.
28318         Update references.
28320 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
28322         * doc/invoke.texi (Code Gen Options): Move section up in file,
28323         before target-specific options.  Update menu and option summary
28324         to reflect the new section ordering.
28326 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
28328         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
28329         (C++ Dialect Options): Add cross-reference to -std option.
28330         * doc/standards.texi (C++ Language): Document C++14 support.
28332 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
28334         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
28335         for pack/unpack functions for __ibm128.
28336         (PACK_IF): Likewise.
28337         (UNPACK_IF): Likewise.
28339         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28340         support for __ibm128 pack/unpack functions.
28341         (rs6000_invalid_builtin): Likewise.
28342         (rs6000_init_builtins): Likewise.
28343         (rs6000_opt_masks): Likewise.
28345         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
28346         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
28347         functions
28348         (RS6000_BTM_COMMON): Likewise.
28350         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
28351         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
28352         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
28353         128-bit floating point.  Add support for the double values to be
28354         in Altivec registers for TF/IF packing and unpacking, but restrict
28355         TD packing sub-fields to be FPR registers.  Don't allow overlapped
28356         register support for packing.  Allow pack inputs to be memory
28357         locations.  Don't build generator functions for unpack<mode>_dm
28358         and unpack<mode>_nodm.
28359         (unpack<mode>_dm): Likewise.
28360         (unpack<mode>_nodm): Likewise.
28361         (pack<mode>): Likewise.
28363         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
28364         built-in functions to pack/unpack explicit __ibm128 values.
28365         (__builtin_unpack_ibm128): Likewise.
28367         * doc/extend.texi (PowerPC Built-in Functions): Document
28368         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
28370 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
28372         PR c/66208
28373         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
28374         Add new arg loc and pass it down as context.
28375         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
28376         to the location to use for the warning.
28377         (check_function_arguments): New arg loc.  All callers changed.  Pass
28378         it to check_function_nonnull.
28379         * c-common.h (check_function_arguments): Adjust declaration.
28381 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
28383         PR tree-optimization/69156
28384         * gimple.c (validate_type): Removed.
28385         (gimple_builtin_call_types_compatible_p): Use
28386         useless_type_conversion_p instead of validate_type.
28387         * value-prof.c (gimple_stringop_fixed_value): Fold
28388         icall_size to correct type.
28390 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
28392         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
28393         effects.
28395 2016-01-13  Richard Henderson  <rth@redhat.com>
28397         PR tree-opt/68964
28398         * target.def (builtin_tm_load, builtin_tm_store): Remove.
28399         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
28400         (ix86_builtin_tm_store): Remove.
28401         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28402         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28403         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
28404         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
28405         * doc/tm.texi: Rebuild.
28407         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
28408         (BUILT_IN_TM_MEMCPY_RTWN): New.
28409         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
28410         fallback from vector to integer helpers.
28411         (build_tm_load): Handle vector types directly, instead of
28412         via target hook.
28413         (build_tm_store): Likewise.
28414         (expand_assign_tm): Prepare for register types not handled by
28415         the above.  Copy them to memory and use memcpy.
28416         * tree.c (tm_define_builtin): New.
28417         (find_tm_vector_type): New.
28418         (build_tm_vector_builtins): New.
28419         (build_common_builtin_nodes): Call it.
28421 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
28423         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
28424         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
28426 2016-01-13  Tom de Vries  <tom@codesourcery.com>
28428         PR tree-optimization/69169
28429         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
28430         handled_struct_type param.
28431         (create_variable_info_for, intra_create_variable_infos): Call
28432         create_variable_info_for_1 with extra arg.
28434 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
28436         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
28437         and "armv8.1-a+crc" entries.
28439 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
28441         PR target/69228
28442         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
28443         Change first operand predicate from register_or_constm1_operand
28444         to register_operand.
28445         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
28446         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
28447         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
28448         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
28449         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
28450         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
28451         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
28452         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
28453         comparison with constm1_rtx from vec_prefetch_gen part.
28455 2016-01-13  Richard Biener  <rguenther@suse.de>
28457         PR tree-optimization/69013
28458         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
28459         Exchange assert for a test.
28461 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28463         PR target/69247
28464         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
28466 2016-01-13  Richard Biener  <rguenther@suse.de>
28468         PR tree-optimization/69242
28469         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
28470         assert with a check.
28472 2016-01-13  Richard Biener  <rguenther@suse.de>
28474         PR tree-optimization/69186
28475         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28476         Properly guard vect_update_misalignment_for_peel call.
28478 2016-01-12  Jeff Law  <law@redhat.com>
28480         PR tree-optimization/pr67755
28481         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
28482         "need_profile_correction".
28483         (thread_block_1): Initialize new field to false by default.  If we
28484         have multiple thread paths through a common joiner to different
28485         final targets, then set new field to true.
28486         (compute_path_counts): Only do count adjustment when it's really
28487         needed.
28489 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28491         * doc/invoke.texi (Spec Files): Move section down in file, past
28492         all command-line option descriptions.
28494 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28496         PR middle-end/54809
28497         * doc/gty.texi: Remove documentation of mark_hook.
28498         * gengtype.c (struct write_types_data): Remove code to support
28499         mark_hook attribute.
28500         (walk_type): Likewise.
28501         (write_func_for_structure): Likewise.
28503 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28505         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
28506         Directory Options, and -specs= to Overall Options.
28507         (Overall Options): Adjust similarly.  Reorder to group related
28508         options together.  Make -specs= cross-reference the spec file details.
28509         (Directory Options): Adjust similarly.
28511 2016-01-12  Jeff Law  <law@redhat.com>
28513         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
28515 2016-01-12  Olivier Hainque  <hainque@adacore.com>
28517         * gcc.c (spec_undefvar_allowed): New global.
28518         (process_command): Set to true when running for --version or --help,
28519         alone or together.
28520         (getenv_spec_function): When the variable is not defined, use the
28521         variable name as the variable value if we're allowed not to issue
28522         a fatal error.
28524 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
28526         PR tree-optimization/68911
28527         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
28528         information computed for expression "init + nit * step".
28530 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28532         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
28533         about name of GCC executable.  Remove deleted node from menu.
28534         (Directory Options) <-B>: Remove cross-reference to deleted node.
28535         (Target Options): Delete section.
28537 2016-01-12  Christian Bruel  <christian.bruel@st.com>
28539         PR target/69180
28540         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
28541         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
28543 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
28545         PR target/69198
28546         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
28547         aligned_mem is properly set for AVX512-VL floating point masked
28548         stores.
28550         PR target/69175
28551         * ifcvt.c (cond_exec_process_if_block): When removing the last
28552         insn from then_bb, remove also any possible barriers that follow it.
28554 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
28556         PR target/68456
28557         PR target/69226
28558         * config/i386/iamcu.h (SIZE_TYPE): New macro.
28559         (PTRDIFF_TYPE): Likewise.
28560         (WCHAR_TYPE): Likewise.
28561         (WCHAR_TYPE_SIZE): Likewise.
28562         (STDINT_LONG32): Likewise.
28564 2016-01-12  Richard Biener  <rguenther@suse.de>
28566         PR tree-optimization/69053
28567         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
28568         convert initial value for cond reductions.
28570 2016-01-12  Richard Biener  <rguenther@suse.de>
28572         PR tree-optimization/69007
28573         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
28574         widen_sum after dot_prod and sad.
28576 2016-01-12  Richard Biener  <rguenther@suse.de>
28578         PR tree-optimization/69168
28579         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
28580         pattern stmt SLP type.
28581         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
28582         end up unused so cope with that case.
28584 2016-01-12  Richard Biener  <rguenther@suse.de>
28586         PR tree-optimization/69157
28587         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
28588         stmts def type only during analyze phase.
28589         (vectorizable_call): Likewise.
28590         (vectorizable_simd_clone_call): Likewise.
28591         (vectorizable_conversion): Likewise.
28592         (vectorizable_assignment): Likewise.
28593         (vectorizable_shift): Likewise.
28594         (vectorizable_operation): Likewise.
28595         (vectorizable_store): Likewise.
28596         (vectorizable_load): Likewise.
28598 2016-01-12  Richard Biener  <rguenther@suse.de>
28600         PR tree-optimization/69174
28601         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
28602         space.
28603         (vectorizable_load): Properly compute the number of loads needed
28604         for permuted strided SLP loads and do not spuriously assign
28605         to SLP_TREE_VEC_STMTS.
28607 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
28609         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
28610         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
28611         (MD_EXEC_PREFIX): Remove.
28612         (MD_STARTFILE_PREFIX) Removee.
28613         (FILE_NAME_ABSOLUTE_P): Remove.
28614         (CPP_SPEC): Do not read macros from sys/version.h.
28615         (LINK_COMMAND_SPEC): Remove.
28616         (LOCAL_INCLUDE_DIR): Remove.
28617         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
28618         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
28619         (POST_LINK_SPEC): Define to invoke stubify after linker
28620         (LIBSTDCXX): Remove define
28621         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
28622         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
28623         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
28624         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
28625         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
28626         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
28627         (i386_djgpp_asm_named_section): Add propotype of new procedure
28629         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
28630         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
28631         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
28632         in config/i386/djgpp.h).
28633         (STANDARD_STARTFILE_PREFIX_2): Define identical to
28634         STANDARD_STARTFILE_PREFIX_1.
28635         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
28636         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
28637         installation errors.
28638         (MAX_OFILE_ALIGNMENT): Define to 128.
28639         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
28641         * config/i386/djgpp.c: New file. Add implementation of
28642         i386_djgpp_asm_named_section.
28644         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
28646         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
28647         Add rule for building djgpp.o.
28649 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28651         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
28652         (rtx_is_swappable_p): Reductions are swappable.
28653         (insn_is_swappable_p): V2DF reductions are swappable.
28655 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
28657         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
28658         reloads for other unsupported memory operands.
28660 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
28661             Jim Wilson  <jim.wilson@linaro.org>
28663         PR target/69194
28664         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
28665         copy_to_mode_reg instead of force_reg.
28667 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
28669         PR target/69225
28670         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
28671         TARGET_80387 is true.
28673 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
28675         PR target/69071
28676         * lra-eliminations.c (move_plus_up): Only move plus up
28677         if subreg of the constant can be simplified into constant
28678         and use the simplified subreg of the constant instead of
28679         the original constant.
28681         * fold-const.c (fold_convertible_p): Don't return true
28682         for conversion of VECTOR_TYPE to same sized integral type.
28683         (fold_convert_loc): Fix up formatting.  Fold conversion of
28684         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
28685         instead of NOP_EXPR.
28687         PR tree-optimization/69214
28688         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
28689         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
28690         Formatting fix.
28692         PR tree-optimization/69207
28693         * tree-vect-slp.c (vect_get_constant_vectors): For
28694         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
28695         fold_convertible_p to vector_type's element type, and always
28696         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
28698 2016-01-11  Richard Biener  <rguenther@suse.de>
28700         PR tree-optimization/69173
28701         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
28702         fixup the cycle if all stmts are in a pattern.
28704 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
28706         PR middle-end/68999
28707         * alias.c (base_alias_check): Move check for addresses with
28708         alignment ANDs before the call for compare_base_decls.
28709         (memrefs_conflict_p): Return -1 for different decls
28710         that went through alignment adjustments.
28712 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28714         PR rtl-optimization/68796
28715         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
28716         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
28717         and QImode comparisons against zero with CC_NZmode.
28718         * config/aarch64/iterators.md (short_mask): New mode_attr.
28720 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
28722         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
28723         (<avx512>_store<mode>_mask): Likewise.
28725 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
28726             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28728         PR rtl-optimization/68841
28729         * ifcvt.c (struct noce_if_info): Add orig_x field.
28730         (bbs_ok_for_cmove_arith): Add to_rename parameter.
28731         Don't record conflicts on to_rename if it's present.
28732         Allow memory destinations in sets.
28733         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
28734         blocks, passing orig_x to the checks.
28735         (noce_process_if_block): Set if_info->orig_x appropriately.
28737 2016-01-11  Tom de Vries  <tom@codesourcery.com>
28739         PR tree-optimization/69069
28740         * tree-parloops.c (create_parallel_loop): Add missing phi args.
28742 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
28744         PR rtl-optimization/68920
28745         * config/i386/i386.c (ix86_option_override_internal): Restrict number
28746         of conditional moves for  RTL if-conversion to 1 for
28747         TARGET_ONE_IF_CONV_INSN.
28748         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
28749         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
28750         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
28751         parameter to restirct number of conditional moves for
28752         RTL if-conversion.
28753         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
28754         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
28755         conditionl moves.
28757 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
28759         PR bootstrap/69123
28760         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
28761         onepart vars.  Fix typo in comment.  Fix reversed condition in
28762         unshare test.
28763         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
28765         PR bootstrap/69123
28766         * var-tracking.c (dump_onepart_variable_differences): New.
28767         (dataflow_set_different): If a detailed dump is requested,
28768         delay early returns and dump differences between onepart
28769         variables present before and after, and added variables.
28771 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
28773         PR target/69010
28774         * expr.c (expand_expr_real_1): For boolean vector constants
28775         with a scalar mode use const_scalar_mask_from_tree.
28776         (const_scalar_mask_from_tree): New.
28777         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
28778         assigned to a mask type to handle constants.
28780 2016-01-11  Martin Jambor  <mjambor@suse.cz>
28782         PR ipa/69044
28783         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
28784         useless parameters if we cannot change function signature.
28786 2016-01-11  Martin Jambor  <mjambor@suse.cz>
28788         PR ipa/66616
28789         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
28790         flag.
28792 2016-01-11  Tom de Vries  <tom@codesourcery.com>
28794         PR tree-optimization/69109
28795         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
28796         latch with phi.
28798 2016-01-11  Tom de Vries  <tom@codesourcery.com>
28800         PR tree-optimization/69108
28801         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
28802         res is not used in a phi.
28804 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
28806         PR 67425
28807         * common.opt (frandom-seed): Fix parameter name.
28808         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
28810 2016-01-11  Tom de Vries  <tom@codesourcery.com>
28812         PR tree-optimization/69058
28813         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
28814         not supported.
28816 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
28818         * config/arc/arc.opt (mdiv-rem): Add period to the end.
28819         (mcode-density): Likewise.
28821 2016-01-10  Tom de Vries  <tom@codesourcery.com>
28823         PR tree-optimization/69062
28824         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
28825         (parallelize_loops): Don't paralelize loop that has phi with address
28826         arg.
28828 2016-01-10  Tom de Vries  <tom@codesourcery.com>
28830         PR tree-optimization/69039
28831         * tree-parloops.c (try_create_reduction_list): Only allow single exit
28832         phi for reduction.
28834 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
28836         PR middle-end/68743
28837         * match.pd: Require target has function_c99_misc before doing
28838         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
28840 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
28842         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
28843         use GMPINC.
28844         * configure: Regenerate.
28846 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
28848         PR middle-end/50865
28849         PR tree-optimization/69097
28850         * fold-const.h (expr_not_equal_to): New prototype.
28851         * fold-const.c: Include stringpool.h and tree-ssanames.h.
28852         (expr_not_equal_to): New function.
28853         * match.pd (X % -Y is the same as X % Y): Don't optimize
28854         unless X is known not to be equal to minimum or Y is known
28855         not to be equal to -1.
28856         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
28857         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
28858         (simplify_stmt_using_ranges): Adjust caller.
28859         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
28860         substitute_and_fold.
28862 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
28864         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
28865         w/o DECL_NAME.
28867 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
28869         PR tree-optimization/69167
28870         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
28871         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
28872         ops[0] comparison.
28873         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
28875 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
28876             Richard Biener  <rguenther@suse.de>
28878         PR tree-optimization/68707
28879         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
28880         instances that can be handled via vect_load_lanes.
28882 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
28884         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
28885         if we can't determine address equivalence.
28886         * alias.c (compare_base_decl): Update for changed return value of
28887         symtab_node::equal_address_to.
28889 2016-01-08  Jason Merrill  <jason@redhat.com>
28891         PR c++/68983
28892         PR c++/67557
28893         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
28894         * expr.c (store_field): Not here.
28895         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
28896         call with TREE_ADDRESSABLE type.
28897         * tree-cfg.c (verify_gimple_call): Adjust.
28899 2016-01-08  Olivier Hainque  <hainque@adacore.com>
28901         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
28902         libc_internal.
28904 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
28906         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
28907         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
28908         (reduc_smin_v2sf): Rename to...
28909         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
28910         (reduc_splus_v2sf): Rename to...
28911         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
28913 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
28915         PR tree-optimization/69162
28916         * gimplify.c (gimplify_va_arg_expr): Encode original type of
28917         valist argument in another argument.
28918         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
28919         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
28920         to determine the va_list type, build a MEM_REF instead of
28921         build_fold_indirect_ref.
28923         PR tree-optimization/69172
28924         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
28925         gimple_build.
28927 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28929         PR tree-optimization/67781
28930         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
28931         and cmpnop in two steps: first the ones not accessed in original
28932         gimple expression in a endian independent way and then the ones not
28933         accessed in the final result in an endian-specific way.
28935 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
28937         PR tree-optimization/69083
28938         * tree-vect-slp.c (vect_get_constant_vectors): For
28939         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
28940         element type.  If op is fold_convertible_p to vector_type's element
28941         type, use NOP_EXPR instead of VCE.
28943 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
28945         PR rtl-optimization/67778
28946         PR rtl-optimization/68634
28947         PR rtl-optimization/68909
28948         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
28949         block from the stack until done with it.  Remove a superfluous
28950         bitmap set.  Remove a superfluous bitmap test.
28952 2016-01-07  Martin Sebor  <msebor@redhat.com>
28954         PR c/68966
28955         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
28956         constraint on the type of arguments.
28958 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
28960         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
28961         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
28962         unaligned_access on the gcc_options set.
28963         * config/arm/arm.c (arm_option_override_internal): Use
28964         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
28966 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
28968         PR target/69140
28969         * config/i386/i386.c (ix86_frame_pointer_required): Enable
28970         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
28972 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
28974         Revert
28975         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
28977         PR target/69140
28978         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28979         depending on frame_pointer_needed before remaining integer and SSE
28980         registers are saved.
28982 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
28984         PR 1078
28985         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
28987 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28989         PR target/69171
28990         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
28991         Use the "xBm" constraint.
28992         (float<sseintvecmodelower><mode>2<mask_name><round_name):
28993         Likewise.
28994         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
28995         (sse_cvtsi2ssq<round_name>): Likewise.
28996         (sse_cvtss2si<round_name>): Likewise.
28997         (sse_cvtss2siq<round_name>): Likewise.
28998         (sse2_cvtsi2sdq<round_name>): Likewise.
28999         (sse2_cvtsd2si<round_name>): Likewise.
29000         (sse2_cvtsd2siq<round_name>): Likewise.
29001         * config/i386/subst.md (round_nimm_scalar_predicate): New
29002         predicate.
29004 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
29006         PR middle-end/67639
29007         * varasm.c (make_decl_rtl): Mark invalid register vars as
29008         DECL_EXTERNAL.
29010         PR rtl-optimization/66206
29011         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
29012         All callers changed.
29014 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
29016         PR tree-optimization/69141
29017         * tree-ssa-pre.c: Include langhooks.h.
29018         (eliminate_dom_walker::before_dom_children): Use
29019         lang_hooks.decl_printable_name instead of
29020         cgraph_node::get ()->name ().
29022         PR middle-end/68960
29023         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
29024         it and DECL_ALIGN too.
29026 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
29028         * config/mips/mips-ftypes.def: Sort to lexicographical order.
29030 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
29032         PR target/69140
29033         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
29034         depending on frame_pointer_needed before remaining integer and SSE
29035         registers are saved.
29037 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29039         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
29040         mode iterator with VSX_M2.
29041         (*p9_vecstore_<mode>): Likewise.
29042         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
29043         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
29044         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
29045         (define_split for VSX_LE128 stores): Likewise.
29046         (define_peephole2 for TImode LE swaps): Likewise.
29047         (define_split for VSX_LE128 post-reload stores): Likewise.
29049 2016-01-06  Marek Polacek  <polacek@redhat.com>
29051         PR sanitizer/69099
29052         * convert.c (convert_to_integer_1): Adjust call to
29053         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
29054         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
29055         EXPR instead of ARG.
29056         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
29058 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
29060         PR 1078
29061         * doc/extend.texi (RL78 Variable Attributes): New section.
29063 2016-01-05  Marek Polacek  <polacek@redhat.com>
29065         PR c/69104
29066         * builtins.c (get_memmodel): Use expansion point location rather than
29067         the input location.  Call warning_at rather than warning.
29068         (expand_builtin_atomic_compare_exchange): Likewise.
29069         (expand_builtin_atomic_load): Likewise.
29070         (expand_builtin_atomic_store): Likewise.
29071         (expand_builtin_atomic_clear): Likewise.
29073 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29075         PR target/68991
29076         * config/i386/i386.c (ix86_expand_vector_logical_operator):
29077         Replace nonimmediate_operand with vector_operand.
29078         * config/i386/predicates.md (vector_operand): New predicate.
29079         (general_vector_operand): Replace nonimmediate_operand with
29080         vector_operand.
29081         * config/i386/sse.md: Replace nonimmediate_operand with
29082         vector_operand and m constraint with Bm constraint on SSE
29083         patterns with 16-byte memory operand.
29084         * config/i386/subst.md (round_nimm_predicate): Replace
29085         nonimmediate_operand with vector_operand.
29086         (round_saeonly_nimm_predicate): Likewise.
29087         (round_saeonly_nimm_scalar_predicate): New.
29089 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29091         PR target/68991
29092         * config/i386/constraints.md (Bm): New constraint.
29093         * config/i386/predicates.md (vector_memory_operand): New
29094         predicate.
29095         * config/i386/sse.md: Replace xm with xBm in plusminus and
29096         any_logic patterns.
29098 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
29100         PR 1078
29101         * doc/extend.texi (V850 Function Attributes): New section.
29102         (V850 Variable Attributes): New section.
29104 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
29106         PR 1078
29107         * doc/extend.texi (MicroBlaze Function Attributes): Document
29108         interrupt_handler and fast_interrupt attributes.
29110 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
29112         PR other/60465
29113         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
29114         for local symbolic operands.
29115         * config/ia64/predicates.md (local_symbolic_operand64): New
29116         predicate.
29118 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29120         PR rtl-optimization/68651
29121         * combine.c (combine_simplify_rtx): Canonicalize x + x into
29122         x << 1.
29124 2016-01-05  Nathan Sidwell  <nathan@acm.org>
29126         * alias.c (compare_base_decls): Use symtab_node::get.
29128 2016-01-05  Nick Clifton  <nickc@redhat.com>
29130         PR target/68770
29131         * ira-costs.c (copy_cost): Initialise the t_icode field of the
29132         secondary_reload_info structure.
29134         PR target/66655
29135         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
29136         decls if weak support is available.
29138 2016-01-04  Martin Sebor  <msebor@redhat.com>
29140         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
29142 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
29144         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
29145         OPTION_MASK_P9_DFORM.
29147         * config/rs6000/constraints.md (wo constraint): New constraint for
29148         ISA 3.0 (power9).
29150         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
29151         for wo constraint.
29152         (rs6000_init_hard_regno_mode_ok): Likewise.
29154         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
29155         wo constraint.
29157         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
29158         expanders not to have constraints.  Add support for ISA 3.0 xxperm
29159         instruction.  Add support for fusing xxlor with xxperm.
29160         (altivec_vperm_<mode>_internal): Likewise.
29161         (altivec_vperm_v8hiv16qi): Likewise.
29162         (altivec_vperm_<mode>v16q): Likewise.
29163         (altivec_vperm_<mode>_uns): Likewise.
29164         (vperm_v8hiv4si): Likewise.
29165         (vperm_v16qiv8hi): Likewise.
29167         * doc/md.texi (RS/6000 constraints): Document wo constraint.
29169 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
29171         Update copyright years.
29173         * gcc.c (process_command): Update copyright notice dates.
29174         * gcov-dump.c (print_version): Ditto.
29175         * gcov.c (print_version): Ditto.
29176         * gcov-tool.c (print_version): Ditto.
29177         * gengtype.c (create_file): Ditto.
29178         * doc/cpp.texi: Bump @copying's copyright year.
29179         * doc/cppinternals.texi: Ditto.
29180         * doc/gcc.texi: Ditto.
29181         * doc/gccint.texi: Ditto.
29182         * doc/gcov.texi: Ditto.
29183         * doc/install.texi: Ditto.
29184         * doc/invoke.texi: Ditto.
29186 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29188         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
29189         modes larger than TImode as TImode if NEON is not enabled.
29191 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29193         PR target/69100
29194         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
29195         mode for %f0-%f31 only if TARGET_FPU.
29197 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29199         PR target/69072
29200         * config/sparc/sparc.c (scan_record_type): Take into account subfields
29201         to compute the PACKED_P predicate.
29202         (function_arg_record_value): Minor tweaks.
29204 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29206         * doc/install.texi (--with-multilib-list): Describe the meaning of the
29207         option for arm*-*-* targets.
29209 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
29211         * doc/extend.texi (Common Function Attributes): Move docs for
29212         MSP430-specific attributes to....
29213         (MSP430 Function Attributes): ...here.  Delete the redundant
29214         entries and copy-edit the remaining text.
29215         (MSP430 Variable Attributes): Use uniform format for index
29216         entries and add a cross-reference to the corresponding function
29217         attribute docs.
29219 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
29221         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
29222         -finite-math typo.
29223         (x86 Options): Likewise.
29225 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
29227         PR 1078
29229         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
29230         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
29231         to corresponding attribute.
29233 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
29235         * doc/extend.texi (Common Function Attributes) <noplt>: Move
29236         to correct alphabetization of table.  Copy-edit and correct
29237         markup.
29238         <stack_protect>: Likewise.
29239         <target_clones>: Likewise.
29240         <simd>: Likewise.
29241         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
29242         Correct punctuation.
29243         (Code Gen Options) <-fno-plt>: Copy-edit.
29245 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29247         PR target/68917
29248         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
29249         SI values.  Explicitly convert SI to DI and vice-versa.
29251 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
29253         PR tree-optimization/69070
29254         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
29255         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
29257         PR sanitizer/69055
29258         * ubsan.c (ubsan_instrument_float_cast): Call
29259         initialize_sanitizer_builtins.
29261         PR target/69015
29262         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
29264 Copyright (C) 2016 Free Software Foundation, Inc.
29266 Copying and distribution of this file, with or without modification,
29267 are permitted in any medium without royalty provided the copyright
29268 notice and this notice are preserved.