2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / ChangeLog
blob3f7e7f10bd08df80e5e885c859c36251eb5230cb
1 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
4         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
5         availability with TARGET_HAVE_MOVT.
6         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
7         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9         UINTVAL.
10         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
11         extra instruction if MOVW is available.  Use a cost variable
12         incremented by COSTS_N_INSNS (1) when the condition match rather than
13         returning an arithmetic expression based on COSTS_N_INSNS.  Make
14         constant with bottom half word zero cost 2 instruction if MOVW is
15         available.
16         * config/arm/arm.md (define_attr "arch"): Add v8mb.
17         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18         target is ARMv8-M Baseline.
19         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
20         (arm_movtas_ze): Likewise.
21         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
22         alternative for constants satisfying j constraint.
23         (thumb1_movsi_insn): Likewise.
24         (movsi splitter for K alternative): Tighten condition to not trigger
25         if movt is available and j constraint is satisfied.
26         (Pe immediate splitter): Likewise.
27         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
28         constant fitting in an halfword to use MOVW.
29         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
30         effective target.
32 2016-07-13  Richard Biener  <rguenther@suse.de>
34         PR middle-end/71104
35         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
36         gimplifying the LHS.  Make sure to gimplify a returning twice
37         call LHS without using SSA names.
39 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
41         * tree-data-ref.c (find_data_references_in_stmt): Remove
42         unnecessary call to vec::release.
43         (graphite_find_data_references_in_stmt): Likewise.
44         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
45         * tree-vect-stmts.c (vectorizable_condition): Likewise.
47 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
49         * cfgexpand.c (expand_used_vars): Make the type of a local variable auto_vec.
50         * genmatch.c (lower_for): Likewise.
51         * haifa-sched.c (haifa_sched_init): Likewise.
52         (add_to_speculative_block): Likewise.
53         (create_check_block_twin): Likewise.
54         * predict.c (handle_missing_profiles): Likewise.
55         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
56         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
57         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
58         (maybe_lower_iteration_bound): Likewise.
59         * tree-ssa-sccvn.c (DFS): Likewise.
60         * tree-stdarg.c (reachable_at_most_once): Likewise.
61         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
62         (vectorizable_store): Likewise.
64 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
66         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
67         (sccvn_dom_walker): make cond_stack an auto_vec.
69 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
71         * ree.c (struct ext_state): Make type of members auto_vec.
72         (find_and_remove_re): Adjust.
74 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
76         * cfgexpand.c (struct stack_vars_data): Make type of fields
77         auto_vec.
78         (expand_used_vars): Adjust.
80 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
82         * ipa.c (record_cdtor_fn): Adjust.
83         (build_cdtor_fns): Likewise.
84         (ipa_cdtor_merge): Make static_ctors and static_dtors local
85         variables.
87 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
89         * genextract.c (struct accum_extract): Add constructor and make
90         members auto_vec.
91         (gen_insn): Adjust.
93 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
95         * tree.c (struct free_lang_data_d): Add constructor and change
96         types of members to ones that automatically manage resources.
97         (fld_worklist_push): Adjust.
98         (find_decls_types): Likewise.
99         (find_decls_types_in_eh_region): Likewise.
100         (free_lang_data_in_cgraph): Stop manually creating and
101         destroying members of free_lang_data_d.
103 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
105         PR rtl-optimization/68961
106         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
107         peephole variant.  Use sse_reg_operand predicates.
109 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
111         * config/i386/predicates.md (x86_64_immediate_operand)
112         <case CONST_INT>: Remove unneeded truncation to DImode.
113         <case CONST>: Ditto.
114         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
116 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
118         PR target/71805
119         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
120         The xxperm and xxpermr instructions require that the 2nd input
121         operand overlap with the output operand, and not the 1st.
122         (altivec_vperm_v8hiv16qi): Likewise.
123         (altivec_vperm_<mode>_uns_internal): Likewise.
124         (altivec_vpermr_<mode>_internal): Likewise.
125         (vperm_v8hiv4si): Likewise.
126         (vperm_v16qiv8hi): Likewise.
128 2016-07-12  Martin Liska  <mliska@suse.cz>
130         * params.def: Add avg-loop niter.
131         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
132         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
133         * doc/invoke.texi: Document the new parameter.
135 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
137         PR middle-end/71700
138         * expr.c (store_constructor): Mask sign-extended bits when widening
139         sub-word constructor element at the start of a word.
141 2016-07-12  Martin Liska  <mliska@suse.cz>
143         * Makefile.in: Append rule for params-options.h.
144         * params-options.h: New file.
146 2016-07-12  Martin Liska  <mliska@suse.cz>
148         * ira-build.c (mark_loops_for_removal): Properly iterate
149         loops.
151 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
152             Richard Biener  <rguenther@suse.de>
154         PR tree-optimization/23286
155         PR tree-optimization/70159
156         * doc/invoke.texi: Document -fcode-hoisting.
157         * common.opt (fcode-hoisting): New flag.
158         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
159         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
160         (do_regular_insertion): Rename to ...
161         (do_pre_regular_insertion): ... this and amend general comments
162         on insertion strathegy.
163         (do_partial_partial_insertion): Rename to ...
164         (do_pre_partial_partial_insertion): ... this.
165         (do_hoist_insertion): New function.
166         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
167         and call do_hoist_insertion properly.
168         (insert): Adjust.
169         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
170         (pass_pre::execute): Register hoist_insert stats.
172 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
174         PR middle-end/71716
175         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
176         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
177         is different from mode's bitsize.  Small cleanup.
179 2016-07-12  Richard Biener  <rguenther@suse.de>
181         PR rtl-optimization/68961
182         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
183         to simplify to a non-constant.
185 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
187         PR middle-end/71758
188         * omp-low.c (expand_omp_target): Gimplify device.
190         PR tree-optimization/71823
191         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
192         to get vec_oprnds2 from op2.
194 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
196         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
197         Hoist common subexpressions.
198         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
200 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
202         PR target/71800
203         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
204         prevent generation of 'stxsiwx' on pre Power8 hardware.
206 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
208         * input.c: Include cpplib.h.
209         (selftest::temp_source_file): New class.
210         (selftest::temp_source_file::temp_source_file): New ctor.
211         (selftest::temp_source_file::~temp_source_file): New dtor.
212         (selftest::should_have_column_data_p): New function.
213         (selftest::test_should_have_column_data_p): New function.
214         (selftest::temp_line_table): New class.
215         (selftest::temp_line_table::temp_line_table): New ctor.
216         (selftest::temp_line_table::~temp_line_table): New dtor.
217         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
218         it to create a temp_line_table.
219         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
220         locations that are known to have column data.
221         (selftest::line_table_case): New struct.
222         (selftest::test_reading_source_line): Move tempfile handling
223         to class temp_source_file.
224         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
225         (selftest::assert_token_loc_eq): New function.
226         (ASSERT_TOKEN_LOC_EQ): New macro.
227         (selftest::test_lexer): New function.
228         (selftest::boundary_locations): New array.
229         (selftest::input_c_tests): Call test_should_have_column_data_p.
230         Loop over a test matrix of interesting values of location and
231         default_range_bits, calling test_lexer on each case in the matrix.
232         Move call to test_accessing_ordinary_linemaps into the matrix.
233         * selftest.h (ASSERT_EQ): Reimplement in terms of...
234         (ASSERT_EQ_AT): New macro.
236 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
238         PR target/71801
239         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
240         Don't convert TImode in debug insn.
242 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
244         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
245         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
246         (tree_type_common::lang_flag_7): New.
247         (tree_type_common::spare): Reduce size.
248         * tree.h (TYPE_ALIGN_OK): Remove.
249         (TYPE_LANG_FLAG_7): New.
250         (get_inner_reference): Adjust header.
251         * print-tree.c (print_node): Adjust.
252         * expr.c (get_inner_reference): Remove parameter keep_aligning.
253         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
254         calls to get_inner_reference.
255         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
256         handling of TYPE_ALIGN_OK.
257         * builtins.c (get_object_alignment_2): Adjust call to
258         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
259         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
260         TYPE_ALIGN_OK.
261         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
262         * cfgexpand.c (expand_debug_expr): Likewise.
263         * dbxout.c (dbxout_expand_expr): Likewise.
264         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
265         loc_list_from_tree, fortran_common): Likewise.
266         * fold-const.c (optimize_bit_field_compare,
267         decode_field_reference, fold_unary_loc, fold_comparison,
268         split_address_to_core_and_offset): Likewise.
269         * gimple-laddress.c (execute): Likewise.
270         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
271         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
272         * hsa-gen.c (gen_hsa_addr): Likewise.
273         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
274         * tsan.c (instrument_expr): Likewise.
275         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
276         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
277         * tree-affine.c (tree_to_aff_combination,
278         get_inner_reference_aff): Adjust calls to get_inner_reference.
279         * tree-data-ref.c (split_constant_offset_1,
280         dr_analyze_innermost): Likewise.
281         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
282         * tree-sra.c (ipa_sra_check_caller): Likewise.
283         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
284         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
285         bswap_replace): Likewise.
286         * tree-vect-data-refs.c (vect_check_gather,
287         vect_analyze_data_refs): Likewise.
288         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
289         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
290         TYPE_ALIGN_OK.
292 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
294         * Makefile.in (selftest-valgrind): New phony target.
295         * function-tests.c (selftest::build_cfg): Delete pass instances
296         created by the test.
297         (selftest::convert_to_ssa): Likewise.
298         (selftest::test_expansion_to_rtl): Likewise.
299         * tree-cfg.c (selftest::test_linear_chain): Release dominator
300         vectors.
301         (selftest::test_diamond): Likewise.
303 2016-07-11  Richard Biener  <rguenther@suse.de>
305         PR tree-optimization/71816
306         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
307         than replacing all of its operands.
309 2016-07-11  Alan Modra  <amodra@gmail.com>
311         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
312         (ctr<mode>): Add unspec.
313         (ctr<mode>_internal*): Likewise.
315 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
317         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
318         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
320 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
322         PR rtl-optimization/71621
323         * lra-constraints.c (process_alt_operands): Check combination of
324         reg class and mode.
326 2016-07-08  Jason Merrill  <jason@redhat.com>
327             Richard Biener  <rguenther@suse.de>
329         P0145: Refining Expression Order for C++.
330         * gimplify.c (initial_rhs_predicate_for): New.
331         (gimplfy_modify_expr): Gimplify RHS before LHS.
333 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
335         PR target/71297
336         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
337         Allow standard error handling to take over when a wrong number
338         of arguments is presented to __builtin_vec_ld () or
339         __builtin_vec_st ().
341 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
343         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
344         variants.
345         (smin): Likewise.
346         (fmax): New entry.
347         (fmin): Likewise.
348         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
349         __builtin_aarch64_fmaxv2sf.
350         (vmaxnmq_f32): Likewise.
351         (vmaxnmq_f64): Likewise.
352         (vminnm_f32): Likewise.
353         (vminnmq_f32): Likewise.
354         (vminnmq_f64): Likewise.
356 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
358         PR target/71806
359         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
360         enable -mfloat128-hardware by default.
361         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
362         that IEEE 128-bit hardware support needs.
363         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
364         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
365         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
366         floating point requires.
367         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
368         -mfloat128 and -mfloat128-hardware changes.
370 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
372         PR tree-optimization/71667
373         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
375 2016-07-08  Martin Liska  <mliska@suse.cz>
377         PR middle-end/71606
378         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
379         folding produces SAVE_EXPRs, thus return false for the type.
381 2016-07-07  Martin Liska  <mliska@suse.cz>
383         * file-find.c (remove_prefix): New function.
384         * file-find.h (remove_prefix): Declare the function.
385         * gcc-ar.c (main): Skip a folder of the wrapper if
386         a wrapped binary would point to the same file.
388 2016-07-07  Jan Hubicka  <jh@suse.cz>
390         * tree-scalar-evolution.c (iv_can_overflow_p): export.
391         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
392         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
394 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
396         PR ipa/71624
397         * ipa-inline-analysis.c (compute_inline_parameters): Set
398         local.can_change_signature to false for intrumentation
399         thunk callees.
401 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
403         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
404         with TARGET_HAVE_MOVT.
405         (TARGET_HAVE_MOVT): Define.
406         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
407         availability with TARGET_HAVE_MOVT.
408         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
409         availability.
410         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
411         TARGET_THUMB2.
412         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
413         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
414         * config/arm/constraints.md (define_constraint "j"): Use
415         TARGET_HAVE_MOVT to check MOVT availability.
417 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
419         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
421 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
423         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
424         (armv8-m.main): Likewise.
425         (armv8-m.main+dsp): Likewise.
426         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
427         (FL_FOR_ARCH8M_MAIN): Likewise.
428         * config/arm/arm-tables.opt: Regenerate.
429         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
430         armv8-m.main+dsp to BE8_LINK_SPEC.
431         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
432         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
433         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
434         Baseline and Mainline.
435         (arm_option_override_internal): Also disable arm_restrict_it when
436         !arm_arch_notm.  Update comment for -munaligned-access to also cover
437         ARMv8-M Baseline.
438         (arm_file_start): Increase buffer size for printing architecture name.
439         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
440         and armv8-m.main+dsp.
441         (mno-unaligned-access): Clarify that this is disabled by default for
442         ARMv8-M Baseline architectures as well.
444 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
446         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
447         decide whether to prevent some libgcc routines being included for some
448         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
449         link between this condition and the one in
450         libgcc/config/arm/lib1func.S.
452 2016-07-07  Richard Biener  <rguenther@suse.de>
454         * tree-ssa-pre.c: Include alias.h.
455         (compute_avail): If we have multiple VN_REFERENCEs with the
456         same hashtable entry adjust that to make it a valid replacement
457         for all of them with respect to alignment and aliasing
458         when doing insertion.
459         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
460         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
462 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
464         PR target/70098
465         PR target/71763
466         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
467         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
468         constraint.
470 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
472         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
473         (adjust_mems): Adjust.
474         (adjust_insn): Likewise.
475         (prepare_call_arguments): Likewise.
477 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
479         * gcse.c (struct ls_expr): Make stores field a vector.
480         (ldst_entry): Adjust.
481         (free_ldst_entry): Likewise.
482         (print_ldst_list): Likewise.
483         (compute_ld_motion_mems): Likewise.
484         (update_ld_motion_stores): Likewise.
486 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
488         * gcse.c (struct ls_expr): Remove loads field.
489         (ldst_entry): Adjust.
490         (free_ldst_entry): Likewise.
491         (print_ldst_list): Likewise.
492         (compute_ld_motion_mems): Likewise.
494 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
496         * store-motion.c (struct st_expr): Make antic_stores a vector.
497         (st_expr_entry): Adjust.
498         (free_st_expr_entry): Likewise.
499         (print_store_motion_mems): Likewise.
500         (find_moveable_store): Likewise.
501         (compute_store_table): Likewise.
502         (remove_reachable_equiv_notes): Likewise.
503         (replace_store_insn): Likewise.
504         (build_store_vectors): Likewise.
506 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
508         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
509         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
511 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
513         PR tree-optimization/71518
514         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
515         misalign also for outer loops with negative step.
517 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
519         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
520         (cortex_a53_shift): Add mov_shift.
521         (cortex_a53_shift_reg): Add new reservation for register shifts.
522         (cortex_a53_alu): Remove bfm.
523         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
524         (cortex_a53_alu_extr): Add new reservation for EXTR.
525         (bypasses): Improve bypass modelling.
527 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
529         PR target/50739
530         * config/avr/avr.c (avr_asm_select_section): Strip off
531         SECTION_DECLARED from flags when calling get_section.
533 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
535         * tree-vectorizer.h (vect_memory_access_type): Add
536         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
537         * tree-vect-stmts.c (compare_step_with_zero): New function.
538         (perm_mask_for_reverse): Move further up file.
539         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
540         step is negative.
541         (get_negative_load_store_type): New function.
542         (get_load_store_type): Call it.  Add an ncopies argument.
543         (vectorizable_mask_load_store): Update call accordingly and
544         remove tests for negative steps.
545         (vectorizable_store, vectorizable_load): Likewise.  Handle new
546         memory_access_types.
548 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
550         * tree-vectorizer.h (vect_memory_access_type): New enum.
551         (_stmt_vec_info): Add a memory_access_type field.
552         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
553         (vect_model_store_cost): Take an access type instead of a boolean.
554         (vect_model_load_cost): Likewise.
555         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
556         vect_model_store_cost and vect_model_load_cost.
557         * tree-vect-stmts.c (vec_load_store_type): New enum.
558         (vect_model_store_cost): Take an access type instead of a
559         store_lanes_p boolean.  Simplify tests.
560         (vect_model_load_cost): Likewise, but for load_lanes_p.
561         (get_group_load_store_type, get_load_store_type): New functions.
562         (vectorizable_store): Use get_load_store_type.  Record the access
563         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
564         (vectorizable_load): Likewise.
565         (vectorizable_mask_load_store): Likewise.  Replace is_store
566         variable with vls_type.
568 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
570         * tree-vectorizer.h (vect_grouped_load_supported): Add a
571         single_element_p parameter.
572         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
573         Check the PR65518 case here rather than in vectorizable_load.
574         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
575         * tree-vect-stmts.c (vectorizable_load): Likewise.
577 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
579         * tree-vectorizer.h (gather_scatter_info): New structure.
580         (vect_check_gather_scatter): Return a bool rather than a decl.
581         Replace return-by-pointer arguments with a single
582         gather_scatter_info *.
583         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
584         (vect_analyze_data_refs): Update call accordingly.
585         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
586         (vectorizable_mask_load_store): Likewise.  Also record the
587         offset dt and vectype in the gather_scatter_info.
588         (vectorizable_store): Likewise.
589         (vectorizable_load): Likewise.
591 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
593         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
594         strided groups, use the cost of N scalar accesses instead
595         of ncopies vector accesses.
596         (vect_model_load_cost): Likewise.
598 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
600         * tree-vect-stmts.c (vect_cost_group_size): Delete.
601         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
602         variable to indicate when once-per-group costs are being used.
603         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
605 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
607         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
608         peeling-for-gaps condition.
610 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
612         * config/s390/s390.c (s390_expand_vec_init): Force initializer
613         element to register if it doesn't match general_operand.
615 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
616             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
618         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
619         prototype.
620         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
621         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
622         (SIGNBIT): New mode iterator.
623         (Fsignbit): New mode attribute.
624         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
625         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
626         when direct moves are available.
627         (signbit<mode>2_dm): New define_insn_and_split).
628         (signbit<mode>2_dm2): New define_insn.
630 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
632         PR rtl-optimization/71594
633         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
634         into subregs of appropriate mode before trying to emit a conditional
635         move.
637 2016-07-05  Jan Hubicka  <jh@suse.cz>
639         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
640         (simple_iv): Use it.
642 2016-07-05  Jan Hubicka  <jh@suse.cz>
644         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
646 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
648         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
649         "offmemok".
651 2016-07-05  Jan Hubicka  <jh@suse.cz>
653         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
654         IV can overflow.
656 2016-07-05  Richard Biener  <rguenther@suse.de>
658         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
659         Handle empty else block.
660         (is_feasible_trace): Likewise.
661         (split_paths): Likewise.
663 2016-07-05  Richard Biener  <rguenther@suse.de>
665         * tree-loop-distribution.c (distribute_loop): Fix issue with
666         the cost model loop.
668 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
670         * config/arm/neon-testgen.ml: Delete.
671         * config/arm/neon.ml: Delete.
673 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
675         PR c++/71739
676         * tree.c (attribute_value_equal): Use get_attribute_name instead of
677         directly using TREE_PURPOSE.
679 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
681         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
682         * config/aarch64/aarch64_neon.h: Likewise.
683         * config/aarch64/arm_neon.h: Likewise.
684         * config/aarch64/atomics.md: Likewise.
685         * config/aarch64/aarch64-simd-builtins.def: Likewise.
686         * doc/invoke.texi: Likewise.
688 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
690         * config/s390/s390.md: Add "z13" cpu_facility.
691         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
692         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
693         condition" type instructions.
695 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
696             Jeff Law  <law@redhat.com>
698         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
699         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
701 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
703         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
704         permutation for TARGET_AVX512F.
705         (ix86_expand_vec_one_operand_perm_avx512): New function.
706         (expand_vec_perm_1): Invoke introduced function.
707         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
708         it may be not valid after vectorization.
710 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
712         PR target/63874
713         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
714         typo in comment.  Only force to memory if it is a weak
715         external reference.
717 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
718             Jiong Wang  <jiong.wang@arm.com>
720         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
721         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
722         (AARCH64_FL_F16): New.
723         (AARCH64_FL_FOR_ARCH8_2): New.
724         (AARCH64_ISA_8_2): New.
725         (AARCH64_ISA_F16): New.
726         (TARGET_FP_F16INST): New.
727         (TARGET_SIMD_F16INST): New.
728         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
729         ("fp"): Disabling "fp" also disables "fp16".
730         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
731         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
732         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
733         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
735 2016-07-04  Jan Beulich  <jbeulich@suse.com>
737         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
739 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
741         PR target/71720
742         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
743         the insns, use an insn form that does not adjust the offset on
744         little endian systems.
746 2016-07-01  Jan Beulich  <jbeulich@suse.com>
748         * varasm.c (get_variable_section): Validate initializer in
749         named .bss-like sections.
751 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
753         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
754         Exchange the order of the second and third operands in the vpermr
755         instruction tmeplate.
757 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
759         PR target/71698
760         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
761         Disallow TDmode values.
763 2016-07-01  Alan Modra  <amodra@gmail.com>
765         PR rtl-optimization/71709
766         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
767         being set, not referenced.
769 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
771         PR tree-optimization/70729
772         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
773         of loop since it can be not valid after transformation.
775 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
777         * config/arm/arm.c (thumb_reload_in_hi): Delete.
778         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
780 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
782         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
783         for NULL decl.
785 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
787         PR target/71677
788         * config/rs6000/constraints.md (wY constraint): New constraint to
789         match the requirements for the LXSD and STXSD instructions.
790         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
791         predicate to match the requirements for the LXSD and STXSD
792         instructions.
793         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
794         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
795         to make sure that the bottom 2 bits of offset are 0, the address
796         form is offsettable, and no updating is done in the address mode.
797         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
798         (movdi_internal32): Likewise
799         (movdi_internal64): Likewise.
801 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
803         PR tree-optimization/71707
804         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
805         strinfo even for ADDR_EXPR ptr.
807 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
809         * config/rs6000/altivec.md (darn_32): Change the condition to
810         TARGET_P9_MISC instead of TARGET_MODULO.
811         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
812         condition expression.
813         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
814         condition expression.
815         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
816         (DFP_TEST): New code iterator.
817         (dfptstsfi_<code>_mode>): New define_expand.
818         (*dfp_sgnfcnc_<mode>): New define_insn.
819         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
820         definition next to BU_P9_MISC_1 definition and change the MASK
821         value to RS6000_BTM_P9_MISC.
822         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
823         (BU_P9_64BIT_MISC_0): Likewise.
824         (BU_P9_DFP_MISC_0): New macro definition.
825         (BU_P9_DFP_MISC_1): New macro definition.
826         (BU_P9_DFP_MISC_2): New macro definition.
827         (BU_P9_DFP_OVERLOAD_1): New macro definition.
828         (BU_P9_DFP_OVERLOAD_2): New macro definition.
829         (BU_P9_DFP_OVERLOAD_3): New macro definition.
830         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
831         (TSTSFI_LT_TD): Likewise.
832         (TSTSFI_EQ_DD): Likewise.
833         (TSTSFI_EQ_TD): Likewise.
834         (TSTSFI_GT_DD): Likewise.
835         (TSTSFI_GT_TD): Likewise.
836         (TSTSFI_OV_DD): Likewise.
837         (TSTSFI_OV_TD): Likewise.
838         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
839         (TSTSFI_LT_DD): Likewise.
840         (TSTSFI_LT_TD): Likewise.
841         (TSTSFI_EQ): Likewise.
842         (TSTSFI_EQ_DD): Likewise.
843         (TSTSFI_EQ_TD): Likewise.
844         (TSTSFI_GT): Likewise.
845         (TSTSFI_GT_DD): Likewise.
846         (TSTSFI_GT_TD): Likewise.
847         (TSTSFI_OV): Likewise.
848         (TSTSFI_OV_DD): Likewise.
849         (TSTSFI_OV_TD): Likewise.
850         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
851         overloaded test significance functions.
852         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
853         OPTION_MASK_P9_MISC into the representation of this mask.
854         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
855         of this mask.
856         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
857         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
858         non-zero.
859         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
860         argument is a 6-bit unsigned literal value if the icode argument
861         represents a DFP test significance built-in call.
862         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
863         flag used independently and in combination with the
864         RS6000_BTM_64BIT flag.
865         (rs6000_opt_masks): Add entry for power9-misc command-line option.
866         (rs6000_builtin_mask_names): Add entry for power9-misc
867         command-line option.
868         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
869         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
870         RS6000_BTM_P9_MISC macros.
871         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
872         option and change the description of the -mpower9-vector option to
873         enable only vector instructions, removing its erroneously claimed
874         support for scalar instructions.
875         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
876         the ISA 3.0 digital floating point test significance built-in
877         functions.
879 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
881         * config/aarch64/aarch64.c (cortexa35_tunings):
882         Enable AES fusion.  Use cortexa57_branch_cost.
883         (cortexa53_tunings): Use cortexa57_branch_cost.
884         (cortexa72_tunings): Use cortexa57_branch_cost.
885         Use AUTOPREFETCHER_WEAK.
886         (cortexa73_tunings): Use cortexa57_branch_cost.
888 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
889             James Greenhalgh  <james.greenhalgh@arm.com>
891         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
892         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
893         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
894         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
895         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
896         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
897         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
898         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
899         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
900         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
901         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
902         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
903         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
904         New intrinsics.
906 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
907             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
909         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
910         New define_insn.
911         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
913 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
915         PR driver/71651
916         * gcc.c (driver::build_option_suggestions): Pass "option" to
917         add_misspelling_candidates.
918         * opts-common.c (add_misspelling_candidates): Add "option" param;
919         use it to avoid adding negated forms for options marked with
920         RejectNegative.
921         * opts.h (add_misspelling_candidates): Add "option" param.
923 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
925         PR middle-end/71693
926         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
927         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
928         first when permuting bitwise operation with rotate.  Cast
929         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
931 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
933         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
934         for misspelled param names.
935         * params.c: Include spellcheck.h.
936         (find_param_fuzzy): New function.
937         * params.h (find_param_fuzzy): New prototype.
938         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
939         * spellcheck.h (struct edit_distance_traits<const char *>):
940         ...here.
942 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
944         * config/rs6000/predicates.md (const_0_to_7_operand): New
945         predicate, recognize 0..7.
946         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
947         support for doing extracts from V16QImode, V8HImode, V4SImode
948         under ISA 3.0.
949         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
950         vector extract support.
951         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
952         for ISA 3.0 vector extract.
953         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
954         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
955         extracts of a constant element number from small integer vectors
956         on 64-bit ISA 3.0 systems.
957         (vsx_extract_<mode>_di): Likewise.
958         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
959         say when we can do ISA 3.0 vector extracts.
960         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
961         registers, using the stxsiwx instruction.
963 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
965         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
966         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
967         qdf24xx_regmove_cost, qdf24xx_tunings): New.
968         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
969         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
970         * config/arm/arm.c (arm_qdf24xx_tune): New.
972 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
974         * config/aarch64/aarch64.c (cortexa53_tunings):
975         Increase loop alignment to 8.  Set function alignment to 16.
976         (cortexa35_tunings): Likewise.
977         (cortexa57_tunings): Increase loop alignment to 8.
978         (cortexa72_tunings): Likewise.
979         (cortexa73_tunings): Likewise.
981 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
983         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
984         for arm_fp16_ok and arm_fp16_hw.
985         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
986         arm_fp16_alternative.
988 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
990         PR tree-optimization/71655
991         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
992         types when swapping operands.
994 2016-06-29  Martin Liska  <mliska@suse.cz>
996         PR middle-end/71585
997         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
998         * ipa-inline-transform.c (inline_call): Remove unnecessary call
999         of build_optimization_node.
1001 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1003         PR tree-optimization/70729
1004         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1005         independent in loops having positive safelen value.
1006         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1007         it may be not valid after vectorization.
1009 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1011         PR tree-optimization/71625
1012         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
1013         is sorted by ascending list->offset.  If PTR is non-NULL and there is
1014         previous strinfo, call get_stridx_plus_constant.
1015         (get_stridx): Pass exp as second argument to get_addr_stridx.
1016         (addr_stridxptr): Add missing list = list->next, so that there can be
1017         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
1018         the list is sorted by ascending list->offset.
1019         (get_stridx_plus_constant): Adjust so that it can be also called with
1020         ADDR_EXPR instead of SSA_NAME as PTR.
1021         (handle_char_store): Pass NULL_TREE as second argument to
1022         get_addr_stridx.
1024 2016-06-29  Richard Biener  <rguenther@suse.de>
1026         PR rtl-optimization/68961
1027         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1029 2016-06-29  Richard Biener  <rguenther@suse.de>
1031         PR middle-end/71002
1032         * alias.c (component_uses_parent_alias_set_from): Handle
1033         type punning through union accesses by using the union alias set.
1034         * gimple.c (gimple_get_alias_set): Remove union type punning case.
1036 2016-07-29  Richard Biener  <rguenther@suse.de>
1038         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1039         precision not matching mode precision.
1041 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
1043         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1044         pa_output_arg_descriptor.
1045         (call_val_symref_64bit_post_reload): Likewise.
1046         (call_val_powf_64bit_post_reload): Likewise.
1047         (sibcall_internal_symref_64bit): Likewise.
1048         (sibcall_value_internal_symref_64bit): Likewise.
1050 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1052         PR middle-end/71626
1053         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1054         a constant, force its SUBREG_REG into memory or register instead
1055         of whole op1.
1057 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1059         PR target/58655
1060         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1061         * doc/invoke.texi (AVR Options): Document it.
1063 2016-06-28  Walter Lee  <walt@tilera.com>
1065         * config/tilegx/linux.h: Do not include arch/icache.h
1066         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1067         * config/tilepro/linux.h: Do not include arch/icache.h
1068         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1070 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1072         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1073         for big-endian BIT_FIELD_REF.
1075 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
1077         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1078         ('size' attribute): Add '128'.
1079         Include power9.md.
1080         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1081         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1082         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1083         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1084         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1085         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1086         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1087         *trunc<mode>df2_odd): Set size attribute to '128'.
1088         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1089         * config/rs6000/power6.md (power6-fp): Include dfp type.
1090         * config/rs6000/power7.md (power7-fp): Likewise.
1091         * config/rs6000/power8.md (power8-fp): Likewise.
1092         * config/rs6000/power9.md: New file.
1093         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1094         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1095         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1096         htmsimple.
1097         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1098         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1099         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1100         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1101         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1102         dfp_dscri_<mode>): Change type attribute to dfp.
1103         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1104         attribute to vecsimple.
1105         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1106         and prefetch streams.
1107         (rs6000_option_override_internal): Remove temporary code setting
1108         tuning to power8.  Don't set rs6000_sched_groups for power9.
1109         (last_scheduled_insn): Change to rtx_insn *.
1110         (divide_cnt, vec_load_pendulum): New variables.
1111         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
1112         (rs6000_issue_rate): Set issue rate for Power9.
1113         (is_power9_pairable_vec_type): New.
1114         (power9_sched_reorder2): New.
1115         (rs6000_sched_reorder2): Call new function for Power9 specific
1116         reordering.
1117         (insn_must_be_first_in_group): Remove Power9.
1118         (insn_must_be_last_in_group): Likewise.
1119         (force_new_group): Likewise.
1120         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
1121         Initialize divide_cnt/vec_load_pendulum.
1122         (_rs6000_sched_context, rs6000_init_sched_context,
1123         rs6000_set_sched_context): Handle context save/restore of new
1124         variables.
1126 2016-06-28  Richard Biener  <rguenther@suse.de>
1128         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1129         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
1130         COMPONENT_REF operand.
1131         (nonoverlapping_component_refs_p): Likewise.
1132         * stor-layout.c (start_bitfield_representative): Mark
1133         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
1135 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1137         * Makefile.in: Don't cat ../stage_current if it does not exist.
1139         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
1140         last argument is a bit-field.
1142         PR rtl-optimization/71673
1143         * internal-fn.c (expand_arith_overflow_result_store): Use
1144         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
1145         expand_simple_binop.
1147         PR middle-end/66867
1148         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
1149         expand_ifn_atomic_compare_exchange): New functions.
1150         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1151         * tree.h (build_call_expr_internal_loc): Rename to ...
1152         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1153         last argument.
1154         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1155         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1156         ATOMIC_COMPARE_EXCHANGE result.
1157         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1158         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1159         fold_builtin_atomic_compare_exchange): New prototypes.
1160         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1161         fold_builtin_atomic_compare_exchange): New functions..
1162         * tree-ssa.c (execute_update_addresses_taken): If
1163         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1164         of call when finding addressable vars, and if such var becomes
1165         non-addressable, call fold_builtin_atomic_compare_exchange.
1167 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1169         PR target/71670
1170         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1171         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1173 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1175         * config/rs6000/rs6000.md ('type' attribute): Add
1176         veclogical,veccmpfx,vecexts,vecmove insn types.
1177         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1178         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1179         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1180         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1181         *nabs<mode>2_hw): Change type to vecmove.
1182         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1183         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1184         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1185         *ieee_128bit_vsx_abs<mode>2_internal,
1186         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1187         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1188         *ieee128_mtvsrd_32bit): Change type to veclogical.
1189         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1190         *movdi_internal32, *movdi_internal64): Update insn types.
1191         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1192         vsx_extract_<mode>): Change type to veclogical.
1193         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1194         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1195         *vsx_sign_extend_si_v2di): Change type to vecexts.
1196         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1197         type to veclogical.
1198         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1199         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1200         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1201         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1202         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1203         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1204         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1205         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1206         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1207         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1208         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1209         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1210         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1211         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1212         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1213         (ppc7450-vecsimple): Add veclogical, vecmove.
1214         (ppc7450-veccmp): Add veccmpfx.
1215         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1216         vecmove.
1217         (ppc8540_vector_compare): Add veccmpfx.
1218         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1219         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1220         (cell-vecsimple): Add veclogical, vecmove.
1221         (cell-veccmp): Add veccmpfx.
1222         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1223         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1224         veccmpfx.
1225         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1226         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1227         (power4-vecsimple): Add veclogical, vecmove.
1228         (power4-veccmp): Add veccmpfx.
1229         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1230         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1231         (power6-vecsimple): Add veclogical, vecmove.
1232         (power6-veccmp): Add veccmpfx.
1233         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1234         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1235         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1236         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1237         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1238         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1239         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1240         fpsimple.
1241         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1243 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1245         PR target/71656
1246         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1247         OPTION_MASK_P9_DFORM_VECTOR.
1248         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1249         disable -mpower9-dform-vector when using reload.
1250         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1251         New 'strict' argument.  Update all callers.  Add strict addressing
1252         support.
1253         (rs6000_legitimate_offset_address_p): Remove call to
1254         virtual_stack_registers_memory_p.
1255         (rs6000_legitimize_reload_address): Add quad address support.
1256         (rs6000_legitimate_address_p): Move call to quad_address_p above
1257         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1258         to account for new strict usage.
1259         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1260         for new strict usage.
1261         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1263 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1265         PR target/70902
1266         PR target/71453
1267         PR target/71555
1268         PR target/71596
1269         PR target/71657
1270         * config/i386/i386.c (ix86_spill_class): Disable condition to
1271         always return NO_REGS.
1273 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1275         * predict.c: Include gimple-pretty-print.h
1276         (predicted_by_loop_heuristics_p): Check also
1277         PRED_LOOP_EXIT_WITH_RECURSION
1278         (predict_loops): Find self recursive calls and use special purpose
1279         predictors for them; dump log about decisions.
1280         (pass_profile::execute): Dump info about #of iterations.
1281         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1282         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1284 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1286         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1287         output_asm_insn calls and shorten long lines.  Output .CALL
1288         argument descriptor using pa_output_arg_descriptor.  Add various
1289         inline $$dyncall and other optimizations.
1290         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1292 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
1294         PR tree-optimization/71643
1295         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
1296         EH preds.
1298         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
1299         leak a bitmap if dep_bb is NULL.
1301         PR tree-optimization/71631
1302         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
1303         to rewrite_expr_tree even if negate_result, move new_lhs var
1304         declaration and initialization earlier, for powi_result set afterwards
1305         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
1306         if new_lhs != lhs, and don't shadow gsi var.
1308 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1310         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
1311         Add in_loop parameter.
1312         (predict_loops): Add loop guard heuristics.
1313         * predict.def (PRED_LOOP_GUARD): New heuristics.
1315 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1317         * predict.c: Include ipa-utils.h
1318         (tree_bb_level_prediction): Predict recursive calls.
1319         (tree_estimate_probability_bb): Skip inexpensive calls for call
1320         predictor.
1321         * predict.def (PRED_RECURSIVE_CALL): New.
1323 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1325         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
1326         (BU_FLOAT128_1): Likewise.
1327         (FABSQ): Likewise.
1328         (COPYSIGNQ): Likewise.
1329         (RS6000_BUILTIN_NANQ): Likewise.
1330         (RS6000_BUILTIN_NANSQ): Likewise.
1331         (RS6000_BUILTIN_INFQ): Likewise.
1332         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
1333         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
1334         (TARGET_FOLD_BUILTIN): New #define.
1335         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
1336         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
1337         (rs6000_fold_builtin): New target hook implementation, handling
1338         folding of 128-bit NaNs and infinities.
1339         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
1340         entries are filled in to avoid problems during bootstrap
1341         self-test; define builtins for 128-bit NaNs and infinities.
1342         (rs6000_opt_mask): Add entry for float128.
1343         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
1344         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
1345         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
1346         (const_str_type_node): New #define.
1347         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
1348         to a define_expand that dispatches to either copysign<mode>3_soft
1349         or copysign<mode>3_hard.
1350         (copysign<mode>3_hard): Rename from copysign<mode>3.
1351         (copysign<mode>3_soft): New define_insn.
1352         * doc/extend.texi: Document new builtins.
1354 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1356         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
1357         PRIu64 instead of lu.
1359 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1361         PR debug/71642
1362         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
1363         copy the type name.
1365 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1367         PR tree-optimization/71647
1368         * omp-low.c (lower_rec_input_clauses): Convert
1369         omp_clause_aligned_alignment (c) to size_type_node for the
1370         last argument of __builtin_assume_aligned.
1372 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1374         * configure.ac (calling ___tls_get_addr via GOT): New
1375         assembler/linker check.
1376         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
1377         assembler and linker supports calling ___tls_get_addr via GOT.
1378         Otherise, defined to 0.
1379         * config.in: Regenerated.
1380         * configure: Likewise.
1381         * config/i386/constraints.md (Yb): New constraint.
1382         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
1383         (REG_CLASS_NAMES): Likewise.
1384         (REG_CLASS_CONTENTS): Likewise.
1385         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
1386         the b constraint with the Yb constraint.  Call ___tls_get_addr
1387         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
1388         is 1.
1389         (*tls_local_dynamic_base_32_gnu): Likewise.
1390         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
1391         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
1392         (*tls_local_dynamic_base_64_<mode>): Likewise.
1394 2016-06-24  Martin Liska  <mliska@suse.cz>
1396         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
1397         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
1398         few functions.
1399         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
1400         argument to true if the expected number of iterations is
1401         loop-based.
1403 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
1405         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
1406         assemble for 32bit target.
1407         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
1408         and $ld_ix86_gld_32_opt to link for 32bit target.
1409         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
1410         * configure: Regenerate.
1412 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1414         * config/arm/arm.c (int_log2): Delete definition and prototype.
1415         (shift_op): Use exact_log2 instead of int_log2.
1416         (vfp3_const_double_for_fract_bits): Likewise.
1418 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1420         * internal-fn.c (expand_arith_set_overflow): New function.
1421         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
1422         Use it.
1423         (expand_arith_overflow_result_store): Likewise.  Handle precision
1424         smaller than mode precision.
1425         * tree-vrp.c (extract_range_basic): For imag part, handle
1426         properly signed 1-bit precision result.
1427         * doc/extend.texi (__builtin_add_overflow): Document that last
1428         argument can't be pointer to enumerated or boolean type.
1429         (__builtin_add_overflow_p): Document that last argument can't
1430         have enumerated or boolean type.
1432 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1433             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1435         * config/rs6000/predicates.md (splat_input_operand): Rework.
1436         Don't allow constants, since the insns that use this predicate
1437         don't support constants.  Constants are handled by other insns
1438         that are created via combine.  During and after register
1439         allocation, only allow indexed or indirect addresses, and not
1440         general addresses.  Only allow modes supported by the hardware.
1441         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
1442         comment.  Move check for using VSPLTIS<x> to a common location,
1443         instead of doing it in two different places.
1445 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
1447         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1448         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
1449         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
1450         signature_CENTAUR_ebx.
1452 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1454         PR target/66232
1455         PR target/67400
1456         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
1457         (as_ix86_gas_32_opt): This.
1458         (ld_ix86_tls_ldm_opt): Renamed to ...
1459         (ld_ix86_gld_32_opt): This.
1460         (R_386_TLS_LDM reloc): Updated.
1461         (R_386_GOT32X reloc): New assembler/linker check.
1462         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
1463         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
1464         defined to 0.
1465         * config.in: Regenerated.
1466         * configure: Likewise.
1467         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
1468         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
1469         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
1470         if ix86_force_load_from_GOT_p returns true.
1471         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
1472         ix86_force_load_from_GOT_p returns true.
1473         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
1474         the external function address via the GOT slot.
1475         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
1476         HAVE_AS_IX86_GOT32X before returning false.
1477         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
1478         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
1480 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
1482         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
1484 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1486         * Makefile.in: Regenerate.
1487         * doc/install.texi: Document autoprofiledbootstrap.
1489 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1491         * config/i386/gcc-auto-profile: New file.
1493 2016-06-23  Martin Liska  <mliska@suse.cz>
1495         PR middle-end/71619
1496         * predict.c (predict_loops): Revert the hunk that was removed
1497         in r237103.
1499 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1501         * config.gcc: Add support for arm*-*-phoenix* targets.
1502         * config/arm/t-phoenix: New.
1503         * config/phoenix.h: New.
1505 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
1506             H.J. Lu  <hongjiu.lu@intel.com>
1508         PR target/67400
1509         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
1510         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
1511         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
1512         ix86_force_load_from_GOT_p returns true.
1513         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
1514         ix86_force_load_from_GOT_p returns true.
1515         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
1516         ix86_force_load_from_GOT_p returns true.
1517         (ix86_expand_move): Load the external function address via the
1518         GOT slot if ix86_force_load_from_GOT_p returns true.
1519         * config/i386/predicates.md (x86_64_immediate_operand): Return
1520         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
1521         (x86_64_zext_immediate_operand): Ditto.
1523 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
1525         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
1527 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1529         PR c/70339
1530         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
1531         * diagnostic.c (pedwarn_at_rich_loc): New function.
1532         * spellcheck.h (best_match::best_match): Add a
1533         "best_distance_so_far" optional parameter.
1534         (best_match::set_best_so_far): New method.
1535         (best_match::get_best_distance): New accessor.
1536         (best_match::get_best_candidate_length): New accessor.
1538 2016-06-22  Nick Clifton  <nickc@redhat.com>
1540         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
1541         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
1542         modes are accepted as well.
1543         (ucompare_loc_descriptor): Likewise.
1544         (minmax_loc_descriptor): Likewise.
1545         (clz_loc_descriptor): Likewise.
1546         (popcount_loc_descriptor): Likewise.
1547         (bswap_loc_descriptor): Likewise.
1548         (rotate_loc_descriptor): Likewise.
1549         (mem_loc_descriptor): Likewise.
1550         (loc_descriptor): Likewise.
1552 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1554         * common.opt (fdiagnostics-parseable-fixits): New option.
1555         * diagnostic.c: Include "selftest.h".
1556         (print_escaped_string): New function.
1557         (print_parseable_fixits): New function.
1558         (diagnostic_report_diagnostic): Call print_parseable_fixits.
1559         (selftest::assert_print_escaped_string): New function.
1560         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
1561         (selftest::test_print_escaped_string): New function.
1562         (selftest::test_print_parseable_fixits_none): New function.
1563         (selftest::test_print_parseable_fixits_insert): New function.
1564         (selftest::test_print_parseable_fixits_remove): New function.
1565         (selftest::test_print_parseable_fixits_replace): New function.
1566         (selftest::diagnostic_c_tests): New function.
1567         * diagnostic.h (struct diagnostic_context): Add field
1568         "parseable_fixits_p".
1569         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1570         -fdiagnostics-parseable-fixits.
1571         (-fdiagnostics-parseable-fixits): New option.
1572         * opts.c (common_handle_option): Handle
1573         -fdiagnostics-parseable-fixits.
1574         * selftest-run-tests.c (selftest::run_tests): Call
1575         selftest::diagnostic_c_tests.
1576         * selftest.h (selftest::diagnostic_c_tests): New prototype.
1578 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
1580         PR tree-optimization/71488
1581         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
1582         comparison of boolean vectors.
1583         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
1584         of boolean vectors using bitwise operations.
1586 2016-06-22  Andreas Schwab  <schwab@suse.de>
1588         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
1589         Remove declaration.
1591 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1593         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1595 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1597         * config/i386/i386.c (print_reg): Emit an error message on attempt to
1598         print FLAGS_REG.
1600 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1602         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
1603         * config/arm/arm-cores.def (cortex-a73): New entry.
1604         (cortex-a73.cortex-a35): Likewise.
1605         (cortex-a73.cortex-a53): Likewise.
1606         * config/arm/arm-tables.opt: Regenerate.
1607         * config/arm/arm-tune.md: Likewise.
1608         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
1609         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1610         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
1611         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1612         * doc/invoke.texi (ARM Options): Document cortex-a73,
1613         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
1615 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1617         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
1618         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
1619         (cortex-a73.cortex-a35): Likewise.
1620         (cortex-a73.cortex-a53): Likewise.
1621         * config/aarch64/aarch64-tune.md: Regenerate.
1622         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
1623         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
1624         -mcpu and -mtune.
1626 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1628         * configure.ac (gcc_cv_as_compress_debug): Remove
1629         --compress-debug-sections as extra as switch.
1630         Handle gas --compress-debug-sections=type.
1631         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
1632         Handle gld --compress-debug-sections=type.
1633         * configure: Regenerate.
1635 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1637         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
1639 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
1641         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
1642         (do_rewrite): likewise.
1644 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1646         * common/config/mep/mep-common.c: Remove.
1647         * config.gcc: Remove mep-* support.
1648         * config/mep/constraints.md: Remove.
1649         * config/mep/default.h: Remove.
1650         * config/mep/intrinsics.h: Remove.
1651         * config/mep/intrinsics.md: Remove.
1652         * config/mep/ivc2-template.h: Remove.
1653         * config/mep/mep-c5.cpu: Remove.
1654         * config/mep/mep-core.cpu: Remove.
1655         * config/mep/mep-default.cpu: Remove.
1656         * config/mep/mep-ext-cop.cpu: Remove.
1657         * config/mep/mep-intrin.h: Remove.
1658         * config/mep/mep-ivc2.cpu: Remove.
1659         * config/mep/mep-pragma.c: Remove.
1660         * config/mep/mep-protos.h: Remove.
1661         * config/mep/mep.c: Remove.
1662         * config/mep/mep.cpu: Remove.
1663         * config/mep/mep.h: Remove.
1664         * config/mep/mep.md: Remove.
1665         * config/mep/mep.opt: Remove.
1666         * config/mep/predicates.md: Remove.
1667         * config/mep/t-mep: Remove.
1668         * doc/install.texi: Remove mep-* documentation.
1669         * doc/md.texi: Likewise.
1671 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1673         * config.gcc: Remove support for avr-rtems.
1674         * config/avr/gen-avr-mmcu-specs.c: Likewise.
1675         * config/avr/rtems.h: Remove.
1676         * config/avr/t-rtems: Remove.
1678 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1680         * config.gcc: Remove m32r-rtems support.
1681         * config/m32r/rtems.h: Remove.
1683 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1685         * config.gcc: Remove h8300-rtems support.
1686         * config/h8300/rtems.h: Remove.
1687         * config/h8300/t-rtems: Remove.
1689 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1691         * config.gcc: Remove support for knetbsd.
1692         * configure.ac: Likewise.
1693         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
1694         * config/knetbsd-gnu.h: Remove.
1695         * configure: Regenerate.
1697 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1699         * config.gcc: Remove support for openbsd 2 and 3.
1700         * config/openbsd-oldgas.h: Remove.
1702 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1704         * config.gcc: Remove interix support.
1705         * config/i386/i386-interix.h: Remove.
1706         * config/i386/interix.opt: Remove.
1707         * config/i386/t-interix: Remove.
1708         * configure: Regenerate.
1709         * configure.ac: Remove interix support.
1710         * doc/install.texi: Remove interix documentation.
1712 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1714         * config/rs6000/rs6000.h: Add conditional preprocessing directives
1715         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
1716         not defined.
1718 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1720         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
1721         they are both PLACEHOLDER_EXPRs.
1723 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1725         * stor-layout.c (layout_type): Move setting complex MODE to
1726         layout_type, instead of setting it ahead of time by the caller.
1727         * tree.c (build_complex_type): Likewise.
1729 2016-06-21  Martin Liska  <mliska@suse.cz>
1731         * predict.c (force_edge_cold): Replace imposisble with
1732         impossible.
1734 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1736         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
1737         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
1739 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1741         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
1743 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1744             Ilya Enkovich  <ilya.enkovich@intel.com>
1746         PR target/71549
1747         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1748         New member function to convert V1TImode register to SUBREG
1749         TImode in debug insn.
1750         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
1751         after changing register mode to V1TImode.
1753 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
1755         * config/aarch64/aarch64-cores.def (vulcan): New core.
1756         * config/aarch64/aarch64-tune.md: Regenerate.
1757         * doc/invoke.texi: Document vulcan as an available option.
1759 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1761         * cse.c (canon_asm_operands): New function extracted from...
1762         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
1763         either standalone or member of a PARALLEL.
1765 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1767         PR target/30417
1768         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1769         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1770         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1772 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1774         PR target/71103
1775         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1776         constant addresses if can_create_pseudo_p.
1778 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
1780         PR tree-optimization/71588
1781         * tree-ssa-strlen.c (valid_builtin_call): New function.
1782         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1783         it.
1785 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1787         PR middle-end/71581
1788         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1789         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1790         for conversion of scalar user var to complex type and use the
1791         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
1792         punt.
1794         PR rtl-optimization/71591
1795         * toplev.c (toplev::run_self_tests): If no_backend, complain and
1796         don't run any tests.
1798 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
1800         PR target/71571
1801         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
1802         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
1803         space for PIC with non-v32 and the common non-PIC "jump".
1805 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1807         PR target/71559
1808         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
1809         returned values and add UN*/LTGT/*ORDERED cases with values matching
1810         D operand modifier on vcmp for AVX.
1812 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1814         * config/aarch64/aarch64.opt
1815         (mpc-relative-literal-loads): Rename internal option name.
1816         * config/aarch64/aarch64.c
1817         (aarch64_nopcrelative_literal_loads): Rename to
1818         aarch64_pcrelative_literal_loads.
1819         (aarch64_expand_mov_immediate): Likewise.
1820         (aarch64_secondary_reload): Likewise.
1821         (aarch64_can_use_per_function_literal_pools_p): Likewise.
1822         (aarch64_override_options_after_change_1): Rename and simplify logic.
1823         (aarch64_classify_symbol): Merge large model checks into switch,
1824         remove pc-relative load check.
1826 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1828         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
1829         costs relative to the cost of a register move.
1831 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1833         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
1834         (vcvt_n_f64_u64): Likewise.
1835         (vcvt_n_s64_f64): Likewise.
1836         (vcvt_n_u64_f64): Likewise.
1837         (vcvt_f64_s64): Likewise.
1838         (vrecpe_f64): Likewise.
1839         (vcvt_f64_u64): Likewise.
1840         (vrecps_f64): Likewise.
1842 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1844         * config/aarch64/aarch64.md
1845         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
1846         iterators.
1847         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
1848         attributes.
1849         * config/aarch64/aarch64-builtins.c
1850         (aarch64_types_binop_uss_qualifiers): Delete.
1851         (TYPES_BINOP_USS): Likewise.
1852         (aarch64_types_binop_sus_qualifiers): Likewise.
1853         (TYPES_BINOP_SUS): Likewise.
1854         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
1855         (TYPES_FCVTIMM_SUS): Likewise.
1856         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
1857         rather than BINOP.
1858         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
1859         (fcvtzs): Use SHIFTIMM rather than BINOP.
1860         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
1862 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1864         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
1865         costs relative to the cost of a register move.
1867 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1869         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
1870         Allow scalar/single vector modes to be tieable.
1872 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1874         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
1876 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1878         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
1879         "alignement".
1880         * tree.h (TYPE_ALIGN): Likewise.
1882 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1884         PR target/71103
1885         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
1887 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1889         * config/avr/avr.c (avr_print_operand): Fix "format not a string
1890         literal" build warnings.
1891         (avr_print_operand_address): Dito.
1893 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
1895         PR target/71375
1896         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
1897         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
1899 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
1901         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
1903 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1905         PR bootstrap/71435
1906         * reload1.c (reload): Pass 0 to finish_spills when called because
1907         update_eliminables_and_spill returns true and remove did_spill.
1908         (finish_spills): Adjust comment and document GLOBAL parameter.
1910 2016-06-17  DJ Delorie  <dj@redhat.com>
1912         PR target/71338
1913         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
1914         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
1915         (umulqihi3_virt): Likewise.
1916         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
1917         (umulqihi3_real): Likewise.
1919 2016-06-17  Martin Liska  <mliska@suse.cz>
1921         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
1923 2016-06-17  Martin Liska  <mliska@suse.cz>
1925         * predict.def: PRED_LOOP_EXIT from 92 to 85.
1927 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
1929         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
1930         __FAST_MATH__.
1931         (vaddq_f32): Likewise.
1932         (vmul_f32): Likewise.
1933         (vmulq_f32): Likewise.
1934         (vsub_f32): Likewise.
1935         (vsubq_f32): Likewise.
1937 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1939         PR tree-optimization/71347
1940         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
1941         cost for all uses in group.
1943 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
1945         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1946         insert gimple seq if it's not empty.
1948 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1950         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
1951         member OFFSET.
1952         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
1953         rather than OFFSET.
1954         (comp_dr_with_seg_len_pair): Ditto.
1955         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
1956         struct dr_with_seg_len_pair against DR_OFFSET.
1957         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
1958         DR_OFFSET directly.
1960 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1962         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
1964 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
1966         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
1967         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
1968         (pa_output_millicode_call): Likewise.
1969         (pa_output_call): Likewise.
1970         (pa_output_indirect_call): Likewise.
1971         (pa_asm_output_mi_thunk): Likewise.
1973 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1975         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
1977 2016-06-16  Martin Liska  <mliska@suse.cz>
1979         * predict.c (combine_predictions_for_insn): When we find a first
1980         match predictor, we should consider just predictors with
1981         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
1982         DS theory predictor.
1983         (combine_predictions_for_bb): Likewise.
1985 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
1987         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
1988         with base of reference to struct.
1990 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
1992         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
1994 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1996         PR target/71151
1997         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
1998         progmem_swtable_section.
1999         (progmem_swtable_section): Remove.
2000         (avr_asm_function_rodata_section): Remove.
2001         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2002         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2004 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
2006         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2007         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2008         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2009         signature_CENTAUR_ebx.
2010         * config/i386/i386.c (ix86_option_override_internal): Add
2011         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2012         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2013         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2015 2016-06-16  Martin Liska  <mliska@suse.cz>
2017         * predict.def: Add fortran loop preheader predictor.
2018         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2019         fold IFN_BUILTIN_EXPECT with a known constant argument.
2021 2016-06-16  Martin Liska  <mliska@suse.cz>
2023         * predict.def: Add 'Fortran' to display text of all
2024         PRED_FORTRAN_* predictors.
2026 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2028         PR target/71242
2029         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2030         [IA64_BUILTIN_NANSQ]: Ditto.
2031         (ia64_fold_builtin): New function.
2032         (TARGET_FOLD_BUILTIN): New define.
2033         (ia64_init_builtins) Declare const_string_type node.
2034         Add __builtin_nanq and __builtin_nansq builtin functions.
2035         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2037 2016-06-16  Nick Clifton  <nickc@redhat.com>
2039         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2040         MSP430_HWMULT_ prefix to enum values.
2041         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2042         * config/msp430/msp430.c: Update use of enum values.
2043         * config/msp430/msp430.md: Likewise.
2044         * config/msp430/msp430.opt: Likewise.
2046 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
2048         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2049         of comparsions in the last iteration.
2051 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2052             Joern Rennecke  <joern.rennecke@embecosm.com>
2054         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2055         addresses.
2056         (arc_needs_pcl_p): Add GOTOFFPC.
2057         (arc_legitimate_pic_addr_p): Likewise.
2058         (arc_output_pic_addr_const): Likewise.
2059         (arc_legitimize_pic_address): Generate a pc-relative address using
2060         GOTOFFPC.
2061         (arc_output_libcall): Use @pcl syntax.
2062         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2063         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2064         (*movsi_insn): Use @pcl syntax.
2065         (doloop_begin_i): Likewise.
2067 2016-06-16  Martin Liska  <mliska@suse.cz>
2069         * predict.def: Define a new predictor.
2071 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2073         * config/arc/arc.opt (mtp-regno): Update text.
2075 2016-06-16  Renlin Li  <renlin.li@arm.com>
2077         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2079 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2081         PR target/71554
2082         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2083         (setcc + and peephole2): Likewise.
2085         PR rtl-optimization/71532
2086         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2087         memory slots.
2089 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2091         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2092         DImode constants with XXSPLTIB in vector registers.
2093         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2094         vsx_extract_<mode>_internal{1,2} into a single insn that handles
2095         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2096         extraction of the element at the top of the register as a scalar
2097         value.
2098         (vsx_extract_<mode>_internal1): Likewise.
2099         (vsx_extract_<mode>_internal2): Likewise.
2100         * config/rs6000/constraints.md (wi constraint): Remove a comment
2101         about DImode not being allowed in Altivec registers.
2102         (wB constraint): New constraint for constants that can be
2103         generated in Altivec registers with VSPLTISW/VUPKHSW.
2104         * config/rs6000/predicates.md (xxspltib_constant_split): Update
2105         comments.
2106         (xxspltib_constant_nosplit): Likewise.
2107         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2108         support for -mupper-regs-di to enable DImode to go into Altivec
2109         registers.
2110         (POWERPC_MASKS): Likewise.
2111         (power7 cpu): Likewise.
2112         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
2113         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
2114         for DImode being allowed in Altivec registers.  Update wi/wj
2115         constraints.  Set scalar_in_vmx_p flag.
2116         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
2117         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
2118         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
2119         (rs6000_opt_masks): Add -mupper-regs-di.
2120         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
2121         direct move to use wi and not wj.
2122         (lfiwzx): Likewise.
2123         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
2124         alternative.
2125         (floatunssi<mode>2_lfiwzx_mem): Likewise.
2126         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
2127         any VSX register, instead of just Altivec registers, to allow
2128         either operand to be an Altivec register or both.
2129         (fixuns_trunc<mode>di2_fctiduz): Likewise.
2130         (movdi_internal32): Add support for -mupper-regs-di.  Add support
2131         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
2132         the alternatives and attributes to be lined up to be easier to
2133         read.
2134         (movdi_internal64): Likewise.
2135         (64-bit DImode splitters): Change predicates to only split loading
2136         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
2137         load constants in ISA 3.0 or ISA 2.07 respectively.
2138         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2139         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
2140         mention -mcpu=power9 sets these options.
2141         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
2142         wB constraint.
2144 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2146         PR target/67353
2147         * config/avr/avr.c (avr_set_current_function): Warn misspelled
2148         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
2149         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2150         by default to warn misspelled interrupt/ signal handler.
2151         * doc/invoke.texi (AVR Options): Document it. Update description
2152         for -nodevicelib option.
2154 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2156         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2157         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2158         (aarch64_<sur>shll2_n<mode>): Likewise.
2160 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2162         PR middle-end/71529
2163         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2164         DECL_CONTEXT for copied arguments.
2166 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2168         PR tree-optimization/71483
2169         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2170         for slp
2172 2016-06-15  Martin Liska  <mliska@suse.cz>
2174         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2175         instead of predict_edge w/o a probability.
2177 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2179         PR tree-optimization/71439
2180         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2181         live PHIs.
2183 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2185         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2186         register subregs in SET_SRC.
2188 2016-06-15  Richard Biener  <rguenther@suse.de>
2190         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2191         store restrictions.
2193 2016-06-15  Richard Biener  <rguenther@suse.de>
2195         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2196         not consider dependences between accesses that belong to the
2197         same group.
2198         (vect_analyze_data_ref_dependences): Do not analyze read-read
2199         or self-dependences.
2201 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2203         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2204         spellcheck.h.
2205         (find_closest_identifier): Reimplement in terms of
2206         best_match<tree,tree>.
2207         * spellcheck-tree.h: New file.
2208         * spellcheck.c (struct edit_distance_traits<const char *>): New
2209         struct.
2210         (find_closest_string): Reimplement in terms of
2211         best_match<const char *, const char *>.
2212         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2213         overload to spellcheck-tree.h.
2214         (find_closest_identifier): Likewise.
2215         (struct edit_distance_traits<T>): New template.
2216         (class best_match): New class.
2218 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2220         * selftest-run-tests.c (selftest::run_tests): Call
2221         selftest::spellcheck_tree_c_tests.
2222         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2223         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2224         (selftest::test_find_closest_identifier): New function.
2225         (selftest::spellcheck_tree_c_tests): New function.
2226         * spellcheck.c (selftest::test_find_closest_string): Verify that
2227         the order of the vec does not affect the results for this case.
2228         (selftest::test_data): New array.
2229         (selftest::test_metric_conditions): New function.
2230         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2231         Call selftest::test_metric_conditions.
2233 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2235         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2236         (BU_P9_MISC_1): Likewise.
2237         (BU_P9_64BIT_MISC_0): Likewise.
2238         (BU_P9_MISC_0): Likewise.
2240 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2242         * gcc-rich-location.c
2243         (gcc_rich_location::add_fixit_misspelled_id): New method.
2244         * gcc-rich-location.h
2245         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2247 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2249         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2250         FreeBSD 11 and above.
2252 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2254         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2256 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2258         * expmed.h: Close parenthesis in "at your option" in copyright
2259         boilerplate.
2260         * lower-subreg.h: Likewise.
2262 2016-06-14  Richard Biener  <rguenther@suse.de>
2264         PR middle-end/71526
2265         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2266         if available.
2268 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2270         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2271         New function.
2272         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2273         mask+shift version.
2274         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2275         New prototype.
2276         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2277         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2279 2016-06-14  Richard Biener  <rguenther@suse.de>
2281         PR tree-optimization/71522
2282         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2283         copying into float copying.
2285 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2287         PR tree-optimization/71520
2288         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2289         (replace_block_by): Move user labels from bb1 to bb2.
2291 2016-06-14  Richard Biener  <rguenther@suse.de>
2293         PR middle-end/71310
2294         PR bootstrap/71510
2295         * expr.h (get_bit_range): Declare.
2296         * expr.c (get_bit_range): Export.
2297         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
2298         word_mode again to constrain the bitfield access.
2300 2016-06-14  Richard Biener  <rguenther@suse.de>
2302         PR tree-optimization/71521
2303         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2304         division int_const_binop against zero divisor.
2306 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2308         * config/i386/i386.md (signbittf2): New expander.
2309         * config/i386/sse.md (ptesttf2): New insn pattern.
2311 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2313         PR bootstrap/71481
2314         * input.c (selftest::test_reading_source_line): Avoid reading from
2315         __FILE__ by creating a tempfile with known content and reading
2316         from that instead.
2318 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2320         * pretty-print.c (assert_pp_format_colored): Skip the test if
2321         GCC_COLORS is set.
2322         (test_pp_format): Remove comment about GCC_COLORS.
2324 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2326         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
2327         * pretty-print.c (assert_pp_format_va): Add location param and use
2328         it with ASSERT_STREQ_AT.
2329         (assert_pp_format): Add location param and pass it to
2330         assert_pp_format_va.
2331         (assert_pp_format_colored): Likewise.
2332         (ASSERT_PP_FORMAT_1): New.
2333         (ASSERT_PP_FORMAT_2): New.
2334         (ASSERT_PP_FORMAT_3): New.
2335         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
2336         explicitly, or implicitly via the above macros.
2337         * selftest.c (selftest::pass): Use a selftest::location rather
2338         than file and line.
2339         (selftest::fail): Likewise.  Print the function name.
2340         (selftest::fail_formatted): Likewise.
2341         (selftest::assert_streq): Use a selftest::location rather than
2342         file and line.
2343         * selftest.h (selftest::location): New struct.
2344         (SELFTEST_LOCATION): New macro.
2345         (selftest::pass): Accept a const location & rather than file
2346         and line.
2347         (selftest::fail): Likewise.
2348         (selftest::fail_formatted): Likewise.
2349         (selftest::assert_streq): Likewise.
2350         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
2351         (ASSERT_FALSE): Likewise.
2352         (ASSERT_EQ): Likewise.
2353         (ASSERT_NE): Likewise.
2354         (ASSERT_STREQ): Likewise.
2355         (ASSERT_PRED1): Likewise.
2356         (ASSERT_STREQ_AT): New macro.
2358 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2360         * selftest.c (selftest::fail_formatted): New function.
2361         (selftest::assert_streq): New function.
2362         * selftest.h (selftests::fail_formatted): New decl.
2363         (selftest::assert_streq): New decl.
2364         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
2366 2016-06-13  Jeff Law  <law@redhat.com>
2368         PR tree-optimization/71403
2369         * tree-ssa-threadbackward.c
2370         (convert_and_register_jump_thread_path): No longer accept reference
2371         to path.  Do not pop items off the path anymore.
2372         (fsm_find_control_statement_thread_paths): Do not allow threading
2373         to a deeper loop nest.  Pop the last item off the path here rather
2374         than in convert_and_register_jump_thread_path.
2376 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2377             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2379         [AArch64] Emit division using the Newton series
2381         * config/aarch64/aarch64-protos.h
2382         (cpu_approx_modes): Add new member "division".
2383         (aarch64_emit_approx_div): Declare new function.
2384         * config/aarch64/aarch64.c
2385         (generic_approx_modes): New member "division".
2386         (exynosm1_approx_modes): Likewise.
2387         (xgene1_approx_modes): Likewise.
2388         (aarch64_emit_approx_div): Define new function.
2389         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
2390         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
2391         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
2392         * doc/invoke.texi (-mlow-precision-div): Describe new option.
2394 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2395             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2397         [AArch64] Emit square root using the Newton series
2399         * config/aarch64/aarch64-protos.h
2400         (aarch64_emit_approx_rsqrt): Replace with new function
2401         "aarch64_emit_approx_sqrt".
2402         (cpu_approx_modes): New member "sqrt".
2403         * config/aarch64/aarch64.c
2404         (generic_approx_modes): New member "sqrt".
2405         (exynosm1_approx_modes): Likewise.
2406         (xgene1_approx_modes): Likewise.
2407         (aarch64_emit_approx_rsqrt): Replace with new function
2408         "aarch64_emit_approx_sqrt".
2409         (aarch64_override_options_after_change_1): Handle new option.
2410         * config/aarch64/aarch64-simd.md
2411         (rsqrt<mode>2): Use new function instead.
2412         (sqrt<mode>2): New expansion and insn definitions.
2413         * config/aarch64/aarch64.md: Likewise.
2414         * config/aarch64/aarch64.opt
2415         (mlow-precision-sqrt): Add new option description.
2416         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
2418 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2420         [AArch64] Add more choices for the reciprocal square root approximation
2422         Allow a target to prefer such operation depending on the operation mode.
2424         * config/aarch64/aarch64-protos.h
2425         (AARCH64_APPROX_MODE): New macro.
2426         (AARCH64_APPROX_{NONE,ALL}): Likewise.
2427         (cpu_approx_modes): New structure.
2428         (tune_params): New member "approx_modes".
2429         * config/aarch64/aarch64-tuning-flags.def
2430         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
2431         * config/aarch64/aarch64.c
2432         (generic_approx_modes): New core "cpu_approx_modes" structure.
2433         (exynosm1_approx_modes): Likewise.
2434         (xgene1_approx_modes): Likewise.
2435         (generic_tunings): New member "approx_modes".
2436         (cortexa35_tunings): Likewise.
2437         (cortexa53_tunings): Likewise.
2438         (cortexa57_tunings): Likewise.
2439         (cortexa72_tunings): Likewise.
2440         (exynosm1_tunings): Likewise.
2441         (thunderx_tunings): Likewise.
2442         (xgene1_tunings): Likewise.
2443         (use_rsqrt_p): New argument for the mode and use new member from
2444         "tune_params".
2445         (aarch64_builtin_reciprocal): Devise mode from builtin.
2446         (aarch64_optab_supported_p): New argument for the mode.
2447         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
2449 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2451         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2452         RS6000_BTM_MODULO flag into the set of flags that are considered
2453         to be part of the common configuration.
2455 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2457         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2458         difference unsigned.
2459         (vec_absdb): New macro for vector absolute difference unsigned
2460         byte.
2461         (vec_absdh): New macro for vector absolute difference unsigned
2462         half-word.
2463         (vec_absdw): New macro for vector absolute difference unsigned word.
2464         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2465         (vadu<mode>3): New insn.
2466         (*p9_vadu<mode>3): New insn.
2467         * config/rs6000/rs6000-builtin.def (vadub): New built-in
2468         definition.
2469         (vaduh): New built-in definition.
2470         (vaduw): New built-in definition.
2471         (vadu): New overloaded built-in definition.
2472         (vadub): New overloaded built-in definition.
2473         (vaduh): New overloaded built-in definition.
2474         (vaduw): New overloaded built-in definition.
2475         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2476         overloaded vector absolute difference unsigned functions.
2477         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2478         the ISA 3.0 vector absolute difference unsigned built-in functions.
2480 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2482         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2483         update shared_lookup_references only once after changing operands.
2485 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
2487         PR middle-end/71373
2488         * tree-nested.c (convert_nonlocal_omp_clauses)
2489         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
2491         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
2492         * tree.def (CASE_LABEL_EXPR): Likewise.
2494 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2496         PR bootstrap/71481
2497         * input.c (test_builtins): Fix an assertion.
2499 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2501         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
2502         (paritysi2): Ditto.
2503         (isinfxf2): Ditto.
2504         (isinf<mode>2): Ditto.
2506 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2508         * ggc-tests.c (test_finalization): Only test need_finalization_p
2509         for GCC_VERSION >= 4003.
2511 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2513         * config/s390/vecintrin.h: Fix file description in comment.
2515 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2517         * config/s390/s390-builtin-types.def: Change builtin type naming
2518         scheme to match builtin-types.def.
2520 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
2522         * fold-const.c (optimize_minmax_comparison): Remove.
2523         (fold_comparison): Remove call to the above.
2524         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
2525         New transformations.
2527 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
2529         PR tree-optimization/71416
2530         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
2531         multiple entries
2533 2016-06-13  Martin Liska  <mliska@suse.cz>
2535         * predict.c (enum predictor_reason): Prefix enum with REASON_.
2536         (combine_predictions_for_insn): Likewise.
2537         (prune_predictions_for_bb): Likewise.
2538         (combine_predictions_for_bb): Likewise.
2540 2016-06-13  Richard Biener  <rguenther@suse.de>
2542         PR tree-optimization/71505
2543         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2544         assert match comment.
2546 2016-06-13  Marek Polacek  <polacek@redhat.com>
2548         PR middle-end/71476
2549         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
2550         gimplify_switch_expr.
2551         (warn_switch_unreachable_r): New function.
2553 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2555         PR target/71379
2556         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2557         one.
2559 2016-06-13  Richard Biener  <rguenther@suse.de>
2561         PR middle-end/64516
2562         * fold-const.c (fold_unary_loc): Preserve alignment when
2563         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2565 2016-06-13  Martin Liska  <mliska@suse.cz>
2567         PR sanitizer/71458
2568         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
2569         w/ -fsanitize=bounds.
2571 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2573         * config/i386/i386.c (ix86_init_builtins): Calculate
2574         FLOAT128_FTYPE_CONST_STRING function type only once.
2575         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
2576         built-in functions are available for x86-32 and x86-64 targets.
2578 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2580         PR target/71241
2581         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
2582         New primitive type.
2583         (FLOAT128_FTYPE_CONST_STRING): New function type.
2584         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
2585         [IX86_BUILTIN_NANSQ]: Ditto.
2586         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2587         (ix86_init_builtin_types): Declare const_string_type_node.
2588         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
2589         builtin functions.
2590         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2591         * doc/extend.texi (x86 Built-in Functions): Document
2592         __builtin_nanq and __builtin_nansq.
2594 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
2596         PR target/71061
2597         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
2598         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
2599         length for pop patterns.
2600         (arm_attr_length_push_multi): Update comments.
2601         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
2602         attribute.
2603         (*pop_multiple_with_writeback_and_return): Likewise.
2604         (*pop_multiple_with_return): Likewise.
2606 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
2608         PR middle-end/71310
2609         * fold-const.c (optimize_bit_field_compare): Don't try to use
2610         word_mode unconditionally for reading the bit field, look at
2611         DECL_BIT_FIELD_REPRESENTATIVE instead.
2613 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2615         PR middle-end/71478
2616         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
2617         vector integer type.
2619 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2621         PR middle-end/71494
2622         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2623         without LABEL_DECL, set *handled_ops_p to false instead of true.
2625 2016-06-10  Martin Sebor  <msebor@redhat.com>
2627         PR c/71392
2628         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
2629         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
2630         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
2631         them.
2632         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
2633         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
2634         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
2635         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
2636         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
2637         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
2638         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
2639         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
2641 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2643         * config/arm/arm.h (pool_vector_label,
2644         return_used_this_function): Remove.
2646 2016-06-10  Jeff Law  <law@redhat.com>
2648         PR tree-optimization/71335
2649         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
2650         zero length paths here.
2651         (convert_and_register_jump_thread_path): Remove hacks related to
2652         duplicated blocks in the jump thread path.
2653         (fsm_find_control_statement_thread_paths): Avoid putting the same
2654         block on the thread path twice, but ensure the thread path is
2655         unchanged from the caller's point of view.
2657 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2659         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
2660         * predict.def (PRED_LOOP_BRANCH): Remove.
2662 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
2664         * Makefile.in (OBJS): Add ggc-tests.o.
2665         (GTFILES): Add ggc-tests.c.
2666         * ggc-tests.c: New file.
2667         * selftest-run-tests.c (selftest::run_tests): Call
2668         selftest::ggc_tests_c_tests.
2669         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
2671 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
2673         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
2675 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
2677         PR sanitizer/71480
2678         * varasm.c (place_block_symbol): Adjust alignment for asan protected
2679         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
2681 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2683         * profile.c: Include cfgloop.h.
2684         (branch_prob): Compute estimated number of iterations.
2685         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2686         recompute estimate number of iterations from profile.
2688 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2690         PR inline-asm/68843
2691         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
2692         must be grouped on top of stack.  Don't force early clobber
2693         on ordinary reg outputs.
2695 2016-06-10  Richard Biener  <rguenther@suse.de>
2697         * targhooks.c (default_builtin_vectorization_cost): Adjust
2698         vec_construct cost.
2700 2016-06-10  Richard Biener  <rguenther@suse.de>
2702         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
2703         to fold the RHS to a constant if possible.
2705 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2707         PR middle-end/71373
2708         * tree-nested.c (convert_nonlocal_omp_clauses)
2709         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2710         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2711         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2713         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2714         OMP_CLAUSE_TILE.
2715         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2717         * omp-low.c (scan_sharing_clauses): Don't expect
2718         OMP_CLAUSE__CACHE_.
2720 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
2722         PR tree-optimization/71407
2723         PR tree-optimization/71416
2724         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
2725         BIT_FIELD_REF type.
2727 2016-06-10  Richard Biener  <rguenther@suse.de>
2729         PR middle-end/71477
2730         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2732 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2734         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2736 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
2737             Jiong Wang  <jiong.wang@arm.com>
2739         PR rtl-optimization/70751
2740         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
2741         spilled into memory.
2743 2016-06-09  Jonathan Yong  <10walls@gmail.com>
2745         Revert:
2746         2015-09-21  Jonathan Yong  <10walls@gmail.com>
2748         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2749         sysroot/usr/lib/32api for additional win32 libraries,
2750         fixes failing Cygwin bootstrapping.
2752 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
2754         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
2755         Delete.
2757 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
2759         PR bootstrap/71471
2760         * pretty-print.c (pp_indent): Specify that %p is printed in a
2761         host-dependent manner.
2762         (test_pp_format): Remove the test for %p.
2764 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
2766         * config/mips/mips.c (mips_output_jump): Fix formatting.
2768 2016-06-09  Richard Biener  <rguenther@suse.de>
2770         PR tree-optimization/71462
2771         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
2772         removed blocks.
2774 2016-06-09  Martin Liska  <mliska@suse.cz>
2776         * predict.c (dump_prediction): Add new argument.
2777         (enum predictor_reason): New enum.
2778         (struct predictor_hash): New struct.
2779         (predictor_hash::hash): New function.
2780         (predictor_hash::equal): Likewise.
2781         (not_removed_prediction_p): New function.
2782         (prune_predictions_for_bb): Likewise.
2783         (combine_predictions_for_bb): Prune predictions.
2785 2016-06-09  Martin Liska  <mliska@suse.cz>
2787         * predict.c (filter_predictions): New function.
2788         (remove_predictions_associated_with_edge): Use the filter
2789         function.
2790         (equal_edge_p): New function.
2792 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
2794         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
2795         Correct usage of @samp vs @option, add @samp where appropriate.
2796         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
2797         Add armv6s-m and document it, as it is no official ARM name.
2799 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2801         * ifcvt.c (struct noce_if_info): Add transform_name field.
2802         (noce_try_move): Set if_info->transform_name to the function name.
2803         (noce_try_ifelse_collapse): Likewise.
2804         (noce_try_store_flag): Likewise.
2805         (noce_try_inverse_constants): Likewise.
2806         (noce_try_store_flag_constants): Likewise.
2807         (noce_try_addcc): Likewise.
2808         (noce_try_store_flag_mask): Likewise.
2809         (noce_try_cmove): Likewise.
2810         (noce_try_cmove_arith): Likewise.
2811         (noce_try_minmax): Likewise.
2812         (noce_try_abs): Likewise.
2813         (noce_try_sign_mask): Likewise.
2814         (noce_try_bitop): Likewise.
2815         (noce_convert_multiple_sets): Likewise.
2816         (noce_process_if_block): Print if_info->transform_name to
2817         dump_file if transformation succeeded.
2819 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2821         * config/arm/cortex-a57.md (cortex_a57_alu):
2822         Handle csel type.
2824 2016-06-08  Martin Sebor  <msebor@redhat.com>
2825             Jakub Jelinek  <jakub@redhat.com>
2827         PR c++/70507
2828         PR c/68120
2829         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
2830         BUILT_IN_MUL_OVERFLOW_P): New builtins.
2831         * builtins.c: Include gimple-fold.h.
2832         (fold_builtin_arith_overflow): Handle
2833         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2834         (fold_builtin_3): Likewise.
2835         * doc/extend.texi (Integer Overflow Builtins): Document
2836         __builtin_{add,sub,mul}_overflow_p.
2838 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2840         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2841         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2843 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
2845         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
2846         Rewrite, looking one level down for records and arrays.
2848 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
2850         * pretty-print.c: Include "selftest.h".
2851         (pp_format): Fix comment.
2852         (identifier_to_locale): Likewise.
2853         (selftest::test_basic_printing): New function.
2854         (selftest::assert_pp_format): New function.
2855         (selftest::test_pp_format): New function.
2856         (selftest::pretty_print_c_tests): New function.
2857         * selftest-run-tests.c (selftest::run_tests): Call
2858         selftest::pretty_print_c_tests.
2859         * selftest.h (pretty_print_c_tests): New declaration.
2861 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2863         * invoke.texi (max-loop-headers-insns): Document.
2864         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
2865         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
2866         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
2868 2016-06-08  Richard Biener  <rguenther@suse.de>
2870         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
2871         on strided SLP loads and fall back to scalar loads in case
2872         we can't chunk them.
2874 2016-06-08  Richard Biener  <rguenther@suse.de>
2876         PR tree-optimization/71452
2877         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2878         type used for the SSA rewrite has enough precision to cover
2879         the dynamic type of the location.
2881 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
2882             Richard Biener  <rguenther@suse.de>
2884         PR c++/71448
2885         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2886         the same as DECL_P (base0) for indirect_base0.  Use equality_code
2887         in one further place.
2889 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
2891         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
2892         to one word if the field is known to overlap other words.
2893         (extract_bit_field_1): Likewise.
2894         (store_split_bit_field): Remove compensating code.
2895         (extract_split_bit_field): Likewise.
2897 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
2899         PR debug/71432
2900         PR ada/71413
2901         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
2903 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2905         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
2906         VDQF.
2907         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
2908         (arch64_addpv4sf): Delete.
2909         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
2910         "gen_aarch64_addpv4sf".
2911         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
2912         builtin.
2913         (vpadds_f32): Likewise.
2914         (vpaddq_f32): Likewise.
2915         (vpaddq_f64): Likewise.
2917 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2919         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
2920         VALLF.
2921         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
2922         to VALLF.  Rename to "fabd<mode>3".
2923         "*fabd_scalar<mode>3): Delete.
2924         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
2925         Use builtin.
2926         (vabdd_f64): Likewise.
2927         (vabd_f32): Likewise.
2928         (vabd_f64): Likewise.
2929         (vabdq_f32): Likewise.
2930         (vabdq_f64): Likewise.
2932 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2934         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
2935         VALLF.
2936         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
2937         "aarch64_rsqrts<mode>".
2938         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
2939         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
2940         builtin.
2941         (vrsqrtsd_f64): Likewise.
2942         (vrsqrts_f32): Likewise.
2943         (vrsqrts_f64): Likewise.
2944         (vrsqrtsq_f32): Likewise.
2945         (vrsqrtsq_f64): Likewise.
2947 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2949         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
2950         VALLF.
2951         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
2952         "aarch64_rsqrte<mode>".
2953         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
2954         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
2955         builtin.
2956         (vrsqrted_f64): Likewise.
2957         (vrsqrte_f32): Likewise.
2958         (vrsqrte_f64): Likewise.
2959         (vrsqrteq_f32): Likewise.
2960         (vrsqrteq_f64): Likewise.
2962 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2964         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
2965         (ucvtf): Likewise.
2966         (fcvtzs): Likewise.
2967         (fcvtzu): Likewise.
2968         * config/aarch64/aarch64-simd.md
2969         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
2970         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
2971         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
2972         Use builtin.
2973         (vcvt_n_f32_u32): Likewise.
2974         (vcvt_n_s32_f32): Likewise.
2975         (vcvt_n_u32_f32): Likewise.
2976         (vcvtq_n_f32_s32): Likewise.
2977         (vcvtq_n_f32_u32): Likewise.
2978         (vcvtq_n_f64_s64): Likewise.
2979         (vcvtq_n_f64_u64): Likewise.
2980         (vcvtq_n_s32_f32): Likewise.
2981         (vcvtq_n_s64_f64): Likewise.
2982         (vcvtq_n_u32_f32): Likewise.
2983         (vcvtq_n_u64_f64): Likewise.
2984         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
2985         (VSDQ_SDI): Likewise.
2986         (fcvt_target): Support V4DI, V4SI and V2SI.
2987         (FCVT_TARGET): Likewise.
2989 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2991         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
2992         (TYPES_BINOP_SUS): Likewise.
2993         (aarch64_simd_builtin_data): Update include file name.
2994         (aarch64_builtins): Likewise.
2995         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
2996         for conversion between scalar float-point and fixed-point.
2997         (ucvtf): Likewise.
2998         (fcvtzs): Likewise.
2999         (fcvtzu): Likewise.
3000         * config/aarch64/aarch64.md
3001         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3002         pattern for conversion between scalar float to fixed-pointer.
3003         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3004         (UNSPEC_FCVTZS): New UNSPEC enumeration.
3005         (UNSPEC_FCVTZU): Likewise.
3006         (UNSPEC_SCVTF): Likewise.
3007         (UNSPEC_UCVTF): Likewise.
3008         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3009         Use builtin.
3010         (vcvtd_n_f64_u64): Likewise.
3011         (vcvtd_n_s64_f64): Likewise.
3012         (vcvtd_n_u64_f64): Likewise.
3013         (vcvtd_n_f32_s32): Likewise.
3014         (vcvts_n_f32_u32): Likewise.
3015         (vcvtd_n_s32_f32): Likewise.
3016         (vcvts_n_u32_f32): Likewise.
3017         * config/aarch64/iterators.md (fcvt_target): Support integer to float
3018         mapping.
3019         (FCVT_TARGET): Likewise.
3020         (FCVT_FIXED2F): New iterator.
3021         (FCVT_F2FIXED): Likewise.
3022         (fcvt_fixed_insn): New define_int_attr.
3024 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3026         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3027         some statements was removed.
3029 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
3031         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3032         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3033         (vect_can_advance_ivs_p): likewise.
3034         (vect_update_ivs_after_vectorizer): likewise.
3035         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3036         (vect_analyze_scalar_cycles_1): likewise.
3037         (vect_analyze_loop_operations): likewise.
3038         (report_vect_op): likewise.
3039         (vect_is_slp_reduction): likewise.
3040         (vect_is_simple_reduction): likewise.
3041         (get_initial_def_for_induction): likewise.
3042         (vect_transform_loop): likewise.
3043         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3044         (vect_recog_sad_pattern): likewise.
3045         (vect_recog_widen_sum_pattern): likewise.
3046         (vect_recog_widening_pattern): likewise.
3047         (vect_recog_divmod_pattern): likewise.
3048         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3049         (vect_analyze_slp_instance): likewise.
3050         (vect_transform_slp_perm_load): likewise.
3051         (vect_schedule_slp_instance): likewise.
3053 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3055         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3056         (return_prediction): PRED_CONST_RETURN predict return as not taken.
3057         * predict.def (PRED_CONTINUE): Change hitrate 50->67
3058         (PRED_LOOP_BRANCH): Document predictor as broken.
3059         (PRED_LOOP_EXIT): Change hitrate 91->92.
3060         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3061         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3062         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3063         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3064         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3065         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3066         (PRED_CALL): Chane hitrate 71->67.
3067         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3068         (PRED_GOTO): Document as unused right now.
3069         (PRED_CONST_RETURN): Change hitrate 67->69
3070         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3071         (PRED_NULL_RETURN): Change hitrate 91->90.
3072         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3073         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3074         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3076 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
3078         * config/rs6000/altivec.h: Add __builtin_vec_mul.
3079         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3080         special case Altivec builtin.
3081         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3082         VSX_BUILTIN_VEC_MUL (replaced with special case code).
3083         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3084         code for ALTIVEC_BUILTIN_VEC_MUL.
3085         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3086         for __builtin_vec_mul.
3088 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3090         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3091         -mno-htm.
3093 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
3095         * spellcheck.c (selftest::test_find_closest_string): New function.
3096         (spellcheck_c_tests): Call the above.
3098 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3100         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3102 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
3104         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3105         Yv=Yv,C alternatives.
3107 2016-06-07  Richard Biener  <rguenther@suse.de>
3109         PR c/61564
3110         * common.opt (ffast-math): Make Optimization.
3112 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
3113             Prachi Godbole  <prachi.godbole@imgtec.com>
3115         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
3116         `fabs' and `fneg' type attributes.
3117         (p5600_fpu_fabs): Add `fmove' to the comment.
3119 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3121         * gimple.c: Include builtins.h
3122         (gimple_inexpensive_call_p): New function.
3123         * gimple.h (gimple_inexpensive_call_p): Declare.
3124         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
3125         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
3126         fix formatting.
3128 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
3130         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
3131         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
3132         warning_at_rich_loc, warning_n, pedwarn, permerror,
3133         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
3134         sorry, fatal_error, internal_error, internal_error_no_backtrace):
3135         Use the above.
3137 2016-06-07  Richard Biener  <rguenther@suse.de>
3139         PR tree-optimization/71428
3140         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
3141         BIT_FIELD_REF op vs. load.
3143 2016-06-07  Richard Biener  <rguenther@suse.de>
3145         PR middle-end/71423
3146         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
3147         for signed ops.
3149 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3151         * config/pa/pa.md (call): Generate indirect long calls to non-local
3152         functions on TARGET_64BIT.
3153         (call_value): Likewise.
3155 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3157         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3158         pattern and subsequent splitters.
3159         (call_val_reg_64bit_post_reload): Likewise.
3161 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3163         PR middle-end/71408
3164         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3165         propagate_op_to_single_use.
3167 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3169         PR middle-end/71281
3170         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3172 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3174         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3175         (enum x86_dirflag_state): New enum.
3176         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3177         (machine_function): Remove needs_cld.
3178         (ix86_current_function_needs_cld): Remove.
3179         * config/i386/i386.c (ix86_set_func_type): Set
3180         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3181         (ix86_expand_prologue): Do not emit CLD here.
3182         (ix86_dirflag_mode_needed): New function.
3183         (ix86_dirflag_mode_entry): Ditto.
3184         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3185         (ix86_mode_after): Ditto.
3186         (ix86_mode_entry): Ditto.
3187         (ix86_mode_exit): Ditto.
3188         (ix86_emit_mode_set): Ditto.
3189         * config/i386/i386.md (strmov_singleop): Set
3190         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3191         Do not set ix86_current_function_needs_cld.
3192         (rep_mov): Ditto.
3193         (strset_singleop): Ditto.
3194         (rep_stos): Ditto.
3195         (cmpstrnqi_nz_1): Ditto.
3196         (cmpstrnqi_1): Ditto.
3197         (strlenqi_1): Ditto.
3199 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3201         PR tree-optimization/71259
3202         * tree-vect-slp.c (vect_get_constant_vectors): For
3203         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3204         one for constant op, and use COND_EXPR for non-constant.
3206 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3208         * Makefile.in (OBJS): Add function-tests.o,
3209         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3210         selftest-run-tests.o.
3211         (OBJS-libcommon): Add selftest.o.
3212         (OBJS-libcommon-target): Add selftest.o.
3213         (all.internal): Add "selftest".
3214         (all.cross): Likewise.
3215         (selftest): New phony target.
3216         (s-selftest): New target.
3217         (selftest-gdb): New phony target.
3218         (COLLECT2_OBJS): Add selftest.o.
3219         * bitmap.c: Include "selftest.h".
3220         (selftest::test_gc_alloc): New function.
3221         (selftest::test_set_range): New function.
3222         (selftest::test_clear_bit_in_middle): New function.
3223         (selftest::test_copying): New function.
3224         (selftest::test_bitmap_single_bit_set_p): New function.
3225         (selftest::bitmap_c_tests): New function.
3226         * common.opt (fself-test): New.
3227         * diagnostic-show-locus.c: Include "selftest.h".
3228         (make_range): New function.
3229         (test_range_contains_point_for_single_point): New function.
3230         (test_range_contains_point_for_single_line): New function.
3231         (test_range_contains_point_for_multiple_lines): New function.
3232         (assert_eq): New function.
3233         (test_get_line_width_without_trailing_whitespace): New function.
3234         (selftest::diagnostic_show_locus_c_tests): New function.
3235         * et-forest.c: Include "selftest.h".
3236         (selftest::test_single_node): New function.
3237         (selftest::test_simple_tree): New function.
3238         (selftest::test_disconnected_nodes): New function.
3239         (selftest::et_forest_c_tests): New function.
3240         * fold-const.c: Include "selftest.h".
3241         (selftest::assert_binop_folds_to_const): New function.
3242         (selftest::assert_binop_folds_to_nonlvalue): New function.
3243         (selftest::test_arithmetic_folding): New function.
3244         (selftest::fold_const_c_tests): New function.
3245         * function-tests.c: New file.
3246         * gimple.c: Include "selftest.h".
3247         Include "gimple-pretty-print.h".
3248         (selftest::verify_gimple_pp): New function.
3249         (selftest::test_assign_single): New function.
3250         (selftest::test_assign_binop): New function.
3251         (selftest::test_nop_stmt): New function.
3252         (selftest::test_return_stmt): New function.
3253         (selftest::test_return_without_value): New function.
3254         (selftest::gimple_c_tests): New function.
3255         * hash-map-tests.c: New file.
3256         * hash-set-tests.c: New file.
3257         * input.c: Include "selftest.h".
3258         (selftest::assert_loceq): New function.
3259         (selftest::test_accessing_ordinary_linemaps): New function.
3260         (selftest::test_unknown_location): New function.
3261         (selftest::test_builtins): New function.
3262         (selftest::test_reading_source_line): New function.
3263         (selftest::input_c_tests): New function.
3264         * rtl-tests.c: New file.
3265         * selftest-run-tests.c: New file.
3266         * selftest.c: New file.
3267         * selftest.h: New file.
3268         * spellcheck.c: Include "selftest.h".
3269         (selftest::levenshtein_distance_unit_test_oneway): New function,
3270         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3271         (selftest::levenshtein_distance_unit_test): Likewise.
3272         (selftest::spellcheck_c_tests): Likewise.
3273         * toplev.c: Include selftest.h.
3274         (toplev::run_self_tests): New.
3275         (toplev::main): Handle -fself-test.
3276         * toplev.h (toplev::run_self_tests): New.
3277         * tree.c: Include "selftest.h".
3278         (selftest::test_integer_constants): New function.
3279         (selftest::test_identifiers): New function.
3280         (selftest::test_labels): New function.
3281         (selftest::tree_c_tests): New function.
3282         * tree-cfg.c: Include "selftest.h".
3283         (selftest::push_fndecl): New function.
3284         (selftest::test_linear_chain): New function.
3285         (selftest::test_diamond): New function.
3286         (selftest::test_fully_connected): New function.
3287         (selftest::tree_cfg_c_tests): New function.
3288         * vec.c: Include "selftest.h".
3289         (selftest::safe_push_range): New function.
3290         (selftest::test_quick_push): New function.
3291         (selftest::test_safe_push): New function.
3292         (selftest::test_truncate): New function.
3293         (selftest::test_safe_grow_cleared): New function.
3294         (selftest::test_pop): New function.
3295         (selftest::test_safe_insert): New function.
3296         (selftest::test_ordered_remove): New function.
3297         (selftest::test_unordered_remove): New function.
3298         (selftest::test_block_remove): New function.
3299         (selftest::reverse_cmp): New function.
3300         (selftest::test_qsort): New function.
3301         (selftest::vec_c_tests): New function.c.
3302         * wide-int.cc: Include selftest.h and wide-int-print.h.
3303         (selftest::from_int <wide_int>): New function.
3304         (selftest::from_int <offset_int>): New function.
3305         (selftest::from_int <widest_int>): New function.
3306         (selftest::assert_deceq): New function.
3307         (selftest::assert_hexeq): New function.
3308         (selftest::test_printing <VALUE_TYPE>): New function template.
3309         (selftest::test_ops <VALUE_TYPE>): New function template.
3310         (selftest::test_comparisons <VALUE_TYPE>): New function template.
3311         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
3312         template.
3313         (selftest::wide_int_cc_tests): New function.
3315 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3317         PR middle-end/37780
3318         * ifcvt.c (noce_try_ifelse_collapse): New function.
3319         Declare prototype.
3320         (noce_process_if_block): Call noce_try_ifelse_collapse.
3321         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
3322         (simplify_ternary_operation): Use the above to simplify
3323         conditional CLZ/CTZ expressions.
3325 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3327         PR middle-end/37780
3328         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
3329         define_insn_and_split.
3331 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3333         PR middle-end/37780
3334         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
3336 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3338         PR c/24414
3339         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
3340         Implicitly clobber memory for basic asm with non-empty assembler
3341         string.  Use targetm.md_asm_adjust also here.
3342         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
3343         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
3344         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
3345         non-empty assembler string.
3346         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
3347         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
3348         (decode_asm_operands): Handle basic asm in PARALLEL block.
3349         (extract_insn): Handle basic asm in PARALLEL block.
3350         * doc/extend.texi: Mention new behavior of basic asm.
3351         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
3352         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
3353         branch_needs_nop_p): Use asm_noperands.
3355 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3357         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3358         Include the M7 SPARC DFA scheduler.
3359         New attribute v3pipe.
3360         Annotate insns with v3pipe where appropriate.
3361         Define cpu_feature vis4.
3362         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3363         Add (V8QI "8") to vbits.
3364         Add insns {add,sub}v8qi3
3365         Add insns ss{add,sub}v8qi3
3366         Add insns us{add,sub}{v8qi,v4hi}3
3367         Add insns {min,max}{v8qi,v4hi,v2si}3
3368         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3369         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3370         * config/sparc/niagara4.md: Add a comment explaining the
3371         discrepancy between the documented latenty numbers and the
3372         implemented ones.
3373         * config/sparc/niagara7.md: New file.
3374         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3375         supports SPARC5 and VIS 4.0 instructions.
3376         * configure: Regenerate.
3377         * config.in: Likewise.
3378         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3379         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3380         TARGET_CPU_niagara7.
3381         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3382         (CPP_CPU_SPEC): Handle niagara7.
3383         (ASM_CPU_SPEC): Likewise.
3384         * config/sparc/sparc-opts.h (processor_type): Add
3385         PROCESSOR_NIAGARA7.
3386         (mvis4): New option.
3387         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3388         (AS_NIAGARA7_FLAG): Define.
3389         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3390         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3391         (CPP_CPU_SPEC): Handle niagara7.
3392         (ASM_CPU_SPEC): Likewise.
3393         * config/sparc/sparc.c (niagara7_costs): Define.
3394         (sparc_option_override): Handle niagara7 and adjust cache-related
3395         parameters with better values for niagara cpus.  Also support VIS4.
3396         (sparc32_initialize_trampoline): Likewise.
3397         (sparc_use_sched_lookahead): Likewise.
3398         (sparc_issue_rate): Likewise.
3399         (sparc_register_move_cost): Likewise.
3400         (dump_target_flag_bits): Support VIS4.
3401         (sparc_vis_init_builtins): Likewise.
3402         (sparc_builtins): Likewise.
3403         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3404         VIS4 4.0.
3405         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3406         UltraSparc M7.
3407         * config/sparc/sparc.opt (sparc_processor_type): New value
3408         niagara7.
3409         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3410         VIS4 builtins.
3411         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3412         -mvis4.
3413         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3414         VIS4 builtins.
3416 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
3418         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
3420 2016-06-06  Richard Biener  <rguenther@suse.de>
3422         PR tree-optimization/71398
3423         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
3424         remove edges.
3426 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
3428         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
3429         ft32_expand_prolog, ft32_expand_epilogue):
3430         Handle pretend_args.
3431         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
3432         * config/ft32/ft32.md: Add pretend_returner.
3434 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
3436         PR target/71389
3437         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3438         Copy op1 RTX to avoid invalid sharing.
3439         (ix86_expand_vector_move_misalign): Ditto.
3441 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
3443         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
3444         ATTRIBUTE_UNUSED.
3446 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3448         * predict.c (predicted_by_loop_heuristics_p): New function.
3449         (predict_iv_comparison): Use it.
3450         (predict_loops): Walk from innermost loops; do not predict edges
3451         leaving multiple loops multiple times; implement
3452         PRED_LOOP_ITERATIONS_MAX heuristics.
3453         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
3455 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3457         * cfg.c (check_bb_profile): Do not report mismatched profiles when
3458         only edges out of BB are EH edges.
3460 2016-06-04  Martin Sebor  <msebor@redhat.com>
3461             Marcin Baczyński  <marbacz@gmail.com>
3463         PR c/48116
3464         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
3465         a void expression in a void function.
3467 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3469         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
3470         aux; dump reasons of decisions.
3471         (should_duplicate_loop_header_p): Likewise.
3472         (do_while_loop_p): Likewise.
3473         (ch_base::copy_headers): Dump asi num insns duplicated.
3475 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3477         PR tree-optimization/71405
3478         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3479         incompatible type, build a new clobber with the right type instead
3480         of building a VIEW_CONVERT_EXPR around it.
3482 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3484         PR tree-optimization/52171
3485         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
3486         by_pieces_ninsns instead of move_by_pieces_ninsns.
3488 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3490         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
3491         for reg+reg addressing mode.
3493 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3495         * rs6000-c.c (c/c-tree.h): Add #include.
3496         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
3497         in C++ when found in the base position of vec_ld or vec_st.
3499 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3501         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
3502         use of profile unless profile status is PROFILE_READ.
3503         * profile.c (compute_branch_probabilities): Set profile status
3504         only after reporting predictor hitrates.
3506 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
3508         PR target/71276
3509         PR target/71277
3510         * common.opt (ffp-int-builtin-inexact): New option.
3511         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
3512         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
3513         (ceil@var{m}2): Document dependence on this option.
3514         * ipa-inline-transform.c (inline_call): Handle
3515         flag_fp_int_builtin_inexact.
3516         * ipa-inline.c (can_inline_edge_p): Likewise.
3517         * config/i386/i386.md (rintxf2): Do not test
3518         flag_unsafe_math_optimizations.
3519         (rint<mode>2_frndint): New define_insn.
3520         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
3521         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
3522         for 387 instead of extending and truncating.
3523         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
3524         !flag_trapping_math instead of flag_unsafe_math_optimizations.
3525         Change to frndint<mode>2_<rounding>.
3526         (frndintxf2_<rounding>_i387): Likewise.  Change to
3527         frndint<mode>2_<rounding>_i387.
3528         (<rounding_insn>xf2): Likewise.
3529         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
3530         !flag_trapping_math instead of flag_unsafe_math_optimizations for
3531         x87.  Test TARGET_ROUND || !flag_trapping_math ||
3532         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
3533         SSE.  Use ROUND_NO_EXC in constant operand of
3534         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
3535         for 387 instead of extending and truncating.
3537 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3538             Julia Koval  <julia.koval@intel.com>
3540         PR target/66960
3541         PR target/67630
3542         PR target/67634
3543         PR target/67841
3544         PR target/68037
3545         PR target/68618
3546         PR target/68661
3547         PR target/69575
3548         PR target/69596
3549         PR target/69734
3550         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
3551         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
3552         all registers, except for function return registers if there are
3553         no caller-saved registers.
3554         (ix86_set_func_type): New function.
3555         (ix86_set_current_function): Call ix86_set_func_type to set
3556         no_caller_saved_registers and func_type.  Call reinit_regs if
3557         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
3558         nor x87 instructions in interrupt handler nor function with
3559         no_caller_saved_registers attribute.
3560         (ix86_function_ok_for_sibcall): Return false if there are no
3561         caller-saved registers.
3562         (type_natural_mode): Don't warn ABI change for MMX in interrupt
3563         handler.
3564         (ix86_function_arg_advance): Skip for callee in interrupt handler.
3565         (ix86_function_arg): Return special arguments in interrupt handler.
3566         (ix86_promote_function_mode): Promote pointer to word_mode only
3567         for normal functions.
3568         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
3569         interrupt handler.
3570         (ix86_epilogue_uses): New function.
3571         (ix86_hard_regno_scratch_ok): Likewise.
3572         (ix86_save_reg): Preserve all registers in interrupt handler
3573         after reload.  Preserve all registers, except for function return
3574         registers, if there are no caller-saved registers after reload.
3575         (find_drap_reg): Always use callee-saved register if there are
3576         no caller-saved registers.
3577         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
3578         for interrupt handler.
3579         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
3580         Emit cld instruction if stringops are used in interrupt handler
3581         or interrupt handler isn't a leaf function.
3582         (ix86_expand_epilogue): Generate interrupt return for interrupt
3583         handler and pop the 'ERROR_CODE' off the stack before interrupt
3584         return in exception handler.
3585         (ix86_expand_call): Disallow calling interrupt handler directly.
3586         If there are no caller-saved registers, mark all registers that
3587         are clobbered by the call which returns as clobbered.
3588         (ix86_handle_no_caller_saved_registers_attribute): New function.
3589         (ix86_handle_interrupt_attribute): Likewise.
3590         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
3591         attributes.
3592         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
3593         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
3594         accumulation in interrupt function if stack may be realigned to
3595         avoid DRAP.
3596         (EPILOGUE_USES): New.
3597         (function_type): New enum.
3598         (machine_function): Add func_type and no_caller_saved_registers.
3599         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
3600         (interrupt_return): New pattern.
3601         * doc/extend.texi: Document x86 interrupt and
3602         no_caller_saved_registers attributes.
3604 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
3606         PR tree-optimization/52171
3607         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
3608         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
3609         Look for constant strings.  Move some code to emit_block_cmp_hints
3610         and use it.
3611         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
3612         * defaults.h (COMPARE_MAX_PIECES): New macro.
3613         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
3614         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
3615         (clear_by_pieces_1): Don't declare.  Move definition before use.
3616         (can_do_by_pieces): New static function.
3617         (can_move_by_pieces): Use it.  Return bool.
3618         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
3619         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
3620         (class pieces_addr); New.
3621         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
3622         pieces_addr::adjust, pieces_addr::increment_address,
3623         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
3624         functions for it.
3625         (class op_by_pieces_d): New.
3626         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
3627         functions for it.
3628         (class move_by_pieces_d, class compare_by_pieces_d,
3629         class store_by_pieces_d): New subclasses of op_by_pieces_d.
3630         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
3631         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
3632         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
3633         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
3634         compare_by_pieces_d::finish_mode): New member functions.
3635         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
3636         functions.
3637         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
3638         (emit_block_cmp_hints): New function.
3639         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
3640         use the newly defined classes.
3641         * expr.h (by_pieces_constfn): New typedef.
3642         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
3643         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
3644         (move_by_pieces_ninsns): Don't declare.
3645         (can_move_by_pieces): Change return value to bool.
3646         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
3647         (compare_by_pieces_branch_ratio): New hook.
3648         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
3649         (by_pieces_ninsns): Declare.
3650         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
3651         COMPARE_BY_PIECES.
3652         (default_compare_by_pieces_branch_ratio): New function.
3653         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
3654         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
3655         * doc/tm.texi: Regenerate.
3656         * tree-ssa-strlen.c: Include "builtins.h".
3657         (handle_builtin_memcmp): New static function.
3658         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
3659         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
3661 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3663         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
3664         relevant stmts which are simple and invariant.
3665         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
3666         instead of simple and invariant
3668 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3670         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
3671         (vectorizable_reduction): Check for new relevant state.
3672         (vectorizable_live_operation): vectorize live stmts using
3673         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
3674         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
3675         (vect_stmt_relevant_p): Check for stmts which are only used live.
3676         (process_use): Use of a stmt does not inherit it's live value.
3677         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
3678         (vect_analyze_stmt): Check for new relevant state.
3679         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
3680         outside the loop, but not inside it.
3682 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3684         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
3685         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
3686         (vect_get_vec_def_for_operand): Split out code.
3688 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
3690         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
3692 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3694         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
3696 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3698         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
3700 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3702         PR middle-end/71387
3703         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3704         to noreturn e->callee->decl that has void return type and void
3705         arguments, adjust gimple_call_fntype and remove lhs even if it had
3706         previously addressable type.
3708 2016-06-02  Jeff Law  <law@redhat.com>
3710         PR tree-optimization/71328
3711         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
3712         error when checking for a jump back onto the copied path.
3714 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
3716         * config/microblaze/microblaze.c (get_branch_target): Add return
3717         NULL_RTX for the non-CALL_P case.
3718         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
3719         (insert_wic): Remove unused local "j".
3721 2016-06-02  Martin Liska  <mliska@suse.cz>
3723         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
3725 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3726             Julia Koval  <julia.koval@intel.com>
3728         * function.c (assign_parm_setup_stack): Force source into a
3729         register if needed.
3730         * target.def (function_incoming_arg): Update documentation to
3731         allow arbitrary address computation based on hard register.
3732         * doc/tm.texi: Regenerated.
3734 2016-06-02  Martin Liska  <mliska@suse.cz>
3736         * predict.c (combine_predictions_for_bb): Fix first match in
3737         cases where a first predictor contains more than one occurence
3738         in list of predictors.  Take the best value in such case.
3740 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3742         PR rtl-optimization/71295
3743         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
3744         offset would go over the size of the inner mode reject it.
3746 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
3748         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
3749         x=x,x and v=v,m instead of x=x,m.
3751         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
3752         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
3753         alternative to v=rm,C.
3755         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
3756         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
3757         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
3758         instead of vex for the last two above mentioned alternatives.
3760 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3762         PR target/70830
3763         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3765 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
3767         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
3769 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
3771         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
3772         from int to unsigned.
3774 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3776         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3777         alternatives, eliminating preferred register class.  Add support
3778         for the MTVSRDD instruction in ISA 3.0.
3779         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3780         reg_or_indexed_operand.
3781         (vsx_splat_v4sf_internal): Likewise.
3783 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3785         PR target/71186
3786         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3787         for loading up all 0's or all 1's.
3789 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3791         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
3793 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3795         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
3796         extension.
3797         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
3798         * gcc.c (set_source_date_epoch_envvar): New function, sets
3799         the SOURCE_DATE_EPOCH environment variable to the current time.
3801 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3803         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3804         the factor for live Phi nodes.
3806 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3808         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
3809         * tree-parloops.c (parallelize_loops): likewise.
3810         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
3811         tree_unswitch_outer_loop): likewise.
3813 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3815         PR middle-end/71371
3816         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3817         around creation of the temporary.
3819 2016-06-01  Richard Biener  <rguenther@suse.de>
3821         PR tree-optimization/71366
3822         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
3823         (unloop_loops): Move removing edges here ...
3824         (try_unroll_loop_completely): ... from here.
3825         (try_peel_loop): ... and here.
3826         (tree_unroll_loops_completely_1): Track parent loops via
3827         bitmap of header BBs.
3828         (tree_unroll_loops_completely): Adjust for that.
3830 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3832         * config/rs6000/altivec.h (vec_slv): New macro.
3833         (vec_srv): New macro.
3834         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3835         (UNSPEC_VSRV): New value.
3836         (vslv): New insn.
3837         (vsrv): New insn.
3838         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3839         (vsrv): New builtin definition.
3840         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3841         define argument types for new builtin.
3842         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3843         new builtin.
3844         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3845         functions.
3847 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3848             Jocelyn Mayer  <l_indien@magic.fr>
3850         PR target/67310
3851         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3852         detect processor family for signature_CENTAUR_ebx.
3853         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3854         signature_CENTAUR_ebx.
3855         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3856         <default>: Pass x86-64 for has_longmode.
3858 2016-06-01  Nathan Sidwell  <nathan@acm.org>
3860         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
3861         undefined weak.
3863 2016-06-01  Richard Biener  <rguenther@suse.de>
3865         PR tree-optimization/71261
3866         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
3867         of stmts successfully put in the bool pattern.  Remove
3868         single-use restriction.
3869         (adjust_bool_pattern_cast): Add cast at the use site via the
3870         pattern def sequence.
3871         (adjust_bool_pattern): Remove recursion, maintain a hash-map
3872         of patterned defs.  Use the pattern def seqence instead of
3873         multiple independent patterns.
3874         (sort_after_uid): New qsort compare function.
3875         (adjust_bool_stmts): New function to process stmts in the bool
3876         pattern in IL order.
3877         (vect_recog_bool_pattern): Adjust.
3878         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
3879         (ifcvt_walk_pattern_tree): Likewise.
3880         (stmt_is_root_of_bool_pattern): Likewise.
3881         (ifcvt_repair_bool_pattern): Likewise.
3882         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
3884 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3886         * loop-unroll.c (decide_unroll_constant_iterations,
3887         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
3888         likely upper bounds.
3889         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
3891 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
3893         * tree-core.h (enum omp_clause_code): Remove
3894         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
3896 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3898         * config/arm/sync.md (arm_store_exclusive<mode>):
3899         Use 'H' output modifier on operands[2] rather than creating a new
3900         entry in out-of-bounds memory of the operands array.
3901         (arm_store_release_exclusivedi): Likewise.
3903 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3905         * config/arm/arm.c (arm_fusion_enabled_p): New function.
3906         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
3907         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
3908         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
3910 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3912         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3913         into account live statements for mask producers.
3915 2016-06-01  Richard Biener  <rguenther@suse.de>
3917         PR tree-optimization/71311
3918         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
3919         restrict to non-INTEGER_CST @0.
3921 2016-06-01  Richard Biener  <rguenther@suse.de>
3923         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
3924         (relational patterns): Use :c to avoid pattern duplications.
3926 2016-06-01  Richard Biener  <rguenther@suse.de>
3928         * genmatch.c (comparison_code_p): New predicate.
3929         (swap_tree_comparison): New function.
3930         (commutate): Add for_vec parameter to append new for entries.
3931         Support commutating relational operators by swapping it alongside
3932         operands.
3933         (lower_commutative): Adjust.
3934         (dt_simplify::gen): Do not pass artificial operators to gen
3935         functions.
3936         (decision_tree::gen): Do not add artificial operators as parameters.
3937         (parser::parse_expr): Verify operator commutativity when :c is
3938         applied.  Allow :C to override this.
3939         * match.pd: Adjust patterns to use :C instead of :c where required.
3941 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
3943         PR tree-optimization/71077
3944         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
3945         the combining step, use boolean_false_node and boolean_true_node
3946         as the designated false/true return values.
3948 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3950         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
3951         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
3952         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
3953         PRED_LOOP_EXIT.
3955 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3957         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
3958         of flags impliying the register renaming.
3959         * toplev.c (process_options): Do not imply flag_rename_registers with
3960         loop peeling.
3962 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3964         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
3965         default implementation.
3967 2016-05-31  Nathan Sidwell  <nathan@acm.org>
3969         * dwarf2out.c (cur_line_info_table): Add GTY marker.
3971 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3973         * config/sh/constraints.md (b): Remove constraint.
3974         * config/sh/predicates.md (arith_reg_operand): Remove
3975         TARGET_REGISTER_P.
3976         * config/sh/sh-modes.def (PDI): Remove.
3977         * config/sh/sh.c (sh_target_reg_class,
3978         sh_optimize_target_register_callee_saved): Remove functions.
3979         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
3980         (sh_expand_epilogue): Update comment.
3981         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
3982         sh_secondary_reload): Remove TARGET_REGS related code.
3983         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
3984         TARGET_REGISTER_P): Remove macros.
3985         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
3986         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
3987         TR1_REG, TR2_REG): Remove constants.
3988         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
3990 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3992         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
3993         define_expand patterns.
3994         (adddi3_compact): Rename to adddi3.
3995         (subdi3_compact): Rename to subdi3.
3996         (*negdi2): Rename to negdi2.
3997         (*abs<mode>2): Rename to abs<mode>2.
3999 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4001         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4002         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4003         (atomic_sub_fetchsi): ... this new pattern.
4004         (mvtc): Add CC_REG clobber.
4006 2016-05-31  Marek Polacek  <polacek@redhat.com>
4008         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4010 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4012         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4013         aarch64_fusion_enabled_p to check for fusion capabilities.
4015 2016-05-31  Richard Biener  <rguenther@suse.de>
4017         PR tree-optimization/71352
4018         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4019         minus one and a negate.
4021 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4023         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4024         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4025         Delete prototype.
4026         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4027         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4028         Remove use of aarch64_simd_attr_length_move, set length attribute
4029         directly.
4030         (*aarch64_be_movoi): Likewise.
4031         (*aarch64_be_movci): Likewise.
4032         (*aarch64_be_movxi): Likewise.
4034 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4036         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4037         It no longer does that.
4038         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4040 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
4042         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4043         attribute __unused__.
4045 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4047         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4048         * config/arm/arm.c (arm_arch_thumb1): Define.
4049         (arm_option_override): Initialize arm_arch_thumb1.
4050         * config/arm/arm.h (arm_arch_thumb1): Declare.
4051         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4052         support Thumb-1 ISA.
4054 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4056         PR target/71346
4057         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4058         `Yv' for scalar operand.
4060 2016-05-31  Tom de Vries  <tom@codesourcery.com>
4062         PR tree-optimization/69068
4063         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4064         phis with more than two args.
4066 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
4068         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4069         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4070         target.
4072 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
4074         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4075         tune_64.
4076         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4077         support on SPARC.
4078         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4079         cpu_32, cpu_64, tune_32 and tune_64.
4080         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4082 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
4084         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4086 2016-05-30  Andi Kleen  <ak@linux.intel.com>
4088         * auto-profile.c (read_profile): Replace asserts with errors
4089         when file does not exist.
4090         * gcov-io.c (gcov_read_words): Dito.
4092 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4094         * tree-cfg.c (print_loop): Print likely upper bounds.
4096 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4098         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4099         * opts.c (default_options): Enable peel loops at -O3.
4100         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4101         (try_peel_loop): Do not re-peel already peeled loops;
4102         use likely upper bounds; fix profile updating.
4103         (pass_complete_unroll::execute): Initialize peeled_loops.
4105 2016-05-30  Martin Liska  <mliska@suse.cz>
4107         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4108         computed costs by frequency of BB they belong to.
4109         (get_scaled_computation_cost_at): New function.
4111 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
4112             Marc Glisse  <marc.glisse@inria.fr>
4114         PR tree-optimization/71289
4115         * match.pd (-1 / B < A, A > -1 / B): New transformations.
4117 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4119         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
4121 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4123         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
4124         for peeled copies; avoid underflow when updating estimates; correctly
4125         scale loop profile.
4127 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4129         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
4130         r236875. Corrected oe3 to oe2 as obvious.
4132 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4134         PR middle-end/71269
4135         PR middle-end/71252
4136         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
4137         that inserted stmt will not dominate stmts that defines its operand.
4138         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
4139         (rewrite_expr_tree_parallel): Likewise.
4141 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4143         PR middle-end/71252
4144         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
4145         all fields including stmt_to_insert are swapped.
4147 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4149         * predict.h (force_edge_cold): Declare.
4150         * predict.c (force_edge_cold): New function.
4151         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4152         updating.
4153         (canonicalize_loop_induction_variables): Fix formating.
4155 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4157         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4158         (visium_expand_copysign): Use gen_int_mode directly.
4159         (visium_compute_frame_size): Minor tweaks.
4161 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4163         * tree-vect-loop.c (vect_analyze_loop_2): Use
4164         likely_max_stmt_executions_int.
4166 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4168         PR tree-optimization/69067
4169         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4171 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4173         PR target/71245
4174         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4175         New peepholes to remove unneeded fild/fistp pairs.
4176         (define_peephole2 atomic_loaddi_fpu): Ditto.
4178 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4180         * predict.c (maybe_hot_frequency_p): Avoid division.
4182 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4184         * doc/install.texi: Use https for shop.fsf.org.
4186 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4188         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4189         likely_max_stmt_executions_int.
4191 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4193         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4194         likely_max_stmt_executions_int.
4196 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4198         * profile.c (compute_branch_probabilities): Do not report hitrates
4199         here.
4200         (branch_prob): Report hitrates here.
4201         * predict.c (gimple_predict_edge): Do not assert profile status;
4202         fix formatting issues.
4204 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4206         * predict.c (edge_predicted_by_p): New function.
4207         (predict_paths_for_bb): Do not put multiple predictions of the same type
4208         on one edge.
4210 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4212         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4213         commit.
4215 2016-05-28  Alan Modra  <amodra@gmail.com>
4217         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4219 2016-05-28  Alan Modra  <amodra@gmail.com>
4221         PR rtl-optimization/71275
4222         * ira.c (ira): Free dominance info.
4224 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4226         * doc/sourcebuild.texi: New address for upstream Go repository.
4228 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4230         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4231         (TARGET_ARM_V7M): Likewise.
4233 2016-05-26  Jeff Law  <law@redhat.com>
4235         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4236         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4237         * passes.def: Add jump threading passes before DOM/VRP.
4238         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4239         argument to a basic block from an edge.  Remove tests which are
4240         handled elsewhere.
4241         (pass_data_thread_jumps, class pass_thread_jumps): New.
4242         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4243         (make_pass_thread_jumps): Likewise.
4244         * tree-pass.h (make_pass_thread_jumps): Declare.
4246 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4248         * config/visium/visium-protos.h (split_double_move): Rename into...
4249         (visium_split_double_move): ...this.
4250         (visium_split_double_add): Declare.
4251         * config/visium/visium.c (split_double_move): Rename into...
4252         (visium_split_double_move): ...this.
4253         (visium_split_double_add): New function.
4254         (visium_expand_copysign): Renumber operands for consistency.
4255         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4256         (DFmode move splitter): Likewise.
4257         (*addi3_insn): Split by means of visium_split_double_add.
4258         (*adddi3_insn_flags): Delete.
4259         (*plus_plus_sltu<subst_arith>): New insn.
4260         (*subdi3_insn): Split by means of visium_split_double_add.
4261         (subdi3_insn_flags): Delete.
4262         (*minus_minus_sltu<subst_arith>): New insn.
4263         (*negdi2_insn): Split by means of visium_split_double_add.
4264         (*negdi2_insn_flags): Delete.
4266 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4268         * configure.ac: Treat a --with-headers option without argument
4269         the same as the default (i.e. consult sys-include directory).
4270         * configure: Regenerate.
4272 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4274         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4275         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4276         prototype.
4277         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4278         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4280 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4282         PR target/63596
4283         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4284         tree-stdarg analysis results.
4285         (aarch64_setup_incoming_varargs): Likewise.
4287 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4289         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4290         va_list_gpr_counter_field and va_list_fpr_counter_field.
4292 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
4294         PR67609
4295         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
4296         * config/aarch64/aarch64.c
4297         (aarch64_cannot_change_mode_class): Remove function.
4298         * config/aarch64/aarch64-protos.h
4299         (aarch64_cannot_change_mode_class): Remove.
4301 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4303         * cfgloop.c (record_niter_bound): Record likely upper bounds.
4304         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
4305         get_likely_max_loop_iterations_int): New.
4306         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
4307         any_likely_upper_bound.
4308         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
4309         Declare.
4310         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
4311         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
4312         upper bound.
4313         (unroll_loop_constant_iterations): Likewise.
4314         (unroll_loop_runtime_iterations): Likewise.
4315         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
4316         * lto-streamer-out.c (output_cfg): Likewise.
4317         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
4318         bounds.
4319         (canonicalize_loop_induction_variables): Dump likely upper bounds.
4320         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
4321         (likely_max_loop_iterations): New.
4322         (likely_max_loop_iterations_int): New.
4323         (likely_max_stmt_executions): New.
4324         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
4325         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
4326         likely_max_stmt_executions): Declare.
4328 2016-05-27  Marek Polacek  <polacek@redhat.com>
4330         PR middle-end/71308
4331         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
4333 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4335         * config/s390/s390.md (2x risbg splitters): Use
4336         reg_overlap_mentioned_p instead of rtx_equal_p.
4338 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4340         * combine.c (make_compound_operation): Take known zero bits into
4341         account when checking for possible zero_extend.
4343 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4345         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
4346         Use const_int_operand for operand 2 predicate.  Simplify expand code
4347         as a result.
4349 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4351         PR middle-end/71279
4352         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4353         into comparison.
4355 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4357         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
4358         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
4359         that returns CC_SESWPmode and CC_ZESWPmode.
4360         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
4361         and CC_SESWPmode.
4362         (aarch64_rtx_costs): Likewise.
4364 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4366         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
4367         for ISA 3.0 min/max support.
4368         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
4369         conditional move support.
4370         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
4371         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
4372         available.
4373         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
4374         conditional moves where the comparison type is different from move
4375         type.
4376         (fp_minmax): New code iterator for smin/smax.
4377         (minmax): New code attributes for min/max.
4378         (SMINMAX): Likewise.
4379         (smax<mode>3): Combine min, max insns into one insn using the
4380         fp_minmax code iterator.  Add support for ISA 3.0 min/max
4381         instructions that don't need -ffast-math.
4382         (s<minmax><mode>3): Likewise.
4383         (smax<mode>3_vsx): Likewise.
4384         (smin<mode>3): Likewise.
4385         (s<minmax><mode>3_vsx): Likewise.
4386         (smin<mode>3_vsx): Likewise.
4387         (pre-VSX min/max splitters): Likewise.
4388         (s<minmax><mode>3_fpr): Likewise.
4389         (movsfcc): Rewrite floating point conditional moves to combine
4390         SFmode/DFmode into a single insn.
4391         (mov<mode>cc): Likewise.
4392         (movdfcc): Likewise.
4393         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
4394         SFDF2 iterators to handle all combinations.
4395         (fseldfsf4): Likewise.
4396         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
4397         (fseldfdf4): Likewise.
4398         (fselsfdf4): Likewise.
4399         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
4400         comparison instructions that set a 0/-1 mask, and use it for
4401         floating point conditional move via XXSEL.
4402         (fpmask<mode>): Likewise.
4403         (xxsel<mode>): Likewise.
4404         * config/rs6000/predicates.md (min_max_operator): Delete, no
4405         longer used.
4406         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
4407         instructions that generate a 0/-1 mask for use with XXSEL.
4408         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
4409         say whether floating point min/max is available, either through
4410         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
4411         (TARGET_MINMAX_DF): Likewise.
4413 2016-05-27  Alan Modra  <amodra@gmail.com>
4415         PR rtl-optimization/71275
4416         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
4417         for update_equiv_regs and combine_and_move_insns.
4419 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
4421         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
4422         if_then_else or cond RTXes to calculate attribute value.
4423         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
4424         <attr "length_immediate>: Ditto.
4425         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
4426         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
4427         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
4428         <attr "type">: Ditto.
4429         <attr "prefix_data16">: Ditto.
4430         <attr "prefix_extra">: Ditto.
4431         <attr "length_immediate">: Ditto.
4432         <attr "prefix">: Ditto.
4433         (vec_set<mode>_0) <attr "isa">: Ditto.
4434         <attr "prefix_extra">: Ditto.
4435         <attr "length_immediate">: Ditto.
4436         <attr "prefix">: Ditto.
4437         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
4438         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
4439         (sse2_storelpd) <attr "prefix_data16">: Ditto.
4440         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
4441         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
4442         <attr "length_immediate">: Ditto.
4443         <attr "prefix">: Ditto.
4444         (sse2_movsd) <attr "length_immediate">: Ditto.
4445         <attr "prefix">: Ditto.
4446         (vec_concatv2df)  <attr "isa">: Ditto.
4447         <attr "prefix">: Ditto.
4448         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
4449         (*vec_extractv2di_1) <attr "isa">: Ditto.
4450         <attr "type">: Ditto.
4451         <attr "length_immediate">: Ditto.
4452         <attr "prefix_rex">: Ditto.
4453         <attr "prefix_extra">: Ditto.
4454         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
4455         <attr "prefix_extra">: Ditto.
4456         <attr "length_immediate">: Ditto.
4457         (vec_concatv2di) <attr "isa">: Ditto.
4458         <attr "prefix_extra">: Ditto.
4459         <attr "length_immediate">: Ditto.
4460         <attr "prefix">: Ditto.
4462 2016-05-26  Martin Liska  <mliska@suse.cz>
4464         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
4465         function.
4466         (operator+): Likewise.
4467         (operator-): Likewise.
4468         (comp_cost::operator+=): Likewise.
4469         (comp_cost::operator-=): Likewise.
4470         (comp_cost::operator/=): Likewise.
4471         (comp_cost::operator*=): Likewise.
4472         (operator<): Likewise.
4473         (operator==): Likewise.
4474         (operator<=): Likewise.
4475         (new_cost): Remove.
4476         (infinite_cost_p): Likewise.
4477         (add_costs): Likewise.
4478         (sub_costs): Likewise.
4479         (compare_costs): Likewise.
4480         (set_group_iv_cost): Use the newly introduced functions.
4481         (get_address_cost): Likewise.
4482         (get_shiftadd_cost): Likewise.
4483         (force_expr_to_var_cost): Likewise.
4484         (split_address_cost): Likewise.
4485         (ptr_difference_cost): Likewise.
4486         (difference_cost): Likewise.
4487         (get_computation_cost_at): Likewise.
4488         (determine_group_iv_cost_generic): Likewise.
4489         (determine_group_iv_cost_address): Likewise.
4490         (determine_group_iv_cost_cond): Likewise.
4491         (autoinc_possible_for_pair): Likewise.
4492         (determine_group_iv_costs): Likewise.
4493         (cheaper_cost_pair): Likewise.
4494         (iv_ca_recount_cost): Likewise.
4495         (iv_ca_set_no_cp): Likewise.
4496         (iv_ca_set_cp): Likewise.
4497         (iv_ca_cost): Likewise.
4498         (iv_ca_new): Likewise.
4499         (iv_ca_dump): Likewise.
4500         (iv_ca_narrow): Likewise.
4501         (iv_ca_prune): Likewise.
4502         (iv_ca_replace): Likewise.
4503         (try_add_cand_for): Likewise.
4504         (try_improve_iv_set): Likewise.
4505         (find_optimal_iv_set): Likewise.
4507 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4509         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
4510         that internal functions will clobber all caller-saved registers.
4512 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4514         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4515         Return a better case_values_threshold when optimizing.
4517 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4519         * config/aarch64/aarch64-simd.md (aarch64_combinez):
4520         Add ? to integer variant.
4521         (aarch64_combinez_be): Likewise.
4523 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4525         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
4526         instead of x constraint.
4527         (vcvtps2ph256<mask_name>): Likewise.
4529         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
4530         alternative.  Formatting fix.
4532         * config/i386/sse.md
4533         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
4534         to ...
4535         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
4536         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
4537         maybe_evex prefix instead of vex.
4538         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
4539         EXT_REX_SSE_REG_P (op0) case in the splitter.
4541 2016-05-25  Jeff Law  <law@redhat.com>
4543         PR tree-optimization/71272
4544         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
4545         Update comments.  Add test for empty path.
4547 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4549         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
4550         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
4551         special case builtin.
4552         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4553         code for ALTIVEC_BUILTIN_VEC_CMPNE.
4554         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4555         for __builtin_vec_cmpne.
4557 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4559         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4560         redundant test and bail out if the type of the new operand is not
4561         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4563 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4565         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
4566         (x_ix86_target_flags_explicit): Remove.
4567         * config/i386/i386.c (ix86_function_specific_save): Do not copy
4568         x_ix86_target_flags_explicit.
4569         (ix86_function_specific_restore): Ditto.
4571 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4572             H.J. Lu  <hongjiu.lu@intel.com>
4574         PR target/70738
4575         * common/config/i386/i386-common.c
4576         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
4577         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
4578         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
4579         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
4580         (-mgeneral-regs-only): Add new option.
4581         * config/i386/i386.c (ix86_option_override_internal): Don't enable
4582         x87 instructions if only general registers are allowed.
4583         (ix86_target_string): Add ix86_flags argument. Handle additional
4584         flags options through ix86_flags argument.  Update all callers.
4585         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
4587 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4589         PR rtl-optimization/66940
4590         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
4591         decrementing desired_val will not overflow before performing these
4592         operations.
4594 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
4596         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
4597         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
4598         * config/i386/i386.c (enum ix86_builtins): Add
4599         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
4600         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
4601         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
4602         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
4603         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
4604         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
4605         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
4606         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
4607         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
4608         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
4609         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
4610         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
4611         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
4612         __builtin_ia32_cvtps2dq512_mask.
4613         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
4614         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
4615         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
4616         * config/i386/sse.md
4617         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
4618         Rename to ...
4619         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
4620         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
4621         to ...
4622         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
4623         (avx512f_vec_pack_sfix_v8df): New define_expand.
4624         (avx512f_roundpd512): Rename to ...
4625         (avx512f_round<castmode>512): ... this.  Change iterator.
4626         (avx512f_roundps512_sfix): New define_expand.
4627         (round<mode>2_sfix): Change iterator.
4629 2016-05-25  Nick Clifton  <nickc@redhat.com>
4631         * config/msp430/msp430.c (msp430_attr): Produce an error if a
4632         static interrupt handler is detected.
4633         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
4634         default linker script.
4635         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
4636         the low part of a symbolic pointer.
4638 2016-05-25  Richard Biener  <rguenther@suse.de>
4640         PR tree-optimization/71261
4641         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
4642         interesting stmt instead of immediate uses when looking
4643         for the use operand to replace.
4645 2016-05-25  Martin Liska  <mliska@suse.cz>
4647         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
4649 2016-05-25  Richard Biener  <rguenther@suse.de>
4651         PR tree-optimization/71264
4652         * tree-vect-stmts.c (vect_init_vector): Properly deal with
4653         vector type val.
4655 2016-05-25  Martin Liska  <mliska@suse.cz>
4657         PR tree-optimization/71239
4658         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
4659         if DECL_SIZE is NULL.
4661 2016-05-25  Richard Biener  <rguenther@suse.de>
4663         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
4664         * tree-if-conv.c (pass_data_if_conversion): Use it.
4666 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4668         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
4669         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
4670         * varpool.c (varpool_node::get_availability): Likewise.
4672 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4674         * config/rs6000/altivec.md (VNEG iterator): New iterator for
4675         VNEGW/VNEGD instructions.
4676         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
4677         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
4678         support for ISA 3.0 VNEGW/VNEGD instructions.
4680 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4682         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
4683         pointers inside OACC_DATA regions.
4684         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
4685         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
4686         (gimplify_adjust_omp_clauses): Fix typo in comment.
4688 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4690         * config/rs6000/altivec.md (VParity): New mode iterator for vector
4691         parity built-in functions.
4692         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
4693         zeros.
4694         (p9v_parity<mode>2): Likewise.
4695         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
4696         parity.
4697         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
4698         (parity<mode>2): ISA 3.0 expander for vector parity.
4699         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
4700         power9 built-ins.
4701         (BU_P9_64BIT_MISC_0): Likewise.
4702         (BU_P9_MISC_0): Likewise.
4703         (BU_P9V_AV_1): Likewise.
4704         (BU_P9V_AV_2): Likewise.
4705         (BU_P9V_AV_3): Likewise.
4706         (BU_P9V_AV_P): Likewise.
4707         (BU_P9V_VSX_1): Likewise.
4708         (BU_P9V_OVERLOAD_1): Likewise.
4709         (BU_P9V_OVERLOAD_2): Likewise.
4710         (BU_P9V_OVERLOAD_3): Likewise.
4711         (VCTZB): Add vector count trailing zeros support.
4712         (VCTZH): Likewise.
4713         (VCTZW): Likewise.
4714         (VCTZD): Likewise.
4715         (VPRTYBD): Add vector parity support.
4716         (VPRTYBQ): Likewise.
4717         (VPRTYBW): Likewise.
4718         (VCTZ): Add overloaded vector count trailing zeros support.
4719         (VPRTYB): Add overloaded vector parity support.
4720         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4721         overloaded vector count trailing zeros and parity instructions.
4722         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
4723         vector parity support.
4724         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
4725         trailing zeros support.
4726         (vec_cntlz): Likewise.
4727         (vec_vctzb): Likewise.
4728         (vec_vctzd): Likewise.
4729         (vec_vctzh): Likewise.
4730         (vec_vctzw): Likewise.
4731         (vec_vprtyb): Add ISA 3.0 vector parity support.
4732         (vec_vprtybd): Likewise.
4733         (vec_vprtybw): Likewise.
4734         (vec_vprtybq): Likewise.
4735         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4736         the ISA 3.0 vector count trailing zeros and vector parity built-in
4737         functions.
4739 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4741         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
4742         when there is stmt_to_insert.
4744 2016-05-24  Martin Sebor  <msebor@redhat.com>
4746         PR c++/71147
4747         * tree.h (complete_or_array_type_p): New inline function.
4749 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4751         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4752         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4753         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
4755         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
4756         Limit 1st alternative to noavx isa, split 2nd alternative into one
4757         noavx and one avx alternative, use *x and Bm in the former and
4758         x and m in the latter.
4760         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
4761         of sse4 for the first alternative, drop %v from the template
4762         and d operand modifier.  Split second alternative into one sse4_noavx
4763         and one avx alternative, use *x instead of *v in the former and v
4764         instead of *v in the latter.
4765         (*sse4_1_extractps): Use noavx isa instead of * for the first
4766         alternative, drop %v from the template.  Split second alternative into
4767         one noavx and one avx alternative, use *x instead of *v in the
4768         former and v instead of *v in the latter.
4769         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
4770         with noavx and the last one with avx.
4771         (sse4_1_phminposuw): Guard first alternative with noavx isa,
4772         split the second one into one noavx and one avx alternative,
4773         use *x and Bm in the former and x and m in the latter one.
4774         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
4775         alternatives.
4777         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
4778         first two alternatives to noavx, use *x instead of *v in the second
4779         one, add avx alternative without *.
4780         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
4781         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
4782         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
4784 2016-05-24  Jeff Law  <law@redhat.com>
4786         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
4787         New function, extracted from...
4788         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
4789         Allow simple copies and constant initializations in the SSA chain.
4791 2016-05-24  Marek Polacek  <polacek@redhat.com>
4793         PR c/71249
4794         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
4795         scope.
4797 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4799         PR c++/71257
4800         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4801         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4802         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4803         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4804         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4806 2016-05-24  Richard Biener  <rguenther@suse.de>
4808         PR tree-optimization/71240
4809         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
4810         has integral type.
4812 2016-05-24  Richard Biener  <rguenther@suse.de>
4814         PR tree-optimization/71230
4815         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
4817 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4819         * tree-vectorizer.h (vectorizable_comparison): Delete.
4820         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
4821         PURE_SLP_STMT check.
4822         * tree-vect-stmts.c (vectorizable_call): Likewise.
4823         (vectorizable_simd_clone_call): Likewise.
4824         (vectorizable_conversion): Likewise.
4825         (vectorizable_assignment): Likewise.
4826         (vectorizable_shift): Likewise.
4827         (vectorizable_operation): Likewise.
4828         (vectorizable_load): Likewise.
4829         (vectorizable_condition): Likewise.
4830         (vectorizable_store): Likewise.  Assert that we don't have
4831         hybrid SLP.
4832         (vectorizable_comparison): Make static.  Remove redundant
4833         PURE_SLP_STMT check.
4834         (vect_transform_stmt): Assert that we always have an slp_node
4835         if PURE_SLP_STMT.
4837 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4839         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
4840         operands[2] against 1 with comparison against CONST1_RTX.
4841         (<shift>di3_neon): Likewise.
4842         * config/arm/predicates.md (const0_operand): Replace with comparison
4843         against CONST0_RTX.
4845 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4847         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
4848         operands[2] against 1 with comparison against CONST1_RTX.
4849         (ashrdi3): Likewise.
4850         (lshrdi3): Likewise.
4851         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
4852         UINTVAL.
4853         (ashrsi3): Likewise.
4854         (lshrsi3): Likewise.
4855         (rotrsi3): Likewise.
4856         (define_split above *compareqi_eq0): Likewise.
4857         (define_split above "prologue"): Likewise.
4858         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
4859         * config/arm/predicates.md (shift_operator): Likewise.
4860         (shift_nomul_operator): Likewise.
4861         (sat_shift_operator): Likewise.
4862         (thumb1_cmp_operand): Likewise.
4863         (const_neon_scalar_shift_amount_operand): Replace manual range
4864         check with IN_RANGE.
4865         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
4866         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
4868 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4870         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
4871         with HOST_WIDE_INT_1.
4872         (insv): Likewise.
4873         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
4874         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
4875         (arm_canonicalize_comparison): Likewise.
4876         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
4877         HOST_WIDE_INT_1.
4878         (thumb1_size_rtx_costs): Likewise.
4879         (vfp_const_double_index): Replace cast of 1 to unsigned
4880         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4881         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
4882         HOST_WIDE_INT_1.
4883         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
4884         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4885         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
4886         HOST_WIDE_INT with HOST_WIDE_INT_1.
4888 2016-05-24  Marek Polacek  <polacek@redhat.com>
4890         * tree-cfg.h (should_remove_lhs_p): New predicate.
4891         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
4892         * gimplify.c (gimplify_modify_expr): Likewise.
4893         * tree-cfg.c (verify_gimple_call): Likewise.
4894         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4895         * gimple-fold.c: Include "tree-cfg.h".
4896         (gimple_fold_call): Use should_remove_lhs_p.
4898 2016-05-24  Richard Biener  <rguenther@suse.de>
4900         PR tree-optimization/71253
4901         * cfganal.h (control_dependences): Make robust against edge
4902         and BB removal.
4903         (control_dependences::control_dependences): Remove edge_list argument.
4904         (control_dependences::get_edge): Remove.
4905         (control_dependences::get_edge_src): Add.
4906         (control_dependences::get_edge_dest): Likewise.
4907         (control_dependences::m_el): Make a vector of edge src/dest index.
4908         * cfganal.c (control_dependences::find_control_dependence): Adjust.
4909         (control_dependences::control_dependences): Likewise.
4910         (control_dependences::~control_dependence): Likewise.
4911         (control_dependences::get_edge): Remove.
4912         (control_dependences::get_edge_src): Add.
4913         (control_dependences::get_edge_dest): Likewise.
4914         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
4915         get_edge_src.
4916         (perform_tree_ssa_dce): Adjust.
4917         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
4918         get_edge_src.
4919         (pass_loop_distribution::execute): Adjust.  Do loop destroying
4920         conditional on changed.
4922 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4924         PR target/69857
4925         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
4926         return.  Reindent transformation comment and mention the ARM state
4927         behavior.
4929 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4931         PR middle-end/71252
4932         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
4933         after build_and_add_sum creates new use stmt.
4935 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4937         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
4938         load_lanes/grouped_load classification comes first.  Don't check
4939         whether the vectorization factor is a multiple of the group size
4940         for load_lanes.
4942 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4944         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
4945         GROUP_GAP for single-element interleaving.
4946         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
4947         variable.
4949 2016-05-24  Richard Biener  <rguenther@suse.de>
4951         PR middle-end/70434
4952         PR c/69504
4953         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
4954         bases which are accessed with non-invariant indices.
4955         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
4956         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
4958 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4960         PR middle-end/71170
4961         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
4962         (add_to_ops_vec): Add stmt_to_insert.
4963         (add_repeat_to_ops_vec): Init stmt_to_insert.
4964         (insert_stmt_before_use): New.
4965         (transform_add_to_multiply): Remove mult_stmt insertion and add it
4966         to ops vector.
4967         (get_ops): Init stmt_to_insert.
4968         (maybe_optimize_range_tests): Likewise.
4969         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
4970         (rewrite_expr_tree_parallel): Likewise.
4971         (reassociate_bb): Likewise.
4973 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4975         PR target/71201
4976         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
4977         ISA 3.0 xxperm fusion alternative.
4978         (altivec_vperm_v8hiv16qi): Likewise.
4979         (altivec_vperm_<mode>_uns_internal): Likewise.
4980         (vperm_v8hiv4si): Likewise.
4981         (vperm_v16qiv8hi): Likewise.
4983 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4984             Kelvin Nilsen  <kelvin@gcc.gnu.org>
4986         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
4987         vpermr/xxpermr on ISA 3.0.
4988         (altivec_expand_vec_perm_le): Likewise.
4989         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
4990         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
4991         ISA 3.0.
4993 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
4995         * config/i386/i386.h (IS_STACK_MODE): Enable for
4996         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
4997         SSE_FLOAT_MODE_P macros.
4998         * config/i386/i386.c (ix86_preferred_reload_class): Use
4999         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5000         Cleanup regclass processing for CONST_DOUBLE_P.
5001         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5002         (ix86_rtx_costs): Remove redundant TARGET_80387 check
5003         with IS_STACK_MODE macro.
5004         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5005         with TARGET_SSE2.
5006         (*movdf_internal): Use IS_STACK_MODE macro.
5007         (*movsf_internal): Ditto.
5009 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
5011         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5012         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5014 2016-05-23  Jeff Law  <law@redhat.com>
5016         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5017         extracted from ...
5018         (fsm_find_control_statement_thread_paths): Call it.
5020 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5022         PR ipa/71234
5023         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5024         from_global_constant if t is not NULL.
5026 2016-05-23  Marek Polacek  <polacek@redhat.com>
5028         PR c/49859
5029         * common.opt (Wswitch-unreachable): New option.
5030         * doc/invoke.texi: Document -Wswitch-unreachable.
5031         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5032         warning.
5034 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
5036         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5037         TMR_INDEX is non-NULL.
5039 2016-05-23  Richard Biener  <rguenther@suse.de>
5041         PR tree-optimization/71230
5042         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5043         (try_special_add_to_ops): ... here.  Always test for single-use.
5045 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5047         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5048         default block if a PHI node in the original one would be resized.
5050 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5052         PR tree-optimization/58135
5053         * tree-vect-slp.c: When group size is not multiple
5054         of vector size, allow splitting of store group at
5055         vector boundary.
5057 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
5059         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5061 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
5063         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5064         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5065         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
5066         of 64x2.
5068         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5069         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5070         v constraint instead of x and vinserti32x4 insn.
5072         * config/i386/sse.md (i128vldq): New mode iterator.
5073         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5074         avx512dq and avx512vl alternatives.
5076         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5077         constraint, use maybe_evex prefix instead of vex.
5078         (vec_dupv4sf): Use v constraint instead of x for output
5079         operand except for noavx alternative, use Yv constraint
5080         instead of x for input.  Use maybe_evex prefix instead of vex.
5081         (*vec_dupv4si): Likewise.
5082         (*vec_dupv2di): Likewise.
5084 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5086         PR middle-end/40921
5087         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5088         (linearize_expr_tree): Call try_special_add_to_ops.
5089         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5091 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5093         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5094         to computed stack_usage.
5096 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5098         PR target/71103
5099         * config/avr/avr.md (define_expand "mov<mode>"): If the source
5100         operand is subreg (symbol_ref) then move the symbol ref to register.
5102 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
5104         * tree.c (array_at_struct_end_p): Look through MEM_REF.
5106 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5108         PR middle-end/71179
5109         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
5110         VECTOR type.
5112 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5114         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
5115         ranges by calling get_single_symbol and tidy up.  Look more closely
5116         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
5118 2016-05-20  Jeff Law  <law@redhat.com>
5120         * bitmap.c (bitmap_find_bit): Remove useless test.
5122 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5124         * function.c (thread_prologue_and_epilogue_insns): Commit the
5125         insertion of the epilogue.
5127 2016-05-20  Martin Jambor  <mjambor@suse.cz>
5129         PR tree-optimization/70884
5130         * tree-sra.c (initialize_constant_pool_replacements): Do not check
5131         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5132         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5133         of constant pool data as a reason for scalarization.
5135 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5137         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5138         for naked functions.
5139         (thumb1_expand_prologue): Likewise.
5141 2016-05-20  Nathan Sidwell  <nathan@acm.org>
5143         * config/nvptx/nptx.c (nvptx_option_override): Only set
5144         flag_toplevel_reorder, if not explicitly specified.  Set
5145         flag_no_common, unless explicitly specified.
5147 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5149         * calls.c (can_implement_as_sibling_call_p): Mark param
5150         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5152 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5154         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5155         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5156         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5157         constants.
5158         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5159         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5160         and CASE_CONST_ANY.
5162 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5164         * config/nvptx/nvptx.md (sincossf3): New pattern.
5166 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5168         * calls.c (maybe_complain_about_tail_call): New function.
5169         (initialize_argument_information): Call
5170         maybe_complain_about_tail_call when clearing *may_tailcall.
5171         (can_implement_as_sibling_call_p): Call
5172         maybe_complain_about_tail_call when returning false.
5173         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5174         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5175         if tail-call optimization fails.
5176         * cfgexpand.c (expand_call_stmt): Initialize
5177         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5178         * gimple-pretty-print.c (dump_gimple_call): Dump
5179         gimple_call_must_tail_p.
5180         * gimple.c (gimple_build_call_from_tree): Call
5181         gimple_call_set_must_tail with the value of
5182         CALL_EXPR_MUST_TAIL_CALL.
5183         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5184         (gimple_call_set_must_tail): New function.
5185         (gimple_call_must_tail_p): New function.
5186         * print-tree.c (print_node): Update printing of TREE_STATIC
5187         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5188         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5189         trailing comment listing applicable flags.
5190         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5192 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5194         * calls.c (expand_call): Move "Rest of purposes for tail call
5195         optimizations to fail" to...
5196         (can_implement_as_sibling_call_p): ...this new function, and
5197         split into multiple "if" statements.
5199 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5201         * cfgloop.h (expected_loop_iterations_unbounded,
5202         expected_loop_iterations): Unconstify.
5203         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5204         profile with known upper bound; return 3 when profile is absent.
5205         (expected_loop_iterations): Update.
5207 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5209         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5210         and get_max_loop_iterations_int.
5212 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5214         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5215         realistic upper bounds here.
5217 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5219         PR c++/71210
5220         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5221         calls if the LHS is variable length or has addressable type.
5222         If targets[0]->decl is a noreturn call with void return type and
5223         zero arguments, adjust fntype and remove lhs in that case.
5225 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5227         PR tree-optimization/71079
5228         PR tree-optimization/71206
5229         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5231 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5233         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5234         (get_vec_alignment_for_array_decl): Likewise.
5235         (get_vec_alignment_for_record_decl): Likewise.
5236         (increase_alignment::execute): Move code to find alignment to
5237         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5238         (type_align_map): New hash_map.
5240 2016-05-20  Richard Guenther  <rguenther@suse.de>
5242         PR tree-optimization/29756
5243         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5244         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5245         * fold-const.c (operand_equal_p): Likewise.
5246         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5247         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5248         * tree-inline.c (estimate_operator_cost): Likewise.
5249         * tree-pretty-print.c (dump_generic_node): Likewise.
5250         * tree-ssa-operands.c (get_expr_operands): Likewise.
5251         * cfgexpand.c (expand_debug_expr): Likewise.
5252         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5253         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5254         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5255         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5256         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5257         (execute_update_addresses_taken): Do it.
5259 2016-05-20  Richard Biener  <rguenther@suse.de>
5261         PR tree-optimization/71185
5262         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5263         register operations.
5265 2016-05-20  Richard Biener  <rguenther@suse.de>
5267         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5268         gimple_seq_add_seq_without_update.
5269         (release_bb_predicate): Assert we have no operands to free.
5270         (if_convertible_loop_p_1): Calculate post dominators later.
5271         Do not free BB predicates here.
5272         (combine_blocks): Do not recompute BB predicates.
5273         (version_loop_for_if_conversion): Save BB predicates around
5274         loop versioning.
5276 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5278         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5279         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5280         code.  Ignore sibcalls on EDGE_IGNORE edges.
5281         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5282         on edges for sibcalls that run without prologue.  The rest of the
5283         function is combined from...
5284         (fix_fake_fallthrough_edge): ... this, and ...
5285         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5286         function argument, make it a local variable.
5288 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5290         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5291         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5292         for 32-bit mode and SEH for 64-bit.
5293         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
5294         TARGET_64BIT_DEFAULT.
5296 2016-05-19  Ryan Burn  <contact@rnburn.com>
5298         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
5299         * gengtype.c (open_base_files): Add cilk.h to ifiles.
5301 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
5303         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5304         force pending loads from memory.
5306 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5308         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5309         (UNSPEC_DARN_32): New unspec constant.
5310         (UNSPEC_DARN_RAW): New unspec constant.
5311         (darn_32): New instruction.
5312         (darn_raw): New instruction.
5313         (darn): New instruction.
5314         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5315         support and documentation for this macro.
5316         (BU_P9_MISC_1): New macro definition.
5317         (BU_P9_64BIT_MISC_0): New macro definition.
5318         (BU_P9_MISC_0): New macro definition.
5319         (darn_32): New builtin definition.
5320         (darn_raw): New builtin definition.
5321         (darn): New builtin definition.
5322         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5323         RS6000_BUILTIN_0 directives to surround each occurrence of
5324         #include "rs6000-builtin.def".
5325         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5326         RS6000_BTM_64BIT flags to the returned mask, depending on
5327         configuration.
5328         (def_builtin): Correct an error in the assignments made to the
5329         debugging variable attr_string.
5330         (rs6000_expand_builtin): Add support for no-operand built-in
5331         functions.
5332         (builtin_function_type): Remove fatal_error assertion that is no
5333         longer valid.
5334         (rs6000_common_init_builtins): Add support for no-operand built-in
5335         functions.
5336         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
5337         definition.
5338         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
5339         definition.
5340         (RS6000_BTM_64BIT): New macro definition.
5341         * doc/extend.texi: Document __builtin_darn (void),
5342         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
5343         functions.
5345 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
5347         * tree-vect-loop.c (vect_analyze_loop_2): Use also
5348         max_loop_iterations_int.
5350 2016-05-19  Marek Polacek  <polacek@redhat.com>
5352         PR tree-optimization/71031
5353         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
5354         condition and adjust the code a bit.
5356 2016-05-19  Martin Liska  <mliska@suse.cz>
5358         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
5359         auto_vec instead of vec.
5361 2016-05-19  Martin Liska  <mliska@suse.cz>
5363         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
5365 2016-05-19  Martin Liska  <mliska@suse.cz>
5367         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
5369 2016-05-19  Martin Liska  <mliska@suse.cz>
5371         * ipa-pure-const.c (set_function_state): Remove an existing
5372         funct_state.
5373         (remove_node_data): Do not free it as it's released
5374         in set_function_state.
5376 2016-05-19  Martin Liska  <mliska@suse.cz>
5378         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
5379         bitmap.
5381 2016-05-19  Martin Liska  <mliska@suse.cz>
5383         * omp-simd-clone.c (simd_clone_adjust): Release vector.
5385 2016-05-19  Martin Liska  <mliska@suse.cz>
5387         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
5388         an auto_vec instead of re-creating it.
5390 2016-05-19  Martin Liska  <mliska@suse.cz>
5392         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
5393         auto_vec instead of vec.
5395 2016-05-19  Martin Liska  <mliska@suse.cz>
5397         * lto-section-in.c (lto_get_section_data): Call
5398         lto_check_version with additional argument.
5399         * lto-streamer.c (lto_check_version): Add new argument.
5400         * lto-streamer.h (lto_check_version): Likewise.
5402 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5404         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
5405         Don't add cost of inner memory when handling sign-extended loads.
5407 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
5409         PR rtl-optimization/71148
5410         * cse.c (cse_main): Free dominance info.
5411         (rest_of_handle_cse): Don't free dominance info.
5412         (rest_of_handle_cse2): Likewise.
5413         (rest_of_handle_cse_after_global_opts): Likewise.
5415 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5417         PR target/71056
5418         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
5419         NULL_TREE early if NEON is not available.  Remove now redundant check
5420         in ARM_CHECK_BUILTIN_MODE.
5422 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
5424         PR sanitizer/64354
5425         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
5426         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
5427         * doc/cpp.texi: Document new macros.
5429 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
5431         PR tree-optimization/69848
5432         * tree-vect-loop.c (vectorizable_reduction): Don't factor
5433         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
5435 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5437         * function.c (thread_prologue_and_epilogue_insn): Move the
5438         "goto epilogue_done" one block later.
5440 2016-05-19  Richard Biener  <rguenther@suse.de>
5442         PR tree-optimization/70729
5443         * passes.def: Move LIM pass before PRE.  Remove no longer
5444         required copyprop and move first DCE out of the loop pipeline.
5446 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
5448         PR driver/69265
5449         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
5450         (OBJS-libcommon-target): ...here.
5451         * opts-common.c: Include spellcheck.h.
5452         (cmdline_handle_error): Build a vec of valid options and use it
5453         to suggest provide hints for misspelled arguments.
5455 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5457         PR c++/71100
5458         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
5459         lhs if it has TREE_ADDRESSABLE type.
5461 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
5463         PR target/71145
5464         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
5465         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
5467 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5469         PR ipa/69708
5470         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
5471         input for NOP_EXPR pass-through functions.
5472         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
5473         aggregate global constant VAR_DECLs in constant jump functions.
5475 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5477         PR ipa/69708
5478         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
5479         from TREE_READONLY parameters.
5481 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5483         PR ipa/69708
5484         * cgraph.h (cgraph_indirect_call_info): New field
5485         guaranteed_unmodified.
5486         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
5487         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5488         appropriate.
5489         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
5490         pass the parameter value to ipa_find_agg_cst_for_param.
5491         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
5492         guaranteed_unmodified, store AA results there instead of bailing out
5493         if present.
5494         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
5495         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
5496         (find_constructor_constant_at_offset): New function.
5497         (ipa_find_agg_cst_from_init): Likewise.
5498         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
5499         static initializers of contants, report back through a new paameter
5500         from_global_constant if that was the case.
5501         (try_make_edge_direct_simple_call): Also pass parameter value to
5502         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5503         appropriate.
5504         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
5505         (ipa_read_indirect_edge_info): Likewise.
5506         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
5507         (ipa_load_from_parm_agg): Likewise.
5509 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
5511         PR rtl-optimization/71150
5512         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
5513         check.
5515 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5517         PR target/70915
5518         * config/rs6000/constraints.md (wE constraint): New constraint
5519         for a vector constant that can be loaded with XXSPLTIB.
5520         (wM constraint): New constraint for a vector constant of a 1's.
5521         (wS constraint): New constraint for a vector constant that can be
5522         loaded with XXSPLTIB and a vector sign extend instruction.
5523         * config/rs6000/predicates.md (xxspltib_constant_split): New
5524         predicates for wE/wS constraints.
5525         (xxspltib_constant_nosplit): Likewise.
5526         (easy_vector_constant): Add support for constants that can be
5527         loaded via XXSPLTIB.
5528         (all_ones_constant): New predicate for vector constant with all
5529         1's set.
5530         (splat_input_operand): Add support for ISA 3.0 word splat operations.
5531         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5532         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5533         instruction and possibly with a sign extension.
5534         (output_vec_const_move): Add support for XXSPLTIB. If we are
5535         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5536         instead of XXLXOR/XXLORC.
5537         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5538         operations.
5539         (rs6000_legitimize_reload_address): Likewise.
5540         (rs6000_output_move_128bit): Use output_vec_const_move to emit
5541         constants.
5542         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5543         combine VSX_M and VSX_M2 into one iterator.
5544         (VSX_M2): Likewise.
5545         (VSINT_84): New iterators for loading constants with XXSPLTIB.
5546         (VSINT_842): Likewise.
5547         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5548         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5549         XXSPLTIB instruction.
5550         (xxspltib_<mode>_nosplit): Likewise.
5551         (xxspltib_<mode>_split): New insn to load up constants with
5552         XXSPLTIB and a sign extend instruction.
5553         (vsx_mov<mode>): Replace single move that handled all vector types
5554         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
5555         moves (when -mvsx-timode is in effect) into the main vector
5556         moves.  Eliminate separate moves for <VSr> <VSa>, where the
5557         preferred register class (<VSr>) is listed first, and the
5558         secondary register class (<VSa>) is listed second with a '?' to
5559         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
5560         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5561         that if the register was involved in a slow operation, the
5562         clear/set operation does not wait for the slow operation to
5563         finish.  Adjust the length attributes for 32-bit mode.  Use
5564         rs6000_output_move_128bit and drop the use of the string
5565         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
5566         spacing so that the alternatives and attributes don't generate
5567         long lines, and put things in columns, so that it is easier to
5568         match up the operands and attributes with the insn alternatives.
5569         (vsx_mov<mode>_64bit): Likewise.
5570         (vsx_mov<mode>_32bit): Likewise.
5571         (vsx_movti_64bit): Fold movti into normal vector moves.
5572         (vsx_movti_32bit): Likewise.
5573         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5574         splat instructions.
5575         (vsx_splat_v4si_internal): Likewise.
5576         (vsx_splat_v4sf_internal): Likewise.
5577         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5578         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5579         extend vector elements.
5580         (vsx_sign_extend_hi_<mode>): Likewise.
5581         (vsx_sign_extend_si_v2di): Likewise.
5582         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5583         declaration.
5584         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5585         constraints.  Add trailing period to wL documentation.
5587 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
5589         PR middle-end/71020
5590         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
5591         * tree-dfa.c (replace_abnormal_ssa_names): New function.
5592         * tree-call-cdce.c: Include tree-dfa.h.
5593         (can_guard_call_p): New function, extracted from...
5594         (can_use_internal_fn): ...here.
5595         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
5596         and return void.
5597         (shrink_wrap_one_built_in_call): Likewise.
5598         (use_internal_fn): Likewise.
5599         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
5600         and return void.  Call replace_abnormal_ssa_names.
5601         (pass_call_cdce::execute): Check can_guard_call_p during the
5602         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
5603         will always change something.
5605 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5607         PR ipa/70646
5608         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5609         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5611 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5613         PR ipa/70646
5614         * ipa-inline.h (condition): New field size.
5615         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5616         for comaprison and store it into the new condition.
5617         (evaluate_conditions_for_known_args): Use condition size to check
5618         access sizes for all but CHANGED conditions.
5619         (unmodified_parm_1): New parameter size_p, store access size into it.
5620         (unmodified_parm): Likewise.
5621         (unmodified_parm_or_parm_agg_item): Likewise.
5622         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5623         (set_cond_stmt_execution_predicate): Extract access sizes and store
5624         them to conditions.
5625         (set_switch_stmt_execution_predicate): Likewise.
5626         (will_be_nonconstant_expr_predicate): Likewise.
5627         (will_be_nonconstant_predicate): Likewise.
5628         (inline_read_section): Stream condition size.
5629         (inline_write_summary): Likewise.
5631 2016-05-18  Richard Biener  <rguenther@suse.de>
5633         * tree-ssa-loop-im.c (determine_max_movement): Properly add
5634         condition cost to PHI cost instead of total_cost.
5636 2016-05-18  Martin Liska  <mliska@suse.cz>
5638         PR fortran/70856
5639         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5640         merged variables.
5642 2016-05-18  Richard Biener  <rguenther@suse.de>
5644         * lto-streamer.h (LTO_major_version): Bump to 6.
5646 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5648         * function.c (make_split_prologue_seq, make_prologue_seq,
5649         make_epilogue_seq): New functions, factored out from...
5650         (thread_prologue_and_epilogue_insns): Here.
5652 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5654         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5655         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
5656         of before.  Add a comment.
5658 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
5660         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
5661         expression pointer, not pointer to the pointer.
5663 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5665         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
5666         (avx2_pbroadcast<mode>): Add another alternative with v instead
5667         of x constraints in it, using <pbroadcast_evex_isa> isa.
5668         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
5670         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
5671         constraint x instead of v in second alternative, add avx512bw
5672         alternative.
5674         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
5675         constraint x instead of v in second alternative, add avx512bw
5676         alternative.
5678         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
5679         constraint x instead of v in second alternative, add avx512bw
5680         alternative.
5682         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
5683         avx512bw alternative.
5685 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5687         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
5688         array to 128 chars.
5689         (define_insn "*andnottf3"): Ditto.
5690         (define_insn "*<code><mode>3"/any_logic): Ditto.
5691         (define_insn "*<code>tf3"/any_logic): Ditto.
5692         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
5693         operand to block AVX-512VL insn variant emit when it is not enabled.
5695 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5697         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
5698         constraint fot SF mode.
5700 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
5701             Kirill Yukhin  <kirill.yukhin@intel.com>
5703         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
5704         modifiers.
5705         (define_insn "rsqrt14<mode>"): Ditto.
5706         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5707         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
5708         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
5709         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
5710         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
5711         Ditto.
5712         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
5713         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
5714         * config/i386/i386.c (ix86_print_operand): Expand check for size
5715         override codes for Intel syntax.
5717 2016-05-18  Richard Biener  <rguenther@suse.de>
5719         PR tree-optimization/71168
5720         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
5721         initialization earlier.
5723 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
5725         * config/aarch64/aarch64-simd.md
5726         (aarch64_reduc_plus_internal<mode>): Rename to...
5727         (reduc_plus_scal): ...This, and remove previous implementation.
5729 2016-05-18  Richard Biener  <rguenther@suse.de>
5731         * passes.def: Put late dse and cd_dce in canonical order.
5733 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
5735         * ipa-inline-transform.c (preserve_function_body_p): Look for
5736         first non-thunk clone.
5737         (save_function_body): Save into first non-thunk.
5738         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
5739         up call stmt id.
5740         (lto_output_node): Inline thunks don't need body in every
5741         partition.
5742         * lto-streamer-in.c: Do not fixup thunk clones.
5743         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
5744         thunks.
5745         * tree-inline.c (copy_bb): Be prepared for target node to be new after
5746         folding suceeds.
5748 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5750         PR middle-end/63586
5751         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
5752         (reassociate_bb): Call transform_add_to_multiply.
5754 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5756         * config/aarch64/aarch64.c (all_extensions): Removed unused
5757         static variable.
5759 2016-05-17  Nathan Sidwell  <nathan@acm.org>
5761         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
5762         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
5764 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
5766         PR tree-optimization/54579
5767         PR middle-end/55299
5768         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
5770 2016-05-17  Marek Polacek  <polacek@redhat.com>
5772         PR ipa/71146
5773         * tree-inline.c (expand_call_inline): Call
5774         maybe_remove_unused_call_args.
5776 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
5778         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
5779         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
5780         * doc/md.texi (fmin@var{m}3): Likewise.
5782 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5784         * match.pd (X & C): New transformation.
5786 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5788         * match.pd (~X & Y): New transformation.
5790 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5792         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
5793         information for new SSA_NAME.
5794         (simplify_conversion_using_ranges): Get range through get_range_info
5795         instead of get_value_range.
5797 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5799         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
5800         Remove inline assembly.
5801         (vmvn_s16): Likewise.
5802         (vmvn_s32): Likewise.
5803         (vmvn_u8): Likewise.
5804         (vmvn_u16): Likewise.
5805         (vmvn_u32): Likewise.
5806         (vmvnq_s8): Likewise.
5807         (vmvnq_s16): Likewise.
5808         (vmvnq_s32): Likewise.
5809         (vmvnq_u8): Likewise.
5810         (vmvnq_u16): Likewise.
5811         (vmvnq_u32): Likewise.
5812         (vmvn_p8): Likewise.
5813         (vmvnq_p16): Likewise.
5815 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5817         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
5818         Use builtin.
5819         (vmul_n_s16): Likewise.
5820         (vmul_n_s32): Likewise.
5821         (vmul_n_u16): Likewise.
5822         (vmul_n_u32): Likewise.
5823         (vmulq_n_f32): Likewise.
5824         (vmulq_n_f64): Likewise.
5825         (vmulq_n_s16): Likewise.
5826         (vmulq_n_s32): Likewise.
5827         (vmulq_n_u16): Likewise.
5828         (vmulq_n_u32): Likewise.
5830 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5832         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
5833         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
5835 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5837         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
5838         to *aarch64_fma4_elt_from_dup<mode>.
5839         (*aarch64_fnma4_elt_to_128df): Rename to
5840         *aarch64_fnma4_elt_from_dup<mode>.
5841         * config/aarch64/arm_neon.h (vfma_n_f64): New.
5842         (vfms_n_f32): Likewise.
5843         (vfms_n_f64): Likewise.
5844         (vfmsq_n_f32): Likewise.
5845         (vfmsq_n_f64): Likewise.
5847 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
5849         * wide-int.h: Change fixed_wide_int_storage from class to struct.
5851 2016-05-17  Richard Biener  <rguenther@suse.de>
5853         PR tree-optimization/71132
5854         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
5855         Only add control dependences for blocks in the loop.
5856         (build_rdg): Adjust.
5857         (generate_code_for_partition): Return whether loop should
5858         be destroyed and delay that.
5859         (distribute_loop): Likewise.
5860         (pass_loop_distribution::execute): Record loops to be destroyed
5861         and perform delayed destroying of loops.
5863 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5865         PR target/70809
5866         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
5868 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5870         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
5872 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5874         PR target/71114
5875         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
5876         insertion point for instructions generated by validize_mem.
5878 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5880         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
5881         in brackets.
5883 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5885         * config/aarch64/aarch64.c
5886         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
5887         rather than a macro.
5889 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5891         * doc/invoke.texi (AArch64 Options): Various updates.
5893 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5895         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
5896         into instrumentation thunks.
5897         * cif-code.def (CIF_CHKP): New.
5899 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
5901         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
5903 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5905         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
5906         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
5908 2016-05-16  Marek Polacek  <polacek@redhat.com>
5910         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
5911         commentary.
5913 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5915         PR hsa/70857
5916         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
5917         the outlined kernel function.
5919 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
5921         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
5922         (ISA_HAS_DLSA): Ditto.
5924 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5926         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
5928 2016-05-16  Nathan Sidwell  <nathan@acm.org>
5930         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
5931         (nvptx_name_replacement): Restore.  Add comment.
5932         (write_fn_proto, write_fn_proto_from_insn,
5933         nvptx_output_call_insn): Restore
5934         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
5936 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5938         * config/aarch64/aarch64.md
5939         (add<mode>3_compareC_cconly_imm): Remove use of %w.
5940         (add<mode>3_compareC_imm): Likewise.
5941         (<optab>si3_uxtw): Split into register and immediate variants.
5942         (andsi3_compare0_uxtw): Likewise.
5943         (and<mode>3_compare0): Likewise.
5944         (and<mode>3nr_compare0): Likewise.
5945         (stack_protect_test_<mode>): Don't use %x for memory operands.
5947 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5949         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
5951 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5953         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5954         Split integer shifts into shift_reg and bfm.
5955         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5956         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5957         (ror<mode>3_insn): Likewise.
5958         (<optab>si3_insn_uxtw): Likewise.
5959         (<optab><mode>3_insn): Change to rotate_imm.
5960         (extr<mode>5_insn_alt): Likewise.
5961         (extrsi5_insn_uxtw): Likewise.
5962         (extrsi5_insn_uxtw_alt): Likewise.
5964 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5966         * doc/tm.texi: Regenerate.
5967         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
5968         (TARGET_INVALID_RETURN_TYPE): Remove.
5969         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
5970         TARGET_INVALID_RETURN_TYPE.
5971         * target.def (invalid_parameter_type): Remove.
5972         (invalid_return_type): Remove.
5974 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5976         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
5977         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
5978         calls from thunk.
5979         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
5980         gimple body.
5981         (preserve_function_body_p): No need to preserve function body
5982         * cif-codes.def (CIF_THUNK): Remove.
5983         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
5985 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5987         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
5989 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5991         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
5992         for thunks.
5994 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5996         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
5997         (inline_small_functions): Do not look for function symbol when
5998         resetting caches.
6000 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6002         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6003         of inline thunks
6005 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6006             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6007             Jiong Wang  <jiong.wang@arm.com>
6009         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6010         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6011         Define __ARM_FP16_ARGS when appropriate.
6012         * config/arm/arm.c (arm_invalid_parameter_type): Remove
6013         declaration.
6014         (arm_invalid_return_type): Likewise.
6015         (TARGET_INVALID_PARAMETER_TYPE): Remove.
6016         (TARGET_INVALID_RETURN_TYPE): Remove.
6017         (aapcs_vfp_sub_candidate): Allow HFmode.
6018         (aapcs_vfp_allocate): Add comment.  Support HFmode.
6019         (aapcs_vfp_allocate_return_reg): Likewise.
6020         (struct aapcs_cp_arg_layout): Slightly reword comments for
6021         is_return_candidate and allocate_return_reg.
6022         (output_mov_vfp): Update assert.
6023         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6024         condition.
6025         (arm_invalid_parameter_type): Remove.
6026         (amr_invalid_return_type): Remove.
6027         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6028         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6029         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6031 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6033         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6034         * config/aarch64/arch64-protos.h
6035         (aarch64_legitimize_reload_address): Remove.
6036         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6037         Remove.
6039 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6041         * configure.ac: Add ACX_NONCANONICAL_HOST.
6042         * configure: Regenerate.
6043         * Makefile.in: Set host_noncanonical.
6045 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
6047         PR target/71097
6048         * config/i386/i386.md (*movtf_internal): Before register allocation,
6049         do not allow FP constants for CM_MEDIUM memory model, allow only
6050         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6051         (*movxf_internal): Ditto.
6052         (*movdf_internal): Ditto.
6053         (*movsf_internal): Ditto.
6055 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6057         PR rtl-optimization/67483
6058         * combine.c (make_compound_operation): Don't call extract_left_shift
6059         with negative shift amounts.
6061 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
6063         PR bootstrap/71071
6064         * fold-const.c (fold_checksum_tree): Allow modification
6065         of TYPE_ALIAS_SET during folding.
6067         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6068         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6069         (ix86_split_to_parts): Likewise.  Fix up formatting.
6071 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6073         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6074         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6075         printf format.
6077 2016-05-13  Nathan Sidwell  <nathan@acm.org>
6079         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6080         (nvptx_name_replacement): Delete.
6081         (write_fn_proto, write_fn_proto_from_insn,
6082         nvptx_output_call_insn): Remove nvptx_name_replacement call.
6083         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6084         * langhooks.c (add_builtin_funcction_common): Call
6085         targetm.mangle_decl_assembler_name.
6087         * config/nvptx/nvptx.c (write_fn_proto): Handle
6088         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6090 2016-05-13  Martin Liska  <mliska@suse.cz>
6092         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6093         and PRIu64 in printf format.
6095 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6097         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6098         comment.
6100 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6102         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6103         Change --param max-completely-peeled-times to
6104         --param max-completely-peel-times in dump file printing.
6106 2016-05-13  Richard Biener  <rguenther@suse.de>
6108         PR tree-optimization/42587
6109         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
6110         (find_bswap_or_nop_1): Likewise.
6111         (bswap_replace): Likewise.
6113 2016-05-13  Martin Liska  <mliska@suse.cz>
6115         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
6116         Initialize a variable with default value.
6118 2016-05-13  Martin Liska  <mliska@suse.cz>
6120         * doc/invoke.texi: Enhance explanation of error recovery
6121         of sanitizers.
6123 2016-05-13  Martin Liska  <mliska@suse.cz>
6125         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
6126         (struct cost_pair): Change inv_expr_id (int) to inv_expr
6127         (iv_inv_expr_ent *).
6128         (struct iv_inv_expr_ent): Comment struct fields.
6129         (sort_iv_inv_expr_ent): New function.
6130         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
6131         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
6132         a hash_map between iv_inv_expr_ent and number of usages.
6133         (niter_for_exit): Fix coding style.
6134         (tree_ssa_iv_optimize_init): Use renamed variable.
6135         (determine_base_object): Fix coding style.
6136         (alloc_iv): Likewise.
6137         (find_interesting_uses_outside): Likewise.
6138         (add_candidate_1): Likewise.
6139         (add_standard_iv_candidates): Likewise.
6140         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
6141         (prepare_decl_rtl): Fix coding style.
6142         (get_address_cost): Likewise.
6143         (get_shiftadd_cost): Likewise.
6144         (force_expr_to_var_cost): Likewise.
6145         (compare_aff_trees): Likewise.
6146         (get_expr_id): Restructure the function.
6147         (get_loop_invariant_expr_id): Renamed to
6148         get_loop_invariant_expr.
6149         (get_computation_cost_at): Replace usage of inv_expr_id with
6150         inv_expr.
6151         (get_computation_cost): Likewise.
6152         (determine_group_iv_cost_generic): Likewise.
6153         (determine_group_iv_cost_address): Likewise.
6154         (iv_period): Fix coding style.
6155         (iv_elimination_compare_lt): Likewise.
6156         (may_eliminate_iv): Likewise.
6157         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6158         inv_expr.
6159         (determine_group_iv_costs): Dump invariant expressions.
6160         (iv_ca_recount_cost): Use the newly added hash_map.
6161         (iv_ca_set_remove_invariants): Fix coding style.
6162         (iv_ca_set_add_invariants): Fix coding style.
6163         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6164         invariants.
6165         (iv_ca_set_cp): Likewise.
6166         (iv_ca_new): Initialize the newly added hash_map and remove
6167         initialization of fields.
6168         (iv_ca_free): Delete the hash_map.
6169         (iv_ca_dump): Dump invariant expressions.
6170         (iv_ca_extend): Fix coding style.
6171         (try_add_cand_for): Likewise.
6172         (create_new_ivs): Dump information about # of avg iterations and
6173         # of used invariant expressions.
6174         (rewrite_use_compare): Fix coding style.
6175         (free_loop_data): Set default value for max_inv_expr_id.
6177 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6179         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6180         returned value cse_cfg_altered computation.
6181         (rest_of_handle_cse2): Likewise.
6182         (rest_of_handle_cse_after_global_opts): Likewise.
6184 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6186         PR target/53440
6187         * config/arm/arm.c (arm32_output_mi_thunk): New.
6188         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6189         to split Thumb1 vs TARGET_32BIT functionality.
6190         (arm_thumb1_mi_thunk): New.
6192 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6194         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6195         to true.
6197 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6199         PR target/71080
6200         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6202 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6204         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6205         (expand_builtin_trap): Emit a regular call.
6206         (set_builtin_user_assembler_name): Remove obsolete cases.
6207         * dse.c (scan_insn): Adjust.
6208         * except.c: Include calls.h.
6209         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6210         emit a regular call to setjmp.
6211         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6212         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6213         (emit_block_move_via_libcall): Delete.
6214         (block_move_fn): Delete.
6215         (init_block_move_fn): Likewise.
6216         (emit_block_move_libcall_fn): Likewise.
6217         (emit_block_op_via_libcall): New function.
6218         (set_storage_via_libcall): Tidy up and use memset builtin.
6219         (block_clear_fn): Delete.
6220         (init_block_clear_fn): Likewise.
6221         (clear_storage_libcall_fn): Likewise.
6222         (expand_assignment): Call emit_block_move_via_libcall.
6223         Do not include gt-expr.h.
6224         * expr.h (emit_block_op_via_libcall): Declare.
6225         (emit_block_copy_via_libcall): New inline function.
6226         (emit_block_move_via_libcall): Likewise.
6227         (emit_block_comp_via_libcall): Likewise.
6228         (block_clear_fn): Delete.
6229         (init_block_move_fn): Likewise.
6230         (init_block_clear_fn): Likewise.
6231         (emit_block_move_via_libcall): Likewise.
6232         (set_storage_via_libcall): Add default parameter value.
6233         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6234         (abort_libfunc): Delete.
6235         (memcpy_libfunc): Likewise.
6236         (memmove_libfunc): Likewise.
6237         (memcmp_libfunc): Likewise.
6238         (memset_libfunc): Likewise.
6239         (setbits_libfunc): Likewise.
6240         (setjmp_libfunc): Likewise.
6241         (longjmp_libfunc): Likewise.
6242         (profile_function_entry_libfunc): Likewise.
6243         (profile_function_exit_libfunc): Likewise.
6244         (gcov_flush_libfunc): Likewise.
6245         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6246         and DECL_VISIBILITY on the declaration.
6247         (init_optabs): Do not initialize obsolete libfuncs.
6248         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6249         * tree-core.h (ECF_RET1): Define.
6250         (ECF_TM_PURE): Adjust.
6251         (ECF_TM_BUILTIN): Likewise.
6252         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6253         (build_common_builtin_nodes): Initialize abort builtin.
6254         Add ECF_RET1 on memcpy, memmove and memset builtins.
6255         Pass final flags for alloca and alloca_with_align builtins.
6256         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6257         obsolete builtins.
6258         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6259         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6260         set_storage_via_libcall and call emit_block_copy_via_libcall.
6262 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6264         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6265         DImode before it is passed to ix86_output_call_operand.
6266         (*call_value_got_x32): Ditto for operand 1.
6268 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6270         PR rtl-optimization/70904
6271         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6272         reload for wide mode.
6274 2016-05-12  Marek Polacek  <polacek@redhat.com>
6276         PR c/70756
6277         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6278         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6279         * langhooks.h (incomplete_type_error): Likewise.
6280         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6281         parameter, pass it down to incomplete_type_error.
6282         * tree.h (size_in_bytes): New inline overload.
6283         (size_in_bytes_loc): Renamed from size_in_bytes.
6285 2016-05-12  Richard Biener  <rguenther@suse.de>
6287         PR tree-optimization/71059
6288         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6289         nary before looking up or entering the expression into the VN
6290         hashes.
6291         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6292         Make sure to re-use NARYs without result as inserted by
6293         phi-translation.
6295 2016-05-12  Richard Biener  <rguenther@suse.de>
6297         PR tree-optimization/71062
6298         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6299         field.
6300         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6301         vars_contains_restrict if the var is a restrict tag.
6302         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
6303         do not disambiguate pointers against it.
6304         (dump_points_to_solution): Re-structure and adjust for new
6305         vars_contains_restrict flag.
6306         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
6308 2016-05-12  Martin Liska  <mliska@suse.cz>
6310         * doc/invoke.texi: Explain connection between
6311         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
6313 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6315         PR tree-optimization/71006
6316         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6317         consider COND_EXPR as a mask producer.
6319 2016-05-12  Marek Polacek  <polacek@redhat.com>
6321         PR driver/71063
6322         * opts.c (common_handle_option): Detect missing argument for --help^.
6324 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6326         PR target/70830
6327         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
6328         when popping the PC and within an interrupt handler routine.
6329         Add missing tab to output of "ldmfd".
6330         (output_return_instruction): Output LDMFD with SP update rather
6331         than POP when returning from interrupt handler.
6333 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
6335         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
6336         TARGET_64BIT && TARGET_AVX512DQ.
6337         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
6338         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
6339         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
6340         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
6341         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
6342         (*vec_extractv4si_zext): Add avx512dq alternative.
6343         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
6344         use v instead of x constraint in other alternatives where possible.
6346         * config/i386/sse.md (sse2_loadld): Use v instead of x
6347         constraint in alternatives 0,1,4.
6349         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
6350         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
6351         v constraints instead of x and <pinsr_evex_isa> isa attribute.
6353         PR target/71019
6354         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
6355         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
6356         is not emitted unless TARGET_AVX512BW.
6357         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
6358         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
6359         for the result operand.
6361         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
6362         constraint instead of x in avx alternatives.  Use maybe_evex instead
6363         of vex prefix.
6365         * config/i386/constraints.md (Yv): New constraint.
6366         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
6367         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
6368         * config/i386/i386.md (avx512fvecmode): New mode attr.
6369         (*pushtf): Use v constraint instead of x.
6370         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
6371         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
6372         (*absneg<mode>2): Use Yv constraint instead of x constraint.
6373         (*absnegtf2_sse): Likewise.
6374         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
6375         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
6376         avx512f alternatives.
6377         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
6379 2016-05-12  Richard Biener  <rguenther@suse.de>
6381         PR tree-optimization/71060
6382         * tree-data-ref.c (initialize_data_dependence_relation): Do not
6383         require exact match of DR_BASE_OBJECT but only matching address and
6384         type.
6386 2016-05-12  Richard Biener  <rguenther@suse.de>
6388         PR tree-optimization/70986
6389         * cfganal.c: Include cfgloop.h.
6390         (dfs_find_deadend): Prefer to take edges exiting loops.
6392 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6394         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
6395         compile and run time.
6397 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6399         PR c/43651
6400         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
6402 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
6404         * config/i386/i386.c (legitimize_pic_address): Use
6405         copy_to_suggested_reg instead of gen_movsi.
6407 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6409         * config/rs6000/predicates.md (quad_memory_operand): Move most of
6410         the code into quad_address_p and call it to share code with
6411         vsx_quad_dform_memory_operand.
6412         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
6413         d-form support.
6414         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
6415         bit instead of being a separate word.  Split -mpower9-dform into
6416         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6417         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
6418         for the register class supporting 128-bit quad word memory offsets.
6419         (mode_supports_vsx_dform_quad): Helper function to return if the
6420         register class uses quad word memory offsets.
6421         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
6422         (rs6000_debug_reg_global): Always print if we are using LRA or not.
6423         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
6424         instructions are enabled, set up the appropriate addr_masks for
6425         128-bit types.
6426         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
6427         -mpower9-dform-scalar, instead of -mpower9-dform.
6428         (rs6000_option_override_internal): Split -mpower9-dform into two
6429         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
6430         -mpower9-dform switch sets or clears both.  If we are not using
6431         the LRA register allocator, do not enable -mpower9-dform-vector by
6432         default.  If we are using LRA, enable -mpower9-dform-vector and
6433         -mvsx-timode if it is appropriate.  Issue a warning if either
6434         -mpower9-dform-vector or -mvsx-timode are explicitly used without
6435         enabling LRA.
6436         (quad_address_offset_p): New helper function to return if the
6437         offset is legal for quad word memory instructions.
6438         (quad_address_p): New function to determin if GPR or vector
6439         register quad word memory addresses are legal.
6440         (mem_operand_gpr): Validate quad word address offsets.
6441         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
6442         d-form (register + offset) instructions.
6443         (offsettable_ok_by_alignment): Likewise.
6444         (rs6000_legitimate_offset_address_p): Likewise.
6445         (legitimate_lo_sum_address_p): Likewise.
6446         (rs6000_legitimize_address): Likewise.
6447         (rs6000_legitimize_reload_address): Add more debug statements for
6448         -mdebug=addr.
6449         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
6450         d-form instructions.
6451         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
6452         d-form instructions.  Distinguish different cases in debug
6453         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
6454         d-form instructions.
6455         (rs6000_preferred_reload_class): Likewise.
6456         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
6457         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
6458         of the ISA 2.06 indexed memory instructions.
6459         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
6460         use them to save/restore the saved vector registers instead of
6461         using Altivec instructions.
6462         (rs6000_emit_epilogue): Likewise.
6463         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
6464         (rs6000_opt_masks): Split -mpower9-dform into
6465         -mpower9-dform-scalar and -mpower9-dform-vector.
6466         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
6467         was not selected.
6468         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
6469         ISA 3.0 vector indexed memory instructions, and fold the code into
6470         the normal mov<mode> patterns.
6471         (p9_vecstore_<mode>): Likewise.
6472         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
6473         instructions.
6474         (vsx_movti_64bit): Likewise.
6475         (vsx_movti_32bit): Likewise.
6476         * config/rs6000/constraints.md (wO constraint): New constraint for
6477         ISA 3.0 vector d-form support.
6478         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
6479         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
6480         include -mpower9-dform-vector until we switch over to LRA.
6481         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
6482         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6483         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
6484         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
6485         for -mpower9-dform and -mlra.
6486         * doc/md.texi (wO constraint): Document wO constraint.
6488 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
6490         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
6491         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
6492         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
6493         Move handling of non-insn arguments inline into the sole user:
6494         (output_trans_func): ...here.
6495         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
6496         in emitted function prototype.
6497         (output_internal_insn_latency_func): Ditto.  Simplify.
6498         (output_internal_maximal_insn_latency_func): Ditto.  Delete
6499         always-unused argument.
6500         (output_insn_latency_func): Ditto.
6501         (output_maximal_insn_latency_func): Ditto.
6503 2016-05-11  Richard Biener  <rguenther@suse.de>
6505         PR tree-optimization/71055
6506         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
6507         sth with precision not equal to access size verify we don't chop
6508         off bits.
6510 2016-05-11  Richard Biener  <rguenther@suse.de>
6512         PR debug/71057
6513         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
6514         (dwarf2out_finish): Move retry_incomplete_types call ...
6515         (dwarf2out_early_finish): ... here.
6517 2016-05-11  Richard Biener  <rguenther@suse.de>
6519         PR middle-end/71002
6520         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
6521         if the langhook insists on it.
6522         * fold-const.c (make_bit_field_ref): Add arg for the original
6523         reference and preserve its alias-set.
6524         (decode_field_reference): Take exp by reference and adjust it
6525         to the original memory reference.
6526         (optimize_bit_field_compare): Adjust callers.
6527         (fold_truth_andor_1): Likewise.
6528         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
6530 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
6532         PR middle-end/70807
6533         * cfgrtl.h (delete_insn_and_edges): Now return bool.
6534         * cfgrtl.c (delete_insn_and_edges): Likewise.
6535         * config/i386/i386.c (convert_scalars_to_vector): Remove
6536         redundant code.
6537         * cse.c (cse_insn): Compute cse_cfg_altered.
6538         (delete_trivially_dead_insns): Likewise.
6539         (cse_cc_succs): Likewise.
6540         (rest_of_handle_cse): Free dominance info if required.
6541         (rest_of_handle_cse2): Likewise.
6542         (rest_of_handle_cse_after_global_opts): Likewise.
6544 2016-05-11  Alan Modra  <amodra@gmail.com>
6546         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
6547         abi_v4_pass_in_fpr): New functions.
6548         (rs6000_function_arg_boundary): Exclude complex IBM long double
6549         from 64-bit alignment when ABI_V4.
6550         (rs6000_function_arg, rs6000_function_arg_advance_1,
6551         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
6553 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
6555         PR rtl-optimization/71028
6556         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
6557         jump with just a return in the fallthrough block if the branch
6558         block contains just a return as well.
6560 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
6562         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
6563         * match.pd ((X & Y) ^ Y): ... this.
6564         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
6565         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
6567 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6569         * read-md.c (require_char_ws): New function.
6570         (read_string): Simplify using require_char_ws.
6571         (handle_constants): Likewise.
6572         (handle_enum): Likewise.
6573         (handle_file): Likewise.
6574         * read-md.h (require_char_ws): New declaration.
6575         * read-rtl.c (read_conditions): Simplify using require_char_ws.
6576         (read_mapping): Likewise.
6577         (read_rtx_code): Likewise.
6578         (read_nested_rtx): Likewise.
6580 2016-05-10  James Norris  <jnorris@codesourcery.com>
6582         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
6583         if offloading is enabled and -fopenacc or -fopenmp is specified.
6584         (CRTOFFLOADEND): Likewise.
6585         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
6586         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
6588 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
6590         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
6591         gotoff_operand code paths.  Use copy_to_suggested_regs and
6592         expand_simple_binop where appropriate.  Cleanup.
6594 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6596         PR target/70799
6597         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
6598         integer constants.
6599         (dimode_scalar_chain::vector_const_cost): New.
6600         (dimode_scalar_chain::compute_convert_gain): Handle constants.
6601         (dimode_scalar_chain::convert_op): Likewise.
6602         (dimode_scalar_chain::convert_insn): Likewise.
6604 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6606         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
6607         unary operation, not a binary one.
6609 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6611         PR middle-end/70877
6612         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6613         calls with type casted fndecl.
6615 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6617         PR tree-optimization/70786
6618         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6619         * calls.c (initialize_argument_information): Bind bounds
6620         with corresponding args passed by reference.
6622 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
6624         PR target/70927
6625         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
6626         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
6627         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
6628         accordingly.
6630 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6632         PR target/70963
6633         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6634         code for a zero scale factor.
6635         (vsx_xvcvdpuxds_scale): Likewise.
6637 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6639         * diagnostic-show-locus.c (layout::layout): Call show_ruler
6640         if show_ruler_p was set on the context.
6641         (layout::show_ruler): New method.
6642         * diagnostic.h (struct diagnostic_context): Add field
6643         "show_ruler_p".
6645 2016-05-10  Richard Biener  <rguenther@suse.de>
6647         PR tree-optimization/71039
6648         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
6649         (chk_uses): New function.
6650         (propagate_with_phi): Verify we can safely replicate the lhs of an
6651         aggregate assignment on all incoming edges.
6653 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
6655         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
6656         Forward declare.
6657         (rx_atomic_sequence): New class.
6658         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
6659         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
6660         non-inline.
6661         (rx_atomic_sequence::rx_atomic_sequence,
6662         rx_atomic_sequence::~rx_atomic_sequence): New functions.
6663         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
6664         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
6665         CTRLREG_INTB): New constants.
6666         (FETCHOP): New code iterator.
6667         (fethcop_name, fetchop_name2): New iterator code attributes.
6668         (QIHI): New mode iterator.
6669         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
6670         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
6671         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
6673 2016-05-10  Martin Liska  <mliska@suse.cz>
6675         * tree-inline.c (remap_dependence_clique): Do not remap
6676         debugging statements.
6678 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6680         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6681         ("*fixuns_truncdfdi2_z13")
6682         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6683         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6684         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6686 2016-05-10  Richard Biener  <rguenther@suse.de>
6688         PR tree-optimization/70497
6689         PR tree-optimization/28367
6690         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
6691         split out from ...
6692         (visit_reference_op_load): ... here.
6693         (vn_reference_lookup_3): Use it to handle subreg-like accesses
6694         with simplified BIT_FIELD_REFs.
6695         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
6696         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
6697         correctly.
6699 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6701         * dwarf2out.c (add_abstract_origin_attribute): Adjust
6702         documentation comment.  For BLOCK nodes, add a
6703         DW_AT_abstract_origin attribute that points to the DIE generated
6704         for the origin BLOCK.
6705         (gen_lexical_block_die): Call add_abstract_origin_attribute for
6706         blocks from inlined functions.
6708 2016-05-10  Alan Modra  <amodra@gmail.com>
6710         PR target/70947
6711         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
6712         regrename modifying insns saving lr before __morestack call.
6713         * config/rs6000/rs6000.md (split_stack_return): Similarly for
6714         insns restoring lr after __morestack call.
6716 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
6718         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
6719         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
6720         expanders.
6721         * config/i386/sse.md (vec_interleave_high<mode>,
6722         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
6723         <avx512>_vpermt2var<mode>3_maskz): Likewise.
6725 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6727         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
6728         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
6729         parallel reassociation for power8 and forward.
6731 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
6733         * config/i386/i386.md (absneg splitters with general regs): Use
6734         general_reg_operand predicate.
6735         (btsq peephole2): Use x86_64_immediate_operand to check if new
6736         value is suitable for immediate operand.  Generate emitted insn
6737         using RTL expressions.
6738         (btcq peephole2): Ditto.
6739         (btrq peephole2): Ditto.  Generate correct immediate operand
6740         for AND masking.
6742 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6744         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
6745         bitpos.
6747 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6749         * tree-affine.c (wide_int_constant_multiple_p): Add missing
6750         pointer dereference.
6752 2016-05-09  Richard Biener  <rguenther@suse.de>
6754         PR tree-optimization/70985
6755         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
6756         op0 isn't a gimple register.
6758 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
6760         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
6761         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
6762         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
6763         (i6400_fpu_mult): New cpu units.
6764         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
6765         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
6766         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
6767         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
6768         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
6769         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
6770         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
6771         (i6400_msa_long_float4, i6400_msa_long_float5)
6772         (i6400_msa_long_float8, i6400_msa_fdiv_df)
6773         (i6400_msa_fdiv_sf): New reservations.
6774         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
6775         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
6776         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
6777         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
6778         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
6779         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
6780         (msa_short_cmp, msa_short_float2, msa_short_logic3)
6781         (msa_short_store4, msa_long_load, msa_short_store)
6782         (msa_long_logic, msa_long_float2, msa_long_float4)
6783         (msa_long_float5, msa_long_float8, msa_long_mult)
6784         (msa_long_fdiv, msa_long_div): New reservations.
6786 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
6787             Sameera Deshpande  <sameera.deshpande@imgtec.com>
6788             Matthew Fortune  <matthew.fortune@imgtec.com>
6789             Graham Stott  <graham.stott@imgtec.com>
6790             Chao-ying Fu  <chao-ying.fu@imgtec.com>
6792         * config.gcc: Add MSA header file for mips*-*-* target.
6793         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
6794         (Ubv8i, Urv8):  New constraints.
6795         * config/mips/mips-ftypes.def: Add function types for MSA
6796         builtins.
6797         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
6798         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
6799         * config/mips/mips-msa.md: New file.
6800         * config/mips/mips-protos.h
6801         (mips_split_128bit_const_insns): New prototype.
6802         (mips_msa_idiv_insns): Likewise.
6803         (mips_split_128bit_move): Likewise.
6804         (mips_split_128bit_move_p): Likewise.
6805         (mips_split_msa_copy_d): Likewise.
6806         (mips_split_msa_insert_d): Likewise.
6807         (mips_split_msa_fill_d): Likewise.
6808         (mips_expand_msa_branch): Likewise.
6809         (mips_const_vector_same_val_p): Likewise.
6810         (mips_const_vector_same_bytes_p): Likewise.
6811         (mips_const_vector_same_int_p): Likewise.
6812         (mips_const_vector_shuffle_set_p): Likewise.
6813         (mips_const_vector_bitimm_set_p): Likewise.
6814         (mips_const_vector_bitimm_clr_p): Likewise.
6815         (mips_msa_vec_parallel_const_half): Likewise.
6816         (mips_msa_output_division): Likewise.
6817         (mips_ldst_scaled_shift): Likewise.
6818         (mips_expand_vec_cond_expr): Likewise.
6819         * config/mips/mips.c (enum mips_builtin_type): Add
6820         MIPS_BUILTIN_MSA_TEST_BRANCH.
6821         (mips_gen_const_int_vector_shuffle): New prototype.
6822         (mips_const_vector_bitimm_set_p): New function.
6823         (mips_const_vector_bitimm_clr_p): Likewise.
6824         (mips_const_vector_same_val_p): Likewise.
6825         (mips_const_vector_same_bytes_p): Likewise.
6826         (mips_const_vector_same_int_p): Likewise.
6827         (mips_const_vector_shuffle_set_p): Likewise.
6828         (mips_symbol_insns): Forbid loading symbols via immediate for
6829         MSA.
6830         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
6831         stores.
6832         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
6833         MSA.
6834         (mips_lx_address_p): Add support load indexed address for MSA.
6835         (mips_address_insns): Add calculation of instructions needed for
6836         stores and loads for MSA.
6837         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
6838         CONST_VECTOR for MSA and let it fall through.
6839         (mips_ldst_scaled_shift): New function.
6840         (mips_subword_at_byte): Likewise.
6841         (mips_msa_idiv_insns): Likewise.
6842         (mips_legitimize_move): Validate MSA moves.
6843         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
6844         calculation of costs for MSA division.
6845         (mips_split_move_p): Check if MSA moves need splitting.
6846         (mips_split_move): Split MSA moves if necessary.
6847         (mips_split_128bit_move_p): New function.
6848         (mips_split_128bit_move): Likewise.
6849         (mips_split_msa_copy_d): Likewise.
6850         (mips_split_msa_insert_d): Likewise.
6851         (mips_split_msa_fill_d): Likewise.
6852         (mips_output_move): Handle MSA moves.
6853         (mips_expand_msa_branch): New function.
6854         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
6855         Reinstate 'y' modifier.
6856         (mips_file_start): Add MSA .gnu_attribute.
6857         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
6858         FPRs.
6859         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
6860         (mips_class_max_nregs): Add register size for MSA supported mode.
6861         (mips_cannot_change_mode_class): Allow conversion between MSA
6862         vector modes and TImode.
6863         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
6864         instruction.
6865         (mips_secondary_reload_class): Force MSA loads/stores via memory.
6866         (mips_preferred_simd_mode): Add preffered modes for MSA.
6867         (mips_vector_mode_supported_p): Add MSA supported modes.
6868         (mips_autovectorize_vector_sizes): New function.
6869         (mips_msa_output_division): Likewise.
6870         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
6871         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
6872         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
6873         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
6874         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
6875         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
6876         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
6877         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
6878         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
6879         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
6880         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
6881         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
6882         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
6883         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
6884         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
6885         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
6886         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
6887         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
6888         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
6889         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
6890         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
6891         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
6892         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
6893         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
6894         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
6895         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
6896         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
6897         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
6898         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
6899         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
6900         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
6901         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
6902         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
6903         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
6904         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
6905         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
6906         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
6907         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
6908         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
6909         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
6910         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
6911         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
6912         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
6913         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
6914         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6915         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6916         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6917         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6918         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6919         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6920         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6921         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6922         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
6923         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
6924         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
6925         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
6926         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
6927         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
6928         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
6929         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
6930         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
6931         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
6932         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
6933         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
6934         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
6935         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
6936         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
6937         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
6938         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
6939         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
6940         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
6941         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
6942         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
6943         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
6944         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
6945         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
6946         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
6947         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
6948         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
6949         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
6950         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
6951         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
6952         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
6953         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
6954         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
6955         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
6956         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
6957         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
6958         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
6959         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
6960         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
6961         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
6962         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
6963         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
6964         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
6965         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
6966         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
6967         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
6968         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
6969         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
6970         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
6971         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
6972         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
6973         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
6974         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
6975         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
6976         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
6977         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
6978         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
6979         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
6980         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
6981         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
6982         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
6983         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
6984         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
6985         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
6986         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
6987         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
6988         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
6989         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
6990         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
6991         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
6992         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
6993         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
6994         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
6995         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
6996         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
6997         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
6998         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
6999         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7000         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7001         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7002         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7003         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7004         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7005         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7006         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7007         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7008         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7009         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7010         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7011         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7012         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7013         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7014         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7015         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7016         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7017         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7018         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7019         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7020         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7021         move_v builtins.
7022         (mips_get_builtin_decl_index): New array.
7023         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7024         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7025         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7026         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7027         (mips_init_builtins): Initialize mips_get_builtin_decl_index
7028         array.
7029         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7030         hook.
7031         (mips_expand_builtin_insn): Prepare operands for
7032         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7033         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7034         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7035         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7036         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7037         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7038         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7039         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7040         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7041         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7042         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7043         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7044         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7045         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7046         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7047         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7048         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7049         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7050         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7051         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7052         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7053         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7054         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7055         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7056         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7057         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7058         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7059         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7060         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7061         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7062         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7063         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7064         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7065         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7066         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7067         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7068         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7069         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7070         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7071         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7072         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7073         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7074         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7075         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7076         These are set implicitly and an error is reported if overridden.
7077         (mips_expand_builtin_msa_test_branch): New function.
7078         (mips_expand_msa_shuffle): Likewise.
7079         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7080         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7081         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7082         (mips_expand_vec_unpack): Add support for MSA.
7083         (mips_expand_vector_init): Likewise.
7084         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7085         instead of const0_rtx.
7086         (mips_msa_vec_parallel_const_half): New function.
7087         (mips_gen_const_int_vector): Likewise.
7088         (mips_gen_const_int_vector_shuffle): Likewise.
7089         (mips_expand_msa_cmp): Likewise.
7090         (mips_expand_vec_cond_expr): Likewise.
7091         * config/mips/mips.h
7092         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7093         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7094         specified.
7095         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7096         (ISA_HAS_MSA): New macro.
7097         (UNITS_PER_MSA_REG): Likewise.
7098         (BITS_PER_MSA_REG): Likewise.
7099         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7100         (MSA_REG_FIRST): New macro.
7101         (MSA_REG_LAST): Likewise.
7102         (MSA_REG_NUM): Likewise.
7103         (MSA_REG_P): Likewise.
7104         (MSA_REG_RTX_P): Likewise.
7105         (MSA_SUPPORTED_MODE_P): Likewise.
7106         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7107         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7108         * config/mips/mips.md: Include mips-msa.md.
7109         (alu_type): Add simd_add.
7110         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
7111         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
7112         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
7113         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
7114         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
7115         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
7116         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
7117         simd_move, simd_load, simd_store.  Choose "multi" for moves
7118         for "qword_mode".
7119         (qword_mode): New attribute.
7120         (insn_count): Add instruction count for quad moves.
7121         Increase the count for MIPS SIMD division.
7122         (UNITMODE): Add UNITMODEs for vector types.
7123         (addsub): New code iterator.
7124         * config/mips/mips.opt (mmsa): New option.
7125         * config/mips/msa.h: New file.
7126         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
7127         specified.
7128         * config/mips/mti-linux.h: Likewise.
7129         * config/mips/predicates.md
7130         (const_msa_branch_operand): New constraint.
7131         (const_uimm3_operand): Likewise.
7132         (const_uimm4_operand): Likewise.
7133         (const_uimm5_operand): Likewise.
7134         (const_uimm8_operand): Likewise.
7135         (const_imm5_operand): Likewise.
7136         (aq10b_operand): Likewise.
7137         (aq10h_operand): Likewise.
7138         (aq10w_operand): Likewise.
7139         (aq10d_operand): Likewise.
7140         (const_m1_operand): Likewise.
7141         (reg_or_m1_operand): Likewise.
7142         (const_exp_2_operand): Likewise.
7143         (const_exp_4_operand): Likewise.
7144         (const_exp_8_operand): Likewise.
7145         (const_exp_16_operand): Likewise.
7146         (const_vector_same_val_operand): Likewise.
7147         (const_vector_same_simm5_operand): Likewise.
7148         (const_vector_same_uimm5_operand): Likewise.
7149         (const_vector_same_uimm6_operand): Likewise.
7150         (const_vector_same_uimm8_operand): Likewise.
7151         (par_const_vector_shf_set_operand): Likewise.
7152         (reg_or_vector_same_val_operand): Likewise.
7153         (reg_or_vector_same_simm5_operand): Likewise.
7154         (reg_or_vector_same_uimm6_operand): Likewise.
7155         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7156         section.
7157         * doc/invoke.texi (-mmsa): Document new option.
7159 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7161         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7162         * configure: Regenerate.
7163         * config.in: Regenerate.
7164         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7165         on -fvtable-verify.
7166         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7167         (ENDFILE_VTV_SPEC): Define.
7169 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7171         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7172         registers in all interrupt handlers if necessary.
7173         (rl78_option_override): Add warning.
7174         (MUST_SAVE_MDUC_REGISTERS): New macro.
7175         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7176         * config/rl78/rl78.c (check_mduc_usage): New function.
7177         (mduc_regs): New structure to hold MDUC register data.
7178         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7179         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7180         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7181         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7182         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7183         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7185 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7187         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7188         (tree-ssa-loop-niter.h): Ditto.
7189         (idx_within_array_bound, ref_within_array_bound): New functions.
7190         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7191         Factor out check on writable base object to ...
7192         (base_object_writable): ... here.
7194 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7196         * config/arm/arm.md (probe_stack): Add modes to set source
7197         and destination.
7199 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7201         * regrename.c (base_reg_class_for_rename): New static function.
7202         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7204 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7206         * cgraph.c (thunk_adjust): Export.
7207         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7208         * cgraphunit.c (thunk_adjust): Export.
7209         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7210         thunks.
7211         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7212         inlinable.
7213         * tree-inline.c (expand_call_inline): Expand thunks inline.
7215 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7217         PR target/70998
7218         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7219         (*sse2_vd_cvtss2sd): Ditto.
7220         * config/i386/i386.md
7221         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7222         Generate *sse2_vd_cvtsd2ss pattern.
7223         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7224         Generate *sse2_vd_cvtss2sd pattern.
7226 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7228         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7229         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7230         users.
7232 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7234         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7235         * config/sh/sh.c: Define and declare variables on first use throughout
7236         the file.
7237         (current_function_interrupt): Change to bool type.
7238         (frame_insn): Rename to emit_frame_insn and update users.
7239         (push_regs): Use bool for 'interrupt_handler' argument.
7240         (save_schedule_s): Remove.
7241         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7242         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7243         targetm.asm_out.unaligned_op.di.
7244         (gen_far_branch): Remove redundant forward declaration.
7245         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7246         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7247         (sh_set_return_address, sh_function_ok_for_sibcall,
7248         scavenge_reg): Update comments.
7249         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7250         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7251         (sh_attr_renesas_p): Remove unnecessary parentheses.
7252         (branch_dest): Simplify.
7253         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7254         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7255         (CUMULATIVE_ARGS): Change macro to typedef.
7256         (current_function_interrupt): Change to bool type.
7257         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7258         Surround with __cplusplus ifdef.
7259         (sh_compare_op0, sh_compare_op1): Remove.
7260         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7262 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7264         * config/arm/arm.md: (arch): Add neon.
7265         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7266         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7267         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7268         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7269         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7270         (thumb2_movdf_vfp): Likewise.
7272 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7274         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7275         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7276         (*andqi_1): Add preferred_for_speed attribute to disparage
7277         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7278         (*<code>qi_1): Ditto.
7279         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7280         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7281         (*ashlqi3_1): Ditto.
7282         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7283         Add preferred_for_size attribute to disparage alternative 0 and
7284         preferred_for_speed attribute to disparage alternative 1 for
7285         TARGET_PARTIAL_REG_STALL targets.
7287 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7289         PR tree-optimization/70956
7290         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7291         def.
7293 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7295         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
7296         * config/sh/sh.c (sh_cbranch_distance): Implement it.
7297         * config/sh/sh.md (branch_zero): Remove define_attr.
7298         (define_delay): Disable delay slot if branch distance is one insn.
7300 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7302         * config/i386/i386.md (LEAMODE): New mode attribute.
7303         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
7304         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
7305         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
7306         operand 2 predicate.
7307         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
7308         (*lea<mode>_general_3): Ditto.
7309         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
7311 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7313         * genmddump.c (main): Convert argv from char ** to const char **.
7315 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7317         * coretypes.h (OVERRIDE): New macro.
7318         (FINAL): New macro.
7320 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7322         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
7323         allow coalescing if the types are compatible.
7325 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7327         * pass_manager.h (pass_manager::register_pass_name): New method.
7328         (pass_manager::get_pass_by_name): New method.
7329         (pass_manager::create_pass_tab): New method.
7330         (pass_manager::m_name_to_pass_map): New field.
7331         * passes.c (name_to_pass_map): Delete global in favor of field
7332         "m_name_to_pass_map" of pass_manager.
7333         (register_pass_name): Rename from a function to...
7334         (pass_manager::register_pass_name): ...this method, updating
7335         for renaming of global "name_to_pass_map" to field
7336         "m_name_to_pass_map".
7337         (create_pass_tab): Rename from a function to...
7338         (pass_manager::create_pass_tab): ...this method, updating
7339         for renaming of global "name_to_pass_map" to field.
7340         (get_pass_by_name): Rename from a function to...
7341         (pass_manager::get_pass_by_name): ...this method.
7342         (enable_disable_pass): Convert use of get_pass_by_name to
7343         a method call, locating the pass_manager singleton.
7345 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7347         * genattr-common.c (main): Convert argv from char ** to const char **.
7348         * genattr.c (main): Likewise.
7349         * genattrtab.c (main): Likewise.
7350         * genautomata.c (initiate_automaton_gen): Likewise.
7351         (main): Likewise.
7352         * gencodes.c (main): Likewise.
7353         * genconditions.c (main): Likewise.
7354         * genconfig.c (main): Likewise.
7355         * genconstants.c (main): Likewise.
7356         * genemit.c (main): Likewise.
7357         * genenums.c (main): Likewise.
7358         * genextract.c (main): Likewise.
7359         * genflags.c (main): Likewise.
7360         * genmddeps.c (main): Likewise.
7361         * genopinit.c (main): Likewise.
7362         * genoutput.c (main): Likewise.
7363         * genpeep.c (main): Likewise.
7364         * genpreds.c (main): Likewise.
7365         * genrecog.c (main): Likewise.
7366         * gensupport.c (init_rtx_reader_args_cb): Likewise.
7367         (init_rtx_reader_args): Likewise.
7368         * gensupport.h (init_rtx_reader_args_cb): Likewise.
7369         (init_rtx_reader_args): Likewise.
7370         * gentarget-def.c (main): Likewise.
7371         * read-md.c (read_md_files): Likewise.
7372         * read-md.h (read_md_files): Likewise.
7374 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7376         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
7377         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
7378         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
7379         Remove unused predicate.
7380         (register_and_not_fp_reg_operand): Ditto.
7382 2016-05-06  Martin Liska  <mliska@suse.cz>
7384         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
7385         instead of vec as the vector is local to the function.
7387 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7389         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
7390         avx512bw alternative.
7392         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
7393         before the ashr<mode>3 pattern.
7395         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
7396         v instead of x in vex or maybe_vex alternatives, use
7397         maybe_evex instead of vex in prefix.
7399         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
7400         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
7401         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
7402         in vex or maybe_vex alternatives, use maybe_evex instead of vex
7403         in prefix.
7405         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
7406         v instead of x in vex or maybe_vex alternatives, use
7407         maybe_evex instead of vex in prefix.
7409         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
7410         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
7411         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
7412         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
7413         alternatives, use maybe_evex instead of vex in prefix.
7415         * config/i386/sse.md (vec_interleave_lowv4sf,
7416         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
7417         v instead of x in vex or maybe_vex alternatives, use
7418         maybe_evex instead of vex in prefix.
7420         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
7421         v instead of x in vex or maybe_vex alternatives, use
7422         maybe_evex instead of vex in prefix.
7424         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
7425         v constraint instead of x.
7427 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7429         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
7430         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
7431         equality first.
7433 2016-05-06  Richard Biener  <rguenther@suse.de>
7435         PR tree-optimization/70948
7436         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7437         Properly clobber all fields of va_list for __builtin_va_start.
7439 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7441         PR debug/70935
7442         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
7443         loop latch destination.
7445 2016-05-06  Martin Liska  <mliska@suse.cz>
7447         * tree-ssa-uninit.c: Apply manual changes
7448         to the GNU coding style.
7449         (prune_uninit_phi_opnds): Rename from
7450         prune_uninit_phi_opnds_in_unrealizable_paths.
7452 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7454         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
7455         mspace): Remove deprecated options.
7456         * doc/invoke.texi (SH options): Remove -mspace.
7458 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7460         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
7462 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7464         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
7465         corresponding combine split pattern.
7467 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7469         PR target/58219
7470         * config/sh/predicates.md (long_displacement_mem_operand): New.
7471         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
7472         Add movi20, movi20s alternatives.  Adjust length attribute for
7473         alternatives.
7474         (movsi_ie): Allow for any FPU.  Adjust length attribute for
7475         alternatives.
7476         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
7477         attribute for alternatives.
7478         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
7479         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
7480         length attribute for alternatives.
7482 2016-05-06  Richard Biener  <rguenther@suse.de>
7484         PR tree-optimization/70960
7485         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
7487 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7489         PR target/52933
7490         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
7491         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
7493 2016-05-06  Marek Polacek  <polacek@redhat.com>
7495         PR sanitizer/70875
7496         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
7498 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7500         PR target/54089
7501         * config/sh/sh.md (*rotcr): Add another variant.
7503 2016-05-06  Richard Biener  <rguenther@suse.de>
7505         PR middle-end/70931
7506         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
7508 2016-05-06  Richard Biener  <rguenther@suse.de>
7510         PR middle-end/70941
7511         * fold-const.c (split_tree): Always convert to the original type
7512         before negating.
7514 2016-05-06  Richard Biener  <rguenther@suse.de>
7516         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
7517         (fwprop_addr): Likewise.
7519 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7521         PR target/70873
7522         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
7523         New prototype.
7524         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
7525         * config/i386/i386.md (push mem splitter): Use find_constant_src in
7526         the splitter condition.
7527         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
7528         the splitter condition.
7529         (FP float_extend load splitter): Ditto.
7531 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
7533         * config/i386/i386.md (peehole2 patterns): Change true_regnum
7534         to REGNO in all peephole2 patterns.
7535         (post-reload splitters): Change true_regnum to REGNO in
7536         post-reload splitters.
7537         (zero_extend splitters): Use general_reg_operand and
7538         nonimmediate_gr_operand predicates.
7540 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
7542         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
7543         v constraint instead of x.
7545 2016-05-05  Alan Modra  <amodra@gmail.com>
7547         PR target/68662
7548         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7549         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
7550         TARGET_NO_FP_IN_TOC for -mrelocatable.
7551         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
7552         TARGET_RELOCATABLE test.
7553         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7554         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7555         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7556         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7557         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7558         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7559         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7560         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7561         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
7562         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7563         Likewise.
7564         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
7565         (rs6000_stack_info): Likewise.
7566         (rs6000_elf_asm_out_constructor): Likewise.
7567         (rs6000_elf_asm_out_destructor): Likewise.
7568         (rs6000_elf_declare_function_name): Likewise.
7569         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
7570         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
7571         Don't define.
7573 2016-05-05  Alan Modra  <amodra@gmail.com>
7575         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
7577 2016-05-05  Alan Modra  <amodra@gmail.com>
7579         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
7580         out-of-line gpr restore for one or two regs if that would add
7581         a save of lr.
7583 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
7585         PR target/70873
7586         * config/i386/i386.md
7587         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
7588         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
7589         as operand 0 predicate.
7590         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
7591         Ditto.
7592         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
7593         Ditto.  Emit the pattern using RTX.
7595         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
7596         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
7597         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
7598         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
7599         Ditto.
7600         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
7601         sse_reg_operand as operand 0 predicate.
7603         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
7604         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
7605         instead of gen_rtx_REG.
7606         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
7607         Ditto.
7609 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7611         * function.c (emit_use_return_register_into_block): Delete.
7612         (gen_return_pattern): Delete.
7613         (emit_return_into_block): Delete.
7614         (active_insn_between): Delete.
7615         (convert_jumps_to_returns): Delete.
7616         (emit_return_for_exit): Delete.
7617         (thread_prologue_and_epilogue_insns): Delete all code dealing with
7618         simple_return for shrink-wrapped blocks.
7619         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
7620         end of blocks that need one.
7621         (get_unconverted_simple_return): Delete.
7622         (convert_to_simple_return): Delete.
7623         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
7624         (convert_to_simple_return): Ditto.
7626 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7628         * cfgcleanup.c (bb_is_just_return): New function.
7629         (try_optimize_cfg): Simplify jumps to return, branches to return,
7630         and branches around return.
7632 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7634         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
7635         branch to a return.
7637 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7639         PR c++/70906
7640         PR c++/70933
7641         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
7642         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
7643         assert flags & OEP_HASH_CHECK, instead of asserting it
7644         never happens.  Handle TARGET_EXPR.
7645         * fold-const.c (operand_equal_p): For hash verification,
7646         or in OEP_HASH_CHECK into flags.
7648 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7650         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
7651         comment.
7652         (compute_samebase_partition_bases): Fix typo.
7654 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7656         * config/i386/sse.md (vec_interleave_highv8sf,
7657         vec_interleave_lowv8sf, vec_interleave_highv4df,
7658         vec_interleave_lowv4df): Remove constraints from expanders.
7660         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
7662 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7664         * tree-inline.c (expand_call_inline): Fix path dealing with
7665         making lhs of call statement undefined.
7667 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7669         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7670         Check availability on NODE, too.
7671         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
7672         (cgraph_node::call_for_symbol_and_aliases): Likewise.
7673         (varpool_node::call_for_symbol_and_aliase): Likewise.
7674         * ipa-pure-const.c (add_new_function): Analyze all bodies.
7675         (propagate_pure_const): Propagate across interposable functions, too.
7676         (skip_function_for_local_pure_const): Do not skip interposable bodies
7677         with aliases.
7678         (pass_local_pure_const::execute): Update.
7680 2016-05-04  Marek Polacek  <polacek@redhat.com>
7682         * doc/invoke.texi: Document -Wdangling-else.
7684 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7686         * config.gcc: Error out when conflicting multilib is detected.  Do not
7687         loop over multilibs since no combination is legal.
7689 2016-05-04  Alan Modra  <amodra@gmail.com>
7691         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
7692         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
7693         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7694         Align .toc.
7696 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
7698         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
7699         Clean up p5600 comments.
7701 2016-05-04  Richard Biener  <rguenther@suse.de>
7703         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
7704         constructor simplifications.
7705         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
7707 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
7709         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
7710         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
7711         result.set_rtx is null instead of aborting.
7712         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
7713         Always enable.
7714         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
7715         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
7716         *mov<mode>_store_postinc): New patterns.
7718 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
7720         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
7721         as commutative.  Check both conversions are NOP.
7722         ((A & B) OP (C & B)): Remove.
7724 2016-05-04  Alan Modra  <amodra@gmail.com>
7726         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
7728 2016-05-04  Alan Modra  <amodra@gmail.com>
7730         PR target/70866
7731         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
7732         when cr2,3,4 are all fixed regs.
7734 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
7736         PR rtl-optimization/57193
7737         * opts.c (default_options_table): Revert OPT_frename_registers change.
7738         * doc/invoke.texi (-frename-registers, -O2): Likewise.
7740 2016-05-03  Martin Sebor  <msebor@redhat.com>
7742         PR c++/66561
7743         * builtins.c (fold_builtin_FILE): New function.
7744         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
7745         (fold_builtin_0): Call them.
7746         * gimplify.c (gimplify_call_expr): Remove the handling of
7747         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
7749         PR c++/66561
7750         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
7751         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
7752         constants.
7754         PR c++/66639
7755         * doc/extend.texi (Function Names as Strings): Update __func__,
7756         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
7757         constants.
7759 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7760             Richard Biener  <rguenther@suse.de>
7762         PR tree-optimization/70916
7763         * tree-if-conv.c: Include cfganal.h.
7764         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
7765         and remove_fake_exit_edges around the optimization pass.
7767 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
7769         * cgraph.c (symbol_table::create_edge): Set inline_failed.
7770         (cgraph_edge::make_direct): Likewise.
7771         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
7772         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7773         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
7774         (CIF_THUNK): New code.
7775         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
7776         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
7777         (compute_inline_parameters): Set inline_failed for thunks.
7778         (inline_analyze_function): Cleanup.
7779         * ipa-inline.c (can_inline_edge_p): Do not deal with
7780         call_stmt_cannot_inline_p.
7781         (can_early_inline_edge_p): Likewise.
7782         (early_inliner): Initialize inline_failed.
7783         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
7785 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
7787         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
7788         from nonimm_ssenomem_operand.
7789         (nonimm_ssenomem_operand): New predicate.
7790         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
7791         as operand 0 predicate.
7792         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
7793         Disable unsupported alternatives using "enabled" attribute.
7794         Use register_ssemem_operand as operand 0 predicate.
7795         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
7797 2016-05-03  Marek Polacek  <polacek@redhat.com>
7799         PR c/70859
7800         * input.c (expansion_point_location): New function.
7801         * input.h (expansion_point_location): Declare.
7803 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7805         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
7806         occurence with frame_offset_ ones.
7808 2016-05-03  Alan Modra  <amodra@gmail.com>
7810         PR rtl-optimization/70890
7811         * ira.c (combine_and_move_insns): When moving def_insn, remove
7812         equivs on use_insn.
7814 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7816         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
7817         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
7818         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
7819         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
7821 2016-05-03  Alan Modra  <amodra@gmail.com>
7823         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
7824         for SAVE_MULTIPLE/STORE_MULTIPLE.
7826 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7828         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
7829         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
7831 2016-05-03  Richard Biener  <rguenther@suse.de>
7833         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
7834         default true.
7835         (gimplify_arg): Likewise.
7836         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
7837         re-writing the result to a decl if required.
7838         (internal_get_tmp_var): Add allow_ssa parameter
7839         and override into_ssa with it.
7840         (get_formal_tmp_var): Adjust.
7841         (get_initialized_tmp_var): Add allow_ssa parameter.
7842         (gimplify_arg): Add allow_ssa parameter and avoid generating
7843         SSA names for the result false.
7844         (gimplify_call_expr): If the call may return twice do not
7845         gimplify parameters into SSA.
7846         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
7847         (gimplify_modify_expr): Adjust assert.  For noreturn calls
7848         with a SSA name LHS adjust its def.
7849         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
7850         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
7851         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
7852         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
7853         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
7854         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
7855         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
7856         (optimize_target_teams): Do not allow SSA names for clause operands.
7857         (gimplify_expr): Likewise for where we mark the result addressable.
7858         * passes.def (pass_init_datastructures): Remove.
7859         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
7860         (rewrite_stmt): Likewise.
7861         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
7862         (replace_locals_op): Replace SSA names.
7863         (copy_gimple_seq_and_replace_locals): Init src_cfun.
7864         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
7865         * cgraph.c (release_function_body): Free CFG annotations only
7866         when we have a CFG.  Simplify.
7867         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7868         force_gimple_operand instead of get_initialized_tmp_var.
7869         * tree-pass.h (make_pass_init_datastructures): Remove.
7870         * tree-ssa.c (execute_init_datastructures): Remove.
7871         (pass_data_init_datastructures): Likewise.
7872         (class pass_init_datastructures): Likewise.
7873         (make_pass_init_datastructures): Likewise.
7874         * omp-low.c (create_omp_child_function): Init SSA data structures.
7875         (grid_expand_target_grid_body): Likewise.
7876         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
7877         name before adding it to names_to_release.
7878         (remove_bb): Always release SSA defs.
7879         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
7880         before dereferencing it.
7881         * cgraphunit.c (init_lowered_empty_function): Always
7882         int SSA data structures.
7883         * tree-ssanames.c (release_defs): Remove assert that we are in
7884         SSA form.
7885         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
7887 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7888             Uros Bizjak  <ubizjak@gmail.com>
7890         PR rtl-optimization/70467
7891         * config/i386/predicates.md (x86_64_hilo_int_operand,
7892         x86_64_hilo_general_operand): New predicates.
7893         * config/i386/constraints.md (Wd): New constraint.
7894         * config/i386/i386.md (mode attr di): Use Wd instead of e.
7895         (general_hilo_operand): New mode attr.
7896         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
7897         instead of <general_operand>.
7898         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
7899         x86_64_hilo_general_operand instead of <general_operand>.
7901 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7903         PR tree-optimization/70916
7904         * tree-if-conv.c (constant_or_ssa_name): Removed.
7905         (fold_build_cond_expr): Use is_gimple_val instead of
7906         constant_or_ssa_name.
7908         PR tree-optimization/70916
7909         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
7910         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
7912         PR target/49244
7913         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
7914         (optimize_atomic_bit_test_and): New function.
7915         (pass_fold_builtins::execute): Use it.
7916         * optabs.def (atomic_bit_test_and_set_optab,
7917         atomic_bit_test_and_complement_optab,
7918         atomic_bit_test_and_reset_optab): New optabs.
7919         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
7920         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
7921         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
7922         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
7923         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
7924         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
7925         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
7926         * doc/md.texi (atomic_bit_test_and_set@var{mode},
7927         atomic_bit_test_and_complement@var{mode},
7928         atomic_bit_test_and_reset@var{mode}): Document.
7929         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
7930         atomic_bit_test_and_complement<mode>,
7931         atomic_bit_test_and_reset<mode>): New expanders.
7932         (atomic_bit_test_and_set<mode>_1,
7933         atomic_bit_test_and_complement<mode>_1,
7934         atomic_bit_test_and_reset<mode>_1): New insns.
7936 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
7938         PR rtl-optimization/70687
7939         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
7940         instead of unsigned HOST_WIDE_INT.
7942 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
7944         PR rtl-optimization/44281
7945         * hard-reg-set.h (struct target_hard_regs): New field
7946         x_fixed_nonglobal_reg_set.
7947         (fixed_nonglobal_reg_set): New macro.
7948         * reginfo.c (init_reg_sets_1): Initialize it.
7949         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
7950         of fixed_reg_set.
7951         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
7953 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7955         PR tree-optimization/56541
7956         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
7957         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
7958         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
7959         (any_complicated_phi): new static variable.
7960         (aggressive_if_conv): delete.
7961         (if_convertible_phi_p): support phis with more than two arguments.
7962         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
7963         critical pred edges.
7964         (ifcvt_split_critical_edges): support phis with more than two
7965         arguments by checking new parameter.  only split critical edges
7966         if needed.
7967         (tree_if_conversion): handle simd pragma marked loop using new
7968         local variable aggressive_if_conv.  check any_complicated_phi.
7970 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7972         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
7973         before using it.
7975 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7977         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
7978         cbase.
7980 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
7982         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
7983         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
7984         define_insn_and_split.
7985         (mulsi3_i): New define_insn_and_split.
7986         (mulsi3_call): Convert to define_insn.
7987         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
7988         Remove constraints.
7990 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7992         * machmode.h (mode_complex): Add support to give the complex mode
7993         for a given mode.
7994         (GET_MODE_COMPLEX_MODE): Likewise.
7995         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
7996         stored by build_complex_type and gfc_build_complex_type instead of
7997         trying to figure out the appropriate mode based on the size. Raise
7998         an assertion error, if the type was not set.
7999         * genmodes.c (struct mode_data): Add field for the complex type of
8000         the given type.
8001         (blank_mode): Likewise.
8002         (make_complex_modes): Remember the complex mode created in the
8003         base type.
8004         (emit_mode_complex): Write out the mode_complex array to map a
8005         type mode to the complex version.
8006         (emit_insn_modes_c): Likewise.
8007         * tree.c (build_complex_type): Set the complex type to use before
8008         calling layout_type.
8009         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8010         support for __float128 complex datatypes.
8011         (rs6000_hard_regno_mode_ok): Likewise.
8012         (rs6000_setup_reg_addr_masks): Likewise.
8013         (rs6000_complex_function_value): Likewise.
8014         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8015         __float128 and __ibm128 complex.
8016         (FLOAT128_IBM_P): Likewise.
8017         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8018         * doc/extend.texi (Additional Floating Types): Document that
8019         -mfloat128 must be used to enable __float128.  Document complex
8020         __float128 and __ibm128 support.
8022 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8024         PR target/49244
8025         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8026         char/short arguments promoted to int because of promote_prototypes.
8028 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8030         * config/i386/predicates.md (register_ssemem_operand): New predicate.
8031         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8032         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8033         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
8034         alternatives using "enabled" attribute.  Use register_ssemem_operand
8035         as operand 1 predicate.
8036         (*cmpi<unord>xf_i387): Split XFmode pattern from
8037         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8038         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8039         *absneg<mode>2_i387.  Disable unsupported alternatives using
8040         "enabled" attribute.
8041         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8043 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8045         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8046         marker.
8047         (oacc_loop_process): Check mask for loop termination.
8049 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8051         * cif-code.def (CIF_THUNK): Add.
8052         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8053         accidental change.
8055 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8057         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8058         (dump_inline_summary): Dump it.
8059         (fp_expression_p): New predicate.
8060         (estimate_function_body_sizes): Use it.
8061         (inline_merge_summary): Merge fp_expressions.
8062         (inline_read_section): Read fp_expressions.
8063         (inline_write_summary): Write fp_expressions.
8064         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8065         codegen boundary if either caller or callee is !fp_expressions.
8066         * ipa-inline.h (inline_summary): Add fp_expressions.
8067         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8068         to fp_expressions be sure the fp generation flags are updated.
8070 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8072         PR rtl-optimization/70467
8073         * cse.c (cse_insn): Handle no-op MEM moves after folding.
8075         PR rtl-optimization/70467
8076         * ipa-pure-const.c (check_call): Handle internal calls even in
8077         ipa mode like in local mode.
8079 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8081         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8083 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8085         * match.pd (X u< X, X u> X): New transformations.
8087 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8089         * flag-types.h (enum warn_strict_overflow_code): Move ...
8090         * coretypes.h: ... here.
8091         * fold-const.h (fold_overflow_warning): Declare.
8092         * fold-const.c (fold_overflow_warning): Make non-static.
8093         (fold_comparison): Move the transformation of X +- C1 CMP C2
8094         into X CMP C2 -+ C1 ...
8095         * match.pd: ... here.
8096         * gimple-fold.c (fold_stmt_1): Protect with
8097         fold_defer_overflow_warnings.
8099 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8101         * omp-low.c (struct oacc_loop): Add 'inner' field.
8102         (new_oacc_loop_raw): Initialize it to zero.
8103         (oacc_loop_fixed_partitions): Initialize it.
8104         (oacc_loop_auto_partitions): Partition outermost loop to outermost
8105         available partitioning.
8107 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8109         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
8110         register_operand.
8111         (umulsidi3): Likewise.
8112         (indirect_jump): Fix jump instruction assembly patterns.
8114 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
8116         PR target/70860
8117         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
8118         (nvptx_function_value): Assert non-NULL cfun.
8120 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8122         PR rtl-optimization/70886
8123         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
8125         * cselib.h (rtx_equal_for_cselib_1): Declare.
8126         (rtx_equal_for_cselib_p: New inline function.
8127         * cselib.c (rtx_equal_for_cselib_p): Delete.
8128         (rtx_equal_for_cselib_1): Make public.
8130 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8132         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
8133         (register_mixssei387nonimm_operand): Remove predicate.
8134         * config/i386/i386.md (*fop_<mode>_comm): Merge from
8135         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
8136         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
8137         for TARGET_MIX_SSE_I387 alternatives.
8138         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
8139         Disable unsupported alternatives using "enabled" attribute.  Use
8140         nonimm_ssenomem_operand as operand 1 predicate.  Also check
8141         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
8143 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8145         * tree.c (cst_and_fits_in_hwi): Simplify.
8147 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8149         * tree.h (wi::to_wide): New function.
8150         * expr.c (expand_expr_real_1): Use wi::to_wide.
8151         * fold-const.c (int_const_binop_1): Likewise.
8152         (extract_muldiv_1): Likewise.
8154 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8156         * wide-int.h: Update offset_int and widest_int documentation.
8157         (WI_SIGNED_SHIFT_RESULT): New macro.
8158         (wi::binary_shift): Define signed_shift_result_type for
8159         shifts on offset_int- and widest_int-like types.
8160         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8161         * tree.h (int_bit_position): Use shift operators instead of wi::
8162          shifts.
8163         * alias.c (adjust_offset_for_component_ref): Likewise.
8164         * expr.c (get_inner_reference): Likewise.
8165         * fold-const.c (fold_comparison): Likewise.
8166         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8167         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8168         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8169         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8170         (stmt_kills_ref_p): Likewise.
8171         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8172         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8173         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8174         (ao_ref_init_from_vn_reference): Likewise.
8176 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8178         * wide-int.h: Update offset_int and widest_int documentation.
8179         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8180         (wi::binary_traits): Allow ordered comparisons between offset_int and
8181         offset_int, between widest_int and widest_int, and between either
8182         of these types and basic C types.
8183         (operator <, <=, >, >=): Define for the same combinations.
8184         * tree.h (tree_int_cst_lt): Use comparison operators instead
8185         of wi:: comparisons.
8186         (tree_int_cst_le): Likewise.
8187         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8188         (fold_nonarray_ctor_reference): Likewise.
8189         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8190         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8191         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8192         * tree-sra.c (completely_scalarize): Likewise.
8193         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8194         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8195         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8196         (check_for_binary_op_overflow): Likewise.
8197         (search_for_addr_array): Likewise.
8198         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8200 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8202         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8203         (arc_save_restore): Likewise.
8204         (arc_dwarf_register_span): Likewise.
8205         (arc_output_pic_addr_const): Initialize suffix variable.
8207 2016-05-02  Martin Liska  <mliska@suse.cz>
8209         * symbol-summary.h (function_summary::function_summary):
8210         Remove checking assert for all cgraph nodes.
8211         (function_summary::get): Check summary_uid.
8212         (symtab_insertion): Check summary_uid.
8214 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8216         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8217         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8218         bmaskn instruction.
8219         (arc_dwarf_register_span): Remove enum keyword.
8220         (compact_memory_operand_p): New function.
8221         * config/arc/arc.h (reg_class): Add code density register classes.
8222         (REG_CLASS_NAMES): Likewise.
8223         (REG_CLASS_CONTENTS): Likewise.
8224         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8225         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8226         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8227         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8228         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8229         constraints.
8230         (h, Rcd, Rsd, Rzd): New register constraints.
8231         (T): Use compact_memory_operand_p function.
8232         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8234 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8236         * config/sh/sh.md (*negnegt, *movtt): Remove.
8238 2016-05-02  Marek Polacek  <polacek@redhat.com>
8239             Tom de Vries  <tom@codesourcery.com>
8241         PR tree-optimization/70700
8242         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8243         bigger than FIRST_REF_NODE.
8245 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8247         PR target/52898
8248         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8249         TARGET_CMPEQDI_T.
8250         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8251         function is used when pseudos can be created.
8252         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8253         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8254         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8255         define_expand.  Allow it only when pseudos can be created.
8256         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8258 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8260         * config/i386/constraints.md (BC): Only allow -1 operands.
8261         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8262         Add "enabled" attribute.  Update XI mode attribute calculation.
8263         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8264         (*movoi_internal_avx): Update XI mode attribute calculation.
8265         (*movti_internal): Ditto.
8267 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8269         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8270         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8272 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8274         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8275         statement on instruction code.  Remove trailing spaces.
8276         (altivec_expand_stv_builtin): Likewise.
8278 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8280         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8281         (TARGET_FPU_DOUBLE): Simplify.
8282         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8283         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8284         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8285         with 'TARGET_FPU_DOUBLE'.
8286         * config/sh/sh.md: Likewise.
8288 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8290         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8291         SH_DIV_STR_FOR_SIZE): Remove.
8292         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
8293         SH_DIV_STR_FOR_SIZE): Remove.
8295 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8297         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
8298         logical_reg_operand): Delete.
8299         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
8300         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
8301         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
8302         match_operand and match_test.
8303         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
8304         variables on their first use.  Return bool values.
8305         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
8306         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
8307         arith_reg_operand for input operand.  Remove empty constraints.
8308         (xorsi3): Delete.
8309         (*xorsi3_compact): Rename to xorsi3.
8310         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
8311         (*zero_extend<mode>si2_disp_mem): Update comment.
8312         (mov_nop): Delete.
8314 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8316         * config/sh/t-sh: Remove SH5 support.
8317         * config.gcc: Likewise.
8318         * configure: Likewise.
8320 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8322         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
8324 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8326         * config/sh/sh.c (register_sh_passes, sh_option_override,
8327         sh_print_operand, prepare_move_operands,
8328         sh_can_follow_jump): Remove TARGET_SH1 checks.
8329         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
8330         PROMOTE_MODE): Likewise.
8331         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
8332         movdi): Likewise.
8334 2016-04-30  Alan Modra  <amodra@gmail.com>
8336         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
8337         restoring when fixed_reg_p, but allow out-of-line or stmw save.
8338         Check for user regs later to avoid unnecessary looping over regs.
8339         Merge user reg check with non-saved reg check.  Don't force
8340         inline VR restore when static chain used.
8341         (rs6000_frame_related): Omit eh_frame info for user regs when
8342         saving.
8343         (fixed_regs_p): Delete.
8345 2016-04-30  Alan Modra  <amodra@gmail.com>
8347         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
8348         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
8349         Update all uses.
8351 2016-04-30  Alan Modra  <amodra@gmail.com>
8353         PR target/69645
8354         * config/rs6000/rs6000.c (fixed_reg_p): New function.
8355         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
8356         Update all uses.
8358 2016-04-30  Alan Modra  <amodra@gmail.com>
8360         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8361         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
8362         flag_pic test for Darwin.
8364 2016-04-30  Alan Modra  <amodra@gmail.com>
8366         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
8367         throw_calls_crossed.
8368         (REG_FREQ_CALLS_CROSSED): Delete.
8369         (REG_N_THROWING_CALLS_CROSSED): Delete.
8370         * regstat.c (regstat_bb_compute_ri): Don't calculate
8371         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
8372         (dump_reg_info): Don't print call cross frequency.
8373         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
8374         and REG_N_THROWING_CALLS_CROSSED.
8376 2016-04-30  Alan Modra  <amodra@gmail.com>
8378         * regs.h (struct reg_info_t): Delete live_length.
8379         (REG_LIVE_LENGTH): Delete macro.
8380         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
8381         local_live, local_processed and local_live_last_luid params.
8382         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
8383         Formatting fixes.
8384         (regstat_compute_ri): Adjust for above.  Don't set
8385         REG_LIVE_LENGTH.
8386         (dump_reg_info): Don't print live length.
8387         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
8388         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
8389         Localize loop_depth var.
8391 2016-04-30  Alan Modra  <amodra@gmail.com>
8393         * ira.c (enum valid_equiv): New.
8394         (validate_equiv_mem): Return enum.
8395         (update_equiv_mem): Create replacement in more cases.
8396         (add_store_equivs): Update validate_equiv_mem call.
8398 2016-04-30  Alan Modra  <amodra@gmail.com>
8400         * ira.c (combine_and_move_insns): Rather than scanning insns,
8401         use DF infrastucture to find use and def insns.
8403 2016-04-30  Alan Modra  <amodra@gmail.com>
8405         ira.c (combine_and_move_insns): Move invariant conditions..
8406         (ira.c): ..to here.  Call combine_and_move_insns before
8407         add_store_equivs.  Call grow_reg_equivs later.  Allocate
8408         req_equiv later using max_reg_num() rather than global max_regno.
8409         (contains_replace_regs): Delete.
8410         (add_store_equivs): Remove contains_replace_regs test.
8412 2016-04-30  Alan Modra  <amodra@gmail.com>
8414         * ira.c (struct equiv_mem_data): New.
8415         (equiv_mem, equiv_mem_modified): Delete static vars.
8416         (validate_equiv_mem_from_store): Use "data" param to communicate..
8417         (validate_equiv_mem): ..from here.
8419 2016-04-30  Alan Modra  <amodra@gmail.com>
8421         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
8422         split out from..
8423         (update_reg_equivs): ..here.  Move allocation and freeing of
8424         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
8425         end_alias_analysis to..
8426         (ira): ..here.
8428 2016-04-30  Alan Modra  <amodra@gmail.com>
8430         * ira.c (pdx_subregs): Delete.
8431         (struct equivalence): Add pdx_subregs field.
8432         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
8433         pdx_subregs access.
8434         (update_equiv_regs): Don't create or free pdx_subregs.  Update
8435         pdx_subregs access.
8437 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8439         * config/rs6000/altivec.h: Change definitions of vec_xl and
8440         vec_xst.
8441         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
8442         (LD_ELEMREV_V2DI): New.
8443         (LD_ELEMREV_V4SF): New.
8444         (LD_ELEMREV_V4SI): New.
8445         (LD_ELEMREV_V8HI): New.
8446         (LD_ELEMREV_V16QI): New.
8447         (ST_ELEMREV_V2DF): New.
8448         (ST_ELEMREV_V2DI): New.
8449         (ST_ELEMREV_V4SF): New.
8450         (ST_ELEMREV_V4SI): New.
8451         (ST_ELEMREV_V8HI): New.
8452         (ST_ELEMREV_V16QI): New.
8453         (XL): New.
8454         (XST): New.
8455         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8456         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
8457         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
8458         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
8459         (altivec_expand_builtin): Add handling for
8460         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
8461         (rs6000_invalid_builtin): Add error-checking for
8462         RS6000_BTM_P9_VECTOR.
8463         (altivec_init_builtins): Define builtins used to implement vec_xl
8464         and vec_xst.
8465         (rs6000_builtin_mask_names): Define power9-vector.
8466         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
8467         (RS6000_BTM_P9_VECTOR): Define.
8468         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
8469         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
8470         (vsx_ld_elemrev_v2df): Likewise.
8471         (vsx_ld_elemrev_v4sf): Likewise.
8472         (vsx_ld_elemrev_v4si): Likewise.
8473         (vsx_ld_elemrev_v8hi): Likewise.
8474         (vsx_ld_elemrev_v16qi): Likewise.
8475         (vsx_st_elemrev_v2df): Likewise.
8476         (vsx_st_elemrev_v2di): Likewise.
8477         (vsx_st_elemrev_v4sf): Likewise.
8478         (vsx_st_elemrev_v4si): Likewise.
8479         (vsx_st_elemrev_v8hi): Likewise.
8480         (vsx_st_elemrev_v16qi): Likewise.
8481         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
8482         grammar.
8484 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
8486         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
8487         out into ...
8488         (simplify_control_stmt_condition_1): ... here.  Recurse into
8489         BIT_AND_EXPRs and BIT_IOR_EXPRs.
8491 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
8493         PR target/69810
8494         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
8495         (zero_extendqi<mode>2_dot): Revert earlier conversion from
8496         define_insn_and_split to define_insn.
8497         (zero_extendqi<mode>2_dot2): Same.
8498         (extendqi<mode>2_dot): Same.
8499         (extendqi<mode>2_dot2): Same.
8501 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8503         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
8504         (probe_stack): New expander.
8505         (probe_stack_<mode>): New insn pattern.
8507 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8509         * config/i386/i386.md
8510         (operations with memory inputs setting flags peephole2):
8511         Remove uneeded REG_P checks.  Cleanup pattern generation.
8513 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8515         * tree-vect-loop.c (vect_transform_loop): Fix
8516         nb_iterations_upper_bound computation for vectorized loop.
8518 2016-04-29  Marek Polacek  <polacek@redhat.com>
8519             Jakub Jelinek  <jakub@redhat.com>
8521         PR sanitizer/70342
8522         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
8523         TARGET_EXPR_SLOT as a base.
8525 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
8527         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
8528         with 'rCm2' constraints to limit possible immediate size.
8529         (*load_zeroextendqisi_update): Likewise.
8530         (*load_signextendqisi_update): Likewise.
8531         (*loadhi_update): Likewise.
8532         (*load_zeroextendhisi_update): Likewise.
8533         (*load_signextendhisi_update): Likewise.
8534         (*loadsi_update): Likewise.
8535         (*loadsf_update): Likewise.
8537 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8539         * config/i386/predicates.md (constm1_operand): Fix comparison.
8541 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8543         * testsuite/gcc.target/arc/ieee_eq.c: New test.
8545 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
8547         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
8548         remaining SH5 related settings.
8549         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
8550         shmedia_prepare_call_address): Delete.
8551         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
8552         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
8553         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
8554         UNSUPPORTED_SH2A): Remove m5 checks.
8555         (sh_divide_strategy_e): Remove SH5 division strategies.
8556         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
8557         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
8559 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8561         * config/s390/s390.c (s390_rtx_costs): Update documentation.
8563 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8565         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
8566         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
8567         Change lder to ldr.
8568         * config/s390/vector.md ("mov<mode>"): Likewise.
8570 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
8572         * config/s390/constraints.md ("U", "W"): Invoke
8573         s390_mem_constraint with "ZR" and "ZT".
8574         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
8575         addresses when using LRA.  Accept also short displacements for S
8576         and T constraints.  Do not check for long displacement target for
8577         S and T constraints.
8578         (s390_mem_constraint): Remove handling of U and W constraints.
8579         * config/s390/s390.md (various patterns): Remove the short
8580         displacement constraints (Q and R) if a long displacement
8581         constraint is present.  Add longdisp as required CPU capability.
8582         * config/s390/vector.md: Likewise.
8583         * config/s390/vx-builtins.md: Likewise.
8585 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8587         PR target/60040
8588         * reload1.c (reload): Call finish_spills before
8589         restarting reload loop. Skip select_reload_regs
8590         if update_eliminables_and_spill returns true.
8592 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8594         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
8595         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
8596         (umulhisi3_imm): Update predicates and constraint letters.
8597         (umulhisi3_reg): Declare instruction as commutative.
8598         * config/arc/constraints.md (J12, J16): New constraints.
8599         * config/arc/predicates.md (short_unsigned_const_operand): New
8600         predicate.
8601         (arc_short_operand): Likewise.
8602         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
8604 2016-04-29  Richard Biener  <rguenther@suse.de>
8606         PR tree-optimization/13962
8607         PR tree-optimization/65686
8608         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
8609         * tree-ssa-alias.c (ptrs_compare_unequal): New function
8610         using PTA to compare pointers.
8611         * match.pd: Add pattern for pointer equality compare simplification
8612         using ptrs_compare_unequal.
8614 2016-04-29  Richard Biener  <rguenther@suse.de>
8616         * stor-layout.c (layout_type): Do not build a pointer-to-element
8617         type for arrays.
8619 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8621         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
8622         Use SWI mode iterator.  Use general_reg_operand predicate.
8623         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
8624         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
8625         predicates.
8627 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
8629         PR middle-end/70843
8630         * fold-const.c (operand_equal_p): Don't verify hash value equality
8631         if arg0 == arg1.
8632         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
8633         and OMP_CLAUSE.
8635 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8637         PR target/70858
8638         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
8639         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
8640         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
8641         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
8642         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
8644 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8646         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
8647         to info.  Don't initialize separate fields to 0.  Clean up
8648         formatting a bit.
8650 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8652         * config/i386/i386.md (peephole2s for operations with memory inputs):
8653         Use SWI mode iterator.
8654         (peephole2s for operations with memory outputs): Ditto.
8655         Do not check for stack checking probe.
8657         (probe_stack): Remove expander.
8659 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8660             Andrew Burgess  <andrew.burgess@embecosm.com>
8662         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
8663         operands as 32-bits.
8665 2016-04-28  Jason Merrill  <jason@redhat.com>
8667         * gdbinit.in: Skip line-map.h.
8669 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8670             Andrew Burgess  <andrew.burgess@embecosm.com>
8672         * config/arc/arc.c (arc_conditional_register_usage): Take
8673         TARGET_RRQ_CLASS into account.
8674         (arc_print_operand): Support printing 'p' and 's' operands.
8675         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
8676         as 0.
8677         (TARGET_RRQ_CLASS): Define.
8678         (IS_POWEROF2_OR_0_P): Define.
8679         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
8680         alternatives.
8681         (*tst_movb): New define_insn.
8682         (*tst): Avoid recognition if it could prevent '*tst_movb'
8683         combination; replace c/CnL with c/Chs alternative.
8684         (*tst_bitfield_tst): New define_insn.
8685         (*tst_bitfield_asr): New define_insn.
8686         (*tst_bitfield): New define_insn.
8687         (andsi3_i): Add Rrq variant.
8688         (extzv): New define_expand.
8689         (insv): New define_expand.
8690         (*insv_i): New define_insn.
8691         (*movb): New define_insn.
8692         (*movb_signed): New define_insn.
8693         (*movb_high): New define_insn.
8694         (*movb_high_signed): New define_insn.
8695         (*movb_high_signed + 1): New define_split pattern.
8696         (*mrgb): New define_insn.
8697         (*mrgb + 1): New define_peephole2 pattern.
8698         (*mrgb + 2): New define_peephole2 pattern.
8699         * config/arc/arc.opt (mbitops): New option for nps400, uses
8700         TARGET_NPS_BITOPS_DEFAULT.
8701         * config/arc/constraints.md (q): Make register class conditional.
8702         (Rrq): New register constraint.
8703         (Chs): New constraint.
8704         (Clo): New constraint.
8705         (Chi): New constraint.
8706         (Cbf): New constraint.
8707         (Cbn): New constraint.
8708         (C18): New constraint.
8709         (Cbi): New constraint.
8711 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8713         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
8714         dst->popcount.
8715         (bitmap_intersection_of_preds): Ditto.
8716         (bitmap_union_of_succs): Ditto.
8717         (bitmap_union_of_preds): Ditto.
8718         * sbitmap.c (do_popcount): Delete.
8719         (BITMAP_DEBUGGING): Delete.
8720         (sbitmap_verify_popcount): Delete.
8721         (sbitmap_alloc): Don't initialize the popcount field.
8722         (sbitmap_alloc_with_popcount): Delete.
8723         (sbitmap_resize): Don't resize the popcount array.
8724         (sbitmap_vector_alloc): Don't initialize the popcount field.
8725         (bitmap_copy): Don't copy the popcount array.
8726         (bitmap_clear): Don't clear the popcount array.
8727         (bitmap_clear): Delete the popcount array handling.
8728         (bitmap_ior_and_compl): Delete the popcount assert.
8729         (bitmap_not): Ditto.
8730         (bitmap_and_compl): Ditto.
8731         (bitmap_and): Delete the popcount array handling.
8732         (bitmap_xor): Ditto.
8733         (bitmap_ior): Ditto.
8734         (bitmap_or_and): Delete the popcount assert.
8735         (bitmap_and_or): Ditto.
8736         (popcount_table): Delete.
8737         (sbitmap_elt_popcount): Delete.
8738         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
8739         (bitmap_set_bit): Delete the popcount assert.
8740         (bitmap_clear_bit): Ditto.
8741         (sbitmap_free): Don't free the popcount array.
8742         (sbitmap_alloc_with_popcount): Delete declaration.
8743         (sbitmap_popcount): Ditto.
8745 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8746             Andrew Burgess  <andrew.burgess@embecosm.com>
8748         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
8749         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
8750         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
8751         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
8752         * config/arc/arc.opt (mcmem): New option.
8753         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
8754         supply length for r/m alternative.
8755         (*extendqisi2_ac): Likewise.
8756         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
8757         r/Uex alternative.
8758         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
8759         (movhi_insn): Likewise.
8760         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
8761         (*zero_extendqihi2_i): Add r/Ucm alternative.
8762         (*zero_extendqisi2_ac): Likewise.
8763         (*zero_extendhisi2_i): Likewise.
8764         * config/arc/constraints.md (Uex): New memory constraint.
8765         (Ucm): New define_constraint.
8766         * config/arc/predicates.md (long_immediate_loadstore_operand):
8767         Return 0 for MEM with cmem_address address.
8768         (cmem_address_0): New predicates.
8769         (cmem_address_1): Likewise.
8770         (cmem_address_2): Likewise.
8771         (cmem_address): Likewise.
8773 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8775         * config/rs6000/rs6000.c (machine_function): Rename
8776         insn_chain_scanned_p to spe_insn_chain_scanned_p.
8777         (rs6000_stack_info): Adjust.
8779 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8780             Andrew Burgess  <andrew.burgess@embecosm.com>
8782         * config/arc/constraints.md (Usd): Convert to define_constraint.
8783         (Us<): Likewise.
8784         (Us>): Likewise.
8786 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8788         PR target/70821
8789         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
8790         Add new peephole2 where the first insn is *mov<mode>_or instead of
8791         *mov<mode>_internal.
8793 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
8795         * tracer.c (bb_seen): Make static.
8797 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8799         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
8800         support, setup defaults.
8801         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
8802         * config/arc/arc.c (arc_init): Add NPS400 support.
8803         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
8804         (TARGET_ARC700): NPS400 is also an ARC700.
8805         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
8807 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8809         PR target/70668
8810         * config/nds32/nds32.md (casesi): Don't access the operands array
8811         out of bounds.
8813 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8815         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
8816         (or $-1,reg peephole2): Ditto.
8817         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
8819 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8821         * doc/extend.texi (Common Function Attributes) [optimize]:
8822         Discourage use of the optimize attribute.
8824 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
8826         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
8827         special case builtin.
8828         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
8829         ALTIVEC_BUILTIN_VEC_ADDE.
8830         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8831         support for ALTIVEC_BUILTIN_VEC_ADDE.
8832         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8833         for __builtin_vec_adde.
8835 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8837         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
8838         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
8840 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8842         PR testsuite/70595
8843         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8844         attributes): Document cilkplus_runtime.
8846 2016-04-28  Martin Jambor  <mjambor@suse.cz>
8848         * tree-cfg.c (verify_expr): Verify that local declarations belong to
8849         this function.  Call verify_expr on MEM_REFs and bases of other
8850         handled_components.
8852 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8854         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
8855         for WORD_REGISTER_OPERATIONS to runtime check.
8857 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8859         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
8861 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8863         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
8864         big-endian compilation.
8865         * config/arc/arc.md (addf3): Likewise.
8866         (subdf3): Likewise.
8867         (muldf3): Likewise.
8869 2016-04-28  Richard Biener  <rguenther@suse.de>
8871         PR tree-optimization/70840
8872         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
8873         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
8874         Mark x * pow(x,c) -> pow(x,c+1) commutative.
8875         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
8877 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8879         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
8880         and explain why in a comment.
8882 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8884         * config/arc/arc.md (cpu_facility): Add fpx variant.
8885         (subdf3): Prohibit use reverse sub when assist operations option
8886         is enabled.
8887         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
8888         instructions only when FPX is enabled.
8889         * testsuite/gcc.target/arc/trsub.c: New test.
8891 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8893         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
8894         mult_operator when calculating "type" attribute.
8895         (*fop_<mode>_1_i387): Ditto.
8896         (*fop_xf_1_i387): Ditto.
8897         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
8898         Use std::swap to swap operands.  Use RTL expressions to generate
8899         converted pattern.
8901 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8902             Joern Rennecke  <joern.rennecke@embecosm.com>
8904         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
8905         declaration.
8906         (emit_pic_move): Remove.
8907         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
8908         * config/arc/arc.c (emit_pic_move): Removed.
8909         (TARGET_HAVE_TLS): Define.
8910         (arc_conditional_register_usage): Test for arc_tp_regno.
8911         (arc_print_operand, arc_print_operand_address): Handle TLS
8912         unspecs.
8913         (arc_needs_pcl_p): New function.
8914         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
8915         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
8916         (arc_raw_symbolic_reference_mentioned_p): Likewise.
8917         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
8918         (arc_legitimize_tls_address): Likewise.
8919         (DTPOFF_ZERO_SYM): Define.
8920         (arc_legitimize_pic_address): Make it static, handle TLS cases.
8921         (arc_output_pic_addr_const): Print TLS unspecs.
8922         (prepare_pic_move): New function, replaces emit_pic_move.
8923         (arc_legitimate_constant_p): Handle TLS unspecs.
8924         (arc_legitimate_address_p): Likewise.
8925         (arc_rewrite_small_data_p): Use assert for TLS constants.
8926         (prepare_move_operands): Use prepare_pic_move.
8927         (arc_legitimize_address): Legitimize tls addresses.
8928         (arc_epilogue_uses): Check for arc_tp_regno.
8929         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
8930         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
8931         Define.
8932         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
8933         Likewise.
8934         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
8935         %(arc_tls_extra_start_spec).
8936         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
8937         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
8938         (EH_USES): Define.
8939         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
8940         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
8941         (UNSPEC_TLS_OFF): Add.
8942         (R10_REG): Define.
8943         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
8944         (get_thread_pointersi): New patterns.
8945         * config/arc/arc.opt (mtp-regno): New option.
8946         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
8947         (move_dest_operand): Likewise.
8948         * configure: Regenerate.
8949         * configure.ac: Add arc*-*-* case to test for tls.
8950         * doc/invoke.texi (ARC options): Document mtp-regno.
8952 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8954         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
8955         the new ARC HS SIMD instructions.
8956         (arc_preferred_simd_mode): New function.
8957         (arc_autovectorize_vector_sizes): Likewise.
8958         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
8959         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8960         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
8961         (arc_init_builtins): Add new SIMD builtin types.
8962         (arc_split_move): Handle 64 bit vector moves.
8963         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
8964         (TARGET_PLUS_QMACW): Define.
8965         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
8966         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
8967         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
8968         (VSUBADD4H): New builtins.
8969         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
8970         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
8972 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8973             Matthias Klose  <doko@debian.org>
8975         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
8977 2016-04-28  Richard Biener  <rguenther@suse.de>
8979         PR middle-end/70777
8980         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
8981         canonicalization.
8983 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
8985         * common/config/sh/sh-common.c: Remove SH5 support.
8986         * config/sh/constraints.md: Likewise.
8987         * config/sh/config/sh/elf.h: Likewise.
8988         * config/sh/linux.h: Likewise.
8989         * config/sh/netbsd-elf.h: Likewise.
8990         * config/sh/predicates.md: Likewise.
8991         * config/sh/sh-c.c: Likewise.
8992         * config/sh/sh-protos.h: Likewise.
8993         * config/sh/sh.c: Likewise.
8994         * config/sh/sh.h: Likewise.
8995         * config/sh/sh.md: Likewise.
8996         * config/sh/sh.opt: Likewise.
8997         * config/sh/sync.md: Likewise.
8998         * config/sh/sh64.h: Delete.
8999         * config/sh/shmedia.h: Likewise.
9000         * config/sh/shmedia.md: Likewise.
9001         * config/sh/sshmedia.h: Likewise.
9002         * config/sh/t-netbsd-sh5-64: Likewise.
9003         * config/sh/t-sh64: Likewise.
9004         * config/sh/ushmedia.h: Likewise.
9006 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9008         * config/i386/i386.md (sign_extend to memory peephole2s): Use
9009         general_reg_operand instead of register_operand predicate.
9011 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9013         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9015 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
9017         * match.pd (A - B > A, A + B < A): New transformations.
9019 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
9021         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9022         which defaults to true.  Emit an outer pair of parentheses only if
9023         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
9024         don't emit parentheses for the right-hand operand.
9026 2016-04-27  Jeff Law  <law@redhat.com>
9028         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9030 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9032         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9033         (altivec_lvx_<mode>_internal): Document.
9034         (altivec_lvx_<mode>_2op): New define_insn.
9035         (altivec_lvx_<mode>_1op): Likewise.
9036         (altivec_lvx_<mode>_2op_si): Likewise.
9037         (altivec_lvx_<mode>_1op_si): Likewise.
9038         (altivec_stvx_<mode>): Remove.
9039         (altivec_stvx_<mode>_internal): Document.
9040         (altivec_stvx_<mode>_2op): New define_insn.
9041         (altivec_stvx_<mode>_1op): Likewise.
9042         (altivec_stvx_<mode>_2op_si): Likewise.
9043         (altivec_stvx_<mode>_1op_si): Likewise.
9044         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9045         Expand vec_ld and vec_st during parsing.
9046         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9047         changes.
9048         (altivec_expand_stvx_be): Likewise.
9049         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9050         address-masking behavior in RTL.
9051         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9052         address-masking behavior in RTL.
9053         (altivec_expand_builtin): Change builtin code arguments for calls
9054         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9055         (insn_is_swappable_p): Avoid incorrect swap optimization in the
9056         presence of lvx/stvx patterns.
9057         (alignment_with_canonical_addr): New function.
9058         (alignment_mask): Likewise.
9059         (find_alignment_op): Likewise.
9060         (recombine_lvx_pattern): Likewise.
9061         (recombine_stvx_pattern): Likewise.
9062         (recombine_lvx_stvx_patterns): Likewise.
9063         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9064         stvx patterns from expand.
9065         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9066         expansions.
9067         (vector_altivec_store_<mode>): Likewise.
9069 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
9071         * config/aarch64/aarch64.md
9072         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9073         remove the "fp" attributes.
9074         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9075         add the "simd" attributes.
9076         (*movdf_aarch64): Likewise.
9077         (*movtf_aarch64): Remove the "fp" attributes.
9078         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9079         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9081 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9083         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9084         rtx to rtx_code_label *.
9085         * rtl.h (maybe_set_first_label_num): Likewise.
9087 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9089         * df-core.c (df_add_problem): Make the problem param be const.
9090         (df_remove_problem): Make local "problem" be const.
9091         * df-problems.c (problem_RD): Make const.
9092         (problem_LR): Likewise.
9093         (problem_LIVE): Likewise.
9094         (problem_MIR): Likewise.
9095         (problem_CHAIN): Likewise.
9096         (problem_WORD_LR): Likewise.
9097         (problem_NOTE): Likewise.
9098         (problem_MD): Likewise.
9099         * df-scan.c (problem_SCAN): Likewise.
9100         * df.h (struct df_problem): Make field "dependent_problem" be
9101         const.
9102         (struct dataflow): Likewise for field "problem".
9103         (df_add_problem): Make param const.
9105 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9107         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9108         inter-unit moves to/from vector registers are enabled.  Do not disable
9109         for TARGET_MMX.
9111 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9113         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
9114         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
9115         #define to...
9116         (enum df_problem_id): ...this new enum.
9117         (struct df_problem): Convert field "id" from "int" to
9118         enum df_problem_id.
9120 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9122         * rtl.def: Update comment for "things in the instruction chain" to
9123         reflect the removal of the leading "i" field for INSN_UID in
9124         r210360.  Fix bogus apostrophe.
9126 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9128         * config/i386/i386.md
9129         (lea arith with mem operand + setcc peephole2): Set operator mode.
9131 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9133         PR target/70155
9134         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
9135         (dimode_scalar_to_vector_candidate_p): This.
9136         (timode_scalar_to_vector_candidate_p): New function.
9137         (scalar_to_vector_candidate_p): Likewise.
9138         (timode_check_non_convertible_regs): Likewise.
9139         (timode_remove_non_convertible_regs): Likewise.
9140         (remove_non_convertible_regs): Likewise.
9141         (remove_non_convertible_regs): Renamed to ...
9142         (dimode_remove_non_convertible_regs): This.
9143         (scalar_chain::~scalar_chain): Make it virtual.
9144         (scalar_chain::compute_convert_gain): Make it pure virtual.
9145         (scalar_chain::mark_dual_mode_def): Likewise.
9146         (scalar_chain::convert_insn): Likewise.
9147         (scalar_chain::convert_registers): Likewise.
9148         (scalar_chain::add_to_queue): Make it protected.
9149         (scalar_chain::emit_conversion_insns): Likewise.
9150         (scalar_chain::replace_with_subreg): Likewise.
9151         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9152         (scalar_chain::convert_op): Likewise.
9153         (scalar_chain::convert_reg): Likewise.
9154         (scalar_chain::make_vector_copies): Likewise.
9155         (scalar_chain::convert_registers): New pure virtual function.
9156         (class dimode_scalar_chain): New class.
9157         (class timode_scalar_chain): Likewise.
9158         (scalar_chain::mark_dual_mode_def): Renamed to ...
9159         (dimode_scalar_chain::mark_dual_mode_def): This.
9160         (timode_scalar_chain::mark_dual_mode_def): New function.
9161         (timode_scalar_chain::convert_insn): Likewise.
9162         (dimode_scalar_chain::convert_registers): Likewise.
9163         (scalar_chain::compute_convert_gain): Renamed to ...
9164         (dimode_scalar_chain::compute_convert_gain): This.
9165         (scalar_chain::replace_with_subreg): Renamed to ...
9166         (dimode_scalar_chain::replace_with_subreg): This.
9167         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9168         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9169         (scalar_chain::make_vector_copies): Renamed to ...
9170         (dimode_scalar_chain::make_vector_copies): This.
9171         (scalar_chain::convert_reg): Renamed to ...
9172         (dimode_scalar_chain::convert_reg ): This.
9173         (scalar_chain::convert_op): Renamed to ...
9174         (dimode_scalar_chain::convert_op): This.
9175         (scalar_chain::convert_insn): Renamed to ...
9176         (dimode_scalar_chain::convert_insn): This.
9177         (scalar_chain::convert): Call convert_registers.
9178         (convert_scalars_to_vector): Change to scalar_chain pointer to
9179         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9180         in 32-bit mode.  Delete scalar_chain pointer.  Call
9181         free_dominance_info in 64-bit mode.
9182         (pass_stv::gate): Remove TARGET_64BIT check.
9183         (ix86_option_override): Put the 64-bit STV pass before the CSE
9184         pass.
9186 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9188         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9189         dw_loc_frame_offset field.
9190         * dwarf2out.c (new_loc_descr): Likewise.
9191         (resolve_args_picking_1): Turn the VISITED hash set into a
9192         FRAME_OFFSET hash map. Use it to associate a frame offset to
9193         visited nodes. Remove uses of the CHECKING_P macro.
9194         (resolve_args_picking): Update call to resolve_args_picking_1.
9196 2016-04-27  Martin Liska  <mliska@suse.cz>
9198         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9199         (free_loop_data): Release vuses of groups.
9201 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9203         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9204         instead of redundant use_id and boolean have_use_for.
9205         (struct iv_use): Change sub_id into group_id.  Remove field next.
9206         Move fields: related_cands, n_map_members, cost_map and selected
9207         to ...
9208         (struct iv_group): ... here.  New structure.
9209         (struct iv_common_cand): Use structure declaration directly.
9210         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9211         (MAX_CONSIDERED_USES): Rename macro to ...
9212         (MAX_CONSIDERED_GROUPS): ... here.
9213         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9214         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9215         (dump_uses): Rename to ...
9216         (dump_groups): ... here.  Update all uses.
9217         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9218         (find_induction_variables): Refactor format of dump information.
9219         (record_sub_use): Delete.
9220         (record_use): Update all uses.
9221         (record_group): New function.
9222         (record_group_use, find_interesting_uses_op): Call above functions.
9223         Update all uses.
9224         (find_interesting_uses_cond): Ditto.
9225         (group_compare_offset): New function.
9226         (split_all_small_groups): Rename to ...
9227         (split_small_address_groups_p): ... here.  Update all uses.
9228         (split_address_groups):  Update all uses.
9229         (find_interesting_uses): Refactor format of dump information.
9230         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9231         base and step.
9232         (add_candidate, record_common_cand): Remove redundant assert.
9233         (add_iv_candidate_for_biv): Update use.
9234         (add_iv_candidate_derived_from_uses): Update all uses.
9235         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9236         (alloc_use_cost_map): Ditto.
9237         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9238         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9239         (determine_use_iv_cost_generic): Ditto.
9240         (determine_group_iv_cost_generic): Ditto.
9241         (determine_use_iv_cost_address): Ditto.
9242         (determine_group_iv_cost_address): Ditto.
9243         (determine_use_iv_cost_condition): Ditto.
9244         (determine_group_iv_cost_cond): Ditto.
9245         (determine_use_iv_cost): Ditto.
9246         (determine_group_iv_cost): Ditto.
9247         (set_autoinc_for_original_candidates): Update all uses.
9248         (find_iv_candidates): Update all uses.  Refactor dump information.
9249         (determine_use_iv_costs): Ditto.
9250         (determine_iv_costs): Ditto.
9251         (iv_ca_cand_for_use): Rename to ...
9252         (iv_ca_cand_for_group): ... here.  Update all uses.
9253         (iv_ca_add_use, iv_ca_add_group): Ditto.
9254         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9255         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9256         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9257         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9258         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9259         (create_new_iv, adjust_iv_update_pos): Ditto.
9260         (rewrite_use_address): Delete.
9261         (rewrite_use_address_1): Rename to ...
9262         (rewrite_use_address): ... here.
9263         (rewrite_use_compare): Update all uses.
9264         (rewrite_use): Delete.
9265         (rewrite_uses): Rename to ...
9266         (rewrite_groups): ... here.  Update all uses.
9267         (remove_unused_ivs, free_loop_data): Update all uses.
9268         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9270 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9272         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9273         for WORD_REGISTER_OPERATIONS to runtime check.
9275 2016-04-27  Richard Biener  <rguenther@suse.de>
9277         PR ipa/70760
9278         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9279         aggregate_value_p to determine if a function result is
9280         returned by reference.
9281         (ipa_pta_execute): Functions having their address taken are
9282         not automatically nonlocal.
9284 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9286         PR sanitizer/70683
9287         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9288         * fold-const.c (operand_equal_p): If flag_checking and
9289         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9290         and if it returns non-zero, assert iterative_hash_expr on both
9291         args is the same.
9293 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9295         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
9297 2016-04-27  Nick Clifton  <nickc@redhat.com>
9299         PR middle-end/49889
9300         * varasm.c (merge_weak): Generate an error if an attempt is made
9301         to convert a non-weak static function into a weak, public function.
9303 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9305         * params.def (MAX_PARTITION_SIZE): New param.
9306         * doc/invoke.texi: Document lto-max-partition.
9308 2016-04-27  Richard Biener  <rguenther@suse.de>
9310         PR ipa/70785
9311         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
9312         function cummulating used_from_other_partition, externally_visible
9313         and force_output from aliases.
9314         (refered_from_nonlocal_var): Likewise.
9315         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
9316         node flags properly.
9318 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9320         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
9321         (-Wmemset-elt-size): New item.
9323 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9325         PR ada/70759
9326         * stor-layout.h (internal_reference_types): Delete.
9327         * stor-layout.c (reference_types_internal): Likewise.
9328         (internal_reference_types): Likewise.
9329         (layout_type) <REFERENCE_TYPE>: Adjust.
9331 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9333         PR sanitizer/70683
9334         * tree.h (inchash::add_expr): Add FLAGS argument.
9335         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
9336         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
9337         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
9338         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
9339         if swap_tree_comparison (code) is smaller than code, hash that
9340         and arguments in the other order.  Hash CONVERT_EXPR the same
9341         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
9342         of ADDR_EXPR of decl as the decl itself.  Add or remove
9343         OEP_ADDRESS_OF from recursive flags as needed.  For
9344         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
9345         operands commutatively and only the third one normally.
9346         For internal CALL_EXPR hash in CALL_EXPR_IFN.
9348 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9350         * config/rtems.h (LIB_SPEC): Add -latomic.
9352 2016-04-27  Joel Sherrill  <joel@rtems.org>
9354         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
9355         xilink.ld and flags not relevant to RTEMS.
9357 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9359         * toplev.c (backend_init_target): Avoid calling init_reload when using
9360         LRA.
9362 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9364         * reorg.c (try_merge_delay_insns): Declare i and j inside the
9365         for loops rather than one for the whole function.
9367 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9369         * match.pd (X + CST CMP X): New transformation.
9371 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9373         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
9374         * fold-const.c (fold_binary_loc): Remove 2 transformations
9375         superseded by match.pd.
9376         * match.pd (x+x -> x*2): Generalize to integers.
9378 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
9380         * config/i386/i386.md (operation on memory peephole): Duplicate an
9381         existing peephole and adapt it to match lea rather than an operation
9382         that clobbers CC.
9384         PR rtl-optimization/57193
9385         * opts.c (default_options_table): Add OPT_frename_registers at -O2
9386         and above.
9387         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
9389 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9391         * tree-if-conv.c (any_pred_load_store): New static variable.
9392         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
9393         any_pred_load_store instead of and_mask_load_store.
9394         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
9395         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
9396         (combine_blocks, tree_if_conversion): Ditto.
9398 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9400         PR tree-optimization/70771
9401         PR tree-optimization/70775
9402         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
9403         virtual PHI nodes.  Delete parameter.
9404         (if_convertible_loop_p_1): Delete argument to above function.
9405         (predicate_all_scalar_phis): Delete code handling single-argument
9406         PHIs.
9407         (tree_if_conversion): Mark and update virtual SSA.
9409 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9411         PR target/61821
9412         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
9413         (x86_elf_aligned_common): Rename to ...
9414         (x86_elf_aligned_decl_common): ... this.
9415         Add decl arg.  Switch to .lbss for largecomm object.  Use
9416         LARGECOMM_SECTION_ASM_OP.
9417         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
9418         renaming.
9419         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
9420         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
9421         Pass new decl arg.
9422         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9423         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
9425 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9427         PR target/59407
9428         * config/i386/i386.c (SECTION_LARGE): Define.
9429         (x86_64_elf_select_section): Set it for large data/bss sections.
9430         Only clear SECTION_WRITE for .lrodata.
9431         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
9432         data/bss sections.
9433         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
9434         * varasm.c (default_elf_asm_named_section): Grow flagchars.
9435         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
9436         SECTION_MACH_DEP.
9437         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
9438         * doc/tm.texi: Regenerate.
9440 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9442         PR bootstrap/70704
9443         * configure.ac (--enable-checking): Document extra flag, for
9444         non-release builds default to --enable-checking=yes,extra.
9445         If misc checking and extra checking, define CHECKING_P to 2 instead
9446         of 1.
9447         * common.opt (fchecking=): Add.
9448         * doc/invoke.texi (-fchecking=): Document.
9449         * doc/install.texi: Document --enable-checking changes.
9450         * configure: Regenerated.
9451         * config.in: Regenerated.
9453 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9455         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
9456         attribute instead of which_alternative.
9457         * config/i386/sse.md (*mov<mode>_internal): Ditto.
9458         Use EXT_REX_SSE_REG_P where appropriate.
9460 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9462         * config/i386/predicates.md (const0_operand): Do not match
9463         const_wide_int code.
9464         (const1_operand): Ditto.
9466 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9468         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
9469         for SSE constm1 operands and TARGET_AVX512VL.
9470         (*movti_internal): Ditto.
9471         (*mov<mode>_or): Use constm1_operand predicate.
9472         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
9473         for SSE vector_all_ones operands and TARGET_AVX512VL.
9474         * config/i386/predicates.md (constm1_operand): New predicate.
9475         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
9476         emission of constant -1 load.
9478 2016-04-25  Jason Merrill  <jason@redhat.com>
9480         * gdbinit.in: Skip is-a.h.
9482         * attribs.c (register_scoped_attributes): Fix logic.
9483         * attribs.h: Declare register_scoped_attributes.
9485 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9487         * config/rs6000/rs6000-builtin.def: Correct pasto error for
9488         stxvd2x and stxvw4x built-in functions.
9490 2016-04-25  DJ Delorie  <dj@redhat.com>
9492         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
9493         (ashrhi3): Likewise.
9494         (lshrhi3): Likewise.
9496 2016-04-25  Richard Biener  <rguenther@suse.de>
9498         PR tree-optimization/70780
9499         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
9500         wasn't visited yet.
9501         (compute_antic): Mark blocks with abnormal preds as visited as
9502         they have a final empty antic-in solution already.
9504 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9506         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
9508 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9510         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
9511         mode is VQI to improve mixed mode vectorization.
9512         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
9513         define_insn to match low half of signed vaddw.
9514         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
9515         define_insn to match high half of signed vaddw.
9516         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
9517         define_insn to match low half of unsigned vaddw.
9518         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
9519         define_insn to match high half of unsigned vaddw.
9520         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
9521         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9522         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
9523         for new function.
9524         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9525         * config/arm/predicates.md (vect_par_constant_high): Support
9526         big endian and simplify by calling
9527         arm_simd_check_vect_par_cnst_half
9528         (vect_par_constant_low): Likewise.
9530 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9532         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
9533         predicate for operand 2.
9535 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
9536             H.J. Lu  <hongjiu.lu@intel.com>
9538         * config/i386/i386-protos.h (standard_sse_constant_p): Add
9539         machine_mode argument.
9540         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
9541         constm1_rtx operands.  For VOIDmode constants, get mode from
9542         pred_mode.  Check mode size if the mode is supported by ABI.
9543         (standard_sse_constant_opcode): Do not use standard_constant_p.
9544         Strictly check ABI support for all-ones operands.
9545         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
9546         immediates. Update calls to standard_sse_constant_p.
9547         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
9548         (ix86_rtx_costs): Ditto.
9549         * config/i386/i386.md (*movxi_internal_avx512f): Use
9550         nonimmediate_or_sse_const_operand instead of vector_move_operand.
9551         Use (v,BC) alternative instead of (v,C). Use register_operand
9552         checks instead of MEM_P.
9553         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
9554         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
9555         isa attribute.  Use register_operand checks instead of MEM_P.
9556         (*movti_internal): Use nonimmediate_or_sse_const_operand for
9557         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
9558         alternative and corresponding sse2 isa attribute.
9559         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
9560         to standard_sse_constant_p.
9561         (FP constant splitters): Ditto.
9562         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
9563         (C): Ditto.
9564         * config/i386/predicates.md (constm1_operand): Remove.
9565         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
9566         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
9567         vector_all_ones_operand instead of constm1_operand.
9569 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9571         * print-rtl.c (print_rtx_insn_vec): New function.
9572         * print-rtl.h: New prototype.
9573         * store-motion.c (struct st_expr): Make avail_stores a vector.
9574         (st_expr_entry): Adjust.
9575         (free_st_expr_entry): Likewise.
9576         (print_store_motion_mems): Likewise.
9577         (find_moveable_store): Likewise.
9578         (compute_store_table): Likewise.
9579         (delete_store): Likewise.
9580         (build_store_vectors): Likewise.
9582 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9584         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
9586 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9588         * vec.h (vec_safe_contains): New function.
9589         (vec::contains): Likewise.
9590         (vec::begin): Likewise.
9591         (vec::end): Likewise.
9593 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
9595         PR sanitizer/70712
9596         * cfgexpand.c (expand_stack_vars): Fix typo.
9598 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9600         * system.h (list, map, set, vector): Include conditionally.
9601         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
9602         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
9603         * ipa-icf.c (INCLUDE_LIST): Define.
9604         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
9605         * config/sh/sh.c (INCLUDE_VECTOR): Define.
9606         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
9607         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
9608         * cp/logic.cc (INCLUDE_LIST): Define.
9609         * fortran/trans-common.c (INCLUDE_MAP): Define.
9611 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9613         * auto-profile.c: Remove <string.h> include.
9614         * ipa-icf-gimple.c: Remove <list> include.
9615         * diagnostic.c: Remove <new> include.
9616         * genmatch.c: Likewise.
9617         * pretty-print.c: Likewise.
9618         * toplev.c: Likewise
9619         * c/c-objc-common.c: Likewise.
9620         * cp/error.c: Likewise.
9621         * fortran/error.c: Likewise.
9623 2016-04-22  Richard Biener  <rguenther@suse.de>
9625         * lto-streamer-in.c (input_ssa_names): Do not allocate
9626         GIMPLE_NOP for all SSA names.
9627         * lto-streamer-out.c (output_ssa_names): Do not output
9628         SSA names that should have been released.
9630 2016-04-22  Richard Biener  <rguenther@suse.de>
9632         PR tree-optimization/70740
9633         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
9634         VDEF.
9636 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9638         PR target/70750
9639         * config/i386/predicates.md (call_insn_operand): Replace
9640         sibcall_memory_operand with memory_operand.
9642 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
9644         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
9645         has_single_use() tests.
9646         (register_edge_assert_for_1): Likewise.
9647         (find_assert_locations_1): Check the liveness bitmap instead of
9648         checking has_single_use().
9650 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9652         PR target/70728
9653         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
9654         Extract AVX-512BW constraint from AVX.
9656 2016-04-21  Richard Biener  <rguenther@suse.de>
9658         PR tree-optimization/70725
9659         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
9660         for phi_convertible_by_degenerating_args.
9661         (predicate_all_scalar_phis): Handle single-argument PHIs.
9663 2016-04-21  Richard Biener  <rguenther@suse.de>
9665         PR middle-end/70747
9666         * fold-const.c (fold_comparison): Return properly typed
9667         constant boolean.
9669 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
9671         PR tree-optimization/70715
9672         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9673         after expanding BASE using expand_simple_operations.
9675 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9677         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
9678         New transformations.
9680 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9682         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
9684 2016-04-20  Jan Hubicka  <jh@suse.cz>
9686         * ipa-inline.c (can_inline_edge_p): Pass caller info to
9687         ultiimate_alias_target.
9688         (update_callee_keys): Likewise.
9689         (lookup_recursive_calls): Likewise.
9690         (speculation_useful_p): Likewise.
9692 2016-04-20  Jan Hubicka  <jh@suse.cz>
9694         PR ipa/70018
9695         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
9696         (set_nothrow_flag_1): ... this; handle interposition correctly;
9697         recurse on aliases and thunks.
9698         (cgraph_node::set_nothrow_flag): New.
9699         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
9700         functions compiled with non-call exceptions that binds to current
9701         def.
9702         (propagate_nothrow): Be safe WRT interposition.
9703         * cgraph.h (set_nothrow_flag): Update prototype.
9705 2016-04-18  Jan Hubicka  <jh@suse.cz>
9707         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9708         max_loop_iterations_int.
9709         (tree_unswitch_outer_loop): Likewise.
9711 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9713         PR tree-optimization/69489
9714         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
9715         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
9716         Revise dump message.
9717         (if_convertible_bb_p): Remove check on edge count of basic block's
9718         predecessors.
9720 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9722         PR tree-optimization/56625
9723         PR tree-optimization/69489
9724         * tree-data-ref.h (DR_INNERMOST): New macro.
9725         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
9726         hashing struct innermost_loop_behavior.
9727         (ref_DR_map): Remove.
9728         (innermost_DR_map): New map.
9729         (baseref_DR_map): Revise comment.
9730         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
9731         to innermost_DR_map accroding to its innermost loop behavior.
9732         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
9733         to its innermost loop behavior.
9734         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
9735         Add initialization for innermost_DR_map.  Record memory reference
9736         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
9737         have innermost loop behavior.
9738         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
9739         innermost_DR_map.
9741 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
9743         * config/i386/i386.md (*lea<mode>_general_1): Rename from
9744         *lea_general_1.  Use explicit SWI12 mode interator.
9745         (*lea<mode>_general_2): Rename from *lea_general_2.
9746         Use explicit SWI12 mode interator.
9747         (*lea<mode>_general_3): Rename from *lea_general_3.
9748         Use explicit SWI12 mode interator.
9749         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
9750         Use explicit SWI12 mode interator.
9751         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
9752         Use explicit SWI48 mode interator.
9754 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9756         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9757         Short-cut unaligned load and store cases.  Handle all integer
9758         vector modes.
9759         (ix86_expand_vector_move_misalign): Short-cut unaligned load
9760         and store cases.  Call ix86_avx256_split_vector_move_misalign
9761         directly without checking mode class.
9763 2016-04-20  Andrew Pinski  <apinski@cavium.com>
9764             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9766         PR target/64971
9767         * config/aarch64/aarch64.md (sibcall): Force call
9768         address to be DImode for ILP32.
9769         (sibcall_value): Likewise.
9771 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9773         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
9775 2016-04-20  Richard Biener  <rguenther@suse.de>
9777         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
9778         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
9779         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
9780         (maybe_push_res_to_seq): Adjust.
9781         * gimple-fold.c (maybe_build_generic_op): Likewise.
9783 2016-04-20  Marek Polacek  <polacek@redhat.com>
9785         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
9786         rather than true.
9788 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
9790         * config/i386/sse.md (vec_unpacks_lo_hi): Always
9791         use kmovw to support AVX512F target.
9793 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9795         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
9797 2016-04-20  Marek Polacek  <polacek@redhat.com>
9799         PR tree-optimization/70725
9800         * tree-if-conv.c (is_false_predicate): New function.
9801         (predicate_mem_writes): Use it.
9803 2016-04-20  Richard Biener  <rguenther@suse.de>
9805         PR tree-optimization/70726
9806         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
9807         shift amounts from a pattern stmt operand.
9809 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9811         PR target/70674
9812         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
9813         stack_restore_from_fpr pattern when restoring r15.
9814         (s390_optimize_prologue): Strip away the memory barrier in the
9815         parallel when trying to get rid of restore insns.
9816         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
9817         definition for loading the stack pointer from an FPR.  Compared to
9818         the normal move insn this pattern includes a full memory barrier.
9820 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
9822         PR middle-end/70680
9823         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
9824         implicitly linear or lastprivate iterator on the outer context.
9826 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9828         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
9829         alignment check.
9830         * config/i386/i386.md (ssememalign): Removed.
9831         * config/i386/sse.md: Remove ssememalign attribute from patterns.
9833 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9835         PR target/69201
9836         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
9837         const short * to __builtin_ia32_loaddquhi512_mask.
9838         (_mm512_maskz_loadu_epi16): Likewise.
9839         (_mm512_mask_storeu_epi16): Pass short * to
9840         __builtin_ia32_storedquhi512_mask.
9841         (_mm512_mask_loadu_epi8): Pass const char * to
9842         __builtin_ia32_loaddquqi512_mask.
9843         (_mm512_maskz_loadu_epi8): Likewise.
9844         (_mm512_mask_storeu_epi8): Pass char * to
9845         __builtin_ia32_storedquqi512_mask.
9846         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
9847         const double * to __builtin_ia32_loadupd512_mask.
9848         (_mm512_mask_loadu_pd): Likewise.
9849         (_mm512_maskz_loadu_pd): Likewise.
9850         (_mm512_storeu_pd): Pass double * to
9851         __builtin_ia32_storeupd512_mask.
9852         (_mm512_mask_storeu_pd): Likewise.
9853         (_mm512_loadu_ps): Pass const float * to
9854         __builtin_ia32_loadups512_mask.
9855         (_mm512_mask_loadu_ps): Likewise.
9856         (_mm512_maskz_loadu_ps): Likewise.
9857         (_mm512_storeu_ps): Pass float * to
9858         __builtin_ia32_storeups512_mask.
9859         (_mm512_mask_storeu_ps): Likewise.
9860         (_mm512_mask_loadu_epi64): Pass const long long * to
9861         __builtin_ia32_loaddqudi512_mask.
9862         (_mm512_maskz_loadu_epi64): Likewise.
9863         (_mm512_mask_storeu_epi64): Pass long long *
9864         to __builtin_ia32_storedqudi512_mask.
9865         (_mm512_loadu_si512): Pass const int * to
9866         __builtin_ia32_loaddqusi512_mask.
9867         (_mm512_mask_loadu_epi32): Likewise.
9868         (_mm512_maskz_loadu_epi32): Likewise.
9869         (_mm512_storeu_si512): Pass int * to
9870         __builtin_ia32_storedqusi512_mask.
9871         (_mm512_mask_storeu_epi32): Likewise.
9872         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
9873         char * to __builtin_ia32_storedquqi256_mask.
9874         (_mm_mask_storeu_epi8): Likewise.
9875         (_mm256_mask_loadu_epi16): Pass const short * to
9876         __builtin_ia32_loaddquhi256_mask.
9877         (_mm256_maskz_loadu_epi16): Likewise.
9878         (_mm_mask_loadu_epi16): Pass const short * to
9879         __builtin_ia32_loaddquhi128_mask.
9880         (_mm_maskz_loadu_epi16): Likewise.
9881         (_mm256_mask_loadu_epi8): Pass const char * to
9882         __builtin_ia32_loaddquqi256_mask.
9883         (_mm256_maskz_loadu_epi8): Likewise.
9884         (_mm_mask_loadu_epi8): Pass const char * to
9885         __builtin_ia32_loaddquqi128_mask.
9886         (_mm_maskz_loadu_epi8): Likewise.
9887         (_mm256_mask_storeu_epi16): Pass short * to.
9888         __builtin_ia32_storedquhi256_mask.
9889         (_mm_mask_storeu_epi16): Pass short * to.
9890         __builtin_ia32_storedquhi128_mask.
9891         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
9892         const double * to __builtin_ia32_loadupd256_mask.
9893         (_mm256_maskz_loadu_pd): Likewise.
9894         (_mm_mask_loadu_pd): Pass onst double * to
9895         __builtin_ia32_loadupd128_mask.
9896         (_mm_maskz_loadu_pd): Likewise.
9897         (_mm256_mask_storeu_pd): Pass double * to
9898         __builtin_ia32_storeupd256_mask.
9899         (_mm_mask_storeu_pd): Pass double * to
9900         __builtin_ia32_storeupd128_mask.
9901         (_mm256_mask_loadu_ps): Pass const float * to
9902         __builtin_ia32_loadups256_mask.
9903         (_mm256_maskz_loadu_ps): Likewise.
9904         (_mm_mask_loadu_ps): Pass const float * to
9905         __builtin_ia32_loadups128_mask.
9906         (_mm_maskz_loadu_ps): Likewise.
9907         (_mm256_mask_storeu_ps): Pass float * to
9908         __builtin_ia32_storeups256_mask.
9909         (_mm_mask_storeu_ps): ass float * to
9910         __builtin_ia32_storeups128_mask.
9911         (_mm256_mask_loadu_epi64): Pass const long long * to
9912         __builtin_ia32_loaddqudi256_mask.
9913         (_mm256_maskz_loadu_epi64): Likewise.
9914         (_mm_mask_loadu_epi64): Pass const long long * to
9915         __builtin_ia32_loaddqudi128_mask.
9916         (_mm_maskz_loadu_epi64): Likewise.
9917         (_mm256_mask_storeu_epi64): Pass long long * to
9918         __builtin_ia32_storedqudi256_mask.
9919         (_mm_mask_storeu_epi64): Pass long long * to
9920         __builtin_ia32_storedqudi128_mask.
9921         (_mm256_mask_loadu_epi32): Pass const int * to
9922         __builtin_ia32_loaddqusi256_mask.
9923         (_mm256_maskz_loadu_epi32): Likewise.
9924         (_mm_mask_loadu_epi32): Pass const int * to
9925         __builtin_ia32_loaddqusi128_mask.
9926         (_mm_maskz_loadu_epi32): Likewise.
9927         (_mm256_mask_storeu_epi32): Pass int * to
9928         __builtin_ia32_storedqusi256_mask.
9929         (_mm_mask_storeu_epi32): Pass int * to
9930         __builtin_ia32_storedqusi128_mask.
9931         * config/i386/i386-builtin-types.def (PCSHORT): New.
9932         (PINT64): Likewise.
9933         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
9934         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
9935         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
9936         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
9937         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
9938         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
9939         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
9940         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
9941         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
9942         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
9943         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
9944         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
9945         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
9946         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
9947         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
9948         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
9949         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
9950         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
9951         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
9952         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
9953         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
9954         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
9955         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
9956         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
9957         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
9958         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
9959         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
9960         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
9961         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
9962         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
9963         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
9964         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
9965         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
9966         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
9967         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
9968         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
9969         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
9970         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
9971         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
9972         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
9973         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
9974         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
9975         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
9976         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
9977         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
9978         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
9979         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
9980         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
9981         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
9982         use UNSPEC_STOREU.
9983         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
9984         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
9985         load nor store.
9986         (ix86_expand_vector_move_misalign): Likewise.
9987         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
9988         to scalar function prototype for unaligned load/store builtins.
9989         (ix86_expand_special_args_builtin): Updated.
9990         * config/i386/sse.md (UNSPEC_LOADU): Removed.
9991         (UNSPEC_STOREU): Likewise.
9992         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
9993         (VI_ULOADSTORE_F_AVX512VL): Likewise.
9994         (ssescalarsize): Handle V4TI, V2TI and V1TI.
9995         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9996         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9997         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
9998         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
9999         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10000         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10001         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10002         (<avx512>_storedqu<mode>_mask): Likewise.
10003         (*sse4_2_pcmpestr_unaligned): Likewise.
10004         (*sse4_2_pcmpistr_unaligned): Likewise.
10005         (*mov<mode>_internal): Renamed to ...
10006         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
10007         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10008         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10009         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10011 2016-04-19  Richard Biener  <rguenther@suse.de>
10013         PR tree-optimization/70171
10014         * tree-ssa-phiprop.c: Include stor-layout.h.
10015         (phiprop_insert_phi): Handle the aggregate copy case.
10016         (propagate_with_phi): Likewise.
10018 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
10020         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10021         instead of simplify_gen_subreg (... , 0).
10022         (ix86_delegitimize_address): Ditto.
10023         (ix86_split_divmod): Ditto.
10024         (ix86_split_copysign_const): Ditto.
10025         (ix86_split_copysign_var): Ditto.
10026         (ix86_expand_args_builtin): Ditto.
10027         (ix86_expand_round_builtin): Ditto.
10028         (ix86_expand_special_args_builtin): Ditto.
10029         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10030         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10031         (udivmodqi4): Ditto.
10032         (absneg splitters): Ditto.
10033         (*jcc_bt<mode>_1): Ditto.
10035 2016-04-19  Richard Biener  <rguenther@suse.de>
10037         PR tree-optimization/70724
10038         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10039         restoring out from ...
10040         (free_scc_vn): ... here.
10041         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10042         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10043         tail merging.
10044         (pass_fre::execute): Restore SSA info.
10046 2016-04-19  Richard Biener  <rguenther@suse.de>
10048         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10049         * gimple-walk.c (walk_gimple_op): Initialize it.
10050         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10051         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10052         remapping SSA names of defs.
10053         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10054         adjustment.
10056 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
10058         PR middle-end/70689
10059         * lra-constraints.c (equiv_substition_p): New.
10060         (process_alt_operands): Use it.
10061         (swap_operands): Swap it.
10062         (curr_insn_transform): Update it.
10064 2016-04-18  Michael Matz  <matz@suse.de>
10066         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10067         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10068         * tree-core.h (tree_type_common.align): Use bit-field.
10069         (tree_type_common.spare): New.
10070         (tree_decl_common.off_align): Make smaller.
10071         (tree_decl_common.align): Use bit-field.
10073         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10074         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10075         (scan_sharing_clauses): Ditto.
10076         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10077         (omp_finish_file): Ditto.
10078         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10079         (layout_decl): Ditto.
10080         (relayout_decl): Ditto.
10081         (finalize_record_size): Use SET_TYPE_ALIGN.
10082         (finalize_type_size): Ditto.
10083         (finish_builtin_struct): Ditto.
10084         (layout_type): Ditto.
10085         (initialize_sizetypes): Ditto.
10086         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10087         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10088         (lookup_field_for_decl): Use SET_DECL_ALIGN.
10089         (get_chain_field): Ditto.
10090         (get_trampoline_type): Ditto.
10091         (get_nl_goto_field): Ditto.
10092         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10093         SET_DECL_ALIGN.
10094         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10095         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10096         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10097         (build_qualified_type): Use SET_TYPE_ALIGN.
10098         (build_aligned_type, build_range_type_1): Ditto.
10099         (build_atomic_base): Ditto.
10100         (build_common_tree_nodes): Ditto.
10101         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10102         (expand_one_stack_var_at): Ditto.
10103         * coverage.c (build_var): Use SET_DECL_ALIGN.
10104         * except.c (init_eh): Ditto.
10105         * function.c (assign_parm_setup_block): Ditto.
10106         * symtab.c (increase_alignment_1): Ditto.
10107         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10108         * tree-vect-stmts.c (ensure_base_align): Ditto.
10109         * varasm.c (align_variable): Ditto.
10110         (assemble_variable): Ditto.
10111         (build_constant_desc): Ditto.
10112         (output_constant_def_contents): Ditto.
10114         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
10115         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
10116         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
10117         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
10118         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
10120 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
10122         PR target/70708
10123         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
10124         replace %vmovsd with "%vmovq".
10125         (vec_concatv2df): Likewise.
10127 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
10129         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
10130         (*vec_extractv2si_0): Ditto.
10131         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
10132         (zero_extended_scalar_load_operand splitters): Ditto.
10133         (vec_extract splitters): Ditto.
10134         (*vec_extractv4si_0_zext): Ditto.
10135         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
10136         and lowpart_subreg.
10137         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
10138         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
10139         (*sse4_1_extractps): Use lowpart_subreg.
10140         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
10142 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10144         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
10145         gld requirements.
10146         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
10147         Mention Solaris 11 packaging changes.
10148         Update gas and gld requirements.
10149         Remove reference to pre-Solaris 10 bug.
10150         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10151         systems and bugs.
10152         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10153         with cc.
10155 2016-04-17  Jan Hubicka  <jh@suse.cz>
10157         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10158         max_loop_iterations_int.
10160 2016-04-18  Richard Biener  <rguenther@suse.de>
10162         PR tree-optimization/43434
10163         * tree-ssa-structalias.c (struct vls_data): New.
10164         (visit_loadstore): Handle all pointer-based accesses.
10165         (compute_dependence_clique): Compute a bitmap of restrict tags
10166         assigned bases and pass it to visit_loadstore.
10168 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10170         PR target/70711
10171         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10172         armv8.1-a and armv8.1-a+crc.
10174 2016-04-18  Richard Biener  <rguenther@suse.de>
10176         PR tree-optimization/70701
10177         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10178         references after translating through a memcpy.
10180 2016-04-18  Richard Biener  <rguenther@suse.de>
10182         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10183         (compute_antic): ... here.  For partial antic use regular
10184         postorder and scrap iteration.
10185         (compute_partial_antic_aux): Remove unused return value.
10186         (init_pre): Do not allocate postorder.
10187         (fini_pre): Do not free postorder.
10189 2016-04-18  Richard Biener  <rguenther@suse.de>
10191         PR middle-end/37870
10192         * expmed.c (extract_bit_field_1): Remove broken case
10193         using a wider MODE_INT mode.
10195 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10197         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10198         unless compiling with at least GCC-4.8.
10200 2016-04-17  Jan Hubicka  <jh@suse.cz>
10202         PR bootstrap/70706
10203         * graphite.c (graphite_finalize): Update call to
10204         tree_estimate_probability.
10205         * predict.h (tree_estimate_probability): Update prototype.
10207 2016-04-17  Jan Hubicka  <jh@suse.cz>
10209         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10210         (tree_estimate_probability): Likewise.
10211         (pass_profile::execute): Update.
10212         (report_predictor_hitrates): New function.
10213         * profile.c (compute_branch_probabilities): Use it.
10214         * predict.h (report_predictor_hitrates): Declare.
10216 2016-04-17  Jan Hubicka  <jh@suse.cz>
10218         PR ipa/70018
10219         * cgraph.h (cgraph_node::set_const_flag,
10220         cgraph_node::set_pure_flag): Update prototype to return bool;
10221         update comment.
10222         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10223         of interposable symbol are interposable, too.
10224         (cgraph_set_const_flag_1): Rename to ...
10225         (set_const_flag_1): ... this one; change to self recursive function
10226         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10227         clearnig the flag in all variants and also virtual thunks of const
10228         functions are pure; track if any change was done.
10229         (cgraph_node::set_const_flag): Update.
10230         (struct set_pure_flag_info): New struct.
10231         (cgraph_set_pure_flag_1): Rename to ...
10232         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10233         rather than pointer encoded flags; track if any changes was done;
10234         handle correctly clearning flag and setting flag of aliases already
10235         declared const.
10236         (cgraph_node::set_pure_flag): Update.
10237         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10239 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10241         PR other/70433
10242         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10243         backslash in label.
10245 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10247         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10248         '{}<> ' as escape-for-record.
10250 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10252         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10253         structure.
10255 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10257         PR other/70185
10258         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10259         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10260         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10261         * passes.c (finish_optimization_passes): Only call
10262         finish_graph_dump_file if dfi->graph_dump_initialized.
10263         (execute_function_dump, pass_init_dump_file): Use
10264         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10266 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10268         PR tree-optimization/70256
10269         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10270         (debug_varmap): New function.
10272 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10274         PR other/70183
10275         * passes.c (pass_manager::register_pass): Propagate pflags.
10277 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10279         PR other/68875
10280         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10281         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10282         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10283         check if it's equal to p_start.
10284         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10286 2016-04-15  Jan Hubicka  <jh@suse.cz>
10288         PR ipa/70018
10289         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10290         function does not bind to current def.
10291         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10292         handle conservatively calls to functions that does not need to bind
10293         to current def.
10294         (check_call): Update call of worse_state.
10295         (ignore_edge_for_nothrow): Update.
10296         (ignore_edge_for_pure_const): Likewise.
10297         (propagate_pure_const): Update calls to worse_state.
10298         (skip_function_for_local_pure_const): Reformat comments.
10300 2016-04-15  Jan Hubicka  <jh@suse.cz>
10302         PR ipa/70018
10303         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
10304         (cgraph_node::function_symbol): Likewise.
10305         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10306         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
10307         (symtab_node::ultimate_alias_target): Add REF parameter.
10308         (symtab_node::binds_to_current_def_p): Declare.
10309         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
10310         (cgraph_node::function_symbol): Likewise.
10311         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10312         (cgraph_node::get_availability): Likewise.
10313         (cgraph_edge::binds_to_current_def_p): New inline function.
10314         (varpool_node::get_availability): Add REF parameter.
10315         (varpool_node::ultimate_alias_target): Likewise.
10316         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
10317         (symtab_node::binds_to_current_def_p): Likewise.
10318         * varpool.c (varpool_node::get_availability): Likewise.
10320 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10322         PR target/70662
10323         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
10324         Fix mode size check.
10326 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10328         * BASE-VER: Set to 7.0.0.
10330 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
10332         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
10334 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10336         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
10337         architecture revisions.
10339 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
10341         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
10342         * config/i386/i386.c (ix86_using_red_zone): No longer static.
10343         * config/i386/i386.md (stack decrement to push peepholes): Guard
10344         with !x86_using_red_zone ().
10346 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10348         PR c++/70675
10349         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
10350         to dump_generic_node.
10351         (NIY): Pass also flags to do_niy.
10353 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10355         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
10356         (simd_clone_vector_of_formal_parm_types)
10357         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
10358         (simd_clone_mangle, simd_clone_create)
10359         (simd_clone_adjust_return_type, create_tmp_simd_array)
10360         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
10361         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
10362         (ipa_simd_modify_function_body, simd_clone_linear_addend)
10363         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
10364         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
10365         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
10366         * omp-simd-clone.c: ... this new file.
10367         (simd_clone_vector_of_formal_parm_types): Make it static.
10368         * Makefile.in (OBJS): Add omp-simd-clone.o.
10370 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10372         PR target/70662
10373         * config/i386/sse.md: Use proper memory operand modifiers.
10376 2016-04-15  Richard Biener  <rguenther@suse.de>
10377         Alan Modra  <amodra@gmail.com>
10379         PR tree-optimization/70130
10380         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
10381         when alignment stays not the same and no not use the realign
10382         scheme then.
10384 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10386         PR target/70669
10387         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10388         direct move handlers for KFmode. Change TFmode handlers test from
10389         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
10391 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
10393         PR c++/70594
10394         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
10395         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
10396         (inlined_polymorphic_ctor_dtor_block_p): Use it.
10397         * tree-ssa-live.c (remove_unused_scope_block_p): When
10398         in_ctor_dtor_block, avoid discarding not just BLOCKs with
10399         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
10400         block_ultimate_origin is FUNCTION_DECL.
10401         (remove_unused_locals): If current_function_decl is
10402         polymorphic_ctor_dtor_p, pass initial true to
10403         remove_unused_scope_block_p' is_ctor_dtor_block.
10405 2016-04-14  Martin Sebor  <msebor@redhat.com>
10407         PR c++/69517
10408         PR c++/70019
10409         PR c++/70588
10410         * doc/extend.texi (Variable Length): Revert.
10412 2016-04-14  Marek Polacek  <polacek@redhat.com>
10413             Jan Hubicka  <hubicka@ucw.cz>
10415         PR c++/70029
10416         * tree.c (verify_type): Disable the canonical type of main variant
10417         check.
10419 2016-04-14  Jason Merrill  <jason@redhat.com>
10421         * cfgexpand.c, expr.c: Revert previous change.
10423 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10425         PR middle-end/70643
10426         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
10427         when building a mem ref for the incoming reduction variable.
10429 2016-04-14  Richard Biener  <rguenther@suse.de>
10431         PR tree-optimization/70614
10432         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
10433         loop if the evolution dropped to chrec_dont_know.
10434         (interpret_condition_phi): Likewise.
10436 2016-04-14  Richard Biener  <rguenther@suse.de>
10438         PR tree-optimization/70623
10439         * tree-ssa-pre.c (changed_blocks): Make global ...
10440         (compute_antic): ... local here.  Move and fix worklist
10441         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
10442         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
10443         worklist handling, dump when ANTIC_IN changed.
10444         (compute_partial_antic_aux): Remove worklist handling.
10445         (init_pre): Do not compute post dominators.  Add a comment about
10446         the CFG order chosen.
10447         (fini_pre): Do not free post dominators.
10449 2016-04-13  Martin Sebor  <msebor@redhat.com>
10451         PR c++/69517
10452         PR c++/70019
10453         PR c++/70588
10454         * doc/extend.texi (Variable Length): Document C++ specifics.
10456 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10458         PR c++/70641
10459         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
10460         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
10461         eh edges have been purged.
10463         PR c++/70594
10464         * tree-sra.c (create_access_replacement,
10465         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
10466         gets fancy name.
10467         * tree-pretty-print.c (dump_fancy_name): New function.
10468         (dump_decl_name, dump_generic_node): Use it.
10470 2016-04-13  Jason Merrill  <jason@redhat.com>
10472         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
10473         * expr.c (expand_expr_real_1): Likewise.
10475 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10477         * config/i386/i386.md (kunpckhi): Swap operands.
10478         (kunpcksi): Likewise.
10479         (kunpckdi): Likewise.
10480         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
10481         (vec_pack_trunc_<mode>): Likewise.
10483 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10485         PR debug/70628
10486         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
10488         PR middle-end/70633
10489         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
10490         gimplification turns some element into non-constant.
10492         PR debug/70628
10493         * rtl.h (convert_memory_address_addr_space_1): New prototype.
10494         * explow.c (convert_memory_address_addr_space_1): No longer static,
10495         add NO_EMIT argument and don't call convert_modes if true, pass
10496         it down recursively, remove break after return.
10497         (convert_memory_address_addr_space): Adjust caller.
10498         * simplify-rtx.c (simplify_unary_operation_1): Call
10499         convert_memory_address_addr_space_1 instead of convert_memory_address,
10500         if it returns NULL, don't simplify.
10502 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10504         PR target/70630
10505         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
10507 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10509         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10510         Bump the upper SIMDLEN limits, so that if the return type or
10511         characteristic type if the return type is void can be passed in
10512         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
10513         allowed.
10515 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10517         PR target/70640
10518         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
10519         Do not use "=" constraint on an input constraint.
10520         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10521         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10522         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
10523         generates (neg (abs ...)) instead of (abs ...).
10525 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10527         PR rtl-optimization/70596
10528         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
10529         just invalidate LRA data and reset them.  Adjust dump wording.
10531 2016-04-12  Martin Liska  <mliska@suse.cz>
10533         Revert
10534         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10536         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10537         estimates here.
10538         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10539         max_loop_iterations_int.
10540         (tree_unswitch_outer_loop): Likewise.
10541         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10542         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10544 2016-04-12  Tom de Vries  <tom@codesourcery.com>
10546         PR tree-optimization/68756
10547         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
10548         instead of new_name.
10550 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10552         PR tree-optimization/70602
10553         * tree-sra.c (generate_subtree_copies): Don't write anything into
10554         constant pool decls.
10556         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
10557         regardless whether there are depend clauses or not.
10559 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10561         PR target/70381
10562         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
10563         target attribute and pragma from changing the -mfloat128
10564         and -mfloat128-hardware options.
10566         * doc/extend.texi (Additional Floating Types): Document PowerPC
10567         __float128 restrictions.
10569 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10571         PR target/70133
10572         * config/aarch64/driver-aarch64.c
10573         (aarch64_get_extension_string_for_isa_flags): New.
10574         (arch_extension): Rename to...
10575         (aarch64_arch_extension): ...This.
10576         (ext_to_feat_string): Rename to...
10577         (aarch64_extensions): ...This.
10578         (aarch64_core_data): Keep track of architecture extension flags.
10579         (cpu_data): Rename to...
10580         (aarch64_cpu_data): ...This.
10581         (aarch64_arch_driver_info): Keep track of architecture extension
10582         flags.
10583         (get_arch_name_from_id): Rename to...
10584         (get_arch_from_id): ...This, change return type.
10585         (host_detect_local_cpu): Update and reformat for renames, handle
10586         extensions through common infrastructure.
10588 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10590         PR target/70133
10591         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
10592         track of a canonical flag name.
10593         (all_extensions): Likewise.
10594         (arch_to_arch_name): Also track extension flags enabled by the arch.
10595         (all_architectures): Likewise.
10596         (aarch64_parse_extension): Move to here.
10597         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
10598         rework.
10599         (aarch64_rewrite_selected_cpu): Update for above change.
10600         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
10601         are handled, such that the single explicit value enabled by an
10602         extension is kept seperate from the implicit values it also enables.
10603         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
10604         to here.
10605         (aarch64_parse_extension): New.
10606         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
10607         here to config/aarch64/aarch64-protos.h.
10608         (aarch64_parse_extension): Move from here to
10609         common/config/aarch64/aarch64-common.c.
10610         (aarch64_option_print): Update.
10611         (aarch64_declare_function_name): Likewise.
10612         (aarch64_start_file): Likewise.
10613         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
10614         the canonical flag for extensions.
10615         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
10616         flags.
10618 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10620         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
10621         AARCH64_FL_CRC.
10623 2016-04-09  Tom de Vries  <tom@codesourcery.com>
10625         PR tree-optimization/68953
10626         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
10627         first to last subscript.
10629 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
10631         PR tree-optimization/70586
10632         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
10633         for any calls.
10635 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10637         PR lto/70289
10638         PR ipa/70348
10639         PR tree-optimization/70373
10640         PR middle-end/70533
10641         PR middle-end/70534
10642         PR middle-end/70535
10643         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
10644         clauses for acc parallel reductions as necessary.  Error on those
10645         that are private.
10646         * omp-low.c (scan_sharing_clauses): Don't install variables which
10647         are used in acc parallel reductions.
10648         (lower_rec_input_clauses): Remove dead code.
10649         (lower_oacc_reductions): Add support for reference reductions.
10650         (lower_reduction_clauses): Remove dead code.
10651         (lower_omp_target): Don't remap variables appearing in acc parallel
10652         reductions.
10653         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
10655 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
10657         PR middle-end/70593
10658         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
10659         with multiple SSA_NAME defs, force the outputs other than first
10660         to be live before calling live_track_process_def on each output.
10662         PR rtl-optimization/70574
10663         * fwprop.c (forward_propagate_and_simplify): Don't add
10664         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
10665         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
10666         paradoxical subregs within *loc.
10668 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
10670         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
10671         -ftree-parallelize-loops={0,1}.
10672         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10673         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10674         * config/ia64/hpux.h (LIB_SPEC): Likewise.
10675         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10676         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10678 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
10680         PR sanitizer/70541
10681         * asan.c (instrument_derefs): If we get unknown location, extract it
10682         with EXPR_LOCATION.
10683         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
10685 2016-04-08  Tom de Vries  <tom@codesourcery.com>
10687         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
10688         implicit firstprivate clause.
10690 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10692         PR target/70566
10693         * config/arm/thumb2.md (tst + branch-> lsls + branch
10694         peephole below *orsi_not_shiftsi_si): Require that condition
10695         register is dead after the peephole.
10696         (second peephole after the above): Likewise.
10698 2016-04-08  Alan Modra  <amodra@gmail.com>
10700         PR target/70117
10701         * builtins.c (fold_builtin_classify): For IBM extended precision,
10702         look at just the high-order double to test for NaN.
10703         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
10704         test just the high double for Inf but both doubles for subnormal
10705         limit.
10707 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
10709         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
10710         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
10711         node->simdclone->mask_mode != VOIDmode masks.
10712         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
10713         earlier, use it instead of node->simdclone.
10714         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10715         Set clonei->mask_mode.
10717 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10719         PR c/70436
10720         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
10721         Pass it through to cp_parser_already_scoped_statement.
10722         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
10723         it through to cp_parser_statement.
10724         (cp_parser_statement): Pass IF_P through to
10725         cp_parser_iteration_statement.
10726         (cp_parser_pragma): Adjust call to
10727         cp_parser_iteration_statement.
10729 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10731         PR c/70436
10732         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
10733         resolve a future -Wparentheses warning.
10734         * omp-low.c (scan_sharing_clauses): Likewise.
10735         * tree-parloops.c (eliminate_local_variables): Likewise.
10737 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
10739         PR rtl-optimization/70398
10740         * lra-constraints.c (process_address_1): Check zero scale and code
10741         for reloading with zero scale.
10743 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
10745         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
10746         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
10748 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
10750         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10751         Add support for AVX512F clones, include them by default for
10752         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
10753         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
10754         up to 128.
10756         PR middle-end/70550
10757         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
10758         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
10759         firstprivate clauses.
10760         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
10761         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
10762         (lower_omp_target): Set TREE_NO_WARNING for
10763         non-addressable possibly uninitialized vars which are copied into
10764         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
10766 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
10768         * config/pa/predicates.md (integer_store_memory_operand): Accept
10769         REG+D operands with a large offset when reload_in_progress is true.
10770         (floating_point_store_memory_operand): Likewise.
10772 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10774         PR c++/70336
10775         * match.pd (nested int casts): Limit to GIMPLE.
10777 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
10779         PR ipa/66223
10780         * ipa-devirt.c (maybe_record_node): Fix comment; use
10781         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
10783 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10785         PR rtl-optimization/70542
10786         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
10787         if there are any uses other than insn or debug insns.
10789 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
10790             Jakub Jelinek  <jakub@redhat.com>
10792         PR tree-optimization/70509
10793         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
10794         Shift HOST_WIDE_INT_1U instead of 1.
10796 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
10798         PR tree-optimization/70509
10799         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
10800         of the vector base type for index.
10802 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
10804         PR target/70510
10805         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
10807 2016-04-05  Richard Biener  <rguenther@suse.de>
10809         PR tree-optimization/70526
10810         * tree-sra.c (build_ref_for_offset): Use prev_base to
10811         extract the alias pointer type.
10813 2016-04-05  Richard Biener  <rguenther@suse.de>
10815         * dse.c (struct store_info): Remove alias_set member.
10816         (struct read_info_type): Likewise.
10817         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
10818         spill_deleted, clear_alias_set_lookup): Remove.
10819         (get_group_info): Remove dead base == NULL_RTX case.
10820         (dse_step0): Remove initialization of removed variables.
10821         (delete_dead_store_insn): Reomve alias set dumping.
10822         (free_read_records): Remove alias_set handling.
10823         (canon_address): Remove alias_set_out parameter.
10824         (record_store): Remove spill_alias_set, it's always zero.
10825         (check_mem_read_rtx): Likewise.
10826         (dse_step2): Rename from ...
10827         (dse_step2_nospill): ... this.  Adjust.
10828         (scan_stores): Rename from ...
10829         (scan_stores_nospill): ... this.
10830         (scan_reads): Rename from ...
10831         (scan_reads_nospill): ... this.
10832         (scan_stores_spill, scan_reads_spill): Remove.
10833         (dse_step3_scan): Remove for_spills argument which is always false.
10834         (dse_step3): Likewise.
10835         (dse_step5): Rename from ...
10836         (dse_step5_nospill): ... this.  Remove alias_set handling.
10837         (rest_of_handle_dse): Adjust.
10839 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10841         PR target/70525
10842         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
10843         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
10844         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
10845         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
10847 2016-04-05  Richard Biener  <rguenther@suse.de>
10849         PR middle-end/70499
10850         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
10851         non-register type temporaries into SSA.
10853 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
10855         PR ipa/66223
10856         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
10857         calls when sanitizing.
10858         (possible_polymorphic_call_target_p): Fix formatting.
10860 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10861             Jakub Jelinek <jakub@redhat.com>
10863         PR middle-end/70457
10864         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
10865         to ensure a call statement is compatible with a built-in's
10866         prototype.
10867         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
10868         Likewise.
10870 2016-04-04  Richard Biener  <rguenther@suse.de>
10872         PR rtl-optimization/70484
10873         * rtl.h (canon_output_dependence): Declare.
10874         * alias.c (canon_output_dependence): New function.
10875         * dse.c (record_store): Use canon_output_dependence rather
10876         than canon_true_dependence.
10878 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10880         PR ipa/68881
10881         * cgraph.h (symtab_node::copy_visibility_from): New function.
10882         * symtab.c (symtab_node::copy_visibility_from): New function.
10883         * ipa-visibility.c (optimize_weakref): New function.
10884         (function_and_variable_visibility): Use it.
10886 2016-04-04  Martin Liska  <mliska@suse.cz>
10888         PR hsa/70402
10889         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
10890         value that is really in range handled by SBR instruction.
10891         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
10892         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
10893         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
10895 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
10897         PR target/70416
10898         PR target/67391
10899         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
10900         set, but not for SP_REG operands.
10902 2016-04-02  Martin Sebor  <msebor@redhat.com>
10904         PR c++/67376
10905         * fold-const.c (maybe_nonzero_address): New function.
10906         (fold_comparison): Call it.  Fold equality and relational
10907         expressions involving null pointers.
10908         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
10910 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
10912         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
10913         the "Y" constraint (scalar FP 0.0 immediate).
10915         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
10916         Add the "const_double" to the list of operand constraints.
10918 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
10920         PR rtl-optimization/70467
10921         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
10922         If low word of the last operand is 0, just emit addition/subtraction
10923         for the high word.
10925 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10927         PR target/70404
10928         * config/s390/s390.c (s390_expand_insv): Check for everything
10929         constant instead of just VOIDmode stuff.
10931 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10933         PR target/70496
10934         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
10936 2016-04-01  Nathan Sidwell  <nathan@acm.org>
10938         * tree.def (TRY_CATCH_EXPR): Correct documentation.
10940 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
10942         PR rtl-optimization/70461
10943         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
10944         is necessary.
10946 2016-03-31  Martin Liska  <mliska@suse.cz>
10948         PR hsa/70399
10949         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
10950         a tree value or an immediate integer value to a buffer
10951         that is eventually copied to a BRIG section.
10952         (emit_immediate_operand): Call the function here.
10953         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
10954         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
10955         of class' fields that are removed.
10956         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
10957         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
10958         m_brig_repr_size fields.
10960 2016-03-31  Martin Liska  <mliska@suse.cz>
10962         PR hsa/70391
10963         * hsa-gen.c (hsa_function_representation::update_dominance): New
10964         function.
10965         (convert_addr_to_flat_segment): Likewise.
10966         (gen_hsa_memory_set): New alignment argument.
10967         (gen_hsa_ctor_assignment): Likewise.
10968         (gen_hsa_insns_for_single_assignment): Provide alignment
10969         to gen_hsa_ctor_assignment.
10970         (gen_hsa_insns_for_direct_call): Add new argument.
10971         (expand_lhs_of_string_op): New function.
10972         (expand_string_operation_builtin): Likewise.
10973         (expand_memory_copy): New function.
10974         (expand_memory_set): New function.
10975         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
10976         (convert_switch_statements): Change signature.
10977         (generate_hsa): Use a return value of the function.
10978         (pass_gen_hsail::execute): Do not call
10979         convert_switch_statements here.
10980         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
10981         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
10982         (hsa_function_representation::update_dominance): New function.
10984 2016-03-31  Martin Liska  <mliska@suse.cz>
10986         PR hsa/70391
10987         * hsa-brig.c (emit_directive_variable): Emit alignment
10988         according to hsa_symbol::m_align.
10989         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
10990         (dump_hsa_symbol): Dump alignment of HSA symbols.
10991         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
10992         (gen_hsa_addr_with_align): New function.
10993         (hsa_bitmemref_alignment): Use newly added function.
10994         (gen_hsa_insns_for_load): Likewise.
10995         (gen_hsa_insns_for_store): Likewise.
10996         (gen_hsa_memory_copy): New argument added.
10997         (gen_hsa_insns_for_single_assignment): Respect
10998         alignment for assignments processed via gen_hsa_memory_copy.
10999         (gen_hsa_insns_for_direct_call): Likewise.
11000         (gen_hsa_insns_for_return): Likewise.
11001         (gen_function_def_parameters): Set default alignment.
11002         * hsa.c (hsa_object_alignment): New function.
11003         (hsa_byte_alignment): Pasted function.
11004         * hsa.h (hsa_symbol::m_align): New field.
11006 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11008         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11009         scratch field for goto case.
11011 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
11013         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11015 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
11017         PR target/70442
11018         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11019         (scalar_chain::convert_insn): Call convert_op for reg
11020         moves to handle undefined registers.
11022 2016-03-31  Nathan Sidwell  <nathan@acm.org>
11024         PR c++/70393
11025         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11026         Assert we don't want to move backwards.
11028 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11030         PR target/70453
11031         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11033 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
11035         PR rtl-optimization/70460
11036         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11037         with operand from REG_LABEL_OPERAND, instead substitute
11038         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11039         Don't do anything for REG_NON_LOCAL_GOTO jumps.
11041 2016-03-31  Martin Liska  <mliska@suse.cz>
11043         * passes.c (execute_one_pass): Do not call
11044         todo_after for a discarded function.
11046 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11048         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11049         (no_cost, infinite_cost): Initialize the new field.
11050         (get_computation_cost_at): Record setup cost.
11051         (determine_use_iv_cost_address): Skip cost computation for sub
11052         uses if we can estimate it without losing accuracy.
11054 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11056         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11057         estimates here.
11058         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11059         max_loop_iterations_int.
11060         (tree_unswitch_outer_loop): Likewise.
11061         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11062         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11064 2016-03-30  Richard Biener  <rguenther@suse.de>
11066         PR middle-end/70450
11067         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11069 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
11071         PR target/70421
11072         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11073         in gen_blendm expander.
11075 2016-03-30  Nick Clifton  <nickc@redhat.com>
11077         PR target/62254
11078         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11079         case where we are already provided with an SImode SUBREG.
11081 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11083         PR target/70439
11084         * config/i386/i386.c (ix86_expand_epilogue): Properly check
11085         conflict between DRAP register and __builtin_eh_return.
11087 2016-03-30  Michael Matz  <matz@suse.de>
11088             Richard Biener  <rguenther@suse.de>
11090         PR ipa/12392
11091         * ipa-polymorphic-call.c (struct type_change_info): Change
11092         speculative to an unsigned allowing to limit the work we do.
11093         (csftc_abort_walking_p): New inline function..
11094         (check_stmt_for_type_change): Limit the number of may-defs
11095         skipped for speculative devirtualization to
11096         max-speculative-devirt-maydefs.
11097         * params.def (max-speculative-devirt-maydefs): New param.
11098         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11100 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
11102         PR target/63890
11103         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11104         and TARGET_MACHO.
11106 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
11108         PR tree-optimization/59124
11109         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
11110         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
11112 2016-03-29  Jeff Law  <law@redhat.com>
11114         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
11116 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11118         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
11119         to HOST_WIDE_INT.
11121 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11123         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
11124         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
11125         gcrt0.o if linking dynamically.
11127 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11129         PR ipa/70283
11130         * ipa-devirt.c (methods_equal_p): New function.
11131         (compare_virtual_tables): Use it.
11132         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
11133         * cgraphclones.c (clone_function_name_1): Use
11134         symbol_table::symbol_suffix_separator.
11135         * coverage.c (build_var): Likewise.
11136         * symtab.c (symbol_table::symbol_suffix_separator): New.
11138 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
11140         PR rtl-optimization/70429
11141         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
11142         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
11143         mode != result_mode.
11145         PR c++/70353
11146         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
11148         PR tree-optimization/70405
11149         * ssa-iterators.h (num_imm_uses): Add missing braces.
11151 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11153         PR rtl-optimization/68695
11154         * ira-color.c (allocno_copy_cost_saving): New.
11155         (improve_allocation): Use it.
11157 2016-03-29  Richard Henderson  <rth@redhat.com>
11159         PR middle-end/70355
11160         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11162 2016-03-29  Richard Biener  <rguenther@suse.de>
11164         PR middle-end/70424
11165         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11166         use alignment returned by get_pointer_alignment_1 if it is
11167         bigger than BITS_PER_UNIT.
11168         * builtins.c (get_pointer_alignment_1): Do not return true
11169         for alignment extracted from SSA info.
11171 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11173         * config/ft32/ft32.opt (mnodiv): New.
11174         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11175         * doc/invoke.texi (FT32 Options -mnodiv): New.
11177 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11179         PR target/70406
11180         * config/i386/i386.md (define_split, andn): Fix modes.
11182 2016-03-26  Richard Biener  <rguenther@suse.de>
11183             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11185         PR ipa/70366
11186         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11187         instead of
11188         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11189         as 2nd argument to cl_optimization_restore().
11191 2016-03-25  Richard Henderson  <rth@redhat.com>
11193         PR target/70120
11194         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11195         * config/aarch64/aarch64-protos.h: Declare it.
11196         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11198 2016-03-25  Alan Modra  <amodra@gmail.com>
11200         PR target/70052
11201         * config/rs6000/constraints.md (j): Simplify.
11202         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11203         decimal float 0.D.
11204         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11205         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11206          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11207         in all constraint alternatives.
11208         (movtd_64bit_nodm): Delete "j" constraint alternative.
11210 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11212         * tree-ssa-propagate.c: Enhance docs for
11213         SSA_PROP_NOT_INTERESTING.
11215 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11217         * doc/extend.texi: Fix typo in documentation to pure attribute.
11219 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11221         PR target/70319
11222         * config/pa/pa.md (bswapdi2): Use a scratch register.
11224 2016-03-24  Richard Henderson  <rth@redhat.com>
11226         PR middle-end/69845
11227         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11228         overflow.
11230 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11232         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11233         using ix86_expand_binary_operator instead of gen_andsi3.
11235 2016-03-24  Richard Biener  <rguenther@suse.de>
11237         PR tree-optimization/70396
11238         * tree-vect-stmts.c (vectorizable_comparison): Use
11239         get_vectype_for_scalar_type.
11241 2016-03-24  Richard Biener  <rguenther@suse.de>
11243         PR middle-end/70370
11244         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11245         with register bases.
11247 2016-03-24  Richard Biener  <rguenther@suse.de>
11249         PR tree-optimization/70372
11250         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11251         build_all_ones_cst to also handle vector types correctly.
11253 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11255         PR target/70381
11256         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11257         -mfloat128 here.
11259 2016-03-23  Marek Polacek  <polacek@redhat.com>
11261         PR c++/69884
11262         * doc/invoke.texi: Document -Wignored-attributes.
11264 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11266         PR tree-optimization/69042
11267         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11268         parameter from 30 to 40.
11270 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11272         PR tree-optimization/69042
11273         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11274         for use with constant offset stripped in base.
11276 2016-03-23  Richard Biener  <rguenther@suse.de>
11278         PR middle-end/70251
11279         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11280         mode compatibility check.
11281         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11283 2016-03-23  Jeff Law  <law@redhat.com>
11285         PR tree-optimization/64058
11286         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11287         CONFLICT_COUNT.
11288         (struct ssa_conflicts): Move up earlier in the file.
11289         (conflicts_, var_map_): New static variables.
11290         (initialize_conflict_count): New function to initialize the
11291         CONFLICT_COUNT field for each conflict pair.
11292         (compare_pairs): Lazily initialize the conflict count and use it
11293         as the first tie-breaker.
11294         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
11295         and wipe conflicts_ and map_ around the call to qsort.  Remove
11296         special case for 2 coalesce pairs.
11297         * bitmap.c (bitmap_count_unique_bits): New function.
11298         (bitmap_count_bits_in_word): New function, extracted from
11299         bitmap_count_bits.
11300         (bitmap_count_bits): Use bitmap_count_bits_in_word.
11301         * bitmap.h (bitmap_count_unique_bits): Declare it.
11303 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
11305         PR target/69917
11306         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
11307         transparent alias chain for decl assembler name.
11308         * config/sol2.c (solaris_assemble_visibility): Likewise.
11310 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11312         * config/arm/arm1020e.md (1020call_op): Reduce reservation
11313         duration.
11314         (v10_fdivs): Likewise.
11315         (v10_fdivd): Likewise.
11317 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11319         PR driver/70132
11320         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
11321         to not call fclose twice on file.
11323 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11325         PR tree-optimization/70354
11326         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11327         oprnd0 is wider than oprnd1 and there is a cast from the wider
11328         type to oprnd1, mask it with the mask of the narrower type.
11330         PR target/70321
11331         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
11332         Optimize TARGET_STV splitters, if high or low word of last argument
11333         is 0 or -1.
11335 2016-03-22  Jeff Law  <law@redhat.com>
11337         PR target/70232
11338         tree-ssa-threadbackward.c
11339         (fsm_find_control_statement_thread_paths): Correctly distinguish
11340         between old style jump threads vs FSM jump threads.
11342 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11344         PR target/70302
11345         * config/i386/i386.c (scalar_chain::convert_op): Support
11346         uninitialized register usage case.
11348 2016-03-22  Richard Biener  <rguenther@suse.de>
11350         PR middle-end/70251
11351         * genmatch.c (gen_transform): Adjust last parameter to a three-state
11352         int...
11353         (capture::gen_transform): ... to change behavior when substituting
11354         a condition into cond or not-cond expr context.
11355         (dt_simplify::gen_1): Adjust.
11356         * gimple-match-head.c: Include gimplify.h for unshare_expr.
11357         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
11358         last change and instead change to
11359         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
11360         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11362 2016-03-22  Anthony Green  <green@moxielogic.com>
11364         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
11365         issue for moxiebox targets.
11366         (CC1PLUS_SPEC): Ditto.
11368 2016-03-22  Richard Biener  <rguenther@suse.de>
11370         PR middle-end/70333
11371         * fold-const.c (extract_muldiv_1): Properly perform multiplication
11372         in the wide type.
11374 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11376         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
11378 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11380         PR target/70325
11381         * config/i386/i386.c (def_builtin): Handle
11382         OPTION_MASK_ISA_AVX512VL to be and-ed with other
11383         bits.
11384         (const struct builtin_description bdesc_special_args[]):
11385         Remove duplicate ISA bits.
11387 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
11389         PR target/70329
11390         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
11391         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
11392         in a way that works also for AVX512BW.
11394         PR target/70300
11395         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
11396         instead of source if operands[1] is xmm16 and above and
11397         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
11398         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
11400         PR c++/70295
11401         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
11402         on assign if (*from_p) is a comparison, set it to
11403         TREE_NO_WARNING (*from_p).
11405 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11407         PR middle-end/70326
11408         * lra.c (restore_scratches): Ignore deleted insns.
11410 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
11411             Jakub Jelinek  <jakub@redhat.com>
11413         PR tree-optimization/70317
11414         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
11415         to HONOR_NANS.
11417 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
11419         PR target/70327
11420         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
11421         of ix86_expand_move.
11422         (movoi): Ditto.
11423         (movti): Use general_operand for operand 1 predicate.
11425 2016-03-21  Martin Liska  <mliska@suse.cz>
11427         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
11428         insns.
11429         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
11431 2016-03-21  Martin Liska  <mliska@suse.cz>
11433         PR ipa/70306
11434         * ipa-icf.c (sem_function::parse): Skip static
11435         constructors and destructors.
11437 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11439         PR target/70296
11440         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
11441         function-like macro, peek following token(s) if it is followed
11442         by CPP_OPEN_PAREN token with optional padding in between, and
11443         if not, don't treat it like a macro.
11445 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11446             Alexander Monakov  <amonakov@ispras.ru>
11448         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
11449         for the stabs debug format.
11451 2016-03-21  Richard Biener  <rguenther@suse.de>
11453         PR tree-optimization/70310
11454         * tree-vect-generic.c (expand_vector_condition): Fold the built
11455         condition.
11457 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11459         PR target/70293
11460         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
11461         Block third alternative for AVX-512VL target,
11463 2016-03-21  Martin Liska  <mliska@suse.cz>
11465         PR hsa/70234
11466         * hsa-brig.c (emit_function_directives): Mark unemitted
11467         global variables for emission.
11468         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
11469         (get_symbol_for_decl): Likewise.
11470         * hsa.h (struct hsa_symbol): New flag.
11472 2016-03-21  Richard Biener  <rguenther@suse.de>
11474         PR tree-optimization/70288
11475         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
11476         we do not estimate unsimplified all-constant conditionals or
11477         switches as optimized away.
11479 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
11481         PR rtl-optimization/69102
11482         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
11483         when we have a readonly dependency context.
11485 2016-03-18  Jeff Law  <law@redhat.com>
11487         PR rtl-optimization/70263
11488         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
11489         (update_equiv_regs): When trying to move a store to after the insn
11490         that sets the source of the store, make sure the store occurs after
11491         the insn that sets the source of the store.  When successful note
11492         the REG_EQUIV note created in the dump file.
11494 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
11495             Bernd Schmidt  <bschmidt@redhat.com>
11497         * doc/extend.texi: Document more potential problems with basic asms.
11499 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
11501         PR rtl-optimization/70278
11502         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
11503         VOIDmode.
11505 2016-03-18  Jason Merrill  <jason@redhat.com>
11507         * calls.c (load_register_parameters): Fix zero size sibcall logic.
11509 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11511         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
11512         values to 128b regs.
11514 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11516         PR tree-optimization/70252
11517         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
11518         boolean vector has a proper number of elements.
11519         (supportable_narrowing_operation): Likewise.
11521 2016-03-18  Tom de Vries  <tom@codesourcery.com>
11523         PR ipa/70269
11524         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
11526 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
11528         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
11529         instead of replace_rtx for DEBUG_INSNs.
11531 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11533         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
11534         load type reservations.
11536 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
11538         PR target/70188
11539         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
11540         define_constraint for "Q" and "T" constraints.
11542 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
11544         Tweak the pipeline model for Exynos M1
11546         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
11547         model.
11549 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
11551         PR c/70264
11552         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
11553         where one or both locations aren't within a line_map.
11555 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11557         PR driver/70192
11558         * opts.c (finish_options): Don't set flag_pie to the default if
11559         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
11560         if it is -1.
11562 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
11564         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
11565         true as ALL_REGS argument to replace_rtx.
11567 2016-03-17  Richard Biener  <rguenther@suse.de>
11569         PR debug/70271
11570         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
11571         last.
11573 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11575         PR target/70245
11576         * rtl.h (replace_rtx): Add ALL_REGS argument.
11577         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
11578         equality and assert mode is the same, instead of just rtx pointer
11579         equality.
11580         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
11581         true as ALL_REGS argument to replace_rtx.
11583 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
11585         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
11586         for boolean vector with vector mode only.
11587         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11589 2016-03-17  Nick Clifton  <nickc@redhat.com>
11591         PR target/70162
11592         * config/rx/rx.c (rx_print_integer): Print negative constants in
11593         decimal.
11595 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11597         PR target/70261
11598         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
11600 2016-03-16  Richard Henderson  <rth@redhat.com>
11601             Richard Biener  <rguenth@suse.de>
11603         PR middle-end/70240
11604         PR middle-end/68215
11605         PR tree-opt/68714
11606         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
11607         first operand as is_gimple_condexpr.
11609         PR middle-end/70240
11610         PR middle-end/68215
11611         Revert r231575
11612         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
11613         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
11614         Do not gimplify the result.
11615         (do_unop): Adjust call to tree_vec_extract.
11616         (do_binop): Likewise.
11617         (do_compare): Likewise.
11618         (do_plus_minus): Likewise.
11619         (do_negate): Likewise.
11620         (expand_vector_condition): Likewise.
11621         (do_cond): Likewise.
11623 2016-03-16  Richard Henderson  <rth@redhat.com>
11625         PR target/70048
11626         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
11627         (aarch64_classify_address): Use it.
11628         (aarch64_legitimize_address): Force all subexpressions of PLUS
11629         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
11631 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
11632             Richard Biener  <rguenth@suse.de>
11634         PR target/70245
11635         * rtlanal.c (replace_rtx): For REG, if from is a REG,
11636         return to even if only REGNO is equal, and assert
11637         mode is the same.
11639 2016-03-11  Jeff Law  <law@redhat.com>
11641         PR rtl-optimization/70224
11642         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
11644 2016-03-16  Richard Henderson  <rth@redhat.com>
11646         PR middle-end/70199
11647         * function.h (struct function): Add has_forced_label_in_static.
11648         * gimplify.c (force_labels_r): Set it.
11649         * lto-streamer-in.c (input_struct_function_base): Read it.
11650         * lto-streamer-out.c (output_struct_function_base): Write it.
11651         * tree-inline.c (has_label_address_in_static_1): Remove.
11652         (copy_forbidden): Remove fndecl parameter; test
11653         has_forced_label_in_static.
11654         (inline_forbidden_p): Update call to copy_forbidden.
11655         (tree_versionable_function_p): Likewise.
11656         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
11657         (chkp_versioning): Likewise.
11658         * tree-inline.h (copy_forbidden): Update decl.
11660 2016-03-16  Marek Polacek  <polacek@redhat.com>
11662         PR c/70093
11663         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
11664         function being thunked if the result type doesn't have fixed size.
11665         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
11666         doesn't have fixed size.
11668 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
11670         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
11671         reporting malformed loop nest.
11673 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11675         PR lto/70187
11676         * ipa-devirt.c (possible_polymorphic_call_targets): Move
11677         nodes.length () == 1 test to before first nodes[0] access.
11679 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11681         PR tree-optimization/68715
11682         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
11683         single_pred_p test.
11685 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11687         PR tree-optimization/68809
11688         * graphite-scop-detection.c (same_close_phi_node): Test if result types
11689         are the same.
11691 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
11692             Sandra Loosemore  <sandra@codesourcery.com>
11694         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
11695         on leaf attribute. Mention ELF interposition problems.
11697 2016-03-16  Alan Modra  <amodra@gmail.com>
11699         PR rtl-optimization/69195
11700         PR rtl-optimization/47992
11701         * ira.c (indirect_jump_optimize): Ignore artificial defs.
11702         Add comments.
11704 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11706         PR bootstrap/69513
11707         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
11709 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11711         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
11713 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
11715         PR rtl-optimization/70222
11716         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
11717         optimization if mode is different from result_mode, queue up masking
11718         of the result in outer_op.  Formatting fix.
11720         PR middle-end/70239
11721         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
11722         of safe_grow.
11724 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11726         PR rtl-optimization/69032
11727         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
11728         looping backwards over basic block insns.
11730 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11732         PR target/66660
11733         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
11734         to non-speculative when propagating trap bits.
11736 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11738         PR rtl-optimization/63384
11739         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
11740         DEBUG_INSN_P insns.
11742 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11744         PR target/64411
11745         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
11746         factored out from ...
11747         (sched_analyze_insn): ... here.
11748         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
11749         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
11750         get_implicit_reg_pending_clobbers in it.
11751         (setup_id_reg_sets): Use setup_id_implicit_regs.
11752         (deps_init_id): Ditto.
11754 2016-03-15  Tom de Vries  <tom@codesourcery.com>
11756         PR ipa/70161
11757         * cgraph.c (cgraph_node::get_body): Save, reset and restore
11758         dump_file_name.
11759         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
11760         execute_function_dump.
11761         (execute_one_pass): Don't dump function if it will be dumped after ipa
11762         transform.
11764 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11766         * genrecog.c (match_pattern_2): If pred is NULL don't call
11767         safe_predicate_mode on it.
11769 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
11771         PR middle-end/70219
11772         * lra-constraints.c (delete_move_and_clobber): Change assertion
11773         to also allow dregno == 0.
11775 2016-03-14  Richard Henderson  <rth@redhat.com>
11777         PR tree-opt/68714
11778         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
11779         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
11780         (reassociate_bb): Use optimize_vec_cond_expr; avoid
11781         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
11782         on vectors.
11784 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11786         PR target/70083
11787         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
11788         regs.
11789         (lra_create_live_ranges_1): initialize hard register biggest_mode to
11790         VOIDmode.
11791         * lra-constraints.c (split_reg): For hard regs, try to find the
11792         biggest single-register mode used in the function.
11794 2016-03-14  Richard Biener  <rguenther@suse.de>
11796         PR tree-optimization/56365
11797         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
11798         constants to compare against.
11800 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
11802         PR target/70098
11803         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11804         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
11805         (define_split for the GPR case): Use int_reg_operand instead of
11806         gpc_reg_operand for the output.
11808 2016-03-14  Tom de Vries  <tom@codesourcery.com>
11810         PR tree-optimization/70045
11811         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
11812         create_empty_if_region_on_edge argument.
11814 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
11816         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
11817         (STACK_CHECK_PROTECT): Likewise.
11818         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11819         (STACK_CHECK_PROTECT): Likewise.
11820         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11821         (STACK_CHECK_PROTECT): Likewise.
11822         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
11823         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11824         (STACK_CHECK_PROTECT): Likewise.
11826 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
11828         PR rtl-optimization/69307
11829         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
11830         registers in modes that span more than one register.
11832 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
11834         PR target/69614
11835         * lra-constraints.c (delete_move_and_clobber): New.
11836         (remove_inheritance_pseudos): Use it.
11838 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11840         PR ada/70017
11841         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
11842         the libcall is LCT_THROW.
11843         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
11844         for the checking routine.
11846 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11848         PR target/70131
11849         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
11850         optimization if we have direct move.
11851         (roundu32<mode>2_fprs): Likewise.
11853 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
11855         PR target/70123
11856         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
11857         be rematerialized.
11858         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
11859         Arguments swapped.  All callers changed.  Take reg_renumber into
11860         account, and Calculate and compare register ranges for hard regs.
11862 2016-03-11  Jeff Law  <law@redhat.com>
11864         PR tree-optimization/70190
11865         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11866         Handle cases where we can not extract the taken edge, even though we
11867         found a constant value.
11869         PR tree-optimization/64058
11870         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
11871         (num_coalesce_pairs): Move up earlier in file.
11872         (find_coalesce_pair): Initialize the INDEX field for each pair
11873         discovered.
11874         (compare_pairs): No longer sort on the elements in each pair.
11875         Instead break ties with the index of the coalesce pair.
11877 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11879         PR target/70002
11880         * config/aarch64/aarch64-protos.h
11881         (aarch64_save_restore_target_globals): New prototype.
11882         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
11883         Call the above when popping pragma.
11884         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
11885         New function.
11886         (aarch64_set_current_function): Rewrite using the above.
11888 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11890         PR tree-optimization/70177
11891         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
11892         (extract_ops_from_tree): ... this.  In the 2 argument
11893         overload remove _1 suffix.
11894         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
11895         (extract_ops_from_tree): ... this.
11896         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
11897         Adjust callers.
11898         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
11899         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
11900         extract_ops_from_tree instead of 2 operand one.
11902 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
11904         PR tree-optimization/70013
11905         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
11906         for constant-pool entries.
11908 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11910         PR rtl-optimization/70174
11911         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
11912         followed by gen_lowpart on force_reg instead of just gen_lowpart.
11914         PR tree-optimization/70169
11915         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
11916         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
11917         for unknown codes.
11919 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11920             Jakub Jelinek  <jakub@redhat.com>
11922         PR target/70160
11923         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
11924         of uninitialized values.
11926 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11928         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
11929         define_expand.
11930         ("*trunctddd2"): New pattern definition.
11931         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
11932         TD->DD truncation.
11934 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11936         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
11937         definitions for BFP and DFP rounding modes.
11938         ("fixuns_truncdddi2", "fixuns_trunctddi2")
11939         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
11940         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
11941         ("fix_trunctf<mode>2"): Use the new constants instead of magic
11942         numbers.
11944 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11946         * config/s390/constraints.md: Adjust comment.
11947         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
11948         s390_decompose_addrstyle_without_index.
11949         * config/s390/predicates.md (shift_count_or_setmem_operand):
11950         Rename to setmem_operand.
11951         * config/s390/s390-protos.h
11952         (s390_decompose_shift_count): Rename to
11953         s390_decompose_addrstyle_without_index.
11954         * config/s390/s390.c (s390_decompose_shift_count)
11955         (s390_mem_constraint, print_shift_count_operand)
11956         (print_operand_address, print_operand): Rename
11957         s390_decompose_shift_count to
11958         s390_decompose_addrstyle_without_index and rename
11959         print_shift_count_operand to print_addrstyle_operand troughout the
11960         file.
11961         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
11962         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
11963         Rename shift_count_or_setmem_operand to setmem_operand.
11964         * config/s390/vx-builtins.md ("vec_insert<mode>")
11965         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
11966         nonmemory_operand.
11968 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11970         PR target/70168
11971         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11972         Handle overlapping retval and newval.
11974 2016-03-10  Nick Clifton  <nickc@redhat.com>
11976         PR target/7044
11977         * config/aarch64/aarch64.c
11978         (aarch64_override_options_after_change_1): When forcing
11979         flag_omit_frame_pointer to be true, use a special value that can
11980         be detected if this function is called again, thus preventing
11981         flag_omit_leaf_frame_pointer from being forced to be false.
11983 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11985         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11986         Set x_flag_omit_leaf_frame_pointer when handling
11987         -momit-leaf-frame-pointer.
11989 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11991         PR lto/69589
11992         * cgraph.c (cgraph_node::dump): Dump split_part and
11993         indirect_call_target.
11994         * cgraph.h (cgraph_node): Add indirect_call_target flag.
11995         * ipa.c (has_addr_references_p): Cleanup.
11996         (is_indirect_call_target_p): New.
11997         (walk_polymorphic_call_targets): Do not mark virtuals that may be
11998         called indirectly as local.
11999         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12001 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12003         PR ipa/69630
12004         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12005         on cxa_pure_virtual.
12007 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12009         PR lto/69589
12010         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12012 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12014         PR lto/69589
12015         * tree.c (need_assembler_name_p): Only record main variant type names.
12017 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12019         PR target/70113.
12020         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12021         Always define to 0 or 1.
12022         (TARGET_FIX_ERR_A53_843419): New macro.
12023         * config/aarch64/aarch64-elf-raw.h
12024         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12025         * config/aarch64/aarch64-linux.h: Likewise.
12026         * config/aarch64/aarch64.c
12027         (aarch64_override_options_after_change_1): Do not default
12028         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12029         843419 is on.
12030         (aarch64_attributes): Handle fix-cortex-a53-843419.
12031         (aarch64_can_inline_p): Likewise.
12032         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12034 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
12035         Jakub Jelinek <jakub@redhat.com>
12037         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12038         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12039         DECL_COMMONS if flag_unconstrained_commons is set.
12040         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12041         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12042         (funconstrained-commons): Document.
12044 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12046         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12047         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12049 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
12051         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12052         has a proper number of elements.
12054 2016-03-10  Alan Modra  <amodra@gmail.com>
12056         PR rtl-optimization/69195
12057         PR rtl-optimization/47992
12058         * ira.c (recorded_label_ref): Delete.
12059         (update_equiv_regs): Return void.
12060         (indirect_jump_optimize): New function.
12061         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12062         before regstat_compute_ri.  Don't rebuild_jump_labels here.
12063         Delete update_regstat.
12065 2016-03-10  Richard Biener  <rguenther@suse.de>
12067         PR tree-optimization/70128
12068         * tree-ssa-structalias.c (set_uids_in_ptset): Set
12069         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12071 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12073         PR tree-optimization/70152
12074         * tree-sra.c (replace_removed_params_ssa_names): Copy over
12075         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12077         PR target/70086
12078         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12079         instead of gen_sse2_loadlpd.
12080         * config/i386/sse.md (*vec_concatv2df): Rename to...
12081         (vec_concatv2df): ... this.
12083         PR tree-optimization/70127
12084         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12086 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12088         PR c/68473
12089         PR c++/70105
12090         * diagnostic-show-locus.c (compatible_locations_p): New function.
12091         (layout::layout): Sanitize ranges using compatible_locations_p.
12093 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12095         PR c/68473
12096         PR c++/70105
12097         * diagnostic-show-locus.c (layout_range::layout_range): Replace
12098         location_range param with three const expanded_locations * and a
12099         bool.
12100         (layout::layout): Replace call to
12101         rich_location::lazily_expand_location with get_expanded_location.
12102         Extract the range and perform location expansion here, passing
12103         the results to the layout_range ctor.
12104         * diagnostic.c (source_range::debug): Delete.
12105         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12106         of rich_location::get_expanded_location.
12107         * gcc-rich-location.c (get_range_for_expr): Delete.
12108         (gcc_rich_location::add_expr): Reimplement to avoid the
12109         rich_location::add_range overload that took a location_range,
12110         passing a location_t instead.
12112 2016-03-09  Richard Biener  <rguenther@suse.de>
12113         Jakub Jelinek  <jakub@redhat.com>
12115         PR tree-optimization/70138
12116         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12117         Also skip vect_double_reduction_def.
12119 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12121         PR target/70049
12122         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
12123         if the operand is "m".
12125 2016-03-09  Nathan Sidwell  <nathan@acm.org>
12127         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
12129 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12131         * config/i386/i386.c (processor_target_table): Fix cost table
12132         intialization order for znver1.
12134 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12136         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
12137         - becuase -> because.
12138         * ipa-reference.c (ignore_module_statics): Likewise.
12139         * cgraph.c (cgraph_node::get_body): Likewise.
12140         * ipa-inline.c (early_inliner): Likewise.
12141         * ipa-devirt.c (types_same_for_odr): Likewise.
12142         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
12143         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
12145 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12147         * tree-ssa-math-opts.c: Fix typo in comment.
12149 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12151         PR target/70110
12152         * config/i386/i386.c (scalar_chain::make_vector_copies,
12153         scalar_chain::convert_reg): Call end_sequence in between
12154         get_insns and emit_conversion_insns rather than after both
12155         calls.
12157 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12159         PR target/70064
12160         * config/i386/i386.h (machine_function): Add
12161         pc_thunk_call_expanded flag.
12162         (ix86_pc_thunk_call_expanded): New define.
12163         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12164         (*set_got): Rename insn pattern from set_got.
12165         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12166         * config/i386/i386.c (ix86_compute_frame_layout): Use
12167         ix86_pc_thunk_call_expanded to prevent red-zone.
12169 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12171         * hsa.h (hsa_get_ctor_statements): Declare.
12172         (hsa_get_dtor_statements): Likewise.
12173         (hsa_get_kernel_dispatch_type): Likewise.
12174         * hsa.c (hsa_get_ctor_statements): New function.
12175         (hsa_get_dtor_statements): Likewise.
12176         (hsa_get_kernel_dispatch_type): Likewise.
12177         * hsa-brig.c (hsa_cdtor_statements): Removed.
12178         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12179         hsa_get_dtor_statements.
12180         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12181         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12183 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12185         * config/arm/arm-cores.def (cortex-r8): New.
12186         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12187         * config/arm/arm-tune.md: Likewise.
12188         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12190 2016-03-07  Martin Sebor  <msebor@redhat.com>
12192         PR rtl-optimization/19705
12193         * doc/invoke.texi (Options That Control Optimization): Clarify
12194         -fno-branch-count-reg.
12196 2016-02-26  Richard Biener  <rguenther@suse.de>
12197             Jeff Law  <law@redhat.com>
12199         PR tree-optimization/69740
12200         * cfghooks.c (remove_edge): Request loop fixups if we delete
12201         an edge that might turn an irreducible loop into a natural
12202         loop.
12203         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12204         Move after definition of loops_state_clear.
12206 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12208         PR rtl-optimization/69052
12209         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12210         to CONST_WIDE_INT.
12212 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12214         PR tree-optimization/70116
12215         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12216         is_tm_ending stmts and ubsan/asan internal functions.
12217         (find_duplicate): Use it.  Don't test is_tm_ending here.
12219 2016-03-07  Richard Biener  <rguenther@suse.de>
12221         PR tree-optimization/70115
12222         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12223         (propagate_constants_for_unrolling): Use replace_uses_by.
12225 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12227         PR middle-end/69916
12228         * omp-low.c (struct oacc_loop): Add ifns.
12229         (new_oacc_loop_raw): Initialize it.
12230         (finish_oacc_loop): Clear mask & flags if no ifns.
12231         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12232         (oacc_loop_xform_loop): Add ifns arg & adjust.
12233         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12235 2016-03-07  Richard Henderson  <rth@redhat.com>
12237         PR rtl-opt/70061
12238         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12239         (insert_value_copy_on_edge): Likewise.
12241 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12243         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12245 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12247         PR target/62281
12248         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12250 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12252         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12254 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12256         Fix sseimul type attribute.
12257         * config/i386/znver1.md
12258         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12259         znver1_sseimul_avx256_load) : Fix the type attribute.
12260         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12261         pipe usage and latency.
12263 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12265         PR c++/70084
12266         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12267         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12268         to the right type.
12270 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12272         PR c/69973
12273         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12275         PR rtl-optimization/69941
12276         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12277         the reg share its mode.
12279 2016-03-04  Jeff Law  <law@redhat.com>
12281         PR tree-optimization/69196
12282         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12283         If the both SSA_NAMEs are anonymous, then consider them unassociated
12284         and include the PHI in the statement count.
12286 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12288         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12289         construct in oacc routine.  Check for oacc region in oacc routine.
12291 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12293         PR target/70062
12294         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
12295         2016-02-22 changes, instead don't recurse if RECUR is already true.
12296         Don't change *dynamic_check if RECUR.  Adjust recursive caller
12297         to pass true to the new argument.
12298         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
12300         PR target/70059
12301         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12302         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
12303         fixes.
12304         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
12306 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12308         PR rtl-optimization/57676
12309         * lra-assigns.c (lra_assign): Guard test for maximum iterations
12310         with flag_checking.
12312 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
12314         * tree-vect-patterns.c (search_type_for_mask): Handle
12315         comparison of booleans.
12317 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12319         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
12320         Fix @xref usage.
12322         PR debug/69947
12323         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
12324         all other ops that have dw_val_class_die_ref operands,
12325         and DW_OP_GNU_entry_value.
12327 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12329         PR rtl-optimization/69904
12330         * config/arm/arm.c (arm_cannot_copy_insn_p):
12331         Return true for load-exclusive instructions.
12333 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
12335         PR target/70021
12336         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
12337         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
12338         the pattern no matter if it is used just by non-pattern, pattern
12339         or mix thereof.
12340         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
12341         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12342         oprnd1 def_stmt is in pattern, don't look through it.
12344 2016-03-03  Marek Polacek  <polacek@redhat.com>
12346         PR middle-end/70050
12347         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
12349 2016-03-03  Martin Liska  <mliska@suse.cz>
12351         PR tree-optimization/70043
12352         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
12353         previous statement if we see a debug statement.
12355 2016-03-03  Richard Biener  <rguenther@suse.de>
12357         PR tree-optimization/55936
12358         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
12359         parameter and guard unsafe equivalence use.
12360         (vrp_evaluate_conditional_warnv_with_ops): Always use
12361         safe equivalences but not via the quadratic compare_names
12362         helper.
12364 2016-03-03  Michael Collison  <michael.collison@linaro.org>
12366         PR target/70014
12367         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
12368         for operand 1 to s_register_operand. Change predicate for operand
12369         2 to arm_not_immediate_operand.
12371 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
12373         * doc/tm.texi: Regenerated.
12375 2016-03-02  Richard Henderson  <rth@redhat.com>
12377         PR rtl-opt/67145
12378         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
12379         simplification when all args are positive non-fixed registers.
12381 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12383         * target.def (lra_p): Specify that new ports should use LRA.
12385 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12387         PR libgomp/69555
12388         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
12389         gimplify_type_sizes the type they refer to.
12390         (omp_notice_variable): Handle reference vars to VLAs.
12391         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
12392         reference to VLA decls in the second pass instead of first pass.
12394 2016-03-02  Tom de Vries  <tom@codesourcery.com>
12396         PR tree-optimization/68659
12397         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
12398         new_expr == NULL_TREE.
12399         (get_new_name): Handle ADDR_EXPR.
12401 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
12403         PR rtl-optimization/69052
12404         * loop-invariant.c (canonicalize_address): New function.
12405         (inv_can_prop_to_addr_use): Check validity of address expression
12406         which is canonicalized by above function.
12408 2016-03-02  Alan Modra  <amodra@gmail.com>
12410         PR ipa/69990
12411         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
12412         larger alignment.
12414 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12416         PR target/70028
12417         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
12418         (*movhi_internal): Put mask moves from and to memory separately
12419         from moves from/to GPRs.
12421 2016-03-02  Richard Biener  <rguenther@suse.de>
12423         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
12424         GENERIC expressions in GIMPLE.
12426 2016-03-02  Richard Biener  <rguenther@suse.de>
12428         * config/i386/i386.c (type_natural_mode): Fix typo.
12430 2016-03-02  Nick Clifton  <nickc@redhat.com>
12432         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
12434 2016-03-02  Richard Biener  <rguenther@suse.de>
12435             Uros Bizjak  <ubizjak@gmail.com>
12437         PR target/67278
12438         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
12440 2016-03-02  Richard Biener  <rguenther@suse.de>
12442         PR middle-end/67278
12443         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
12445 2016-03-02  Marek Polacek  <polacek@redhat.com>
12447         PR c/67854
12448         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
12449         "is promoted to" warning.
12451 2016-03-01  DJ Delorie  <dj@redhat.com>
12453         * config.gcc: Deprecate mep-*.
12455 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
12457         PR middle-end/70025
12458         * lra-constraints.c (regno_val_use_in): New.
12459         (match_reload): Use it instead of regno_use_in.
12461 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12463         PR rtl-optimization/70007
12464         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
12465         references present in REG_EQUAL notes attached to non-SET patterns.
12467 2016-03-01  Jeff Law  <law@redhat.com>
12469         PR tree-optimization/69196
12470         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12471         Appropriately clamp the number of statements to copy when the
12472         thread path does not traverse a loop backedge.
12474         PR tree-optimization/69196
12475         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12476         Do count some PHIs in the thread path against the insn count.  Decrease
12477         final statement count by one as the control statement in the last
12478         block will get removed.  Remove special cased code for handling PHIs
12479         in the last block.
12481 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
12483         PR target/70027
12484         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
12485         asm dialect alternatives to explicit GOTPCREL calls.
12487 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12489         PR ada/70017
12490         * ira.c (do_reload): Issue warning for generic stack checking here...
12491         * reload1.c (reload): ...instead of here and streamline it.
12493 2016-03-01  Nick Clifton  <nickc@redhat.com>
12495         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
12497 2016-03-01  Richard Biener  <rguenther@suse.de>
12499         PR tree-optimization/69983
12500         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
12501         types and fall back to operand_equal_p.
12503 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12505         Revert
12506         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12508         * config/s390/constraints.md ("jm8"): New constraint.
12509         * config/s390/predicates.md ("const_int_8bitset_operand"): New
12510         predicate.
12511         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
12512         into ...
12513         ("*setmem_long<setmem_and>"): New pattern.
12514         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
12515         into ...
12516         ("*setmem_long_31z<setmem_and>"): New pattern.
12517         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
12518         New substitution rules with the required attributes.
12521 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12523         Revert
12524         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12526         * gensupport.c (process_substs_on_one_elem): Split loop to
12527         complete mark_operands_used_in_match_dup on all expressions in the
12528         vector first.
12529         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12530         and remove function.
12532 2016-03-01  Richard Biener  <rguenther@suse.de>
12534         PR middle-end/70022
12535         * fold-const.c (fold_indirect_ref_1): Fix range checking for
12536         vector BIT_FIELD_REF extract.
12538 2016-03-01  Richard Biener  <rguenther@suse.de>
12540         PR tree-optimization/69994
12541         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
12543 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12545         PR tree-optimization/69956
12546         * tree-vect-stmts.c (supportable_widening_operation): Support
12547         multi-step conversion of boolean vectors.
12548         (supportable_narrowing_operation): Likewise.
12550 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12552         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
12553         anymore.
12555 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12557         * config/s390/subst.md (DSI_VI): New mode iterator.
12558         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
12559         * config/s390/vector.md ("vec_set<mode>"): Move expander before
12560         the insn definition.
12561         ("*vec_set<mode>"): Change predicate and add alternative to
12562         support only either register or const_int operands as element
12563         selector.
12564         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
12565         operands.
12566         ("vec_extract<mode>"): New expander.
12567         ("*vec_extract<mode>"): New insn definition supporting reg and
12568         const_int element selectors.
12569         ("*vec_extract<mode>_plus"): New insn definition supporting
12570         reg+const_int element selectors.
12571         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
12572         following expander+insn definition.
12573         ("<vec_shifts_name><mode>3"): New expander.
12574         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
12576 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12578         * config/s390/s390.md ("*tabort_1"): Change predicate to
12579         nonmemory_operand.  Add a second alternative to cover
12580         register as well as const int operands.
12581         ("*tabort_1_plus"): New pattern definition.
12583 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12585         * config/s390/s390.md ("*ashrdi3_cc_31")
12586         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
12587         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
12588         Merge insn definitions into ...
12589         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12590         New pattern definition.
12591         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
12592         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
12593         ("*ashr<mode>3_and"): Merge insn definitions into ...
12594         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12595         New pattern definition.
12596         * config/s390/subst.md ("addr_style_op_cc_subst")
12597         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
12598         substitutions patterns plus attributes.
12599         Add ashiftrt to SUBST iterator.
12601 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12603         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
12604         op2 to nonmemory_operand.
12605         ("*<shift>di3_31", "*<shift>di3_31_and"):
12606         Merge into single pattern definition ...
12607         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
12608         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
12609         pattern definition ...
12610         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
12611         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
12612         iterator.
12614 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12616         * config/s390/predicates.md (const_int_6bitset_operand): New
12617         predicate.
12618         * config/s390/s390.md: Include subst.md.
12619         ("rotl<mode>3"): New expander.
12620         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
12621         ...
12622         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
12623         * config/s390/subst.md: New file.
12625 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12627         * config/s390/s390.md ("op_type", "atype", "length" attributes):
12628         Remove RRR type.  It doesn't really exist.
12629         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
12630         attributes.
12631         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
12632         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
12633         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
12634         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
12635         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
12636         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
12637         `enabled' attribute.
12639 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12641         * gensupport.c (process_substs_on_one_elem): Split loop to
12642         complete mark_operands_used_in_match_dup on all expressions in the
12643         vector first.
12644         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12645         and remove function.
12647 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12649         PR target/69706
12650         * config/sparc/sparc.c (NWORDS_UP): Rename to...
12651         (CEIL_NWORDS): ...this.  Use CEIL macro.
12652         (compute_fp_layout): Adjust to above renaming.
12653         (function_arg_union_value): Likewise.
12654         (sparc_arg_partial_bytes): Likewise.
12655         (sparc_function_arg_advance): Likewise.
12657 2016-02-29  Jeff Law  <law@redhat.com>
12659         PR tree-optimization/70005
12660         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
12661         where an object with a boolean range is compared against a value
12662         outside [0..1].
12664         PR tree-optimization/69999
12665         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
12666         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
12667         loop cleanups.
12669 2016-02-29  Richard Biener  <rguenther@suse.de>
12671         PR tree-optimization/69994
12672         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
12673         (get_unary_op): Look through nop conversions.
12674         (ops_equal_values_p): New function, look for equality diregarding
12675         nop conversions.
12676         (eliminate_plus_minus_pair): Use ops_equal_values_p
12677         (repropagate_negates): Do not use get_unary_op here.
12679 2016-02-29  Martin Liska  <mliska@suse.cz>
12681         * system.h: Poison ENABLE_CHECKING macro.
12683 2016-02-29  Martin Liska  <mliska@suse.cz>
12685         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
12686         is presented in dump flags.
12687         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12688         (hsa_regalloc): Likewise.
12690 2016-02-19  Richard Biener  <rguenther@suse.de>
12692         PR tree-optimization/69980
12693         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
12694         permutation of those we need to keep.
12696 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12698         PR target/69706
12699         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
12700         (NWORDS_UP): ...this
12701         (init_cumulative_args): Minor tweaks.
12702         (sparc_promote_function_mode): Likewise.
12703         (scan_record_type): Delete.
12704         (traverse_record_type): New function template.
12705         (classify_data_t): New structure type.
12706         (classify_registers): New inline function.
12707         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
12708         exhausted.  Instantiate traverse_record_type on classify_registers and
12709         deal with the case of a structure passed in slot #15 with no FP field
12710         in the first word.
12711         (assign_data_t): New structure type.
12712         (compute_int_layout): New static function.
12713         (compute_fp_layout): Likewise.
12714         (count_registers): New inline function.
12715         (assign_int_registers): New static function.
12716         (assign_fp_registers): Likewise.
12717         (assign_registers): New inline function.
12718         (function_arg_record_value_1): Delete.
12719         (function_arg_record_value_2): Likewise.
12720         (function_arg_record_value_3): Likewise.
12721         (function_arg_record_value): Adjust to above changes.  Instantiate
12722         traverse_record_type on count_registers to first count the number of
12723         registers to be used and then on assign_registers to assign them.
12724         (function_arg_union_value): Adjust to above renaming.
12725         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
12726         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
12727         case of a structure passed in slot #15
12728         (sparc_function_arg_advance): Likewise.
12729         (function_arg_padding): Minor tweak.
12731 2016-02-29  Richard Biener  <rguenther@suse.de>
12733         PR tree-optimization/69720
12734         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
12735         the adjustment_def path for possibly vectorized defs.
12736         (vect_create_epilog_for_reduction): Handle vectorized initial
12737         defs properly.
12739 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12741         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
12743 2016-02-27  Jeff Law  <law@redhat.com>
12745         Revert
12746         2016-02-26  Richard Biener  <rguenther@suse.de>
12747                     Jeff Law  <law@redhat.com>
12749         PR tree-optimization/69740
12750         * cfghooks.c (remove_edge): Request loop fixups if we delete
12751         an edge that might turn an irreducible loop into a natural
12752         loop.
12754 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
12756         PR rtl-optimization/69896
12757         * tree-vect-generic.c (get_compute_type): Avoid single element
12758         vector types.
12760 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
12762         Rename the AArch64 tuning option and related functions to enable the
12763         Newton series for the reciprocal square root to reflect its
12764         approximative characteristic.
12766         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
12767         function to "aarch64_emit_approx_rsqrt".
12768         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
12769         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
12770         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
12771         (xgene1_tunings): Likewise.
12772         (use_rsqrt_p): Likewise.
12773         (aarch64_emit_swrsqrt): Use new function name.
12774         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
12775         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
12776         text explaining this option.
12777         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
12779 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12781         PR target/69969
12782         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12783         complain about -mallow-movmisalign without -mvsx if
12784         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
12786 2016-02-26  Joel Sherrill  <joel@rtems.org>
12788         * config.gcc: Add x86_64-*-rtems*.
12789         * config/i386/rtems-64.h: New file.
12791 2016-02-26  Joel Sherrill  <joel@rtems.org>
12793         * config.gcc: Add aarch64-*-rtems*.
12794         * config/aarch64/rtems.h: New file.
12796 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
12798         PR target/69946
12799         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
12800         shift amount using %h.  Add comment.
12802 2016-02-26  Richard Biener  <rguenther@suse.de>
12803             Jeff Law  <law@redhat.com>
12805         PR tree-optimization/69740
12806         * cfghooks.c (remove_edge): Request loop fixups if we delete
12807         an edge that might turn an irreducible loop into a natural
12808         loop.
12810 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12812         PR middle-end/69920
12813         * tree-sra.c (sra_modify_assign): Do not remove loads of
12814         uninitialized aggregates to SSA_NAMEs.
12816 2016-02-26  Richard Henderson  <rth@redhat.com>
12818         PR target/69709
12819         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
12820         pseudo in case the target rtx matches the source of the left
12821         shift.
12823 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12825         PR hsa/69568
12826         * hsa.h (hsa_type_packed_p): Declare.
12827         * hsa.c (hsa_type_packed_p): New function.
12828         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
12829         loads.
12830         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
12831         * hsa-brig.c (emit_basic_insn): Likewise.
12833 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12835         pr hsa/69674
12836         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
12837         pointers.
12838         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
12840 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12842         * hsa.h (is_a_helper): New overload for hsa_op_immed for
12843         hsa_op_with_type operands.
12844         (hsa_unsigned_type_for_type): Declare.
12845         * hsa.c (hsa_unsigned_type_for_type): New function.
12846         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
12847         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
12848         the finalizer.  Do not emit extra move.
12850 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12852         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
12853         atomic operations in private segment.
12855 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12857         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
12858         statements to wi->info.  Also disallow omp simd constructs.
12859         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
12860         for not gridifying.  Dump special string for omp_for.
12862 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12864         PR target/69245
12865         * config/aarch64/aarch64.c (aarch64_set_current_function):
12866         Save/restore target globals when switching to
12867         target_option_default_node.
12869 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12871         PR target/69613
12872         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
12873         Return 0 if !SHIFT_COUNT_TRUNCATED.
12875 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12876             Eric Botcazou  <ebotcazou@adacore.com>
12878         PR rtl-optimization/69891
12879         * dse.c (scan_insn): If we can't figure out memset arguments
12880         or they are non-constant, call clear_rhs_from_active_local_stores.
12882 2016-02-26  Martin Liska  <mliska@suse.cz>
12884         * doc/extend.texi: Mention clog10, clog10f an clog10l
12885         in Builtins section.
12887 2016-02-26  Martin Liska  <mliska@suse.cz>
12889         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
12890         CHECKING_P.
12891         (resolve_args_picking_1): Likewise.
12892         * dwarf2out.h (struct GTY): Likewise.
12894 2016-02-26  Martin Liska  <mliska@suse.cz>
12896         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
12897         with flag_checking.
12898         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12900 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
12901             Martin Liska  <mliska@suse.cz>
12903         * doc/install.texi: Mention --enable-valgrind-annotations.
12905 2016-02-26  Richard Biener  <rguenther@suse.de>
12907         PR tree-optimization/69551
12908         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
12909         looking through aliases adjust DECL_PT_UID to refer to the
12910         ultimate alias target.
12912 2016-02-25  Martin Liska  <mliska@suse.cz>
12914         PR middle-end/69919
12915         * alloc-pool.c (after_memory_report): New variable.
12916         * alloc-pool.h (base_pool_allocator ::release): Do not use
12917         the infrastructure if after_memory_report.
12918         * toplev.c (toplev::main): Mark after memory report.
12920 2016-02-25  Richard Biener  <rguenther@suse.de>
12922         PR tree-optimization/48795
12923         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
12925 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12927         PR driver/68463
12928         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
12929         offloading is enabled and -fopenacc or -fopenmp is specified.
12930         (CRTOFFLOADEND): Likewise.
12931         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
12932         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
12933         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
12934         (offload_objects_file_name): New static var.
12935         (tool_cleanup): Remove offload_objects_file_name file.
12936         (find_offloadbeginend): Replace with ...
12937         (find_crtoffloadtable): ... this.
12938         (run_gcc): Remove offload_argc and offload_argv.
12939         Get offload_objects_file_name from -foffload-objects=... option.
12940         Read names of object files with offload from this file, pass them to
12941         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
12942         don't pass offloadbegin and offloadend to the linker.  Don't pass
12943         offload non-LTO files to the linker, because now they're not claimed.
12945 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
12947         PR ipa/69630
12948         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12949         on builtin_unreachable.
12951 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
12953         PR rtl-optimization/69896
12954         * regcprop.c: Include cfgrtl.h.
12955         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
12956         than remembered mode, either delete it (if noop_move_p), or
12957         treat like copy_p but not noop_p instruction.
12959 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12961         PR debug/69705
12962         * dwarf2out.c (gen_variable_die): Work around buggy LTO
12963         - allow NULL decl for Fortran DW_TAG_common_block variables.
12965 2016-02-24  Jason Merrill  <jason@redhat.com>
12967         * common.opt (flifetime-dse): Add -flifetime-dse=1.
12969 2016-02-24  Richard Biener  <rguenther@suse.de>
12970             Jakub Jelinek  <jakub@redhat.com>
12972         PR middle-end/69760
12973         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
12974         conditionally executed ops to well-defined overflow behavior.
12976 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12978         PR middle-end/69915
12979         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
12980         elements.
12982 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12984         PR rtl-optimization/69886
12985         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
12986         argument.  Use it when checking validity of set instructions.
12987         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
12988         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
12989         callsite.
12990         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
12991         * store-motion.c (find_moveable_store): Update
12992         can_assign_to_reg_without_clobbers_p callsite.
12994 2016-02-24  Richard Biener  <rguenther@suse.de>
12996         PR middle-end/68963
12997         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
12998         bogus check.
12999         (record_nonwrapping_iv): Do not fall back to the low/high bound
13000         for non-constant IV bases if the stmt is not always executed.
13002 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13004         * config/arm/arm-cores.def (cortex-a32): New entry.
13005         * config/arm/arm-tables.opt: Regenerate.
13006         * config/arm/arm-tune.md: Regenerate.
13007         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13008         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13009         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13010         for -mcpu and -mtune.
13012 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13014         PR target/69875
13015         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13016         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13017         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13018         (atomic_loaddi_1): Delete.
13019         (atomic_loaddi): Rewrite expander using the above changes.
13021 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13023         PR c/69918
13024         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13025         2 to 3.
13027 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13028             Richard Biener  <rguenth@suse.de>
13030         PR middle-end/69909
13031         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13032         set_mem_attributes if tem is SSA_NAME which got expanded
13033         as a MEM.
13035 2016-02-24  Richard Biener  <rguenther@suse.de>
13037         PR tree-optimization/69907
13038         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13039         end of permutations for BB vectorization.
13041 2016-02-24  Christian Bruel  <christian.bruel@st.com>
13043         * config/arm/arm-c.c (arm_option_override): Initialize
13044         target_option_current_node.
13045         * config/arm/arm.c (arm_pragma_target_parse): Replace
13046         build_target_option_node call by target_option_current_node.
13047         Set target_option_current_node.
13048         Fix comments.
13050 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
13052         PR target/69810
13053         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13054         define_insn_and_split to define_insn.
13055         (zero_extendqi<mode>2_dot2): Same.
13056         (extendqi<mode>2_dot): Same.
13057         (extendqi<mode>2_dot2): Same.
13059 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13061         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13062         and add bypass for AES{D,E} and AESMC pairs.
13063         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13064         and AESMC pairs.
13066 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13068         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13069         series for reciprocal square root in Exynos M1.
13071 2016-02-23  Martin Sebor  <msebor@redhat.com>
13073         PR c/69759
13074         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13075         __builtin_alloca_with_align.
13077 2016-02-23  Richard Henderson  <rth@redhat.com>
13079         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13080         (ix86_register_pragmas): Remove __seg_tls.
13081         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13082         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13083         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13084         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13085         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13086         * doc/extend.texi (__seg_tls): Remove item.
13088 2016-02-23  Richard Biener  <rguenther@suse.de>
13090         * alloc-pool.h (struct allocation_object): Make id member
13091         conditional on CHECKING_P again.
13092         (get_instance): Adjust.
13093         (base_pool_allocator): Likewise.
13095 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13097         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13098         (parallelize_loops): In OpenACC kernels mode, set n_threads to
13099         zero.
13100         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13101         flag_openacc.
13102         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13104 2016-02-23  Richard Biener  <rguenther@suse.de>
13106         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13107         * bitmap.h (struct bitmap_usage): Likewise.
13108         (bitmap_move): Declare.
13109         * bitmap.c (register_overhead): Take size_t argument.
13110         (bitmap_move): New function.
13111         * df-problems.c (df_rd_transfer_function): Use bitmap_move
13112         to properly account overhead.
13113         * tree.c (free_node): Use tree_size.
13115 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
13117         PR c++/69902
13118         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
13119         when inverting comparison.
13121         PR c/69900
13122         * common.opt (Wunreachable-code): Add Warning flag.
13124 2016-02-23  Mark Wielaard  <mjw@redhat.com>
13125             Jakub Jelinek  <jakub@redhat.com>
13127         PR c/69911
13128         * cgraphunit.c (check_global_declaration): Check main_input_filename
13129         and DECL_SOURCE_FILE are not NULL.
13131 2016-02-23  Martin Jambor  <mjambor@suse.cz>
13133         PR tree-optimization/69666
13134         * tree-sra.c (sra_modify_assign): Do not attempt to create
13135         default_def replacements for unscalarizable regions.
13137 2016-02-20  Mark Wielaard  <mjw@redhat.com>
13139         PR c/28901
13140         * cgraphunit.c (check_global_declaration): Check level of
13141         warn_unused_const_variable and main_input_filename.
13142         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
13143         (-Wunused-variable): For C implies -Wunused-const-variable=1.
13144         (-Wunused-const-variable): Explain levels 1 and 2.
13146 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13148         PR target/69888
13149         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13150         identical arguments.  Formatting and spelling fixes.
13152         PR target/69885
13153         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13154         be specified.
13156         PR target/69894
13157         PR target/69895
13158         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13159         and m68k-devices.def.
13160         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13161         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13163 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13165         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13166         and HImode registers.
13168 2016-02-22  Richard Biener  <rguenther@suse.de>
13170         PR tree-optimization/69882
13171         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13172         preserve permutations present because of gaps.
13173         (vect_supported_load_permutation_p): Always continue checking
13174         permutations after vect_attempt_slp_rearrange_stmts.
13176 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13178         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13179         min_profitable_estimate, rather than min_profitable_iters.
13181 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13183         PR target/69885
13184         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13185         SImode for last match_operand.
13187 2016-02-22  Martin Liska  <mliska@suse.cz>
13189         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13190         return bitsize - 1 as the return value.
13192 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13194         PR target/69806
13195         PR target/54089
13196         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13197         Handle negative shift counts.
13198         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13199         force_reg on the shift constant.
13200         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13201         (lshrsi3_d): Handle negative shift counts.
13203 2016-02-22  Richard Biener  <rguenther@suse.de>
13204             Tom de Vries  <tom@codesourcery.com>
13206         * graph.c: Include dumpfile.h.
13207         (print_graph_cfg): Split into three overloads.
13208         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13210 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13212         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13213         dump-fn.
13215 2016-02-22  Richard Biener  <rguenther@suse.de>
13217         PR ipa/37448
13218         * ipa-inline-transform.c (inline_call): When not updating
13219         overall summaries adjust self size by the growth estimate.
13220         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13221         hash-set, do not update overall summaries here.  Renamed from ...
13222         (inline_to_all_callers): ... this which is now wrapping the
13223         above and performing delayed overall summary update.
13224         (early_inline_small_functions): Delay updating of the overall
13225         summary.
13227 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13229         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13230         variable.
13232 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13234         PR driver/69805
13235         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13236         :%* in %:gt() argument.
13237         (greater_than_spec_func): Adjust for expecting only numbers,
13238         if there are more than two numbers, compare the last two.
13240 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13242         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13243         -Wnarrowing with -std.
13245 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13247         PR c++/69851
13248         * expr.c (store_field): Don't use bit-field path if exp is
13249         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13250         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13251         and the assignment can be performed by bitwise copy.  Formatting
13252         fix.
13254         PR middle-end/69838
13255         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13256         call copy_reg_eh_region_note_forward on before and/or after sequences
13257         and remove note from insn if it no longer can throw.
13259         PR target/69820
13260         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13261         if TARGET_AVX512BW.
13263 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13265         * config/s390/vector.md: Add missing commutative operand markers
13266         to the patterns which qualify for one.
13267         * config/s390/vx-builtins.md: Likewise.
13269 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13271         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13272         types to mode iterators.
13273         (vec_double): ... and mode attribute.
13274         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13276 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13278         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13279         Change the predicate of op2 from nonimmediate to general and let
13280         reload fix it if necessary.
13282 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13284         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13286 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13288         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13289         mode.
13291 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13293         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
13294         * config/s390/s390.c (s390_expand_vec_movstr): New function.
13295         * config/s390/s390.md ("movstr<P:mode>"): Call
13296         s390_expand_vec_movstr.
13298 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13300         * config/s390/s390.md: Add missing output modifier for operand 1
13301         to print it as address properly.
13303 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13305         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
13306         * config/s390/2964.md: New file.
13307         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
13308         of insn grouping attributes depending on the CPU level.
13309         (s390_get_unit_mask): New function.
13310         (s390_sched_score): Remove the OOO from the scheduling macros.
13311         Add loop to calculate a score for the instruction mix.
13312         (s390_sched_reorder): Likewise plus improve debug output.
13313         (s390_sched_variable_issue): Rename macros as above.  Calculate
13314         the unit distances after actually scheduling an insn.  Improve
13315         debug output.
13316         (s390_sched_init): Clear last_scheduled_unit_distance array.
13317         * config/s390/s390.md: Include 2964.md.
13319 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13321         PR target/69671
13322         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
13323         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
13324         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
13325         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
13326         *avx512f_<code>v8div16qi2_mask_1): New insns.
13328 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13330         PR target/68404
13331         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
13332         2016-02-09 change.
13334         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
13335         earlyclobber from target.  Use wF constraint for fused memory
13336         address.
13337         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
13339 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13340             Martin Liska  <mliska@suse.cz>
13342         PR sanitizer/69863
13343         * cfgexpand.c (asan_sanitize_stack_p): New function.
13344         (partition_stack_vars): Use the function.
13345         (expand_stack_vars): Likewise.
13346         (defer_stack_allocation): Likewise.
13347         (expand_used_vars): Likewise.
13349 2016-02-18  Richard Biener  <rguenther@suse.de>
13351         PR middle-end/69553
13352         * fold-const.c (operand_equal_p): Properly compare offsets for
13353         IMAGPART_EXPR and ARRAY_REF.
13355 2016-02-18  Nick Clifton  <nickc@redhat.com>
13357         PR target/62254
13358         PR target/69610
13359         * config/arm/arm.c (arm_option_override_internal): Disable
13360         interworking if the target does not support thumb instructions.
13361         (arm_reload_in_hi): Handle the case where a register to register
13362         move needs reloading because there is no simple pattern to handle
13363         it.
13364         (arm_reload_out_hi): Likewise.
13366 2016-02-18  Richard Biener  <rguenther@suse.de>
13368         PR middle-end/69854
13369         * match.pd: Don't use fold_binary or fold_unary for folding
13370         constants.
13372 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
13374         PR c++/69850
13375         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
13376         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
13377         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
13378         warn on gimple_no_warning_p statements.
13380 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
13382         * doc/extend.texi (C++ Attributes): Correct description of
13383         warn_unused type attribute.
13385 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13387         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
13388         correct instruction.
13390 2016-02-17  Richard Biener  <rguenther@suse.de>
13392         PR rtl-optimization/69609
13393         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
13394         (find_traces_1_round): When ending a trace update cached priority
13395         of successors.
13396         (bb_to_key): Use cached priority when available.
13397         (copy_bb): Initialize cached priority.
13398         (reorder_basic_blocks_software_trace_cache): Likewise.
13400 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13402         PR target/69161
13403         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
13404         New predicate.
13405         (aarch64_comparison_operator): Break overly long line into two.
13406         (aarch64_comparison_operation): Likewise.
13407         * config/aarch64/aarch64.md (cstorecc4): Use
13408         aarch64_comparison_operator_mode instead of
13409         aarch64_comparison_operator.
13410         (cstore<mode>4): Likewise.
13411         (aarch64_cstore<mode>): Likewise.
13412         (*cstoresi_insn_uxtw): Likewise.
13413         (cstore<mode>_neg): Likewise.
13414         (*cstoresi_neg_uxtw): Likewise.
13416 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13418         PR target/69161
13419         * config/arm/predicates.md (arm_comparison_operator_mode):
13420         New predicate.
13421         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
13422         instead of arm_comparison_operator.
13423         (*mov_negscc): Likewise.
13424         (*mov_notscc): Likewise.
13425         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
13426         (*thumb2_mov_negscc): Likewise.
13427         (*thumb2_mov_negscc_strict_it): Likewise.
13428         (*thumb2_mov_notscc): Likewise.
13429         (*thumb2_mov_notscc_strict_it): Likewise.
13431 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
13433         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
13434         Add missing return.
13436 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
13438         * config/visium/visium.c (machine_libfunc_index): New enum.
13439         (machine_libfuncs): New structure.
13440         (visium_libfuncs): New static variable.
13441         (TARGET_INIT_LIBFUNCS): Define to...
13442         (visium_init_libfuncs): ...this.  New function.
13443         (expand_block_move_4): Use the appropriate libfunc.
13444         (expand_block_move_2): Likewise.
13445         (expand_block_move_1): Likewise.
13446         (expand_block_set_4): Likewise.
13447         (expand_block_set_2): Likewise.
13448         (expand_block_set_1): Likewise.
13449         (visium_trampoline_init): Likewise.
13451 2016-02-17  Nick Clifton  <nickc@redhat.com>
13453         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
13454         TI's devices.csv file as of March 2016.
13456 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13458         PR Target/48344
13459         * opts-global.c (handle_common_deferred_options): Introduce and
13460         initialize two global variables to remember command-line options
13461         specifying a stack-limiting register.
13462         * opts.h: Add extern declarations of the two new global variables.
13463         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
13464         variable based on the values of the two new global variables.
13466 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13468         PR c/69835
13469         * common.opt (Wnonnull-compare): New warning.
13470         * doc/invoke.texi (-Wnonnull): Remove text about comparison
13471         of arguments against NULL.
13472         (-Wnonnull-compare): Document.
13473         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
13474         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
13475         * passes.def (pass_warn_nonnull_compare): Add.
13476         * gimple-ssa-nonnull-compare.c: New file.
13478 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13480         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
13481         AARCH64_EXTRA_TUNE_RECIP_SQRT.
13483 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13485         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
13486         reciprocal sqrt for -mlow-precision-recip-sqrt.
13488 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13489             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13491         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
13492         always use lane loads to construct non-constant vectors.
13494 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13496         * config/aarch64/aarch64.md
13497         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
13498         constraints for operand 3.
13499         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
13501 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13502             Richard Biener  <rguenther@suse.de>
13504         PR tree-optimization/69820
13505         * tree-vect-patterns.c (type_conversion_p): Return false if
13506         *orig_type is unsigned single precision or boolean.
13507         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
13508         Formatting fix.
13510 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13512         PR rtl-optimization/69764
13513         PR rtl-optimization/69771
13514         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
13515         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
13517 2016-02-16  Richard Biener  <rguenther@suse.de>
13519         PR tree-optimization/69776
13520         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
13521         sets from caller.
13522         (indirect_refs_may_alias_p): Likewise.
13523         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
13524         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
13525         according to tbaa_p.
13526         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
13527         (optimize_stmt): For redundant store discovery do not allow tbaa.
13529 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
13531         PR tree-optimization/69714
13532         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
13533         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
13535 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
13537         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
13538         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
13539         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
13540         * config/arc/arc.c (arc_init): Check FPU options.
13541         (get_arc_condition_code): Handle new CC_FPU* modes.
13542         (arc_select_cc_mode): Likewise.
13543         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
13544         register pair only. Allow access for ARCv2 accumulator.
13545         (gen_compare_reg): Whenever we have FPU support use FPU compare
13546         instructions.
13547         (arc_reorg): Don't generate brcc insns when FPU compare
13548         instructions are involved.
13549         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
13550         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
13551         floating point emulation.
13552         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
13553         (REVERSE_CONDITION): Add new CC_FPU* modes.
13554         (TARGET_FP_SP_BASE): Define.
13555         (TARGET_FP_DP_BASE): Likewise.
13556         (TARGET_FP_SP_FUSED): Likewise.
13557         (TARGET_FP_DP_FUSED): Likewise.
13558         (TARGET_FP_SP_CONV): Likewise.
13559         (TARGET_FP_DP_CONV): Likewise.
13560         (TARGET_FP_SP_SQRT): Likewise.
13561         (TARGET_FP_DP_SQRT): Likewise.
13562         (TARGET_FP_DP_AX): Likewise.
13563         * config/arc/arc.md (ARCV2_ACC): New constant.
13564         (type): New fpu type attribute.
13565         (SDF): Conditional iterator.
13566         (cstore<mode>, cbranch<mode>): Change expand condition.
13567         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
13568         handles FPU/FPX cases as well.
13569         * config/arc/arc.opt (mfpu): New option.
13570         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
13571         Renamed.
13572         (adddf3, muldf3, subdf3): Removed.
13573         * config/arc/predicates.md (proper_comparison_operator): Recognize
13574         CC_FPU* modes.
13575         * config/arc/fpu.md: New file.
13576         * doc/invoke.texi (ARC Options): Document mfpu option.
13578 2016-02-16  Richard Biener  <rguenther@suse.de>
13580         PR rtl-optimization/69291
13581         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
13582         noce_operand_ok check.
13584 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13586         PR lto/67709
13587         * omp-low.c (simd_clone_create): Remove call to
13588         symtab->call_cgraph_insertion_hooks.
13590 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13592         PR tree-optimization/69802
13593         * tree-ssa-reassoc.c (update_range_test): If op is
13594         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
13595         op == 1 test of precision 1 integral op, otherwise handle
13596         that case as op itself.  Fix up formatting.
13597         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
13598         up formatting.
13600 2016-02-16  Richard Biener  <rguenther@suse.de>
13602         PR tree-optimization/69586
13603         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
13604         types for conversion sources.
13606 2016-02-16  Richard Biener  <rguenther@suse.de>
13608         PR middle-end/69801
13609         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
13610         mask OEP_ADDRESS_OF.
13612 2016-02-16  Alan Modra  <amodra@gmail.com>
13614         PR target/68973
13615         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
13616         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
13617         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
13618         (p8_mtvsrwz): New.
13619         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
13620         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
13621         (p8_fmrgow_<mode>): Likewise.
13622         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
13623         changes.
13624         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
13625         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
13626         to use movdi_internal64.  Remove op0_di.
13627         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
13629 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
13631         Add support for the FCCMP insn types
13633         * config/aarch64/aarch64.md (fccmp): Change insn type.
13634         (fccmpe): Likewise.
13635         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
13636         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
13637         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
13638         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
13639         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
13640         * config/arm/types.md (fccmps): Add new insn type.
13641         (fccmpd): Likewise.
13643 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13645         * alias.c (get_alias_set): Fix a typo in comment.
13647 2016-02-15  Richard Biener  <rguenther@suse.de>
13649         PR tree-optimization/69595
13650         * match.pd: Complete range test simplification to true.
13652 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
13654         PR rtl-optimization/69648
13655         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
13656         pic_offset_table_rtx.
13658         PR rtl-optimization/69752
13659         * ira.c (update_equiv_regs): When looking for more than a single SET,
13660         also take other side effects into account.
13662 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13664         * config/s390/s390.c (s390_function_profiler): Add a new sequence
13665         for z900+ CPUs in 31-bit mode.
13667 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13669         * common/config/s390/s390-common.c (s390_supports_split_stack):
13670         New function.
13671         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
13672         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
13673         * config/s390/s390.c (struct machine_function): New field
13674         split_stack_varargs_pointer.
13675         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
13676         in s390_emit_prologue.
13677         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
13678         vararg pointer.
13679         (morestack_ref): New global.
13680         (SPLIT_STACK_AVAILABLE): New macro.
13681         (s390_expand_split_stack_prologue): New function.
13682         (s390_live_on_entry): New function.
13683         (s390_va_start): Use split-stack vararg pointer if appropriate.
13684         (s390_asm_file_end): Emit the split-stack note sections.
13685         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
13686         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
13687         (UNSPECV_SPLIT_STACK_CALL): New unspec.
13688         (UNSPECV_SPLIT_STACK_DATA): New unspec.
13689         (split_stack_prologue): New expand.
13690         (split_stack_space_check): New expand.
13691         (split_stack_data): New insn.
13692         (split_stack_call): New expand.
13693         (split_stack_call_*): New insn.
13694         (split_stack_cond_call): New expand.
13695         (split_stack_cond_call_*): New insn.
13697 2016-02-15  Richard Biener  <rguenther@suse.de>
13699         PR tree-optimization/69783
13700         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13701         Add trivially correct cases.
13703 2016-02-15  Tom de Vries  <tom@codesourcery.com>
13705         PR lto/69655
13706         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
13707         do_force_output.
13708         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
13710 2016-02-15  Richard Biener  <rguenther@suse.de>
13712         PR tree-optimization/69776
13713         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
13714         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
13715         indicate whether we can use TBAA to disambiguate against stores.
13716         Use alias-set zero if not.
13717         (visit_reference_op_store): Do not use TBAA when looking up
13718         redundant stores.
13719         * tree-ssa-pre.c (compute_avail): Use TBAA here.
13720         (eliminate_dom_walker::before_dom_children): But not when looking
13721         up redundant stores.
13723 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
13725         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
13727 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13729         *  config/i386/znver1.md
13730         (znver1_pop, znver1_pop_mem,
13731         znver1_load_imov_double_store,
13732         znver1_load_imov_direct_store,
13733         znver1_load_imov_direct_load,
13734         znver1_load_imov_double_load): Add new.
13735         (znver1_insn, znver1_insn_load): Add icmov type.
13736         (znver1_sseavx_fma,
13737         znver1_sseavx_fma_load,
13738         znver1_avx256_fma,
13739         znver1_avx256_fma_load): Fix pipe usage.
13741 2016-02-14  Alan Modra  <amodra@gmail.com>
13743         PR target/68973
13744         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
13745         with an invalid hard reg, reload just the reg not the entire
13746         pre/post-inc/dec address expression.
13748 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13750         PR target/67260
13751         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
13752         fixed R1_REG scratch reg.
13753         (sibcall_value_pcrel_fdpic): Likewise.
13755 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13757         PR target/67636
13758         PR target/64345
13759         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
13761 2016-02-12  Walter Lee  <walt@tilera.com>
13763         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
13764         * config/tilegx/t-tilegx: Likewise.
13766 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13768         PR other/69554
13769         * diagnostic-show-locus.c (struct line_span): New struct.
13770         (layout::get_first_line): Delete.
13771         (layout::get_last_line): Delete.
13772         (layout::get_num_line_spans): New member function.
13773         (layout::get_line_span): Likewise.
13774         (layout::print_heading_for_line_span_index_p): Likewise.
13775         (layout::get_expanded_location): Likewise.
13776         (layout::calculate_line_spans): Likewise.
13777         (layout::m_first_line): Delete.
13778         (layout::m_last_line): Delete.
13779         (layout::m_line_spans): New field.
13780         (layout::layout): Update comment.  Replace m_first_line and
13781         m_last_line with m_line_spans, replacing their initialization
13782         with a call to calculate_line_spans.
13783         (diagnostic_show_locus): When printing source lines and
13784         annotations, rather than looping over a single span
13785         of lines, instead loop over each line_span within
13786         the layout, with an inner loop over the lines within them.
13787         Call the context's start_span callback when changing line spans.
13788         * diagnostic.c (diagnostic_initialize): Initialize start_span.
13789         (diagnostic_build_prefix): Break out the building of the location
13790         part of the string into...
13791         (diagnostic_get_location_text): ...this new function, rewriting
13792         it from nested ternary expressions to a sequence of "if"
13793         statements.
13794         (default_diagnostic_start_span_fn): New function.
13795         * diagnostic.h (diagnostic_start_span_fn): New typedef.
13796         (diagnostic_context::start_span): New field.
13797         (default_diagnostic_start_span_fn): New prototype.
13799 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13801         PR driver/69779
13802         * gcc.c (driver::finalize): Fix cleanup of "specs".
13804 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13806         PR driver/69265
13807         PR driver/69453
13808         * gcc.c (driver::driver): Initialize m_option_suggestions.
13809         (driver::~driver): Clean up m_option_suggestions.
13810         (suggest_option): Convert to...
13811         (driver::suggest_option): ...this, and split out into
13812         driver::build_option_suggestions and find_closest_string.
13813         (driver::build_option_suggestions): New function, from
13814         first half of suggest_option.  Special-case
13815         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
13816         the sanitizer_opts array.  For options of enum types, add the
13817         various enum values to the candidate strings.
13818         (driver::handle_unrecognized_options): Remove "const".
13819         * gcc.h (driver::handle_unrecognized_options): Likewise.
13820         (driver::build_option_suggestions): New decl.
13821         (driver::suggest_option): New decl.
13822         (driver::m_option_suggestions): New field.
13823         * opts-common.c (add_misspelling_candidates): New function.
13824         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
13825         and make non-static.
13826         * opts.h (sanitizer_opts): New array decl.
13827         (add_misspelling_candidates): New function decl.
13828         * spellcheck.c (find_closest_string): New function.
13829         * spellcheck.h (find_closest_string): New function decl.
13831 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13833         PR rtl-optimization/69764
13834         PR rtl-optimization/69771
13835         * optabs.c (expand_binop_directly): For shift_optab_p, force
13836         convert_modes with VOIDmode if xop1 has VOIDmode.
13838 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
13840         PR target/69729
13841         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
13842         to correctly determine instrumentation thunks.
13844 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13846         PR ipa/69241
13847         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
13848         type by reference, force lhs on the call.
13850         PR ipa/68672
13851         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
13852         Compute retval and retbnd early in all cases if split_part_return_p
13853         and return_bb is not EXIT.  Remove all clobber stmts and reset
13854         all debug stmts that refer to SSA_NAMEs defined in split part,
13855         except if it is retval, in that case replace the old retval with the
13856         lhs of the call to the split part.
13858 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13860         revert:
13861         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13863         PR middle-end/66726
13864         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13865         whose result is used in PHI.
13866         (maybe_optimize_range_tests): Likewise.
13867         (final_range_test_p): Likweise.
13869 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13871         PR middle-end/66726
13872         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13873         whose result is used in PHI.
13874         (maybe_optimize_range_tests): Likewise.
13875         (final_range_test_p): Likweise.
13877 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13879         * cgraph.c: Spelling fixes - behaviour -> behavior and
13880         neighbour -> neighbor.
13881         * target.def: Likewise.
13882         * sel-sched.c: Likewise.
13883         * config/mips/mips.c: Likewise.
13884         * config/arc/arc.md: Likewise.
13885         * config/arm/cortex-a57.md: Likewise.
13886         * config/arm/arm.c: Likewise.
13887         * config/arm/neon.md: Likewise.
13888         * config/arm/arm-c.c: Likewise.
13889         * config/vms/vms-c.c: Likewise.
13890         * config/s390/s390.c: Likewise.
13891         * config/i386/znver1.md: Likewise.
13892         * config/i386/i386.c: Likewise.
13893         * config/ia64/hpux-unix2003.h: Likewise.
13894         * config/msp430/msp430.md: Likewise.
13895         * config/rx/rx.c: Likewise.
13896         * config/rx/rx.md: Likewise.
13897         * config/aarch64/aarch64-simd.md: Likewise.
13898         * config/aarch64/aarch64.c: Likewise.
13899         * config/nvptx/nvptx.c: Likewise.
13900         * config/bfin/bfin.c: Likewise.
13901         * config/cris/cris.opt: Likewise.
13902         * config/rs6000/rs6000.c: Likewise.
13903         * target.h: Likewise.
13904         * spellcheck.c: Likewise.
13905         * ira-build.c: Likewise.
13906         * tree-inline.c: Likewise.
13907         * builtins.c: Likewise.
13908         * lra-constraints.c: Likewise.
13909         * explow.c: Likewise.
13910         * hwint.h: Likewise.
13911         * targhooks.c: Likewise.
13912         * tree-vect-data-refs.c: Likewise.
13913         * expr.c: Likewise.
13914         * doc/tm.texi: Likewise.
13915         * doc/extend.texi: Likewise.
13916         * doc/install.texi: Likewise.
13917         * doc/md.texi: Likewise.
13918         * tree-ssa-tail-merge.c: Likewise.
13919         * sched-int.h: Likewise.
13920         * match.pd: Likewise.
13921         * sched-ebb.c: Likewise.
13922         * target.def (omit_struct_return_reg): Likewise.
13923         * gimple-ssa-isolate-paths.c: Likewise.
13924         (find_implicit_erroneous_behaviour): Renamed to...
13925         (find_implicit_erroneous_behavior): ... this.
13926         (find_explicit_erroneous_behaviour): Renamed to...
13927         (find_explicit_erroneous_behavior): ... this.
13928         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
13930 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
13932         PR rtl-optimization/64682
13933         PR rtl-optimization/69567
13934         PR rtl-optimization/69737
13935         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
13936         in I2 as well, just lose it.
13938 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13940         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
13941         New variable.
13942         (aarch64_last_printed_tune_string): Likewise.
13943         (aarch64_declare_function_name): Only output .arch assembler
13944         directive if it will be different from the previously output
13945         directive.  Same for .tune comment but only if -dA is set.
13946         (aarch64_start_file): New function.
13947         (TARGET_ASM_FILE_START): Define.
13949 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
13951         PR plugins/69758
13952         * Makefile.in (PLUGIN_HEADERS): Add params.list.
13954 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
13956         PR target/65313
13957         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
13958         -Wmaybe-uninitialized warning.
13960 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
13962         PR target/69713
13963         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
13965 2016-02-11  Richard Biener  <rguenther@suse.de>
13967         PR rtl-optimization/69291
13968         * ifcvt.c (noce_try_store_flag_constants): Do not allow
13969         subexpressions affected by changing the result.
13971 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
13973         PR target/69148
13974         * lra-constraints.c (curr_insn_transform): Find in/out operands
13975         for secondary memory moves.  Update dups.
13977 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
13979         PR tree-optimization/69652
13980         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
13981         to nested loop, did source re-formatting, skip debug statements,
13982         add check on statement with volatile operand, remove dead scalar
13983         statements.
13985 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
13986             Patrick Palka  <ppalka@gcc.gnu.org>
13988         PR ipa/69241
13989         PR c++/69649
13990         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
13991         calls if the return type is TREE_ADDRESSABLE.
13992         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
13993         * ipa-split.c (split_function): Fix doubled "we" in comment.
13994         Use void return type for the split part even if
13995         !split_point->split_part_set_retval.
13997 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
13999         PR tree-optimization/68021
14000         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14001         when computing the value of biv cand by itself.
14003 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14005         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14006         (cortexa57_tunings): Likewise.
14007         (cortexa72_tunings): Likewise.
14008         (arch_macro_fusion_pair_p): Add support for AES fusion.
14009         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14010         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14011         Allow virtual registers before reload so early scheduling works.
14012         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14013         correct latency and pipeline.
14014         (cortex_a57_crypto_complex): Likewise.
14015         (cortex_a57_crypto_xor): Likewise.
14016         (define_bypass): Add AES bypass.
14018 2016-02-10  Richard Biener  <rguenther@suse.de>
14020         PR tree-optimization/69726
14021         * passes.def: Add DCE pass before late uninit.
14022         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14023         really fixup if-conversions job.
14025 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14027         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14028         (arm_cortex_a57_tune): Likewise.
14029         (aarch_macro_fusion_pair_p): Add support for AES fusion.
14030         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14032 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14034         * timevar.def (TV_PHASE_DBGINFO): Delete.
14035         (TV_PHASE_CHECK_DBGINFO): Likewise.
14036         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14038 2016-02-10  Richard Biener  <rguenther@suse.de>
14040         PR tree-optimization/69719
14041         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14042         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14044 2016-02-09  Andrew Pinski  <apinski@cavium.com>
14046         PR tree-opt/69282
14047         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14048         get_vcond_mask_icode returns false.
14050 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
14052         PR target/68404
14053         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14054         an ADDIS that adds a pointer to a large constant that sets the
14055         upper16 bits with a load operation.
14057 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14059         PR target/68532
14060         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14061         order.
14062         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14063         endian.
14064         (vzipq_s16): Likewise.
14065         (vzipq_s32): Likewise.
14066         (vzipq_f32): Likewise.
14067         (vzipq_u8): Likewise.
14068         (vzipq_u16): Likewise.
14069         (vzipq_u32): Likewise.
14070         (vzipq_p8): Likewise.
14071         (vzipq_p16): Likewise.
14073 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14075         PR target/68532
14076         * config/arm/arm.c (neon_endian_lane_map): New function.
14077         (neon_vector_pair_endian_lane_map): New function.
14078         (arm_evpc_neon_vuzp): Allow for big endian lane order.
14079         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14080         endian.
14081         (vuzpq_s16): Likewise.
14082         (vuzpq_s32): Likewise.
14083         (vuzpq_f32): Likewise.
14084         (vuzpq_u8): Likewise.
14085         (vuzpq_u16): Likewise.
14086         (vuzpq_u32): Likewise.
14087         (vuzpq_p8): Likewise.
14088         (vuzpq_p16): Likewise.
14090 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
14092         PR target/69634
14093         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14094         debug insns.
14096 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
14098         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14099         truncate const_int operand 1 to QImode.
14101 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14103         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14104         corresponding to an abnormal edge.
14106 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14108         PR tree-optimization/69599
14109         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
14110         function.
14111         (find_func_aliases_for_builtin_call, find_func_clobbers)
14112         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
14113         partition.
14115 2016-02-09  Richard Biener  <rguenther@suse.de>
14117         PR tree-optimization/69715
14118         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
14119         LHS on calls as non-rewritable.
14121 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14123         PR lto/69707
14124         * lto-wrapper.c (append_diag_options): New function.
14125         (compile_offload_image): Call append_diag_options.
14127 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
14129         PR other/69722
14130         * doc/extend.texi (Flag Output Operands): Correct sectioning.
14131         Minor copy-edit to fix verb tenses.
14133 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
14135         PR tree-optimization/69209
14136         * ipa-split.c (split_function): If split part is not
14137         returning retval, retval has gimple type but is not
14138         gimple value, force it into a SSA_NAME first.
14140 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
14142         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
14143         outdated section.
14145 2016-02-08  Jason Merrill  <jason@redhat.com>
14147         PR c++/69631
14148         * convert.c (convert_to_integer_1): Check dofold on truncation
14149         distribution.
14150         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14151         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14152         Rename from *_nofold.
14153         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14154         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14156 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14158         PR target/60410
14159         * tree.c (build_common_tree_nodes): Remove short_double argument.
14160         All callers changed.
14161         * tree.h (build_common_tree_nodes): Adjust declaration.
14162         * doc/invoke.texi (-fshort-double): Remove documentation.
14163         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14164         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14165         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14166         (append_linker_options): Don't handle OPT_fshort_double.
14168         PR rtl-optimization/68730
14169         * lra-remat.c (insn_to_cand_activation): New static variable.
14170         (lra_remat): Allocate and free it.
14171         (create_cand): New arg activation. Initialize a field in
14172         insn_to_cand_activation if it is nonnull.
14173         (create_cands): Pass the activation insn to create_cand when making
14174         a candidate involving an output reload.  Reorganize code a little.
14175         (do_remat): Keep track of active status of candidates in a separate
14176         bitmap.
14178 2016-02-08  Richard Biener  <rguenther@suse.de>
14180         PR tree-optimization/69719
14181         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14182         Properly use absolute of the difference of the two offsets to
14183         compare or adjust the segment length.
14185 2016-02-08  Richard Biener  <rguenther@suse.de>
14186             Jeff Law  <law@redhat.com>
14188         PR target/68273
14189         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14190         types for anonymous SSA names.
14192 2016-02-08   Richard Biener  <rguenther@suse.de>
14194         PR rtl-optimization/69274
14195         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14197 2016-02-08  Jeff Law  <law@redhat.com>
14199         PR tree-optimization/65917
14200         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14201         equivalences from if (x == y) style conditionals.
14202         (loop_depth_of_name): Remove.
14203         (record_equality): Remove loop depth check.
14204         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14205         (const_and_copies::record_const_or_copy_raw): New member function.
14206         * tree-ssa-scopedtables.c
14207         (const_and_copies::record_const_or_copy_raw): New, factored out of
14208         (const_and_copies::record_const_or_copy): Call new member function.
14210 2016-02-05  Jeff Law  <law@redhat.com>
14212         PR tree-optimization/68541
14213         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14214         (count_stmts_in_block): New function.
14215         (poor_ifcvt_candidate_code): Likewise.
14216         (is_feasible_trace): Add some heuristics to determine when path
14217         splitting is profitable.
14218         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14219         is a diamond with a single exit.
14221 2016-02-05  Martin Sebor  <msebor@redhat.com>
14223         PR c++/69662
14224         * doc/invoke.texi: Update -Wplacement-new to take an optional
14225         argument.
14227 2016-02-06  Richard Henderson  <rth@redhat.com>
14229         PR c/69643
14230         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14231         out of non-standard address spaces.
14233 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14235         PR rtl-optimization/69691
14236         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14238 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14240         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14241         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14242         (*ieee128_mfvsrd_64bit): Likewise.
14243         (*ieee128_mfvsrd_32bit): Likewise.
14245 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14247         PR target/69369
14248         Revert r232560:
14249         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14251         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14252         instrumented_version.
14254 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14256         * doc/invoke.texi (Optimize Options): In table of --param options
14257         rename second occurrence of tracer-min-branch-ratio to
14258         tracer-min-branch-probability, rename
14259         tracer-min-branch-ratio-feedback to
14260         tracer-min-branch-probability-feedback and clarify description,
14261         rename sched-spec-state-edge-prob-cutoff to
14262         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14263         to selsched-insns-to-rename, rename lto-minpartition to
14264         lto-min-partition, delete reorder-blocks-duplicate and
14265         reorder-blocks-duplicate-feedback.
14267 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14269         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14270         superfluous loops.
14272 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14274         * doc/extend.texi: S/390: Correct some typos.
14276 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14278         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14280 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14282         PR target/69625
14283         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14284         (s390_register_info_gprtofpr): Use new macros above.
14285         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14286         its name.
14287         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14288         its name.  Adjust restore and save gpr ranges.
14289         (s390_register_info_set_ranges): New function.
14290         (s390_register_info): Use new macros above.  Call
14291         s390_register_info_set_ranges.
14292         (s390_optimize_register_info): Likewise.
14293         (s390_hard_regno_rename_ok): Use new macros.
14294         (s390_hard_regno_scratch_ok): Likewise.
14295         (s390_emit_epilogue): Likewise.
14296         (s390_can_use_return_insn): Likewise.
14297         (s390_optimize_prologue): Likewise.
14298         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
14300 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14302         PR bootstrap/69677
14303         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
14304         alignment fixes.
14305         (ix86_option_override_internal): Disable TARGET_STV even for
14306         -m{incoming,preferred}-stack-boundary=3.
14308 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14310         * config.gcc: Mark deprecated rtems targets as obsolete.
14312 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
14314         PR rtl-optimization/64682
14315         PR rtl-optimization/69567
14316         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
14317         before I2 only if the register is both used and set in I2.
14319 2016-02-04  DJ Delorie  <dj@redhat.com>
14321         * config/msp430/msp430.c (msp430_start_function): Add function type.
14323 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14325         PR fortran/69368
14326         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
14328 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
14330         PR rtl-optimization/69577
14331         Revert:
14332         2015-10-29  Richard Henderson  <rth@redhat.com>
14334         PR target/68124
14335         PR rtl-opt/67609
14336         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
14337         sse check to the exact conditions of PR 67609.
14339 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14341         PR target/69667
14342         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
14343         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
14344         not allowed into the traditional Altivec registers.
14345         (movtd_64bit_nodm): Likewise.
14346         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14348 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
14350         * config/aarch64/cortex-a57-fma-steering.c
14351         (aarch64_register_fma_steering): Remove "static" from arguments
14352         to register_pass.
14354 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
14356         PR target/69619
14357         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
14358         twice when complex.
14360 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
14362         * doc/invoke.texi: Delete -mno-fma4.
14364 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
14366         PR rtl-optimization/69577
14367         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
14368         (find_subregs_of_mode): Update accordingly.  Iterate over partial
14369         definitions.
14371 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
14373         * config/arm/arm-protos.h (neon_reinterpret): Remove.
14374         * config/arm/arm.c (neon_reinterpret): Remove.
14375         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
14376         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
14377         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
14378         vreinterpretti): Remove.
14379         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
14380         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14381         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
14382         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
14383         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
14384         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
14385         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
14386         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
14387         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
14388         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
14389         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
14390         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
14391         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
14392         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
14393         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
14394         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
14395         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
14396         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
14397         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
14398         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
14399         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
14400         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
14401         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
14402         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
14403         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
14404         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
14405         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
14406         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
14407         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
14408         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
14409         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
14410         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
14411         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
14412         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
14413         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
14414         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
14415         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
14416         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
14417         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
14418         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
14419         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
14420         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
14421         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
14422         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
14423         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
14424         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
14425         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
14426         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
14427         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
14428         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
14429         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
14430         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
14431         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
14432         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
14433         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
14434         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
14435         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
14436         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
14437         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
14438         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
14439         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
14440         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
14441         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
14442         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
14443         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
14444         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
14445         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
14446         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
14447         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
14448         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
14449         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
14450         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
14451         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
14452         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
14453         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
14454         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
14455         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
14456         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
14457         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
14458         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
14459         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
14460         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
14461         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
14462         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
14463         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
14464         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
14465         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
14466         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
14467         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
14468         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
14469         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
14470         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
14471         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
14472         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
14473         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
14474         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
14475         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
14476         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
14477         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
14478         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
14479         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
14480         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
14481         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
14483 2016-02-04  Martin Liska  <mliska@suse.cz>
14485         PR sanitizer/69276
14486         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
14487         that are gimple_store_p.
14488         (maybe_instrument_call): Likewise.
14490 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
14492         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
14493         register scaling out of memory reference and comment why.
14495 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14497         PR target/65932
14498         PR target/67714
14499         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
14500         folding the source of a SET.
14502 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14504         PR target/65932
14505         PR target/67714
14506         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
14507         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
14509 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
14511         PR target/65932
14512         PR target/67714
14513         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
14514         HImode.
14516 2016-02-04  Christian Bruel  <christian.bruel@st.com>
14518         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
14519         * config/arm/arm.c (arm_set_current_function): Likewise.
14521 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14522             Ilya Enkovich  <enkovich.gnu@gmail.com>
14523             H.J. Lu  <hongjiu.lu@intel.com>
14525         PR target/69454
14526         * config/i386/i386.c (convert_scalars_to_vector): Remove
14527         stack alignment fixes.
14528         (ix86_option_override_internal): Disable TARGET_STV if stack
14529         might not be aligned enough.
14530         (ix86_minimum_alignment): Assert that TARGET_STV is false.
14532 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
14534         * config/i386/x86-tune.def: Disable default prefetching
14535         for -march=znver1.
14537 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14538             Vladimir Makarov  <vmakarov@redhat.com>
14540         PR target/69461
14541         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
14542         in validating fused toc addresses.
14544 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
14546         PR c/69627
14547         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
14548         range->m_caret fields if range->m_show_caret_p is false.
14550         PR target/69644
14551         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14552         Force oldval into register if it does not satisfy reg_or_short_operand
14553         predicate.  Fix up formatting.
14555 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14556             Alexandre Oliva  <aoliva@redhat.com>
14558         PR target/69461
14559         * lra-constraints.c (simplify_operand_subreg): Check additionally
14560         address validity after potential reloading.
14561         (process_address_1): Check insns validity.  In case of failure do
14562         nothing.
14564 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14566         PR target/69118
14567         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
14568         Fix target.
14570 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
14572         * wide-int.cc (canonize_uhwi): New function.
14573         (wi::divmod_internal): Use it.
14575 2016-02-02  James Norris  <jnorris@codesourcery.com
14577         * gimplify.c (omp_notice_variable): Add usage check.
14579 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14581         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
14582         like LE, GE, LT, GT when emitting relational operator.
14584 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14586         * ira-costs.c (find_costs_and_classes): Add extra argument.
14587         * target.def (ira_change_pseudo_allocno_class): Add parameter.
14588         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
14589         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
14590         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
14591         Add best_class parameter, and return it if not ALL_REGS.
14592         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
14593         Add parameter.
14594         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
14595         Update target hook.
14597 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14599         * config/aarch64/aarch64.c
14600         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
14601         (aarch64_ira_change_pseudo_allocno_class): New function.
14603 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
14605         PR target/67032
14606         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
14608 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14610         * config/avr/avr.c (avr_option_override): Set
14611         PARAM_ALLOW_STORE_DATA_RACES to 1.
14613 2016-02-02  Richard Biener  <rguenther@suse.de>
14615         PR tree-optimization/69595
14616         * match.pd: Add range test simplifications to true/false.
14618 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14620         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
14621         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
14622         instead.
14624 2016-02-02  Richard Biener  <rguenther@suse.de>
14626         PR tree-optimization/69606
14627         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
14628         info on the result before moving a stmt.
14630 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
14632         PR middle-end/68542
14633         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
14634         branch with vector comparison.
14635         * config/i386/sse.md (VI48_AVX): New mode iterator.
14636         (define_expand "cbranch<mode>4): Add support for conditional branch
14637         with vector comparison.
14638         * tree-vect-loop.c (optimize_mask_stores): New function.
14639         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
14640         has_mask_store field of vect_info.
14641         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
14642         vectorized loops having masked stores after vec_info destroy.
14643         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
14644         correspondent macros.
14645         (optimize_mask_stores): Add prototype.
14647 2016-02-02  Alan Modra  <amodra@gmail.com>
14649         PR target/69548
14650         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
14651         allow subregs.
14653 2016-02-02  Alan Modra  <amodra@gmail.com>
14655         PR target/68662
14656         * config/rs6000/rs6000.c (need_toc_init): New var, set it
14657         whenever toc_label_name used.
14658         (rs6000_file_start): Don't set up toc section here,
14659         (rs6000_output_function_epilogue): do so here instead,
14660         (rs6000_xcoff_file_start): and here.
14661         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
14662         (load_toc_aix_di): Likewise.
14664 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14666         PR rtl-optimization/69592
14667         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
14668         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
14669         (num_sign_bit_copies_binary_arith_p): New inline function.
14670         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
14672 2016-02-01  Jeff Law  <law@redhat.com>
14674         PR tree-optimization/69580
14675         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
14676         * tree-ssa-threadbackward.c
14677         (fsm_find_control_statement_thread_paths): Do not try to walk
14678         through large PHI nodes.
14680 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14682         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
14683         when count is incremented above limit, don't analyze further
14684         insns afterwards.
14686         * omp-low.c (oacc_parse_default_dims): Avoid
14687         -Wsign-compare warning, make sure value fits into int
14688         rather than just unsigned int.
14690 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
14692         PR tree-optimization/67921
14693         * fold-const.c (split_tree): New parameters.  Convert pointer
14694         type variable part to proper type before negating.
14695         (fold_binary_loc): Pass new arguments to split_tree.
14697 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14699         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
14700         (nvptx_goacc_validate_dims): Extend to handle global defaults.
14701         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
14702         * doc/tm.texti: Rebuilt.
14703         * doc/invoke.texi (fopenacc-dim): Document.
14704         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
14705         (append_compiler_options): Likewise.
14706         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
14707         (oacc_parse_default_dims): New.
14708         (oacc_validate_dims): Add USED arg.  Select non-unity default when
14709         possible.
14710         (oacc_loop_fixed_partitions): Return mask of used partitions.
14711         (oacc_loop_auto_partitions): Emit dump info.
14712         (oacc_loop_partition): Return mask of used partitions.
14713         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
14714         loop partitioning and validation calls.
14716 2016-02-01  Richard Biener  <rguenther@suse.de>
14718         PR middle-end/69556
14719         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
14721 2016-02-01  Richard Biener  <rguenther@suse.de>
14723         PR tree-optimization/69574
14724         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
14725         of asserting return chrec_dont_know.
14727 2016-02-01  Martin Liska  <mliska@suse.cz>
14729         * mem-stats-traits.h: Add copyright header.
14730         * mem-stats.h: Likewise.
14732 2016-02-01  Richard Biener  <rguenther@suse.de>
14734         PR tree-optimization/69579
14735         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
14736         Do not propagate through abnormal PHI results.
14738 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
14740         * postreload.c (reload_cse_simplify): Remove dead code.
14742 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14744         PR rtl-optimization/69570
14745         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
14746         if there is more than one set, not if there is a single set.
14748 2016-02-01  Richard Henderson  <rth@redhat.com>
14750         PR rtl-opt/69535
14751         * combine.c (make_compound_operation): When looking through a
14752         subreg, make sure to re-extend to the width of the outer mode.
14754 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
14756         PR tree-optimization/69546
14757         * wide-int.cc (wi::divmod_internal): For unsigned division
14758         where both operands fit into uhwi, if o1 is 1 and o0 has
14759         msb set, if divident_prec is larger than bits per hwi,
14760         clear another quotient word and return 2 instead of 1.
14761         Similarly for remainder with msb in HWI set, if dividend_prec
14762         is larger than bits per hwi.
14764 2016-01-29  Martin Jambor  <mjambor@suse.cz>
14766         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
14767         Use short lowercase names.
14768         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
14769         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
14770         acq_rel one.  Protect warning agains segfaults if
14771         get_memory_order_name returns NULL.
14772         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
14773         with release semantics.  Do not warn if get_memory_order already did.
14774         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
14775         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
14776         if get_memory_order already did.
14778 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
14780         * doc/install.texi: Document that isl-0.16 is supported.
14782 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14784         PR target/69299
14785         * config/i386/constraints.md (Bm): Describe as special memory
14786         constraint.
14787         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
14788         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14789         * genpreds.c (struct constraint_data): Add is_special_memory.
14790         (have_special_memory_constraints, special_memory_start): New
14791         static vars.
14792         (special_memory_end): Ditto.
14793         (add_constraint): Add new arg is_special_memory.  Add code to
14794         process its true value.  Update have_special_memory_constraints.
14795         (process_define_constraint): Pass the new arg.
14796         (process_define_register_constraint): Ditto.
14797         (choose_enum_order): Process special memory.
14798         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
14799         function insn_extra_special_memory_constraint.
14800         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14801         * gensupport.c (process_rtx): Process
14802         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14803         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
14804         * ira-lives.c (single_reg_class): Use
14805         insn_extra_special_memory_constraint.
14806         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
14807         * lra-constraints.c (process_alt_operands): Ditto.
14808         (curr_insn_transform): Use insn_extra_special_memory_constraint.
14809         * recog.c (asm_operand_ok, preprocess_constraints): Process
14810         CT_SPECIAL_MEMORY.
14811         * reload.c (find_reloads): Ditto.
14812         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
14813         * stmt.c (parse_input_constraint): Use
14814         insn_extra_special_memory_constraint.
14816 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14818         PR target/69530
14819         * lra-splill.c (lra_final_code_change): Revert r229087 by
14820         removing all sub-registers.
14822 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
14824         PR target/65604
14825         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
14827 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
14829         PR target/69551
14830         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
14831         SSE1, copy target into the temporary reg first before recursing
14832         on it.
14834 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14836         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
14837         with vm.
14839 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14841         * ginclude/stdarg.h: Test __cplusplus instead of
14842         __GXX_EXPERIMENTAL_CXX0X__.
14844 2016-01-29  Richard Biener  <rguenther@suse.de>
14846         PR tree-optimization/69547
14847         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
14848         Do not mark clobbers necessary.
14849         (mark_all_reaching_defs_necessary_1): Likewise.
14851 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14853         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
14854         declaration name with %qs and print it in both error messages.
14855         Also fix indentation.
14857 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14859         PR other/69006
14860         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
14861         trailing blank line from error message.
14863 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14865         PR c++/69462
14866         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
14867         for C++-11.
14869 2016-01-29  Richard Biener  <rguenther@suse.de>
14871         PR middle-end/69537
14872         * match.pd: Allow all integral types when simplifying a
14873         widening or sign-changing conversion.
14875 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14877         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
14878         back to setting codegen_error to fail codegen.
14880 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
14882         PR target/69459
14883         * config/i386/constraints.md (C): Only accept constant zero operand.
14884         (BC): New constraint.
14885         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
14886         instead of C constraint.
14887         * doc/md.texi (Machine Constraints): Update description
14888         of C constraint.
14890 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
14892         PR target/68400
14893         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
14895 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
14897         PR middle-end/69542
14898         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
14899         non-debug insns.
14901 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
14903         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
14904         branches if using guessed profile.
14906 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
14908         * graphite-optimize-isl.c (optimize_isl): Fix dump.
14910 2016-01-28  Richard Henderson  <rth@redhat.com>
14912         PR target/69305
14913         * config/aarch64/aarch64-modes.def (CC_Cmode): New
14914         * config/aarch64/aarch64-protos.h: Update.
14915         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
14916         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
14917         (aarch64_get_condition_code_1): Handle CC_Cmode.
14918         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
14919         (*add<mode>3_compareC_cconly_imm): New.
14920         (*add<mode>3_compareC_cconly): New.
14921         (*add<mode>3_compareC_imm): New.
14922         (add<mode>3_compareC): New.
14923         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
14924         to be first.  Use aarch64_carry_operation.
14925         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
14926         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
14927         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
14928         (subti3): Use subdi3_compare1.
14929         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
14930         (sub<mode>3_compare1): New.
14931         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
14932         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
14933         (*subsi3_carryin_uxtw): Likewise.
14934         (*ngc<mode>, *ngcsi_uxtw): Likewise.
14935         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
14936         * config/aarch64/iterators.md (DWI): New.
14937         * config/aarch64/predicates.md (aarch64_carry_operation): New.
14938         (aarch64_borrow_operation): New.
14940 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
14942         * graphite-optimize-isl.c (optimize_isl): Print a different debug
14943         message when isl does not return a valid schedule.
14945 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14947         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14948         Remove comments from class declarations: they are already in the code
14949         close by the defs.
14951 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14953         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
14954         codegen_error_p.
14955         (ternary_op_to_tree): Same.
14956         (unary_op_to_tree): Same.
14957         (nary_op_to_tree): Same.
14958         (gcc_expression_from_isl_expr_op): Same.
14959         (gcc_expression_from_isl_expression): Same.
14960         (graphite_create_new_loop): Same.
14961         (graphite_create_new_loop_guard): Same.
14962         (build_iv_mapping): Same.
14963         (graphite_create_new_guard): Same.
14964         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
14965         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
14967 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14969         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
14970         instead of setting codegen_error to fail codegen.
14972 2016-01-28  Jason Merrill  <jason@redhat.com>
14974         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
14976 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14978         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14979         Remove CONST_INT_P check in CCMP cost calculation.
14981 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14983         * config/aarch64/aarch64.c (generic_vector_cost):
14984         Set vec_permute_cost.
14985         (cortexa57_vector_cost): Likewise.
14986         (exynosm1_vector_cost): Likewise.
14987         (xgene1_vector_cost): Likewise.
14988         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
14989         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
14990         Add vec_permute_cost entry.
14992 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14994         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
14995         immediate as %1.
14996         (add<mode>3_compare0): Likewise.
14997         (addsi3_compare0_uxtw): Likewise.
14998         (add<mode>3nr_compare0): Likewise.
14999         (compare_neg<mode>): Likewise.
15000         (<optab><mode>3): Likewise.
15002 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
15004         * tree-vect-stmts.c (vectorizable_comparison): Add
15005         NULL check for vectype.
15007 2016-01-28  Richard Biener  <rguenther@suse.de>
15009         PR tree-optimization/69466
15010         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15011         Account for PHIs we couldn't duplicate.
15013 2016-01-28  Martin Liska  <mliska@suse.cz>
15015         PR pch/68758
15016         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15017         instead of ENABLE_VALGRIND_CHECKING.
15019 2016-01-27  Richard Henderson  <rth@redhat.com>
15021         PR rtl-opt/69447
15022         * lra-remat.c (subreg_regs): New.
15023         (dump_candidates_and_remat_bb_data): Dump it.
15024         (operand_to_remat): Reject if operand in subreg_regs.
15025         (set_bb_regs): Collect subreg_regs.
15026         (lra_remat): Init and free subreg_regs.  Compute
15027         calculate_local_reg_remat_bb_data before create_cands.
15029 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15031         PR target/68986
15032         * config/i386/i386.c (ix86_update_stack_boundary): Don't
15033         change stack_alignment_needed for __tls_get_addr call.
15035 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
15037         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15039 2016-01-27  Jeff Law  <law@redhat.com>
15041         PR tree-optimization/68398
15042         PR tree-optimization/69196
15043         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15044         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15045         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15046         Only count PHIs in the last block in the path.  The others will
15047         const/copy propagate away.  Add heuristic to allow more irreducible
15048         subloops to be created when it is likely profitable to do so.
15050         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15051         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
15052         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
15054 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15056         PR lto/69254
15057         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15058         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15059         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15060         * tree-streamer-in.c: Include asan.h.
15061         (streamer_get_builtin_tree): For builtins in sanitizer
15062         range call initialize_sanitizer_builtins and retry.
15064 2016-01-27  Ian Lance Taylor  <iant@google.com>
15066         * common.opt (fkeep-gc-roots-live): New undocumented option.
15067         * tree-ssa-loop-ivopts.c (add_candidate_1): If
15068         -fkeep-gc-roots-live, skip pointers.
15069         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15070         NULL.
15072 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
15074         PR target/69512
15075         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15076         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15078 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
15080         PR target/68380
15081         * configure.ac: NetBSD provides SSP in its C library.
15082         * configure: Updated.
15084 2016-01-27  Richard Biener  <rguenther@suse.de>
15086         PR tree-optimization/69166
15087         * tree-vect-loop.c (vect_is_simple_reduction): Always check
15088         reduction code for commutativity / associativity.
15090 2016-01-27  Martin Jambor  <mjambor@suse.cz>
15092         PR tree-optimization/69355
15093         * tree-sra.c (analyze_access_subtree): Correct hole detection when
15094         total_scalarization fails.
15096 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
15098         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15099         power9.
15101 2016-01-27  Christian Bruel  <christian.bruel@st.com>
15103         PR target/69245
15104         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15105         Move arm_reset_previous_fndecl and set_target_option_current_node in
15106         the conditional part.  Call save_restore_target_globals.
15107         * config/arm/arm.c (arm_set_current_function):
15108         Refactor to better support #pragma target and attribute mix.
15109         Call save_restore_target_globals.
15110         * config/arm/arm-protos.h (save_restore_target_globals): New function.
15112 2016-01-27  Martin Liska  <mliska@suse.cz>
15114         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
15115         reference for an HSA kernel and its host function.
15117 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15119         PR tree-optimization/69399
15120         * wide-int.h (wi::lrshift): For larger precisions, only
15121         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
15123 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
15125         * config/arc/predicates.md (proper_comparison_operator): Reject
15126         constant-constant comparison.
15128 2016-01-26  Tom de Vries  <tom@codesourcery.com>
15130         PR tree-optimization/69110
15131         * tree-data-ref.c (initialize_data_dependence_relation): Handle
15132         DR_NUM_DIMENSIONS == 0.
15134 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15135             Sebastian Pop  <s.pop@samsung.com>
15137         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
15138         isl_ast_op_cond and isl_ast_op_select.
15139         (gcc_expression_from_isl_expr_op): Same.
15141 2016-01-26  Jason Merrill  <jason@redhat.com>
15143         PR c++/68782
15144         * tree.c (recompute_constructor_flags): Split out from
15145         build_constructor.
15146         (verify_constructor_flags): New.
15147         * tree.h: Declare them.
15149 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15151         PR rtl-optimization/69217
15152         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15153         are no TYPE_FIELDS set for the record type.
15155 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15157         PR target/68662
15158         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15159         toc_label_name unconditionally.
15160         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15161         SYMBOL_REF string.  Use toc_label_name instead of constructing
15162         LCTOC1.
15163         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15164         constructing LCTOC1.
15166 2016-01-26  Martin Sebor  <msebor@redhat.com>
15168         PR other/69477
15169         * doc/extend.texi (Common Type Attributes): Move text that talks about
15170         attribute packed from attribute aligned to the section discussing
15171         the former attribute for clarity.
15173 2016-01-26  Richard Henderson  <rth@redhat.com>
15175         PR middle-end/60908
15176         * trans-mem.c (tm_region_init): Mark entry block as visited.
15178 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15180         PR other/69006
15181         * diagnostic-show-locus.c (layout::print_source_line): Replace
15182         call to pp_newline with call to layout::print_newline.
15183         (layout::print_annotation_line): Likewise.
15184         (layout::move_to_column): Likewise.
15185         (layout::print_any_fixits): After printing any fixits, print a
15186         trailing newline, if necessary.
15187         (layout::print_newline): New method, resetting any colorization
15188         before a newline.
15189         (diagnostic_show_locus): Move the pp_newline to before the
15190         early bailout.  Remove dummy block enclosing the layout instance.
15191         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15192         of pp_newline_and_flush with pp_flush.
15193         (diagnostic_append_note): Delete use of pp_newline.
15194         (diagnostic_append_note_at_rich_loc): Delete.
15195         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15196         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15197         when newline characters are added to the buffer.
15199 2016-01-26  Michael Matz  <matz@suse.de>
15201         * configure.ac (ac_cv_std_swap_in_utility): New test.
15202         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15203         * configure: Regenerate.
15204         * config.in: Regenerate.
15206 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15208         * config/arc/arc.md (cstoresi4): Force operand into register.
15209         (arcset<code>): Fix predicate.
15210         (arcsetltu): Likewise.
15211         (arcsetgeu): Likewise.
15212         (arcsethi): Likewise.
15213         (arcsetls): Likewise.
15215 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15217         PR tree-optimization/69483
15218         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15219         if base has error_mark_node type.
15221 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15223         PR target/68620
15224         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15225         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15226         New helper macros.
15227         (vget_lane_f16): Handle big-endian.
15228         (vgetq_lane_f16): Likewise.
15229         (vset_lane_f16): Likewise.
15230         (vsetq_lane_f16): Likewise.
15231         * config/arm/iterators.md (VQXMOV): Add V8HF.
15232         (VDQ): Add V4HF and V8HF.
15233         (V_reg): Handle V4HF and V8HF.
15234         (Is_float_mode): Likewise.
15235         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15236         neon_vdup_nv8hf): New patterns.
15237         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15238         Use VD_LANE iterator.
15239         (neon_vld1_dup<mode>): Use VQ2 iterator.
15241 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15243         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15244         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15245         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15246         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15247         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15248         (oacc_validate_dims): Add LEVEL arg, don't return level.
15249         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15250         oacc_validate_dims.
15251         (execute_oacc_device_lower): Adjust, add more dump output.
15252         * tree-ssa-loop.c (gate_oacc_kernels): Use
15253         oacc_fn_attrib_kernels_p.
15254         * tree-parloops.c (create_parallel_loop): Adjust
15255         set_oacc_fn_attrib call.
15257 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15259         PR lto/69254
15260         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15261         (append_compiler_options): Handle -fcilkplus.
15262         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15264 2016-01-26  Nick Clifton  <nickc@redhat.com>
15266         PR target/66655
15267         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15268         been marked as DECL_ONE_ONLY but we do not the means to make it
15269         so, then do not allow it to bind locally.
15271 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15273         PR lto/69254
15274         * opts.h (parse_sanitizer_options): New prototype.
15275         * opts.c (sanitizer_opts): New array.
15276         (parse_sanitizer_options): New function.
15277         (common_handle_option): Use parse_sanitizer_options.
15279 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15281         PR target/68986
15282         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15283         alignment adjustment to ...
15284         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15285         __tls_get_addr.
15286         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15287         if __tls_get_addr is called.
15289 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15291         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15293 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15295         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
15297 2016-01-26  Richard Biener  <rguenther@suse.de>
15299         PR middle-end/69467
15300         * match.pd: Guard X * CST CMP 0 pattern with single_use.
15302 2016-01-26  Richard Biener  <rguenther@suse.de>
15304         PR tree-optimization/69452
15305         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
15306         (move_computations_dom_walker::before_dom_children): Rename
15307         to ...
15308         (move_computations_worker): This.
15309         (move_computations): Perform an RPO rather than a DOM walk.
15311 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15313         PR target/69442
15314         * combine.c (combine_instructions): For REG_EQUAL note with
15315         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
15316         to the underlying register.
15317         * doc/rtl.texi (REG_EQUAL): Document the behavior of
15318         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
15320 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
15322         PR target/67896
15323         * config/aarch64/aarch64-builtins.c
15324         (aarch64_init_simd_builtin_types): Do not set structural
15325         equality to __Poly{8,16,64,128}_t types.
15327 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
15329         PR tree-optimization/69400
15330         * wide-int.cc (wi_pack): Take the precision as argument and
15331         perform canonicalization here rather than in the callers.
15332         Use the main loop to handle all full-width HWIs.  Add a
15333         zero HWI if in_len isn't a full result.
15334         (wi::divmod_internal): Update accordingly.
15335         (wi::mul_internal): Likewise.  Simplify.
15337 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15338             Sebastian Pop  <s.pop@samsung.com>
15340         * graphite-poly.c (apply_poly_transforms): Simplify.
15341         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
15342         (print_isl_map): Same.
15343         (print_isl_union_map): Same.
15344         (print_isl_schedule): New.
15345         (debug_isl_schedule): New.
15346         * graphite-dependences.c (scop_get_reads): Do not call
15347         isl_union_map_add_map that is undocumented isl functionality.
15348         (scop_get_must_writes): Same.
15349         (scop_get_may_writes): Same.
15350         (scop_get_original_schedule): Remove.
15351         (scop_get_dependences): Do not call isl_union_map_compute_flow that
15352         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
15353         (compute_deps): Remove.
15354         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
15355         (debug_schedule_ast): New.
15356         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
15357         set_separate_option.
15358         (graphite_regenerate_ast_isl): Add dump.
15359         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
15360         from scop->transformed_schedule.
15361         (graphite_regenerate_ast_isl): Add more dump.
15362         * graphite-optimize-isl.c (optimize_isl): Set
15363         scop->transformed_schedule.  Check whether schedules are equal.
15364         (apply_poly_transforms): Move here.
15365         * graphite-poly.c (apply_poly_transforms): ... from here.
15366         (free_poly_bb): Static.
15367         (free_scop): Static.
15368         (pbb_number_of_iterations_at_time): Remove.
15369         (print_isl_ast): New.
15370         (debug_isl_ast): New.
15371         (debug_scop_pbb): New.
15372         * graphite-scop-detection.c (print_edge): Move.
15373         (print_sese): Move.
15374         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
15375         (build_scop_scattering): Remove.
15376         (create_pw_aff_from_tree): Assert instead of bailing out.
15377         (add_condition_to_pbb): Remove unused code, do not fail.
15378         (add_conditions_to_domain): Same.
15379         (add_conditions_to_constraints): Remove.
15380         (build_scop_context): New.
15381         (add_iter_domain_dimension): New.
15382         (build_iteration_domains): Initialize pbb->iterators.
15383         Call add_conditions_to_domain.
15384         (nested_in): New.
15385         (loop_at): New.
15386         (index_outermost_in_loop): New.
15387         (index_pbb_in_loop): New.
15388         (outermost_pbb_in): New.
15389         (add_in_sequence): New.
15390         (add_outer_projection): New.
15391         (outer_projection_mupa): New.
15392         (add_loop_schedule): New.
15393         (build_schedule_pbb): New.
15394         (build_schedule_loop): New.
15395         (embed_in_surrounding_loops): New.
15396         (build_schedule_loop_nest): New.
15397         (build_original_schedule): New.
15398         (build_poly_scop): Call build_original_schedule.
15399         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
15400         (free_poly_dr): Remove.
15401         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
15402         (free_poly_bb): Remove.
15403         (debug_loop_vec): Remove.
15404         (print_isl_ast): Declare.
15405         (debug_isl_ast): Declare.
15406         (scop_do_interchange): Remove.
15407         (scop_do_strip_mine): Remove.
15408         (scop_do_block): Remove.
15409         (flatten_all_loops): Remove.
15410         (optimize_isl): Remove.
15411         (pbb_number_of_iterations_at_time): Remove.
15412         (debug_scop_pbb): Declare.
15413         (print_schedule_ast): Declare.
15414         (debug_schedule_ast): Declare.
15415         (struct scop): Remove schedule.  Add original_schedule,
15416         transformed_schedule.
15417         (free_gimple_poly_bb): Remove.
15418         (print_generated_program): Remove.
15419         (debug_generated_program): Remove.
15420         (unify_scattering_dimensions): Remove.
15421         * sese.c (print_edge): ... here.
15422         (print_sese): ... here.
15423         (debug_edge): ... here.
15424         (debug_sese): ... here.
15425         * sese.h (print_edge): Declare.
15426         (print_sese): Declare.
15427         (dump_edge): Declare.
15428         (dump_sese): Declare.
15430 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15431             Sebastian Pop  <s.pop@samsung.com>
15433         * Makefile.in: Set ISLVER in site.exp.
15435 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
15437         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
15438         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
15439         through DECL_VALUE_EXPR for expansion.
15441 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15443         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
15444         the frame info after reload completed.
15446 2016-01-25  Jeff Law  <law@redhat.com>
15448         PR tree-optimization/69196
15449         PR tree-optimization/68398
15450         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
15451         tree-ssa-threadupdate.c.
15452         (determine_bb_domination_status): Prototype
15453         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
15454         (determine_bb_domination_status): No longer static.
15455         (valid_jump_thread_path): Remove code to detect characteristics
15456         of the jump thread path not associated with correctness.
15457         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
15458         Correct test for thread path length.  Count PHIs for real operands as
15459         statements that need to be copied.  Do not count ASSERT_EXPRs.
15460         Look at all the blocks in the thread path.  Compute and selectively
15461         filter thread paths based on threading through the latch, threading
15462         a multiway branch or crossing a multiway branch.
15464 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15466         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
15467         decl with __attribute__ ((unused)) annotation.
15469 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
15471         PR target/69421
15472         * tree-vect-stmts.c (vectorizable_condition): Check vectype
15473         of operands is compatible with a statement vectype.
15475 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
15477         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
15478         improve wording for mixed storage order support.
15480 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
15482         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
15483         (vcvt_u64_f64): Likewise.
15484         (vcvta_s64_f64): Likewise.
15485         (vcvta_u64_f64): Likewise.
15486         (vcvtm_s64_f64): Likewise.
15487         (vcvtm_u64_f64): Likewise.
15488         (vcvtn_s64_f64): Likewise.
15489         (vcvtn_u64_f64): Likewise.
15490         (vcvtp_s64_f64): Likewise.
15491         (vcvtp_u64_f64): Likewise.
15493 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
15495         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
15496         (arc_init): Check validity mll64 option.
15497         (arc_save_restore): Use double load/store instruction.
15498         (arc_expand_movmem): Likewise.
15499         (arc_split_move): Don't split if we have double load/store
15500         instructions. Returns a boolean.
15501         (arc_process_double_reg_moves): Change function to return boolean
15502         instead of a sequence of instructions.
15503         (arc_dwarf_register_span): New function.
15504         * config/arc/arc-protos.h (arc_split_move): Change prototype.
15505         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
15506         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
15507         (*movdf_insn): Likewise.
15508         * config/arc/arc.opt (mll64): New option.
15509         * config/arc/predicates.md (even_register_operand): New predicate.
15510         * doc/invoke.texi (ARC Options): Add mll64 documentation.
15512 2016-01-25  Richard Biener  <rguenther@suse.de>
15514         PR lto/69393
15515         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
15516         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
15517         DECL_NAMELESS.
15518         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
15520 2016-01-25  Richard Biener  <rguenther@suse.de>
15522         PR tree-optimization/69376
15523         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
15524         flag.
15525         (VN_INFO_ANTI_RANGE_P): New inline.
15526         (VN_INFO_RANGE_TYPE): Likewise.
15527         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
15528         SSA_NAME_ANTI_RANGE_P.
15529         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
15530         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15531         Properly query VN_INFO_RANGE_TYPE.
15533 2016-01-25  Nick Clifton  <nickc@redhat.com>
15535         PR target/66655
15536         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
15538 2016-01-23  Tom de Vries  <tom@codesourcery.com>
15540         PR tree-optimization/69426
15541         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
15542         removed clobber.
15544 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
15546         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
15547         "the the" with "the" in the comments.
15548         * ipa-devirt.c (build_type_inheritance_graph,
15549         update_type_inheritance_graph): Likewise.
15550         * tree.c (build_function_type_list_1): Likewise.
15551         * cfgloopmanip.c (scale_loop_profile): Likewise.
15552         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
15553         * gimple-ssa-split-paths.c
15554         (find_block_to_duplicate_for_splitting_paths): Likewise.
15555         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
15556         * expr.c (convert_move): Likewise.
15557         * var-tracking.c (vt_stack_adjustments): Likewise.
15558         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15559         * tree-vrp.c (test_for_singularity): Likewise.
15561         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
15562         directly instead of building a temporary tree.
15564         PR bootstrap/69434
15565         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
15566         remove <algorithm> include.
15568 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15570         PR target/69432
15571         * config/i386/i386.c: Include dojump.h.
15572         (expand_small_movmem_or_setmem,
15573         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
15574         fixes.
15575         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
15576         if dynamic_check != -1.
15578 2016-01-21  Jeff Law  <law@redhat.com>
15580         PR middle-end/69347
15581         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
15582         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
15583         into dominated_by_p.
15584         (cprop_into_successor_phis): Avoid unnecessary tests.
15586 2016-01-22  Richard Henderson  <rth@redhat.com>
15588         PR target/69416
15589         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
15590         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
15592 2016-01-22  Michael Matz  <matz@suse.de>
15594         * system.h (string, algorithm): Include only conditionally.
15595         (new): Include always under C++.
15596         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
15597         * final.c (toplevel): Ditto.
15598         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
15599         * genconditions.c (write_header): Make gencondmd.c define
15600         INCLUDE_STRING.
15601         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
15603         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
15604         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
15606 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15608         PR target/68674
15609         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
15611 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15613         PR target/69403
15614         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
15615         define_insn_and_split.  Ensure operands[1] and operands[0] do not
15616         get assigned the same register.
15618 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15620         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
15622 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15624         * config/arm/arm-c.c (arm_pragma_target_parse):
15625         Remove warn_builtin_macro_redefined overwrite.
15627 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15629         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
15630         flag_non_call_exceptions compatibility.
15632 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15634         PR debug/66668
15635         * dwarf2out.c (add_child_die_after): New function.
15636         (dwarf_qual_info_t): New type.
15637         (dwarf_qual_info): New variable.
15638         (qualified_die_p): New function.
15639         (modified_type_die): For -fdebug-types-section, ensure
15640         canonical order of qualifiers.  Put qualified DIEs adjacent
15641         to the corresponding non-qualified type DIE and search there
15642         for existing qualified DIEs.
15644 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15646         * doc/extend.texi (scalar_storage_order type attribute): Document
15647         restriction on type punning and aliasing, and remove future tense.
15649 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
15651         PR target/69252
15652         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
15653         first stage.
15655 2016-01-21  Jeff Law  <law@redhat.com>
15657         PR middle-end/69347
15658         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
15659         useless call to record_temporary_equivalences.
15660         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
15661         allocate 10 slots in the bb_path vector and let it grow as needed.
15662         (fsm_find_control_statement_thread_paths): Similarly for the next_path
15663         vector.
15665 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15667         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
15668         Detangle.
15669         * configure: Regenerate.
15671 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
15673         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
15674         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
15676 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
15678         PR middle-end/66178
15679         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15680         drop EXPAND_INITIALIZER.
15681         * rtl.h (contains_symbolic_reference_p): Declare.
15682         * rtlanal.c (contains_symbolic_reference_p): New function.
15683         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
15684         a subtraction into a NOT if symbolic constants are involved.
15686 2016-01-21  Anton Blanchard  <anton@samba.org>
15687             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15689         PR target/63354
15690         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
15691         #define.
15692         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
15693         function.
15695 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15697         * config/microblaze/microblaze.c
15698         (get_branch_target): New.
15699         (insert_wic_for_ilb_runout): New.
15700         (insert_wic): New.
15701         (microblaze_machine_dependent_reorg): New.
15702         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
15703         * config/microblaze/microblaze.md
15704         (UNSPEC_IPREFETCH): Define.
15705         (iprefetch): New pattern
15706         * config/microblaze/microblaze.opt
15707         (mxl-prefetch): New flag.
15709 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15711         * config/microblaze/microblaze.h
15712         (FIXED_REGISTERS): Update in macro.
15713         (CALL_USED_REGISTERS): Update in macro.
15715 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
15717         PR rtl-optimization/68920
15718         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
15719         moves.
15721 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15723         PR rtl-optimization/68990
15724         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
15725         pseudo instead of inheritance ones.
15727 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15728             Nick Clifton  <nickc@redhat.com>
15730         PR target/69129
15731         PR target/69012
15732         * config/mips/mips.c (mips_compute_frame_info): Initialise
15733         args_size and hard_frame_pointer_offset fields of the frame
15734         structure before calling mips_global_pointer.
15736 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15738         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
15739         label reference.
15740         * configure: Regenerate.
15742 2016-01-21  Richard Biener  <rguenther@suse.de>
15744         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
15746 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15748         * config/s390/s390.c (s390_asm_declare_function_size): Add code
15749         to actually emit the .size directive.
15751 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
15752              Jakub Jelinek  <jakub@redhat.com>
15754         PR target/69187
15755         PR target/65624
15756         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
15757         args array size by one to avoid buffer overflow.
15759 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15761         * config/s390/s390.md (pool_section_start): Use switch_to_section
15762         to select proper read-only data section instead of hardcoding
15763         .rodata.
15764         (pool_section_end): Use switch_to_section to match the above.
15766 2016-01-21  Richard Biener  <rguenther@suse.de>
15768         PR tree-optimization/69378
15769         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
15770         (set_ssa_val_to): Use it for dominance checks taking into
15771         account not executable edges.
15773 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15775         PR c++/69355
15776         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
15777         for bitsize instead of GET_MODE_PRECISION (mode).
15779 2016-01-20  Martin Sebor  <msebor@redhat.com>
15781         PR c/52291
15782         * extend.texi (__sync Builtins): Clarify the semantics of
15783         __sync_fetch_and_OP built-ins on pointers.
15784         (__atomic Builtins): Same.
15786 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15787             Sebastian Pop  <s.pop@samsung.com>
15789         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
15790         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
15791         (is_valid_rename): Same.
15792         (translate_isl_ast_to_gimple::get_rename): Same.
15793         (translate_isl_ast_to_gimple::rename_all_uses): Same.
15794         (translate_isl_ast_to_gimple::rename_uses): Same.
15795         (get_new_name): Check for close_phi nodes.
15796         (copy_loop_phi_args): Use phi_node_kind.
15797         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
15798         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
15800 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15801             Sebastian Pop  <s.pop@samsung.com>
15803         Revert commit r229783.
15804         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15805         Remove use of parameter_rename_map.
15806         (copy_def): Remove.
15807         (copy_internal_parameters): Remove.
15808         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
15809         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
15810         (free_sese_info): Do not free parameter_rename_map.
15811         (set_rename): Do not use parameter_rename_map.
15812         (rename_uses): Update call to set_rename.
15813         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
15814         * sese.h (parameter_rename_map_t): Remove.
15815         (struct sese_info_t): Remove field parameter_rename_map.
15817 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15818             Sebastian Pop  <s.pop@samsung.com>
15820         * graphite-isl-ast-to-gimple.c: Fix comment.
15821         * graphite-scop-detection.c (defined_in_loop_p): New.
15822         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
15823         names defined in loop.
15825 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15826             Sebastian Pop  <s.pop@samsung.com>
15828         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15829         Discard unstructured if-then-else regions.
15831 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15832             Sebastian Pop  <s.pop@samsung.com>
15834         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
15835         (cleanup_loop_iter_dom): Remove.
15836         (build_loop_iteration_domains): Remove.
15837         (build_scop_context): Remove.
15838         (build_scop_iteration_domain): Remove.
15839         (add_loop_constraints): New.
15840         (build_iteration_domains): New.
15841         (build_poly_scop): Call build_iteration_domains.
15843 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15844             Sebastian Pop  <s.pop@samsung.com>
15846         * graphite-scop-detection.c
15847         (scop_detection::harmful_loop_in_region): Free dom and loops.
15848         (scop_detection::loop_body_is_valid_scop): Free bbs.
15850 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15851             Sebastian Pop  <s.pop@samsung.com>
15853         * graphite-scop-detection.c (record_loop_in_sese): New.
15854         (gather_bbs::before_dom_children): Call record_loop_in_sese.
15855         (build_scops): Remove call to build_sese_loop_nests.
15856         * sese.c (sese_record_loop): Remove.
15857         (build_sese_loop_nests): Remove.
15858         (new_sese_info): Remove region->loops.
15859         (free_sese_info): Same.
15860         * sese.h (sese_contains_loop): Same.
15861         (build_sese_loop_nests): Remove.
15862         (sese_contains_loop): Remove.
15864 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15865             Sebastian Pop  <s.pop@samsung.com>
15867         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
15868         loop_is_valid_in_scop.
15869         (scop_detection::harmful_stmt_in_region): Renamed
15870         harmful_loop_in_region.
15871         Call loop_is_valid_in_scop.
15873 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15874             Sebastian Pop  <s.pop@samsung.com>
15876         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
15877         isl_ast_node_mark.
15879 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15880             Sebastian Pop  <s.pop@samsung.com>
15882         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
15883         * graphite.h (struct poly_bb): Remove field is_reduction.
15884         (PBB_IS_REDUCTION): Remove.
15886 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15887             Sebastian Pop  <s.pop@samsung.com>
15889         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
15890         (add_pdr_constraints): Same.
15891         (scop_get_reads): Same.
15892         (scop_get_must_writes): Same.
15893         (scop_get_may_writes): Same.
15894         (scop_get_original_schedule): Same.
15895         (extend_schedule): Same.
15896         (apply_schedule_on_deps): Same.
15897         (carries_deps): Same.
15898         (compute_deps): Same.
15899         (scop_get_dependences): Same.
15900         * graphite-isl-ast-to-gimple.c
15901         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
15902         * graphite-optimize-isl.c (get_schedule_for_band): Same.
15903         (get_schedule_for_band_list): Same.
15904         (get_schedule_map): Same.
15905         (apply_schedule_map_to_scop): Same.
15906         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15907         (build_loop_iteration_domains): Same.
15908         (add_condition_to_pbb): Same.
15909         (add_param_constraints): Same.
15910         (pdr_add_memory_accesses): Same.
15911         (pdr_add_data_dimensions): Same.
15913 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15915         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
15916         requirements.
15918 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15920         * common.opt (feliminate-dwarf2-dups): Replace references to
15921         "DWARF 2" with just "DWARF".
15922         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
15923         * doc/extend.texi: Likewise.
15924         * doc/cpp.texi: Likewise.
15925         * doc/invoke.texi: Likewise.
15926         (Option Summary): Add -gdwarf to list of Debugging Options.
15927         (Debugging Options): Document -gdwarf.
15928         * doc/contrib.texi: Spell "DWARF" like that.
15930 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15932         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
15933         warning.  Fix up formatting.
15935         PR middle-end/67653
15936         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
15937         attempt to mark memory input operand addressable and
15938         call prepare_gimple_addressable in that case.  Don't adjust
15939         input_location for diagnostics, use error_at instead.
15941 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
15943         * config/rs6000/ppc-auxv.h: New file.
15944         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
15945         (cpu_is): Likewise.
15946         (cpu_supports): Likewise.
15947         * config/rs6000/rs6000.c: include "ppc-auxv.h".
15948         (cpu_is_info): New variable.
15949         (cpu_supports_info): Likewise.
15950         (tcb_verification_symbol): Likewise.
15951         (cpu_builtin_p): Likewise.
15952         (cpu_expand_builtin): New function.
15953         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
15954         (rs6000_init_builtins): Likewise.
15955         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
15956         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
15957         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
15958         * configure: Regenerate.
15959         * config.in: Likewise.
15960         * doc/extend.texi (PowerPC Built-in Functions): Document
15961         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
15963 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
15965         PR target/68609
15966         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
15967         domain check.
15968         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
15969         for V4SFmode.
15971 2016-01-20  Richard Henderson  <rth@redhat.com>
15973         PR bootstrap/69343
15974         PR bootstrap/69339
15975         PR tree-opt/68964
15976         Revert:
15977         * tree.c (tm_define_builtin): New.
15978         (find_tm_vector_type): New.
15979         (build_tm_vector_builtins): New.
15980         (build_common_builtin_nodes): Call it.
15982 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
15984         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
15985         (arm_fp_ok): Likewise.
15986         (arm_fp): Likewise.
15987         (arm_crypto): Likewise.
15989 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
15990             Richard Biener  <rguenther@suse.de>
15992         PR tree-optimization/69328
15993         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
15994         vectors have same number of elements.
15995         (vectorizable_condition): Fix masked version recognition.
15997 2016-01-20  Richard Biener  <rguenther@suse.de>
15999         PR tree-optimization/69345
16000         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16001         (VN_INFO_PTR_INFO): Likewise.
16002         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16003         info when it is equal between non-dominating SSA names.
16004         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16005         Make sure to look at original SSA infos.
16007 2016-01-20  Jeff Law  <law@redhat.com>
16009         PR target/25114
16010         * config/m68k/predicates.md (pow2_m1_operand): New predicate
16011         extracted from ...
16012         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16013         (pc_or_label_operand): New predicate.
16014         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16015         tests for small integers that are 2^n - 1.
16017 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
16019         * doc/invoke.texi (Options Summary): Add '.' after @xref.
16021 2016-01-19  Jeff Law  <law@redhat.com>
16023         PR middle-end/69347
16024         * tree-ssa-threadbackwards.c
16025         (fsm_find_control_statement_thread_paths): Do not try to lookup
16026         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16028 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16030         * doc/lto.texi: Remove text that says only Gold has linker plugin
16031         support.
16033 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
16035         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16036         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16037         the DIE accordingly.
16038         (modified_type_die): Add REVERSE parameter and pass it recursively,
16039         as well as to base_type_die.  Adjust presence check accordingly.
16040         (base_type_for_mode): Adjust call to modified_type_die.
16041         (add_type_attribute): Add REVERSE parameter and pass it to
16042         modified_type_die.
16043         (generic_parameter_die): Adjust call to add_type_attribute.
16044         (add_scalar_info): Likewise.
16045         (add_subscript_info): Likewise.
16046         (gen_array_type_die): Likewise.
16047         (gen_descr_array_type_die): Likewise.
16048         (gen_entry_point_die): Likewise.
16049         (gen_enumeration_type_die): Likewise.
16050         (gen_formal_parameter_die): Likewise.
16051         (gen_subprogram_die): Likewise.
16052         (gen_variable_die ): Likewise.
16053         (gen_const_die): Likewise.
16054         (gen_field_die): Likewise.
16055         (gen_pointer_type_die): Likewise.
16056         (gen_reference_type_die): Likewise.
16057         (gen_ptr_to_mbr_type_die): Likewise.
16058         (gen_inheritance_die): Likewise.
16059         (gen_subroutine_type_die): Likewise.
16060         (gen_typedef_die): Likewise.
16061         (force_type_die): Adjust call to modified_type_die.
16063 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
16065         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16066         flow throughout the file.  Fix broken link to Objective-C 2.0
16067         documentation.
16068         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16069         errors.
16071 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16073         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16075 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16077         PR ipa/66223
16078         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16079         (maybe_record_node): Record cxa_pure_virtual as the only possible
16080         target if there are not ohter candidates.
16081         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16083 2016-01-19  Richard Biener  <rguenther@suse.de>
16085         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16086         (get_memory_order): Likewise.
16088 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16090         * tree-vect-stmts.c (vectorizable_store): Check
16091         rhs vectype.
16093 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
16095         PR jit/68446
16096         * gcc.c (driver::decode_argv): Add call to
16097         init_opts_obstack before init_options_struct.
16098         * opts.c (init_opts_obstack): Remove idempotency.
16099         (init_options_struct): Replace call to init_opts_obstack
16100         with a gcc_assert to verify that it has already been called.
16101         * toplev.c (toplev::main): Add call to init_opts_obstack before
16102         calls to init_options_struct.
16103         (toplev::finalize): Move cleanup of opts_obstack next to
16104         cleanup of save_decoded_options, clearing the latter, and
16105         save_decoded_options_count.
16107 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16109         PR target/69135
16110         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
16111         attribute to unconditional.  Remove %? from output template.
16113 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16114             Jiong Wang  <jiong.wang@arm.com>
16116         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
16117         generated from different expand order.
16119 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16121         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16122         Add support for CCMP costing.
16124 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16126         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
16127         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
16128         (fccmpe<mode>): Likewise.
16129         (fcmp): Rename to fcmp and globalize pattern.
16130         (fcmpe): Likewise.
16131         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
16132         (aarch64_gen_ccmp_next): Add FP support.
16134 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16136         * target.def (gen_ccmp_first): Update documentation.
16137         (gen_ccmp_next): Likewise.
16138         * doc/tm.texi (gen_ccmp_first): Update documentation.
16139         (gen_ccmp_next): Likewise.
16140         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
16141         expand_ccmp_expr_1.  Improve comments.
16142         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
16143         (ccmp_ior<mode>): Remove pattern.
16144         (cmp<mode>): Remove expand.
16145         (cmp): Globalize pattern.
16146         (cstorecc4): Use cc_register.
16147         (mov<mode>cc): Remove ccmp_cc_register check.
16148         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
16149         Simplify after removal of CC_DNE/* modes.
16150         (aarch64_ccmp_mode_to_code): Remove.
16151         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16152         In 'k' case use integer as condition.
16153         (aarch64_nzcv_codes): Remove inverted cases.
16154         (aarch64_code_to_ccmode): Remove.
16155         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16156         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16157         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16158         pattern.  Return the comparison with CC register.  Invert conditions
16159         when bitcode is OR.
16160         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16161         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16163 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16165         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16166         instrumented_version.
16168 2016-01-19  Richard Biener  <rguenther@suse.de>
16170         PR tree-optimization/69336
16171         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16172         handled components with get_ref_base_and_extent.
16173         (equal_mem_array_ref_p): Adjust.
16175 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16177         PR debug/65779
16178         * shrink-wrap.c: Include valtrack.h.
16179         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16180         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16181         in between insn and where it will be moved to.  Call
16182         dead_debug_insert_temp.
16183         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16184         first and dead_debug_local_finish at the end.
16185         For uses and defs bitmap, handle all regs in between REGNO and
16186         END_REGNO, not just the first one.
16188 2016-01-19  Richard Biener  <rguenther@suse.de>
16190         PR tree-optimization/69352
16191         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16192         (equal_mem_array_ref_p): Constrain size and max size properly.
16193         Compare the reverse flag.
16195 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16197         * ira.c (ira): Update regstat data if we deleted insns.
16199 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16201         PR rtl-optimization/68955
16202         PR rtl-optimization/64557
16203         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16204         here.  Fix up formatting.
16205         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16207 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16209         PR lto/69133
16210         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16211         assume that the node has body.
16212         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16213         check.
16215 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16217         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16218         thunks.
16220 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16222         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16223         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16225 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16226             Martin Liska  <mliska@suse.cz>
16227             Michael Matz  <matz@suse.de>
16229         * Makefile.in (OBJS): Add new source files.
16230         (GTFILES): Add hsa.c.
16231         * common.opt (disable_hsa): New variable.
16232         (-Whsa): New warning.
16233         * config.in (ENABLE_HSA): New.
16234         * configure.ac: Treat hsa differently from other accelerators.
16235         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16236         $enable_offloading.
16237         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16238         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16239         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16240         --with-hsa-kmt-lib.
16241         * doc/invoke.texi (-Whsa): Document.
16242         (hsa-gen-debug-stores): Likewise.
16243         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16244         to invoke offload compiler for hsa acclerator.
16245         * opts.c (common_handle_option): Determine whether HSA offloading
16246         should be performed.
16247         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16248         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16249         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16250         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16251         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16252         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16253         GF_OMP_FOR_KIND_GRID_LOOP.
16254         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16255         (pp_gimple_stmt_1): Likewise.
16256         * gimple-walk.c (walk_gimple_stmt): Likewise.
16257         * gimple.c (gimple_build_omp_grid_body): New function.
16258         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16259         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16260         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16261         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16262         GF_OMP_TEAMS_GRID_PHONY.
16263         (gimple_statement_omp_single_layout): Updated comments.
16264         (gimple_build_omp_grid_body): New function.
16265         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16266         (gimple_omp_for_grid_phony): New function.
16267         (gimple_omp_for_set_grid_phony): Likewise.
16268         (gimple_omp_parallel_grid_phony): Likewise.
16269         (gimple_omp_parallel_set_grid_phony): Likewise.
16270         (gimple_omp_teams_grid_phony): Likewise.
16271         (gimple_omp_teams_set_grid_phony): Likewise.
16272         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16273         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16274         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16275         (BUILT_IN_GOMP_TARGET): Updated type.
16276         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16277         (adjust_for_condition): New function.
16278         (get_omp_for_step_from_incr): Likewise.
16279         (extract_omp_for_data): Moved parts to adjust_for_condition and
16280         get_omp_for_step_from_incr.
16281         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16282         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16283         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16284         (scan_omp_parallel): Do not create child functions for phony
16285         constructs.
16286         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16287         (scan_omp_1_op): Checking assert we are not remapping to
16288         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16289         (parallel_needs_hsa_kernel_p): New function.
16290         (expand_parallel_call): Register apprpriate parallel child
16291         functions as HSA kernels.
16292         (grid_launch_attributes_trees): New type.
16293         (grid_attr_trees): New variable.
16294         (grid_create_kernel_launch_attr_types): New function.
16295         (grid_insert_store_range_dim): Likewise.
16296         (grid_get_kernel_launch_attributes): Likewise.
16297         (get_target_argument_identifier_1): Likewise.
16298         (get_target_argument_identifier): Likewise.
16299         (get_target_argument_value): Likewise.
16300         (push_target_argument_according_to_value): Likewise.
16301         (get_target_arguments): Likewise.
16302         (expand_omp_target): Call get_target_arguments instead of looking
16303         up for teams and thread limit.
16304         (grid_expand_omp_for_loop): New function.
16305         (grid_arg_decl_map): New type.
16306         (grid_remap_kernel_arg_accesses): New function.
16307         (grid_expand_target_kernel_body): New function.
16308         (expand_omp): Call it.
16309         (lower_omp_for): Do not emit phony constructs.
16310         (lower_omp_taskreg): Do not emit phony constructs but create for them
16311         a temporary variable receiver_decl.
16312         (lower_omp_taskreg): Do not emit phony constructs.
16313         (lower_omp_teams): Likewise.
16314         (lower_omp_grid_body): New function.
16315         (lower_omp_1): Call it.
16316         (grid_reg_assignment_to_local_var_p): New function.
16317         (grid_seq_only_contains_local_assignments): Likewise.
16318         (grid_find_single_omp_among_assignments_1): Likewise.
16319         (grid_find_single_omp_among_assignments): Likewise.
16320         (grid_find_ungridifiable_statement): Likewise.
16321         (grid_target_follows_gridifiable_pattern): Likewise.
16322         (grid_remap_prebody_decls): Likewise.
16323         (grid_copy_leading_local_assignments): Likewise.
16324         (grid_process_kernel_body_copy): Likewise.
16325         (grid_attempt_target_gridification): Likewise.
16326         (grid_gridify_all_targets_stmt): Likewise.
16327         (grid_gridify_all_targets): Likewise.
16328         (execute_lower_omp): Call grid_gridify_all_targets.
16329         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
16330         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
16331         (tree_omp_clause): Added union field dimension.
16332         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
16333         * tree.c (omp_clause_num_ops): Added number of arguments of
16334         OMP_CLAUSE__GRIDDIM_.
16335         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
16336         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
16337         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
16338         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
16339         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
16340         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
16341         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
16342         * tree-pass.h (make_pass_gen_hsail): Declare.
16343         (make_pass_ipa_hsa): Likewise.
16344         * ipa-hsa.c: New file.
16345         * lto-section-in.c (lto_section_name): Add hsa section name.
16346         * lto-streamer.h (lto_section_type): Add hsa section.
16347         * timevar.def (TV_IPA_HSA): New.
16348         * hsa-brig-format.h: New file.
16349         * hsa-brig.c: New file.
16350         * hsa-dump.c: Likewise.
16351         * hsa-gen.c: Likewise.
16352         * hsa.c: Likewise.
16353         * hsa.h: Likewise.
16354         * toplev.c (compile_file): Call hsa_output_brig.
16355         * hsa-regalloc.c: New file.
16357 2016-01-18  Jeff Law  <law@redhat.com>
16359         PR tree-optimization/69320
16360         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
16361         ranged object, do nothing if the RHS constant is not [0..1].
16362         (optimize_stmt): Comparing a boolean ranged object against a
16363         constant outside [0..1] results in a compile-time constant.
16365         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
16366         test.
16368 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16370         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16371         (Option Summary): Update to reflect new section and moved options.
16372         (C++ Dialect Options): Move -fstats to new section.
16373         (Debugging Options): Move all dump, statistics, and other GCC
16374         developer options to new section.  Rewrite section introduction
16375         and re-order remaining options to put the more basic ones first.
16376         (Optimization Options): Move -fira-verbose and -flto-report* to
16377         new section.
16378         (Developer Options): New section incorporating moved options.
16379         * doc/cppopts.texi (-dM): Update cross-reference.
16381 2016-01-18  Richard Henderson  <rth@redhat.com>
16383         PR target/69176
16384         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
16385         operands to pseudo only if CSE is expected.  Split long immediate
16386         operands only after reload, and for the stack pointer.
16387         (*add<GPI>3_pluslong): Remove.
16388         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
16389         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
16390         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
16391         (*add<GPI>3 peepholes): New.
16392         (*add<GPI>3 splitters): New.
16393         * config/aarch64/constraints.md (Upl): New.
16394         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
16396 2016-01-18  Richard Biener  <rguenther@suse.de>
16398         PR tree-optimization/69297
16399         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
16400         stmt at most once.
16401         (vect_bb_vectorization_profitable_p): Clear visited flag again.
16403 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16405         PR middle-end/68542
16406         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
16407         of mixind vector and scalar types.
16408         (fold_relational_const): Add handling of vector
16409         comparison with boolean result.
16410         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
16411         comparison of vector operands with boolean result for EQ/NE only.
16412         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
16413         (verify_gimple_cond): Likewise.
16414         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
16415         valid type of VAL.
16417 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
16419         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
16420         !TARGET_OCTEON.
16422 2016-01-18  Richard Biener  <rguenther@suse.de>
16424         PR middle-end/69308
16425         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
16427 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16429         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
16431 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16433         * omp-low.c (set_oacc_fn_attrib): Make extern.
16434         * omp-low.h (set_oacc_fn_attrib): Declare.
16435         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
16436         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
16437         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
16438         Add and handle function parameter oacc_kernels_p.
16439         (find_reduc_addr, get_omp_data_i_param): New function.
16440         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
16441         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
16442         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
16443         Calculate dominance info.  Skip loops that are not in a kernels region
16444         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
16445         (pass_parallelize_loops::execute): Call parallelize_loops with
16446         oacc_kernels_p argument.
16447         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
16448         New member function.
16449         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
16450         * passes.def: Add argument to pass_parallelize_loops instantation.
16452 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16454         * tree-parloops.c (pass_parallelize_loops::execute): Allow
16455         pass_parallelize_loops to be run outside the loop pipeline.
16457 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16459         * tree-scalar-evolution.c (follow_copies_to_constant): New.
16460         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
16462 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16464         PR target/63679
16465         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
16466         using get_ref_base_and_extent.
16467         (equal_mem_array_ref_p): New.
16468         (hashable_expr_equal_p): Add call to previous.
16470 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16472         PR target/63679
16473         * tree-sra.c (disqualified_constants, constant_decl_p): New.
16474         (sra_initialize): Allocate disqualified_constants.
16475         (sra_deinitialize): Free disqualified_constants.
16476         (disqualify_candidate): Update disqualified_constants when appropriate.
16477         (create_access): Scan for constant-pool entries as we go along.
16478         (scalarizable_type_p): Add check against type_contains_placeholder_p.
16479         (maybe_add_sra_candidate): Allow constant-pool entries.
16480         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
16481         (initialize_constant_pool_replacements): New.
16482         (sra_modify_assign): Avoid mangling assignments created by previous,
16483         and don't generate writes into constant pool.
16484         (sra_modify_function_body): Call initialize_constant_pool_replacements.
16486 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16488         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
16489         andnot instruction.
16490         (scalar_chain::convert_op): Likewise.
16491         * config/i386/i386.md (*andndi3_doubleword): New.
16493 2016-01-18  Richard Biener  <rguenther@suse.de>
16495         PR tree-optimization/69170
16496         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
16497         building a vector from scalar results of a pattern stmt.
16499 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
16501         * haifa-sched.c (autopref_multipass_init): Work around
16502         -Wmaybe-uninitialized warning.
16504 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16506         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
16507         against the constant 0.
16509 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16511         PR tree-optimization/68799
16512         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
16513         look up phi candidates in the statement-candidate map.
16514         (phi_add_costs): Likewise.
16515         (record_phi_increments): Likewise.
16516         (phi_incr_cost): Likewise.
16517         (ncd_with_phi): Likewise.
16518         (all_phi_incrs_profitable): Likewise.
16520 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
16522         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
16523         -Wmaybe-uninitialized warning.
16525 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
16527         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16528         (Option Summary): Update to reflect new section and moved options.
16529         (C++ Dialect Options): Move -fvtable-verify and related options.
16530         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
16531         and profiling-related options.
16532         (Optimization Options): Move profile generation options and
16533         -fstack-protector and related options.
16534         (Instrumentation Options): New section incorporating moved options.
16535         (Code Generation Options): Move -finstrument-functions and
16536         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
16538 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16540         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
16542 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16544         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
16546 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
16548         * hash-table.h (hash_table::empty): Turn into an inline wrapper
16549         that checks whether the table is already empty.  Rename the
16550         original implementation to...
16551         (hash_table::empty_slot): ...this new private function.
16553 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
16555         PR diagnostic/68899
16556         * diagnostic-show-locus.c (layout::print_source_line): Move x
16557         offset of line until after call to
16558         get_line_width_without_trailing_whitespace.
16560 2016-01-15  Jeff Law  <law@redhat.com>
16562         PR tree-optimization/69270
16563         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
16564         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
16565         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
16566         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
16567         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16568         ssa_name_has_boolean_range and constant_boolean_node.
16570 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16572         PR rtl-optimization/69030
16573         * lra-spills.c (remove_pseudos): Check nrefs and make the function
16574         returning bool.
16575         (spill_pseudos): Delete debug insn for dead pseudo.
16576         (lra_spill): Initiate spill_hard_reg and slots memory separately.
16578 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
16580         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
16581         New.
16582         (TYPES_UNOPUS): Likewise.
16583         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
16584         builtin type, from UNOP to UNOPUS.
16585         (lbtruncuv4sf): Likewise.
16586         (lbtruncuv2df): Likewise.
16587         (lrounduv2sf): Likewise.
16588         (lrounduv4sf): Likewise.
16589         (lrounduv2df): Likewise.
16590         (lroundusf): Likewise.
16591         (lroundusf): Likewise.
16592         (lceiluv2sf): Likewise.
16593         (lceiluv4sf): Likewise.
16594         (lceiluv2df): Likewise.
16595         (lceilusf): Likewise.
16596         (lceiludf): Likewise.
16597         (lflooruv2sf): Likewise.
16598         (lflooruv4sf): Likewise.
16599         (lflooruv2df): Likewise.
16600         (lfloorusf): Likewise.
16601         (lfloorudf): Likewise.
16602         (lfrintnuv2sf): Likewise.
16603         (lfrintnuv4sf): Likewise.
16604         (lfrintnuv2df): Likewise.
16605         (lfrintnusf): Likewise.
16606         (lfrintnudf): Likewise.
16607         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
16608         conversion.
16609         (vcvtq_u32_f32): Likewise.
16610         (vcvtq_u64_f64): Likewise.
16611         (vcvta_u32_f32): Likewise.
16612         (vcvtaq_u32_f32): Likewise.
16613         (vcvtaq_u64_f64): Likewise.
16614         (vcvtm_u32_f32): Likewise.
16615         (vcvtmq_u32_f32): Likewise.
16616         (vcvtmq_u64_f64): Likewise.
16617         (vcvtn_u32_f32): Likwise.
16618         (vcvtnq_u32_f32): Likewise.
16619         (vcvtnq_u64_f64): Likewise.
16620         (vcvtp_u32_f32): Likewise.
16621         (vcvtpq_u32_f32): Likewise.
16622         (vcvtpq_u64_f64): Likewise.
16623         (vcvtmd_u64_f64): Likewise.
16624         (vcvtms_u32_f32): Likewise.
16625         (vcvtad_u64_f64): Likewise.
16626         (vcvtas_u32_f32): Likewise.
16627         (vcvtnd_u64_f64): Likewise.
16628         (vcvtns_u32_f32): Likewise.
16629         (vcvtpd_u64_f64): Likewise.
16630         (vcvtps_u32_f32): Likewise.
16632 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16634         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
16635         CSEL of zero_extended registers.
16637 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16639         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16640         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
16642 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16644         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
16645         false when argument string is not found in the attributes table
16646         at all.
16648 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
16650         PR target/68609
16651         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
16652         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
16653         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
16654         precision estimate.
16656 2016-01-15  Richard Biener  <rguenther@suse.de>
16658         PR tree-optimization/66856
16659         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
16660         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
16661         (vect_create_new_slp_node): Increment stmt reference count.
16662         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
16663         an SLP tree before swapping operands.
16664         (vect_build_slp_tree): Likewise.
16665         (destroy_bb_vec_info): Free stmt info after SLP instances.
16666         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
16667         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
16668         (STMT_VINFO_NUM_SLP_USES): New macro.
16670 2016-01-15  Richard Biener  <rguenther@suse.de>
16672         PR debug/69137
16673         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
16674         (add_linkage_name): ... here.
16675         (gen_typedef_die): Use add_linkage_name_raw instead of
16676         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
16677         if necessary.
16679 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
16681         * gimplify.c (oacc_default_clause): Decode reference and pointer
16682         types for both kernels and parallel regions.
16684 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16686         PR middle-end/69246
16687         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
16689 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16691         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
16692         (convert_scalars_to_vector): Likewise.
16694 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
16696         * doc/extend.texi (Type Traits): Fix grammar.
16698 2016-01-15  Martin Jambor  <mjambor@suse.cz>
16700         * tree-inline.c (remap_decl): Use existing dclarations if
16701         remapping a type and prevent_decl_creation_for_types.
16702         (replace_locals_stmt): Do an initial remapping of non-VLA typed
16703         decls first.  Do real remapping with
16704         prevent_decl_creation_for_types set.
16705         * tree-inline.h (copy_body_data): New field
16706         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
16707         padding.
16709 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16711         * config/s390/s390.opt (mmvcle): More verbose help text.
16713 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16715         * config/s390/s390.opt: Add period to -mzvector option text.
16717 2016-01-15  Richard Biener  <rguenther@suse.de>
16719         PR tree-optimization/68961
16720         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
16721         of invariants in stores again.
16723 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16725         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
16727 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16729         * config/i386/i386.c (ix86_expand_branch): Don't split
16730         DI mode xor instruction to SI mode.
16732 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16734         PR ipa/68148
16735         * ipa-icf.c (sem_function::merge): Virtual functions may become
16736         reachable even if they address is not taken and there are no
16737         idrect calls.
16739 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16741         * lto-streamer-out.c (subtract_estimated_size): New function.
16742         (get_symbol_initial_value): Use it.
16744 2016-01-15  Christian Bruel  <christian.bruel@st.com>
16746         PR target/65837
16747         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
16748         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
16749         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
16750         use add_builtin_function_ext_scope instead of add_builtin_function.
16751         (neon_set_p, neon_crypto_set_p): Remove.
16752         (arm_init_builtins): Always call arm_init_neon_builtins and
16753         arm_init_crypto_builtins.
16754         (arm_expand_builtin): Check that builtins are allowed for the arch.
16755         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
16756         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
16757         arm_init_neon_builtins call.
16759 2016-01-15  Richard Biener  <rguenther@suse.de>
16761         PR tree-optimization/69117
16762         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
16763         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
16764         of the leader conservatively.
16765         (free_scc_vn): Restore original SSA name infos.
16767 2016-01-14  Jeff Law  <law@redhat.com>
16769         PR tree-optimization/69270
16770         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
16771         single bit of precision, verify it's also unsigned.
16772         (record_edge_info): Use constant_boolean_node rather than fold_convert
16773         to convert boolean_true/boolean_false to the right type.
16775 2016-01-14  Richard Henderson  <rth@redhat.com>
16777         PR rtl-opt/69014
16778         * loop-doloop.c (record_reg_sets): New.
16779         (doloop_optimize): Reject the transform if the sequence
16780         clobbers registers live at the end of the loop block.
16781         (doloop_optimize_loops): Enable df_live if needed.
16783 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16785         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
16786         * config/rs6000/rs6000.c: Likewise.
16787         * config/rs6000/rs6000.h: Likewise.
16788         * config/rs6000/rs6000.md: Likewise.
16789         * doc/extend.texi: Likewsie.
16791 2016-01-14  Jeff Law  <law@redhat.com>
16793         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
16794         typo.
16796 2016-01-14  Richard Henderson  <rth@redhat.com>
16798         PR c/69272
16799         PR tree-opt/68964
16800         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
16801         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
16802         instead of builtin_decl_declared_p to test for declaration.
16804 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
16806         * doc/loop.texi (Loop Analysis and Representation): Document
16807         loop_depth function.
16809 2016-01-14  Tom de Vries  <tom@codesourcery.com>
16811         PR tree-optimization/68773
16812         * omp-low.c (expand_omp_target): Don't set force_output.
16813         * varpool.c (varpool_node::get_create): Same.
16814         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
16815         offload_funcs with force_output.
16817 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16819         PR debug/69244
16820         * lra-eliminations.c (move_plus_up): Don't change anything if either
16821         the outer or inner subreg mode is not MODE_INT.
16822         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
16823         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
16825 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16827         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
16828         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
16829         reduc_uplus_@var{m}): Remove.
16830         * expr.c (expand_expr_real_2): Remove expansion path for
16831         reduc_[us](min|max|plus) optabs.
16832         * optabs-tree.c (scalar_reduc_to_vector): Remove.
16833         * optabs-tree.h (scalar_reduc_to_vector): Remove.
16834         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
16835         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
16836         * tree-vect-loop.c (vectorizable_reduction): Remove test for
16837         reduc_[us](min|max|plus) optabs.
16839 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16841         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
16842         (reduc_plus_scal_v2sf): New.
16843         (reduc_smax_v2sf): Rename to...
16844         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
16845         (reduc_smin_v2sf): Rename to...
16846         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
16848 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
16850         * alias.c (compare_base_symbol_refs): New function.
16851         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
16852         it.
16854 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16856         PR middle-end/68146
16857         PR tree-optimization/69155
16858         * tree-complex.c: Include cfganal.h.
16859         (phis_to_revisit): New variable.
16860         (extract_component): Add phiarg_p argument.  Assert that returned
16861         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
16862         (update_phi_components): Partly rewrite to use loop over real/imag
16863         components instead of code duplication.  If extract_component returns
16864         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
16865         create_tmp_reg into the PHI node instead, and mention the phi triplet
16866         in phis_to_revisit.
16867         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
16868         in phis_to_revisit at the end.
16870 2016-01-14  Richard Biener  <rguenther@suse.de>
16872         PR tree-optimization/68060
16873         * tree-vect-loop.c (vect_is_simple_reduction): Check the
16874         outer loop reduction is only used in the inner loop before
16875         detecting a double reduction.
16877 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16879         PR target/68269
16880         * combine.c (expand_field_assignment): Punt if compute_mode is
16881         unsupported scalar mode.
16883 2016-01-14  Richard Biener  <rguenther@suse.de>
16885         PR tree-optimization/66856
16886         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
16887         SLP node only if it built successfully.
16888         (vect_analyze_slp_instance): Adjust.
16890 2016-01-14  Jeff Law  <law@redhat.com>
16892         PR tree-optimization/69270
16893         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
16894         (record_edge_info): Use it.  Convert boolean_{true,false}_node
16895         to the type of op0.
16897 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
16899         PR ipa/66487
16900         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
16901         use block_ultimate_origin
16902         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
16904 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16906         * doc/invoke.texi (Submodel Options): Rename section to
16907         "Machine-Dependent Options" to better reflect its content.
16908         Rewrite introductory text to remove archaic CPU names.
16909         Update references.
16911 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16913         * doc/invoke.texi (Code Gen Options): Move section up in file,
16914         before target-specific options.  Update menu and option summary
16915         to reflect the new section ordering.
16917 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16919         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
16920         (C++ Dialect Options): Add cross-reference to -std option.
16921         * doc/standards.texi (C++ Language): Document C++14 support.
16923 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16925         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
16926         for pack/unpack functions for __ibm128.
16927         (PACK_IF): Likewise.
16928         (UNPACK_IF): Likewise.
16930         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
16931         support for __ibm128 pack/unpack functions.
16932         (rs6000_invalid_builtin): Likewise.
16933         (rs6000_init_builtins): Likewise.
16934         (rs6000_opt_masks): Likewise.
16936         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
16937         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
16938         functions
16939         (RS6000_BTM_COMMON): Likewise.
16941         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
16942         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
16943         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
16944         128-bit floating point.  Add support for the double values to be
16945         in Altivec registers for TF/IF packing and unpacking, but restrict
16946         TD packing sub-fields to be FPR registers.  Don't allow overlapped
16947         register support for packing.  Allow pack inputs to be memory
16948         locations.  Don't build generator functions for unpack<mode>_dm
16949         and unpack<mode>_nodm.
16950         (unpack<mode>_dm): Likewise.
16951         (unpack<mode>_nodm): Likewise.
16952         (pack<mode>): Likewise.
16954         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
16955         built-in functions to pack/unpack explicit __ibm128 values.
16956         (__builtin_unpack_ibm128): Likewise.
16958         * doc/extend.texi (PowerPC Built-in Functions): Document
16959         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
16961 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
16963         PR c/66208
16964         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
16965         Add new arg loc and pass it down as context.
16966         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
16967         to the location to use for the warning.
16968         (check_function_arguments): New arg loc.  All callers changed.  Pass
16969         it to check_function_nonnull.
16970         * c-common.h (check_function_arguments): Adjust declaration.
16972 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
16974         PR tree-optimization/69156
16975         * gimple.c (validate_type): Removed.
16976         (gimple_builtin_call_types_compatible_p): Use
16977         useless_type_conversion_p instead of validate_type.
16978         * value-prof.c (gimple_stringop_fixed_value): Fold
16979         icall_size to correct type.
16981 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16983         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
16984         effects.
16986 2016-01-13  Richard Henderson  <rth@redhat.com>
16988         PR tree-opt/68964
16989         * target.def (builtin_tm_load, builtin_tm_store): Remove.
16990         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
16991         (ix86_builtin_tm_store): Remove.
16992         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16993         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16994         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16995         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16996         * doc/tm.texi: Rebuild.
16998         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
16999         (BUILT_IN_TM_MEMCPY_RTWN): New.
17000         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17001         fallback from vector to integer helpers.
17002         (build_tm_load): Handle vector types directly, instead of
17003         via target hook.
17004         (build_tm_store): Likewise.
17005         (expand_assign_tm): Prepare for register types not handled by
17006         the above.  Copy them to memory and use memcpy.
17007         * tree.c (tm_define_builtin): New.
17008         (find_tm_vector_type): New.
17009         (build_tm_vector_builtins): New.
17010         (build_common_builtin_nodes): Call it.
17012 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
17014         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17015         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
17017 2016-01-13  Tom de Vries  <tom@codesourcery.com>
17019         PR tree-optimization/69169
17020         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17021         handled_struct_type param.
17022         (create_variable_info_for, intra_create_variable_infos): Call
17023         create_variable_info_for_1 with extra arg.
17025 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
17027         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17028         and "armv8.1-a+crc" entries.
17030 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
17032         PR target/69228
17033         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17034         Change first operand predicate from register_or_constm1_operand
17035         to register_operand.
17036         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17037         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17038         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17039         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17040         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17041         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17042         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17043         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17044         comparison with constm1_rtx from vec_prefetch_gen part.
17046 2016-01-13  Richard Biener  <rguenther@suse.de>
17048         PR tree-optimization/69013
17049         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17050         Exchange assert for a test.
17052 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17054         PR target/69247
17055         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17057 2016-01-13  Richard Biener  <rguenther@suse.de>
17059         PR tree-optimization/69242
17060         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17061         assert with a check.
17063 2016-01-13  Richard Biener  <rguenther@suse.de>
17065         PR tree-optimization/69186
17066         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17067         Properly guard vect_update_misalignment_for_peel call.
17069 2016-01-12  Jeff Law  <law@redhat.com>
17071         PR tree-optimization/pr67755
17072         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17073         "need_profile_correction".
17074         (thread_block_1): Initialize new field to false by default.  If we
17075         have multiple thread paths through a common joiner to different
17076         final targets, then set new field to true.
17077         (compute_path_counts): Only do count adjustment when it's really
17078         needed.
17080 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17082         * doc/invoke.texi (Spec Files): Move section down in file, past
17083         all command-line option descriptions.
17085 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17087         PR middle-end/54809
17088         * doc/gty.texi: Remove documentation of mark_hook.
17089         * gengtype.c (struct write_types_data): Remove code to support
17090         mark_hook attribute.
17091         (walk_type): Likewise.
17092         (write_func_for_structure): Likewise.
17094 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17096         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17097         Directory Options, and -specs= to Overall Options.
17098         (Overall Options): Adjust similarly.  Reorder to group related
17099         options together.  Make -specs= cross-reference the spec file details.
17100         (Directory Options): Adjust similarly.
17102 2016-01-12  Jeff Law  <law@redhat.com>
17104         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17106 2016-01-12  Olivier Hainque  <hainque@adacore.com>
17108         * gcc.c (spec_undefvar_allowed): New global.
17109         (process_command): Set to true when running for --version or --help,
17110         alone or together.
17111         (getenv_spec_function): When the variable is not defined, use the
17112         variable name as the variable value if we're allowed not to issue
17113         a fatal error.
17115 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
17117         PR tree-optimization/68911
17118         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
17119         information computed for expression "init + nit * step".
17121 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17123         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
17124         about name of GCC executable.  Remove deleted node from menu.
17125         (Directory Options) <-B>: Remove cross-reference to deleted node.
17126         (Target Options): Delete section.
17128 2016-01-12  Christian Bruel  <christian.bruel@st.com>
17130         PR target/69180
17131         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
17132         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
17134 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
17136         PR target/69198
17137         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
17138         aligned_mem is properly set for AVX512-VL floating point masked
17139         stores.
17141         PR target/69175
17142         * ifcvt.c (cond_exec_process_if_block): When removing the last
17143         insn from then_bb, remove also any possible barriers that follow it.
17145 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17147         PR target/68456
17148         PR target/69226
17149         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17150         (PTRDIFF_TYPE): Likewise.
17151         (WCHAR_TYPE): Likewise.
17152         (WCHAR_TYPE_SIZE): Likewise.
17153         (STDINT_LONG32): Likewise.
17155 2016-01-12  Richard Biener  <rguenther@suse.de>
17157         PR tree-optimization/69053
17158         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17159         convert initial value for cond reductions.
17161 2016-01-12  Richard Biener  <rguenther@suse.de>
17163         PR tree-optimization/69007
17164         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17165         widen_sum after dot_prod and sad.
17167 2016-01-12  Richard Biener  <rguenther@suse.de>
17169         PR tree-optimization/69168
17170         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17171         pattern stmt SLP type.
17172         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17173         end up unused so cope with that case.
17175 2016-01-12  Richard Biener  <rguenther@suse.de>
17177         PR tree-optimization/69157
17178         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17179         stmts def type only during analyze phase.
17180         (vectorizable_call): Likewise.
17181         (vectorizable_simd_clone_call): Likewise.
17182         (vectorizable_conversion): Likewise.
17183         (vectorizable_assignment): Likewise.
17184         (vectorizable_shift): Likewise.
17185         (vectorizable_operation): Likewise.
17186         (vectorizable_store): Likewise.
17187         (vectorizable_load): Likewise.
17189 2016-01-12  Richard Biener  <rguenther@suse.de>
17191         PR tree-optimization/69174
17192         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17193         space.
17194         (vectorizable_load): Properly compute the number of loads needed
17195         for permuted strided SLP loads and do not spuriously assign
17196         to SLP_TREE_VEC_STMTS.
17198 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17200         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17201         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17202         (MD_EXEC_PREFIX): Remove.
17203         (MD_STARTFILE_PREFIX) Removee.
17204         (FILE_NAME_ABSOLUTE_P): Remove.
17205         (CPP_SPEC): Do not read macros from sys/version.h.
17206         (LINK_COMMAND_SPEC): Remove.
17207         (LOCAL_INCLUDE_DIR): Remove.
17208         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17209         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17210         (POST_LINK_SPEC): Define to invoke stubify after linker
17211         (LIBSTDCXX): Remove define
17212         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17213         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17214         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17215         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17216         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17217         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17218         (i386_djgpp_asm_named_section): Add propotype of new procedure
17220         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17221         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17222         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17223         in config/i386/djgpp.h).
17224         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17225         STANDARD_STARTFILE_PREFIX_1.
17226         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17227         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17228         installation errors.
17229         (MAX_OFILE_ALIGNMENT): Define to 128.
17230         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17232         * config/i386/djgpp.c: New file. Add implementation of
17233         i386_djgpp_asm_named_section.
17235         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17237         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17238         Add rule for building djgpp.o.
17240 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17242         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17243         (rtx_is_swappable_p): Reductions are swappable.
17244         (insn_is_swappable_p): V2DF reductions are swappable.
17246 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17248         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17249         reloads for other unsupported memory operands.
17251 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17252             Jim Wilson  <jim.wilson@linaro.org>
17254         PR target/69194
17255         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17256         copy_to_mode_reg instead of force_reg.
17258 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17260         PR target/69225
17261         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17262         TARGET_80387 is true.
17264 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17266         PR target/69071
17267         * lra-eliminations.c (move_plus_up): Only move plus up
17268         if subreg of the constant can be simplified into constant
17269         and use the simplified subreg of the constant instead of
17270         the original constant.
17272         * fold-const.c (fold_convertible_p): Don't return true
17273         for conversion of VECTOR_TYPE to same sized integral type.
17274         (fold_convert_loc): Fix up formatting.  Fold conversion of
17275         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17276         instead of NOP_EXPR.
17278         PR tree-optimization/69214
17279         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17280         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17281         Formatting fix.
17283         PR tree-optimization/69207
17284         * tree-vect-slp.c (vect_get_constant_vectors): For
17285         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17286         fold_convertible_p to vector_type's element type, and always
17287         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17289 2016-01-11  Richard Biener  <rguenther@suse.de>
17291         PR tree-optimization/69173
17292         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
17293         fixup the cycle if all stmts are in a pattern.
17295 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
17297         PR middle-end/68999
17298         * alias.c (base_alias_check): Move check for addresses with
17299         alignment ANDs before the call for compare_base_decls.
17300         (memrefs_conflict_p): Return -1 for different decls
17301         that went through alignment adjustments.
17303 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17305         PR rtl-optimization/68796
17306         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
17307         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
17308         and QImode comparisons against zero with CC_NZmode.
17309         * config/aarch64/iterators.md (short_mask): New mode_attr.
17311 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17313         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
17314         (<avx512>_store<mode>_mask): Likewise.
17316 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
17317             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17319         PR rtl-optimization/68841
17320         * ifcvt.c (struct noce_if_info): Add orig_x field.
17321         (bbs_ok_for_cmove_arith): Add to_rename parameter.
17322         Don't record conflicts on to_rename if it's present.
17323         Allow memory destinations in sets.
17324         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
17325         blocks, passing orig_x to the checks.
17326         (noce_process_if_block): Set if_info->orig_x appropriately.
17328 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17330         PR tree-optimization/69069
17331         * tree-parloops.c (create_parallel_loop): Add missing phi args.
17333 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17335         PR rtl-optimization/68920
17336         * config/i386/i386.c (ix86_option_override_internal): Restrict number
17337         of conditional moves for  RTL if-conversion to 1 for
17338         TARGET_ONE_IF_CONV_INSN.
17339         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
17340         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
17341         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
17342         parameter to restirct number of conditional moves for
17343         RTL if-conversion.
17344         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
17345         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
17346         conditionl moves.
17348 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
17350         PR bootstrap/69123
17351         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
17352         onepart vars.  Fix typo in comment.  Fix reversed condition in
17353         unshare test.
17354         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
17356         PR bootstrap/69123
17357         * var-tracking.c (dump_onepart_variable_differences): New.
17358         (dataflow_set_different): If a detailed dump is requested,
17359         delay early returns and dump differences between onepart
17360         variables present before and after, and added variables.
17362 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
17364         PR target/69010
17365         * expr.c (expand_expr_real_1): For boolean vector constants
17366         with a scalar mode use const_scalar_mask_from_tree.
17367         (const_scalar_mask_from_tree): New.
17368         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
17369         assigned to a mask type to handle constants.
17371 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17373         PR ipa/69044
17374         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
17375         useless parameters if we cannot change function signature.
17377 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17379         PR ipa/66616
17380         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
17381         flag.
17383 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17385         PR tree-optimization/69109
17386         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
17387         latch with phi.
17389 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17391         PR tree-optimization/69108
17392         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
17393         res is not used in a phi.
17395 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
17397         PR 67425
17398         * common.opt (frandom-seed): Fix parameter name.
17399         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
17401 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17403         PR tree-optimization/69058
17404         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
17405         not supported.
17407 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
17409         * config/arc/arc.opt (mdiv-rem): Add period to the end.
17410         (mcode-density): Likewise.
17412 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17414         PR tree-optimization/69062
17415         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
17416         (parallelize_loops): Don't paralelize loop that has phi with address
17417         arg.
17419 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17421         PR tree-optimization/69039
17422         * tree-parloops.c (try_create_reduction_list): Only allow single exit
17423         phi for reduction.
17425 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
17427         PR middle-end/68743
17428         * match.pd: Require target has function_c99_misc before doing
17429         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
17431 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
17433         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
17434         use GMPINC.
17435         * configure: Regenerate.
17437 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
17439         PR middle-end/50865
17440         PR tree-optimization/69097
17441         * fold-const.h (expr_not_equal_to): New prototype.
17442         * fold-const.c: Include stringpool.h and tree-ssanames.h.
17443         (expr_not_equal_to): New function.
17444         * match.pd (X % -Y is the same as X % Y): Don't optimize
17445         unless X is known not to be equal to minimum or Y is known
17446         not to be equal to -1.
17447         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
17448         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
17449         (simplify_stmt_using_ranges): Adjust caller.
17450         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
17451         substitute_and_fold.
17453 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
17455         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
17456         w/o DECL_NAME.
17458 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17460         PR tree-optimization/69167
17461         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
17462         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
17463         ops[0] comparison.
17464         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
17466 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17467             Richard Biener  <rguenther@suse.de>
17469         PR tree-optimization/68707
17470         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
17471         instances that can be handled via vect_load_lanes.
17473 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
17475         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
17476         if we can't determine address equivalence.
17477         * alias.c (compare_base_decl): Update for changed return value of
17478         symtab_node::equal_address_to.
17480 2016-01-08  Jason Merrill  <jason@redhat.com>
17482         PR c++/68983
17483         PR c++/67557
17484         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
17485         * expr.c (store_field): Not here.
17486         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
17487         call with TREE_ADDRESSABLE type.
17488         * tree-cfg.c (verify_gimple_call): Adjust.
17490 2016-01-08  Olivier Hainque  <hainque@adacore.com>
17492         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
17493         libc_internal.
17495 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17497         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
17498         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
17499         (reduc_smin_v2sf): Rename to...
17500         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
17501         (reduc_splus_v2sf): Rename to...
17502         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
17504 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17506         PR tree-optimization/69162
17507         * gimplify.c (gimplify_va_arg_expr): Encode original type of
17508         valist argument in another argument.
17509         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
17510         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
17511         to determine the va_list type, build a MEM_REF instead of
17512         build_fold_indirect_ref.
17514         PR tree-optimization/69172
17515         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
17516         gimple_build.
17518 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17520         PR tree-optimization/67781
17521         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
17522         and cmpnop in two steps: first the ones not accessed in original
17523         gimple expression in a endian independent way and then the ones not
17524         accessed in the final result in an endian-specific way.
17526 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17528         PR tree-optimization/69083
17529         * tree-vect-slp.c (vect_get_constant_vectors): For
17530         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
17531         element type.  If op is fold_convertible_p to vector_type's element
17532         type, use NOP_EXPR instead of VCE.
17534 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
17536         PR rtl-optimization/67778
17537         PR rtl-optimization/68634
17538         PR rtl-optimization/68909
17539         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
17540         block from the stack until done with it.  Remove a superfluous
17541         bitmap set.  Remove a superfluous bitmap test.
17543 2016-01-07  Martin Sebor  <msebor@redhat.com>
17545         PR c/68966
17546         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
17547         constraint on the type of arguments.
17549 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
17551         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
17552         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
17553         unaligned_access on the gcc_options set.
17554         * config/arm/arm.c (arm_option_override_internal): Use
17555         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
17557 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17559         PR target/69140
17560         * config/i386/i386.c (ix86_frame_pointer_required): Enable
17561         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
17563 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17565         Revert
17566         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17568         PR target/69140
17569         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17570         depending on frame_pointer_needed before remaining integer and SSE
17571         registers are saved.
17573 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17575         PR 1078
17576         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
17578 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17580         PR target/69171
17581         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
17582         Use the "xBm" constraint.
17583         (float<sseintvecmodelower><mode>2<mask_name><round_name):
17584         Likewise.
17585         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
17586         (sse_cvtsi2ssq<round_name>): Likewise.
17587         (sse_cvtss2si<round_name>): Likewise.
17588         (sse_cvtss2siq<round_name>): Likewise.
17589         (sse2_cvtsi2sdq<round_name>): Likewise.
17590         (sse2_cvtsd2si<round_name>): Likewise.
17591         (sse2_cvtsd2siq<round_name>): Likewise.
17592         * config/i386/subst.md (round_nimm_scalar_predicate): New
17593         predicate.
17595 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
17597         PR middle-end/67639
17598         * varasm.c (make_decl_rtl): Mark invalid register vars as
17599         DECL_EXTERNAL.
17601         PR rtl-optimization/66206
17602         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
17603         All callers changed.
17605 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
17607         PR tree-optimization/69141
17608         * tree-ssa-pre.c: Include langhooks.h.
17609         (eliminate_dom_walker::before_dom_children): Use
17610         lang_hooks.decl_printable_name instead of
17611         cgraph_node::get ()->name ().
17613         PR middle-end/68960
17614         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
17615         it and DECL_ALIGN too.
17617 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
17619         * config/mips/mips-ftypes.def: Sort to lexicographical order.
17621 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17623         PR target/69140
17624         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17625         depending on frame_pointer_needed before remaining integer and SSE
17626         registers are saved.
17628 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17630         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
17631         mode iterator with VSX_M2.
17632         (*p9_vecstore_<mode>): Likewise.
17633         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
17634         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
17635         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
17636         (define_split for VSX_LE128 stores): Likewise.
17637         (define_peephole2 for TImode LE swaps): Likewise.
17638         (define_split for VSX_LE128 post-reload stores): Likewise.
17640 2016-01-06  Marek Polacek  <polacek@redhat.com>
17642         PR sanitizer/69099
17643         * convert.c (convert_to_integer_1): Adjust call to
17644         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
17645         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
17646         EXPR instead of ARG.
17647         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
17649 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17651         PR 1078
17652         * doc/extend.texi (RL78 Variable Attributes): New section.
17654 2016-01-05  Marek Polacek  <polacek@redhat.com>
17656         PR c/69104
17657         * builtins.c (get_memmodel): Use expansion point location rather than
17658         the input location.  Call warning_at rather than warning.
17659         (expand_builtin_atomic_compare_exchange): Likewise.
17660         (expand_builtin_atomic_load): Likewise.
17661         (expand_builtin_atomic_store): Likewise.
17662         (expand_builtin_atomic_clear): Likewise.
17664 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17666         PR target/68991
17667         * config/i386/i386.c (ix86_expand_vector_logical_operator):
17668         Replace nonimmediate_operand with vector_operand.
17669         * config/i386/predicates.md (vector_operand): New predicate.
17670         (general_vector_operand): Replace nonimmediate_operand with
17671         vector_operand.
17672         * config/i386/sse.md: Replace nonimmediate_operand with
17673         vector_operand and m constraint with Bm constraint on SSE
17674         patterns with 16-byte memory operand.
17675         * config/i386/subst.md (round_nimm_predicate): Replace
17676         nonimmediate_operand with vector_operand.
17677         (round_saeonly_nimm_predicate): Likewise.
17678         (round_saeonly_nimm_scalar_predicate): New.
17680 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17682         PR target/68991
17683         * config/i386/constraints.md (Bm): New constraint.
17684         * config/i386/predicates.md (vector_memory_operand): New
17685         predicate.
17686         * config/i386/sse.md: Replace xm with xBm in plusminus and
17687         any_logic patterns.
17689 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17691         PR 1078
17692         * doc/extend.texi (V850 Function Attributes): New section.
17693         (V850 Variable Attributes): New section.
17695 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17697         PR 1078
17698         * doc/extend.texi (MicroBlaze Function Attributes): Document
17699         interrupt_handler and fast_interrupt attributes.
17701 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
17703         PR other/60465
17704         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
17705         for local symbolic operands.
17706         * config/ia64/predicates.md (local_symbolic_operand64): New
17707         predicate.
17709 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17711         PR rtl-optimization/68651
17712         * combine.c (combine_simplify_rtx): Canonicalize x + x into
17713         x << 1.
17715 2016-01-05  Nathan Sidwell  <nathan@acm.org>
17717         * alias.c (compare_base_decls): Use symtab_node::get.
17719 2016-01-05  Nick Clifton  <nickc@redhat.com>
17721         PR target/68770
17722         * ira-costs.c (copy_cost): Initialise the t_icode field of the
17723         secondary_reload_info structure.
17725         PR target/66655
17726         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
17727         decls if weak support is available.
17729 2016-01-04  Martin Sebor  <msebor@redhat.com>
17731         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
17733 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
17735         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17736         OPTION_MASK_P9_DFORM.
17738         * config/rs6000/constraints.md (wo constraint): New constraint for
17739         ISA 3.0 (power9).
17741         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
17742         for wo constraint.
17743         (rs6000_init_hard_regno_mode_ok): Likewise.
17745         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
17746         wo constraint.
17748         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
17749         expanders not to have constraints.  Add support for ISA 3.0 xxperm
17750         instruction.  Add support for fusing xxlor with xxperm.
17751         (altivec_vperm_<mode>_internal): Likewise.
17752         (altivec_vperm_v8hiv16qi): Likewise.
17753         (altivec_vperm_<mode>v16q): Likewise.
17754         (altivec_vperm_<mode>_uns): Likewise.
17755         (vperm_v8hiv4si): Likewise.
17756         (vperm_v16qiv8hi): Likewise.
17758         * doc/md.texi (RS/6000 constraints): Document wo constraint.
17760 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
17762         Update copyright years.
17764         * gcc.c (process_command): Update copyright notice dates.
17765         * gcov-dump.c (print_version): Ditto.
17766         * gcov.c (print_version): Ditto.
17767         * gcov-tool.c (print_version): Ditto.
17768         * gengtype.c (create_file): Ditto.
17769         * doc/cpp.texi: Bump @copying's copyright year.
17770         * doc/cppinternals.texi: Ditto.
17771         * doc/gcc.texi: Ditto.
17772         * doc/gccint.texi: Ditto.
17773         * doc/gcov.texi: Ditto.
17774         * doc/install.texi: Ditto.
17775         * doc/invoke.texi: Ditto.
17777 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17779         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
17780         modes larger than TImode as TImode if NEON is not enabled.
17782 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17784         PR target/69100
17785         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
17786         mode for %f0-%f31 only if TARGET_FPU.
17788 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17790         PR target/69072
17791         * config/sparc/sparc.c (scan_record_type): Take into account subfields
17792         to compute the PACKED_P predicate.
17793         (function_arg_record_value): Minor tweaks.
17795 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17797         * doc/install.texi (--with-multilib-list): Describe the meaning of the
17798         option for arm*-*-* targets.
17800 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17802         * doc/extend.texi (Common Function Attributes): Move docs for
17803         MSP430-specific attributes to....
17804         (MSP430 Function Attributes): ...here.  Delete the redundant
17805         entries and copy-edit the remaining text.
17806         (MSP430 Variable Attributes): Use uniform format for index
17807         entries and add a cross-reference to the corresponding function
17808         attribute docs.
17810 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
17812         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
17813         -finite-math typo.
17814         (x86 Options): Likewise.
17816 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17818         PR 1078
17820         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
17821         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
17822         to corresponding attribute.
17824 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17826         * doc/extend.texi (Common Function Attributes) <noplt>: Move
17827         to correct alphabetization of table.  Copy-edit and correct
17828         markup.
17829         <stack_protect>: Likewise.
17830         <target_clones>: Likewise.
17831         <simd>: Likewise.
17832         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
17833         Correct punctuation.
17834         (Code Gen Options) <-fno-plt>: Copy-edit.
17836 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17838         PR target/68917
17839         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
17840         SI values.  Explicitly convert SI to DI and vice-versa.
17842 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
17844         PR tree-optimization/69070
17845         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
17846         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
17848         PR sanitizer/69055
17849         * ubsan.c (ubsan_instrument_float_cast): Call
17850         initialize_sanitizer_builtins.
17852         PR target/69015
17853         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
17855 Copyright (C) 2016 Free Software Foundation, Inc.
17857 Copying and distribution of this file, with or without modification,
17858 are permitted in any medium without royalty provided the copyright
17859 notice and this notice are preserved.