[vectorizer][2/2] Hook up mult synthesis logic into vectorisation of mult-by-constant
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2
3         PR target/65951
4         PR tree-optimization/70923
5         * tree-vect-patterns.c: Include mult-synthesis.h.
6         (target_supports_mult_synth_alg): New function.
7         (synth_lshift_by_additions): Likewise.
8         (apply_binop_and_append_stmt): Likewise.
9         (vect_synth_mult_by_constant): Likewise.
10         (target_has_vecop_for_code): Likewise.
11         (vect_recog_mult_pattern): Use above functions to synthesize vector
12         multiplication by integer constants.
13
14 2016-07-14  Alan Modra  <amodra@gmail.com>
15
16         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17         gpr alternatives.  Correct '*' placement on Y,r alternative.
18         Add '*' on operand 1 of r,r alternative.
19
20 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21
22         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
23         * expmed.h: ... Here.
24
25 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
26
27         * gimple.h (stmt_can_terminate_bb_p): New function.
28         * tree-cfg.c (need_fake_edge_p): Rename to ...
29         (stmt_can_terminate_bb_p): ... this; return true if stmt can
30         throw external; handle const and pure calls.
31         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
32
33 2016-07-14  Richard Biener  <rguenther@suse.de>
34
35         PR tree-optimization/71866
36         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
37         (do_hoist_insertion): Avoid endless recursion when we
38         didn't insert anything because we managed to simplify
39         things down to a constant or SSA name.
40         (fully_constant_expression): Re-write in terms of ...
41         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
42         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
43         vn_nary_build_or_lookup_1.
44         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
45         (vn_nary_build_or_lookup): ... this which now wraps it.
46
47 2016-07-14  Alan Modra  <amodra@gmail.com>
48
49         PR target/71733
50         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
51         with p9_vector override before power9-dform override.
52
53 2016-07-13  Andi Kleen  <ak@linux.intel.com>
54
55         * value-prof.c (gimple_value_profile_transformations): Don't run
56         when auto_profile is on.
57
58 2016-07-13  Andi Kleen  <ak@linux.intel.com>
59
60         * auto-profile.c (update_inlined_ind_target,
61         afdo_indirect_call): Print information to dump file.
62
63 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
64
65         * genrecog.c (special_predicate_operand_p): New function.
66         (predicate_name): Move function.
67         (validate_pattern): Don't warn about missing mode for all
68         define_special_predicate predicates.
69
70 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
71
72         * tree-vect-data-refs.c (vect_no_alias_p): New function.
73         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
74         resolve alias checks which are known at compilation time.
75         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
76         alias checks are resolved.  Move dump info for too many runtime
77         alias checks to here...
78         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
79
80 2016-07-13  Richard Biener  <rguenther@suse.de>
81
82         PR tree-optimization/24574
83         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
84         position and add shift, rotate, divison and modulo support
85         for left zero.
86         (value_replacement): Pass in argument position to absorbing_element_p.
87
88 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
89
90         PR ipa/71633
91         * ipa-inline-transform.c (inline_call): Support
92         instrumented thunks.
93
94 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
95
96         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
97         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
98         divide feature.
99         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
100         Baseline.  Make initial alternative TARGET_32BIT only.
101         (udivsi3): Likewise.
102         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
103         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
104         target.
105
106 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
107
108         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
109         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
110         availability with TARGET_HAVE_MOVT.
111         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
112         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
113         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
114         UINTVAL.
115         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
116         extra instruction if MOVW is available.  Use a cost variable
117         incremented by COSTS_N_INSNS (1) when the condition match rather than
118         returning an arithmetic expression based on COSTS_N_INSNS.  Make
119         constant with bottom half word zero cost 2 instruction if MOVW is
120         available.
121         * config/arm/arm.md (define_attr "arch"): Add v8mb.
122         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
123         target is ARMv8-M Baseline.
124         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
125         (arm_movtas_ze): Likewise.
126         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
127         alternative for constants satisfying j constraint.
128         (thumb1_movsi_insn): Likewise.
129         (movsi splitter for K alternative): Tighten condition to not trigger
130         if movt is available and j constraint is satisfied.
131         (Pe immediate splitter): Likewise.
132         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
133         constant fitting in an halfword to use MOVW.
134         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
135         effective target.
136
137 2016-07-13  Richard Biener  <rguenther@suse.de>
138
139         PR middle-end/71104
140         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
141         gimplifying the LHS.  Make sure to gimplify a returning twice
142         call LHS without using SSA names.
143
144 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
145
146         * tree-data-ref.c (find_data_references_in_stmt): Remove
147         unnecessary call to vec::release.
148         (graphite_find_data_references_in_stmt): Likewise.
149         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
150         * tree-vect-stmts.c (vectorizable_condition): Likewise.
151
152 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
153
154         * cfgexpand.c (expand_used_vars): Make the type of a local variable auto_vec.
155         * genmatch.c (lower_for): Likewise.
156         * haifa-sched.c (haifa_sched_init): Likewise.
157         (add_to_speculative_block): Likewise.
158         (create_check_block_twin): Likewise.
159         * predict.c (handle_missing_profiles): Likewise.
160         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
161         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
162         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
163         (maybe_lower_iteration_bound): Likewise.
164         * tree-ssa-sccvn.c (DFS): Likewise.
165         * tree-stdarg.c (reachable_at_most_once): Likewise.
166         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
167         (vectorizable_store): Likewise.
168
169 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
170
171         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
172         (sccvn_dom_walker): make cond_stack an auto_vec.
173
174 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
175
176         * ree.c (struct ext_state): Make type of members auto_vec.
177         (find_and_remove_re): Adjust.
178
179 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
180
181         * cfgexpand.c (struct stack_vars_data): Make type of fields
182         auto_vec.
183         (expand_used_vars): Adjust.
184
185 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
186
187         * ipa.c (record_cdtor_fn): Adjust.
188         (build_cdtor_fns): Likewise.
189         (ipa_cdtor_merge): Make static_ctors and static_dtors local
190         variables.
191
192 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
193
194         * genextract.c (struct accum_extract): Add constructor and make
195         members auto_vec.
196         (gen_insn): Adjust.
197
198 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
199
200         * tree.c (struct free_lang_data_d): Add constructor and change
201         types of members to ones that automatically manage resources.
202         (fld_worklist_push): Adjust.
203         (find_decls_types): Likewise.
204         (find_decls_types_in_eh_region): Likewise.
205         (free_lang_data_in_cgraph): Stop manually creating and
206         destroying members of free_lang_data_d.
207
208 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
209
210         PR rtl-optimization/68961
211         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
212         peephole variant.  Use sse_reg_operand predicates.
213
214 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
215
216         * config/i386/predicates.md (x86_64_immediate_operand)
217         <case CONST_INT>: Remove unneeded truncation to DImode.
218         <case CONST>: Ditto.
219         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
220
221 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
222
223         PR target/71805
224         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
225         The xxperm and xxpermr instructions require that the 2nd input
226         operand overlap with the output operand, and not the 1st.
227         (altivec_vperm_v8hiv16qi): Likewise.
228         (altivec_vperm_<mode>_uns_internal): Likewise.
229         (altivec_vpermr_<mode>_internal): Likewise.
230         (vperm_v8hiv4si): Likewise.
231         (vperm_v16qiv8hi): Likewise.
232
233 2016-07-12  Martin Liska  <mliska@suse.cz>
234
235         * params.def: Add avg-loop niter.
236         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
237         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
238         * doc/invoke.texi: Document the new parameter.
239
240 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
241
242         PR middle-end/71700
243         * expr.c (store_constructor): Mask sign-extended bits when widening
244         sub-word constructor element at the start of a word.
245
246 2016-07-12  Martin Liska  <mliska@suse.cz>
247
248         * Makefile.in: Append rule for params-options.h.
249         * params-options.h: New file.
250
251 2016-07-12  Martin Liska  <mliska@suse.cz>
252
253         * ira-build.c (mark_loops_for_removal): Properly iterate
254         loops.
255
256 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
257             Richard Biener  <rguenther@suse.de>
258
259         PR tree-optimization/23286
260         PR tree-optimization/70159
261         * doc/invoke.texi: Document -fcode-hoisting.
262         * common.opt (fcode-hoisting): New flag.
263         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
264         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
265         (do_regular_insertion): Rename to ...
266         (do_pre_regular_insertion): ... this and amend general comments
267         on insertion strathegy.
268         (do_partial_partial_insertion): Rename to ...
269         (do_pre_partial_partial_insertion): ... this.
270         (do_hoist_insertion): New function.
271         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
272         and call do_hoist_insertion properly.
273         (insert): Adjust.
274         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
275         (pass_pre::execute): Register hoist_insert stats.
276
277 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
278
279         PR middle-end/71716
280         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
281         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
282         is different from mode's bitsize.  Small cleanup.
283
284 2016-07-12  Richard Biener  <rguenther@suse.de>
285
286         PR rtl-optimization/68961
287         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
288         to simplify to a non-constant.
289
290 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
291
292         PR middle-end/71758
293         * omp-low.c (expand_omp_target): Gimplify device.
294
295         PR tree-optimization/71823
296         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
297         to get vec_oprnds2 from op2.
298
299 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
300
301         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
302         Hoist common subexpressions.
303         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
304
305 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
306
307         PR target/71800
308         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
309         prevent generation of 'stxsiwx' on pre Power8 hardware.
310
311 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
312
313         * input.c: Include cpplib.h.
314         (selftest::temp_source_file): New class.
315         (selftest::temp_source_file::temp_source_file): New ctor.
316         (selftest::temp_source_file::~temp_source_file): New dtor.
317         (selftest::should_have_column_data_p): New function.
318         (selftest::test_should_have_column_data_p): New function.
319         (selftest::temp_line_table): New class.
320         (selftest::temp_line_table::temp_line_table): New ctor.
321         (selftest::temp_line_table::~temp_line_table): New dtor.
322         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
323         it to create a temp_line_table.
324         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
325         locations that are known to have column data.
326         (selftest::line_table_case): New struct.
327         (selftest::test_reading_source_line): Move tempfile handling
328         to class temp_source_file.
329         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
330         (selftest::assert_token_loc_eq): New function.
331         (ASSERT_TOKEN_LOC_EQ): New macro.
332         (selftest::test_lexer): New function.
333         (selftest::boundary_locations): New array.
334         (selftest::input_c_tests): Call test_should_have_column_data_p.
335         Loop over a test matrix of interesting values of location and
336         default_range_bits, calling test_lexer on each case in the matrix.
337         Move call to test_accessing_ordinary_linemaps into the matrix.
338         * selftest.h (ASSERT_EQ): Reimplement in terms of...
339         (ASSERT_EQ_AT): New macro.
340
341 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
342
343         PR target/71801
344         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
345         Don't convert TImode in debug insn.
346
347 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
348
349         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
350         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
351         (tree_type_common::lang_flag_7): New.
352         (tree_type_common::spare): Reduce size.
353         * tree.h (TYPE_ALIGN_OK): Remove.
354         (TYPE_LANG_FLAG_7): New.
355         (get_inner_reference): Adjust header.
356         * print-tree.c (print_node): Adjust.
357         * expr.c (get_inner_reference): Remove parameter keep_aligning.
358         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
359         calls to get_inner_reference.
360         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
361         handling of TYPE_ALIGN_OK.
362         * builtins.c (get_object_alignment_2): Adjust call to
363         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
364         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
365         TYPE_ALIGN_OK.
366         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
367         * cfgexpand.c (expand_debug_expr): Likewise.
368         * dbxout.c (dbxout_expand_expr): Likewise.
369         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
370         loc_list_from_tree, fortran_common): Likewise.
371         * fold-const.c (optimize_bit_field_compare,
372         decode_field_reference, fold_unary_loc, fold_comparison,
373         split_address_to_core_and_offset): Likewise.
374         * gimple-laddress.c (execute): Likewise.
375         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
376         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
377         * hsa-gen.c (gen_hsa_addr): Likewise.
378         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
379         * tsan.c (instrument_expr): Likewise.
380         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
381         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
382         * tree-affine.c (tree_to_aff_combination,
383         get_inner_reference_aff): Adjust calls to get_inner_reference.
384         * tree-data-ref.c (split_constant_offset_1,
385         dr_analyze_innermost): Likewise.
386         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
387         * tree-sra.c (ipa_sra_check_caller): Likewise.
388         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
389         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
390         bswap_replace): Likewise.
391         * tree-vect-data-refs.c (vect_check_gather,
392         vect_analyze_data_refs): Likewise.
393         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
394         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
395         TYPE_ALIGN_OK.
396
397 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
398
399         * Makefile.in (selftest-valgrind): New phony target.
400         * function-tests.c (selftest::build_cfg): Delete pass instances
401         created by the test.
402         (selftest::convert_to_ssa): Likewise.
403         (selftest::test_expansion_to_rtl): Likewise.
404         * tree-cfg.c (selftest::test_linear_chain): Release dominator
405         vectors.
406         (selftest::test_diamond): Likewise.
407
408 2016-07-11  Richard Biener  <rguenther@suse.de>
409
410         PR tree-optimization/71816
411         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
412         than replacing all of its operands.
413
414 2016-07-11  Alan Modra  <amodra@gmail.com>
415
416         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
417         (ctr<mode>): Add unspec.
418         (ctr<mode>_internal*): Likewise.
419
420 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
421
422         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
423         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
424
425 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
426
427         PR rtl-optimization/71621
428         * lra-constraints.c (process_alt_operands): Check combination of
429         reg class and mode.
430
431 2016-07-08  Jason Merrill  <jason@redhat.com>
432             Richard Biener  <rguenther@suse.de>
433
434         P0145: Refining Expression Order for C++.
435         * gimplify.c (initial_rhs_predicate_for): New.
436         (gimplfy_modify_expr): Gimplify RHS before LHS.
437
438 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
439
440         PR target/71297
441         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
442         Allow standard error handling to take over when a wrong number
443         of arguments is presented to __builtin_vec_ld () or
444         __builtin_vec_st ().
445
446 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
447
448         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
449         variants.
450         (smin): Likewise.
451         (fmax): New entry.
452         (fmin): Likewise.
453         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
454         __builtin_aarch64_fmaxv2sf.
455         (vmaxnmq_f32): Likewise.
456         (vmaxnmq_f64): Likewise.
457         (vminnm_f32): Likewise.
458         (vminnmq_f32): Likewise.
459         (vminnmq_f64): Likewise.
460
461 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
462
463         PR target/71806
464         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
465         enable -mfloat128-hardware by default.
466         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
467         that IEEE 128-bit hardware support needs.
468         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
469         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
470         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
471         floating point requires.
472         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
473         -mfloat128 and -mfloat128-hardware changes.
474
475 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
476
477         PR tree-optimization/71667
478         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
479
480 2016-07-08  Martin Liska  <mliska@suse.cz>
481
482         PR middle-end/71606
483         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
484         folding produces SAVE_EXPRs, thus return false for the type.
485
486 2016-07-07  Martin Liska  <mliska@suse.cz>
487
488         * file-find.c (remove_prefix): New function.
489         * file-find.h (remove_prefix): Declare the function.
490         * gcc-ar.c (main): Skip a folder of the wrapper if
491         a wrapped binary would point to the same file.
492
493 2016-07-07  Jan Hubicka  <jh@suse.cz>
494
495         * tree-scalar-evolution.c (iv_can_overflow_p): export.
496         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
497         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
498
499 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
500
501         PR ipa/71624
502         * ipa-inline-analysis.c (compute_inline_parameters): Set
503         local.can_change_signature to false for intrumentation
504         thunk callees.
505
506 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
507
508         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
509         with TARGET_HAVE_MOVT.
510         (TARGET_HAVE_MOVT): Define.
511         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
512         availability with TARGET_HAVE_MOVT.
513         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
514         availability.
515         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
516         TARGET_THUMB2.
517         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
518         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
519         * config/arm/constraints.md (define_constraint "j"): Use
520         TARGET_HAVE_MOVT to check MOVT availability.
521
522 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
523
524         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
525
526 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
527
528         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
529         (armv8-m.main): Likewise.
530         (armv8-m.main+dsp): Likewise.
531         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
532         (FL_FOR_ARCH8M_MAIN): Likewise.
533         * config/arm/arm-tables.opt: Regenerate.
534         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
535         armv8-m.main+dsp to BE8_LINK_SPEC.
536         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
537         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
538         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
539         Baseline and Mainline.
540         (arm_option_override_internal): Also disable arm_restrict_it when
541         !arm_arch_notm.  Update comment for -munaligned-access to also cover
542         ARMv8-M Baseline.
543         (arm_file_start): Increase buffer size for printing architecture name.
544         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
545         and armv8-m.main+dsp.
546         (mno-unaligned-access): Clarify that this is disabled by default for
547         ARMv8-M Baseline architectures as well.
548
549 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
550
551         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
552         decide whether to prevent some libgcc routines being included for some
553         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
554         link between this condition and the one in
555         libgcc/config/arm/lib1func.S.
556
557 2016-07-07  Richard Biener  <rguenther@suse.de>
558
559         * tree-ssa-pre.c: Include alias.h.
560         (compute_avail): If we have multiple VN_REFERENCEs with the
561         same hashtable entry adjust that to make it a valid replacement
562         for all of them with respect to alignment and aliasing
563         when doing insertion.
564         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
565         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
566
567 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
568
569         PR target/70098
570         PR target/71763
571         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
572         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
573         constraint.
574
575 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
576
577         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
578         (adjust_mems): Adjust.
579         (adjust_insn): Likewise.
580         (prepare_call_arguments): Likewise.
581
582 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
583
584         * gcse.c (struct ls_expr): Make stores field a vector.
585         (ldst_entry): Adjust.
586         (free_ldst_entry): Likewise.
587         (print_ldst_list): Likewise.
588         (compute_ld_motion_mems): Likewise.
589         (update_ld_motion_stores): Likewise.
590
591 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
592
593         * gcse.c (struct ls_expr): Remove loads field.
594         (ldst_entry): Adjust.
595         (free_ldst_entry): Likewise.
596         (print_ldst_list): Likewise.
597         (compute_ld_motion_mems): Likewise.
598
599 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
600
601         * store-motion.c (struct st_expr): Make antic_stores a vector.
602         (st_expr_entry): Adjust.
603         (free_st_expr_entry): Likewise.
604         (print_store_motion_mems): Likewise.
605         (find_moveable_store): Likewise.
606         (compute_store_table): Likewise.
607         (remove_reachable_equiv_notes): Likewise.
608         (replace_store_insn): Likewise.
609         (build_store_vectors): Likewise.
610
611 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
612
613         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
614         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
615
616 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
617
618         PR tree-optimization/71518
619         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
620         misalign also for outer loops with negative step.
621
622 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
623
624         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
625         (cortex_a53_shift): Add mov_shift.
626         (cortex_a53_shift_reg): Add new reservation for register shifts.
627         (cortex_a53_alu): Remove bfm.
628         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
629         (cortex_a53_alu_extr): Add new reservation for EXTR.
630         (bypasses): Improve bypass modelling.
631
632 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
633
634         PR target/50739
635         * config/avr/avr.c (avr_asm_select_section): Strip off
636         SECTION_DECLARED from flags when calling get_section.
637
638 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
639
640         * tree-vectorizer.h (vect_memory_access_type): Add
641         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
642         * tree-vect-stmts.c (compare_step_with_zero): New function.
643         (perm_mask_for_reverse): Move further up file.
644         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
645         step is negative.
646         (get_negative_load_store_type): New function.
647         (get_load_store_type): Call it.  Add an ncopies argument.
648         (vectorizable_mask_load_store): Update call accordingly and
649         remove tests for negative steps.
650         (vectorizable_store, vectorizable_load): Likewise.  Handle new
651         memory_access_types.
652
653 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
654
655         * tree-vectorizer.h (vect_memory_access_type): New enum.
656         (_stmt_vec_info): Add a memory_access_type field.
657         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
658         (vect_model_store_cost): Take an access type instead of a boolean.
659         (vect_model_load_cost): Likewise.
660         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
661         vect_model_store_cost and vect_model_load_cost.
662         * tree-vect-stmts.c (vec_load_store_type): New enum.
663         (vect_model_store_cost): Take an access type instead of a
664         store_lanes_p boolean.  Simplify tests.
665         (vect_model_load_cost): Likewise, but for load_lanes_p.
666         (get_group_load_store_type, get_load_store_type): New functions.
667         (vectorizable_store): Use get_load_store_type.  Record the access
668         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
669         (vectorizable_load): Likewise.
670         (vectorizable_mask_load_store): Likewise.  Replace is_store
671         variable with vls_type.
672
673 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
674
675         * tree-vectorizer.h (vect_grouped_load_supported): Add a
676         single_element_p parameter.
677         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
678         Check the PR65518 case here rather than in vectorizable_load.
679         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
680         * tree-vect-stmts.c (vectorizable_load): Likewise.
681
682 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
683
684         * tree-vectorizer.h (gather_scatter_info): New structure.
685         (vect_check_gather_scatter): Return a bool rather than a decl.
686         Replace return-by-pointer arguments with a single
687         gather_scatter_info *.
688         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
689         (vect_analyze_data_refs): Update call accordingly.
690         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
691         (vectorizable_mask_load_store): Likewise.  Also record the
692         offset dt and vectype in the gather_scatter_info.
693         (vectorizable_store): Likewise.
694         (vectorizable_load): Likewise.
695
696 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
697
698         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
699         strided groups, use the cost of N scalar accesses instead
700         of ncopies vector accesses.
701         (vect_model_load_cost): Likewise.
702
703 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
704
705         * tree-vect-stmts.c (vect_cost_group_size): Delete.
706         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
707         variable to indicate when once-per-group costs are being used.
708         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
709
710 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
711
712         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
713         peeling-for-gaps condition.
714
715 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
716
717         * config/s390/s390.c (s390_expand_vec_init): Force initializer
718         element to register if it doesn't match general_operand.
719
720 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
721             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
722
723         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
724         prototype.
725         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
726         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
727         (SIGNBIT): New mode iterator.
728         (Fsignbit): New mode attribute.
729         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
730         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
731         when direct moves are available.
732         (signbit<mode>2_dm): New define_insn_and_split).
733         (signbit<mode>2_dm2): New define_insn.
734
735 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
736
737         PR rtl-optimization/71594
738         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
739         into subregs of appropriate mode before trying to emit a conditional
740         move.
741
742 2016-07-05  Jan Hubicka  <jh@suse.cz>
743
744         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
745         (simple_iv): Use it.
746
747 2016-07-05  Jan Hubicka  <jh@suse.cz>
748
749         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
750
751 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
752
753         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
754         "offmemok".
755
756 2016-07-05  Jan Hubicka  <jh@suse.cz>
757
758         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
759         IV can overflow.
760
761 2016-07-05  Richard Biener  <rguenther@suse.de>
762
763         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
764         Handle empty else block.
765         (is_feasible_trace): Likewise.
766         (split_paths): Likewise.
767
768 2016-07-05  Richard Biener  <rguenther@suse.de>
769
770         * tree-loop-distribution.c (distribute_loop): Fix issue with
771         the cost model loop.
772
773 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
774
775         * config/arm/neon-testgen.ml: Delete.
776         * config/arm/neon.ml: Delete.
777
778 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
779
780         PR c++/71739
781         * tree.c (attribute_value_equal): Use get_attribute_name instead of
782         directly using TREE_PURPOSE.
783
784 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
785
786         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
787         * config/aarch64/aarch64_neon.h: Likewise.
788         * config/aarch64/arm_neon.h: Likewise.
789         * config/aarch64/atomics.md: Likewise.
790         * config/aarch64/aarch64-simd-builtins.def: Likewise.
791         * doc/invoke.texi: Likewise.
792
793 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
794
795         * config/s390/s390.md: Add "z13" cpu_facility.
796         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
797         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
798         condition" type instructions.
799
800 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
801             Jeff Law  <law@redhat.com>
802
803         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
804         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
805
806 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
807
808         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
809         permutation for TARGET_AVX512F.
810         (ix86_expand_vec_one_operand_perm_avx512): New function.
811         (expand_vec_perm_1): Invoke introduced function.
812         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
813         it may be not valid after vectorization.
814
815 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
816
817         PR target/63874
818         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
819         typo in comment.  Only force to memory if it is a weak
820         external reference.
821
822 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
823             Jiong Wang  <jiong.wang@arm.com>
824
825         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
826         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
827         (AARCH64_FL_F16): New.
828         (AARCH64_FL_FOR_ARCH8_2): New.
829         (AARCH64_ISA_8_2): New.
830         (AARCH64_ISA_F16): New.
831         (TARGET_FP_F16INST): New.
832         (TARGET_SIMD_F16INST): New.
833         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
834         ("fp"): Disabling "fp" also disables "fp16".
835         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
836         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
837         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
838         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
839
840 2016-07-04  Jan Beulich  <jbeulich@suse.com>
841
842         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
843
844 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
845
846         PR target/71720
847         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
848         the insns, use an insn form that does not adjust the offset on
849         little endian systems.
850
851 2016-07-01  Jan Beulich  <jbeulich@suse.com>
852
853         * varasm.c (get_variable_section): Validate initializer in
854         named .bss-like sections.
855
856 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
857
858         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
859         Exchange the order of the second and third operands in the vpermr
860         instruction tmeplate.
861
862 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
863
864         PR target/71698
865         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
866         Disallow TDmode values.
867
868 2016-07-01  Alan Modra  <amodra@gmail.com>
869
870         PR rtl-optimization/71709
871         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
872         being set, not referenced.
873
874 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
875
876         PR tree-optimization/70729
877         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
878         of loop since it can be not valid after transformation.
879
880 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
881
882         * config/arm/arm.c (thumb_reload_in_hi): Delete.
883         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
884
885 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
886
887         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
888         for NULL decl.
889
890 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
891
892         PR target/71677
893         * config/rs6000/constraints.md (wY constraint): New constraint to
894         match the requirements for the LXSD and STXSD instructions.
895         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
896         predicate to match the requirements for the LXSD and STXSD
897         instructions.
898         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
899         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
900         to make sure that the bottom 2 bits of offset are 0, the address
901         form is offsettable, and no updating is done in the address mode.
902         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
903         (movdi_internal32): Likewise
904         (movdi_internal64): Likewise.
905
906 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
907
908         PR tree-optimization/71707
909         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
910         strinfo even for ADDR_EXPR ptr.
911
912 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
913
914         * config/rs6000/altivec.md (darn_32): Change the condition to
915         TARGET_P9_MISC instead of TARGET_MODULO.
916         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
917         condition expression.
918         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
919         condition expression.
920         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
921         (DFP_TEST): New code iterator.
922         (dfptstsfi_<code>_mode>): New define_expand.
923         (*dfp_sgnfcnc_<mode>): New define_insn.
924         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
925         definition next to BU_P9_MISC_1 definition and change the MASK
926         value to RS6000_BTM_P9_MISC.
927         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
928         (BU_P9_64BIT_MISC_0): Likewise.
929         (BU_P9_DFP_MISC_0): New macro definition.
930         (BU_P9_DFP_MISC_1): New macro definition.
931         (BU_P9_DFP_MISC_2): New macro definition.
932         (BU_P9_DFP_OVERLOAD_1): New macro definition.
933         (BU_P9_DFP_OVERLOAD_2): New macro definition.
934         (BU_P9_DFP_OVERLOAD_3): New macro definition.
935         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
936         (TSTSFI_LT_TD): Likewise.
937         (TSTSFI_EQ_DD): Likewise.
938         (TSTSFI_EQ_TD): Likewise.
939         (TSTSFI_GT_DD): Likewise.
940         (TSTSFI_GT_TD): Likewise.
941         (TSTSFI_OV_DD): Likewise.
942         (TSTSFI_OV_TD): Likewise.
943         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
944         (TSTSFI_LT_DD): Likewise.
945         (TSTSFI_LT_TD): Likewise.
946         (TSTSFI_EQ): Likewise.
947         (TSTSFI_EQ_DD): Likewise.
948         (TSTSFI_EQ_TD): Likewise.
949         (TSTSFI_GT): Likewise.
950         (TSTSFI_GT_DD): Likewise.
951         (TSTSFI_GT_TD): Likewise.
952         (TSTSFI_OV): Likewise.
953         (TSTSFI_OV_DD): Likewise.
954         (TSTSFI_OV_TD): Likewise.
955         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
956         overloaded test significance functions.
957         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
958         OPTION_MASK_P9_MISC into the representation of this mask.
959         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
960         of this mask.
961         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
962         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
963         non-zero.
964         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
965         argument is a 6-bit unsigned literal value if the icode argument
966         represents a DFP test significance built-in call.
967         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
968         flag used independently and in combination with the
969         RS6000_BTM_64BIT flag.
970         (rs6000_opt_masks): Add entry for power9-misc command-line option.
971         (rs6000_builtin_mask_names): Add entry for power9-misc
972         command-line option.
973         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
974         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
975         RS6000_BTM_P9_MISC macros.
976         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
977         option and change the description of the -mpower9-vector option to
978         enable only vector instructions, removing its erroneously claimed
979         support for scalar instructions.
980         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
981         the ISA 3.0 digital floating point test significance built-in
982         functions.
983
984 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
985
986         * config/aarch64/aarch64.c (cortexa35_tunings):
987         Enable AES fusion.  Use cortexa57_branch_cost.
988         (cortexa53_tunings): Use cortexa57_branch_cost.
989         (cortexa72_tunings): Use cortexa57_branch_cost.
990         Use AUTOPREFETCHER_WEAK.
991         (cortexa73_tunings): Use cortexa57_branch_cost.
992
993 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
994             James Greenhalgh  <james.greenhalgh@arm.com>
995
996         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
997         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
998         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
999         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
1000         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
1001         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
1002         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
1003         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
1004         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
1005         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
1006         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
1007         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
1008         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
1009         New intrinsics.
1010
1011 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
1012             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1013
1014         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1015         New define_insn.
1016         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
1017
1018 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
1019
1020         PR driver/71651
1021         * gcc.c (driver::build_option_suggestions): Pass "option" to
1022         add_misspelling_candidates.
1023         * opts-common.c (add_misspelling_candidates): Add "option" param;
1024         use it to avoid adding negated forms for options marked with
1025         RejectNegative.
1026         * opts.h (add_misspelling_candidates): Add "option" param.
1027
1028 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1029
1030         PR middle-end/71693
1031         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1032         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1033         first when permuting bitwise operation with rotate.  Cast
1034         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1035
1036 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
1037
1038         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
1039         for misspelled param names.
1040         * params.c: Include spellcheck.h.
1041         (find_param_fuzzy): New function.
1042         * params.h (find_param_fuzzy): New prototype.
1043         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
1044         * spellcheck.h (struct edit_distance_traits<const char *>):
1045         ...here.
1046
1047 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1048
1049         * config/rs6000/predicates.md (const_0_to_7_operand): New
1050         predicate, recognize 0..7.
1051         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1052         support for doing extracts from V16QImode, V8HImode, V4SImode
1053         under ISA 3.0.
1054         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
1055         vector extract support.
1056         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
1057         for ISA 3.0 vector extract.
1058         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
1059         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
1060         extracts of a constant element number from small integer vectors
1061         on 64-bit ISA 3.0 systems.
1062         (vsx_extract_<mode>_di): Likewise.
1063         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
1064         say when we can do ISA 3.0 vector extracts.
1065         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
1066         registers, using the stxsiwx instruction.
1067
1068 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
1069
1070         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
1071         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
1072         qdf24xx_regmove_cost, qdf24xx_tunings): New.
1073         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
1074         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
1075         * config/arm/arm.c (arm_qdf24xx_tune): New.
1076
1077 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
1078
1079         * config/aarch64/aarch64.c (cortexa53_tunings):
1080         Increase loop alignment to 8.  Set function alignment to 16.
1081         (cortexa35_tunings): Likewise.
1082         (cortexa57_tunings): Increase loop alignment to 8.
1083         (cortexa72_tunings): Likewise.
1084         (cortexa73_tunings): Likewise.
1085
1086 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1087
1088         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
1089         for arm_fp16_ok and arm_fp16_hw.
1090         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
1091         arm_fp16_alternative.
1092
1093 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1094
1095         PR tree-optimization/71655
1096         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
1097         types when swapping operands.
1098
1099 2016-06-29  Martin Liska  <mliska@suse.cz>
1100
1101         PR middle-end/71585
1102         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
1103         * ipa-inline-transform.c (inline_call): Remove unnecessary call
1104         of build_optimization_node.
1105
1106 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1107
1108         PR tree-optimization/70729
1109         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1110         independent in loops having positive safelen value.
1111         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1112         it may be not valid after vectorization.
1113
1114 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1115
1116         PR tree-optimization/71625
1117         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
1118         is sorted by ascending list->offset.  If PTR is non-NULL and there is
1119         previous strinfo, call get_stridx_plus_constant.
1120         (get_stridx): Pass exp as second argument to get_addr_stridx.
1121         (addr_stridxptr): Add missing list = list->next, so that there can be
1122         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
1123         the list is sorted by ascending list->offset.
1124         (get_stridx_plus_constant): Adjust so that it can be also called with
1125         ADDR_EXPR instead of SSA_NAME as PTR.
1126         (handle_char_store): Pass NULL_TREE as second argument to
1127         get_addr_stridx.
1128
1129 2016-06-29  Richard Biener  <rguenther@suse.de>
1130
1131         PR rtl-optimization/68961
1132         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1133
1134 2016-06-29  Richard Biener  <rguenther@suse.de>
1135
1136         PR middle-end/71002
1137         * alias.c (component_uses_parent_alias_set_from): Handle
1138         type punning through union accesses by using the union alias set.
1139         * gimple.c (gimple_get_alias_set): Remove union type punning case.
1140
1141 2016-07-29  Richard Biener  <rguenther@suse.de>
1142
1143         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1144         precision not matching mode precision.
1145
1146 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
1147
1148         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1149         pa_output_arg_descriptor.
1150         (call_val_symref_64bit_post_reload): Likewise.
1151         (call_val_powf_64bit_post_reload): Likewise.
1152         (sibcall_internal_symref_64bit): Likewise.
1153         (sibcall_value_internal_symref_64bit): Likewise.
1154
1155 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1156
1157         PR middle-end/71626
1158         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1159         a constant, force its SUBREG_REG into memory or register instead
1160         of whole op1.
1161
1162 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1163
1164         PR target/58655
1165         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1166         * doc/invoke.texi (AVR Options): Document it.
1167
1168 2016-06-28  Walter Lee  <walt@tilera.com>
1169
1170         * config/tilegx/linux.h: Do not include arch/icache.h
1171         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1172         * config/tilepro/linux.h: Do not include arch/icache.h
1173         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1174
1175 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1176
1177         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1178         for big-endian BIT_FIELD_REF.
1179
1180 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
1181
1182         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1183         ('size' attribute): Add '128'.
1184         Include power9.md.
1185         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1186         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1187         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1188         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1189         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1190         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1191         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1192         *trunc<mode>df2_odd): Set size attribute to '128'.
1193         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1194         * config/rs6000/power6.md (power6-fp): Include dfp type.
1195         * config/rs6000/power7.md (power7-fp): Likewise.
1196         * config/rs6000/power8.md (power8-fp): Likewise.
1197         * config/rs6000/power9.md: New file.
1198         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1199         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1200         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1201         htmsimple.
1202         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1203         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1204         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1205         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1206         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1207         dfp_dscri_<mode>): Change type attribute to dfp.
1208         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1209         attribute to vecsimple.
1210         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1211         and prefetch streams.
1212         (rs6000_option_override_internal): Remove temporary code setting
1213         tuning to power8.  Don't set rs6000_sched_groups for power9.
1214         (last_scheduled_insn): Change to rtx_insn *.
1215         (divide_cnt, vec_load_pendulum): New variables.
1216         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
1217         (rs6000_issue_rate): Set issue rate for Power9.
1218         (is_power9_pairable_vec_type): New.
1219         (power9_sched_reorder2): New.
1220         (rs6000_sched_reorder2): Call new function for Power9 specific
1221         reordering.
1222         (insn_must_be_first_in_group): Remove Power9.
1223         (insn_must_be_last_in_group): Likewise.
1224         (force_new_group): Likewise.
1225         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
1226         Initialize divide_cnt/vec_load_pendulum.
1227         (_rs6000_sched_context, rs6000_init_sched_context,
1228         rs6000_set_sched_context): Handle context save/restore of new
1229         variables.
1230
1231 2016-06-28  Richard Biener  <rguenther@suse.de>
1232
1233         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1234         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
1235         COMPONENT_REF operand.
1236         (nonoverlapping_component_refs_p): Likewise.
1237         * stor-layout.c (start_bitfield_representative): Mark
1238         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
1239
1240 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1241
1242         * Makefile.in: Don't cat ../stage_current if it does not exist.
1243
1244         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
1245         last argument is a bit-field.
1246
1247         PR rtl-optimization/71673
1248         * internal-fn.c (expand_arith_overflow_result_store): Use
1249         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
1250         expand_simple_binop.
1251
1252         PR middle-end/66867
1253         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
1254         expand_ifn_atomic_compare_exchange): New functions.
1255         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1256         * tree.h (build_call_expr_internal_loc): Rename to ...
1257         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1258         last argument.
1259         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1260         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1261         ATOMIC_COMPARE_EXCHANGE result.
1262         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1263         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1264         fold_builtin_atomic_compare_exchange): New prototypes.
1265         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1266         fold_builtin_atomic_compare_exchange): New functions..
1267         * tree-ssa.c (execute_update_addresses_taken): If
1268         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1269         of call when finding addressable vars, and if such var becomes
1270         non-addressable, call fold_builtin_atomic_compare_exchange.
1271
1272 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1273
1274         PR target/71670
1275         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1276         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1277
1278 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1279
1280         * config/rs6000/rs6000.md ('type' attribute): Add
1281         veclogical,veccmpfx,vecexts,vecmove insn types.
1282         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1283         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1284         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1285         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1286         *nabs<mode>2_hw): Change type to vecmove.
1287         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1288         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1289         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1290         *ieee_128bit_vsx_abs<mode>2_internal,
1291         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1292         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1293         *ieee128_mtvsrd_32bit): Change type to veclogical.
1294         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1295         *movdi_internal32, *movdi_internal64): Update insn types.
1296         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1297         vsx_extract_<mode>): Change type to veclogical.
1298         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1299         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1300         *vsx_sign_extend_si_v2di): Change type to vecexts.
1301         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1302         type to veclogical.
1303         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1304         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1305         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1306         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1307         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1308         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1309         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1310         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1311         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1312         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1313         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1314         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1315         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1316         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1317         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1318         (ppc7450-vecsimple): Add veclogical, vecmove.
1319         (ppc7450-veccmp): Add veccmpfx.
1320         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1321         vecmove.
1322         (ppc8540_vector_compare): Add veccmpfx.
1323         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1324         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1325         (cell-vecsimple): Add veclogical, vecmove.
1326         (cell-veccmp): Add veccmpfx.
1327         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1328         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1329         veccmpfx.
1330         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1331         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1332         (power4-vecsimple): Add veclogical, vecmove.
1333         (power4-veccmp): Add veccmpfx.
1334         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1335         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1336         (power6-vecsimple): Add veclogical, vecmove.
1337         (power6-veccmp): Add veccmpfx.
1338         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1339         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1340         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1341         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1342         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1343         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1344         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1345         fpsimple.
1346         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1347
1348 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1349
1350         PR target/71656
1351         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1352         OPTION_MASK_P9_DFORM_VECTOR.
1353         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1354         disable -mpower9-dform-vector when using reload.
1355         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1356         New 'strict' argument.  Update all callers.  Add strict addressing
1357         support.
1358         (rs6000_legitimate_offset_address_p): Remove call to
1359         virtual_stack_registers_memory_p.
1360         (rs6000_legitimize_reload_address): Add quad address support.
1361         (rs6000_legitimate_address_p): Move call to quad_address_p above
1362         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1363         to account for new strict usage.
1364         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1365         for new strict usage.
1366         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1367
1368 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1369
1370         PR target/70902
1371         PR target/71453
1372         PR target/71555
1373         PR target/71596
1374         PR target/71657
1375         * config/i386/i386.c (ix86_spill_class): Disable condition to
1376         always return NO_REGS.
1377
1378 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1379
1380         * predict.c: Include gimple-pretty-print.h
1381         (predicted_by_loop_heuristics_p): Check also
1382         PRED_LOOP_EXIT_WITH_RECURSION
1383         (predict_loops): Find self recursive calls and use special purpose
1384         predictors for them; dump log about decisions.
1385         (pass_profile::execute): Dump info about #of iterations.
1386         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1387         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1388
1389 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1390
1391         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1392         output_asm_insn calls and shorten long lines.  Output .CALL
1393         argument descriptor using pa_output_arg_descriptor.  Add various
1394         inline $$dyncall and other optimizations.
1395         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1396
1397 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
1398
1399         PR tree-optimization/71643
1400         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
1401         EH preds.
1402
1403         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
1404         leak a bitmap if dep_bb is NULL.
1405
1406         PR tree-optimization/71631
1407         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
1408         to rewrite_expr_tree even if negate_result, move new_lhs var
1409         declaration and initialization earlier, for powi_result set afterwards
1410         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
1411         if new_lhs != lhs, and don't shadow gsi var.
1412
1413 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1414
1415         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
1416         Add in_loop parameter.
1417         (predict_loops): Add loop guard heuristics.
1418         * predict.def (PRED_LOOP_GUARD): New heuristics.
1419
1420 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1421
1422         * predict.c: Include ipa-utils.h
1423         (tree_bb_level_prediction): Predict recursive calls.
1424         (tree_estimate_probability_bb): Skip inexpensive calls for call
1425         predictor.
1426         * predict.def (PRED_RECURSIVE_CALL): New.
1427
1428 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1429
1430         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
1431         (BU_FLOAT128_1): Likewise.
1432         (FABSQ): Likewise.
1433         (COPYSIGNQ): Likewise.
1434         (RS6000_BUILTIN_NANQ): Likewise.
1435         (RS6000_BUILTIN_NANSQ): Likewise.
1436         (RS6000_BUILTIN_INFQ): Likewise.
1437         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
1438         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
1439         (TARGET_FOLD_BUILTIN): New #define.
1440         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
1441         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
1442         (rs6000_fold_builtin): New target hook implementation, handling
1443         folding of 128-bit NaNs and infinities.
1444         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
1445         entries are filled in to avoid problems during bootstrap
1446         self-test; define builtins for 128-bit NaNs and infinities.
1447         (rs6000_opt_mask): Add entry for float128.
1448         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
1449         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
1450         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
1451         (const_str_type_node): New #define.
1452         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
1453         to a define_expand that dispatches to either copysign<mode>3_soft
1454         or copysign<mode>3_hard.
1455         (copysign<mode>3_hard): Rename from copysign<mode>3.
1456         (copysign<mode>3_soft): New define_insn.
1457         * doc/extend.texi: Document new builtins.
1458
1459 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1460
1461         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
1462         PRIu64 instead of lu.
1463
1464 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1465
1466         PR debug/71642
1467         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
1468         copy the type name.
1469
1470 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1471
1472         PR tree-optimization/71647
1473         * omp-low.c (lower_rec_input_clauses): Convert
1474         omp_clause_aligned_alignment (c) to size_type_node for the
1475         last argument of __builtin_assume_aligned.
1476
1477 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1478
1479         * configure.ac (calling ___tls_get_addr via GOT): New
1480         assembler/linker check.
1481         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
1482         assembler and linker supports calling ___tls_get_addr via GOT.
1483         Otherise, defined to 0.
1484         * config.in: Regenerated.
1485         * configure: Likewise.
1486         * config/i386/constraints.md (Yb): New constraint.
1487         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
1488         (REG_CLASS_NAMES): Likewise.
1489         (REG_CLASS_CONTENTS): Likewise.
1490         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
1491         the b constraint with the Yb constraint.  Call ___tls_get_addr
1492         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
1493         is 1.
1494         (*tls_local_dynamic_base_32_gnu): Likewise.
1495         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
1496         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
1497         (*tls_local_dynamic_base_64_<mode>): Likewise.
1498
1499 2016-06-24  Martin Liska  <mliska@suse.cz>
1500
1501         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
1502         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
1503         few functions.
1504         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
1505         argument to true if the expected number of iterations is
1506         loop-based.
1507
1508 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
1509
1510         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
1511         assemble for 32bit target.
1512         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
1513         and $ld_ix86_gld_32_opt to link for 32bit target.
1514         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
1515         * configure: Regenerate.
1516
1517 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1518
1519         * config/arm/arm.c (int_log2): Delete definition and prototype.
1520         (shift_op): Use exact_log2 instead of int_log2.
1521         (vfp3_const_double_for_fract_bits): Likewise.
1522
1523 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1524
1525         * internal-fn.c (expand_arith_set_overflow): New function.
1526         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
1527         Use it.
1528         (expand_arith_overflow_result_store): Likewise.  Handle precision
1529         smaller than mode precision.
1530         * tree-vrp.c (extract_range_basic): For imag part, handle
1531         properly signed 1-bit precision result.
1532         * doc/extend.texi (__builtin_add_overflow): Document that last
1533         argument can't be pointer to enumerated or boolean type.
1534         (__builtin_add_overflow_p): Document that last argument can't
1535         have enumerated or boolean type.
1536
1537 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1538             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1539
1540         * config/rs6000/predicates.md (splat_input_operand): Rework.
1541         Don't allow constants, since the insns that use this predicate
1542         don't support constants.  Constants are handled by other insns
1543         that are created via combine.  During and after register
1544         allocation, only allow indexed or indirect addresses, and not
1545         general addresses.  Only allow modes supported by the hardware.
1546         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
1547         comment.  Move check for using VSPLTIS<x> to a common location,
1548         instead of doing it in two different places.
1549
1550 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
1551
1552         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1553         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
1554         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
1555         signature_CENTAUR_ebx.
1556
1557 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1558
1559         PR target/66232
1560         PR target/67400
1561         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
1562         (as_ix86_gas_32_opt): This.
1563         (ld_ix86_tls_ldm_opt): Renamed to ...
1564         (ld_ix86_gld_32_opt): This.
1565         (R_386_TLS_LDM reloc): Updated.
1566         (R_386_GOT32X reloc): New assembler/linker check.
1567         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
1568         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
1569         defined to 0.
1570         * config.in: Regenerated.
1571         * configure: Likewise.
1572         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
1573         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
1574         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
1575         if ix86_force_load_from_GOT_p returns true.
1576         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
1577         ix86_force_load_from_GOT_p returns true.
1578         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
1579         the external function address via the GOT slot.
1580         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
1581         HAVE_AS_IX86_GOT32X before returning false.
1582         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
1583         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
1584
1585 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
1586
1587         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
1588
1589 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1590
1591         * Makefile.in: Regenerate.
1592         * doc/install.texi: Document autoprofiledbootstrap.
1593
1594 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1595
1596         * config/i386/gcc-auto-profile: New file.
1597
1598 2016-06-23  Martin Liska  <mliska@suse.cz>
1599
1600         PR middle-end/71619
1601         * predict.c (predict_loops): Revert the hunk that was removed
1602         in r237103.
1603
1604 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1605
1606         * config.gcc: Add support for arm*-*-phoenix* targets.
1607         * config/arm/t-phoenix: New.
1608         * config/phoenix.h: New.
1609
1610 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
1611             H.J. Lu  <hongjiu.lu@intel.com>
1612
1613         PR target/67400
1614         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
1615         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
1616         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
1617         ix86_force_load_from_GOT_p returns true.
1618         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
1619         ix86_force_load_from_GOT_p returns true.
1620         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
1621         ix86_force_load_from_GOT_p returns true.
1622         (ix86_expand_move): Load the external function address via the
1623         GOT slot if ix86_force_load_from_GOT_p returns true.
1624         * config/i386/predicates.md (x86_64_immediate_operand): Return
1625         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
1626         (x86_64_zext_immediate_operand): Ditto.
1627
1628 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
1629
1630         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
1631
1632 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1633
1634         PR c/70339
1635         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
1636         * diagnostic.c (pedwarn_at_rich_loc): New function.
1637         * spellcheck.h (best_match::best_match): Add a
1638         "best_distance_so_far" optional parameter.
1639         (best_match::set_best_so_far): New method.
1640         (best_match::get_best_distance): New accessor.
1641         (best_match::get_best_candidate_length): New accessor.
1642
1643 2016-06-22  Nick Clifton  <nickc@redhat.com>
1644
1645         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
1646         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
1647         modes are accepted as well.
1648         (ucompare_loc_descriptor): Likewise.
1649         (minmax_loc_descriptor): Likewise.
1650         (clz_loc_descriptor): Likewise.
1651         (popcount_loc_descriptor): Likewise.
1652         (bswap_loc_descriptor): Likewise.
1653         (rotate_loc_descriptor): Likewise.
1654         (mem_loc_descriptor): Likewise.
1655         (loc_descriptor): Likewise.
1656
1657 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1658
1659         * common.opt (fdiagnostics-parseable-fixits): New option.
1660         * diagnostic.c: Include "selftest.h".
1661         (print_escaped_string): New function.
1662         (print_parseable_fixits): New function.
1663         (diagnostic_report_diagnostic): Call print_parseable_fixits.
1664         (selftest::assert_print_escaped_string): New function.
1665         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
1666         (selftest::test_print_escaped_string): New function.
1667         (selftest::test_print_parseable_fixits_none): New function.
1668         (selftest::test_print_parseable_fixits_insert): New function.
1669         (selftest::test_print_parseable_fixits_remove): New function.
1670         (selftest::test_print_parseable_fixits_replace): New function.
1671         (selftest::diagnostic_c_tests): New function.
1672         * diagnostic.h (struct diagnostic_context): Add field
1673         "parseable_fixits_p".
1674         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1675         -fdiagnostics-parseable-fixits.
1676         (-fdiagnostics-parseable-fixits): New option.
1677         * opts.c (common_handle_option): Handle
1678         -fdiagnostics-parseable-fixits.
1679         * selftest-run-tests.c (selftest::run_tests): Call
1680         selftest::diagnostic_c_tests.
1681         * selftest.h (selftest::diagnostic_c_tests): New prototype.
1682
1683 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
1684
1685         PR tree-optimization/71488
1686         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
1687         comparison of boolean vectors.
1688         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
1689         of boolean vectors using bitwise operations.
1690
1691 2016-06-22  Andreas Schwab  <schwab@suse.de>
1692
1693         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
1694         Remove declaration.
1695
1696 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1697
1698         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1699
1700 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1701
1702         * config/i386/i386.c (print_reg): Emit an error message on attempt to
1703         print FLAGS_REG.
1704
1705 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1706
1707         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
1708         * config/arm/arm-cores.def (cortex-a73): New entry.
1709         (cortex-a73.cortex-a35): Likewise.
1710         (cortex-a73.cortex-a53): Likewise.
1711         * config/arm/arm-tables.opt: Regenerate.
1712         * config/arm/arm-tune.md: Likewise.
1713         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
1714         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1715         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
1716         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1717         * doc/invoke.texi (ARM Options): Document cortex-a73,
1718         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
1719
1720 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1721
1722         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
1723         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
1724         (cortex-a73.cortex-a35): Likewise.
1725         (cortex-a73.cortex-a53): Likewise.
1726         * config/aarch64/aarch64-tune.md: Regenerate.
1727         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
1728         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
1729         -mcpu and -mtune.
1730
1731 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1732
1733         * configure.ac (gcc_cv_as_compress_debug): Remove
1734         --compress-debug-sections as extra as switch.
1735         Handle gas --compress-debug-sections=type.
1736         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
1737         Handle gld --compress-debug-sections=type.
1738         * configure: Regenerate.
1739
1740 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1741
1742         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
1743
1744 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
1745
1746         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
1747         (do_rewrite): likewise.
1748
1749 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1750
1751         * common/config/mep/mep-common.c: Remove.
1752         * config.gcc: Remove mep-* support.
1753         * config/mep/constraints.md: Remove.
1754         * config/mep/default.h: Remove.
1755         * config/mep/intrinsics.h: Remove.
1756         * config/mep/intrinsics.md: Remove.
1757         * config/mep/ivc2-template.h: Remove.
1758         * config/mep/mep-c5.cpu: Remove.
1759         * config/mep/mep-core.cpu: Remove.
1760         * config/mep/mep-default.cpu: Remove.
1761         * config/mep/mep-ext-cop.cpu: Remove.
1762         * config/mep/mep-intrin.h: Remove.
1763         * config/mep/mep-ivc2.cpu: Remove.
1764         * config/mep/mep-pragma.c: Remove.
1765         * config/mep/mep-protos.h: Remove.
1766         * config/mep/mep.c: Remove.
1767         * config/mep/mep.cpu: Remove.
1768         * config/mep/mep.h: Remove.
1769         * config/mep/mep.md: Remove.
1770         * config/mep/mep.opt: Remove.
1771         * config/mep/predicates.md: Remove.
1772         * config/mep/t-mep: Remove.
1773         * doc/install.texi: Remove mep-* documentation.
1774         * doc/md.texi: Likewise.
1775
1776 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1777
1778         * config.gcc: Remove support for avr-rtems.
1779         * config/avr/gen-avr-mmcu-specs.c: Likewise.
1780         * config/avr/rtems.h: Remove.
1781         * config/avr/t-rtems: Remove.
1782
1783 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1784
1785         * config.gcc: Remove m32r-rtems support.
1786         * config/m32r/rtems.h: Remove.
1787
1788 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1789
1790         * config.gcc: Remove h8300-rtems support.
1791         * config/h8300/rtems.h: Remove.
1792         * config/h8300/t-rtems: Remove.
1793
1794 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1795
1796         * config.gcc: Remove support for knetbsd.
1797         * configure.ac: Likewise.
1798         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
1799         * config/knetbsd-gnu.h: Remove.
1800         * configure: Regenerate.
1801
1802 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1803
1804         * config.gcc: Remove support for openbsd 2 and 3.
1805         * config/openbsd-oldgas.h: Remove.
1806
1807 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1808
1809         * config.gcc: Remove interix support.
1810         * config/i386/i386-interix.h: Remove.
1811         * config/i386/interix.opt: Remove.
1812         * config/i386/t-interix: Remove.
1813         * configure: Regenerate.
1814         * configure.ac: Remove interix support.
1815         * doc/install.texi: Remove interix documentation.
1816
1817 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1818
1819         * config/rs6000/rs6000.h: Add conditional preprocessing directives
1820         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
1821         not defined.
1822
1823 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1824
1825         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
1826         they are both PLACEHOLDER_EXPRs.
1827
1828 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1829
1830         * stor-layout.c (layout_type): Move setting complex MODE to
1831         layout_type, instead of setting it ahead of time by the caller.
1832         * tree.c (build_complex_type): Likewise.
1833
1834 2016-06-21  Martin Liska  <mliska@suse.cz>
1835
1836         * predict.c (force_edge_cold): Replace imposisble with
1837         impossible.
1838
1839 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1840
1841         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
1842         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
1843
1844 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1845
1846         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
1847
1848 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1849             Ilya Enkovich  <ilya.enkovich@intel.com>
1850
1851         PR target/71549
1852         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1853         New member function to convert V1TImode register to SUBREG
1854         TImode in debug insn.
1855         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
1856         after changing register mode to V1TImode.
1857
1858 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
1859
1860         * config/aarch64/aarch64-cores.def (vulcan): New core.
1861         * config/aarch64/aarch64-tune.md: Regenerate.
1862         * doc/invoke.texi: Document vulcan as an available option.
1863
1864 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1865
1866         * cse.c (canon_asm_operands): New function extracted from...
1867         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
1868         either standalone or member of a PARALLEL.
1869
1870 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1871
1872         PR target/30417
1873         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1874         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1875         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1876
1877 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1878
1879         PR target/71103
1880         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1881         constant addresses if can_create_pseudo_p.
1882
1883 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
1884
1885         PR tree-optimization/71588
1886         * tree-ssa-strlen.c (valid_builtin_call): New function.
1887         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1888         it.
1889
1890 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1891
1892         PR middle-end/71581
1893         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1894         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1895         for conversion of scalar user var to complex type and use the
1896         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
1897         punt.
1898
1899         PR rtl-optimization/71591
1900         * toplev.c (toplev::run_self_tests): If no_backend, complain and
1901         don't run any tests.
1902
1903 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
1904
1905         PR target/71571
1906         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
1907         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
1908         space for PIC with non-v32 and the common non-PIC "jump".
1909
1910 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1911
1912         PR target/71559
1913         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
1914         returned values and add UN*/LTGT/*ORDERED cases with values matching
1915         D operand modifier on vcmp for AVX.
1916
1917 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1918
1919         * config/aarch64/aarch64.opt
1920         (mpc-relative-literal-loads): Rename internal option name.
1921         * config/aarch64/aarch64.c
1922         (aarch64_nopcrelative_literal_loads): Rename to
1923         aarch64_pcrelative_literal_loads.
1924         (aarch64_expand_mov_immediate): Likewise.
1925         (aarch64_secondary_reload): Likewise.
1926         (aarch64_can_use_per_function_literal_pools_p): Likewise.
1927         (aarch64_override_options_after_change_1): Rename and simplify logic.
1928         (aarch64_classify_symbol): Merge large model checks into switch,
1929         remove pc-relative load check.
1930
1931 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1932
1933         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
1934         costs relative to the cost of a register move.
1935
1936 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1937
1938         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
1939         (vcvt_n_f64_u64): Likewise.
1940         (vcvt_n_s64_f64): Likewise.
1941         (vcvt_n_u64_f64): Likewise.
1942         (vcvt_f64_s64): Likewise.
1943         (vrecpe_f64): Likewise.
1944         (vcvt_f64_u64): Likewise.
1945         (vrecps_f64): Likewise.
1946
1947 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1948
1949         * config/aarch64/aarch64.md
1950         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
1951         iterators.
1952         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
1953         attributes.
1954         * config/aarch64/aarch64-builtins.c
1955         (aarch64_types_binop_uss_qualifiers): Delete.
1956         (TYPES_BINOP_USS): Likewise.
1957         (aarch64_types_binop_sus_qualifiers): Likewise.
1958         (TYPES_BINOP_SUS): Likewise.
1959         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
1960         (TYPES_FCVTIMM_SUS): Likewise.
1961         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
1962         rather than BINOP.
1963         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
1964         (fcvtzs): Use SHIFTIMM rather than BINOP.
1965         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
1966
1967 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1968
1969         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
1970         costs relative to the cost of a register move.
1971
1972 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1973
1974         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
1975         Allow scalar/single vector modes to be tieable.
1976
1977 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1978
1979         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
1980
1981 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1982
1983         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
1984         "alignement".
1985         * tree.h (TYPE_ALIGN): Likewise.
1986
1987 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1988
1989         PR target/71103
1990         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
1991
1992 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1993
1994         * config/avr/avr.c (avr_print_operand): Fix "format not a string
1995         literal" build warnings.
1996         (avr_print_operand_address): Dito.
1997
1998 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
1999
2000         PR target/71375
2001         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
2002         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
2003
2004 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
2005
2006         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
2007
2008 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2009
2010         PR bootstrap/71435
2011         * reload1.c (reload): Pass 0 to finish_spills when called because
2012         update_eliminables_and_spill returns true and remove did_spill.
2013         (finish_spills): Adjust comment and document GLOBAL parameter.
2014
2015 2016-06-17  DJ Delorie  <dj@redhat.com>
2016
2017         PR target/71338
2018         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2019         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2020         (umulqihi3_virt): Likewise.
2021         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2022         (umulqihi3_real): Likewise.
2023
2024 2016-06-17  Martin Liska  <mliska@suse.cz>
2025
2026         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2027
2028 2016-06-17  Martin Liska  <mliska@suse.cz>
2029
2030         * predict.def: PRED_LOOP_EXIT from 92 to 85.
2031
2032 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
2033
2034         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
2035         __FAST_MATH__.
2036         (vaddq_f32): Likewise.
2037         (vmul_f32): Likewise.
2038         (vmulq_f32): Likewise.
2039         (vsub_f32): Likewise.
2040         (vsubq_f32): Likewise.
2041
2042 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2043
2044         PR tree-optimization/71347
2045         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
2046         cost for all uses in group.
2047
2048 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
2049
2050         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
2051         insert gimple seq if it's not empty.
2052
2053 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2054
2055         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
2056         member OFFSET.
2057         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
2058         rather than OFFSET.
2059         (comp_dr_with_seg_len_pair): Ditto.
2060         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
2061         struct dr_with_seg_len_pair against DR_OFFSET.
2062         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
2063         DR_OFFSET directly.
2064
2065 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2066
2067         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
2068
2069 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
2070
2071         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
2072         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
2073         (pa_output_millicode_call): Likewise.
2074         (pa_output_call): Likewise.
2075         (pa_output_indirect_call): Likewise.
2076         (pa_asm_output_mi_thunk): Likewise.
2077
2078 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2079
2080         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
2081
2082 2016-06-16  Martin Liska  <mliska@suse.cz>
2083
2084         * predict.c (combine_predictions_for_insn): When we find a first
2085         match predictor, we should consider just predictors with
2086         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
2087         DS theory predictor.
2088         (combine_predictions_for_bb): Likewise.
2089
2090 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2091
2092         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2093         with base of reference to struct.
2094
2095 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2096
2097         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
2098
2099 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2100
2101         PR target/71151
2102         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2103         progmem_swtable_section.
2104         (progmem_swtable_section): Remove.
2105         (avr_asm_function_rodata_section): Remove.
2106         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2107         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2108
2109 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
2110
2111         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2112         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2113         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2114         signature_CENTAUR_ebx.
2115         * config/i386/i386.c (ix86_option_override_internal): Add
2116         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2117         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2118         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2119
2120 2016-06-16  Martin Liska  <mliska@suse.cz>
2121
2122         * predict.def: Add fortran loop preheader predictor.
2123         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2124         fold IFN_BUILTIN_EXPECT with a known constant argument.
2125
2126 2016-06-16  Martin Liska  <mliska@suse.cz>
2127
2128         * predict.def: Add 'Fortran' to display text of all
2129         PRED_FORTRAN_* predictors.
2130
2131 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2132
2133         PR target/71242
2134         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2135         [IA64_BUILTIN_NANSQ]: Ditto.
2136         (ia64_fold_builtin): New function.
2137         (TARGET_FOLD_BUILTIN): New define.
2138         (ia64_init_builtins) Declare const_string_type node.
2139         Add __builtin_nanq and __builtin_nansq builtin functions.
2140         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2141
2142 2016-06-16  Nick Clifton  <nickc@redhat.com>
2143
2144         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2145         MSP430_HWMULT_ prefix to enum values.
2146         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2147         * config/msp430/msp430.c: Update use of enum values.
2148         * config/msp430/msp430.md: Likewise.
2149         * config/msp430/msp430.opt: Likewise.
2150
2151 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
2152
2153         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2154         of comparsions in the last iteration.
2155
2156 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2157             Joern Rennecke  <joern.rennecke@embecosm.com>
2158
2159         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2160         addresses.
2161         (arc_needs_pcl_p): Add GOTOFFPC.
2162         (arc_legitimate_pic_addr_p): Likewise.
2163         (arc_output_pic_addr_const): Likewise.
2164         (arc_legitimize_pic_address): Generate a pc-relative address using
2165         GOTOFFPC.
2166         (arc_output_libcall): Use @pcl syntax.
2167         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2168         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2169         (*movsi_insn): Use @pcl syntax.
2170         (doloop_begin_i): Likewise.
2171
2172 2016-06-16  Martin Liska  <mliska@suse.cz>
2173
2174         * predict.def: Define a new predictor.
2175
2176 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2177
2178         * config/arc/arc.opt (mtp-regno): Update text.
2179
2180 2016-06-16  Renlin Li  <renlin.li@arm.com>
2181
2182         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2183
2184 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2185
2186         PR target/71554
2187         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2188         (setcc + and peephole2): Likewise.
2189
2190         PR rtl-optimization/71532
2191         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2192         memory slots.
2193
2194 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2195
2196         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2197         DImode constants with XXSPLTIB in vector registers.
2198         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2199         vsx_extract_<mode>_internal{1,2} into a single insn that handles
2200         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2201         extraction of the element at the top of the register as a scalar
2202         value.
2203         (vsx_extract_<mode>_internal1): Likewise.
2204         (vsx_extract_<mode>_internal2): Likewise.
2205         * config/rs6000/constraints.md (wi constraint): Remove a comment
2206         about DImode not being allowed in Altivec registers.
2207         (wB constraint): New constraint for constants that can be
2208         generated in Altivec registers with VSPLTISW/VUPKHSW.
2209         * config/rs6000/predicates.md (xxspltib_constant_split): Update
2210         comments.
2211         (xxspltib_constant_nosplit): Likewise.
2212         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2213         support for -mupper-regs-di to enable DImode to go into Altivec
2214         registers.
2215         (POWERPC_MASKS): Likewise.
2216         (power7 cpu): Likewise.
2217         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
2218         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
2219         for DImode being allowed in Altivec registers.  Update wi/wj
2220         constraints.  Set scalar_in_vmx_p flag.
2221         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
2222         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
2223         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
2224         (rs6000_opt_masks): Add -mupper-regs-di.
2225         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
2226         direct move to use wi and not wj.
2227         (lfiwzx): Likewise.
2228         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
2229         alternative.
2230         (floatunssi<mode>2_lfiwzx_mem): Likewise.
2231         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
2232         any VSX register, instead of just Altivec registers, to allow
2233         either operand to be an Altivec register or both.
2234         (fixuns_trunc<mode>di2_fctiduz): Likewise.
2235         (movdi_internal32): Add support for -mupper-regs-di.  Add support
2236         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
2237         the alternatives and attributes to be lined up to be easier to
2238         read.
2239         (movdi_internal64): Likewise.
2240         (64-bit DImode splitters): Change predicates to only split loading
2241         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
2242         load constants in ISA 3.0 or ISA 2.07 respectively.
2243         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2244         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
2245         mention -mcpu=power9 sets these options.
2246         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
2247         wB constraint.
2248
2249 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2250
2251         PR target/67353
2252         * config/avr/avr.c (avr_set_current_function): Warn misspelled
2253         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
2254         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2255         by default to warn misspelled interrupt/ signal handler.
2256         * doc/invoke.texi (AVR Options): Document it. Update description
2257         for -nodevicelib option.
2258
2259 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2260
2261         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2262         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2263         (aarch64_<sur>shll2_n<mode>): Likewise.
2264
2265 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2266
2267         PR middle-end/71529
2268         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2269         DECL_CONTEXT for copied arguments.
2270
2271 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2272
2273         PR tree-optimization/71483
2274         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2275         for slp
2276
2277 2016-06-15  Martin Liska  <mliska@suse.cz>
2278
2279         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2280         instead of predict_edge w/o a probability.
2281
2282 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2283
2284         PR tree-optimization/71439
2285         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2286         live PHIs.
2287
2288 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2289
2290         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2291         register subregs in SET_SRC.
2292
2293 2016-06-15  Richard Biener  <rguenther@suse.de>
2294
2295         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2296         store restrictions.
2297
2298 2016-06-15  Richard Biener  <rguenther@suse.de>
2299
2300         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2301         not consider dependences between accesses that belong to the
2302         same group.
2303         (vect_analyze_data_ref_dependences): Do not analyze read-read
2304         or self-dependences.
2305
2306 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2307
2308         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2309         spellcheck.h.
2310         (find_closest_identifier): Reimplement in terms of
2311         best_match<tree,tree>.
2312         * spellcheck-tree.h: New file.
2313         * spellcheck.c (struct edit_distance_traits<const char *>): New
2314         struct.
2315         (find_closest_string): Reimplement in terms of
2316         best_match<const char *, const char *>.
2317         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2318         overload to spellcheck-tree.h.
2319         (find_closest_identifier): Likewise.
2320         (struct edit_distance_traits<T>): New template.
2321         (class best_match): New class.
2322
2323 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2324
2325         * selftest-run-tests.c (selftest::run_tests): Call
2326         selftest::spellcheck_tree_c_tests.
2327         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2328         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2329         (selftest::test_find_closest_identifier): New function.
2330         (selftest::spellcheck_tree_c_tests): New function.
2331         * spellcheck.c (selftest::test_find_closest_string): Verify that
2332         the order of the vec does not affect the results for this case.
2333         (selftest::test_data): New array.
2334         (selftest::test_metric_conditions): New function.
2335         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2336         Call selftest::test_metric_conditions.
2337
2338 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2339
2340         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2341         (BU_P9_MISC_1): Likewise.
2342         (BU_P9_64BIT_MISC_0): Likewise.
2343         (BU_P9_MISC_0): Likewise.
2344
2345 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2346
2347         * gcc-rich-location.c
2348         (gcc_rich_location::add_fixit_misspelled_id): New method.
2349         * gcc-rich-location.h
2350         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2351
2352 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2353
2354         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2355         FreeBSD 11 and above.
2356
2357 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2358
2359         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2360
2361 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2362
2363         * expmed.h: Close parenthesis in "at your option" in copyright
2364         boilerplate.
2365         * lower-subreg.h: Likewise.
2366
2367 2016-06-14  Richard Biener  <rguenther@suse.de>
2368
2369         PR middle-end/71526
2370         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2371         if available.
2372
2373 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2374
2375         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2376         New function.
2377         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2378         mask+shift version.
2379         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2380         New prototype.
2381         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2382         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2383
2384 2016-06-14  Richard Biener  <rguenther@suse.de>
2385
2386         PR tree-optimization/71522
2387         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2388         copying into float copying.
2389
2390 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2391
2392         PR tree-optimization/71520
2393         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2394         (replace_block_by): Move user labels from bb1 to bb2.
2395
2396 2016-06-14  Richard Biener  <rguenther@suse.de>
2397
2398         PR middle-end/71310
2399         PR bootstrap/71510
2400         * expr.h (get_bit_range): Declare.
2401         * expr.c (get_bit_range): Export.
2402         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
2403         word_mode again to constrain the bitfield access.
2404
2405 2016-06-14  Richard Biener  <rguenther@suse.de>
2406
2407         PR tree-optimization/71521
2408         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2409         division int_const_binop against zero divisor.
2410
2411 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2412
2413         * config/i386/i386.md (signbittf2): New expander.
2414         * config/i386/sse.md (ptesttf2): New insn pattern.
2415
2416 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2417
2418         PR bootstrap/71481
2419         * input.c (selftest::test_reading_source_line): Avoid reading from
2420         __FILE__ by creating a tempfile with known content and reading
2421         from that instead.
2422
2423 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2424
2425         * pretty-print.c (assert_pp_format_colored): Skip the test if
2426         GCC_COLORS is set.
2427         (test_pp_format): Remove comment about GCC_COLORS.
2428
2429 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2430
2431         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
2432         * pretty-print.c (assert_pp_format_va): Add location param and use
2433         it with ASSERT_STREQ_AT.
2434         (assert_pp_format): Add location param and pass it to
2435         assert_pp_format_va.
2436         (assert_pp_format_colored): Likewise.
2437         (ASSERT_PP_FORMAT_1): New.
2438         (ASSERT_PP_FORMAT_2): New.
2439         (ASSERT_PP_FORMAT_3): New.
2440         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
2441         explicitly, or implicitly via the above macros.
2442         * selftest.c (selftest::pass): Use a selftest::location rather
2443         than file and line.
2444         (selftest::fail): Likewise.  Print the function name.
2445         (selftest::fail_formatted): Likewise.
2446         (selftest::assert_streq): Use a selftest::location rather than
2447         file and line.
2448         * selftest.h (selftest::location): New struct.
2449         (SELFTEST_LOCATION): New macro.
2450         (selftest::pass): Accept a const location & rather than file
2451         and line.
2452         (selftest::fail): Likewise.
2453         (selftest::fail_formatted): Likewise.
2454         (selftest::assert_streq): Likewise.
2455         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
2456         (ASSERT_FALSE): Likewise.
2457         (ASSERT_EQ): Likewise.
2458         (ASSERT_NE): Likewise.
2459         (ASSERT_STREQ): Likewise.
2460         (ASSERT_PRED1): Likewise.
2461         (ASSERT_STREQ_AT): New macro.
2462
2463 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2464
2465         * selftest.c (selftest::fail_formatted): New function.
2466         (selftest::assert_streq): New function.
2467         * selftest.h (selftests::fail_formatted): New decl.
2468         (selftest::assert_streq): New decl.
2469         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
2470
2471 2016-06-13  Jeff Law  <law@redhat.com>
2472
2473         PR tree-optimization/71403
2474         * tree-ssa-threadbackward.c
2475         (convert_and_register_jump_thread_path): No longer accept reference
2476         to path.  Do not pop items off the path anymore.
2477         (fsm_find_control_statement_thread_paths): Do not allow threading
2478         to a deeper loop nest.  Pop the last item off the path here rather
2479         than in convert_and_register_jump_thread_path.
2480
2481 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2482             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2483
2484         [AArch64] Emit division using the Newton series
2485
2486         * config/aarch64/aarch64-protos.h
2487         (cpu_approx_modes): Add new member "division".
2488         (aarch64_emit_approx_div): Declare new function.
2489         * config/aarch64/aarch64.c
2490         (generic_approx_modes): New member "division".
2491         (exynosm1_approx_modes): Likewise.
2492         (xgene1_approx_modes): Likewise.
2493         (aarch64_emit_approx_div): Define new function.
2494         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
2495         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
2496         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
2497         * doc/invoke.texi (-mlow-precision-div): Describe new option.
2498
2499 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2500             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2501
2502         [AArch64] Emit square root using the Newton series
2503
2504         * config/aarch64/aarch64-protos.h
2505         (aarch64_emit_approx_rsqrt): Replace with new function
2506         "aarch64_emit_approx_sqrt".
2507         (cpu_approx_modes): New member "sqrt".
2508         * config/aarch64/aarch64.c
2509         (generic_approx_modes): New member "sqrt".
2510         (exynosm1_approx_modes): Likewise.
2511         (xgene1_approx_modes): Likewise.
2512         (aarch64_emit_approx_rsqrt): Replace with new function
2513         "aarch64_emit_approx_sqrt".
2514         (aarch64_override_options_after_change_1): Handle new option.
2515         * config/aarch64/aarch64-simd.md
2516         (rsqrt<mode>2): Use new function instead.
2517         (sqrt<mode>2): New expansion and insn definitions.
2518         * config/aarch64/aarch64.md: Likewise.
2519         * config/aarch64/aarch64.opt
2520         (mlow-precision-sqrt): Add new option description.
2521         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
2522
2523 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2524
2525         [AArch64] Add more choices for the reciprocal square root approximation
2526
2527         Allow a target to prefer such operation depending on the operation mode.
2528
2529         * config/aarch64/aarch64-protos.h
2530         (AARCH64_APPROX_MODE): New macro.
2531         (AARCH64_APPROX_{NONE,ALL}): Likewise.
2532         (cpu_approx_modes): New structure.
2533         (tune_params): New member "approx_modes".
2534         * config/aarch64/aarch64-tuning-flags.def
2535         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
2536         * config/aarch64/aarch64.c
2537         (generic_approx_modes): New core "cpu_approx_modes" structure.
2538         (exynosm1_approx_modes): Likewise.
2539         (xgene1_approx_modes): Likewise.
2540         (generic_tunings): New member "approx_modes".
2541         (cortexa35_tunings): Likewise.
2542         (cortexa53_tunings): Likewise.
2543         (cortexa57_tunings): Likewise.
2544         (cortexa72_tunings): Likewise.
2545         (exynosm1_tunings): Likewise.
2546         (thunderx_tunings): Likewise.
2547         (xgene1_tunings): Likewise.
2548         (use_rsqrt_p): New argument for the mode and use new member from
2549         "tune_params".
2550         (aarch64_builtin_reciprocal): Devise mode from builtin.
2551         (aarch64_optab_supported_p): New argument for the mode.
2552         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
2553
2554 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2555
2556         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2557         RS6000_BTM_MODULO flag into the set of flags that are considered
2558         to be part of the common configuration.
2559
2560 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2561
2562         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2563         difference unsigned.
2564         (vec_absdb): New macro for vector absolute difference unsigned
2565         byte.
2566         (vec_absdh): New macro for vector absolute difference unsigned
2567         half-word.
2568         (vec_absdw): New macro for vector absolute difference unsigned word.
2569         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2570         (vadu<mode>3): New insn.
2571         (*p9_vadu<mode>3): New insn.
2572         * config/rs6000/rs6000-builtin.def (vadub): New built-in
2573         definition.
2574         (vaduh): New built-in definition.
2575         (vaduw): New built-in definition.
2576         (vadu): New overloaded built-in definition.
2577         (vadub): New overloaded built-in definition.
2578         (vaduh): New overloaded built-in definition.
2579         (vaduw): New overloaded built-in definition.
2580         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2581         overloaded vector absolute difference unsigned functions.
2582         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2583         the ISA 3.0 vector absolute difference unsigned built-in functions.
2584
2585 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2586
2587         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2588         update shared_lookup_references only once after changing operands.
2589
2590 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
2591
2592         PR middle-end/71373
2593         * tree-nested.c (convert_nonlocal_omp_clauses)
2594         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
2595
2596         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
2597         * tree.def (CASE_LABEL_EXPR): Likewise.
2598
2599 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2600
2601         PR bootstrap/71481
2602         * input.c (test_builtins): Fix an assertion.
2603
2604 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2605
2606         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
2607         (paritysi2): Ditto.
2608         (isinfxf2): Ditto.
2609         (isinf<mode>2): Ditto.
2610
2611 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2612
2613         * ggc-tests.c (test_finalization): Only test need_finalization_p
2614         for GCC_VERSION >= 4003.
2615
2616 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2617
2618         * config/s390/vecintrin.h: Fix file description in comment.
2619
2620 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2621
2622         * config/s390/s390-builtin-types.def: Change builtin type naming
2623         scheme to match builtin-types.def.
2624
2625 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
2626
2627         * fold-const.c (optimize_minmax_comparison): Remove.
2628         (fold_comparison): Remove call to the above.
2629         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
2630         New transformations.
2631
2632 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
2633
2634         PR tree-optimization/71416
2635         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
2636         multiple entries
2637
2638 2016-06-13  Martin Liska  <mliska@suse.cz>
2639
2640         * predict.c (enum predictor_reason): Prefix enum with REASON_.
2641         (combine_predictions_for_insn): Likewise.
2642         (prune_predictions_for_bb): Likewise.
2643         (combine_predictions_for_bb): Likewise.
2644
2645 2016-06-13  Richard Biener  <rguenther@suse.de>
2646
2647         PR tree-optimization/71505
2648         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2649         assert match comment.
2650
2651 2016-06-13  Marek Polacek  <polacek@redhat.com>
2652
2653         PR middle-end/71476
2654         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
2655         gimplify_switch_expr.
2656         (warn_switch_unreachable_r): New function.
2657
2658 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2659
2660         PR target/71379
2661         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2662         one.
2663
2664 2016-06-13  Richard Biener  <rguenther@suse.de>
2665
2666         PR middle-end/64516
2667         * fold-const.c (fold_unary_loc): Preserve alignment when
2668         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2669
2670 2016-06-13  Martin Liska  <mliska@suse.cz>
2671
2672         PR sanitizer/71458
2673         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
2674         w/ -fsanitize=bounds.
2675
2676 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2677
2678         * config/i386/i386.c (ix86_init_builtins): Calculate
2679         FLOAT128_FTYPE_CONST_STRING function type only once.
2680         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
2681         built-in functions are available for x86-32 and x86-64 targets.
2682
2683 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2684
2685         PR target/71241
2686         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
2687         New primitive type.
2688         (FLOAT128_FTYPE_CONST_STRING): New function type.
2689         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
2690         [IX86_BUILTIN_NANSQ]: Ditto.
2691         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2692         (ix86_init_builtin_types): Declare const_string_type_node.
2693         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
2694         builtin functions.
2695         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2696         * doc/extend.texi (x86 Built-in Functions): Document
2697         __builtin_nanq and __builtin_nansq.
2698
2699 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
2700
2701         PR target/71061
2702         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
2703         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
2704         length for pop patterns.
2705         (arm_attr_length_push_multi): Update comments.
2706         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
2707         attribute.
2708         (*pop_multiple_with_writeback_and_return): Likewise.
2709         (*pop_multiple_with_return): Likewise.
2710
2711 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
2712
2713         PR middle-end/71310
2714         * fold-const.c (optimize_bit_field_compare): Don't try to use
2715         word_mode unconditionally for reading the bit field, look at
2716         DECL_BIT_FIELD_REPRESENTATIVE instead.
2717
2718 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2719
2720         PR middle-end/71478
2721         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
2722         vector integer type.
2723
2724 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2725
2726         PR middle-end/71494
2727         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2728         without LABEL_DECL, set *handled_ops_p to false instead of true.
2729
2730 2016-06-10  Martin Sebor  <msebor@redhat.com>
2731
2732         PR c/71392
2733         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
2734         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
2735         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
2736         them.
2737         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
2738         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
2739         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
2740         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
2741         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
2742         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
2743         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
2744         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
2745
2746 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2747
2748         * config/arm/arm.h (pool_vector_label,
2749         return_used_this_function): Remove.
2750
2751 2016-06-10  Jeff Law  <law@redhat.com>
2752
2753         PR tree-optimization/71335
2754         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
2755         zero length paths here.
2756         (convert_and_register_jump_thread_path): Remove hacks related to
2757         duplicated blocks in the jump thread path.
2758         (fsm_find_control_statement_thread_paths): Avoid putting the same
2759         block on the thread path twice, but ensure the thread path is
2760         unchanged from the caller's point of view.
2761
2762 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2763
2764         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
2765         * predict.def (PRED_LOOP_BRANCH): Remove.
2766
2767 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
2768
2769         * Makefile.in (OBJS): Add ggc-tests.o.
2770         (GTFILES): Add ggc-tests.c.
2771         * ggc-tests.c: New file.
2772         * selftest-run-tests.c (selftest::run_tests): Call
2773         selftest::ggc_tests_c_tests.
2774         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
2775
2776 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
2777
2778         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
2779
2780 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
2781
2782         PR sanitizer/71480
2783         * varasm.c (place_block_symbol): Adjust alignment for asan protected
2784         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
2785
2786 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2787
2788         * profile.c: Include cfgloop.h.
2789         (branch_prob): Compute estimated number of iterations.
2790         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2791         recompute estimate number of iterations from profile.
2792
2793 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2794
2795         PR inline-asm/68843
2796         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
2797         must be grouped on top of stack.  Don't force early clobber
2798         on ordinary reg outputs.
2799
2800 2016-06-10  Richard Biener  <rguenther@suse.de>
2801
2802         * targhooks.c (default_builtin_vectorization_cost): Adjust
2803         vec_construct cost.
2804
2805 2016-06-10  Richard Biener  <rguenther@suse.de>
2806
2807         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
2808         to fold the RHS to a constant if possible.
2809
2810 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2811
2812         PR middle-end/71373
2813         * tree-nested.c (convert_nonlocal_omp_clauses)
2814         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2815         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2816         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2817
2818         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2819         OMP_CLAUSE_TILE.
2820         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2821
2822         * omp-low.c (scan_sharing_clauses): Don't expect
2823         OMP_CLAUSE__CACHE_.
2824
2825 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
2826
2827         PR tree-optimization/71407
2828         PR tree-optimization/71416
2829         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
2830         BIT_FIELD_REF type.
2831
2832 2016-06-10  Richard Biener  <rguenther@suse.de>
2833
2834         PR middle-end/71477
2835         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2836
2837 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2838
2839         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2840
2841 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
2842             Jiong Wang  <jiong.wang@arm.com>
2843
2844         PR rtl-optimization/70751
2845         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
2846         spilled into memory.
2847
2848 2016-06-09  Jonathan Yong  <10walls@gmail.com>
2849
2850         Revert:
2851         2015-09-21  Jonathan Yong  <10walls@gmail.com>
2852
2853         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2854         sysroot/usr/lib/32api for additional win32 libraries,
2855         fixes failing Cygwin bootstrapping.
2856
2857 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
2858
2859         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
2860         Delete.
2861
2862 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
2863
2864         PR bootstrap/71471
2865         * pretty-print.c (pp_indent): Specify that %p is printed in a
2866         host-dependent manner.
2867         (test_pp_format): Remove the test for %p.
2868
2869 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
2870
2871         * config/mips/mips.c (mips_output_jump): Fix formatting.
2872
2873 2016-06-09  Richard Biener  <rguenther@suse.de>
2874
2875         PR tree-optimization/71462
2876         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
2877         removed blocks.
2878
2879 2016-06-09  Martin Liska  <mliska@suse.cz>
2880
2881         * predict.c (dump_prediction): Add new argument.
2882         (enum predictor_reason): New enum.
2883         (struct predictor_hash): New struct.
2884         (predictor_hash::hash): New function.
2885         (predictor_hash::equal): Likewise.
2886         (not_removed_prediction_p): New function.
2887         (prune_predictions_for_bb): Likewise.
2888         (combine_predictions_for_bb): Prune predictions.
2889
2890 2016-06-09  Martin Liska  <mliska@suse.cz>
2891
2892         * predict.c (filter_predictions): New function.
2893         (remove_predictions_associated_with_edge): Use the filter
2894         function.
2895         (equal_edge_p): New function.
2896
2897 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
2898
2899         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
2900         Correct usage of @samp vs @option, add @samp where appropriate.
2901         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
2902         Add armv6s-m and document it, as it is no official ARM name.
2903
2904 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2905
2906         * ifcvt.c (struct noce_if_info): Add transform_name field.
2907         (noce_try_move): Set if_info->transform_name to the function name.
2908         (noce_try_ifelse_collapse): Likewise.
2909         (noce_try_store_flag): Likewise.
2910         (noce_try_inverse_constants): Likewise.
2911         (noce_try_store_flag_constants): Likewise.
2912         (noce_try_addcc): Likewise.
2913         (noce_try_store_flag_mask): Likewise.
2914         (noce_try_cmove): Likewise.
2915         (noce_try_cmove_arith): Likewise.
2916         (noce_try_minmax): Likewise.
2917         (noce_try_abs): Likewise.
2918         (noce_try_sign_mask): Likewise.
2919         (noce_try_bitop): Likewise.
2920         (noce_convert_multiple_sets): Likewise.
2921         (noce_process_if_block): Print if_info->transform_name to
2922         dump_file if transformation succeeded.
2923
2924 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2925
2926         * config/arm/cortex-a57.md (cortex_a57_alu):
2927         Handle csel type.
2928
2929 2016-06-08  Martin Sebor  <msebor@redhat.com>
2930             Jakub Jelinek  <jakub@redhat.com>
2931
2932         PR c++/70507
2933         PR c/68120
2934         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
2935         BUILT_IN_MUL_OVERFLOW_P): New builtins.
2936         * builtins.c: Include gimple-fold.h.
2937         (fold_builtin_arith_overflow): Handle
2938         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2939         (fold_builtin_3): Likewise.
2940         * doc/extend.texi (Integer Overflow Builtins): Document
2941         __builtin_{add,sub,mul}_overflow_p.
2942
2943 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2944
2945         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2946         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2947
2948 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
2949
2950         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
2951         Rewrite, looking one level down for records and arrays.
2952
2953 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
2954
2955         * pretty-print.c: Include "selftest.h".
2956         (pp_format): Fix comment.
2957         (identifier_to_locale): Likewise.
2958         (selftest::test_basic_printing): New function.
2959         (selftest::assert_pp_format): New function.
2960         (selftest::test_pp_format): New function.
2961         (selftest::pretty_print_c_tests): New function.
2962         * selftest-run-tests.c (selftest::run_tests): Call
2963         selftest::pretty_print_c_tests.
2964         * selftest.h (pretty_print_c_tests): New declaration.
2965
2966 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2967
2968         * invoke.texi (max-loop-headers-insns): Document.
2969         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
2970         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
2971         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
2972
2973 2016-06-08  Richard Biener  <rguenther@suse.de>
2974
2975         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
2976         on strided SLP loads and fall back to scalar loads in case
2977         we can't chunk them.
2978
2979 2016-06-08  Richard Biener  <rguenther@suse.de>
2980
2981         PR tree-optimization/71452
2982         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2983         type used for the SSA rewrite has enough precision to cover
2984         the dynamic type of the location.
2985
2986 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
2987             Richard Biener  <rguenther@suse.de>
2988
2989         PR c++/71448
2990         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2991         the same as DECL_P (base0) for indirect_base0.  Use equality_code
2992         in one further place.
2993
2994 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
2995
2996         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
2997         to one word if the field is known to overlap other words.
2998         (extract_bit_field_1): Likewise.
2999         (store_split_bit_field): Remove compensating code.
3000         (extract_split_bit_field): Likewise.
3001
3002 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
3003
3004         PR debug/71432
3005         PR ada/71413
3006         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
3007
3008 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3009
3010         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
3011         VDQF.
3012         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
3013         (arch64_addpv4sf): Delete.
3014         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
3015         "gen_aarch64_addpv4sf".
3016         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
3017         builtin.
3018         (vpadds_f32): Likewise.
3019         (vpaddq_f32): Likewise.
3020         (vpaddq_f64): Likewise.
3021
3022 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3023
3024         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
3025         VALLF.
3026         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
3027         to VALLF.  Rename to "fabd<mode>3".
3028         "*fabd_scalar<mode>3): Delete.
3029         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
3030         Use builtin.
3031         (vabdd_f64): Likewise.
3032         (vabd_f32): Likewise.
3033         (vabd_f64): Likewise.
3034         (vabdq_f32): Likewise.
3035         (vabdq_f64): Likewise.
3036
3037 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3038
3039         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
3040         VALLF.
3041         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
3042         "aarch64_rsqrts<mode>".
3043         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
3044         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
3045         builtin.
3046         (vrsqrtsd_f64): Likewise.
3047         (vrsqrts_f32): Likewise.
3048         (vrsqrts_f64): Likewise.
3049         (vrsqrtsq_f32): Likewise.
3050         (vrsqrtsq_f64): Likewise.
3051
3052 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3053
3054         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
3055         VALLF.
3056         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
3057         "aarch64_rsqrte<mode>".
3058         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
3059         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
3060         builtin.
3061         (vrsqrted_f64): Likewise.
3062         (vrsqrte_f32): Likewise.
3063         (vrsqrte_f64): Likewise.
3064         (vrsqrteq_f32): Likewise.
3065         (vrsqrteq_f64): Likewise.
3066
3067 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3068
3069         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
3070         (ucvtf): Likewise.
3071         (fcvtzs): Likewise.
3072         (fcvtzu): Likewise.
3073         * config/aarch64/aarch64-simd.md
3074         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
3075         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
3076         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
3077         Use builtin.
3078         (vcvt_n_f32_u32): Likewise.
3079         (vcvt_n_s32_f32): Likewise.
3080         (vcvt_n_u32_f32): Likewise.
3081         (vcvtq_n_f32_s32): Likewise.
3082         (vcvtq_n_f32_u32): Likewise.
3083         (vcvtq_n_f64_s64): Likewise.
3084         (vcvtq_n_f64_u64): Likewise.
3085         (vcvtq_n_s32_f32): Likewise.
3086         (vcvtq_n_s64_f64): Likewise.
3087         (vcvtq_n_u32_f32): Likewise.
3088         (vcvtq_n_u64_f64): Likewise.
3089         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
3090         (VSDQ_SDI): Likewise.
3091         (fcvt_target): Support V4DI, V4SI and V2SI.
3092         (FCVT_TARGET): Likewise.
3093
3094 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3095
3096         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
3097         (TYPES_BINOP_SUS): Likewise.
3098         (aarch64_simd_builtin_data): Update include file name.
3099         (aarch64_builtins): Likewise.
3100         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
3101         for conversion between scalar float-point and fixed-point.
3102         (ucvtf): Likewise.
3103         (fcvtzs): Likewise.
3104         (fcvtzu): Likewise.
3105         * config/aarch64/aarch64.md
3106         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3107         pattern for conversion between scalar float to fixed-pointer.
3108         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3109         (UNSPEC_FCVTZS): New UNSPEC enumeration.
3110         (UNSPEC_FCVTZU): Likewise.
3111         (UNSPEC_SCVTF): Likewise.
3112         (UNSPEC_UCVTF): Likewise.
3113         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3114         Use builtin.
3115         (vcvtd_n_f64_u64): Likewise.
3116         (vcvtd_n_s64_f64): Likewise.
3117         (vcvtd_n_u64_f64): Likewise.
3118         (vcvtd_n_f32_s32): Likewise.
3119         (vcvts_n_f32_u32): Likewise.
3120         (vcvtd_n_s32_f32): Likewise.
3121         (vcvts_n_u32_f32): Likewise.
3122         * config/aarch64/iterators.md (fcvt_target): Support integer to float
3123         mapping.
3124         (FCVT_TARGET): Likewise.
3125         (FCVT_FIXED2F): New iterator.
3126         (FCVT_F2FIXED): Likewise.
3127         (fcvt_fixed_insn): New define_int_attr.
3128
3129 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3130
3131         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3132         some statements was removed.
3133
3134 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
3135
3136         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3137         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3138         (vect_can_advance_ivs_p): likewise.
3139         (vect_update_ivs_after_vectorizer): likewise.
3140         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3141         (vect_analyze_scalar_cycles_1): likewise.
3142         (vect_analyze_loop_operations): likewise.
3143         (report_vect_op): likewise.
3144         (vect_is_slp_reduction): likewise.
3145         (vect_is_simple_reduction): likewise.
3146         (get_initial_def_for_induction): likewise.
3147         (vect_transform_loop): likewise.
3148         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3149         (vect_recog_sad_pattern): likewise.
3150         (vect_recog_widen_sum_pattern): likewise.
3151         (vect_recog_widening_pattern): likewise.
3152         (vect_recog_divmod_pattern): likewise.
3153         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3154         (vect_analyze_slp_instance): likewise.
3155         (vect_transform_slp_perm_load): likewise.
3156         (vect_schedule_slp_instance): likewise.
3157
3158 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3159
3160         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3161         (return_prediction): PRED_CONST_RETURN predict return as not taken.
3162         * predict.def (PRED_CONTINUE): Change hitrate 50->67
3163         (PRED_LOOP_BRANCH): Document predictor as broken.
3164         (PRED_LOOP_EXIT): Change hitrate 91->92.
3165         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3166         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3167         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3168         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3169         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3170         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3171         (PRED_CALL): Chane hitrate 71->67.
3172         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3173         (PRED_GOTO): Document as unused right now.
3174         (PRED_CONST_RETURN): Change hitrate 67->69
3175         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3176         (PRED_NULL_RETURN): Change hitrate 91->90.
3177         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3178         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3179         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3180
3181 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
3182
3183         * config/rs6000/altivec.h: Add __builtin_vec_mul.
3184         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3185         special case Altivec builtin.
3186         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3187         VSX_BUILTIN_VEC_MUL (replaced with special case code).
3188         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3189         code for ALTIVEC_BUILTIN_VEC_MUL.
3190         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3191         for __builtin_vec_mul.
3192
3193 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3194
3195         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3196         -mno-htm.
3197
3198 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
3199
3200         * spellcheck.c (selftest::test_find_closest_string): New function.
3201         (spellcheck_c_tests): Call the above.
3202
3203 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3204
3205         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3206
3207 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
3208
3209         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3210         Yv=Yv,C alternatives.
3211
3212 2016-06-07  Richard Biener  <rguenther@suse.de>
3213
3214         PR c/61564
3215         * common.opt (ffast-math): Make Optimization.
3216
3217 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
3218             Prachi Godbole  <prachi.godbole@imgtec.com>
3219
3220         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
3221         `fabs' and `fneg' type attributes.
3222         (p5600_fpu_fabs): Add `fmove' to the comment.
3223
3224 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3225
3226         * gimple.c: Include builtins.h
3227         (gimple_inexpensive_call_p): New function.
3228         * gimple.h (gimple_inexpensive_call_p): Declare.
3229         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
3230         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
3231         fix formatting.
3232
3233 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
3234
3235         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
3236         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
3237         warning_at_rich_loc, warning_n, pedwarn, permerror,
3238         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
3239         sorry, fatal_error, internal_error, internal_error_no_backtrace):
3240         Use the above.
3241
3242 2016-06-07  Richard Biener  <rguenther@suse.de>
3243
3244         PR tree-optimization/71428
3245         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
3246         BIT_FIELD_REF op vs. load.
3247
3248 2016-06-07  Richard Biener  <rguenther@suse.de>
3249
3250         PR middle-end/71423
3251         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
3252         for signed ops.
3253
3254 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3255
3256         * config/pa/pa.md (call): Generate indirect long calls to non-local
3257         functions on TARGET_64BIT.
3258         (call_value): Likewise.
3259
3260 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3261
3262         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3263         pattern and subsequent splitters.
3264         (call_val_reg_64bit_post_reload): Likewise.
3265
3266 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3267
3268         PR middle-end/71408
3269         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3270         propagate_op_to_single_use.
3271
3272 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3273
3274         PR middle-end/71281
3275         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3276
3277 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3278
3279         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3280         (enum x86_dirflag_state): New enum.
3281         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3282         (machine_function): Remove needs_cld.
3283         (ix86_current_function_needs_cld): Remove.
3284         * config/i386/i386.c (ix86_set_func_type): Set
3285         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3286         (ix86_expand_prologue): Do not emit CLD here.
3287         (ix86_dirflag_mode_needed): New function.
3288         (ix86_dirflag_mode_entry): Ditto.
3289         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3290         (ix86_mode_after): Ditto.
3291         (ix86_mode_entry): Ditto.
3292         (ix86_mode_exit): Ditto.
3293         (ix86_emit_mode_set): Ditto.
3294         * config/i386/i386.md (strmov_singleop): Set
3295         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3296         Do not set ix86_current_function_needs_cld.
3297         (rep_mov): Ditto.
3298         (strset_singleop): Ditto.
3299         (rep_stos): Ditto.
3300         (cmpstrnqi_nz_1): Ditto.
3301         (cmpstrnqi_1): Ditto.
3302         (strlenqi_1): Ditto.
3303
3304 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3305
3306         PR tree-optimization/71259
3307         * tree-vect-slp.c (vect_get_constant_vectors): For
3308         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3309         one for constant op, and use COND_EXPR for non-constant.
3310
3311 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3312
3313         * Makefile.in (OBJS): Add function-tests.o,
3314         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3315         selftest-run-tests.o.
3316         (OBJS-libcommon): Add selftest.o.
3317         (OBJS-libcommon-target): Add selftest.o.
3318         (all.internal): Add "selftest".
3319         (all.cross): Likewise.
3320         (selftest): New phony target.
3321         (s-selftest): New target.
3322         (selftest-gdb): New phony target.
3323         (COLLECT2_OBJS): Add selftest.o.
3324         * bitmap.c: Include "selftest.h".
3325         (selftest::test_gc_alloc): New function.
3326         (selftest::test_set_range): New function.
3327         (selftest::test_clear_bit_in_middle): New function.
3328         (selftest::test_copying): New function.
3329         (selftest::test_bitmap_single_bit_set_p): New function.
3330         (selftest::bitmap_c_tests): New function.
3331         * common.opt (fself-test): New.
3332         * diagnostic-show-locus.c: Include "selftest.h".
3333         (make_range): New function.
3334         (test_range_contains_point_for_single_point): New function.
3335         (test_range_contains_point_for_single_line): New function.
3336         (test_range_contains_point_for_multiple_lines): New function.
3337         (assert_eq): New function.
3338         (test_get_line_width_without_trailing_whitespace): New function.
3339         (selftest::diagnostic_show_locus_c_tests): New function.
3340         * et-forest.c: Include "selftest.h".
3341         (selftest::test_single_node): New function.
3342         (selftest::test_simple_tree): New function.
3343         (selftest::test_disconnected_nodes): New function.
3344         (selftest::et_forest_c_tests): New function.
3345         * fold-const.c: Include "selftest.h".
3346         (selftest::assert_binop_folds_to_const): New function.
3347         (selftest::assert_binop_folds_to_nonlvalue): New function.
3348         (selftest::test_arithmetic_folding): New function.
3349         (selftest::fold_const_c_tests): New function.
3350         * function-tests.c: New file.
3351         * gimple.c: Include "selftest.h".
3352         Include "gimple-pretty-print.h".
3353         (selftest::verify_gimple_pp): New function.
3354         (selftest::test_assign_single): New function.
3355         (selftest::test_assign_binop): New function.
3356         (selftest::test_nop_stmt): New function.
3357         (selftest::test_return_stmt): New function.
3358         (selftest::test_return_without_value): New function.
3359         (selftest::gimple_c_tests): New function.
3360         * hash-map-tests.c: New file.
3361         * hash-set-tests.c: New file.
3362         * input.c: Include "selftest.h".
3363         (selftest::assert_loceq): New function.
3364         (selftest::test_accessing_ordinary_linemaps): New function.
3365         (selftest::test_unknown_location): New function.
3366         (selftest::test_builtins): New function.
3367         (selftest::test_reading_source_line): New function.
3368         (selftest::input_c_tests): New function.
3369         * rtl-tests.c: New file.
3370         * selftest-run-tests.c: New file.
3371         * selftest.c: New file.
3372         * selftest.h: New file.
3373         * spellcheck.c: Include "selftest.h".
3374         (selftest::levenshtein_distance_unit_test_oneway): New function,
3375         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3376         (selftest::levenshtein_distance_unit_test): Likewise.
3377         (selftest::spellcheck_c_tests): Likewise.
3378         * toplev.c: Include selftest.h.
3379         (toplev::run_self_tests): New.
3380         (toplev::main): Handle -fself-test.
3381         * toplev.h (toplev::run_self_tests): New.
3382         * tree.c: Include "selftest.h".
3383         (selftest::test_integer_constants): New function.
3384         (selftest::test_identifiers): New function.
3385         (selftest::test_labels): New function.
3386         (selftest::tree_c_tests): New function.
3387         * tree-cfg.c: Include "selftest.h".
3388         (selftest::push_fndecl): New function.
3389         (selftest::test_linear_chain): New function.
3390         (selftest::test_diamond): New function.
3391         (selftest::test_fully_connected): New function.
3392         (selftest::tree_cfg_c_tests): New function.
3393         * vec.c: Include "selftest.h".
3394         (selftest::safe_push_range): New function.
3395         (selftest::test_quick_push): New function.
3396         (selftest::test_safe_push): New function.
3397         (selftest::test_truncate): New function.
3398         (selftest::test_safe_grow_cleared): New function.
3399         (selftest::test_pop): New function.
3400         (selftest::test_safe_insert): New function.
3401         (selftest::test_ordered_remove): New function.
3402         (selftest::test_unordered_remove): New function.
3403         (selftest::test_block_remove): New function.
3404         (selftest::reverse_cmp): New function.
3405         (selftest::test_qsort): New function.
3406         (selftest::vec_c_tests): New function.c.
3407         * wide-int.cc: Include selftest.h and wide-int-print.h.
3408         (selftest::from_int <wide_int>): New function.
3409         (selftest::from_int <offset_int>): New function.
3410         (selftest::from_int <widest_int>): New function.
3411         (selftest::assert_deceq): New function.
3412         (selftest::assert_hexeq): New function.
3413         (selftest::test_printing <VALUE_TYPE>): New function template.
3414         (selftest::test_ops <VALUE_TYPE>): New function template.
3415         (selftest::test_comparisons <VALUE_TYPE>): New function template.
3416         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
3417         template.
3418         (selftest::wide_int_cc_tests): New function.
3419
3420 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3421
3422         PR middle-end/37780
3423         * ifcvt.c (noce_try_ifelse_collapse): New function.
3424         Declare prototype.
3425         (noce_process_if_block): Call noce_try_ifelse_collapse.
3426         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
3427         (simplify_ternary_operation): Use the above to simplify
3428         conditional CLZ/CTZ expressions.
3429
3430 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3431
3432         PR middle-end/37780
3433         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
3434         define_insn_and_split.
3435
3436 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3437
3438         PR middle-end/37780
3439         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
3440
3441 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3442
3443         PR c/24414
3444         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
3445         Implicitly clobber memory for basic asm with non-empty assembler
3446         string.  Use targetm.md_asm_adjust also here.
3447         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
3448         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
3449         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
3450         non-empty assembler string.
3451         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
3452         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
3453         (decode_asm_operands): Handle basic asm in PARALLEL block.
3454         (extract_insn): Handle basic asm in PARALLEL block.
3455         * doc/extend.texi: Mention new behavior of basic asm.
3456         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
3457         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
3458         branch_needs_nop_p): Use asm_noperands.
3459
3460 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3461
3462         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3463         Include the M7 SPARC DFA scheduler.
3464         New attribute v3pipe.
3465         Annotate insns with v3pipe where appropriate.
3466         Define cpu_feature vis4.
3467         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3468         Add (V8QI "8") to vbits.
3469         Add insns {add,sub}v8qi3
3470         Add insns ss{add,sub}v8qi3
3471         Add insns us{add,sub}{v8qi,v4hi}3
3472         Add insns {min,max}{v8qi,v4hi,v2si}3
3473         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3474         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3475         * config/sparc/niagara4.md: Add a comment explaining the
3476         discrepancy between the documented latenty numbers and the
3477         implemented ones.
3478         * config/sparc/niagara7.md: New file.
3479         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3480         supports SPARC5 and VIS 4.0 instructions.
3481         * configure: Regenerate.
3482         * config.in: Likewise.
3483         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3484         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3485         TARGET_CPU_niagara7.
3486         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3487         (CPP_CPU_SPEC): Handle niagara7.
3488         (ASM_CPU_SPEC): Likewise.
3489         * config/sparc/sparc-opts.h (processor_type): Add
3490         PROCESSOR_NIAGARA7.
3491         (mvis4): New option.
3492         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3493         (AS_NIAGARA7_FLAG): Define.
3494         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3495         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3496         (CPP_CPU_SPEC): Handle niagara7.
3497         (ASM_CPU_SPEC): Likewise.
3498         * config/sparc/sparc.c (niagara7_costs): Define.
3499         (sparc_option_override): Handle niagara7 and adjust cache-related
3500         parameters with better values for niagara cpus.  Also support VIS4.
3501         (sparc32_initialize_trampoline): Likewise.
3502         (sparc_use_sched_lookahead): Likewise.
3503         (sparc_issue_rate): Likewise.
3504         (sparc_register_move_cost): Likewise.
3505         (dump_target_flag_bits): Support VIS4.
3506         (sparc_vis_init_builtins): Likewise.
3507         (sparc_builtins): Likewise.
3508         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3509         VIS4 4.0.
3510         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3511         UltraSparc M7.
3512         * config/sparc/sparc.opt (sparc_processor_type): New value
3513         niagara7.
3514         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3515         VIS4 builtins.
3516         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3517         -mvis4.
3518         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3519         VIS4 builtins.
3520
3521 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
3522
3523         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
3524
3525 2016-06-06  Richard Biener  <rguenther@suse.de>
3526
3527         PR tree-optimization/71398
3528         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
3529         remove edges.
3530
3531 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
3532
3533         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
3534         ft32_expand_prolog, ft32_expand_epilogue):
3535         Handle pretend_args.
3536         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
3537         * config/ft32/ft32.md: Add pretend_returner.
3538
3539 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
3540
3541         PR target/71389
3542         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3543         Copy op1 RTX to avoid invalid sharing.
3544         (ix86_expand_vector_move_misalign): Ditto.
3545
3546 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
3547
3548         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
3549         ATTRIBUTE_UNUSED.
3550
3551 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3552
3553         * predict.c (predicted_by_loop_heuristics_p): New function.
3554         (predict_iv_comparison): Use it.
3555         (predict_loops): Walk from innermost loops; do not predict edges
3556         leaving multiple loops multiple times; implement
3557         PRED_LOOP_ITERATIONS_MAX heuristics.
3558         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
3559
3560 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3561
3562         * cfg.c (check_bb_profile): Do not report mismatched profiles when
3563         only edges out of BB are EH edges.
3564
3565 2016-06-04  Martin Sebor  <msebor@redhat.com>
3566             Marcin Baczyński  <marbacz@gmail.com>
3567
3568         PR c/48116
3569         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
3570         a void expression in a void function.
3571
3572 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3573
3574         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
3575         aux; dump reasons of decisions.
3576         (should_duplicate_loop_header_p): Likewise.
3577         (do_while_loop_p): Likewise.
3578         (ch_base::copy_headers): Dump asi num insns duplicated.
3579
3580 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3581
3582         PR tree-optimization/71405
3583         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3584         incompatible type, build a new clobber with the right type instead
3585         of building a VIEW_CONVERT_EXPR around it.
3586
3587 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3588
3589         PR tree-optimization/52171
3590         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
3591         by_pieces_ninsns instead of move_by_pieces_ninsns.
3592
3593 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3594
3595         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
3596         for reg+reg addressing mode.
3597
3598 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3599
3600         * rs6000-c.c (c/c-tree.h): Add #include.
3601         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
3602         in C++ when found in the base position of vec_ld or vec_st.
3603
3604 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3605
3606         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
3607         use of profile unless profile status is PROFILE_READ.
3608         * profile.c (compute_branch_probabilities): Set profile status
3609         only after reporting predictor hitrates.
3610
3611 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
3612
3613         PR target/71276
3614         PR target/71277
3615         * common.opt (ffp-int-builtin-inexact): New option.
3616         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
3617         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
3618         (ceil@var{m}2): Document dependence on this option.
3619         * ipa-inline-transform.c (inline_call): Handle
3620         flag_fp_int_builtin_inexact.
3621         * ipa-inline.c (can_inline_edge_p): Likewise.
3622         * config/i386/i386.md (rintxf2): Do not test
3623         flag_unsafe_math_optimizations.
3624         (rint<mode>2_frndint): New define_insn.
3625         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
3626         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
3627         for 387 instead of extending and truncating.
3628         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
3629         !flag_trapping_math instead of flag_unsafe_math_optimizations.
3630         Change to frndint<mode>2_<rounding>.
3631         (frndintxf2_<rounding>_i387): Likewise.  Change to
3632         frndint<mode>2_<rounding>_i387.
3633         (<rounding_insn>xf2): Likewise.
3634         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
3635         !flag_trapping_math instead of flag_unsafe_math_optimizations for
3636         x87.  Test TARGET_ROUND || !flag_trapping_math ||
3637         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
3638         SSE.  Use ROUND_NO_EXC in constant operand of
3639         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
3640         for 387 instead of extending and truncating.
3641
3642 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3643             Julia Koval  <julia.koval@intel.com>
3644
3645         PR target/66960
3646         PR target/67630
3647         PR target/67634
3648         PR target/67841
3649         PR target/68037
3650         PR target/68618
3651         PR target/68661
3652         PR target/69575
3653         PR target/69596
3654         PR target/69734
3655         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
3656         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
3657         all registers, except for function return registers if there are
3658         no caller-saved registers.
3659         (ix86_set_func_type): New function.
3660         (ix86_set_current_function): Call ix86_set_func_type to set
3661         no_caller_saved_registers and func_type.  Call reinit_regs if
3662         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
3663         nor x87 instructions in interrupt handler nor function with
3664         no_caller_saved_registers attribute.
3665         (ix86_function_ok_for_sibcall): Return false if there are no
3666         caller-saved registers.
3667         (type_natural_mode): Don't warn ABI change for MMX in interrupt
3668         handler.
3669         (ix86_function_arg_advance): Skip for callee in interrupt handler.
3670         (ix86_function_arg): Return special arguments in interrupt handler.
3671         (ix86_promote_function_mode): Promote pointer to word_mode only
3672         for normal functions.
3673         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
3674         interrupt handler.
3675         (ix86_epilogue_uses): New function.
3676         (ix86_hard_regno_scratch_ok): Likewise.
3677         (ix86_save_reg): Preserve all registers in interrupt handler
3678         after reload.  Preserve all registers, except for function return
3679         registers, if there are no caller-saved registers after reload.
3680         (find_drap_reg): Always use callee-saved register if there are
3681         no caller-saved registers.
3682         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
3683         for interrupt handler.
3684         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
3685         Emit cld instruction if stringops are used in interrupt handler
3686         or interrupt handler isn't a leaf function.
3687         (ix86_expand_epilogue): Generate interrupt return for interrupt
3688         handler and pop the 'ERROR_CODE' off the stack before interrupt
3689         return in exception handler.
3690         (ix86_expand_call): Disallow calling interrupt handler directly.
3691         If there are no caller-saved registers, mark all registers that
3692         are clobbered by the call which returns as clobbered.
3693         (ix86_handle_no_caller_saved_registers_attribute): New function.
3694         (ix86_handle_interrupt_attribute): Likewise.
3695         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
3696         attributes.
3697         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
3698         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
3699         accumulation in interrupt function if stack may be realigned to
3700         avoid DRAP.
3701         (EPILOGUE_USES): New.
3702         (function_type): New enum.
3703         (machine_function): Add func_type and no_caller_saved_registers.
3704         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
3705         (interrupt_return): New pattern.
3706         * doc/extend.texi: Document x86 interrupt and
3707         no_caller_saved_registers attributes.
3708
3709 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
3710
3711         PR tree-optimization/52171
3712         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
3713         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
3714         Look for constant strings.  Move some code to emit_block_cmp_hints
3715         and use it.
3716         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
3717         * defaults.h (COMPARE_MAX_PIECES): New macro.
3718         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
3719         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
3720         (clear_by_pieces_1): Don't declare.  Move definition before use.
3721         (can_do_by_pieces): New static function.
3722         (can_move_by_pieces): Use it.  Return bool.
3723         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
3724         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
3725         (class pieces_addr); New.
3726         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
3727         pieces_addr::adjust, pieces_addr::increment_address,
3728         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
3729         functions for it.
3730         (class op_by_pieces_d): New.
3731         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
3732         functions for it.
3733         (class move_by_pieces_d, class compare_by_pieces_d,
3734         class store_by_pieces_d): New subclasses of op_by_pieces_d.
3735         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
3736         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
3737         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
3738         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
3739         compare_by_pieces_d::finish_mode): New member functions.
3740         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
3741         functions.
3742         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
3743         (emit_block_cmp_hints): New function.
3744         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
3745         use the newly defined classes.
3746         * expr.h (by_pieces_constfn): New typedef.
3747         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
3748         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
3749         (move_by_pieces_ninsns): Don't declare.
3750         (can_move_by_pieces): Change return value to bool.
3751         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
3752         (compare_by_pieces_branch_ratio): New hook.
3753         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
3754         (by_pieces_ninsns): Declare.
3755         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
3756         COMPARE_BY_PIECES.
3757         (default_compare_by_pieces_branch_ratio): New function.
3758         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
3759         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
3760         * doc/tm.texi: Regenerate.
3761         * tree-ssa-strlen.c: Include "builtins.h".
3762         (handle_builtin_memcmp): New static function.
3763         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
3764         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
3765
3766 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3767
3768         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
3769         relevant stmts which are simple and invariant.
3770         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
3771         instead of simple and invariant
3772
3773 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3774
3775         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
3776         (vectorizable_reduction): Check for new relevant state.
3777         (vectorizable_live_operation): vectorize live stmts using
3778         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
3779         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
3780         (vect_stmt_relevant_p): Check for stmts which are only used live.
3781         (process_use): Use of a stmt does not inherit it's live value.
3782         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
3783         (vect_analyze_stmt): Check for new relevant state.
3784         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
3785         outside the loop, but not inside it.
3786
3787 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3788
3789         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
3790         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
3791         (vect_get_vec_def_for_operand): Split out code.
3792
3793 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
3794
3795         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
3796
3797 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3798
3799         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
3800
3801 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3802
3803         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
3804
3805 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3806
3807         PR middle-end/71387
3808         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3809         to noreturn e->callee->decl that has void return type and void
3810         arguments, adjust gimple_call_fntype and remove lhs even if it had
3811         previously addressable type.
3812
3813 2016-06-02  Jeff Law  <law@redhat.com>
3814
3815         PR tree-optimization/71328
3816         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
3817         error when checking for a jump back onto the copied path.
3818
3819 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
3820
3821         * config/microblaze/microblaze.c (get_branch_target): Add return
3822         NULL_RTX for the non-CALL_P case.
3823         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
3824         (insert_wic): Remove unused local "j".
3825
3826 2016-06-02  Martin Liska  <mliska@suse.cz>
3827
3828         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
3829
3830 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3831             Julia Koval  <julia.koval@intel.com>
3832
3833         * function.c (assign_parm_setup_stack): Force source into a
3834         register if needed.
3835         * target.def (function_incoming_arg): Update documentation to
3836         allow arbitrary address computation based on hard register.
3837         * doc/tm.texi: Regenerated.
3838
3839 2016-06-02  Martin Liska  <mliska@suse.cz>
3840
3841         * predict.c (combine_predictions_for_bb): Fix first match in
3842         cases where a first predictor contains more than one occurence
3843         in list of predictors.  Take the best value in such case.
3844
3845 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3846
3847         PR rtl-optimization/71295
3848         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
3849         offset would go over the size of the inner mode reject it.
3850
3851 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
3852
3853         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
3854         x=x,x and v=v,m instead of x=x,m.
3855
3856         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
3857         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
3858         alternative to v=rm,C.
3859
3860         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
3861         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
3862         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
3863         instead of vex for the last two above mentioned alternatives.
3864
3865 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3866
3867         PR target/70830
3868         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3869
3870 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
3871
3872         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
3873
3874 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
3875
3876         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
3877         from int to unsigned.
3878
3879 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3880
3881         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3882         alternatives, eliminating preferred register class.  Add support
3883         for the MTVSRDD instruction in ISA 3.0.
3884         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3885         reg_or_indexed_operand.
3886         (vsx_splat_v4sf_internal): Likewise.
3887
3888 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3889
3890         PR target/71186
3891         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3892         for loading up all 0's or all 1's.
3893
3894 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3895
3896         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
3897
3898 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3899
3900         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
3901         extension.
3902         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
3903         * gcc.c (set_source_date_epoch_envvar): New function, sets
3904         the SOURCE_DATE_EPOCH environment variable to the current time.
3905
3906 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3907
3908         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3909         the factor for live Phi nodes.
3910
3911 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3912
3913         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
3914         * tree-parloops.c (parallelize_loops): likewise.
3915         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
3916         tree_unswitch_outer_loop): likewise.
3917
3918 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3919
3920         PR middle-end/71371
3921         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3922         around creation of the temporary.
3923
3924 2016-06-01  Richard Biener  <rguenther@suse.de>
3925
3926         PR tree-optimization/71366
3927         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
3928         (unloop_loops): Move removing edges here ...
3929         (try_unroll_loop_completely): ... from here.
3930         (try_peel_loop): ... and here.
3931         (tree_unroll_loops_completely_1): Track parent loops via
3932         bitmap of header BBs.
3933         (tree_unroll_loops_completely): Adjust for that.
3934
3935 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3936
3937         * config/rs6000/altivec.h (vec_slv): New macro.
3938         (vec_srv): New macro.
3939         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3940         (UNSPEC_VSRV): New value.
3941         (vslv): New insn.
3942         (vsrv): New insn.
3943         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3944         (vsrv): New builtin definition.
3945         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3946         define argument types for new builtin.
3947         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3948         new builtin.
3949         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3950         functions.
3951
3952 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3953             Jocelyn Mayer  <l_indien@magic.fr>
3954
3955         PR target/67310
3956         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3957         detect processor family for signature_CENTAUR_ebx.
3958         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3959         signature_CENTAUR_ebx.
3960         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3961         <default>: Pass x86-64 for has_longmode.
3962
3963 2016-06-01  Nathan Sidwell  <nathan@acm.org>
3964
3965         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
3966         undefined weak.
3967
3968 2016-06-01  Richard Biener  <rguenther@suse.de>
3969
3970         PR tree-optimization/71261
3971         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
3972         of stmts successfully put in the bool pattern.  Remove
3973         single-use restriction.
3974         (adjust_bool_pattern_cast): Add cast at the use site via the
3975         pattern def sequence.
3976         (adjust_bool_pattern): Remove recursion, maintain a hash-map
3977         of patterned defs.  Use the pattern def seqence instead of
3978         multiple independent patterns.
3979         (sort_after_uid): New qsort compare function.
3980         (adjust_bool_stmts): New function to process stmts in the bool
3981         pattern in IL order.
3982         (vect_recog_bool_pattern): Adjust.
3983         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
3984         (ifcvt_walk_pattern_tree): Likewise.
3985         (stmt_is_root_of_bool_pattern): Likewise.
3986         (ifcvt_repair_bool_pattern): Likewise.
3987         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
3988
3989 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3990
3991         * loop-unroll.c (decide_unroll_constant_iterations,
3992         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
3993         likely upper bounds.
3994         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
3995
3996 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
3997
3998         * tree-core.h (enum omp_clause_code): Remove
3999         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
4000
4001 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4002
4003         * config/arm/sync.md (arm_store_exclusive<mode>):
4004         Use 'H' output modifier on operands[2] rather than creating a new
4005         entry in out-of-bounds memory of the operands array.
4006         (arm_store_release_exclusivedi): Likewise.
4007
4008 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4009
4010         * config/arm/arm.c (arm_fusion_enabled_p): New function.
4011         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
4012         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
4013         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4014
4015 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4016
4017         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
4018         into account live statements for mask producers.
4019
4020 2016-06-01  Richard Biener  <rguenther@suse.de>
4021
4022         PR tree-optimization/71311
4023         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
4024         restrict to non-INTEGER_CST @0.
4025
4026 2016-06-01  Richard Biener  <rguenther@suse.de>
4027
4028         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
4029         (relational patterns): Use :c to avoid pattern duplications.
4030
4031 2016-06-01  Richard Biener  <rguenther@suse.de>
4032
4033         * genmatch.c (comparison_code_p): New predicate.
4034         (swap_tree_comparison): New function.
4035         (commutate): Add for_vec parameter to append new for entries.
4036         Support commutating relational operators by swapping it alongside
4037         operands.
4038         (lower_commutative): Adjust.
4039         (dt_simplify::gen): Do not pass artificial operators to gen
4040         functions.
4041         (decision_tree::gen): Do not add artificial operators as parameters.
4042         (parser::parse_expr): Verify operator commutativity when :c is
4043         applied.  Allow :C to override this.
4044         * match.pd: Adjust patterns to use :C instead of :c where required.
4045
4046 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
4047
4048         PR tree-optimization/71077
4049         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
4050         the combining step, use boolean_false_node and boolean_true_node
4051         as the designated false/true return values.
4052
4053 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4054
4055         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
4056         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
4057         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
4058         PRED_LOOP_EXIT.
4059
4060 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4061
4062         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
4063         of flags impliying the register renaming.
4064         * toplev.c (process_options): Do not imply flag_rename_registers with
4065         loop peeling.
4066
4067 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4068
4069         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
4070         default implementation.
4071
4072 2016-05-31  Nathan Sidwell  <nathan@acm.org>
4073
4074         * dwarf2out.c (cur_line_info_table): Add GTY marker.
4075
4076 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4077
4078         * config/sh/constraints.md (b): Remove constraint.
4079         * config/sh/predicates.md (arith_reg_operand): Remove
4080         TARGET_REGISTER_P.
4081         * config/sh/sh-modes.def (PDI): Remove.
4082         * config/sh/sh.c (sh_target_reg_class,
4083         sh_optimize_target_register_callee_saved): Remove functions.
4084         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
4085         (sh_expand_epilogue): Update comment.
4086         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
4087         sh_secondary_reload): Remove TARGET_REGS related code.
4088         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
4089         TARGET_REGISTER_P): Remove macros.
4090         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
4091         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
4092         TR1_REG, TR2_REG): Remove constants.
4093         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
4094
4095 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4096
4097         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
4098         define_expand patterns.
4099         (adddi3_compact): Rename to adddi3.
4100         (subdi3_compact): Rename to subdi3.
4101         (*negdi2): Rename to negdi2.
4102         (*abs<mode>2): Rename to abs<mode>2.
4103
4104 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4105
4106         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4107         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4108         (atomic_sub_fetchsi): ... this new pattern.
4109         (mvtc): Add CC_REG clobber.
4110
4111 2016-05-31  Marek Polacek  <polacek@redhat.com>
4112
4113         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4114
4115 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4116
4117         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4118         aarch64_fusion_enabled_p to check for fusion capabilities.
4119
4120 2016-05-31  Richard Biener  <rguenther@suse.de>
4121
4122         PR tree-optimization/71352
4123         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4124         minus one and a negate.
4125
4126 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4127
4128         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4129         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4130         Delete prototype.
4131         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4132         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4133         Remove use of aarch64_simd_attr_length_move, set length attribute
4134         directly.
4135         (*aarch64_be_movoi): Likewise.
4136         (*aarch64_be_movci): Likewise.
4137         (*aarch64_be_movxi): Likewise.
4138
4139 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4140
4141         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4142         It no longer does that.
4143         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4144
4145 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
4146
4147         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4148         attribute __unused__.
4149
4150 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4151
4152         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4153         * config/arm/arm.c (arm_arch_thumb1): Define.
4154         (arm_option_override): Initialize arm_arch_thumb1.
4155         * config/arm/arm.h (arm_arch_thumb1): Declare.
4156         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4157         support Thumb-1 ISA.
4158
4159 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4160
4161         PR target/71346
4162         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4163         `Yv' for scalar operand.
4164
4165 2016-05-31  Tom de Vries  <tom@codesourcery.com>
4166
4167         PR tree-optimization/69068
4168         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4169         phis with more than two args.
4170
4171 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
4172
4173         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4174         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4175         target.
4176
4177 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
4178
4179         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4180         tune_64.
4181         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4182         support on SPARC.
4183         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4184         cpu_32, cpu_64, tune_32 and tune_64.
4185         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4186
4187 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
4188
4189         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4190
4191 2016-05-30  Andi Kleen  <ak@linux.intel.com>
4192
4193         * auto-profile.c (read_profile): Replace asserts with errors
4194         when file does not exist.
4195         * gcov-io.c (gcov_read_words): Dito.
4196
4197 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4198
4199         * tree-cfg.c (print_loop): Print likely upper bounds.
4200
4201 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4202
4203         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4204         * opts.c (default_options): Enable peel loops at -O3.
4205         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4206         (try_peel_loop): Do not re-peel already peeled loops;
4207         use likely upper bounds; fix profile updating.
4208         (pass_complete_unroll::execute): Initialize peeled_loops.
4209
4210 2016-05-30  Martin Liska  <mliska@suse.cz>
4211
4212         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4213         computed costs by frequency of BB they belong to.
4214         (get_scaled_computation_cost_at): New function.
4215
4216 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
4217             Marc Glisse  <marc.glisse@inria.fr>
4218
4219         PR tree-optimization/71289
4220         * match.pd (-1 / B < A, A > -1 / B): New transformations.
4221
4222 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4223
4224         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
4225
4226 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4227
4228         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
4229         for peeled copies; avoid underflow when updating estimates; correctly
4230         scale loop profile.
4231
4232 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4233
4234         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
4235         r236875. Corrected oe3 to oe2 as obvious.
4236
4237 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4238
4239         PR middle-end/71269
4240         PR middle-end/71252
4241         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
4242         that inserted stmt will not dominate stmts that defines its operand.
4243         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
4244         (rewrite_expr_tree_parallel): Likewise.
4245
4246 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4247
4248         PR middle-end/71252
4249         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
4250         all fields including stmt_to_insert are swapped.
4251
4252 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4253
4254         * predict.h (force_edge_cold): Declare.
4255         * predict.c (force_edge_cold): New function.
4256         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4257         updating.
4258         (canonicalize_loop_induction_variables): Fix formating.
4259
4260 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4261
4262         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4263         (visium_expand_copysign): Use gen_int_mode directly.
4264         (visium_compute_frame_size): Minor tweaks.
4265
4266 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4267
4268         * tree-vect-loop.c (vect_analyze_loop_2): Use
4269         likely_max_stmt_executions_int.
4270
4271 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4272
4273         PR tree-optimization/69067
4274         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4275
4276 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4277
4278         PR target/71245
4279         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4280         New peepholes to remove unneeded fild/fistp pairs.
4281         (define_peephole2 atomic_loaddi_fpu): Ditto.
4282
4283 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4284
4285         * predict.c (maybe_hot_frequency_p): Avoid division.
4286
4287 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4288
4289         * doc/install.texi: Use https for shop.fsf.org.
4290
4291 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4292
4293         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4294         likely_max_stmt_executions_int.
4295
4296 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4297
4298         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4299         likely_max_stmt_executions_int.
4300
4301 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4302
4303         * profile.c (compute_branch_probabilities): Do not report hitrates
4304         here.
4305         (branch_prob): Report hitrates here.
4306         * predict.c (gimple_predict_edge): Do not assert profile status;
4307         fix formatting issues.
4308
4309 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4310
4311         * predict.c (edge_predicted_by_p): New function.
4312         (predict_paths_for_bb): Do not put multiple predictions of the same type
4313         on one edge.
4314
4315 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4316
4317         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4318         commit.
4319
4320 2016-05-28  Alan Modra  <amodra@gmail.com>
4321
4322         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4323
4324 2016-05-28  Alan Modra  <amodra@gmail.com>
4325
4326         PR rtl-optimization/71275
4327         * ira.c (ira): Free dominance info.
4328
4329 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4330
4331         * doc/sourcebuild.texi: New address for upstream Go repository.
4332
4333 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4334
4335         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4336         (TARGET_ARM_V7M): Likewise.
4337
4338 2016-05-26  Jeff Law  <law@redhat.com>
4339
4340         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4341         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4342         * passes.def: Add jump threading passes before DOM/VRP.
4343         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4344         argument to a basic block from an edge.  Remove tests which are
4345         handled elsewhere.
4346         (pass_data_thread_jumps, class pass_thread_jumps): New.
4347         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4348         (make_pass_thread_jumps): Likewise.
4349         * tree-pass.h (make_pass_thread_jumps): Declare.
4350
4351 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4352
4353         * config/visium/visium-protos.h (split_double_move): Rename into...
4354         (visium_split_double_move): ...this.
4355         (visium_split_double_add): Declare.
4356         * config/visium/visium.c (split_double_move): Rename into...
4357         (visium_split_double_move): ...this.
4358         (visium_split_double_add): New function.
4359         (visium_expand_copysign): Renumber operands for consistency.
4360         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4361         (DFmode move splitter): Likewise.
4362         (*addi3_insn): Split by means of visium_split_double_add.
4363         (*adddi3_insn_flags): Delete.
4364         (*plus_plus_sltu<subst_arith>): New insn.
4365         (*subdi3_insn): Split by means of visium_split_double_add.
4366         (subdi3_insn_flags): Delete.
4367         (*minus_minus_sltu<subst_arith>): New insn.
4368         (*negdi2_insn): Split by means of visium_split_double_add.
4369         (*negdi2_insn_flags): Delete.
4370
4371 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4372
4373         * configure.ac: Treat a --with-headers option without argument
4374         the same as the default (i.e. consult sys-include directory).
4375         * configure: Regenerate.
4376
4377 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4378
4379         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4380         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4381         prototype.
4382         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4383         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4384
4385 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4386
4387         PR target/63596
4388         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4389         tree-stdarg analysis results.
4390         (aarch64_setup_incoming_varargs): Likewise.
4391
4392 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4393
4394         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4395         va_list_gpr_counter_field and va_list_fpr_counter_field.
4396
4397 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
4398
4399         PR67609
4400         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
4401         * config/aarch64/aarch64.c
4402         (aarch64_cannot_change_mode_class): Remove function.
4403         * config/aarch64/aarch64-protos.h
4404         (aarch64_cannot_change_mode_class): Remove.
4405
4406 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4407
4408         * cfgloop.c (record_niter_bound): Record likely upper bounds.
4409         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
4410         get_likely_max_loop_iterations_int): New.
4411         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
4412         any_likely_upper_bound.
4413         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
4414         Declare.
4415         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
4416         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
4417         upper bound.
4418         (unroll_loop_constant_iterations): Likewise.
4419         (unroll_loop_runtime_iterations): Likewise.
4420         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
4421         * lto-streamer-out.c (output_cfg): Likewise.
4422         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
4423         bounds.
4424         (canonicalize_loop_induction_variables): Dump likely upper bounds.
4425         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
4426         (likely_max_loop_iterations): New.
4427         (likely_max_loop_iterations_int): New.
4428         (likely_max_stmt_executions): New.
4429         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
4430         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
4431         likely_max_stmt_executions): Declare.
4432
4433 2016-05-27  Marek Polacek  <polacek@redhat.com>
4434
4435         PR middle-end/71308
4436         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
4437
4438 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4439
4440         * config/s390/s390.md (2x risbg splitters): Use
4441         reg_overlap_mentioned_p instead of rtx_equal_p.
4442
4443 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4444
4445         * combine.c (make_compound_operation): Take known zero bits into
4446         account when checking for possible zero_extend.
4447
4448 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4449
4450         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
4451         Use const_int_operand for operand 2 predicate.  Simplify expand code
4452         as a result.
4453
4454 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4455
4456         PR middle-end/71279
4457         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4458         into comparison.
4459
4460 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4461
4462         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
4463         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
4464         that returns CC_SESWPmode and CC_ZESWPmode.
4465         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
4466         and CC_SESWPmode.
4467         (aarch64_rtx_costs): Likewise.
4468
4469 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4470
4471         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
4472         for ISA 3.0 min/max support.
4473         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
4474         conditional move support.
4475         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
4476         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
4477         available.
4478         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
4479         conditional moves where the comparison type is different from move
4480         type.
4481         (fp_minmax): New code iterator for smin/smax.
4482         (minmax): New code attributes for min/max.
4483         (SMINMAX): Likewise.
4484         (smax<mode>3): Combine min, max insns into one insn using the
4485         fp_minmax code iterator.  Add support for ISA 3.0 min/max
4486         instructions that don't need -ffast-math.
4487         (s<minmax><mode>3): Likewise.
4488         (smax<mode>3_vsx): Likewise.
4489         (smin<mode>3): Likewise.
4490         (s<minmax><mode>3_vsx): Likewise.
4491         (smin<mode>3_vsx): Likewise.
4492         (pre-VSX min/max splitters): Likewise.
4493         (s<minmax><mode>3_fpr): Likewise.
4494         (movsfcc): Rewrite floating point conditional moves to combine
4495         SFmode/DFmode into a single insn.
4496         (mov<mode>cc): Likewise.
4497         (movdfcc): Likewise.
4498         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
4499         SFDF2 iterators to handle all combinations.
4500         (fseldfsf4): Likewise.
4501         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
4502         (fseldfdf4): Likewise.
4503         (fselsfdf4): Likewise.
4504         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
4505         comparison instructions that set a 0/-1 mask, and use it for
4506         floating point conditional move via XXSEL.
4507         (fpmask<mode>): Likewise.
4508         (xxsel<mode>): Likewise.
4509         * config/rs6000/predicates.md (min_max_operator): Delete, no
4510         longer used.
4511         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
4512         instructions that generate a 0/-1 mask for use with XXSEL.
4513         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
4514         say whether floating point min/max is available, either through
4515         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
4516         (TARGET_MINMAX_DF): Likewise.
4517
4518 2016-05-27  Alan Modra  <amodra@gmail.com>
4519
4520         PR rtl-optimization/71275
4521         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
4522         for update_equiv_regs and combine_and_move_insns.
4523
4524 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
4525
4526         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
4527         if_then_else or cond RTXes to calculate attribute value.
4528         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
4529         <attr "length_immediate>: Ditto.
4530         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
4531         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
4532         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
4533         <attr "type">: Ditto.
4534         <attr "prefix_data16">: Ditto.
4535         <attr "prefix_extra">: Ditto.
4536         <attr "length_immediate">: Ditto.
4537         <attr "prefix">: Ditto.
4538         (vec_set<mode>_0) <attr "isa">: Ditto.
4539         <attr "prefix_extra">: Ditto.
4540         <attr "length_immediate">: Ditto.
4541         <attr "prefix">: Ditto.
4542         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
4543         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
4544         (sse2_storelpd) <attr "prefix_data16">: Ditto.
4545         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
4546         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
4547         <attr "length_immediate">: Ditto.
4548         <attr "prefix">: Ditto.
4549         (sse2_movsd) <attr "length_immediate">: Ditto.
4550         <attr "prefix">: Ditto.
4551         (vec_concatv2df)  <attr "isa">: Ditto.
4552         <attr "prefix">: Ditto.
4553         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
4554         (*vec_extractv2di_1) <attr "isa">: Ditto.
4555         <attr "type">: Ditto.
4556         <attr "length_immediate">: Ditto.
4557         <attr "prefix_rex">: Ditto.
4558         <attr "prefix_extra">: Ditto.
4559         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
4560         <attr "prefix_extra">: Ditto.
4561         <attr "length_immediate">: Ditto.
4562         (vec_concatv2di) <attr "isa">: Ditto.
4563         <attr "prefix_extra">: Ditto.
4564         <attr "length_immediate">: Ditto.
4565         <attr "prefix">: Ditto.
4566
4567 2016-05-26  Martin Liska  <mliska@suse.cz>
4568
4569         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
4570         function.
4571         (operator+): Likewise.
4572         (operator-): Likewise.
4573         (comp_cost::operator+=): Likewise.
4574         (comp_cost::operator-=): Likewise.
4575         (comp_cost::operator/=): Likewise.
4576         (comp_cost::operator*=): Likewise.
4577         (operator<): Likewise.
4578         (operator==): Likewise.
4579         (operator<=): Likewise.
4580         (new_cost): Remove.
4581         (infinite_cost_p): Likewise.
4582         (add_costs): Likewise.
4583         (sub_costs): Likewise.
4584         (compare_costs): Likewise.
4585         (set_group_iv_cost): Use the newly introduced functions.
4586         (get_address_cost): Likewise.
4587         (get_shiftadd_cost): Likewise.
4588         (force_expr_to_var_cost): Likewise.
4589         (split_address_cost): Likewise.
4590         (ptr_difference_cost): Likewise.
4591         (difference_cost): Likewise.
4592         (get_computation_cost_at): Likewise.
4593         (determine_group_iv_cost_generic): Likewise.
4594         (determine_group_iv_cost_address): Likewise.
4595         (determine_group_iv_cost_cond): Likewise.
4596         (autoinc_possible_for_pair): Likewise.
4597         (determine_group_iv_costs): Likewise.
4598         (cheaper_cost_pair): Likewise.
4599         (iv_ca_recount_cost): Likewise.
4600         (iv_ca_set_no_cp): Likewise.
4601         (iv_ca_set_cp): Likewise.
4602         (iv_ca_cost): Likewise.
4603         (iv_ca_new): Likewise.
4604         (iv_ca_dump): Likewise.
4605         (iv_ca_narrow): Likewise.
4606         (iv_ca_prune): Likewise.
4607         (iv_ca_replace): Likewise.
4608         (try_add_cand_for): Likewise.
4609         (try_improve_iv_set): Likewise.
4610         (find_optimal_iv_set): Likewise.
4611
4612 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4613
4614         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
4615         that internal functions will clobber all caller-saved registers.
4616
4617 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4618
4619         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4620         Return a better case_values_threshold when optimizing.
4621
4622 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4623
4624         * config/aarch64/aarch64-simd.md (aarch64_combinez):
4625         Add ? to integer variant.
4626         (aarch64_combinez_be): Likewise.
4627
4628 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4629
4630         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
4631         instead of x constraint.
4632         (vcvtps2ph256<mask_name>): Likewise.
4633
4634         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
4635         alternative.  Formatting fix.
4636
4637         * config/i386/sse.md
4638         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
4639         to ...
4640         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
4641         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
4642         maybe_evex prefix instead of vex.
4643         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
4644         EXT_REX_SSE_REG_P (op0) case in the splitter.
4645
4646 2016-05-25  Jeff Law  <law@redhat.com>
4647
4648         PR tree-optimization/71272
4649         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
4650         Update comments.  Add test for empty path.
4651
4652 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4653
4654         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
4655         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
4656         special case builtin.
4657         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4658         code for ALTIVEC_BUILTIN_VEC_CMPNE.
4659         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4660         for __builtin_vec_cmpne.
4661
4662 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4663
4664         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4665         redundant test and bail out if the type of the new operand is not
4666         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4667
4668 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4669
4670         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
4671         (x_ix86_target_flags_explicit): Remove.
4672         * config/i386/i386.c (ix86_function_specific_save): Do not copy
4673         x_ix86_target_flags_explicit.
4674         (ix86_function_specific_restore): Ditto.
4675
4676 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4677             H.J. Lu  <hongjiu.lu@intel.com>
4678
4679         PR target/70738
4680         * common/config/i386/i386-common.c
4681         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
4682         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
4683         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
4684         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
4685         (-mgeneral-regs-only): Add new option.
4686         * config/i386/i386.c (ix86_option_override_internal): Don't enable
4687         x87 instructions if only general registers are allowed.
4688         (ix86_target_string): Add ix86_flags argument. Handle additional
4689         flags options through ix86_flags argument.  Update all callers.
4690         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
4691
4692 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4693
4694         PR rtl-optimization/66940
4695         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
4696         decrementing desired_val will not overflow before performing these
4697         operations.
4698
4699 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
4700
4701         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
4702         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
4703         * config/i386/i386.c (enum ix86_builtins): Add
4704         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
4705         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
4706         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
4707         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
4708         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
4709         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
4710         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
4711         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
4712         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
4713         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
4714         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
4715         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
4716         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
4717         __builtin_ia32_cvtps2dq512_mask.
4718         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
4719         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
4720         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
4721         * config/i386/sse.md
4722         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
4723         Rename to ...
4724         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
4725         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
4726         to ...
4727         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
4728         (avx512f_vec_pack_sfix_v8df): New define_expand.
4729         (avx512f_roundpd512): Rename to ...
4730         (avx512f_round<castmode>512): ... this.  Change iterator.
4731         (avx512f_roundps512_sfix): New define_expand.
4732         (round<mode>2_sfix): Change iterator.
4733
4734 2016-05-25  Nick Clifton  <nickc@redhat.com>
4735
4736         * config/msp430/msp430.c (msp430_attr): Produce an error if a
4737         static interrupt handler is detected.
4738         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
4739         default linker script.
4740         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
4741         the low part of a symbolic pointer.
4742
4743 2016-05-25  Richard Biener  <rguenther@suse.de>
4744
4745         PR tree-optimization/71261
4746         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
4747         interesting stmt instead of immediate uses when looking
4748         for the use operand to replace.
4749
4750 2016-05-25  Martin Liska  <mliska@suse.cz>
4751
4752         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
4753
4754 2016-05-25  Richard Biener  <rguenther@suse.de>
4755
4756         PR tree-optimization/71264
4757         * tree-vect-stmts.c (vect_init_vector): Properly deal with
4758         vector type val.
4759
4760 2016-05-25  Martin Liska  <mliska@suse.cz>
4761
4762         PR tree-optimization/71239
4763         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
4764         if DECL_SIZE is NULL.
4765
4766 2016-05-25  Richard Biener  <rguenther@suse.de>
4767
4768         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
4769         * tree-if-conv.c (pass_data_if_conversion): Use it.
4770
4771 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4772
4773         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
4774         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
4775         * varpool.c (varpool_node::get_availability): Likewise.
4776
4777 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4778
4779         * config/rs6000/altivec.md (VNEG iterator): New iterator for
4780         VNEGW/VNEGD instructions.
4781         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
4782         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
4783         support for ISA 3.0 VNEGW/VNEGD instructions.
4784
4785 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4786
4787         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
4788         pointers inside OACC_DATA regions.
4789         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
4790         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
4791         (gimplify_adjust_omp_clauses): Fix typo in comment.
4792
4793 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4794
4795         * config/rs6000/altivec.md (VParity): New mode iterator for vector
4796         parity built-in functions.
4797         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
4798         zeros.
4799         (p9v_parity<mode>2): Likewise.
4800         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
4801         parity.
4802         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
4803         (parity<mode>2): ISA 3.0 expander for vector parity.
4804         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
4805         power9 built-ins.
4806         (BU_P9_64BIT_MISC_0): Likewise.
4807         (BU_P9_MISC_0): Likewise.
4808         (BU_P9V_AV_1): Likewise.
4809         (BU_P9V_AV_2): Likewise.
4810         (BU_P9V_AV_3): Likewise.
4811         (BU_P9V_AV_P): Likewise.
4812         (BU_P9V_VSX_1): Likewise.
4813         (BU_P9V_OVERLOAD_1): Likewise.
4814         (BU_P9V_OVERLOAD_2): Likewise.
4815         (BU_P9V_OVERLOAD_3): Likewise.
4816         (VCTZB): Add vector count trailing zeros support.
4817         (VCTZH): Likewise.
4818         (VCTZW): Likewise.
4819         (VCTZD): Likewise.
4820         (VPRTYBD): Add vector parity support.
4821         (VPRTYBQ): Likewise.
4822         (VPRTYBW): Likewise.
4823         (VCTZ): Add overloaded vector count trailing zeros support.
4824         (VPRTYB): Add overloaded vector parity support.
4825         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4826         overloaded vector count trailing zeros and parity instructions.
4827         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
4828         vector parity support.
4829         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
4830         trailing zeros support.
4831         (vec_cntlz): Likewise.
4832         (vec_vctzb): Likewise.
4833         (vec_vctzd): Likewise.
4834         (vec_vctzh): Likewise.
4835         (vec_vctzw): Likewise.
4836         (vec_vprtyb): Add ISA 3.0 vector parity support.
4837         (vec_vprtybd): Likewise.
4838         (vec_vprtybw): Likewise.
4839         (vec_vprtybq): Likewise.
4840         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4841         the ISA 3.0 vector count trailing zeros and vector parity built-in
4842         functions.
4843
4844 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4845
4846         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
4847         when there is stmt_to_insert.
4848
4849 2016-05-24  Martin Sebor  <msebor@redhat.com>
4850
4851         PR c++/71147
4852         * tree.h (complete_or_array_type_p): New inline function.
4853
4854 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4855
4856         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4857         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4858         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
4859
4860         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
4861         Limit 1st alternative to noavx isa, split 2nd alternative into one
4862         noavx and one avx alternative, use *x and Bm in the former and
4863         x and m in the latter.
4864
4865         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
4866         of sse4 for the first alternative, drop %v from the template
4867         and d operand modifier.  Split second alternative into one sse4_noavx
4868         and one avx alternative, use *x instead of *v in the former and v
4869         instead of *v in the latter.
4870         (*sse4_1_extractps): Use noavx isa instead of * for the first
4871         alternative, drop %v from the template.  Split second alternative into
4872         one noavx and one avx alternative, use *x instead of *v in the
4873         former and v instead of *v in the latter.
4874         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
4875         with noavx and the last one with avx.
4876         (sse4_1_phminposuw): Guard first alternative with noavx isa,
4877         split the second one into one noavx and one avx alternative,
4878         use *x and Bm in the former and x and m in the latter one.
4879         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
4880         alternatives.
4881
4882         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
4883         first two alternatives to noavx, use *x instead of *v in the second
4884         one, add avx alternative without *.
4885         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
4886         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
4887         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
4888
4889 2016-05-24  Jeff Law  <law@redhat.com>
4890
4891         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
4892         New function, extracted from...
4893         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
4894         Allow simple copies and constant initializations in the SSA chain.
4895
4896 2016-05-24  Marek Polacek  <polacek@redhat.com>
4897
4898         PR c/71249
4899         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
4900         scope.
4901
4902 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4903
4904         PR c++/71257
4905         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4906         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4907         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4908         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4909         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4910
4911 2016-05-24  Richard Biener  <rguenther@suse.de>
4912
4913         PR tree-optimization/71240
4914         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
4915         has integral type.
4916
4917 2016-05-24  Richard Biener  <rguenther@suse.de>
4918
4919         PR tree-optimization/71230
4920         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
4921
4922 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4923
4924         * tree-vectorizer.h (vectorizable_comparison): Delete.
4925         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
4926         PURE_SLP_STMT check.
4927         * tree-vect-stmts.c (vectorizable_call): Likewise.
4928         (vectorizable_simd_clone_call): Likewise.
4929         (vectorizable_conversion): Likewise.
4930         (vectorizable_assignment): Likewise.
4931         (vectorizable_shift): Likewise.
4932         (vectorizable_operation): Likewise.
4933         (vectorizable_load): Likewise.
4934         (vectorizable_condition): Likewise.
4935         (vectorizable_store): Likewise.  Assert that we don't have
4936         hybrid SLP.
4937         (vectorizable_comparison): Make static.  Remove redundant
4938         PURE_SLP_STMT check.
4939         (vect_transform_stmt): Assert that we always have an slp_node
4940         if PURE_SLP_STMT.
4941
4942 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4943
4944         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
4945         operands[2] against 1 with comparison against CONST1_RTX.
4946         (<shift>di3_neon): Likewise.
4947         * config/arm/predicates.md (const0_operand): Replace with comparison
4948         against CONST0_RTX.
4949
4950 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4951
4952         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
4953         operands[2] against 1 with comparison against CONST1_RTX.
4954         (ashrdi3): Likewise.
4955         (lshrdi3): Likewise.
4956         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
4957         UINTVAL.
4958         (ashrsi3): Likewise.
4959         (lshrsi3): Likewise.
4960         (rotrsi3): Likewise.
4961         (define_split above *compareqi_eq0): Likewise.
4962         (define_split above "prologue"): Likewise.
4963         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
4964         * config/arm/predicates.md (shift_operator): Likewise.
4965         (shift_nomul_operator): Likewise.
4966         (sat_shift_operator): Likewise.
4967         (thumb1_cmp_operand): Likewise.
4968         (const_neon_scalar_shift_amount_operand): Replace manual range
4969         check with IN_RANGE.
4970         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
4971         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
4972
4973 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4974
4975         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
4976         with HOST_WIDE_INT_1.
4977         (insv): Likewise.
4978         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
4979         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
4980         (arm_canonicalize_comparison): Likewise.
4981         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
4982         HOST_WIDE_INT_1.
4983         (thumb1_size_rtx_costs): Likewise.
4984         (vfp_const_double_index): Replace cast of 1 to unsigned
4985         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4986         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
4987         HOST_WIDE_INT_1.
4988         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
4989         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4990         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
4991         HOST_WIDE_INT with HOST_WIDE_INT_1.
4992
4993 2016-05-24  Marek Polacek  <polacek@redhat.com>
4994
4995         * tree-cfg.h (should_remove_lhs_p): New predicate.
4996         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
4997         * gimplify.c (gimplify_modify_expr): Likewise.
4998         * tree-cfg.c (verify_gimple_call): Likewise.
4999         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5000         * gimple-fold.c: Include "tree-cfg.h".
5001         (gimple_fold_call): Use should_remove_lhs_p.
5002
5003 2016-05-24  Richard Biener  <rguenther@suse.de>
5004
5005         PR tree-optimization/71253
5006         * cfganal.h (control_dependences): Make robust against edge
5007         and BB removal.
5008         (control_dependences::control_dependences): Remove edge_list argument.
5009         (control_dependences::get_edge): Remove.
5010         (control_dependences::get_edge_src): Add.
5011         (control_dependences::get_edge_dest): Likewise.
5012         (control_dependences::m_el): Make a vector of edge src/dest index.
5013         * cfganal.c (control_dependences::find_control_dependence): Adjust.
5014         (control_dependences::control_dependences): Likewise.
5015         (control_dependences::~control_dependence): Likewise.
5016         (control_dependences::get_edge): Remove.
5017         (control_dependences::get_edge_src): Add.
5018         (control_dependences::get_edge_dest): Likewise.
5019         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
5020         get_edge_src.
5021         (perform_tree_ssa_dce): Adjust.
5022         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
5023         get_edge_src.
5024         (pass_loop_distribution::execute): Adjust.  Do loop destroying
5025         conditional on changed.
5026
5027 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5028
5029         PR target/69857
5030         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
5031         return.  Reindent transformation comment and mention the ARM state
5032         behavior.
5033
5034 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5035
5036         PR middle-end/71252
5037         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
5038         after build_and_add_sum creates new use stmt.
5039
5040 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5041
5042         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
5043         load_lanes/grouped_load classification comes first.  Don't check
5044         whether the vectorization factor is a multiple of the group size
5045         for load_lanes.
5046
5047 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5048
5049         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
5050         GROUP_GAP for single-element interleaving.
5051         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
5052         variable.
5053
5054 2016-05-24  Richard Biener  <rguenther@suse.de>
5055
5056         PR middle-end/70434
5057         PR c/69504
5058         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
5059         bases which are accessed with non-invariant indices.
5060         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
5061         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
5062
5063 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5064
5065         PR middle-end/71170
5066         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
5067         (add_to_ops_vec): Add stmt_to_insert.
5068         (add_repeat_to_ops_vec): Init stmt_to_insert.
5069         (insert_stmt_before_use): New.
5070         (transform_add_to_multiply): Remove mult_stmt insertion and add it
5071         to ops vector.
5072         (get_ops): Init stmt_to_insert.
5073         (maybe_optimize_range_tests): Likewise.
5074         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
5075         (rewrite_expr_tree_parallel): Likewise.
5076         (reassociate_bb): Likewise.
5077
5078 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5079
5080         PR target/71201
5081         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5082         ISA 3.0 xxperm fusion alternative.
5083         (altivec_vperm_v8hiv16qi): Likewise.
5084         (altivec_vperm_<mode>_uns_internal): Likewise.
5085         (vperm_v8hiv4si): Likewise.
5086         (vperm_v16qiv8hi): Likewise.
5087
5088 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5089             Kelvin Nilsen  <kelvin@gcc.gnu.org>
5090
5091         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5092         vpermr/xxpermr on ISA 3.0.
5093         (altivec_expand_vec_perm_le): Likewise.
5094         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5095         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5096         ISA 3.0.
5097
5098 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
5099
5100         * config/i386/i386.h (IS_STACK_MODE): Enable for
5101         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
5102         SSE_FLOAT_MODE_P macros.
5103         * config/i386/i386.c (ix86_preferred_reload_class): Use
5104         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5105         Cleanup regclass processing for CONST_DOUBLE_P.
5106         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5107         (ix86_rtx_costs): Remove redundant TARGET_80387 check
5108         with IS_STACK_MODE macro.
5109         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5110         with TARGET_SSE2.
5111         (*movdf_internal): Use IS_STACK_MODE macro.
5112         (*movsf_internal): Ditto.
5113
5114 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
5115
5116         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5117         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5118
5119 2016-05-23  Jeff Law  <law@redhat.com>
5120
5121         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5122         extracted from ...
5123         (fsm_find_control_statement_thread_paths): Call it.
5124
5125 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5126
5127         PR ipa/71234
5128         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5129         from_global_constant if t is not NULL.
5130
5131 2016-05-23  Marek Polacek  <polacek@redhat.com>
5132
5133         PR c/49859
5134         * common.opt (Wswitch-unreachable): New option.
5135         * doc/invoke.texi: Document -Wswitch-unreachable.
5136         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5137         warning.
5138
5139 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
5140
5141         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5142         TMR_INDEX is non-NULL.
5143
5144 2016-05-23  Richard Biener  <rguenther@suse.de>
5145
5146         PR tree-optimization/71230
5147         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5148         (try_special_add_to_ops): ... here.  Always test for single-use.
5149
5150 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5151
5152         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5153         default block if a PHI node in the original one would be resized.
5154
5155 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5156
5157         PR tree-optimization/58135
5158         * tree-vect-slp.c: When group size is not multiple
5159         of vector size, allow splitting of store group at
5160         vector boundary.
5161
5162 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
5163
5164         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5165
5166 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
5167
5168         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5169         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5170         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
5171         of 64x2.
5172
5173         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5174         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5175         v constraint instead of x and vinserti32x4 insn.
5176
5177         * config/i386/sse.md (i128vldq): New mode iterator.
5178         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5179         avx512dq and avx512vl alternatives.
5180
5181         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5182         constraint, use maybe_evex prefix instead of vex.
5183         (vec_dupv4sf): Use v constraint instead of x for output
5184         operand except for noavx alternative, use Yv constraint
5185         instead of x for input.  Use maybe_evex prefix instead of vex.
5186         (*vec_dupv4si): Likewise.
5187         (*vec_dupv2di): Likewise.
5188
5189 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5190
5191         PR middle-end/40921
5192         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5193         (linearize_expr_tree): Call try_special_add_to_ops.
5194         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5195
5196 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5197
5198         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5199         to computed stack_usage.
5200
5201 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5202
5203         PR target/71103
5204         * config/avr/avr.md (define_expand "mov<mode>"): If the source
5205         operand is subreg (symbol_ref) then move the symbol ref to register.
5206
5207 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
5208
5209         * tree.c (array_at_struct_end_p): Look through MEM_REF.
5210
5211 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5212
5213         PR middle-end/71179
5214         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
5215         VECTOR type.
5216
5217 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5218
5219         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
5220         ranges by calling get_single_symbol and tidy up.  Look more closely
5221         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
5222
5223 2016-05-20  Jeff Law  <law@redhat.com>
5224
5225         * bitmap.c (bitmap_find_bit): Remove useless test.
5226
5227 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5228
5229         * function.c (thread_prologue_and_epilogue_insns): Commit the
5230         insertion of the epilogue.
5231
5232 2016-05-20  Martin Jambor  <mjambor@suse.cz>
5233
5234         PR tree-optimization/70884
5235         * tree-sra.c (initialize_constant_pool_replacements): Do not check
5236         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5237         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5238         of constant pool data as a reason for scalarization.
5239
5240 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5241
5242         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5243         for naked functions.
5244         (thumb1_expand_prologue): Likewise.
5245
5246 2016-05-20  Nathan Sidwell  <nathan@acm.org>
5247
5248         * config/nvptx/nptx.c (nvptx_option_override): Only set
5249         flag_toplevel_reorder, if not explicitly specified.  Set
5250         flag_no_common, unless explicitly specified.
5251
5252 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5253
5254         * calls.c (can_implement_as_sibling_call_p): Mark param
5255         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5256
5257 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5258
5259         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5260         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5261         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5262         constants.
5263         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5264         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5265         and CASE_CONST_ANY.
5266
5267 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5268
5269         * config/nvptx/nvptx.md (sincossf3): New pattern.
5270
5271 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5272
5273         * calls.c (maybe_complain_about_tail_call): New function.
5274         (initialize_argument_information): Call
5275         maybe_complain_about_tail_call when clearing *may_tailcall.
5276         (can_implement_as_sibling_call_p): Call
5277         maybe_complain_about_tail_call when returning false.
5278         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5279         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5280         if tail-call optimization fails.
5281         * cfgexpand.c (expand_call_stmt): Initialize
5282         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5283         * gimple-pretty-print.c (dump_gimple_call): Dump
5284         gimple_call_must_tail_p.
5285         * gimple.c (gimple_build_call_from_tree): Call
5286         gimple_call_set_must_tail with the value of
5287         CALL_EXPR_MUST_TAIL_CALL.
5288         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5289         (gimple_call_set_must_tail): New function.
5290         (gimple_call_must_tail_p): New function.
5291         * print-tree.c (print_node): Update printing of TREE_STATIC
5292         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5293         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5294         trailing comment listing applicable flags.
5295         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5296
5297 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5298
5299         * calls.c (expand_call): Move "Rest of purposes for tail call
5300         optimizations to fail" to...
5301         (can_implement_as_sibling_call_p): ...this new function, and
5302         split into multiple "if" statements.
5303
5304 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5305
5306         * cfgloop.h (expected_loop_iterations_unbounded,
5307         expected_loop_iterations): Unconstify.
5308         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5309         profile with known upper bound; return 3 when profile is absent.
5310         (expected_loop_iterations): Update.
5311
5312 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5313
5314         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5315         and get_max_loop_iterations_int.
5316
5317 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5318
5319         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5320         realistic upper bounds here.
5321
5322 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR c++/71210
5325         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5326         calls if the LHS is variable length or has addressable type.
5327         If targets[0]->decl is a noreturn call with void return type and
5328         zero arguments, adjust fntype and remove lhs in that case.
5329
5330 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5331
5332         PR tree-optimization/71079
5333         PR tree-optimization/71206
5334         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5335
5336 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5337
5338         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5339         (get_vec_alignment_for_array_decl): Likewise.
5340         (get_vec_alignment_for_record_decl): Likewise.
5341         (increase_alignment::execute): Move code to find alignment to
5342         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5343         (type_align_map): New hash_map.
5344
5345 2016-05-20  Richard Guenther  <rguenther@suse.de>
5346
5347         PR tree-optimization/29756
5348         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5349         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5350         * fold-const.c (operand_equal_p): Likewise.
5351         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5352         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5353         * tree-inline.c (estimate_operator_cost): Likewise.
5354         * tree-pretty-print.c (dump_generic_node): Likewise.
5355         * tree-ssa-operands.c (get_expr_operands): Likewise.
5356         * cfgexpand.c (expand_debug_expr): Likewise.
5357         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5358         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5359         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5360         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5361         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5362         (execute_update_addresses_taken): Do it.
5363
5364 2016-05-20  Richard Biener  <rguenther@suse.de>
5365
5366         PR tree-optimization/71185
5367         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5368         register operations.
5369
5370 2016-05-20  Richard Biener  <rguenther@suse.de>
5371
5372         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5373         gimple_seq_add_seq_without_update.
5374         (release_bb_predicate): Assert we have no operands to free.
5375         (if_convertible_loop_p_1): Calculate post dominators later.
5376         Do not free BB predicates here.
5377         (combine_blocks): Do not recompute BB predicates.
5378         (version_loop_for_if_conversion): Save BB predicates around
5379         loop versioning.
5380
5381 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5382
5383         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5384         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5385         code.  Ignore sibcalls on EDGE_IGNORE edges.
5386         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5387         on edges for sibcalls that run without prologue.  The rest of the
5388         function is combined from...
5389         (fix_fake_fallthrough_edge): ... this, and ...
5390         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5391         function argument, make it a local variable.
5392
5393 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5394
5395         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5396         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5397         for 32-bit mode and SEH for 64-bit.
5398         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
5399         TARGET_64BIT_DEFAULT.
5400
5401 2016-05-19  Ryan Burn  <contact@rnburn.com>
5402
5403         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
5404         * gengtype.c (open_base_files): Add cilk.h to ifiles.
5405
5406 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
5407
5408         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5409         force pending loads from memory.
5410
5411 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5412
5413         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5414         (UNSPEC_DARN_32): New unspec constant.
5415         (UNSPEC_DARN_RAW): New unspec constant.
5416         (darn_32): New instruction.
5417         (darn_raw): New instruction.
5418         (darn): New instruction.
5419         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5420         support and documentation for this macro.
5421         (BU_P9_MISC_1): New macro definition.
5422         (BU_P9_64BIT_MISC_0): New macro definition.
5423         (BU_P9_MISC_0): New macro definition.
5424         (darn_32): New builtin definition.
5425         (darn_raw): New builtin definition.
5426         (darn): New builtin definition.
5427         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5428         RS6000_BUILTIN_0 directives to surround each occurrence of
5429         #include "rs6000-builtin.def".
5430         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5431         RS6000_BTM_64BIT flags to the returned mask, depending on
5432         configuration.
5433         (def_builtin): Correct an error in the assignments made to the
5434         debugging variable attr_string.
5435         (rs6000_expand_builtin): Add support for no-operand built-in
5436         functions.
5437         (builtin_function_type): Remove fatal_error assertion that is no
5438         longer valid.
5439         (rs6000_common_init_builtins): Add support for no-operand built-in
5440         functions.
5441         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
5442         definition.
5443         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
5444         definition.
5445         (RS6000_BTM_64BIT): New macro definition.
5446         * doc/extend.texi: Document __builtin_darn (void),
5447         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
5448         functions.
5449
5450 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
5451
5452         * tree-vect-loop.c (vect_analyze_loop_2): Use also
5453         max_loop_iterations_int.
5454
5455 2016-05-19  Marek Polacek  <polacek@redhat.com>
5456
5457         PR tree-optimization/71031
5458         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
5459         condition and adjust the code a bit.
5460
5461 2016-05-19  Martin Liska  <mliska@suse.cz>
5462
5463         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
5464         auto_vec instead of vec.
5465
5466 2016-05-19  Martin Liska  <mliska@suse.cz>
5467
5468         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
5469
5470 2016-05-19  Martin Liska  <mliska@suse.cz>
5471
5472         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
5473
5474 2016-05-19  Martin Liska  <mliska@suse.cz>
5475
5476         * ipa-pure-const.c (set_function_state): Remove an existing
5477         funct_state.
5478         (remove_node_data): Do not free it as it's released
5479         in set_function_state.
5480
5481 2016-05-19  Martin Liska  <mliska@suse.cz>
5482
5483         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
5484         bitmap.
5485
5486 2016-05-19  Martin Liska  <mliska@suse.cz>
5487
5488         * omp-simd-clone.c (simd_clone_adjust): Release vector.
5489
5490 2016-05-19  Martin Liska  <mliska@suse.cz>
5491
5492         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
5493         an auto_vec instead of re-creating it.
5494
5495 2016-05-19  Martin Liska  <mliska@suse.cz>
5496
5497         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
5498         auto_vec instead of vec.
5499
5500 2016-05-19  Martin Liska  <mliska@suse.cz>
5501
5502         * lto-section-in.c (lto_get_section_data): Call
5503         lto_check_version with additional argument.
5504         * lto-streamer.c (lto_check_version): Add new argument.
5505         * lto-streamer.h (lto_check_version): Likewise.
5506
5507 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5508
5509         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
5510         Don't add cost of inner memory when handling sign-extended loads.
5511
5512 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
5513
5514         PR rtl-optimization/71148
5515         * cse.c (cse_main): Free dominance info.
5516         (rest_of_handle_cse): Don't free dominance info.
5517         (rest_of_handle_cse2): Likewise.
5518         (rest_of_handle_cse_after_global_opts): Likewise.
5519
5520 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5521
5522         PR target/71056
5523         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
5524         NULL_TREE early if NEON is not available.  Remove now redundant check
5525         in ARM_CHECK_BUILTIN_MODE.
5526
5527 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
5528
5529         PR sanitizer/64354
5530         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
5531         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
5532         * doc/cpp.texi: Document new macros.
5533
5534 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
5535
5536         PR tree-optimization/69848
5537         * tree-vect-loop.c (vectorizable_reduction): Don't factor
5538         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
5539
5540 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5541
5542         * function.c (thread_prologue_and_epilogue_insn): Move the
5543         "goto epilogue_done" one block later.
5544
5545 2016-05-19  Richard Biener  <rguenther@suse.de>
5546
5547         PR tree-optimization/70729
5548         * passes.def: Move LIM pass before PRE.  Remove no longer
5549         required copyprop and move first DCE out of the loop pipeline.
5550
5551 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
5552
5553         PR driver/69265
5554         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
5555         (OBJS-libcommon-target): ...here.
5556         * opts-common.c: Include spellcheck.h.
5557         (cmdline_handle_error): Build a vec of valid options and use it
5558         to suggest provide hints for misspelled arguments.
5559
5560 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5561
5562         PR c++/71100
5563         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
5564         lhs if it has TREE_ADDRESSABLE type.
5565
5566 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
5567
5568         PR target/71145
5569         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
5570         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
5571
5572 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5573
5574         PR ipa/69708
5575         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
5576         input for NOP_EXPR pass-through functions.
5577         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
5578         aggregate global constant VAR_DECLs in constant jump functions.
5579
5580 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5581
5582         PR ipa/69708
5583         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
5584         from TREE_READONLY parameters.
5585
5586 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5587
5588         PR ipa/69708
5589         * cgraph.h (cgraph_indirect_call_info): New field
5590         guaranteed_unmodified.
5591         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
5592         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5593         appropriate.
5594         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
5595         pass the parameter value to ipa_find_agg_cst_for_param.
5596         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
5597         guaranteed_unmodified, store AA results there instead of bailing out
5598         if present.
5599         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
5600         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
5601         (find_constructor_constant_at_offset): New function.
5602         (ipa_find_agg_cst_from_init): Likewise.
5603         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
5604         static initializers of contants, report back through a new paameter
5605         from_global_constant if that was the case.
5606         (try_make_edge_direct_simple_call): Also pass parameter value to
5607         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5608         appropriate.
5609         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
5610         (ipa_read_indirect_edge_info): Likewise.
5611         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
5612         (ipa_load_from_parm_agg): Likewise.
5613
5614 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
5615
5616         PR rtl-optimization/71150
5617         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
5618         check.
5619
5620 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5621
5622         PR target/70915
5623         * config/rs6000/constraints.md (wE constraint): New constraint
5624         for a vector constant that can be loaded with XXSPLTIB.
5625         (wM constraint): New constraint for a vector constant of a 1's.
5626         (wS constraint): New constraint for a vector constant that can be
5627         loaded with XXSPLTIB and a vector sign extend instruction.
5628         * config/rs6000/predicates.md (xxspltib_constant_split): New
5629         predicates for wE/wS constraints.
5630         (xxspltib_constant_nosplit): Likewise.
5631         (easy_vector_constant): Add support for constants that can be
5632         loaded via XXSPLTIB.
5633         (all_ones_constant): New predicate for vector constant with all
5634         1's set.
5635         (splat_input_operand): Add support for ISA 3.0 word splat operations.
5636         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5637         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5638         instruction and possibly with a sign extension.
5639         (output_vec_const_move): Add support for XXSPLTIB. If we are
5640         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5641         instead of XXLXOR/XXLORC.
5642         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5643         operations.
5644         (rs6000_legitimize_reload_address): Likewise.
5645         (rs6000_output_move_128bit): Use output_vec_const_move to emit
5646         constants.
5647         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5648         combine VSX_M and VSX_M2 into one iterator.
5649         (VSX_M2): Likewise.
5650         (VSINT_84): New iterators for loading constants with XXSPLTIB.
5651         (VSINT_842): Likewise.
5652         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5653         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5654         XXSPLTIB instruction.
5655         (xxspltib_<mode>_nosplit): Likewise.
5656         (xxspltib_<mode>_split): New insn to load up constants with
5657         XXSPLTIB and a sign extend instruction.
5658         (vsx_mov<mode>): Replace single move that handled all vector types
5659         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
5660         moves (when -mvsx-timode is in effect) into the main vector
5661         moves.  Eliminate separate moves for <VSr> <VSa>, where the
5662         preferred register class (<VSr>) is listed first, and the
5663         secondary register class (<VSa>) is listed second with a '?' to
5664         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
5665         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5666         that if the register was involved in a slow operation, the
5667         clear/set operation does not wait for the slow operation to
5668         finish.  Adjust the length attributes for 32-bit mode.  Use
5669         rs6000_output_move_128bit and drop the use of the string
5670         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
5671         spacing so that the alternatives and attributes don't generate
5672         long lines, and put things in columns, so that it is easier to
5673         match up the operands and attributes with the insn alternatives.
5674         (vsx_mov<mode>_64bit): Likewise.
5675         (vsx_mov<mode>_32bit): Likewise.
5676         (vsx_movti_64bit): Fold movti into normal vector moves.
5677         (vsx_movti_32bit): Likewise.
5678         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5679         splat instructions.
5680         (vsx_splat_v4si_internal): Likewise.
5681         (vsx_splat_v4sf_internal): Likewise.
5682         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5683         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5684         extend vector elements.
5685         (vsx_sign_extend_hi_<mode>): Likewise.
5686         (vsx_sign_extend_si_v2di): Likewise.
5687         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5688         declaration.
5689         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5690         constraints.  Add trailing period to wL documentation.
5691
5692 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
5693
5694         PR middle-end/71020
5695         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
5696         * tree-dfa.c (replace_abnormal_ssa_names): New function.
5697         * tree-call-cdce.c: Include tree-dfa.h.
5698         (can_guard_call_p): New function, extracted from...
5699         (can_use_internal_fn): ...here.
5700         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
5701         and return void.
5702         (shrink_wrap_one_built_in_call): Likewise.
5703         (use_internal_fn): Likewise.
5704         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
5705         and return void.  Call replace_abnormal_ssa_names.
5706         (pass_call_cdce::execute): Check can_guard_call_p during the
5707         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
5708         will always change something.
5709
5710 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5711
5712         PR ipa/70646
5713         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5714         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5715
5716 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5717
5718         PR ipa/70646
5719         * ipa-inline.h (condition): New field size.
5720         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5721         for comaprison and store it into the new condition.
5722         (evaluate_conditions_for_known_args): Use condition size to check
5723         access sizes for all but CHANGED conditions.
5724         (unmodified_parm_1): New parameter size_p, store access size into it.
5725         (unmodified_parm): Likewise.
5726         (unmodified_parm_or_parm_agg_item): Likewise.
5727         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5728         (set_cond_stmt_execution_predicate): Extract access sizes and store
5729         them to conditions.
5730         (set_switch_stmt_execution_predicate): Likewise.
5731         (will_be_nonconstant_expr_predicate): Likewise.
5732         (will_be_nonconstant_predicate): Likewise.
5733         (inline_read_section): Stream condition size.
5734         (inline_write_summary): Likewise.
5735
5736 2016-05-18  Richard Biener  <rguenther@suse.de>
5737
5738         * tree-ssa-loop-im.c (determine_max_movement): Properly add
5739         condition cost to PHI cost instead of total_cost.
5740
5741 2016-05-18  Martin Liska  <mliska@suse.cz>
5742
5743         PR fortran/70856
5744         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5745         merged variables.
5746
5747 2016-05-18  Richard Biener  <rguenther@suse.de>
5748
5749         * lto-streamer.h (LTO_major_version): Bump to 6.
5750
5751 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5752
5753         * function.c (make_split_prologue_seq, make_prologue_seq,
5754         make_epilogue_seq): New functions, factored out from...
5755         (thread_prologue_and_epilogue_insns): Here.
5756
5757 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5758
5759         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5760         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
5761         of before.  Add a comment.
5762
5763 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
5764
5765         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
5766         expression pointer, not pointer to the pointer.
5767
5768 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5769
5770         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
5771         (avx2_pbroadcast<mode>): Add another alternative with v instead
5772         of x constraints in it, using <pbroadcast_evex_isa> isa.
5773         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
5774
5775         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
5776         constraint x instead of v in second alternative, add avx512bw
5777         alternative.
5778
5779         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
5780         constraint x instead of v in second alternative, add avx512bw
5781         alternative.
5782
5783         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
5784         constraint x instead of v in second alternative, add avx512bw
5785         alternative.
5786
5787         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
5788         avx512bw alternative.
5789
5790 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5791
5792         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
5793         array to 128 chars.
5794         (define_insn "*andnottf3"): Ditto.
5795         (define_insn "*<code><mode>3"/any_logic): Ditto.
5796         (define_insn "*<code>tf3"/any_logic): Ditto.
5797         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
5798         operand to block AVX-512VL insn variant emit when it is not enabled.
5799
5800 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5801
5802         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
5803         constraint fot SF mode.
5804
5805 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
5806             Kirill Yukhin  <kirill.yukhin@intel.com>
5807
5808         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
5809         modifiers.
5810         (define_insn "rsqrt14<mode>"): Ditto.
5811         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5812         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
5813         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
5814         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
5815         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
5816         Ditto.
5817         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
5818         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
5819         * config/i386/i386.c (ix86_print_operand): Expand check for size
5820         override codes for Intel syntax.
5821
5822 2016-05-18  Richard Biener  <rguenther@suse.de>
5823
5824         PR tree-optimization/71168
5825         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
5826         initialization earlier.
5827
5828 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
5829
5830         * config/aarch64/aarch64-simd.md
5831         (aarch64_reduc_plus_internal<mode>): Rename to...
5832         (reduc_plus_scal): ...This, and remove previous implementation.
5833
5834 2016-05-18  Richard Biener  <rguenther@suse.de>
5835
5836         * passes.def: Put late dse and cd_dce in canonical order.
5837
5838 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
5839
5840         * ipa-inline-transform.c (preserve_function_body_p): Look for
5841         first non-thunk clone.
5842         (save_function_body): Save into first non-thunk.
5843         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
5844         up call stmt id.
5845         (lto_output_node): Inline thunks don't need body in every
5846         partition.
5847         * lto-streamer-in.c: Do not fixup thunk clones.
5848         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
5849         thunks.
5850         * tree-inline.c (copy_bb): Be prepared for target node to be new after
5851         folding suceeds.
5852
5853 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5854
5855         PR middle-end/63586
5856         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
5857         (reassociate_bb): Call transform_add_to_multiply.
5858
5859 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5860
5861         * config/aarch64/aarch64.c (all_extensions): Removed unused
5862         static variable.
5863
5864 2016-05-17  Nathan Sidwell  <nathan@acm.org>
5865
5866         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
5867         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
5868
5869 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
5870
5871         PR tree-optimization/54579
5872         PR middle-end/55299
5873         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
5874
5875 2016-05-17  Marek Polacek  <polacek@redhat.com>
5876
5877         PR ipa/71146
5878         * tree-inline.c (expand_call_inline): Call
5879         maybe_remove_unused_call_args.
5880
5881 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
5882
5883         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
5884         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
5885         * doc/md.texi (fmin@var{m}3): Likewise.
5886
5887 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5888
5889         * match.pd (X & C): New transformation.
5890
5891 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5892
5893         * match.pd (~X & Y): New transformation.
5894
5895 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5896
5897         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
5898         information for new SSA_NAME.
5899         (simplify_conversion_using_ranges): Get range through get_range_info
5900         instead of get_value_range.
5901
5902 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5903
5904         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
5905         Remove inline assembly.
5906         (vmvn_s16): Likewise.
5907         (vmvn_s32): Likewise.
5908         (vmvn_u8): Likewise.
5909         (vmvn_u16): Likewise.
5910         (vmvn_u32): Likewise.
5911         (vmvnq_s8): Likewise.
5912         (vmvnq_s16): Likewise.
5913         (vmvnq_s32): Likewise.
5914         (vmvnq_u8): Likewise.
5915         (vmvnq_u16): Likewise.
5916         (vmvnq_u32): Likewise.
5917         (vmvn_p8): Likewise.
5918         (vmvnq_p16): Likewise.
5919
5920 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5921
5922         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
5923         Use builtin.
5924         (vmul_n_s16): Likewise.
5925         (vmul_n_s32): Likewise.
5926         (vmul_n_u16): Likewise.
5927         (vmul_n_u32): Likewise.
5928         (vmulq_n_f32): Likewise.
5929         (vmulq_n_f64): Likewise.
5930         (vmulq_n_s16): Likewise.
5931         (vmulq_n_s32): Likewise.
5932         (vmulq_n_u16): Likewise.
5933         (vmulq_n_u32): Likewise.
5934
5935 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5936
5937         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
5938         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
5939
5940 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5941
5942         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
5943         to *aarch64_fma4_elt_from_dup<mode>.
5944         (*aarch64_fnma4_elt_to_128df): Rename to
5945         *aarch64_fnma4_elt_from_dup<mode>.
5946         * config/aarch64/arm_neon.h (vfma_n_f64): New.
5947         (vfms_n_f32): Likewise.
5948         (vfms_n_f64): Likewise.
5949         (vfmsq_n_f32): Likewise.
5950         (vfmsq_n_f64): Likewise.
5951
5952 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
5953
5954         * wide-int.h: Change fixed_wide_int_storage from class to struct.
5955
5956 2016-05-17  Richard Biener  <rguenther@suse.de>
5957
5958         PR tree-optimization/71132
5959         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
5960         Only add control dependences for blocks in the loop.
5961         (build_rdg): Adjust.
5962         (generate_code_for_partition): Return whether loop should
5963         be destroyed and delay that.
5964         (distribute_loop): Likewise.
5965         (pass_loop_distribution::execute): Record loops to be destroyed
5966         and perform delayed destroying of loops.
5967
5968 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5969
5970         PR target/70809
5971         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
5972
5973 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5974
5975         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
5976
5977 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5978
5979         PR target/71114
5980         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
5981         insertion point for instructions generated by validize_mem.
5982
5983 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5984
5985         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
5986         in brackets.
5987
5988 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5989
5990         * config/aarch64/aarch64.c
5991         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
5992         rather than a macro.
5993
5994 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5995
5996         * doc/invoke.texi (AArch64 Options): Various updates.
5997
5998 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5999
6000         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
6001         into instrumentation thunks.
6002         * cif-code.def (CIF_CHKP): New.
6003
6004 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
6005
6006         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
6007
6008 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6009
6010         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
6011         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
6012
6013 2016-05-16  Marek Polacek  <polacek@redhat.com>
6014
6015         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
6016         commentary.
6017
6018 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6019
6020         PR hsa/70857
6021         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
6022         the outlined kernel function.
6023
6024 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
6025
6026         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
6027         (ISA_HAS_DLSA): Ditto.
6028
6029 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6030
6031         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
6032
6033 2016-05-16  Nathan Sidwell  <nathan@acm.org>
6034
6035         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
6036         (nvptx_name_replacement): Restore.  Add comment.
6037         (write_fn_proto, write_fn_proto_from_insn,
6038         nvptx_output_call_insn): Restore
6039         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
6040
6041 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6042
6043         * config/aarch64/aarch64.md
6044         (add<mode>3_compareC_cconly_imm): Remove use of %w.
6045         (add<mode>3_compareC_imm): Likewise.
6046         (<optab>si3_uxtw): Split into register and immediate variants.
6047         (andsi3_compare0_uxtw): Likewise.
6048         (and<mode>3_compare0): Likewise.
6049         (and<mode>3nr_compare0): Likewise.
6050         (stack_protect_test_<mode>): Don't use %x for memory operands.
6051
6052 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6053
6054         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
6055
6056 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6057
6058         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6059         Split integer shifts into shift_reg and bfm.
6060         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6061         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6062         (ror<mode>3_insn): Likewise.
6063         (<optab>si3_insn_uxtw): Likewise.
6064         (<optab><mode>3_insn): Change to rotate_imm.
6065         (extr<mode>5_insn_alt): Likewise.
6066         (extrsi5_insn_uxtw): Likewise.
6067         (extrsi5_insn_uxtw_alt): Likewise.
6068
6069 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6070
6071         * doc/tm.texi: Regenerate.
6072         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
6073         (TARGET_INVALID_RETURN_TYPE): Remove.
6074         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
6075         TARGET_INVALID_RETURN_TYPE.
6076         * target.def (invalid_parameter_type): Remove.
6077         (invalid_return_type): Remove.
6078
6079 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6080
6081         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
6082         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
6083         calls from thunk.
6084         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
6085         gimple body.
6086         (preserve_function_body_p): No need to preserve function body
6087         * cif-codes.def (CIF_THUNK): Remove.
6088         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
6089
6090 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6091
6092         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
6093
6094 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6095
6096         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
6097         for thunks.
6098
6099 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6100
6101         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
6102         (inline_small_functions): Do not look for function symbol when
6103         resetting caches.
6104
6105 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6106
6107         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6108         of inline thunks
6109
6110 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6111             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6112             Jiong Wang  <jiong.wang@arm.com>
6113
6114         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6115         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6116         Define __ARM_FP16_ARGS when appropriate.
6117         * config/arm/arm.c (arm_invalid_parameter_type): Remove
6118         declaration.
6119         (arm_invalid_return_type): Likewise.
6120         (TARGET_INVALID_PARAMETER_TYPE): Remove.
6121         (TARGET_INVALID_RETURN_TYPE): Remove.
6122         (aapcs_vfp_sub_candidate): Allow HFmode.
6123         (aapcs_vfp_allocate): Add comment.  Support HFmode.
6124         (aapcs_vfp_allocate_return_reg): Likewise.
6125         (struct aapcs_cp_arg_layout): Slightly reword comments for
6126         is_return_candidate and allocate_return_reg.
6127         (output_mov_vfp): Update assert.
6128         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6129         condition.
6130         (arm_invalid_parameter_type): Remove.
6131         (amr_invalid_return_type): Remove.
6132         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6133         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6134         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6135
6136 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6137
6138         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6139         * config/aarch64/arch64-protos.h
6140         (aarch64_legitimize_reload_address): Remove.
6141         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6142         Remove.
6143
6144 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6145
6146         * configure.ac: Add ACX_NONCANONICAL_HOST.
6147         * configure: Regenerate.
6148         * Makefile.in: Set host_noncanonical.
6149
6150 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
6151
6152         PR target/71097
6153         * config/i386/i386.md (*movtf_internal): Before register allocation,
6154         do not allow FP constants for CM_MEDIUM memory model, allow only
6155         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6156         (*movxf_internal): Ditto.
6157         (*movdf_internal): Ditto.
6158         (*movsf_internal): Ditto.
6159
6160 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6161
6162         PR rtl-optimization/67483
6163         * combine.c (make_compound_operation): Don't call extract_left_shift
6164         with negative shift amounts.
6165
6166 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
6167
6168         PR bootstrap/71071
6169         * fold-const.c (fold_checksum_tree): Allow modification
6170         of TYPE_ALIAS_SET during folding.
6171
6172         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6173         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6174         (ix86_split_to_parts): Likewise.  Fix up formatting.
6175
6176 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6179         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6180         printf format.
6181
6182 2016-05-13  Nathan Sidwell  <nathan@acm.org>
6183
6184         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6185         (nvptx_name_replacement): Delete.
6186         (write_fn_proto, write_fn_proto_from_insn,
6187         nvptx_output_call_insn): Remove nvptx_name_replacement call.
6188         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6189         * langhooks.c (add_builtin_funcction_common): Call
6190         targetm.mangle_decl_assembler_name.
6191
6192         * config/nvptx/nvptx.c (write_fn_proto): Handle
6193         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6194
6195 2016-05-13  Martin Liska  <mliska@suse.cz>
6196
6197         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6198         and PRIu64 in printf format.
6199
6200 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6201
6202         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6203         comment.
6204
6205 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6206
6207         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6208         Change --param max-completely-peeled-times to
6209         --param max-completely-peel-times in dump file printing.
6210
6211 2016-05-13  Richard Biener  <rguenther@suse.de>
6212
6213         PR tree-optimization/42587
6214         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
6215         (find_bswap_or_nop_1): Likewise.
6216         (bswap_replace): Likewise.
6217
6218 2016-05-13  Martin Liska  <mliska@suse.cz>
6219
6220         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
6221         Initialize a variable with default value.
6222
6223 2016-05-13  Martin Liska  <mliska@suse.cz>
6224
6225         * doc/invoke.texi: Enhance explanation of error recovery
6226         of sanitizers.
6227
6228 2016-05-13  Martin Liska  <mliska@suse.cz>
6229
6230         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
6231         (struct cost_pair): Change inv_expr_id (int) to inv_expr
6232         (iv_inv_expr_ent *).
6233         (struct iv_inv_expr_ent): Comment struct fields.
6234         (sort_iv_inv_expr_ent): New function.
6235         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
6236         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
6237         a hash_map between iv_inv_expr_ent and number of usages.
6238         (niter_for_exit): Fix coding style.
6239         (tree_ssa_iv_optimize_init): Use renamed variable.
6240         (determine_base_object): Fix coding style.
6241         (alloc_iv): Likewise.
6242         (find_interesting_uses_outside): Likewise.
6243         (add_candidate_1): Likewise.
6244         (add_standard_iv_candidates): Likewise.
6245         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
6246         (prepare_decl_rtl): Fix coding style.
6247         (get_address_cost): Likewise.
6248         (get_shiftadd_cost): Likewise.
6249         (force_expr_to_var_cost): Likewise.
6250         (compare_aff_trees): Likewise.
6251         (get_expr_id): Restructure the function.
6252         (get_loop_invariant_expr_id): Renamed to
6253         get_loop_invariant_expr.
6254         (get_computation_cost_at): Replace usage of inv_expr_id with
6255         inv_expr.
6256         (get_computation_cost): Likewise.
6257         (determine_group_iv_cost_generic): Likewise.
6258         (determine_group_iv_cost_address): Likewise.
6259         (iv_period): Fix coding style.
6260         (iv_elimination_compare_lt): Likewise.
6261         (may_eliminate_iv): Likewise.
6262         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6263         inv_expr.
6264         (determine_group_iv_costs): Dump invariant expressions.
6265         (iv_ca_recount_cost): Use the newly added hash_map.
6266         (iv_ca_set_remove_invariants): Fix coding style.
6267         (iv_ca_set_add_invariants): Fix coding style.
6268         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6269         invariants.
6270         (iv_ca_set_cp): Likewise.
6271         (iv_ca_new): Initialize the newly added hash_map and remove
6272         initialization of fields.
6273         (iv_ca_free): Delete the hash_map.
6274         (iv_ca_dump): Dump invariant expressions.
6275         (iv_ca_extend): Fix coding style.
6276         (try_add_cand_for): Likewise.
6277         (create_new_ivs): Dump information about # of avg iterations and
6278         # of used invariant expressions.
6279         (rewrite_use_compare): Fix coding style.
6280         (free_loop_data): Set default value for max_inv_expr_id.
6281
6282 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6283
6284         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6285         returned value cse_cfg_altered computation.
6286         (rest_of_handle_cse2): Likewise.
6287         (rest_of_handle_cse_after_global_opts): Likewise.
6288
6289 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6290
6291         PR target/53440
6292         * config/arm/arm.c (arm32_output_mi_thunk): New.
6293         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6294         to split Thumb1 vs TARGET_32BIT functionality.
6295         (arm_thumb1_mi_thunk): New.
6296
6297 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6298
6299         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6300         to true.
6301
6302 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6303
6304         PR target/71080
6305         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6306
6307 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6308
6309         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6310         (expand_builtin_trap): Emit a regular call.
6311         (set_builtin_user_assembler_name): Remove obsolete cases.
6312         * dse.c (scan_insn): Adjust.
6313         * except.c: Include calls.h.
6314         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6315         emit a regular call to setjmp.
6316         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6317         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6318         (emit_block_move_via_libcall): Delete.
6319         (block_move_fn): Delete.
6320         (init_block_move_fn): Likewise.
6321         (emit_block_move_libcall_fn): Likewise.
6322         (emit_block_op_via_libcall): New function.
6323         (set_storage_via_libcall): Tidy up and use memset builtin.
6324         (block_clear_fn): Delete.
6325         (init_block_clear_fn): Likewise.
6326         (clear_storage_libcall_fn): Likewise.
6327         (expand_assignment): Call emit_block_move_via_libcall.
6328         Do not include gt-expr.h.
6329         * expr.h (emit_block_op_via_libcall): Declare.
6330         (emit_block_copy_via_libcall): New inline function.
6331         (emit_block_move_via_libcall): Likewise.
6332         (emit_block_comp_via_libcall): Likewise.
6333         (block_clear_fn): Delete.
6334         (init_block_move_fn): Likewise.
6335         (init_block_clear_fn): Likewise.
6336         (emit_block_move_via_libcall): Likewise.
6337         (set_storage_via_libcall): Add default parameter value.
6338         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6339         (abort_libfunc): Delete.
6340         (memcpy_libfunc): Likewise.
6341         (memmove_libfunc): Likewise.
6342         (memcmp_libfunc): Likewise.
6343         (memset_libfunc): Likewise.
6344         (setbits_libfunc): Likewise.
6345         (setjmp_libfunc): Likewise.
6346         (longjmp_libfunc): Likewise.
6347         (profile_function_entry_libfunc): Likewise.
6348         (profile_function_exit_libfunc): Likewise.
6349         (gcov_flush_libfunc): Likewise.
6350         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6351         and DECL_VISIBILITY on the declaration.
6352         (init_optabs): Do not initialize obsolete libfuncs.
6353         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6354         * tree-core.h (ECF_RET1): Define.
6355         (ECF_TM_PURE): Adjust.
6356         (ECF_TM_BUILTIN): Likewise.
6357         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6358         (build_common_builtin_nodes): Initialize abort builtin.
6359         Add ECF_RET1 on memcpy, memmove and memset builtins.
6360         Pass final flags for alloca and alloca_with_align builtins.
6361         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6362         obsolete builtins.
6363         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6364         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6365         set_storage_via_libcall and call emit_block_copy_via_libcall.
6366
6367 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6368
6369         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6370         DImode before it is passed to ix86_output_call_operand.
6371         (*call_value_got_x32): Ditto for operand 1.
6372
6373 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6374
6375         PR rtl-optimization/70904
6376         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6377         reload for wide mode.
6378
6379 2016-05-12  Marek Polacek  <polacek@redhat.com>
6380
6381         PR c/70756
6382         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6383         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6384         * langhooks.h (incomplete_type_error): Likewise.
6385         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6386         parameter, pass it down to incomplete_type_error.
6387         * tree.h (size_in_bytes): New inline overload.
6388         (size_in_bytes_loc): Renamed from size_in_bytes.
6389
6390 2016-05-12  Richard Biener  <rguenther@suse.de>
6391
6392         PR tree-optimization/71059
6393         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6394         nary before looking up or entering the expression into the VN
6395         hashes.
6396         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6397         Make sure to re-use NARYs without result as inserted by
6398         phi-translation.
6399
6400 2016-05-12  Richard Biener  <rguenther@suse.de>
6401
6402         PR tree-optimization/71062
6403         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6404         field.
6405         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6406         vars_contains_restrict if the var is a restrict tag.
6407         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
6408         do not disambiguate pointers against it.
6409         (dump_points_to_solution): Re-structure and adjust for new
6410         vars_contains_restrict flag.
6411         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
6412
6413 2016-05-12  Martin Liska  <mliska@suse.cz>
6414
6415         * doc/invoke.texi: Explain connection between
6416         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
6417
6418 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6419
6420         PR tree-optimization/71006
6421         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6422         consider COND_EXPR as a mask producer.
6423
6424 2016-05-12  Marek Polacek  <polacek@redhat.com>
6425
6426         PR driver/71063
6427         * opts.c (common_handle_option): Detect missing argument for --help^.
6428
6429 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6430
6431         PR target/70830
6432         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
6433         when popping the PC and within an interrupt handler routine.
6434         Add missing tab to output of "ldmfd".
6435         (output_return_instruction): Output LDMFD with SP update rather
6436         than POP when returning from interrupt handler.
6437
6438 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
6439
6440         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
6441         TARGET_64BIT && TARGET_AVX512DQ.
6442         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
6443         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
6444         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
6445         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
6446         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
6447         (*vec_extractv4si_zext): Add avx512dq alternative.
6448         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
6449         use v instead of x constraint in other alternatives where possible.
6450
6451         * config/i386/sse.md (sse2_loadld): Use v instead of x
6452         constraint in alternatives 0,1,4.
6453
6454         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
6455         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
6456         v constraints instead of x and <pinsr_evex_isa> isa attribute.
6457
6458         PR target/71019
6459         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
6460         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
6461         is not emitted unless TARGET_AVX512BW.
6462         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
6463         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
6464         for the result operand.
6465
6466         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
6467         constraint instead of x in avx alternatives.  Use maybe_evex instead
6468         of vex prefix.
6469
6470         * config/i386/constraints.md (Yv): New constraint.
6471         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
6472         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
6473         * config/i386/i386.md (avx512fvecmode): New mode attr.
6474         (*pushtf): Use v constraint instead of x.
6475         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
6476         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
6477         (*absneg<mode>2): Use Yv constraint instead of x constraint.
6478         (*absnegtf2_sse): Likewise.
6479         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
6480         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
6481         avx512f alternatives.
6482         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
6483
6484 2016-05-12  Richard Biener  <rguenther@suse.de>
6485
6486         PR tree-optimization/71060
6487         * tree-data-ref.c (initialize_data_dependence_relation): Do not
6488         require exact match of DR_BASE_OBJECT but only matching address and
6489         type.
6490
6491 2016-05-12  Richard Biener  <rguenther@suse.de>
6492
6493         PR tree-optimization/70986
6494         * cfganal.c: Include cfgloop.h.
6495         (dfs_find_deadend): Prefer to take edges exiting loops.
6496
6497 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6498
6499         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
6500         compile and run time.
6501
6502 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6503
6504         PR c/43651
6505         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
6506
6507 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
6508
6509         * config/i386/i386.c (legitimize_pic_address): Use
6510         copy_to_suggested_reg instead of gen_movsi.
6511
6512 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6513
6514         * config/rs6000/predicates.md (quad_memory_operand): Move most of
6515         the code into quad_address_p and call it to share code with
6516         vsx_quad_dform_memory_operand.
6517         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
6518         d-form support.
6519         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
6520         bit instead of being a separate word.  Split -mpower9-dform into
6521         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6522         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
6523         for the register class supporting 128-bit quad word memory offsets.
6524         (mode_supports_vsx_dform_quad): Helper function to return if the
6525         register class uses quad word memory offsets.
6526         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
6527         (rs6000_debug_reg_global): Always print if we are using LRA or not.
6528         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
6529         instructions are enabled, set up the appropriate addr_masks for
6530         128-bit types.
6531         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
6532         -mpower9-dform-scalar, instead of -mpower9-dform.
6533         (rs6000_option_override_internal): Split -mpower9-dform into two
6534         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
6535         -mpower9-dform switch sets or clears both.  If we are not using
6536         the LRA register allocator, do not enable -mpower9-dform-vector by
6537         default.  If we are using LRA, enable -mpower9-dform-vector and
6538         -mvsx-timode if it is appropriate.  Issue a warning if either
6539         -mpower9-dform-vector or -mvsx-timode are explicitly used without
6540         enabling LRA.
6541         (quad_address_offset_p): New helper function to return if the
6542         offset is legal for quad word memory instructions.
6543         (quad_address_p): New function to determin if GPR or vector
6544         register quad word memory addresses are legal.
6545         (mem_operand_gpr): Validate quad word address offsets.
6546         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
6547         d-form (register + offset) instructions.
6548         (offsettable_ok_by_alignment): Likewise.
6549         (rs6000_legitimate_offset_address_p): Likewise.
6550         (legitimate_lo_sum_address_p): Likewise.
6551         (rs6000_legitimize_address): Likewise.
6552         (rs6000_legitimize_reload_address): Add more debug statements for
6553         -mdebug=addr.
6554         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
6555         d-form instructions.
6556         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
6557         d-form instructions.  Distinguish different cases in debug
6558         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
6559         d-form instructions.
6560         (rs6000_preferred_reload_class): Likewise.
6561         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
6562         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
6563         of the ISA 2.06 indexed memory instructions.
6564         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
6565         use them to save/restore the saved vector registers instead of
6566         using Altivec instructions.
6567         (rs6000_emit_epilogue): Likewise.
6568         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
6569         (rs6000_opt_masks): Split -mpower9-dform into
6570         -mpower9-dform-scalar and -mpower9-dform-vector.
6571         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
6572         was not selected.
6573         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
6574         ISA 3.0 vector indexed memory instructions, and fold the code into
6575         the normal mov<mode> patterns.
6576         (p9_vecstore_<mode>): Likewise.
6577         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
6578         instructions.
6579         (vsx_movti_64bit): Likewise.
6580         (vsx_movti_32bit): Likewise.
6581         * config/rs6000/constraints.md (wO constraint): New constraint for
6582         ISA 3.0 vector d-form support.
6583         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
6584         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
6585         include -mpower9-dform-vector until we switch over to LRA.
6586         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
6587         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6588         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
6589         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
6590         for -mpower9-dform and -mlra.
6591         * doc/md.texi (wO constraint): Document wO constraint.
6592
6593 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
6594
6595         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
6596         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
6597         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
6598         Move handling of non-insn arguments inline into the sole user:
6599         (output_trans_func): ...here.
6600         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
6601         in emitted function prototype.
6602         (output_internal_insn_latency_func): Ditto.  Simplify.
6603         (output_internal_maximal_insn_latency_func): Ditto.  Delete
6604         always-unused argument.
6605         (output_insn_latency_func): Ditto.
6606         (output_maximal_insn_latency_func): Ditto.
6607
6608 2016-05-11  Richard Biener  <rguenther@suse.de>
6609
6610         PR tree-optimization/71055
6611         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
6612         sth with precision not equal to access size verify we don't chop
6613         off bits.
6614
6615 2016-05-11  Richard Biener  <rguenther@suse.de>
6616
6617         PR debug/71057
6618         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
6619         (dwarf2out_finish): Move retry_incomplete_types call ...
6620         (dwarf2out_early_finish): ... here.
6621
6622 2016-05-11  Richard Biener  <rguenther@suse.de>
6623
6624         PR middle-end/71002
6625         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
6626         if the langhook insists on it.
6627         * fold-const.c (make_bit_field_ref): Add arg for the original
6628         reference and preserve its alias-set.
6629         (decode_field_reference): Take exp by reference and adjust it
6630         to the original memory reference.
6631         (optimize_bit_field_compare): Adjust callers.
6632         (fold_truth_andor_1): Likewise.
6633         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
6634
6635 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
6636
6637         PR middle-end/70807
6638         * cfgrtl.h (delete_insn_and_edges): Now return bool.
6639         * cfgrtl.c (delete_insn_and_edges): Likewise.
6640         * config/i386/i386.c (convert_scalars_to_vector): Remove
6641         redundant code.
6642         * cse.c (cse_insn): Compute cse_cfg_altered.
6643         (delete_trivially_dead_insns): Likewise.
6644         (cse_cc_succs): Likewise.
6645         (rest_of_handle_cse): Free dominance info if required.
6646         (rest_of_handle_cse2): Likewise.
6647         (rest_of_handle_cse_after_global_opts): Likewise.
6648
6649 2016-05-11  Alan Modra  <amodra@gmail.com>
6650
6651         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
6652         abi_v4_pass_in_fpr): New functions.
6653         (rs6000_function_arg_boundary): Exclude complex IBM long double
6654         from 64-bit alignment when ABI_V4.
6655         (rs6000_function_arg, rs6000_function_arg_advance_1,
6656         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
6657
6658 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
6659
6660         PR rtl-optimization/71028
6661         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
6662         jump with just a return in the fallthrough block if the branch
6663         block contains just a return as well.
6664
6665 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
6666
6667         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
6668         * match.pd ((X & Y) ^ Y): ... this.
6669         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
6670         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
6671
6672 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6673
6674         * read-md.c (require_char_ws): New function.
6675         (read_string): Simplify using require_char_ws.
6676         (handle_constants): Likewise.
6677         (handle_enum): Likewise.
6678         (handle_file): Likewise.
6679         * read-md.h (require_char_ws): New declaration.
6680         * read-rtl.c (read_conditions): Simplify using require_char_ws.
6681         (read_mapping): Likewise.
6682         (read_rtx_code): Likewise.
6683         (read_nested_rtx): Likewise.
6684
6685 2016-05-10  James Norris  <jnorris@codesourcery.com>
6686
6687         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
6688         if offloading is enabled and -fopenacc or -fopenmp is specified.
6689         (CRTOFFLOADEND): Likewise.
6690         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
6691         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
6692
6693 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
6694
6695         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
6696         gotoff_operand code paths.  Use copy_to_suggested_regs and
6697         expand_simple_binop where appropriate.  Cleanup.
6698
6699 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6700
6701         PR target/70799
6702         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
6703         integer constants.
6704         (dimode_scalar_chain::vector_const_cost): New.
6705         (dimode_scalar_chain::compute_convert_gain): Handle constants.
6706         (dimode_scalar_chain::convert_op): Likewise.
6707         (dimode_scalar_chain::convert_insn): Likewise.
6708
6709 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6710
6711         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
6712         unary operation, not a binary one.
6713
6714 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6715
6716         PR middle-end/70877
6717         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6718         calls with type casted fndecl.
6719
6720 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6721
6722         PR tree-optimization/70786
6723         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6724         * calls.c (initialize_argument_information): Bind bounds
6725         with corresponding args passed by reference.
6726
6727 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
6728
6729         PR target/70927
6730         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
6731         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
6732         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
6733         accordingly.
6734
6735 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6736
6737         PR target/70963
6738         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6739         code for a zero scale factor.
6740         (vsx_xvcvdpuxds_scale): Likewise.
6741
6742 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6743
6744         * diagnostic-show-locus.c (layout::layout): Call show_ruler
6745         if show_ruler_p was set on the context.
6746         (layout::show_ruler): New method.
6747         * diagnostic.h (struct diagnostic_context): Add field
6748         "show_ruler_p".
6749
6750 2016-05-10  Richard Biener  <rguenther@suse.de>
6751
6752         PR tree-optimization/71039
6753         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
6754         (chk_uses): New function.
6755         (propagate_with_phi): Verify we can safely replicate the lhs of an
6756         aggregate assignment on all incoming edges.
6757
6758 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
6759
6760         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
6761         Forward declare.
6762         (rx_atomic_sequence): New class.
6763         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
6764         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
6765         non-inline.
6766         (rx_atomic_sequence::rx_atomic_sequence,
6767         rx_atomic_sequence::~rx_atomic_sequence): New functions.
6768         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
6769         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
6770         CTRLREG_INTB): New constants.
6771         (FETCHOP): New code iterator.
6772         (fethcop_name, fetchop_name2): New iterator code attributes.
6773         (QIHI): New mode iterator.
6774         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
6775         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
6776         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
6777
6778 2016-05-10  Martin Liska  <mliska@suse.cz>
6779
6780         * tree-inline.c (remap_dependence_clique): Do not remap
6781         debugging statements.
6782
6783 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6784
6785         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6786         ("*fixuns_truncdfdi2_z13")
6787         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6788         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6789         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6790
6791 2016-05-10  Richard Biener  <rguenther@suse.de>
6792
6793         PR tree-optimization/70497
6794         PR tree-optimization/28367
6795         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
6796         split out from ...
6797         (visit_reference_op_load): ... here.
6798         (vn_reference_lookup_3): Use it to handle subreg-like accesses
6799         with simplified BIT_FIELD_REFs.
6800         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
6801         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
6802         correctly.
6803
6804 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6805
6806         * dwarf2out.c (add_abstract_origin_attribute): Adjust
6807         documentation comment.  For BLOCK nodes, add a
6808         DW_AT_abstract_origin attribute that points to the DIE generated
6809         for the origin BLOCK.
6810         (gen_lexical_block_die): Call add_abstract_origin_attribute for
6811         blocks from inlined functions.
6812
6813 2016-05-10  Alan Modra  <amodra@gmail.com>
6814
6815         PR target/70947
6816         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
6817         regrename modifying insns saving lr before __morestack call.
6818         * config/rs6000/rs6000.md (split_stack_return): Similarly for
6819         insns restoring lr after __morestack call.
6820
6821 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
6822
6823         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
6824         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
6825         expanders.
6826         * config/i386/sse.md (vec_interleave_high<mode>,
6827         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
6828         <avx512>_vpermt2var<mode>3_maskz): Likewise.
6829
6830 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6831
6832         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
6833         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
6834         parallel reassociation for power8 and forward.
6835
6836 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
6837
6838         * config/i386/i386.md (absneg splitters with general regs): Use
6839         general_reg_operand predicate.
6840         (btsq peephole2): Use x86_64_immediate_operand to check if new
6841         value is suitable for immediate operand.  Generate emitted insn
6842         using RTL expressions.
6843         (btcq peephole2): Ditto.
6844         (btrq peephole2): Ditto.  Generate correct immediate operand
6845         for AND masking.
6846
6847 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6848
6849         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
6850         bitpos.
6851
6852 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6853
6854         * tree-affine.c (wide_int_constant_multiple_p): Add missing
6855         pointer dereference.
6856
6857 2016-05-09  Richard Biener  <rguenther@suse.de>
6858
6859         PR tree-optimization/70985
6860         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
6861         op0 isn't a gimple register.
6862
6863 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
6864
6865         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
6866         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
6867         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
6868         (i6400_fpu_mult): New cpu units.
6869         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
6870         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
6871         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
6872         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
6873         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
6874         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
6875         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
6876         (i6400_msa_long_float4, i6400_msa_long_float5)
6877         (i6400_msa_long_float8, i6400_msa_fdiv_df)
6878         (i6400_msa_fdiv_sf): New reservations.
6879         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
6880         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
6881         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
6882         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
6883         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
6884         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
6885         (msa_short_cmp, msa_short_float2, msa_short_logic3)
6886         (msa_short_store4, msa_long_load, msa_short_store)
6887         (msa_long_logic, msa_long_float2, msa_long_float4)
6888         (msa_long_float5, msa_long_float8, msa_long_mult)
6889         (msa_long_fdiv, msa_long_div): New reservations.
6890
6891 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
6892             Sameera Deshpande  <sameera.deshpande@imgtec.com>
6893             Matthew Fortune  <matthew.fortune@imgtec.com>
6894             Graham Stott  <graham.stott@imgtec.com>
6895             Chao-ying Fu  <chao-ying.fu@imgtec.com>
6896
6897         * config.gcc: Add MSA header file for mips*-*-* target.
6898         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
6899         (Ubv8i, Urv8):  New constraints.
6900         * config/mips/mips-ftypes.def: Add function types for MSA
6901         builtins.
6902         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
6903         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
6904         * config/mips/mips-msa.md: New file.
6905         * config/mips/mips-protos.h
6906         (mips_split_128bit_const_insns): New prototype.
6907         (mips_msa_idiv_insns): Likewise.
6908         (mips_split_128bit_move): Likewise.
6909         (mips_split_128bit_move_p): Likewise.
6910         (mips_split_msa_copy_d): Likewise.
6911         (mips_split_msa_insert_d): Likewise.
6912         (mips_split_msa_fill_d): Likewise.
6913         (mips_expand_msa_branch): Likewise.
6914         (mips_const_vector_same_val_p): Likewise.
6915         (mips_const_vector_same_bytes_p): Likewise.
6916         (mips_const_vector_same_int_p): Likewise.
6917         (mips_const_vector_shuffle_set_p): Likewise.
6918         (mips_const_vector_bitimm_set_p): Likewise.
6919         (mips_const_vector_bitimm_clr_p): Likewise.
6920         (mips_msa_vec_parallel_const_half): Likewise.
6921         (mips_msa_output_division): Likewise.
6922         (mips_ldst_scaled_shift): Likewise.
6923         (mips_expand_vec_cond_expr): Likewise.
6924         * config/mips/mips.c (enum mips_builtin_type): Add
6925         MIPS_BUILTIN_MSA_TEST_BRANCH.
6926         (mips_gen_const_int_vector_shuffle): New prototype.
6927         (mips_const_vector_bitimm_set_p): New function.
6928         (mips_const_vector_bitimm_clr_p): Likewise.
6929         (mips_const_vector_same_val_p): Likewise.
6930         (mips_const_vector_same_bytes_p): Likewise.
6931         (mips_const_vector_same_int_p): Likewise.
6932         (mips_const_vector_shuffle_set_p): Likewise.
6933         (mips_symbol_insns): Forbid loading symbols via immediate for
6934         MSA.
6935         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
6936         stores.
6937         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
6938         MSA.
6939         (mips_lx_address_p): Add support load indexed address for MSA.
6940         (mips_address_insns): Add calculation of instructions needed for
6941         stores and loads for MSA.
6942         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
6943         CONST_VECTOR for MSA and let it fall through.
6944         (mips_ldst_scaled_shift): New function.
6945         (mips_subword_at_byte): Likewise.
6946         (mips_msa_idiv_insns): Likewise.
6947         (mips_legitimize_move): Validate MSA moves.
6948         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
6949         calculation of costs for MSA division.
6950         (mips_split_move_p): Check if MSA moves need splitting.
6951         (mips_split_move): Split MSA moves if necessary.
6952         (mips_split_128bit_move_p): New function.
6953         (mips_split_128bit_move): Likewise.
6954         (mips_split_msa_copy_d): Likewise.
6955         (mips_split_msa_insert_d): Likewise.
6956         (mips_split_msa_fill_d): Likewise.
6957         (mips_output_move): Handle MSA moves.
6958         (mips_expand_msa_branch): New function.
6959         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
6960         Reinstate 'y' modifier.
6961         (mips_file_start): Add MSA .gnu_attribute.
6962         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
6963         FPRs.
6964         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
6965         (mips_class_max_nregs): Add register size for MSA supported mode.
6966         (mips_cannot_change_mode_class): Allow conversion between MSA
6967         vector modes and TImode.
6968         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
6969         instruction.
6970         (mips_secondary_reload_class): Force MSA loads/stores via memory.
6971         (mips_preferred_simd_mode): Add preffered modes for MSA.
6972         (mips_vector_mode_supported_p): Add MSA supported modes.
6973         (mips_autovectorize_vector_sizes): New function.
6974         (mips_msa_output_division): Likewise.
6975         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
6976         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
6977         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
6978         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
6979         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
6980         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
6981         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
6982         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
6983         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
6984         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
6985         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
6986         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
6987         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
6988         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
6989         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
6990         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
6991         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
6992         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
6993         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
6994         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
6995         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
6996         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
6997         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
6998         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
6999         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
7000         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
7001         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
7002         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
7003         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
7004         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
7005         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
7006         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
7007         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
7008         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
7009         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
7010         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
7011         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
7012         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
7013         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
7014         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
7015         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
7016         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
7017         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
7018         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
7019         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7020         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7021         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7022         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7023         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7024         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7025         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7026         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7027         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
7028         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
7029         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
7030         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
7031         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
7032         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
7033         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
7034         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
7035         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
7036         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
7037         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
7038         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
7039         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
7040         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
7041         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
7042         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
7043         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
7044         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
7045         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
7046         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
7047         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
7048         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
7049         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
7050         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
7051         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
7052         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
7053         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
7054         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
7055         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
7056         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
7057         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
7058         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
7059         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
7060         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
7061         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
7062         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
7063         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
7064         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
7065         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
7066         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
7067         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
7068         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
7069         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
7070         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
7071         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
7072         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
7073         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
7074         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
7075         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
7076         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
7077         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
7078         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
7079         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
7080         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
7081         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
7082         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
7083         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
7084         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
7085         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
7086         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
7087         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
7088         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
7089         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
7090         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
7091         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
7092         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
7093         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
7094         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
7095         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
7096         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
7097         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
7098         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
7099         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
7100         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
7101         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
7102         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
7103         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
7104         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7105         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7106         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7107         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7108         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7109         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7110         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7111         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7112         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7113         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7114         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7115         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7116         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7117         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7118         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7119         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7120         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7121         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7122         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7123         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7124         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7125         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7126         move_v builtins.
7127         (mips_get_builtin_decl_index): New array.
7128         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7129         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7130         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7131         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7132         (mips_init_builtins): Initialize mips_get_builtin_decl_index
7133         array.
7134         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7135         hook.
7136         (mips_expand_builtin_insn): Prepare operands for
7137         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7138         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7139         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7140         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7141         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7142         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7143         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7144         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7145         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7146         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7147         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7148         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7149         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7150         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7151         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7152         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7153         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7154         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7155         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7156         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7157         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7158         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7159         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7160         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7161         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7162         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7163         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7164         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7165         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7166         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7167         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7168         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7169         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7170         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7171         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7172         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7173         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7174         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7175         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7176         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7177         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7178         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7179         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7180         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7181         These are set implicitly and an error is reported if overridden.
7182         (mips_expand_builtin_msa_test_branch): New function.
7183         (mips_expand_msa_shuffle): Likewise.
7184         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7185         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7186         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7187         (mips_expand_vec_unpack): Add support for MSA.
7188         (mips_expand_vector_init): Likewise.
7189         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7190         instead of const0_rtx.
7191         (mips_msa_vec_parallel_const_half): New function.
7192         (mips_gen_const_int_vector): Likewise.
7193         (mips_gen_const_int_vector_shuffle): Likewise.
7194         (mips_expand_msa_cmp): Likewise.
7195         (mips_expand_vec_cond_expr): Likewise.
7196         * config/mips/mips.h
7197         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7198         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7199         specified.
7200         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7201         (ISA_HAS_MSA): New macro.
7202         (UNITS_PER_MSA_REG): Likewise.
7203         (BITS_PER_MSA_REG): Likewise.
7204         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7205         (MSA_REG_FIRST): New macro.
7206         (MSA_REG_LAST): Likewise.
7207         (MSA_REG_NUM): Likewise.
7208         (MSA_REG_P): Likewise.
7209         (MSA_REG_RTX_P): Likewise.
7210         (MSA_SUPPORTED_MODE_P): Likewise.
7211         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7212         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7213         * config/mips/mips.md: Include mips-msa.md.
7214         (alu_type): Add simd_add.
7215         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
7216         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
7217         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
7218         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
7219         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
7220         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
7221         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
7222         simd_move, simd_load, simd_store.  Choose "multi" for moves
7223         for "qword_mode".
7224         (qword_mode): New attribute.
7225         (insn_count): Add instruction count for quad moves.
7226         Increase the count for MIPS SIMD division.
7227         (UNITMODE): Add UNITMODEs for vector types.
7228         (addsub): New code iterator.
7229         * config/mips/mips.opt (mmsa): New option.
7230         * config/mips/msa.h: New file.
7231         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
7232         specified.
7233         * config/mips/mti-linux.h: Likewise.
7234         * config/mips/predicates.md
7235         (const_msa_branch_operand): New constraint.
7236         (const_uimm3_operand): Likewise.
7237         (const_uimm4_operand): Likewise.
7238         (const_uimm5_operand): Likewise.
7239         (const_uimm8_operand): Likewise.
7240         (const_imm5_operand): Likewise.
7241         (aq10b_operand): Likewise.
7242         (aq10h_operand): Likewise.
7243         (aq10w_operand): Likewise.
7244         (aq10d_operand): Likewise.
7245         (const_m1_operand): Likewise.
7246         (reg_or_m1_operand): Likewise.
7247         (const_exp_2_operand): Likewise.
7248         (const_exp_4_operand): Likewise.
7249         (const_exp_8_operand): Likewise.
7250         (const_exp_16_operand): Likewise.
7251         (const_vector_same_val_operand): Likewise.
7252         (const_vector_same_simm5_operand): Likewise.
7253         (const_vector_same_uimm5_operand): Likewise.
7254         (const_vector_same_uimm6_operand): Likewise.
7255         (const_vector_same_uimm8_operand): Likewise.
7256         (par_const_vector_shf_set_operand): Likewise.
7257         (reg_or_vector_same_val_operand): Likewise.
7258         (reg_or_vector_same_simm5_operand): Likewise.
7259         (reg_or_vector_same_uimm6_operand): Likewise.
7260         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7261         section.
7262         * doc/invoke.texi (-mmsa): Document new option.
7263
7264 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7265
7266         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7267         * configure: Regenerate.
7268         * config.in: Regenerate.
7269         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7270         on -fvtable-verify.
7271         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7272         (ENDFILE_VTV_SPEC): Define.
7273
7274 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7275
7276         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7277         registers in all interrupt handlers if necessary.
7278         (rl78_option_override): Add warning.
7279         (MUST_SAVE_MDUC_REGISTERS): New macro.
7280         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7281         * config/rl78/rl78.c (check_mduc_usage): New function.
7282         (mduc_regs): New structure to hold MDUC register data.
7283         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7284         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7285         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7286         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7287         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7288         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7289
7290 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7291
7292         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7293         (tree-ssa-loop-niter.h): Ditto.
7294         (idx_within_array_bound, ref_within_array_bound): New functions.
7295         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7296         Factor out check on writable base object to ...
7297         (base_object_writable): ... here.
7298
7299 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7300
7301         * config/arm/arm.md (probe_stack): Add modes to set source
7302         and destination.
7303
7304 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7305
7306         * regrename.c (base_reg_class_for_rename): New static function.
7307         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7308
7309 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7310
7311         * cgraph.c (thunk_adjust): Export.
7312         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7313         * cgraphunit.c (thunk_adjust): Export.
7314         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7315         thunks.
7316         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7317         inlinable.
7318         * tree-inline.c (expand_call_inline): Expand thunks inline.
7319
7320 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7321
7322         PR target/70998
7323         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7324         (*sse2_vd_cvtss2sd): Ditto.
7325         * config/i386/i386.md
7326         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7327         Generate *sse2_vd_cvtsd2ss pattern.
7328         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7329         Generate *sse2_vd_cvtss2sd pattern.
7330
7331 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7332
7333         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7334         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7335         users.
7336
7337 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7338
7339         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7340         * config/sh/sh.c: Define and declare variables on first use throughout
7341         the file.
7342         (current_function_interrupt): Change to bool type.
7343         (frame_insn): Rename to emit_frame_insn and update users.
7344         (push_regs): Use bool for 'interrupt_handler' argument.
7345         (save_schedule_s): Remove.
7346         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7347         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7348         targetm.asm_out.unaligned_op.di.
7349         (gen_far_branch): Remove redundant forward declaration.
7350         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7351         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7352         (sh_set_return_address, sh_function_ok_for_sibcall,
7353         scavenge_reg): Update comments.
7354         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7355         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7356         (sh_attr_renesas_p): Remove unnecessary parentheses.
7357         (branch_dest): Simplify.
7358         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7359         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7360         (CUMULATIVE_ARGS): Change macro to typedef.
7361         (current_function_interrupt): Change to bool type.
7362         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7363         Surround with __cplusplus ifdef.
7364         (sh_compare_op0, sh_compare_op1): Remove.
7365         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7366
7367 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7368
7369         * config/arm/arm.md: (arch): Add neon.
7370         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7371         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7372         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7373         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7374         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7375         (thumb2_movdf_vfp): Likewise.
7376
7377 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7378
7379         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7380         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7381         (*andqi_1): Add preferred_for_speed attribute to disparage
7382         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7383         (*<code>qi_1): Ditto.
7384         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7385         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7386         (*ashlqi3_1): Ditto.
7387         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7388         Add preferred_for_size attribute to disparage alternative 0 and
7389         preferred_for_speed attribute to disparage alternative 1 for
7390         TARGET_PARTIAL_REG_STALL targets.
7391
7392 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7393
7394         PR tree-optimization/70956
7395         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7396         def.
7397
7398 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7399
7400         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
7401         * config/sh/sh.c (sh_cbranch_distance): Implement it.
7402         * config/sh/sh.md (branch_zero): Remove define_attr.
7403         (define_delay): Disable delay slot if branch distance is one insn.
7404
7405 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7406
7407         * config/i386/i386.md (LEAMODE): New mode attribute.
7408         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
7409         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
7410         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
7411         operand 2 predicate.
7412         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
7413         (*lea<mode>_general_3): Ditto.
7414         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
7415
7416 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7417
7418         * genmddump.c (main): Convert argv from char ** to const char **.
7419
7420 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7421
7422         * coretypes.h (OVERRIDE): New macro.
7423         (FINAL): New macro.
7424
7425 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7426
7427         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
7428         allow coalescing if the types are compatible.
7429
7430 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7431
7432         * pass_manager.h (pass_manager::register_pass_name): New method.
7433         (pass_manager::get_pass_by_name): New method.
7434         (pass_manager::create_pass_tab): New method.
7435         (pass_manager::m_name_to_pass_map): New field.
7436         * passes.c (name_to_pass_map): Delete global in favor of field
7437         "m_name_to_pass_map" of pass_manager.
7438         (register_pass_name): Rename from a function to...
7439         (pass_manager::register_pass_name): ...this method, updating
7440         for renaming of global "name_to_pass_map" to field
7441         "m_name_to_pass_map".
7442         (create_pass_tab): Rename from a function to...
7443         (pass_manager::create_pass_tab): ...this method, updating
7444         for renaming of global "name_to_pass_map" to field.
7445         (get_pass_by_name): Rename from a function to...
7446         (pass_manager::get_pass_by_name): ...this method.
7447         (enable_disable_pass): Convert use of get_pass_by_name to
7448         a method call, locating the pass_manager singleton.
7449
7450 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7451
7452         * genattr-common.c (main): Convert argv from char ** to const char **.
7453         * genattr.c (main): Likewise.
7454         * genattrtab.c (main): Likewise.
7455         * genautomata.c (initiate_automaton_gen): Likewise.
7456         (main): Likewise.
7457         * gencodes.c (main): Likewise.
7458         * genconditions.c (main): Likewise.
7459         * genconfig.c (main): Likewise.
7460         * genconstants.c (main): Likewise.
7461         * genemit.c (main): Likewise.
7462         * genenums.c (main): Likewise.
7463         * genextract.c (main): Likewise.
7464         * genflags.c (main): Likewise.
7465         * genmddeps.c (main): Likewise.
7466         * genopinit.c (main): Likewise.
7467         * genoutput.c (main): Likewise.
7468         * genpeep.c (main): Likewise.
7469         * genpreds.c (main): Likewise.
7470         * genrecog.c (main): Likewise.
7471         * gensupport.c (init_rtx_reader_args_cb): Likewise.
7472         (init_rtx_reader_args): Likewise.
7473         * gensupport.h (init_rtx_reader_args_cb): Likewise.
7474         (init_rtx_reader_args): Likewise.
7475         * gentarget-def.c (main): Likewise.
7476         * read-md.c (read_md_files): Likewise.
7477         * read-md.h (read_md_files): Likewise.
7478
7479 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7480
7481         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
7482         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
7483         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
7484         Remove unused predicate.
7485         (register_and_not_fp_reg_operand): Ditto.
7486
7487 2016-05-06  Martin Liska  <mliska@suse.cz>
7488
7489         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
7490         instead of vec as the vector is local to the function.
7491
7492 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7493
7494         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
7495         avx512bw alternative.
7496
7497         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
7498         before the ashr<mode>3 pattern.
7499
7500         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
7501         v instead of x in vex or maybe_vex alternatives, use
7502         maybe_evex instead of vex in prefix.
7503
7504         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
7505         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
7506         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
7507         in vex or maybe_vex alternatives, use maybe_evex instead of vex
7508         in prefix.
7509
7510         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
7511         v instead of x in vex or maybe_vex alternatives, use
7512         maybe_evex instead of vex in prefix.
7513
7514         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
7515         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
7516         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
7517         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
7518         alternatives, use maybe_evex instead of vex in prefix.
7519
7520         * config/i386/sse.md (vec_interleave_lowv4sf,
7521         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
7522         v instead of x in vex or maybe_vex alternatives, use
7523         maybe_evex instead of vex in prefix.
7524
7525         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
7526         v instead of x in vex or maybe_vex alternatives, use
7527         maybe_evex instead of vex in prefix.
7528
7529         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
7530         v constraint instead of x.
7531
7532 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7533
7534         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
7535         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
7536         equality first.
7537
7538 2016-05-06  Richard Biener  <rguenther@suse.de>
7539
7540         PR tree-optimization/70948
7541         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7542         Properly clobber all fields of va_list for __builtin_va_start.
7543
7544 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7545
7546         PR debug/70935
7547         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
7548         loop latch destination.
7549
7550 2016-05-06  Martin Liska  <mliska@suse.cz>
7551
7552         * tree-ssa-uninit.c: Apply manual changes
7553         to the GNU coding style.
7554         (prune_uninit_phi_opnds): Rename from
7555         prune_uninit_phi_opnds_in_unrealizable_paths.
7556
7557 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7558
7559         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
7560         mspace): Remove deprecated options.
7561         * doc/invoke.texi (SH options): Remove -mspace.
7562
7563 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7564
7565         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
7566
7567 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7568
7569         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
7570         corresponding combine split pattern.
7571
7572 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7573
7574         PR target/58219
7575         * config/sh/predicates.md (long_displacement_mem_operand): New.
7576         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
7577         Add movi20, movi20s alternatives.  Adjust length attribute for
7578         alternatives.
7579         (movsi_ie): Allow for any FPU.  Adjust length attribute for
7580         alternatives.
7581         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
7582         attribute for alternatives.
7583         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
7584         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
7585         length attribute for alternatives.
7586
7587 2016-05-06  Richard Biener  <rguenther@suse.de>
7588
7589         PR tree-optimization/70960
7590         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
7591
7592 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7593
7594         PR target/52933
7595         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
7596         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
7597
7598 2016-05-06  Marek Polacek  <polacek@redhat.com>
7599
7600         PR sanitizer/70875
7601         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
7602
7603 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7604
7605         PR target/54089
7606         * config/sh/sh.md (*rotcr): Add another variant.
7607
7608 2016-05-06  Richard Biener  <rguenther@suse.de>
7609
7610         PR middle-end/70931
7611         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
7612
7613 2016-05-06  Richard Biener  <rguenther@suse.de>
7614
7615         PR middle-end/70941
7616         * fold-const.c (split_tree): Always convert to the original type
7617         before negating.
7618
7619 2016-05-06  Richard Biener  <rguenther@suse.de>
7620
7621         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
7622         (fwprop_addr): Likewise.
7623
7624 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7625
7626         PR target/70873
7627         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
7628         New prototype.
7629         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
7630         * config/i386/i386.md (push mem splitter): Use find_constant_src in
7631         the splitter condition.
7632         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
7633         the splitter condition.
7634         (FP float_extend load splitter): Ditto.
7635
7636 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
7637
7638         * config/i386/i386.md (peehole2 patterns): Change true_regnum
7639         to REGNO in all peephole2 patterns.
7640         (post-reload splitters): Change true_regnum to REGNO in
7641         post-reload splitters.
7642         (zero_extend splitters): Use general_reg_operand and
7643         nonimmediate_gr_operand predicates.
7644
7645 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
7646
7647         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
7648         v constraint instead of x.
7649
7650 2016-05-05  Alan Modra  <amodra@gmail.com>
7651
7652         PR target/68662
7653         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7654         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
7655         TARGET_NO_FP_IN_TOC for -mrelocatable.
7656         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
7657         TARGET_RELOCATABLE test.
7658         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7659         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7660         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7661         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7662         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7663         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7664         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7665         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7666         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
7667         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7668         Likewise.
7669         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
7670         (rs6000_stack_info): Likewise.
7671         (rs6000_elf_asm_out_constructor): Likewise.
7672         (rs6000_elf_asm_out_destructor): Likewise.
7673         (rs6000_elf_declare_function_name): Likewise.
7674         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
7675         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
7676         Don't define.
7677
7678 2016-05-05  Alan Modra  <amodra@gmail.com>
7679
7680         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
7681
7682 2016-05-05  Alan Modra  <amodra@gmail.com>
7683
7684         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
7685         out-of-line gpr restore for one or two regs if that would add
7686         a save of lr.
7687
7688 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
7689
7690         PR target/70873
7691         * config/i386/i386.md
7692         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
7693         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
7694         as operand 0 predicate.
7695         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
7696         Ditto.
7697         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
7698         Ditto.  Emit the pattern using RTX.
7699
7700         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
7701         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
7702         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
7703         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
7704         Ditto.
7705         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
7706         sse_reg_operand as operand 0 predicate.
7707
7708         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
7709         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
7710         instead of gen_rtx_REG.
7711         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
7712         Ditto.
7713
7714 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7715
7716         * function.c (emit_use_return_register_into_block): Delete.
7717         (gen_return_pattern): Delete.
7718         (emit_return_into_block): Delete.
7719         (active_insn_between): Delete.
7720         (convert_jumps_to_returns): Delete.
7721         (emit_return_for_exit): Delete.
7722         (thread_prologue_and_epilogue_insns): Delete all code dealing with
7723         simple_return for shrink-wrapped blocks.
7724         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
7725         end of blocks that need one.
7726         (get_unconverted_simple_return): Delete.
7727         (convert_to_simple_return): Delete.
7728         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
7729         (convert_to_simple_return): Ditto.
7730
7731 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7732
7733         * cfgcleanup.c (bb_is_just_return): New function.
7734         (try_optimize_cfg): Simplify jumps to return, branches to return,
7735         and branches around return.
7736
7737 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7738
7739         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
7740         branch to a return.
7741
7742 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7743
7744         PR c++/70906
7745         PR c++/70933
7746         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
7747         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
7748         assert flags & OEP_HASH_CHECK, instead of asserting it
7749         never happens.  Handle TARGET_EXPR.
7750         * fold-const.c (operand_equal_p): For hash verification,
7751         or in OEP_HASH_CHECK into flags.
7752
7753 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7754
7755         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
7756         comment.
7757         (compute_samebase_partition_bases): Fix typo.
7758
7759 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7760
7761         * config/i386/sse.md (vec_interleave_highv8sf,
7762         vec_interleave_lowv8sf, vec_interleave_highv4df,
7763         vec_interleave_lowv4df): Remove constraints from expanders.
7764
7765         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
7766
7767 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7768
7769         * tree-inline.c (expand_call_inline): Fix path dealing with
7770         making lhs of call statement undefined.
7771
7772 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7773
7774         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7775         Check availability on NODE, too.
7776         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
7777         (cgraph_node::call_for_symbol_and_aliases): Likewise.
7778         (varpool_node::call_for_symbol_and_aliase): Likewise.
7779         * ipa-pure-const.c (add_new_function): Analyze all bodies.
7780         (propagate_pure_const): Propagate across interposable functions, too.
7781         (skip_function_for_local_pure_const): Do not skip interposable bodies
7782         with aliases.
7783         (pass_local_pure_const::execute): Update.
7784
7785 2016-05-04  Marek Polacek  <polacek@redhat.com>
7786
7787         * doc/invoke.texi: Document -Wdangling-else.
7788
7789 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7790
7791         * config.gcc: Error out when conflicting multilib is detected.  Do not
7792         loop over multilibs since no combination is legal.
7793
7794 2016-05-04  Alan Modra  <amodra@gmail.com>
7795
7796         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
7797         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
7798         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7799         Align .toc.
7800
7801 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
7802
7803         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
7804         Clean up p5600 comments.
7805
7806 2016-05-04  Richard Biener  <rguenther@suse.de>
7807
7808         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
7809         constructor simplifications.
7810         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
7811
7812 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
7813
7814         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
7815         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
7816         result.set_rtx is null instead of aborting.
7817         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
7818         Always enable.
7819         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
7820         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
7821         *mov<mode>_store_postinc): New patterns.
7822
7823 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
7824
7825         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
7826         as commutative.  Check both conversions are NOP.
7827         ((A & B) OP (C & B)): Remove.
7828
7829 2016-05-04  Alan Modra  <amodra@gmail.com>
7830
7831         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
7832
7833 2016-05-04  Alan Modra  <amodra@gmail.com>
7834
7835         PR target/70866
7836         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
7837         when cr2,3,4 are all fixed regs.
7838
7839 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
7840
7841         PR rtl-optimization/57193
7842         * opts.c (default_options_table): Revert OPT_frename_registers change.
7843         * doc/invoke.texi (-frename-registers, -O2): Likewise.
7844
7845 2016-05-03  Martin Sebor  <msebor@redhat.com>
7846
7847         PR c++/66561
7848         * builtins.c (fold_builtin_FILE): New function.
7849         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
7850         (fold_builtin_0): Call them.
7851         * gimplify.c (gimplify_call_expr): Remove the handling of
7852         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
7853
7854         PR c++/66561
7855         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
7856         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
7857         constants.
7858
7859         PR c++/66639
7860         * doc/extend.texi (Function Names as Strings): Update __func__,
7861         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
7862         constants.
7863
7864 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7865             Richard Biener  <rguenther@suse.de>
7866
7867         PR tree-optimization/70916
7868         * tree-if-conv.c: Include cfganal.h.
7869         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
7870         and remove_fake_exit_edges around the optimization pass.
7871
7872 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
7873
7874         * cgraph.c (symbol_table::create_edge): Set inline_failed.
7875         (cgraph_edge::make_direct): Likewise.
7876         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
7877         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7878         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
7879         (CIF_THUNK): New code.
7880         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
7881         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
7882         (compute_inline_parameters): Set inline_failed for thunks.
7883         (inline_analyze_function): Cleanup.
7884         * ipa-inline.c (can_inline_edge_p): Do not deal with
7885         call_stmt_cannot_inline_p.
7886         (can_early_inline_edge_p): Likewise.
7887         (early_inliner): Initialize inline_failed.
7888         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
7889
7890 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
7891
7892         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
7893         from nonimm_ssenomem_operand.
7894         (nonimm_ssenomem_operand): New predicate.
7895         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
7896         as operand 0 predicate.
7897         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
7898         Disable unsupported alternatives using "enabled" attribute.
7899         Use register_ssemem_operand as operand 0 predicate.
7900         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
7901
7902 2016-05-03  Marek Polacek  <polacek@redhat.com>
7903
7904         PR c/70859
7905         * input.c (expansion_point_location): New function.
7906         * input.h (expansion_point_location): Declare.
7907
7908 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7909
7910         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
7911         occurence with frame_offset_ ones.
7912
7913 2016-05-03  Alan Modra  <amodra@gmail.com>
7914
7915         PR rtl-optimization/70890
7916         * ira.c (combine_and_move_insns): When moving def_insn, remove
7917         equivs on use_insn.
7918
7919 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7920
7921         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
7922         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
7923         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
7924         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
7925
7926 2016-05-03  Alan Modra  <amodra@gmail.com>
7927
7928         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
7929         for SAVE_MULTIPLE/STORE_MULTIPLE.
7930
7931 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7932
7933         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
7934         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
7935
7936 2016-05-03  Richard Biener  <rguenther@suse.de>
7937
7938         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
7939         default true.
7940         (gimplify_arg): Likewise.
7941         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
7942         re-writing the result to a decl if required.
7943         (internal_get_tmp_var): Add allow_ssa parameter
7944         and override into_ssa with it.
7945         (get_formal_tmp_var): Adjust.
7946         (get_initialized_tmp_var): Add allow_ssa parameter.
7947         (gimplify_arg): Add allow_ssa parameter and avoid generating
7948         SSA names for the result false.
7949         (gimplify_call_expr): If the call may return twice do not
7950         gimplify parameters into SSA.
7951         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
7952         (gimplify_modify_expr): Adjust assert.  For noreturn calls
7953         with a SSA name LHS adjust its def.
7954         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
7955         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
7956         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
7957         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
7958         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
7959         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
7960         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
7961         (optimize_target_teams): Do not allow SSA names for clause operands.
7962         (gimplify_expr): Likewise for where we mark the result addressable.
7963         * passes.def (pass_init_datastructures): Remove.
7964         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
7965         (rewrite_stmt): Likewise.
7966         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
7967         (replace_locals_op): Replace SSA names.
7968         (copy_gimple_seq_and_replace_locals): Init src_cfun.
7969         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
7970         * cgraph.c (release_function_body): Free CFG annotations only
7971         when we have a CFG.  Simplify.
7972         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7973         force_gimple_operand instead of get_initialized_tmp_var.
7974         * tree-pass.h (make_pass_init_datastructures): Remove.
7975         * tree-ssa.c (execute_init_datastructures): Remove.
7976         (pass_data_init_datastructures): Likewise.
7977         (class pass_init_datastructures): Likewise.
7978         (make_pass_init_datastructures): Likewise.
7979         * omp-low.c (create_omp_child_function): Init SSA data structures.
7980         (grid_expand_target_grid_body): Likewise.
7981         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
7982         name before adding it to names_to_release.
7983         (remove_bb): Always release SSA defs.
7984         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
7985         before dereferencing it.
7986         * cgraphunit.c (init_lowered_empty_function): Always
7987         int SSA data structures.
7988         * tree-ssanames.c (release_defs): Remove assert that we are in
7989         SSA form.
7990         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
7991
7992 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7993             Uros Bizjak  <ubizjak@gmail.com>
7994
7995         PR rtl-optimization/70467
7996         * config/i386/predicates.md (x86_64_hilo_int_operand,
7997         x86_64_hilo_general_operand): New predicates.
7998         * config/i386/constraints.md (Wd): New constraint.
7999         * config/i386/i386.md (mode attr di): Use Wd instead of e.
8000         (general_hilo_operand): New mode attr.
8001         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
8002         instead of <general_operand>.
8003         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
8004         x86_64_hilo_general_operand instead of <general_operand>.
8005
8006 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8007
8008         PR tree-optimization/70916
8009         * tree-if-conv.c (constant_or_ssa_name): Removed.
8010         (fold_build_cond_expr): Use is_gimple_val instead of
8011         constant_or_ssa_name.
8012
8013         PR tree-optimization/70916
8014         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
8015         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
8016
8017         PR target/49244
8018         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
8019         (optimize_atomic_bit_test_and): New function.
8020         (pass_fold_builtins::execute): Use it.
8021         * optabs.def (atomic_bit_test_and_set_optab,
8022         atomic_bit_test_and_complement_optab,
8023         atomic_bit_test_and_reset_optab): New optabs.
8024         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
8025         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
8026         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
8027         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
8028         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
8029         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
8030         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
8031         * doc/md.texi (atomic_bit_test_and_set@var{mode},
8032         atomic_bit_test_and_complement@var{mode},
8033         atomic_bit_test_and_reset@var{mode}): Document.
8034         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
8035         atomic_bit_test_and_complement<mode>,
8036         atomic_bit_test_and_reset<mode>): New expanders.
8037         (atomic_bit_test_and_set<mode>_1,
8038         atomic_bit_test_and_complement<mode>_1,
8039         atomic_bit_test_and_reset<mode>_1): New insns.
8040
8041 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
8042
8043         PR rtl-optimization/70687
8044         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
8045         instead of unsigned HOST_WIDE_INT.
8046
8047 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
8048
8049         PR rtl-optimization/44281
8050         * hard-reg-set.h (struct target_hard_regs): New field
8051         x_fixed_nonglobal_reg_set.
8052         (fixed_nonglobal_reg_set): New macro.
8053         * reginfo.c (init_reg_sets_1): Initialize it.
8054         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
8055         of fixed_reg_set.
8056         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
8057
8058 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8059
8060         PR tree-optimization/56541
8061         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
8062         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
8063         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
8064         (any_complicated_phi): new static variable.
8065         (aggressive_if_conv): delete.
8066         (if_convertible_phi_p): support phis with more than two arguments.
8067         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
8068         critical pred edges.
8069         (ifcvt_split_critical_edges): support phis with more than two
8070         arguments by checking new parameter.  only split critical edges
8071         if needed.
8072         (tree_if_conversion): handle simd pragma marked loop using new
8073         local variable aggressive_if_conv.  check any_complicated_phi.
8074
8075 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8076
8077         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
8078         before using it.
8079
8080 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8081
8082         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
8083         cbase.
8084
8085 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
8086
8087         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
8088         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
8089         define_insn_and_split.
8090         (mulsi3_i): New define_insn_and_split.
8091         (mulsi3_call): Convert to define_insn.
8092         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
8093         Remove constraints.
8094
8095 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8096
8097         * machmode.h (mode_complex): Add support to give the complex mode
8098         for a given mode.
8099         (GET_MODE_COMPLEX_MODE): Likewise.
8100         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
8101         stored by build_complex_type and gfc_build_complex_type instead of
8102         trying to figure out the appropriate mode based on the size. Raise
8103         an assertion error, if the type was not set.
8104         * genmodes.c (struct mode_data): Add field for the complex type of
8105         the given type.
8106         (blank_mode): Likewise.
8107         (make_complex_modes): Remember the complex mode created in the
8108         base type.
8109         (emit_mode_complex): Write out the mode_complex array to map a
8110         type mode to the complex version.
8111         (emit_insn_modes_c): Likewise.
8112         * tree.c (build_complex_type): Set the complex type to use before
8113         calling layout_type.
8114         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8115         support for __float128 complex datatypes.
8116         (rs6000_hard_regno_mode_ok): Likewise.
8117         (rs6000_setup_reg_addr_masks): Likewise.
8118         (rs6000_complex_function_value): Likewise.
8119         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8120         __float128 and __ibm128 complex.
8121         (FLOAT128_IBM_P): Likewise.
8122         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8123         * doc/extend.texi (Additional Floating Types): Document that
8124         -mfloat128 must be used to enable __float128.  Document complex
8125         __float128 and __ibm128 support.
8126
8127 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8128
8129         PR target/49244
8130         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8131         char/short arguments promoted to int because of promote_prototypes.
8132
8133 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8134
8135         * config/i386/predicates.md (register_ssemem_operand): New predicate.
8136         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8137         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8138         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
8139         alternatives using "enabled" attribute.  Use register_ssemem_operand
8140         as operand 1 predicate.
8141         (*cmpi<unord>xf_i387): Split XFmode pattern from
8142         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8143         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8144         *absneg<mode>2_i387.  Disable unsupported alternatives using
8145         "enabled" attribute.
8146         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8147
8148 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8149
8150         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8151         marker.
8152         (oacc_loop_process): Check mask for loop termination.
8153
8154 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8155
8156         * cif-code.def (CIF_THUNK): Add.
8157         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8158         accidental change.
8159
8160 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8161
8162         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8163         (dump_inline_summary): Dump it.
8164         (fp_expression_p): New predicate.
8165         (estimate_function_body_sizes): Use it.
8166         (inline_merge_summary): Merge fp_expressions.
8167         (inline_read_section): Read fp_expressions.
8168         (inline_write_summary): Write fp_expressions.
8169         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8170         codegen boundary if either caller or callee is !fp_expressions.
8171         * ipa-inline.h (inline_summary): Add fp_expressions.
8172         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8173         to fp_expressions be sure the fp generation flags are updated.
8174
8175 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8176
8177         PR rtl-optimization/70467
8178         * cse.c (cse_insn): Handle no-op MEM moves after folding.
8179
8180         PR rtl-optimization/70467
8181         * ipa-pure-const.c (check_call): Handle internal calls even in
8182         ipa mode like in local mode.
8183
8184 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8185
8186         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8187
8188 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8189
8190         * match.pd (X u< X, X u> X): New transformations.
8191
8192 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8193
8194         * flag-types.h (enum warn_strict_overflow_code): Move ...
8195         * coretypes.h: ... here.
8196         * fold-const.h (fold_overflow_warning): Declare.
8197         * fold-const.c (fold_overflow_warning): Make non-static.
8198         (fold_comparison): Move the transformation of X +- C1 CMP C2
8199         into X CMP C2 -+ C1 ...
8200         * match.pd: ... here.
8201         * gimple-fold.c (fold_stmt_1): Protect with
8202         fold_defer_overflow_warnings.
8203
8204 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8205
8206         * omp-low.c (struct oacc_loop): Add 'inner' field.
8207         (new_oacc_loop_raw): Initialize it to zero.
8208         (oacc_loop_fixed_partitions): Initialize it.
8209         (oacc_loop_auto_partitions): Partition outermost loop to outermost
8210         available partitioning.
8211
8212 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8213
8214         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
8215         register_operand.
8216         (umulsidi3): Likewise.
8217         (indirect_jump): Fix jump instruction assembly patterns.
8218
8219 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
8220
8221         PR target/70860
8222         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
8223         (nvptx_function_value): Assert non-NULL cfun.
8224
8225 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8226
8227         PR rtl-optimization/70886
8228         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
8229
8230         * cselib.h (rtx_equal_for_cselib_1): Declare.
8231         (rtx_equal_for_cselib_p: New inline function.
8232         * cselib.c (rtx_equal_for_cselib_p): Delete.
8233         (rtx_equal_for_cselib_1): Make public.
8234
8235 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8236
8237         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
8238         (register_mixssei387nonimm_operand): Remove predicate.
8239         * config/i386/i386.md (*fop_<mode>_comm): Merge from
8240         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
8241         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
8242         for TARGET_MIX_SSE_I387 alternatives.
8243         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
8244         Disable unsupported alternatives using "enabled" attribute.  Use
8245         nonimm_ssenomem_operand as operand 1 predicate.  Also check
8246         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
8247
8248 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8249
8250         * tree.c (cst_and_fits_in_hwi): Simplify.
8251
8252 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8253
8254         * tree.h (wi::to_wide): New function.
8255         * expr.c (expand_expr_real_1): Use wi::to_wide.
8256         * fold-const.c (int_const_binop_1): Likewise.
8257         (extract_muldiv_1): Likewise.
8258
8259 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8260
8261         * wide-int.h: Update offset_int and widest_int documentation.
8262         (WI_SIGNED_SHIFT_RESULT): New macro.
8263         (wi::binary_shift): Define signed_shift_result_type for
8264         shifts on offset_int- and widest_int-like types.
8265         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8266         * tree.h (int_bit_position): Use shift operators instead of wi::
8267          shifts.
8268         * alias.c (adjust_offset_for_component_ref): Likewise.
8269         * expr.c (get_inner_reference): Likewise.
8270         * fold-const.c (fold_comparison): Likewise.
8271         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8272         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8273         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8274         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8275         (stmt_kills_ref_p): Likewise.
8276         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8277         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8278         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8279         (ao_ref_init_from_vn_reference): Likewise.
8280
8281 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8282
8283         * wide-int.h: Update offset_int and widest_int documentation.
8284         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8285         (wi::binary_traits): Allow ordered comparisons between offset_int and
8286         offset_int, between widest_int and widest_int, and between either
8287         of these types and basic C types.
8288         (operator <, <=, >, >=): Define for the same combinations.
8289         * tree.h (tree_int_cst_lt): Use comparison operators instead
8290         of wi:: comparisons.
8291         (tree_int_cst_le): Likewise.
8292         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8293         (fold_nonarray_ctor_reference): Likewise.
8294         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8295         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8296         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8297         * tree-sra.c (completely_scalarize): Likewise.
8298         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8299         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8300         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8301         (check_for_binary_op_overflow): Likewise.
8302         (search_for_addr_array): Likewise.
8303         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8304
8305 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8306
8307         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8308         (arc_save_restore): Likewise.
8309         (arc_dwarf_register_span): Likewise.
8310         (arc_output_pic_addr_const): Initialize suffix variable.
8311
8312 2016-05-02  Martin Liska  <mliska@suse.cz>
8313
8314         * symbol-summary.h (function_summary::function_summary):
8315         Remove checking assert for all cgraph nodes.
8316         (function_summary::get): Check summary_uid.
8317         (symtab_insertion): Check summary_uid.
8318
8319 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8320
8321         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8322         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8323         bmaskn instruction.
8324         (arc_dwarf_register_span): Remove enum keyword.
8325         (compact_memory_operand_p): New function.
8326         * config/arc/arc.h (reg_class): Add code density register classes.
8327         (REG_CLASS_NAMES): Likewise.
8328         (REG_CLASS_CONTENTS): Likewise.
8329         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8330         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8331         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8332         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8333         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8334         constraints.
8335         (h, Rcd, Rsd, Rzd): New register constraints.
8336         (T): Use compact_memory_operand_p function.
8337         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8338
8339 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8340
8341         * config/sh/sh.md (*negnegt, *movtt): Remove.
8342
8343 2016-05-02  Marek Polacek  <polacek@redhat.com>
8344             Tom de Vries  <tom@codesourcery.com>
8345
8346         PR tree-optimization/70700
8347         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8348         bigger than FIRST_REF_NODE.
8349
8350 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8351
8352         PR target/52898
8353         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8354         TARGET_CMPEQDI_T.
8355         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8356         function is used when pseudos can be created.
8357         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8358         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8359         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8360         define_expand.  Allow it only when pseudos can be created.
8361         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8362
8363 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8364
8365         * config/i386/constraints.md (BC): Only allow -1 operands.
8366         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8367         Add "enabled" attribute.  Update XI mode attribute calculation.
8368         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8369         (*movoi_internal_avx): Update XI mode attribute calculation.
8370         (*movti_internal): Ditto.
8371
8372 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8373
8374         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8375         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8376
8377 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8378
8379         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8380         statement on instruction code.  Remove trailing spaces.
8381         (altivec_expand_stv_builtin): Likewise.
8382
8383 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8384
8385         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8386         (TARGET_FPU_DOUBLE): Simplify.
8387         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8388         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8389         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8390         with 'TARGET_FPU_DOUBLE'.
8391         * config/sh/sh.md: Likewise.
8392
8393 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8394
8395         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8396         SH_DIV_STR_FOR_SIZE): Remove.
8397         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
8398         SH_DIV_STR_FOR_SIZE): Remove.
8399
8400 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8401
8402         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
8403         logical_reg_operand): Delete.
8404         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
8405         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
8406         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
8407         match_operand and match_test.
8408         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
8409         variables on their first use.  Return bool values.
8410         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
8411         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
8412         arith_reg_operand for input operand.  Remove empty constraints.
8413         (xorsi3): Delete.
8414         (*xorsi3_compact): Rename to xorsi3.
8415         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
8416         (*zero_extend<mode>si2_disp_mem): Update comment.
8417         (mov_nop): Delete.
8418
8419 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8420
8421         * config/sh/t-sh: Remove SH5 support.
8422         * config.gcc: Likewise.
8423         * configure: Likewise.
8424
8425 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8426
8427         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
8428
8429 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8430
8431         * config/sh/sh.c (register_sh_passes, sh_option_override,
8432         sh_print_operand, prepare_move_operands,
8433         sh_can_follow_jump): Remove TARGET_SH1 checks.
8434         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
8435         PROMOTE_MODE): Likewise.
8436         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
8437         movdi): Likewise.
8438
8439 2016-04-30  Alan Modra  <amodra@gmail.com>
8440
8441         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
8442         restoring when fixed_reg_p, but allow out-of-line or stmw save.
8443         Check for user regs later to avoid unnecessary looping over regs.
8444         Merge user reg check with non-saved reg check.  Don't force
8445         inline VR restore when static chain used.
8446         (rs6000_frame_related): Omit eh_frame info for user regs when
8447         saving.
8448         (fixed_regs_p): Delete.
8449
8450 2016-04-30  Alan Modra  <amodra@gmail.com>
8451
8452         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
8453         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
8454         Update all uses.
8455
8456 2016-04-30  Alan Modra  <amodra@gmail.com>
8457
8458         PR target/69645
8459         * config/rs6000/rs6000.c (fixed_reg_p): New function.
8460         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
8461         Update all uses.
8462
8463 2016-04-30  Alan Modra  <amodra@gmail.com>
8464
8465         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8466         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
8467         flag_pic test for Darwin.
8468
8469 2016-04-30  Alan Modra  <amodra@gmail.com>
8470
8471         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
8472         throw_calls_crossed.
8473         (REG_FREQ_CALLS_CROSSED): Delete.
8474         (REG_N_THROWING_CALLS_CROSSED): Delete.
8475         * regstat.c (regstat_bb_compute_ri): Don't calculate
8476         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
8477         (dump_reg_info): Don't print call cross frequency.
8478         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
8479         and REG_N_THROWING_CALLS_CROSSED.
8480
8481 2016-04-30  Alan Modra  <amodra@gmail.com>
8482
8483         * regs.h (struct reg_info_t): Delete live_length.
8484         (REG_LIVE_LENGTH): Delete macro.
8485         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
8486         local_live, local_processed and local_live_last_luid params.
8487         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
8488         Formatting fixes.
8489         (regstat_compute_ri): Adjust for above.  Don't set
8490         REG_LIVE_LENGTH.
8491         (dump_reg_info): Don't print live length.
8492         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
8493         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
8494         Localize loop_depth var.
8495
8496 2016-04-30  Alan Modra  <amodra@gmail.com>
8497
8498         * ira.c (enum valid_equiv): New.
8499         (validate_equiv_mem): Return enum.
8500         (update_equiv_mem): Create replacement in more cases.
8501         (add_store_equivs): Update validate_equiv_mem call.
8502
8503 2016-04-30  Alan Modra  <amodra@gmail.com>
8504
8505         * ira.c (combine_and_move_insns): Rather than scanning insns,
8506         use DF infrastucture to find use and def insns.
8507
8508 2016-04-30  Alan Modra  <amodra@gmail.com>
8509
8510         ira.c (combine_and_move_insns): Move invariant conditions..
8511         (ira.c): ..to here.  Call combine_and_move_insns before
8512         add_store_equivs.  Call grow_reg_equivs later.  Allocate
8513         req_equiv later using max_reg_num() rather than global max_regno.
8514         (contains_replace_regs): Delete.
8515         (add_store_equivs): Remove contains_replace_regs test.
8516
8517 2016-04-30  Alan Modra  <amodra@gmail.com>
8518
8519         * ira.c (struct equiv_mem_data): New.
8520         (equiv_mem, equiv_mem_modified): Delete static vars.
8521         (validate_equiv_mem_from_store): Use "data" param to communicate..
8522         (validate_equiv_mem): ..from here.
8523
8524 2016-04-30  Alan Modra  <amodra@gmail.com>
8525
8526         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
8527         split out from..
8528         (update_reg_equivs): ..here.  Move allocation and freeing of
8529         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
8530         end_alias_analysis to..
8531         (ira): ..here.
8532
8533 2016-04-30  Alan Modra  <amodra@gmail.com>
8534
8535         * ira.c (pdx_subregs): Delete.
8536         (struct equivalence): Add pdx_subregs field.
8537         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
8538         pdx_subregs access.
8539         (update_equiv_regs): Don't create or free pdx_subregs.  Update
8540         pdx_subregs access.
8541
8542 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8543
8544         * config/rs6000/altivec.h: Change definitions of vec_xl and
8545         vec_xst.
8546         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
8547         (LD_ELEMREV_V2DI): New.
8548         (LD_ELEMREV_V4SF): New.
8549         (LD_ELEMREV_V4SI): New.
8550         (LD_ELEMREV_V8HI): New.
8551         (LD_ELEMREV_V16QI): New.
8552         (ST_ELEMREV_V2DF): New.
8553         (ST_ELEMREV_V2DI): New.
8554         (ST_ELEMREV_V4SF): New.
8555         (ST_ELEMREV_V4SI): New.
8556         (ST_ELEMREV_V8HI): New.
8557         (ST_ELEMREV_V16QI): New.
8558         (XL): New.
8559         (XST): New.
8560         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8561         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
8562         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
8563         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
8564         (altivec_expand_builtin): Add handling for
8565         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
8566         (rs6000_invalid_builtin): Add error-checking for
8567         RS6000_BTM_P9_VECTOR.
8568         (altivec_init_builtins): Define builtins used to implement vec_xl
8569         and vec_xst.
8570         (rs6000_builtin_mask_names): Define power9-vector.
8571         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
8572         (RS6000_BTM_P9_VECTOR): Define.
8573         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
8574         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
8575         (vsx_ld_elemrev_v2df): Likewise.
8576         (vsx_ld_elemrev_v4sf): Likewise.
8577         (vsx_ld_elemrev_v4si): Likewise.
8578         (vsx_ld_elemrev_v8hi): Likewise.
8579         (vsx_ld_elemrev_v16qi): Likewise.
8580         (vsx_st_elemrev_v2df): Likewise.
8581         (vsx_st_elemrev_v2di): Likewise.
8582         (vsx_st_elemrev_v4sf): Likewise.
8583         (vsx_st_elemrev_v4si): Likewise.
8584         (vsx_st_elemrev_v8hi): Likewise.
8585         (vsx_st_elemrev_v16qi): Likewise.
8586         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
8587         grammar.
8588
8589 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
8590
8591         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
8592         out into ...
8593         (simplify_control_stmt_condition_1): ... here.  Recurse into
8594         BIT_AND_EXPRs and BIT_IOR_EXPRs.
8595
8596 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
8597
8598         PR target/69810
8599         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
8600         (zero_extendqi<mode>2_dot): Revert earlier conversion from
8601         define_insn_and_split to define_insn.
8602         (zero_extendqi<mode>2_dot2): Same.
8603         (extendqi<mode>2_dot): Same.
8604         (extendqi<mode>2_dot2): Same.
8605
8606 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8607
8608         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
8609         (probe_stack): New expander.
8610         (probe_stack_<mode>): New insn pattern.
8611
8612 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8613
8614         * config/i386/i386.md
8615         (operations with memory inputs setting flags peephole2):
8616         Remove uneeded REG_P checks.  Cleanup pattern generation.
8617
8618 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8619
8620         * tree-vect-loop.c (vect_transform_loop): Fix
8621         nb_iterations_upper_bound computation for vectorized loop.
8622
8623 2016-04-29  Marek Polacek  <polacek@redhat.com>
8624             Jakub Jelinek  <jakub@redhat.com>
8625
8626         PR sanitizer/70342
8627         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
8628         TARGET_EXPR_SLOT as a base.
8629
8630 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
8631
8632         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
8633         with 'rCm2' constraints to limit possible immediate size.
8634         (*load_zeroextendqisi_update): Likewise.
8635         (*load_signextendqisi_update): Likewise.
8636         (*loadhi_update): Likewise.
8637         (*load_zeroextendhisi_update): Likewise.
8638         (*load_signextendhisi_update): Likewise.
8639         (*loadsi_update): Likewise.
8640         (*loadsf_update): Likewise.
8641
8642 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8643
8644         * config/i386/predicates.md (constm1_operand): Fix comparison.
8645
8646 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8647
8648         * testsuite/gcc.target/arc/ieee_eq.c: New test.
8649
8650 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
8651
8652         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
8653         remaining SH5 related settings.
8654         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
8655         shmedia_prepare_call_address): Delete.
8656         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
8657         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
8658         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
8659         UNSUPPORTED_SH2A): Remove m5 checks.
8660         (sh_divide_strategy_e): Remove SH5 division strategies.
8661         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
8662         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
8663
8664 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8665
8666         * config/s390/s390.c (s390_rtx_costs): Update documentation.
8667
8668 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8669
8670         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
8671         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
8672         Change lder to ldr.
8673         * config/s390/vector.md ("mov<mode>"): Likewise.
8674
8675 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
8676
8677         * config/s390/constraints.md ("U", "W"): Invoke
8678         s390_mem_constraint with "ZR" and "ZT".
8679         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
8680         addresses when using LRA.  Accept also short displacements for S
8681         and T constraints.  Do not check for long displacement target for
8682         S and T constraints.
8683         (s390_mem_constraint): Remove handling of U and W constraints.
8684         * config/s390/s390.md (various patterns): Remove the short
8685         displacement constraints (Q and R) if a long displacement
8686         constraint is present.  Add longdisp as required CPU capability.
8687         * config/s390/vector.md: Likewise.
8688         * config/s390/vx-builtins.md: Likewise.
8689
8690 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8691
8692         PR target/60040
8693         * reload1.c (reload): Call finish_spills before
8694         restarting reload loop. Skip select_reload_regs
8695         if update_eliminables_and_spill returns true.
8696
8697 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8698
8699         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
8700         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
8701         (umulhisi3_imm): Update predicates and constraint letters.
8702         (umulhisi3_reg): Declare instruction as commutative.
8703         * config/arc/constraints.md (J12, J16): New constraints.
8704         * config/arc/predicates.md (short_unsigned_const_operand): New
8705         predicate.
8706         (arc_short_operand): Likewise.
8707         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
8708
8709 2016-04-29  Richard Biener  <rguenther@suse.de>
8710
8711         PR tree-optimization/13962
8712         PR tree-optimization/65686
8713         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
8714         * tree-ssa-alias.c (ptrs_compare_unequal): New function
8715         using PTA to compare pointers.
8716         * match.pd: Add pattern for pointer equality compare simplification
8717         using ptrs_compare_unequal.
8718
8719 2016-04-29  Richard Biener  <rguenther@suse.de>
8720
8721         * stor-layout.c (layout_type): Do not build a pointer-to-element
8722         type for arrays.
8723
8724 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8725
8726         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
8727         Use SWI mode iterator.  Use general_reg_operand predicate.
8728         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
8729         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
8730         predicates.
8731
8732 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
8733
8734         PR middle-end/70843
8735         * fold-const.c (operand_equal_p): Don't verify hash value equality
8736         if arg0 == arg1.
8737         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
8738         and OMP_CLAUSE.
8739
8740 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8741
8742         PR target/70858
8743         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
8744         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
8745         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
8746         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
8747         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
8748
8749 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8750
8751         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
8752         to info.  Don't initialize separate fields to 0.  Clean up
8753         formatting a bit.
8754
8755 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8756
8757         * config/i386/i386.md (peephole2s for operations with memory inputs):
8758         Use SWI mode iterator.
8759         (peephole2s for operations with memory outputs): Ditto.
8760         Do not check for stack checking probe.
8761
8762         (probe_stack): Remove expander.
8763
8764 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8765             Andrew Burgess  <andrew.burgess@embecosm.com>
8766
8767         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
8768         operands as 32-bits.
8769
8770 2016-04-28  Jason Merrill  <jason@redhat.com>
8771
8772         * gdbinit.in: Skip line-map.h.
8773
8774 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8775             Andrew Burgess  <andrew.burgess@embecosm.com>
8776
8777         * config/arc/arc.c (arc_conditional_register_usage): Take
8778         TARGET_RRQ_CLASS into account.
8779         (arc_print_operand): Support printing 'p' and 's' operands.
8780         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
8781         as 0.
8782         (TARGET_RRQ_CLASS): Define.
8783         (IS_POWEROF2_OR_0_P): Define.
8784         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
8785         alternatives.
8786         (*tst_movb): New define_insn.
8787         (*tst): Avoid recognition if it could prevent '*tst_movb'
8788         combination; replace c/CnL with c/Chs alternative.
8789         (*tst_bitfield_tst): New define_insn.
8790         (*tst_bitfield_asr): New define_insn.
8791         (*tst_bitfield): New define_insn.
8792         (andsi3_i): Add Rrq variant.
8793         (extzv): New define_expand.
8794         (insv): New define_expand.
8795         (*insv_i): New define_insn.
8796         (*movb): New define_insn.
8797         (*movb_signed): New define_insn.
8798         (*movb_high): New define_insn.
8799         (*movb_high_signed): New define_insn.
8800         (*movb_high_signed + 1): New define_split pattern.
8801         (*mrgb): New define_insn.
8802         (*mrgb + 1): New define_peephole2 pattern.
8803         (*mrgb + 2): New define_peephole2 pattern.
8804         * config/arc/arc.opt (mbitops): New option for nps400, uses
8805         TARGET_NPS_BITOPS_DEFAULT.
8806         * config/arc/constraints.md (q): Make register class conditional.
8807         (Rrq): New register constraint.
8808         (Chs): New constraint.
8809         (Clo): New constraint.
8810         (Chi): New constraint.
8811         (Cbf): New constraint.
8812         (Cbn): New constraint.
8813         (C18): New constraint.
8814         (Cbi): New constraint.
8815
8816 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8817
8818         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
8819         dst->popcount.
8820         (bitmap_intersection_of_preds): Ditto.
8821         (bitmap_union_of_succs): Ditto.
8822         (bitmap_union_of_preds): Ditto.
8823         * sbitmap.c (do_popcount): Delete.
8824         (BITMAP_DEBUGGING): Delete.
8825         (sbitmap_verify_popcount): Delete.
8826         (sbitmap_alloc): Don't initialize the popcount field.
8827         (sbitmap_alloc_with_popcount): Delete.
8828         (sbitmap_resize): Don't resize the popcount array.
8829         (sbitmap_vector_alloc): Don't initialize the popcount field.
8830         (bitmap_copy): Don't copy the popcount array.
8831         (bitmap_clear): Don't clear the popcount array.
8832         (bitmap_clear): Delete the popcount array handling.
8833         (bitmap_ior_and_compl): Delete the popcount assert.
8834         (bitmap_not): Ditto.
8835         (bitmap_and_compl): Ditto.
8836         (bitmap_and): Delete the popcount array handling.
8837         (bitmap_xor): Ditto.
8838         (bitmap_ior): Ditto.
8839         (bitmap_or_and): Delete the popcount assert.
8840         (bitmap_and_or): Ditto.
8841         (popcount_table): Delete.
8842         (sbitmap_elt_popcount): Delete.
8843         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
8844         (bitmap_set_bit): Delete the popcount assert.
8845         (bitmap_clear_bit): Ditto.
8846         (sbitmap_free): Don't free the popcount array.
8847         (sbitmap_alloc_with_popcount): Delete declaration.
8848         (sbitmap_popcount): Ditto.
8849
8850 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8851             Andrew Burgess  <andrew.burgess@embecosm.com>
8852
8853         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
8854         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
8855         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
8856         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
8857         * config/arc/arc.opt (mcmem): New option.
8858         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
8859         supply length for r/m alternative.
8860         (*extendqisi2_ac): Likewise.
8861         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
8862         r/Uex alternative.
8863         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
8864         (movhi_insn): Likewise.
8865         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
8866         (*zero_extendqihi2_i): Add r/Ucm alternative.
8867         (*zero_extendqisi2_ac): Likewise.
8868         (*zero_extendhisi2_i): Likewise.
8869         * config/arc/constraints.md (Uex): New memory constraint.
8870         (Ucm): New define_constraint.
8871         * config/arc/predicates.md (long_immediate_loadstore_operand):
8872         Return 0 for MEM with cmem_address address.
8873         (cmem_address_0): New predicates.
8874         (cmem_address_1): Likewise.
8875         (cmem_address_2): Likewise.
8876         (cmem_address): Likewise.
8877
8878 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8879
8880         * config/rs6000/rs6000.c (machine_function): Rename
8881         insn_chain_scanned_p to spe_insn_chain_scanned_p.
8882         (rs6000_stack_info): Adjust.
8883
8884 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8885             Andrew Burgess  <andrew.burgess@embecosm.com>
8886
8887         * config/arc/constraints.md (Usd): Convert to define_constraint.
8888         (Us<): Likewise.
8889         (Us>): Likewise.
8890
8891 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8892
8893         PR target/70821
8894         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
8895         Add new peephole2 where the first insn is *mov<mode>_or instead of
8896         *mov<mode>_internal.
8897
8898 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
8899
8900         * tracer.c (bb_seen): Make static.
8901
8902 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8903
8904         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
8905         support, setup defaults.
8906         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
8907         * config/arc/arc.c (arc_init): Add NPS400 support.
8908         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
8909         (TARGET_ARC700): NPS400 is also an ARC700.
8910         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
8911
8912 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8913
8914         PR target/70668
8915         * config/nds32/nds32.md (casesi): Don't access the operands array
8916         out of bounds.
8917
8918 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8919
8920         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
8921         (or $-1,reg peephole2): Ditto.
8922         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
8923
8924 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8925
8926         * doc/extend.texi (Common Function Attributes) [optimize]:
8927         Discourage use of the optimize attribute.
8928
8929 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
8930
8931         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
8932         special case builtin.
8933         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
8934         ALTIVEC_BUILTIN_VEC_ADDE.
8935         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8936         support for ALTIVEC_BUILTIN_VEC_ADDE.
8937         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8938         for __builtin_vec_adde.
8939
8940 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8941
8942         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
8943         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
8944
8945 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8946
8947         PR testsuite/70595
8948         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8949         attributes): Document cilkplus_runtime.
8950
8951 2016-04-28  Martin Jambor  <mjambor@suse.cz>
8952
8953         * tree-cfg.c (verify_expr): Verify that local declarations belong to
8954         this function.  Call verify_expr on MEM_REFs and bases of other
8955         handled_components.
8956
8957 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8958
8959         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
8960         for WORD_REGISTER_OPERATIONS to runtime check.
8961
8962 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8963
8964         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
8965
8966 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8967
8968         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
8969         big-endian compilation.
8970         * config/arc/arc.md (addf3): Likewise.
8971         (subdf3): Likewise.
8972         (muldf3): Likewise.
8973
8974 2016-04-28  Richard Biener  <rguenther@suse.de>
8975
8976         PR tree-optimization/70840
8977         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
8978         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
8979         Mark x * pow(x,c) -> pow(x,c+1) commutative.
8980         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
8981
8982 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8983
8984         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
8985         and explain why in a comment.
8986
8987 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8988
8989         * config/arc/arc.md (cpu_facility): Add fpx variant.
8990         (subdf3): Prohibit use reverse sub when assist operations option
8991         is enabled.
8992         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
8993         instructions only when FPX is enabled.
8994         * testsuite/gcc.target/arc/trsub.c: New test.
8995
8996 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8997
8998         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
8999         mult_operator when calculating "type" attribute.
9000         (*fop_<mode>_1_i387): Ditto.
9001         (*fop_xf_1_i387): Ditto.
9002         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
9003         Use std::swap to swap operands.  Use RTL expressions to generate
9004         converted pattern.
9005
9006 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9007             Joern Rennecke  <joern.rennecke@embecosm.com>
9008
9009         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
9010         declaration.
9011         (emit_pic_move): Remove.
9012         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
9013         * config/arc/arc.c (emit_pic_move): Removed.
9014         (TARGET_HAVE_TLS): Define.
9015         (arc_conditional_register_usage): Test for arc_tp_regno.
9016         (arc_print_operand, arc_print_operand_address): Handle TLS
9017         unspecs.
9018         (arc_needs_pcl_p): New function.
9019         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
9020         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
9021         (arc_raw_symbolic_reference_mentioned_p): Likewise.
9022         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
9023         (arc_legitimize_tls_address): Likewise.
9024         (DTPOFF_ZERO_SYM): Define.
9025         (arc_legitimize_pic_address): Make it static, handle TLS cases.
9026         (arc_output_pic_addr_const): Print TLS unspecs.
9027         (prepare_pic_move): New function, replaces emit_pic_move.
9028         (arc_legitimate_constant_p): Handle TLS unspecs.
9029         (arc_legitimate_address_p): Likewise.
9030         (arc_rewrite_small_data_p): Use assert for TLS constants.
9031         (prepare_move_operands): Use prepare_pic_move.
9032         (arc_legitimize_address): Legitimize tls addresses.
9033         (arc_epilogue_uses): Check for arc_tp_regno.
9034         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
9035         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
9036         Define.
9037         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
9038         Likewise.
9039         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
9040         %(arc_tls_extra_start_spec).
9041         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
9042         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
9043         (EH_USES): Define.
9044         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
9045         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
9046         (UNSPEC_TLS_OFF): Add.
9047         (R10_REG): Define.
9048         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
9049         (get_thread_pointersi): New patterns.
9050         * config/arc/arc.opt (mtp-regno): New option.
9051         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
9052         (move_dest_operand): Likewise.
9053         * configure: Regenerate.
9054         * configure.ac: Add arc*-*-* case to test for tls.
9055         * doc/invoke.texi (ARC options): Document mtp-regno.
9056
9057 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9058
9059         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
9060         the new ARC HS SIMD instructions.
9061         (arc_preferred_simd_mode): New function.
9062         (arc_autovectorize_vector_sizes): Likewise.
9063         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9064         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9065         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
9066         (arc_init_builtins): Add new SIMD builtin types.
9067         (arc_split_move): Handle 64 bit vector moves.
9068         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
9069         (TARGET_PLUS_QMACW): Define.
9070         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
9071         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
9072         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
9073         (VSUBADD4H): New builtins.
9074         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
9075         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
9076
9077 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
9078             Matthias Klose  <doko@debian.org>
9079
9080         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
9081
9082 2016-04-28  Richard Biener  <rguenther@suse.de>
9083
9084         PR middle-end/70777
9085         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
9086         canonicalization.
9087
9088 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
9089
9090         * common/config/sh/sh-common.c: Remove SH5 support.
9091         * config/sh/constraints.md: Likewise.
9092         * config/sh/config/sh/elf.h: Likewise.
9093         * config/sh/linux.h: Likewise.
9094         * config/sh/netbsd-elf.h: Likewise.
9095         * config/sh/predicates.md: Likewise.
9096         * config/sh/sh-c.c: Likewise.
9097         * config/sh/sh-protos.h: Likewise.
9098         * config/sh/sh.c: Likewise.
9099         * config/sh/sh.h: Likewise.
9100         * config/sh/sh.md: Likewise.
9101         * config/sh/sh.opt: Likewise.
9102         * config/sh/sync.md: Likewise.
9103         * config/sh/sh64.h: Delete.
9104         * config/sh/shmedia.h: Likewise.
9105         * config/sh/shmedia.md: Likewise.
9106         * config/sh/sshmedia.h: Likewise.
9107         * config/sh/t-netbsd-sh5-64: Likewise.
9108         * config/sh/t-sh64: Likewise.
9109         * config/sh/ushmedia.h: Likewise.
9110
9111 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9112
9113         * config/i386/i386.md (sign_extend to memory peephole2s): Use
9114         general_reg_operand instead of register_operand predicate.
9115
9116 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9117
9118         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9119
9120 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
9121
9122         * match.pd (A - B > A, A + B < A): New transformations.
9123
9124 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
9125
9126         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9127         which defaults to true.  Emit an outer pair of parentheses only if
9128         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
9129         don't emit parentheses for the right-hand operand.
9130
9131 2016-04-27  Jeff Law  <law@redhat.com>
9132
9133         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9134
9135 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9136
9137         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9138         (altivec_lvx_<mode>_internal): Document.
9139         (altivec_lvx_<mode>_2op): New define_insn.
9140         (altivec_lvx_<mode>_1op): Likewise.
9141         (altivec_lvx_<mode>_2op_si): Likewise.
9142         (altivec_lvx_<mode>_1op_si): Likewise.
9143         (altivec_stvx_<mode>): Remove.
9144         (altivec_stvx_<mode>_internal): Document.
9145         (altivec_stvx_<mode>_2op): New define_insn.
9146         (altivec_stvx_<mode>_1op): Likewise.
9147         (altivec_stvx_<mode>_2op_si): Likewise.
9148         (altivec_stvx_<mode>_1op_si): Likewise.
9149         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9150         Expand vec_ld and vec_st during parsing.
9151         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9152         changes.
9153         (altivec_expand_stvx_be): Likewise.
9154         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9155         address-masking behavior in RTL.
9156         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9157         address-masking behavior in RTL.
9158         (altivec_expand_builtin): Change builtin code arguments for calls
9159         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9160         (insn_is_swappable_p): Avoid incorrect swap optimization in the
9161         presence of lvx/stvx patterns.
9162         (alignment_with_canonical_addr): New function.
9163         (alignment_mask): Likewise.
9164         (find_alignment_op): Likewise.
9165         (recombine_lvx_pattern): Likewise.
9166         (recombine_stvx_pattern): Likewise.
9167         (recombine_lvx_stvx_patterns): Likewise.
9168         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9169         stvx patterns from expand.
9170         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9171         expansions.
9172         (vector_altivec_store_<mode>): Likewise.
9173
9174 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
9175
9176         * config/aarch64/aarch64.md
9177         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9178         remove the "fp" attributes.
9179         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9180         add the "simd" attributes.
9181         (*movdf_aarch64): Likewise.
9182         (*movtf_aarch64): Remove the "fp" attributes.
9183         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9184         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9185
9186 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9187
9188         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9189         rtx to rtx_code_label *.
9190         * rtl.h (maybe_set_first_label_num): Likewise.
9191
9192 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9193
9194         * df-core.c (df_add_problem): Make the problem param be const.
9195         (df_remove_problem): Make local "problem" be const.
9196         * df-problems.c (problem_RD): Make const.
9197         (problem_LR): Likewise.
9198         (problem_LIVE): Likewise.
9199         (problem_MIR): Likewise.
9200         (problem_CHAIN): Likewise.
9201         (problem_WORD_LR): Likewise.
9202         (problem_NOTE): Likewise.
9203         (problem_MD): Likewise.
9204         * df-scan.c (problem_SCAN): Likewise.
9205         * df.h (struct df_problem): Make field "dependent_problem" be
9206         const.
9207         (struct dataflow): Likewise for field "problem".
9208         (df_add_problem): Make param const.
9209
9210 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9211
9212         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9213         inter-unit moves to/from vector registers are enabled.  Do not disable
9214         for TARGET_MMX.
9215
9216 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9217
9218         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
9219         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
9220         #define to...
9221         (enum df_problem_id): ...this new enum.
9222         (struct df_problem): Convert field "id" from "int" to
9223         enum df_problem_id.
9224
9225 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9226
9227         * rtl.def: Update comment for "things in the instruction chain" to
9228         reflect the removal of the leading "i" field for INSN_UID in
9229         r210360.  Fix bogus apostrophe.
9230
9231 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9232
9233         * config/i386/i386.md
9234         (lea arith with mem operand + setcc peephole2): Set operator mode.
9235
9236 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9237
9238         PR target/70155
9239         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
9240         (dimode_scalar_to_vector_candidate_p): This.
9241         (timode_scalar_to_vector_candidate_p): New function.
9242         (scalar_to_vector_candidate_p): Likewise.
9243         (timode_check_non_convertible_regs): Likewise.
9244         (timode_remove_non_convertible_regs): Likewise.
9245         (remove_non_convertible_regs): Likewise.
9246         (remove_non_convertible_regs): Renamed to ...
9247         (dimode_remove_non_convertible_regs): This.
9248         (scalar_chain::~scalar_chain): Make it virtual.
9249         (scalar_chain::compute_convert_gain): Make it pure virtual.
9250         (scalar_chain::mark_dual_mode_def): Likewise.
9251         (scalar_chain::convert_insn): Likewise.
9252         (scalar_chain::convert_registers): Likewise.
9253         (scalar_chain::add_to_queue): Make it protected.
9254         (scalar_chain::emit_conversion_insns): Likewise.
9255         (scalar_chain::replace_with_subreg): Likewise.
9256         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9257         (scalar_chain::convert_op): Likewise.
9258         (scalar_chain::convert_reg): Likewise.
9259         (scalar_chain::make_vector_copies): Likewise.
9260         (scalar_chain::convert_registers): New pure virtual function.
9261         (class dimode_scalar_chain): New class.
9262         (class timode_scalar_chain): Likewise.
9263         (scalar_chain::mark_dual_mode_def): Renamed to ...
9264         (dimode_scalar_chain::mark_dual_mode_def): This.
9265         (timode_scalar_chain::mark_dual_mode_def): New function.
9266         (timode_scalar_chain::convert_insn): Likewise.
9267         (dimode_scalar_chain::convert_registers): Likewise.
9268         (scalar_chain::compute_convert_gain): Renamed to ...
9269         (dimode_scalar_chain::compute_convert_gain): This.
9270         (scalar_chain::replace_with_subreg): Renamed to ...
9271         (dimode_scalar_chain::replace_with_subreg): This.
9272         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9273         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9274         (scalar_chain::make_vector_copies): Renamed to ...
9275         (dimode_scalar_chain::make_vector_copies): This.
9276         (scalar_chain::convert_reg): Renamed to ...
9277         (dimode_scalar_chain::convert_reg ): This.
9278         (scalar_chain::convert_op): Renamed to ...
9279         (dimode_scalar_chain::convert_op): This.
9280         (scalar_chain::convert_insn): Renamed to ...
9281         (dimode_scalar_chain::convert_insn): This.
9282         (scalar_chain::convert): Call convert_registers.
9283         (convert_scalars_to_vector): Change to scalar_chain pointer to
9284         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9285         in 32-bit mode.  Delete scalar_chain pointer.  Call
9286         free_dominance_info in 64-bit mode.
9287         (pass_stv::gate): Remove TARGET_64BIT check.
9288         (ix86_option_override): Put the 64-bit STV pass before the CSE
9289         pass.
9290
9291 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9292
9293         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9294         dw_loc_frame_offset field.
9295         * dwarf2out.c (new_loc_descr): Likewise.
9296         (resolve_args_picking_1): Turn the VISITED hash set into a
9297         FRAME_OFFSET hash map. Use it to associate a frame offset to
9298         visited nodes. Remove uses of the CHECKING_P macro.
9299         (resolve_args_picking): Update call to resolve_args_picking_1.
9300
9301 2016-04-27  Martin Liska  <mliska@suse.cz>
9302
9303         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9304         (free_loop_data): Release vuses of groups.
9305
9306 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9307
9308         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9309         instead of redundant use_id and boolean have_use_for.
9310         (struct iv_use): Change sub_id into group_id.  Remove field next.
9311         Move fields: related_cands, n_map_members, cost_map and selected
9312         to ...
9313         (struct iv_group): ... here.  New structure.
9314         (struct iv_common_cand): Use structure declaration directly.
9315         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9316         (MAX_CONSIDERED_USES): Rename macro to ...
9317         (MAX_CONSIDERED_GROUPS): ... here.
9318         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9319         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9320         (dump_uses): Rename to ...
9321         (dump_groups): ... here.  Update all uses.
9322         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9323         (find_induction_variables): Refactor format of dump information.
9324         (record_sub_use): Delete.
9325         (record_use): Update all uses.
9326         (record_group): New function.
9327         (record_group_use, find_interesting_uses_op): Call above functions.
9328         Update all uses.
9329         (find_interesting_uses_cond): Ditto.
9330         (group_compare_offset): New function.
9331         (split_all_small_groups): Rename to ...
9332         (split_small_address_groups_p): ... here.  Update all uses.
9333         (split_address_groups):  Update all uses.
9334         (find_interesting_uses): Refactor format of dump information.
9335         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9336         base and step.
9337         (add_candidate, record_common_cand): Remove redundant assert.
9338         (add_iv_candidate_for_biv): Update use.
9339         (add_iv_candidate_derived_from_uses): Update all uses.
9340         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9341         (alloc_use_cost_map): Ditto.
9342         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9343         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9344         (determine_use_iv_cost_generic): Ditto.
9345         (determine_group_iv_cost_generic): Ditto.
9346         (determine_use_iv_cost_address): Ditto.
9347         (determine_group_iv_cost_address): Ditto.
9348         (determine_use_iv_cost_condition): Ditto.
9349         (determine_group_iv_cost_cond): Ditto.
9350         (determine_use_iv_cost): Ditto.
9351         (determine_group_iv_cost): Ditto.
9352         (set_autoinc_for_original_candidates): Update all uses.
9353         (find_iv_candidates): Update all uses.  Refactor dump information.
9354         (determine_use_iv_costs): Ditto.
9355         (determine_iv_costs): Ditto.
9356         (iv_ca_cand_for_use): Rename to ...
9357         (iv_ca_cand_for_group): ... here.  Update all uses.
9358         (iv_ca_add_use, iv_ca_add_group): Ditto.
9359         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9360         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9361         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9362         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9363         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9364         (create_new_iv, adjust_iv_update_pos): Ditto.
9365         (rewrite_use_address): Delete.
9366         (rewrite_use_address_1): Rename to ...
9367         (rewrite_use_address): ... here.
9368         (rewrite_use_compare): Update all uses.
9369         (rewrite_use): Delete.
9370         (rewrite_uses): Rename to ...
9371         (rewrite_groups): ... here.  Update all uses.
9372         (remove_unused_ivs, free_loop_data): Update all uses.
9373         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9374
9375 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9376
9377         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9378         for WORD_REGISTER_OPERATIONS to runtime check.
9379
9380 2016-04-27  Richard Biener  <rguenther@suse.de>
9381
9382         PR ipa/70760
9383         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9384         aggregate_value_p to determine if a function result is
9385         returned by reference.
9386         (ipa_pta_execute): Functions having their address taken are
9387         not automatically nonlocal.
9388
9389 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9390
9391         PR sanitizer/70683
9392         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9393         * fold-const.c (operand_equal_p): If flag_checking and
9394         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9395         and if it returns non-zero, assert iterative_hash_expr on both
9396         args is the same.
9397
9398 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9399
9400         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
9401
9402 2016-04-27  Nick Clifton  <nickc@redhat.com>
9403
9404         PR middle-end/49889
9405         * varasm.c (merge_weak): Generate an error if an attempt is made
9406         to convert a non-weak static function into a weak, public function.
9407
9408 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9409
9410         * params.def (MAX_PARTITION_SIZE): New param.
9411         * doc/invoke.texi: Document lto-max-partition.
9412
9413 2016-04-27  Richard Biener  <rguenther@suse.de>
9414
9415         PR ipa/70785
9416         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
9417         function cummulating used_from_other_partition, externally_visible
9418         and force_output from aliases.
9419         (refered_from_nonlocal_var): Likewise.
9420         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
9421         node flags properly.
9422
9423 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9424
9425         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
9426         (-Wmemset-elt-size): New item.
9427
9428 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9429
9430         PR ada/70759
9431         * stor-layout.h (internal_reference_types): Delete.
9432         * stor-layout.c (reference_types_internal): Likewise.
9433         (internal_reference_types): Likewise.
9434         (layout_type) <REFERENCE_TYPE>: Adjust.
9435
9436 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9437
9438         PR sanitizer/70683
9439         * tree.h (inchash::add_expr): Add FLAGS argument.
9440         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
9441         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
9442         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
9443         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
9444         if swap_tree_comparison (code) is smaller than code, hash that
9445         and arguments in the other order.  Hash CONVERT_EXPR the same
9446         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
9447         of ADDR_EXPR of decl as the decl itself.  Add or remove
9448         OEP_ADDRESS_OF from recursive flags as needed.  For
9449         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
9450         operands commutatively and only the third one normally.
9451         For internal CALL_EXPR hash in CALL_EXPR_IFN.
9452
9453 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9454
9455         * config/rtems.h (LIB_SPEC): Add -latomic.
9456
9457 2016-04-27  Joel Sherrill  <joel@rtems.org>
9458
9459         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
9460         xilink.ld and flags not relevant to RTEMS.
9461
9462 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9463
9464         * toplev.c (backend_init_target): Avoid calling init_reload when using
9465         LRA.
9466
9467 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9468
9469         * reorg.c (try_merge_delay_insns): Declare i and j inside the
9470         for loops rather than one for the whole function.
9471
9472 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9473
9474         * match.pd (X + CST CMP X): New transformation.
9475
9476 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9477
9478         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
9479         * fold-const.c (fold_binary_loc): Remove 2 transformations
9480         superseded by match.pd.
9481         * match.pd (x+x -> x*2): Generalize to integers.
9482
9483 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
9484
9485         * config/i386/i386.md (operation on memory peephole): Duplicate an
9486         existing peephole and adapt it to match lea rather than an operation
9487         that clobbers CC.
9488
9489         PR rtl-optimization/57193
9490         * opts.c (default_options_table): Add OPT_frename_registers at -O2
9491         and above.
9492         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
9493
9494 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9495
9496         * tree-if-conv.c (any_pred_load_store): New static variable.
9497         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
9498         any_pred_load_store instead of and_mask_load_store.
9499         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
9500         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
9501         (combine_blocks, tree_if_conversion): Ditto.
9502
9503 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9504
9505         PR tree-optimization/70771
9506         PR tree-optimization/70775
9507         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
9508         virtual PHI nodes.  Delete parameter.
9509         (if_convertible_loop_p_1): Delete argument to above function.
9510         (predicate_all_scalar_phis): Delete code handling single-argument
9511         PHIs.
9512         (tree_if_conversion): Mark and update virtual SSA.
9513
9514 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9515
9516         PR target/61821
9517         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
9518         (x86_elf_aligned_common): Rename to ...
9519         (x86_elf_aligned_decl_common): ... this.
9520         Add decl arg.  Switch to .lbss for largecomm object.  Use
9521         LARGECOMM_SECTION_ASM_OP.
9522         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
9523         renaming.
9524         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
9525         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
9526         Pass new decl arg.
9527         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9528         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
9529
9530 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9531
9532         PR target/59407
9533         * config/i386/i386.c (SECTION_LARGE): Define.
9534         (x86_64_elf_select_section): Set it for large data/bss sections.
9535         Only clear SECTION_WRITE for .lrodata.
9536         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
9537         data/bss sections.
9538         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
9539         * varasm.c (default_elf_asm_named_section): Grow flagchars.
9540         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
9541         SECTION_MACH_DEP.
9542         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
9543         * doc/tm.texi: Regenerate.
9544
9545 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9546
9547         PR bootstrap/70704
9548         * configure.ac (--enable-checking): Document extra flag, for
9549         non-release builds default to --enable-checking=yes,extra.
9550         If misc checking and extra checking, define CHECKING_P to 2 instead
9551         of 1.
9552         * common.opt (fchecking=): Add.
9553         * doc/invoke.texi (-fchecking=): Document.
9554         * doc/install.texi: Document --enable-checking changes.
9555         * configure: Regenerated.
9556         * config.in: Regenerated.
9557
9558 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9559
9560         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
9561         attribute instead of which_alternative.
9562         * config/i386/sse.md (*mov<mode>_internal): Ditto.
9563         Use EXT_REX_SSE_REG_P where appropriate.
9564
9565 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9566
9567         * config/i386/predicates.md (const0_operand): Do not match
9568         const_wide_int code.
9569         (const1_operand): Ditto.
9570
9571 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9572
9573         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
9574         for SSE constm1 operands and TARGET_AVX512VL.
9575         (*movti_internal): Ditto.
9576         (*mov<mode>_or): Use constm1_operand predicate.
9577         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
9578         for SSE vector_all_ones operands and TARGET_AVX512VL.
9579         * config/i386/predicates.md (constm1_operand): New predicate.
9580         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
9581         emission of constant -1 load.
9582
9583 2016-04-25  Jason Merrill  <jason@redhat.com>
9584
9585         * gdbinit.in: Skip is-a.h.
9586
9587         * attribs.c (register_scoped_attributes): Fix logic.
9588         * attribs.h: Declare register_scoped_attributes.
9589
9590 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9591
9592         * config/rs6000/rs6000-builtin.def: Correct pasto error for
9593         stxvd2x and stxvw4x built-in functions.
9594
9595 2016-04-25  DJ Delorie  <dj@redhat.com>
9596
9597         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
9598         (ashrhi3): Likewise.
9599         (lshrhi3): Likewise.
9600
9601 2016-04-25  Richard Biener  <rguenther@suse.de>
9602
9603         PR tree-optimization/70780
9604         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
9605         wasn't visited yet.
9606         (compute_antic): Mark blocks with abnormal preds as visited as
9607         they have a final empty antic-in solution already.
9608
9609 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9610
9611         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
9612
9613 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9614
9615         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
9616         mode is VQI to improve mixed mode vectorization.
9617         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
9618         define_insn to match low half of signed vaddw.
9619         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
9620         define_insn to match high half of signed vaddw.
9621         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
9622         define_insn to match low half of unsigned vaddw.
9623         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
9624         define_insn to match high half of unsigned vaddw.
9625         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
9626         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9627         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
9628         for new function.
9629         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9630         * config/arm/predicates.md (vect_par_constant_high): Support
9631         big endian and simplify by calling
9632         arm_simd_check_vect_par_cnst_half
9633         (vect_par_constant_low): Likewise.
9634
9635 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9636
9637         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
9638         predicate for operand 2.
9639
9640 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
9641             H.J. Lu  <hongjiu.lu@intel.com>
9642
9643         * config/i386/i386-protos.h (standard_sse_constant_p): Add
9644         machine_mode argument.
9645         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
9646         constm1_rtx operands.  For VOIDmode constants, get mode from
9647         pred_mode.  Check mode size if the mode is supported by ABI.
9648         (standard_sse_constant_opcode): Do not use standard_constant_p.
9649         Strictly check ABI support for all-ones operands.
9650         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
9651         immediates. Update calls to standard_sse_constant_p.
9652         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
9653         (ix86_rtx_costs): Ditto.
9654         * config/i386/i386.md (*movxi_internal_avx512f): Use
9655         nonimmediate_or_sse_const_operand instead of vector_move_operand.
9656         Use (v,BC) alternative instead of (v,C). Use register_operand
9657         checks instead of MEM_P.
9658         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
9659         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
9660         isa attribute.  Use register_operand checks instead of MEM_P.
9661         (*movti_internal): Use nonimmediate_or_sse_const_operand for
9662         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
9663         alternative and corresponding sse2 isa attribute.
9664         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
9665         to standard_sse_constant_p.
9666         (FP constant splitters): Ditto.
9667         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
9668         (C): Ditto.
9669         * config/i386/predicates.md (constm1_operand): Remove.
9670         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
9671         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
9672         vector_all_ones_operand instead of constm1_operand.
9673
9674 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9675
9676         * print-rtl.c (print_rtx_insn_vec): New function.
9677         * print-rtl.h: New prototype.
9678         * store-motion.c (struct st_expr): Make avail_stores a vector.
9679         (st_expr_entry): Adjust.
9680         (free_st_expr_entry): Likewise.
9681         (print_store_motion_mems): Likewise.
9682         (find_moveable_store): Likewise.
9683         (compute_store_table): Likewise.
9684         (delete_store): Likewise.
9685         (build_store_vectors): Likewise.
9686
9687 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9688
9689         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
9690
9691 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9692
9693         * vec.h (vec_safe_contains): New function.
9694         (vec::contains): Likewise.
9695         (vec::begin): Likewise.
9696         (vec::end): Likewise.
9697
9698 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
9699
9700         PR sanitizer/70712
9701         * cfgexpand.c (expand_stack_vars): Fix typo.
9702
9703 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9704
9705         * system.h (list, map, set, vector): Include conditionally.
9706         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
9707         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
9708         * ipa-icf.c (INCLUDE_LIST): Define.
9709         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
9710         * config/sh/sh.c (INCLUDE_VECTOR): Define.
9711         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
9712         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
9713         * cp/logic.cc (INCLUDE_LIST): Define.
9714         * fortran/trans-common.c (INCLUDE_MAP): Define.
9715
9716 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9717
9718         * auto-profile.c: Remove <string.h> include.
9719         * ipa-icf-gimple.c: Remove <list> include.
9720         * diagnostic.c: Remove <new> include.
9721         * genmatch.c: Likewise.
9722         * pretty-print.c: Likewise.
9723         * toplev.c: Likewise
9724         * c/c-objc-common.c: Likewise.
9725         * cp/error.c: Likewise.
9726         * fortran/error.c: Likewise.
9727
9728 2016-04-22  Richard Biener  <rguenther@suse.de>
9729
9730         * lto-streamer-in.c (input_ssa_names): Do not allocate
9731         GIMPLE_NOP for all SSA names.
9732         * lto-streamer-out.c (output_ssa_names): Do not output
9733         SSA names that should have been released.
9734
9735 2016-04-22  Richard Biener  <rguenther@suse.de>
9736
9737         PR tree-optimization/70740
9738         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
9739         VDEF.
9740
9741 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9742
9743         PR target/70750
9744         * config/i386/predicates.md (call_insn_operand): Replace
9745         sibcall_memory_operand with memory_operand.
9746
9747 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
9748
9749         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
9750         has_single_use() tests.
9751         (register_edge_assert_for_1): Likewise.
9752         (find_assert_locations_1): Check the liveness bitmap instead of
9753         checking has_single_use().
9754
9755 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9756
9757         PR target/70728
9758         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
9759         Extract AVX-512BW constraint from AVX.
9760
9761 2016-04-21  Richard Biener  <rguenther@suse.de>
9762
9763         PR tree-optimization/70725
9764         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
9765         for phi_convertible_by_degenerating_args.
9766         (predicate_all_scalar_phis): Handle single-argument PHIs.
9767
9768 2016-04-21  Richard Biener  <rguenther@suse.de>
9769
9770         PR middle-end/70747
9771         * fold-const.c (fold_comparison): Return properly typed
9772         constant boolean.
9773
9774 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
9775
9776         PR tree-optimization/70715
9777         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9778         after expanding BASE using expand_simple_operations.
9779
9780 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9781
9782         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
9783         New transformations.
9784
9785 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9786
9787         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
9788
9789 2016-04-20  Jan Hubicka  <jh@suse.cz>
9790
9791         * ipa-inline.c (can_inline_edge_p): Pass caller info to
9792         ultiimate_alias_target.
9793         (update_callee_keys): Likewise.
9794         (lookup_recursive_calls): Likewise.
9795         (speculation_useful_p): Likewise.
9796
9797 2016-04-20  Jan Hubicka  <jh@suse.cz>
9798
9799         PR ipa/70018
9800         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
9801         (set_nothrow_flag_1): ... this; handle interposition correctly;
9802         recurse on aliases and thunks.
9803         (cgraph_node::set_nothrow_flag): New.
9804         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
9805         functions compiled with non-call exceptions that binds to current
9806         def.
9807         (propagate_nothrow): Be safe WRT interposition.
9808         * cgraph.h (set_nothrow_flag): Update prototype.
9809
9810 2016-04-18  Jan Hubicka  <jh@suse.cz>
9811
9812         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9813         max_loop_iterations_int.
9814         (tree_unswitch_outer_loop): Likewise.
9815
9816 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9817
9818         PR tree-optimization/69489
9819         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
9820         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
9821         Revise dump message.
9822         (if_convertible_bb_p): Remove check on edge count of basic block's
9823         predecessors.
9824
9825 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9826
9827         PR tree-optimization/56625
9828         PR tree-optimization/69489
9829         * tree-data-ref.h (DR_INNERMOST): New macro.
9830         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
9831         hashing struct innermost_loop_behavior.
9832         (ref_DR_map): Remove.
9833         (innermost_DR_map): New map.
9834         (baseref_DR_map): Revise comment.
9835         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
9836         to innermost_DR_map accroding to its innermost loop behavior.
9837         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
9838         to its innermost loop behavior.
9839         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
9840         Add initialization for innermost_DR_map.  Record memory reference
9841         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
9842         have innermost loop behavior.
9843         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
9844         innermost_DR_map.
9845
9846 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
9847
9848         * config/i386/i386.md (*lea<mode>_general_1): Rename from
9849         *lea_general_1.  Use explicit SWI12 mode interator.
9850         (*lea<mode>_general_2): Rename from *lea_general_2.
9851         Use explicit SWI12 mode interator.
9852         (*lea<mode>_general_3): Rename from *lea_general_3.
9853         Use explicit SWI12 mode interator.
9854         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
9855         Use explicit SWI12 mode interator.
9856         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
9857         Use explicit SWI48 mode interator.
9858
9859 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9860
9861         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9862         Short-cut unaligned load and store cases.  Handle all integer
9863         vector modes.
9864         (ix86_expand_vector_move_misalign): Short-cut unaligned load
9865         and store cases.  Call ix86_avx256_split_vector_move_misalign
9866         directly without checking mode class.
9867
9868 2016-04-20  Andrew Pinski  <apinski@cavium.com>
9869             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9870
9871         PR target/64971
9872         * config/aarch64/aarch64.md (sibcall): Force call
9873         address to be DImode for ILP32.
9874         (sibcall_value): Likewise.
9875
9876 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9877
9878         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
9879
9880 2016-04-20  Richard Biener  <rguenther@suse.de>
9881
9882         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
9883         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
9884         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
9885         (maybe_push_res_to_seq): Adjust.
9886         * gimple-fold.c (maybe_build_generic_op): Likewise.
9887
9888 2016-04-20  Marek Polacek  <polacek@redhat.com>
9889
9890         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
9891         rather than true.
9892
9893 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
9894
9895         * config/i386/sse.md (vec_unpacks_lo_hi): Always
9896         use kmovw to support AVX512F target.
9897
9898 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9899
9900         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
9901
9902 2016-04-20  Marek Polacek  <polacek@redhat.com>
9903
9904         PR tree-optimization/70725
9905         * tree-if-conv.c (is_false_predicate): New function.
9906         (predicate_mem_writes): Use it.
9907
9908 2016-04-20  Richard Biener  <rguenther@suse.de>
9909
9910         PR tree-optimization/70726
9911         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
9912         shift amounts from a pattern stmt operand.
9913
9914 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9915
9916         PR target/70674
9917         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
9918         stack_restore_from_fpr pattern when restoring r15.
9919         (s390_optimize_prologue): Strip away the memory barrier in the
9920         parallel when trying to get rid of restore insns.
9921         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
9922         definition for loading the stack pointer from an FPR.  Compared to
9923         the normal move insn this pattern includes a full memory barrier.
9924
9925 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
9926
9927         PR middle-end/70680
9928         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
9929         implicitly linear or lastprivate iterator on the outer context.
9930
9931 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9932
9933         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
9934         alignment check.
9935         * config/i386/i386.md (ssememalign): Removed.
9936         * config/i386/sse.md: Remove ssememalign attribute from patterns.
9937
9938 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9939
9940         PR target/69201
9941         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
9942         const short * to __builtin_ia32_loaddquhi512_mask.
9943         (_mm512_maskz_loadu_epi16): Likewise.
9944         (_mm512_mask_storeu_epi16): Pass short * to
9945         __builtin_ia32_storedquhi512_mask.
9946         (_mm512_mask_loadu_epi8): Pass const char * to
9947         __builtin_ia32_loaddquqi512_mask.
9948         (_mm512_maskz_loadu_epi8): Likewise.
9949         (_mm512_mask_storeu_epi8): Pass char * to
9950         __builtin_ia32_storedquqi512_mask.
9951         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
9952         const double * to __builtin_ia32_loadupd512_mask.
9953         (_mm512_mask_loadu_pd): Likewise.
9954         (_mm512_maskz_loadu_pd): Likewise.
9955         (_mm512_storeu_pd): Pass double * to
9956         __builtin_ia32_storeupd512_mask.
9957         (_mm512_mask_storeu_pd): Likewise.
9958         (_mm512_loadu_ps): Pass const float * to
9959         __builtin_ia32_loadups512_mask.
9960         (_mm512_mask_loadu_ps): Likewise.
9961         (_mm512_maskz_loadu_ps): Likewise.
9962         (_mm512_storeu_ps): Pass float * to
9963         __builtin_ia32_storeups512_mask.
9964         (_mm512_mask_storeu_ps): Likewise.
9965         (_mm512_mask_loadu_epi64): Pass const long long * to
9966         __builtin_ia32_loaddqudi512_mask.
9967         (_mm512_maskz_loadu_epi64): Likewise.
9968         (_mm512_mask_storeu_epi64): Pass long long *
9969         to __builtin_ia32_storedqudi512_mask.
9970         (_mm512_loadu_si512): Pass const int * to
9971         __builtin_ia32_loaddqusi512_mask.
9972         (_mm512_mask_loadu_epi32): Likewise.
9973         (_mm512_maskz_loadu_epi32): Likewise.
9974         (_mm512_storeu_si512): Pass int * to
9975         __builtin_ia32_storedqusi512_mask.
9976         (_mm512_mask_storeu_epi32): Likewise.
9977         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
9978         char * to __builtin_ia32_storedquqi256_mask.
9979         (_mm_mask_storeu_epi8): Likewise.
9980         (_mm256_mask_loadu_epi16): Pass const short * to
9981         __builtin_ia32_loaddquhi256_mask.
9982         (_mm256_maskz_loadu_epi16): Likewise.
9983         (_mm_mask_loadu_epi16): Pass const short * to
9984         __builtin_ia32_loaddquhi128_mask.
9985         (_mm_maskz_loadu_epi16): Likewise.
9986         (_mm256_mask_loadu_epi8): Pass const char * to
9987         __builtin_ia32_loaddquqi256_mask.
9988         (_mm256_maskz_loadu_epi8): Likewise.
9989         (_mm_mask_loadu_epi8): Pass const char * to
9990         __builtin_ia32_loaddquqi128_mask.
9991         (_mm_maskz_loadu_epi8): Likewise.
9992         (_mm256_mask_storeu_epi16): Pass short * to.
9993         __builtin_ia32_storedquhi256_mask.
9994         (_mm_mask_storeu_epi16): Pass short * to.
9995         __builtin_ia32_storedquhi128_mask.
9996         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
9997         const double * to __builtin_ia32_loadupd256_mask.
9998         (_mm256_maskz_loadu_pd): Likewise.
9999         (_mm_mask_loadu_pd): Pass onst double * to
10000         __builtin_ia32_loadupd128_mask.
10001         (_mm_maskz_loadu_pd): Likewise.
10002         (_mm256_mask_storeu_pd): Pass double * to
10003         __builtin_ia32_storeupd256_mask.
10004         (_mm_mask_storeu_pd): Pass double * to
10005         __builtin_ia32_storeupd128_mask.
10006         (_mm256_mask_loadu_ps): Pass const float * to
10007         __builtin_ia32_loadups256_mask.
10008         (_mm256_maskz_loadu_ps): Likewise.
10009         (_mm_mask_loadu_ps): Pass const float * to
10010         __builtin_ia32_loadups128_mask.
10011         (_mm_maskz_loadu_ps): Likewise.
10012         (_mm256_mask_storeu_ps): Pass float * to
10013         __builtin_ia32_storeups256_mask.
10014         (_mm_mask_storeu_ps): ass float * to
10015         __builtin_ia32_storeups128_mask.
10016         (_mm256_mask_loadu_epi64): Pass const long long * to
10017         __builtin_ia32_loaddqudi256_mask.
10018         (_mm256_maskz_loadu_epi64): Likewise.
10019         (_mm_mask_loadu_epi64): Pass const long long * to
10020         __builtin_ia32_loaddqudi128_mask.
10021         (_mm_maskz_loadu_epi64): Likewise.
10022         (_mm256_mask_storeu_epi64): Pass long long * to
10023         __builtin_ia32_storedqudi256_mask.
10024         (_mm_mask_storeu_epi64): Pass long long * to
10025         __builtin_ia32_storedqudi128_mask.
10026         (_mm256_mask_loadu_epi32): Pass const int * to
10027         __builtin_ia32_loaddqusi256_mask.
10028         (_mm256_maskz_loadu_epi32): Likewise.
10029         (_mm_mask_loadu_epi32): Pass const int * to
10030         __builtin_ia32_loaddqusi128_mask.
10031         (_mm_maskz_loadu_epi32): Likewise.
10032         (_mm256_mask_storeu_epi32): Pass int * to
10033         __builtin_ia32_storedqusi256_mask.
10034         (_mm_mask_storeu_epi32): Pass int * to
10035         __builtin_ia32_storedqusi128_mask.
10036         * config/i386/i386-builtin-types.def (PCSHORT): New.
10037         (PINT64): Likewise.
10038         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
10039         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
10040         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
10041         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
10042         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
10043         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
10044         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
10045         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
10046         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
10047         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
10048         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
10049         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
10050         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
10051         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
10052         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
10053         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
10054         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
10055         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
10056         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
10057         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
10058         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
10059         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
10060         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
10061         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
10062         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
10063         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
10064         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
10065         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
10066         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
10067         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
10068         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
10069         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
10070         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
10071         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
10072         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
10073         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
10074         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
10075         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
10076         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
10077         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
10078         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
10079         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
10080         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
10081         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
10082         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
10083         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
10084         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
10085         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
10086         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
10087         use UNSPEC_STOREU.
10088         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
10089         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
10090         load nor store.
10091         (ix86_expand_vector_move_misalign): Likewise.
10092         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
10093         to scalar function prototype for unaligned load/store builtins.
10094         (ix86_expand_special_args_builtin): Updated.
10095         * config/i386/sse.md (UNSPEC_LOADU): Removed.
10096         (UNSPEC_STOREU): Likewise.
10097         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
10098         (VI_ULOADSTORE_F_AVX512VL): Likewise.
10099         (ssescalarsize): Handle V4TI, V2TI and V1TI.
10100         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10101         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10102         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
10103         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
10104         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10105         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10106         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10107         (<avx512>_storedqu<mode>_mask): Likewise.
10108         (*sse4_2_pcmpestr_unaligned): Likewise.
10109         (*sse4_2_pcmpistr_unaligned): Likewise.
10110         (*mov<mode>_internal): Renamed to ...
10111         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
10112         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10113         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10114         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10115
10116 2016-04-19  Richard Biener  <rguenther@suse.de>
10117
10118         PR tree-optimization/70171
10119         * tree-ssa-phiprop.c: Include stor-layout.h.
10120         (phiprop_insert_phi): Handle the aggregate copy case.
10121         (propagate_with_phi): Likewise.
10122
10123 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
10124
10125         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10126         instead of simplify_gen_subreg (... , 0).
10127         (ix86_delegitimize_address): Ditto.
10128         (ix86_split_divmod): Ditto.
10129         (ix86_split_copysign_const): Ditto.
10130         (ix86_split_copysign_var): Ditto.
10131         (ix86_expand_args_builtin): Ditto.
10132         (ix86_expand_round_builtin): Ditto.
10133         (ix86_expand_special_args_builtin): Ditto.
10134         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10135         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10136         (udivmodqi4): Ditto.
10137         (absneg splitters): Ditto.
10138         (*jcc_bt<mode>_1): Ditto.
10139
10140 2016-04-19  Richard Biener  <rguenther@suse.de>
10141
10142         PR tree-optimization/70724
10143         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10144         restoring out from ...
10145         (free_scc_vn): ... here.
10146         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10147         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10148         tail merging.
10149         (pass_fre::execute): Restore SSA info.
10150
10151 2016-04-19  Richard Biener  <rguenther@suse.de>
10152
10153         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10154         * gimple-walk.c (walk_gimple_op): Initialize it.
10155         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10156         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10157         remapping SSA names of defs.
10158         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10159         adjustment.
10160
10161 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
10162
10163         PR middle-end/70689
10164         * lra-constraints.c (equiv_substition_p): New.
10165         (process_alt_operands): Use it.
10166         (swap_operands): Swap it.
10167         (curr_insn_transform): Update it.
10168
10169 2016-04-18  Michael Matz  <matz@suse.de>
10170
10171         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10172         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10173         * tree-core.h (tree_type_common.align): Use bit-field.
10174         (tree_type_common.spare): New.
10175         (tree_decl_common.off_align): Make smaller.
10176         (tree_decl_common.align): Use bit-field.
10177
10178         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10179         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10180         (scan_sharing_clauses): Ditto.
10181         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10182         (omp_finish_file): Ditto.
10183         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10184         (layout_decl): Ditto.
10185         (relayout_decl): Ditto.
10186         (finalize_record_size): Use SET_TYPE_ALIGN.
10187         (finalize_type_size): Ditto.
10188         (finish_builtin_struct): Ditto.
10189         (layout_type): Ditto.
10190         (initialize_sizetypes): Ditto.
10191         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10192         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10193         (lookup_field_for_decl): Use SET_DECL_ALIGN.
10194         (get_chain_field): Ditto.
10195         (get_trampoline_type): Ditto.
10196         (get_nl_goto_field): Ditto.
10197         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10198         SET_DECL_ALIGN.
10199         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10200         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10201         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10202         (build_qualified_type): Use SET_TYPE_ALIGN.
10203         (build_aligned_type, build_range_type_1): Ditto.
10204         (build_atomic_base): Ditto.
10205         (build_common_tree_nodes): Ditto.
10206         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10207         (expand_one_stack_var_at): Ditto.
10208         * coverage.c (build_var): Use SET_DECL_ALIGN.
10209         * except.c (init_eh): Ditto.
10210         * function.c (assign_parm_setup_block): Ditto.
10211         * symtab.c (increase_alignment_1): Ditto.
10212         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10213         * tree-vect-stmts.c (ensure_base_align): Ditto.
10214         * varasm.c (align_variable): Ditto.
10215         (assemble_variable): Ditto.
10216         (build_constant_desc): Ditto.
10217         (output_constant_def_contents): Ditto.
10218
10219         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
10220         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
10221         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
10222         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
10223         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
10224
10225 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
10226
10227         PR target/70708
10228         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
10229         replace %vmovsd with "%vmovq".
10230         (vec_concatv2df): Likewise.
10231
10232 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
10233
10234         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
10235         (*vec_extractv2si_0): Ditto.
10236         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
10237         (zero_extended_scalar_load_operand splitters): Ditto.
10238         (vec_extract splitters): Ditto.
10239         (*vec_extractv4si_0_zext): Ditto.
10240         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
10241         and lowpart_subreg.
10242         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
10243         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
10244         (*sse4_1_extractps): Use lowpart_subreg.
10245         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
10246
10247 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10248
10249         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
10250         gld requirements.
10251         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
10252         Mention Solaris 11 packaging changes.
10253         Update gas and gld requirements.
10254         Remove reference to pre-Solaris 10 bug.
10255         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10256         systems and bugs.
10257         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10258         with cc.
10259
10260 2016-04-17  Jan Hubicka  <jh@suse.cz>
10261
10262         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10263         max_loop_iterations_int.
10264
10265 2016-04-18  Richard Biener  <rguenther@suse.de>
10266
10267         PR tree-optimization/43434
10268         * tree-ssa-structalias.c (struct vls_data): New.
10269         (visit_loadstore): Handle all pointer-based accesses.
10270         (compute_dependence_clique): Compute a bitmap of restrict tags
10271         assigned bases and pass it to visit_loadstore.
10272
10273 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10274
10275         PR target/70711
10276         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10277         armv8.1-a and armv8.1-a+crc.
10278
10279 2016-04-18  Richard Biener  <rguenther@suse.de>
10280
10281         PR tree-optimization/70701
10282         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10283         references after translating through a memcpy.
10284
10285 2016-04-18  Richard Biener  <rguenther@suse.de>
10286
10287         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10288         (compute_antic): ... here.  For partial antic use regular
10289         postorder and scrap iteration.
10290         (compute_partial_antic_aux): Remove unused return value.
10291         (init_pre): Do not allocate postorder.
10292         (fini_pre): Do not free postorder.
10293
10294 2016-04-18  Richard Biener  <rguenther@suse.de>
10295
10296         PR middle-end/37870
10297         * expmed.c (extract_bit_field_1): Remove broken case
10298         using a wider MODE_INT mode.
10299
10300 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10301
10302         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10303         unless compiling with at least GCC-4.8.
10304
10305 2016-04-17  Jan Hubicka  <jh@suse.cz>
10306
10307         PR bootstrap/70706
10308         * graphite.c (graphite_finalize): Update call to
10309         tree_estimate_probability.
10310         * predict.h (tree_estimate_probability): Update prototype.
10311
10312 2016-04-17  Jan Hubicka  <jh@suse.cz>
10313
10314         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10315         (tree_estimate_probability): Likewise.
10316         (pass_profile::execute): Update.
10317         (report_predictor_hitrates): New function.
10318         * profile.c (compute_branch_probabilities): Use it.
10319         * predict.h (report_predictor_hitrates): Declare.
10320
10321 2016-04-17  Jan Hubicka  <jh@suse.cz>
10322
10323         PR ipa/70018
10324         * cgraph.h (cgraph_node::set_const_flag,
10325         cgraph_node::set_pure_flag): Update prototype to return bool;
10326         update comment.
10327         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10328         of interposable symbol are interposable, too.
10329         (cgraph_set_const_flag_1): Rename to ...
10330         (set_const_flag_1): ... this one; change to self recursive function
10331         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10332         clearnig the flag in all variants and also virtual thunks of const
10333         functions are pure; track if any change was done.
10334         (cgraph_node::set_const_flag): Update.
10335         (struct set_pure_flag_info): New struct.
10336         (cgraph_set_pure_flag_1): Rename to ...
10337         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10338         rather than pointer encoded flags; track if any changes was done;
10339         handle correctly clearning flag and setting flag of aliases already
10340         declared const.
10341         (cgraph_node::set_pure_flag): Update.
10342         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10343
10344 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10345
10346         PR other/70433
10347         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10348         backslash in label.
10349
10350 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10351
10352         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10353         '{}<> ' as escape-for-record.
10354
10355 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10356
10357         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10358         structure.
10359
10360 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10361
10362         PR other/70185
10363         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10364         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10365         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10366         * passes.c (finish_optimization_passes): Only call
10367         finish_graph_dump_file if dfi->graph_dump_initialized.
10368         (execute_function_dump, pass_init_dump_file): Use
10369         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10370
10371 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10372
10373         PR tree-optimization/70256
10374         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10375         (debug_varmap): New function.
10376
10377 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10378
10379         PR other/70183
10380         * passes.c (pass_manager::register_pass): Propagate pflags.
10381
10382 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10383
10384         PR other/68875
10385         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10386         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10387         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10388         check if it's equal to p_start.
10389         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10390
10391 2016-04-15  Jan Hubicka  <jh@suse.cz>
10392
10393         PR ipa/70018
10394         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10395         function does not bind to current def.
10396         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10397         handle conservatively calls to functions that does not need to bind
10398         to current def.
10399         (check_call): Update call of worse_state.
10400         (ignore_edge_for_nothrow): Update.
10401         (ignore_edge_for_pure_const): Likewise.
10402         (propagate_pure_const): Update calls to worse_state.
10403         (skip_function_for_local_pure_const): Reformat comments.
10404
10405 2016-04-15  Jan Hubicka  <jh@suse.cz>
10406
10407         PR ipa/70018
10408         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
10409         (cgraph_node::function_symbol): Likewise.
10410         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10411         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
10412         (symtab_node::ultimate_alias_target): Add REF parameter.
10413         (symtab_node::binds_to_current_def_p): Declare.
10414         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
10415         (cgraph_node::function_symbol): Likewise.
10416         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10417         (cgraph_node::get_availability): Likewise.
10418         (cgraph_edge::binds_to_current_def_p): New inline function.
10419         (varpool_node::get_availability): Add REF parameter.
10420         (varpool_node::ultimate_alias_target): Likewise.
10421         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
10422         (symtab_node::binds_to_current_def_p): Likewise.
10423         * varpool.c (varpool_node::get_availability): Likewise.
10424
10425 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10426
10427         PR target/70662
10428         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
10429         Fix mode size check.
10430
10431 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10432
10433         * BASE-VER: Set to 7.0.0.
10434
10435 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
10436
10437         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
10438
10439 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10440
10441         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
10442         architecture revisions.
10443
10444 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
10445
10446         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
10447         * config/i386/i386.c (ix86_using_red_zone): No longer static.
10448         * config/i386/i386.md (stack decrement to push peepholes): Guard
10449         with !x86_using_red_zone ().
10450
10451 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10452
10453         PR c++/70675
10454         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
10455         to dump_generic_node.
10456         (NIY): Pass also flags to do_niy.
10457
10458 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10459
10460         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
10461         (simd_clone_vector_of_formal_parm_types)
10462         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
10463         (simd_clone_mangle, simd_clone_create)
10464         (simd_clone_adjust_return_type, create_tmp_simd_array)
10465         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
10466         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
10467         (ipa_simd_modify_function_body, simd_clone_linear_addend)
10468         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
10469         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
10470         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
10471         * omp-simd-clone.c: ... this new file.
10472         (simd_clone_vector_of_formal_parm_types): Make it static.
10473         * Makefile.in (OBJS): Add omp-simd-clone.o.
10474
10475 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10476
10477         PR target/70662
10478         * config/i386/sse.md: Use proper memory operand modifiers.
10479
10480
10481 2016-04-15  Richard Biener  <rguenther@suse.de>
10482         Alan Modra  <amodra@gmail.com>
10483
10484         PR tree-optimization/70130
10485         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
10486         when alignment stays not the same and no not use the realign
10487         scheme then.
10488
10489 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10490
10491         PR target/70669
10492         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10493         direct move handlers for KFmode. Change TFmode handlers test from
10494         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
10495
10496 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
10497
10498         PR c++/70594
10499         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
10500         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
10501         (inlined_polymorphic_ctor_dtor_block_p): Use it.
10502         * tree-ssa-live.c (remove_unused_scope_block_p): When
10503         in_ctor_dtor_block, avoid discarding not just BLOCKs with
10504         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
10505         block_ultimate_origin is FUNCTION_DECL.
10506         (remove_unused_locals): If current_function_decl is
10507         polymorphic_ctor_dtor_p, pass initial true to
10508         remove_unused_scope_block_p' is_ctor_dtor_block.
10509
10510 2016-04-14  Martin Sebor  <msebor@redhat.com>
10511
10512         PR c++/69517
10513         PR c++/70019
10514         PR c++/70588
10515         * doc/extend.texi (Variable Length): Revert.
10516
10517 2016-04-14  Marek Polacek  <polacek@redhat.com>
10518             Jan Hubicka  <hubicka@ucw.cz>
10519
10520         PR c++/70029
10521         * tree.c (verify_type): Disable the canonical type of main variant
10522         check.
10523
10524 2016-04-14  Jason Merrill  <jason@redhat.com>
10525
10526         * cfgexpand.c, expr.c: Revert previous change.
10527
10528 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10529
10530         PR middle-end/70643
10531         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
10532         when building a mem ref for the incoming reduction variable.
10533
10534 2016-04-14  Richard Biener  <rguenther@suse.de>
10535
10536         PR tree-optimization/70614
10537         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
10538         loop if the evolution dropped to chrec_dont_know.
10539         (interpret_condition_phi): Likewise.
10540
10541 2016-04-14  Richard Biener  <rguenther@suse.de>
10542
10543         PR tree-optimization/70623
10544         * tree-ssa-pre.c (changed_blocks): Make global ...
10545         (compute_antic): ... local here.  Move and fix worklist
10546         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
10547         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
10548         worklist handling, dump when ANTIC_IN changed.
10549         (compute_partial_antic_aux): Remove worklist handling.
10550         (init_pre): Do not compute post dominators.  Add a comment about
10551         the CFG order chosen.
10552         (fini_pre): Do not free post dominators.
10553
10554 2016-04-13  Martin Sebor  <msebor@redhat.com>
10555
10556         PR c++/69517
10557         PR c++/70019
10558         PR c++/70588
10559         * doc/extend.texi (Variable Length): Document C++ specifics.
10560
10561 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10562
10563         PR c++/70641
10564         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
10565         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
10566         eh edges have been purged.
10567
10568         PR c++/70594
10569         * tree-sra.c (create_access_replacement,
10570         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
10571         gets fancy name.
10572         * tree-pretty-print.c (dump_fancy_name): New function.
10573         (dump_decl_name, dump_generic_node): Use it.
10574
10575 2016-04-13  Jason Merrill  <jason@redhat.com>
10576
10577         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
10578         * expr.c (expand_expr_real_1): Likewise.
10579
10580 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10581
10582         * config/i386/i386.md (kunpckhi): Swap operands.
10583         (kunpcksi): Likewise.
10584         (kunpckdi): Likewise.
10585         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
10586         (vec_pack_trunc_<mode>): Likewise.
10587
10588 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10589
10590         PR debug/70628
10591         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
10592
10593         PR middle-end/70633
10594         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
10595         gimplification turns some element into non-constant.
10596
10597         PR debug/70628
10598         * rtl.h (convert_memory_address_addr_space_1): New prototype.
10599         * explow.c (convert_memory_address_addr_space_1): No longer static,
10600         add NO_EMIT argument and don't call convert_modes if true, pass
10601         it down recursively, remove break after return.
10602         (convert_memory_address_addr_space): Adjust caller.
10603         * simplify-rtx.c (simplify_unary_operation_1): Call
10604         convert_memory_address_addr_space_1 instead of convert_memory_address,
10605         if it returns NULL, don't simplify.
10606
10607 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10608
10609         PR target/70630
10610         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
10611
10612 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10613
10614         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10615         Bump the upper SIMDLEN limits, so that if the return type or
10616         characteristic type if the return type is void can be passed in
10617         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
10618         allowed.
10619
10620 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10621
10622         PR target/70640
10623         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
10624         Do not use "=" constraint on an input constraint.
10625         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10626         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10627         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
10628         generates (neg (abs ...)) instead of (abs ...).
10629
10630 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10631
10632         PR rtl-optimization/70596
10633         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
10634         just invalidate LRA data and reset them.  Adjust dump wording.
10635
10636 2016-04-12  Martin Liska  <mliska@suse.cz>
10637
10638         Revert
10639         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10640
10641         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10642         estimates here.
10643         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10644         max_loop_iterations_int.
10645         (tree_unswitch_outer_loop): Likewise.
10646         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10647         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10648
10649 2016-04-12  Tom de Vries  <tom@codesourcery.com>
10650
10651         PR tree-optimization/68756
10652         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
10653         instead of new_name.
10654
10655 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10656
10657         PR tree-optimization/70602
10658         * tree-sra.c (generate_subtree_copies): Don't write anything into
10659         constant pool decls.
10660
10661         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
10662         regardless whether there are depend clauses or not.
10663
10664 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10665
10666         PR target/70381
10667         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
10668         target attribute and pragma from changing the -mfloat128
10669         and -mfloat128-hardware options.
10670
10671         * doc/extend.texi (Additional Floating Types): Document PowerPC
10672         __float128 restrictions.
10673
10674 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10675
10676         PR target/70133
10677         * config/aarch64/driver-aarch64.c
10678         (aarch64_get_extension_string_for_isa_flags): New.
10679         (arch_extension): Rename to...
10680         (aarch64_arch_extension): ...This.
10681         (ext_to_feat_string): Rename to...
10682         (aarch64_extensions): ...This.
10683         (aarch64_core_data): Keep track of architecture extension flags.
10684         (cpu_data): Rename to...
10685         (aarch64_cpu_data): ...This.
10686         (aarch64_arch_driver_info): Keep track of architecture extension
10687         flags.
10688         (get_arch_name_from_id): Rename to...
10689         (get_arch_from_id): ...This, change return type.
10690         (host_detect_local_cpu): Update and reformat for renames, handle
10691         extensions through common infrastructure.
10692
10693 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10694
10695         PR target/70133
10696         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
10697         track of a canonical flag name.
10698         (all_extensions): Likewise.
10699         (arch_to_arch_name): Also track extension flags enabled by the arch.
10700         (all_architectures): Likewise.
10701         (aarch64_parse_extension): Move to here.
10702         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
10703         rework.
10704         (aarch64_rewrite_selected_cpu): Update for above change.
10705         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
10706         are handled, such that the single explicit value enabled by an
10707         extension is kept seperate from the implicit values it also enables.
10708         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
10709         to here.
10710         (aarch64_parse_extension): New.
10711         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
10712         here to config/aarch64/aarch64-protos.h.
10713         (aarch64_parse_extension): Move from here to
10714         common/config/aarch64/aarch64-common.c.
10715         (aarch64_option_print): Update.
10716         (aarch64_declare_function_name): Likewise.
10717         (aarch64_start_file): Likewise.
10718         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
10719         the canonical flag for extensions.
10720         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
10721         flags.
10722
10723 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10724
10725         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
10726         AARCH64_FL_CRC.
10727
10728 2016-04-09  Tom de Vries  <tom@codesourcery.com>
10729
10730         PR tree-optimization/68953
10731         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
10732         first to last subscript.
10733
10734 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
10735
10736         PR tree-optimization/70586
10737         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
10738         for any calls.
10739
10740 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10741
10742         PR lto/70289
10743         PR ipa/70348
10744         PR tree-optimization/70373
10745         PR middle-end/70533
10746         PR middle-end/70534
10747         PR middle-end/70535
10748         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
10749         clauses for acc parallel reductions as necessary.  Error on those
10750         that are private.
10751         * omp-low.c (scan_sharing_clauses): Don't install variables which
10752         are used in acc parallel reductions.
10753         (lower_rec_input_clauses): Remove dead code.
10754         (lower_oacc_reductions): Add support for reference reductions.
10755         (lower_reduction_clauses): Remove dead code.
10756         (lower_omp_target): Don't remap variables appearing in acc parallel
10757         reductions.
10758         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
10759
10760 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
10761
10762         PR middle-end/70593
10763         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
10764         with multiple SSA_NAME defs, force the outputs other than first
10765         to be live before calling live_track_process_def on each output.
10766
10767         PR rtl-optimization/70574
10768         * fwprop.c (forward_propagate_and_simplify): Don't add
10769         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
10770         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
10771         paradoxical subregs within *loc.
10772
10773 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
10774
10775         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
10776         -ftree-parallelize-loops={0,1}.
10777         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10778         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10779         * config/ia64/hpux.h (LIB_SPEC): Likewise.
10780         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10781         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10782
10783 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
10784
10785         PR sanitizer/70541
10786         * asan.c (instrument_derefs): If we get unknown location, extract it
10787         with EXPR_LOCATION.
10788         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
10789
10790 2016-04-08  Tom de Vries  <tom@codesourcery.com>
10791
10792         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
10793         implicit firstprivate clause.
10794
10795 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10796
10797         PR target/70566
10798         * config/arm/thumb2.md (tst + branch-> lsls + branch
10799         peephole below *orsi_not_shiftsi_si): Require that condition
10800         register is dead after the peephole.
10801         (second peephole after the above): Likewise.
10802
10803 2016-04-08  Alan Modra  <amodra@gmail.com>
10804
10805         PR target/70117
10806         * builtins.c (fold_builtin_classify): For IBM extended precision,
10807         look at just the high-order double to test for NaN.
10808         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
10809         test just the high double for Inf but both doubles for subnormal
10810         limit.
10811
10812 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
10813
10814         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
10815         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
10816         node->simdclone->mask_mode != VOIDmode masks.
10817         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
10818         earlier, use it instead of node->simdclone.
10819         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10820         Set clonei->mask_mode.
10821
10822 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10823
10824         PR c/70436
10825         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
10826         Pass it through to cp_parser_already_scoped_statement.
10827         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
10828         it through to cp_parser_statement.
10829         (cp_parser_statement): Pass IF_P through to
10830         cp_parser_iteration_statement.
10831         (cp_parser_pragma): Adjust call to
10832         cp_parser_iteration_statement.
10833
10834 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10835
10836         PR c/70436
10837         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
10838         resolve a future -Wparentheses warning.
10839         * omp-low.c (scan_sharing_clauses): Likewise.
10840         * tree-parloops.c (eliminate_local_variables): Likewise.
10841
10842 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
10843
10844         PR rtl-optimization/70398
10845         * lra-constraints.c (process_address_1): Check zero scale and code
10846         for reloading with zero scale.
10847
10848 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
10849
10850         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
10851         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
10852
10853 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
10854
10855         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10856         Add support for AVX512F clones, include them by default for
10857         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
10858         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
10859         up to 128.
10860
10861         PR middle-end/70550
10862         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
10863         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
10864         firstprivate clauses.
10865         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
10866         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
10867         (lower_omp_target): Set TREE_NO_WARNING for
10868         non-addressable possibly uninitialized vars which are copied into
10869         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
10870
10871 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
10872
10873         * config/pa/predicates.md (integer_store_memory_operand): Accept
10874         REG+D operands with a large offset when reload_in_progress is true.
10875         (floating_point_store_memory_operand): Likewise.
10876
10877 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10878
10879         PR c++/70336
10880         * match.pd (nested int casts): Limit to GIMPLE.
10881
10882 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
10883
10884         PR ipa/66223
10885         * ipa-devirt.c (maybe_record_node): Fix comment; use
10886         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
10887
10888 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10889
10890         PR rtl-optimization/70542
10891         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
10892         if there are any uses other than insn or debug insns.
10893
10894 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
10895             Jakub Jelinek  <jakub@redhat.com>
10896
10897         PR tree-optimization/70509
10898         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
10899         Shift HOST_WIDE_INT_1U instead of 1.
10900
10901 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
10902
10903         PR tree-optimization/70509
10904         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
10905         of the vector base type for index.
10906
10907 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
10908
10909         PR target/70510
10910         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
10911
10912 2016-04-05  Richard Biener  <rguenther@suse.de>
10913
10914         PR tree-optimization/70526
10915         * tree-sra.c (build_ref_for_offset): Use prev_base to
10916         extract the alias pointer type.
10917
10918 2016-04-05  Richard Biener  <rguenther@suse.de>
10919
10920         * dse.c (struct store_info): Remove alias_set member.
10921         (struct read_info_type): Likewise.
10922         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
10923         spill_deleted, clear_alias_set_lookup): Remove.
10924         (get_group_info): Remove dead base == NULL_RTX case.
10925         (dse_step0): Remove initialization of removed variables.
10926         (delete_dead_store_insn): Reomve alias set dumping.
10927         (free_read_records): Remove alias_set handling.
10928         (canon_address): Remove alias_set_out parameter.
10929         (record_store): Remove spill_alias_set, it's always zero.
10930         (check_mem_read_rtx): Likewise.
10931         (dse_step2): Rename from ...
10932         (dse_step2_nospill): ... this.  Adjust.
10933         (scan_stores): Rename from ...
10934         (scan_stores_nospill): ... this.
10935         (scan_reads): Rename from ...
10936         (scan_reads_nospill): ... this.
10937         (scan_stores_spill, scan_reads_spill): Remove.
10938         (dse_step3_scan): Remove for_spills argument which is always false.
10939         (dse_step3): Likewise.
10940         (dse_step5): Rename from ...
10941         (dse_step5_nospill): ... this.  Remove alias_set handling.
10942         (rest_of_handle_dse): Adjust.
10943
10944 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10945
10946         PR target/70525
10947         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
10948         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
10949         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
10950         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
10951
10952 2016-04-05  Richard Biener  <rguenther@suse.de>
10953
10954         PR middle-end/70499
10955         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
10956         non-register type temporaries into SSA.
10957
10958 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
10959
10960         PR ipa/66223
10961         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
10962         calls when sanitizing.
10963         (possible_polymorphic_call_target_p): Fix formatting.
10964
10965 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10966             Jakub Jelinek <jakub@redhat.com>
10967
10968         PR middle-end/70457
10969         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
10970         to ensure a call statement is compatible with a built-in's
10971         prototype.
10972         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
10973         Likewise.
10974
10975 2016-04-04  Richard Biener  <rguenther@suse.de>
10976
10977         PR rtl-optimization/70484
10978         * rtl.h (canon_output_dependence): Declare.
10979         * alias.c (canon_output_dependence): New function.
10980         * dse.c (record_store): Use canon_output_dependence rather
10981         than canon_true_dependence.
10982
10983 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10984
10985         PR ipa/68881
10986         * cgraph.h (symtab_node::copy_visibility_from): New function.
10987         * symtab.c (symtab_node::copy_visibility_from): New function.
10988         * ipa-visibility.c (optimize_weakref): New function.
10989         (function_and_variable_visibility): Use it.
10990
10991 2016-04-04  Martin Liska  <mliska@suse.cz>
10992
10993         PR hsa/70402
10994         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
10995         value that is really in range handled by SBR instruction.
10996         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
10997         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
10998         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
10999
11000 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
11001
11002         PR target/70416
11003         PR target/67391
11004         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
11005         set, but not for SP_REG operands.
11006
11007 2016-04-02  Martin Sebor  <msebor@redhat.com>
11008
11009         PR c++/67376
11010         * fold-const.c (maybe_nonzero_address): New function.
11011         (fold_comparison): Call it.  Fold equality and relational
11012         expressions involving null pointers.
11013         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
11014
11015 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
11016
11017         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
11018         the "Y" constraint (scalar FP 0.0 immediate).
11019
11020         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
11021         Add the "const_double" to the list of operand constraints.
11022
11023 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
11024
11025         PR rtl-optimization/70467
11026         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
11027         If low word of the last operand is 0, just emit addition/subtraction
11028         for the high word.
11029
11030 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11031
11032         PR target/70404
11033         * config/s390/s390.c (s390_expand_insv): Check for everything
11034         constant instead of just VOIDmode stuff.
11035
11036 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11037
11038         PR target/70496
11039         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
11040
11041 2016-04-01  Nathan Sidwell  <nathan@acm.org>
11042
11043         * tree.def (TRY_CATCH_EXPR): Correct documentation.
11044
11045 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11046
11047         PR rtl-optimization/70461
11048         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
11049         is necessary.
11050
11051 2016-03-31  Martin Liska  <mliska@suse.cz>
11052
11053         PR hsa/70399
11054         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
11055         a tree value or an immediate integer value to a buffer
11056         that is eventually copied to a BRIG section.
11057         (emit_immediate_operand): Call the function here.
11058         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
11059         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
11060         of class' fields that are removed.
11061         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
11062         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
11063         m_brig_repr_size fields.
11064
11065 2016-03-31  Martin Liska  <mliska@suse.cz>
11066
11067         PR hsa/70391
11068         * hsa-gen.c (hsa_function_representation::update_dominance): New
11069         function.
11070         (convert_addr_to_flat_segment): Likewise.
11071         (gen_hsa_memory_set): New alignment argument.
11072         (gen_hsa_ctor_assignment): Likewise.
11073         (gen_hsa_insns_for_single_assignment): Provide alignment
11074         to gen_hsa_ctor_assignment.
11075         (gen_hsa_insns_for_direct_call): Add new argument.
11076         (expand_lhs_of_string_op): New function.
11077         (expand_string_operation_builtin): Likewise.
11078         (expand_memory_copy): New function.
11079         (expand_memory_set): New function.
11080         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
11081         (convert_switch_statements): Change signature.
11082         (generate_hsa): Use a return value of the function.
11083         (pass_gen_hsail::execute): Do not call
11084         convert_switch_statements here.
11085         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
11086         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
11087         (hsa_function_representation::update_dominance): New function.
11088
11089 2016-03-31  Martin Liska  <mliska@suse.cz>
11090
11091         PR hsa/70391
11092         * hsa-brig.c (emit_directive_variable): Emit alignment
11093         according to hsa_symbol::m_align.
11094         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
11095         (dump_hsa_symbol): Dump alignment of HSA symbols.
11096         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
11097         (gen_hsa_addr_with_align): New function.
11098         (hsa_bitmemref_alignment): Use newly added function.
11099         (gen_hsa_insns_for_load): Likewise.
11100         (gen_hsa_insns_for_store): Likewise.
11101         (gen_hsa_memory_copy): New argument added.
11102         (gen_hsa_insns_for_single_assignment): Respect
11103         alignment for assignments processed via gen_hsa_memory_copy.
11104         (gen_hsa_insns_for_direct_call): Likewise.
11105         (gen_hsa_insns_for_return): Likewise.
11106         (gen_function_def_parameters): Set default alignment.
11107         * hsa.c (hsa_object_alignment): New function.
11108         (hsa_byte_alignment): Pasted function.
11109         * hsa.h (hsa_symbol::m_align): New field.
11110
11111 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11112
11113         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11114         scratch field for goto case.
11115
11116 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
11117
11118         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11119
11120 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
11121
11122         PR target/70442
11123         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11124         (scalar_chain::convert_insn): Call convert_op for reg
11125         moves to handle undefined registers.
11126
11127 2016-03-31  Nathan Sidwell  <nathan@acm.org>
11128
11129         PR c++/70393
11130         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11131         Assert we don't want to move backwards.
11132
11133 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11134
11135         PR target/70453
11136         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11137
11138 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
11139
11140         PR rtl-optimization/70460
11141         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11142         with operand from REG_LABEL_OPERAND, instead substitute
11143         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11144         Don't do anything for REG_NON_LOCAL_GOTO jumps.
11145
11146 2016-03-31  Martin Liska  <mliska@suse.cz>
11147
11148         * passes.c (execute_one_pass): Do not call
11149         todo_after for a discarded function.
11150
11151 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11152
11153         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11154         (no_cost, infinite_cost): Initialize the new field.
11155         (get_computation_cost_at): Record setup cost.
11156         (determine_use_iv_cost_address): Skip cost computation for sub
11157         uses if we can estimate it without losing accuracy.
11158
11159 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11160
11161         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11162         estimates here.
11163         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11164         max_loop_iterations_int.
11165         (tree_unswitch_outer_loop): Likewise.
11166         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11167         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11168
11169 2016-03-30  Richard Biener  <rguenther@suse.de>
11170
11171         PR middle-end/70450
11172         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11173
11174 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
11175
11176         PR target/70421
11177         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11178         in gen_blendm expander.
11179
11180 2016-03-30  Nick Clifton  <nickc@redhat.com>
11181
11182         PR target/62254
11183         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11184         case where we are already provided with an SImode SUBREG.
11185
11186 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11187
11188         PR target/70439
11189         * config/i386/i386.c (ix86_expand_epilogue): Properly check
11190         conflict between DRAP register and __builtin_eh_return.
11191
11192 2016-03-30  Michael Matz  <matz@suse.de>
11193             Richard Biener  <rguenther@suse.de>
11194
11195         PR ipa/12392
11196         * ipa-polymorphic-call.c (struct type_change_info): Change
11197         speculative to an unsigned allowing to limit the work we do.
11198         (csftc_abort_walking_p): New inline function..
11199         (check_stmt_for_type_change): Limit the number of may-defs
11200         skipped for speculative devirtualization to
11201         max-speculative-devirt-maydefs.
11202         * params.def (max-speculative-devirt-maydefs): New param.
11203         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11204
11205 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
11206
11207         PR target/63890
11208         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11209         and TARGET_MACHO.
11210
11211 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
11212
11213         PR tree-optimization/59124
11214         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
11215         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
11216
11217 2016-03-29  Jeff Law  <law@redhat.com>
11218
11219         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
11220
11221 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11222
11223         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
11224         to HOST_WIDE_INT.
11225
11226 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11227
11228         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
11229         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
11230         gcrt0.o if linking dynamically.
11231
11232 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11233
11234         PR ipa/70283
11235         * ipa-devirt.c (methods_equal_p): New function.
11236         (compare_virtual_tables): Use it.
11237         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
11238         * cgraphclones.c (clone_function_name_1): Use
11239         symbol_table::symbol_suffix_separator.
11240         * coverage.c (build_var): Likewise.
11241         * symtab.c (symbol_table::symbol_suffix_separator): New.
11242
11243 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
11244
11245         PR rtl-optimization/70429
11246         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
11247         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
11248         mode != result_mode.
11249
11250         PR c++/70353
11251         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
11252
11253         PR tree-optimization/70405
11254         * ssa-iterators.h (num_imm_uses): Add missing braces.
11255
11256 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11257
11258         PR rtl-optimization/68695
11259         * ira-color.c (allocno_copy_cost_saving): New.
11260         (improve_allocation): Use it.
11261
11262 2016-03-29  Richard Henderson  <rth@redhat.com>
11263
11264         PR middle-end/70355
11265         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11266
11267 2016-03-29  Richard Biener  <rguenther@suse.de>
11268
11269         PR middle-end/70424
11270         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11271         use alignment returned by get_pointer_alignment_1 if it is
11272         bigger than BITS_PER_UNIT.
11273         * builtins.c (get_pointer_alignment_1): Do not return true
11274         for alignment extracted from SSA info.
11275
11276 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11277
11278         * config/ft32/ft32.opt (mnodiv): New.
11279         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11280         * doc/invoke.texi (FT32 Options -mnodiv): New.
11281
11282 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11283
11284         PR target/70406
11285         * config/i386/i386.md (define_split, andn): Fix modes.
11286
11287 2016-03-26  Richard Biener  <rguenther@suse.de>
11288             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11289
11290         PR ipa/70366
11291         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11292         instead of
11293         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11294         as 2nd argument to cl_optimization_restore().
11295
11296 2016-03-25  Richard Henderson  <rth@redhat.com>
11297
11298         PR target/70120
11299         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11300         * config/aarch64/aarch64-protos.h: Declare it.
11301         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11302
11303 2016-03-25  Alan Modra  <amodra@gmail.com>
11304
11305         PR target/70052
11306         * config/rs6000/constraints.md (j): Simplify.
11307         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11308         decimal float 0.D.
11309         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11310         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11311          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11312         in all constraint alternatives.
11313         (movtd_64bit_nodm): Delete "j" constraint alternative.
11314
11315 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11316
11317         * tree-ssa-propagate.c: Enhance docs for
11318         SSA_PROP_NOT_INTERESTING.
11319
11320 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11321
11322         * doc/extend.texi: Fix typo in documentation to pure attribute.
11323
11324 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11325
11326         PR target/70319
11327         * config/pa/pa.md (bswapdi2): Use a scratch register.
11328
11329 2016-03-24  Richard Henderson  <rth@redhat.com>
11330
11331         PR middle-end/69845
11332         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11333         overflow.
11334
11335 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11336
11337         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11338         using ix86_expand_binary_operator instead of gen_andsi3.
11339
11340 2016-03-24  Richard Biener  <rguenther@suse.de>
11341
11342         PR tree-optimization/70396
11343         * tree-vect-stmts.c (vectorizable_comparison): Use
11344         get_vectype_for_scalar_type.
11345
11346 2016-03-24  Richard Biener  <rguenther@suse.de>
11347
11348         PR middle-end/70370
11349         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11350         with register bases.
11351
11352 2016-03-24  Richard Biener  <rguenther@suse.de>
11353
11354         PR tree-optimization/70372
11355         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11356         build_all_ones_cst to also handle vector types correctly.
11357
11358 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11359
11360         PR target/70381
11361         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11362         -mfloat128 here.
11363
11364 2016-03-23  Marek Polacek  <polacek@redhat.com>
11365
11366         PR c++/69884
11367         * doc/invoke.texi: Document -Wignored-attributes.
11368
11369 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11370
11371         PR tree-optimization/69042
11372         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11373         parameter from 30 to 40.
11374
11375 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11376
11377         PR tree-optimization/69042
11378         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11379         for use with constant offset stripped in base.
11380
11381 2016-03-23  Richard Biener  <rguenther@suse.de>
11382
11383         PR middle-end/70251
11384         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11385         mode compatibility check.
11386         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11387
11388 2016-03-23  Jeff Law  <law@redhat.com>
11389
11390         PR tree-optimization/64058
11391         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11392         CONFLICT_COUNT.
11393         (struct ssa_conflicts): Move up earlier in the file.
11394         (conflicts_, var_map_): New static variables.
11395         (initialize_conflict_count): New function to initialize the
11396         CONFLICT_COUNT field for each conflict pair.
11397         (compare_pairs): Lazily initialize the conflict count and use it
11398         as the first tie-breaker.
11399         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
11400         and wipe conflicts_ and map_ around the call to qsort.  Remove
11401         special case for 2 coalesce pairs.
11402         * bitmap.c (bitmap_count_unique_bits): New function.
11403         (bitmap_count_bits_in_word): New function, extracted from
11404         bitmap_count_bits.
11405         (bitmap_count_bits): Use bitmap_count_bits_in_word.
11406         * bitmap.h (bitmap_count_unique_bits): Declare it.
11407
11408 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
11409
11410         PR target/69917
11411         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
11412         transparent alias chain for decl assembler name.
11413         * config/sol2.c (solaris_assemble_visibility): Likewise.
11414
11415 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11416
11417         * config/arm/arm1020e.md (1020call_op): Reduce reservation
11418         duration.
11419         (v10_fdivs): Likewise.
11420         (v10_fdivd): Likewise.
11421
11422 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11423
11424         PR driver/70132
11425         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
11426         to not call fclose twice on file.
11427
11428 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11429
11430         PR tree-optimization/70354
11431         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11432         oprnd0 is wider than oprnd1 and there is a cast from the wider
11433         type to oprnd1, mask it with the mask of the narrower type.
11434
11435         PR target/70321
11436         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
11437         Optimize TARGET_STV splitters, if high or low word of last argument
11438         is 0 or -1.
11439
11440 2016-03-22  Jeff Law  <law@redhat.com>
11441
11442         PR target/70232
11443         tree-ssa-threadbackward.c
11444         (fsm_find_control_statement_thread_paths): Correctly distinguish
11445         between old style jump threads vs FSM jump threads.
11446
11447 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11448
11449         PR target/70302
11450         * config/i386/i386.c (scalar_chain::convert_op): Support
11451         uninitialized register usage case.
11452
11453 2016-03-22  Richard Biener  <rguenther@suse.de>
11454
11455         PR middle-end/70251
11456         * genmatch.c (gen_transform): Adjust last parameter to a three-state
11457         int...
11458         (capture::gen_transform): ... to change behavior when substituting
11459         a condition into cond or not-cond expr context.
11460         (dt_simplify::gen_1): Adjust.
11461         * gimple-match-head.c: Include gimplify.h for unshare_expr.
11462         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
11463         last change and instead change to
11464         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
11465         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11466
11467 2016-03-22  Anthony Green  <green@moxielogic.com>
11468
11469         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
11470         issue for moxiebox targets.
11471         (CC1PLUS_SPEC): Ditto.
11472
11473 2016-03-22  Richard Biener  <rguenther@suse.de>
11474
11475         PR middle-end/70333
11476         * fold-const.c (extract_muldiv_1): Properly perform multiplication
11477         in the wide type.
11478
11479 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11480
11481         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
11482
11483 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11484
11485         PR target/70325
11486         * config/i386/i386.c (def_builtin): Handle
11487         OPTION_MASK_ISA_AVX512VL to be and-ed with other
11488         bits.
11489         (const struct builtin_description bdesc_special_args[]):
11490         Remove duplicate ISA bits.
11491
11492 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
11493
11494         PR target/70329
11495         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
11496         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
11497         in a way that works also for AVX512BW.
11498
11499         PR target/70300
11500         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
11501         instead of source if operands[1] is xmm16 and above and
11502         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
11503         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
11504
11505         PR c++/70295
11506         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
11507         on assign if (*from_p) is a comparison, set it to
11508         TREE_NO_WARNING (*from_p).
11509
11510 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11511
11512         PR middle-end/70326
11513         * lra.c (restore_scratches): Ignore deleted insns.
11514
11515 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
11516             Jakub Jelinek  <jakub@redhat.com>
11517
11518         PR tree-optimization/70317
11519         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
11520         to HONOR_NANS.
11521
11522 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
11523
11524         PR target/70327
11525         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
11526         of ix86_expand_move.
11527         (movoi): Ditto.
11528         (movti): Use general_operand for operand 1 predicate.
11529
11530 2016-03-21  Martin Liska  <mliska@suse.cz>
11531
11532         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
11533         insns.
11534         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
11535
11536 2016-03-21  Martin Liska  <mliska@suse.cz>
11537
11538         PR ipa/70306
11539         * ipa-icf.c (sem_function::parse): Skip static
11540         constructors and destructors.
11541
11542 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11543
11544         PR target/70296
11545         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
11546         function-like macro, peek following token(s) if it is followed
11547         by CPP_OPEN_PAREN token with optional padding in between, and
11548         if not, don't treat it like a macro.
11549
11550 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11551             Alexander Monakov  <amonakov@ispras.ru>
11552
11553         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
11554         for the stabs debug format.
11555
11556 2016-03-21  Richard Biener  <rguenther@suse.de>
11557
11558         PR tree-optimization/70310
11559         * tree-vect-generic.c (expand_vector_condition): Fold the built
11560         condition.
11561
11562 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11563
11564         PR target/70293
11565         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
11566         Block third alternative for AVX-512VL target,
11567
11568 2016-03-21  Martin Liska  <mliska@suse.cz>
11569
11570         PR hsa/70234
11571         * hsa-brig.c (emit_function_directives): Mark unemitted
11572         global variables for emission.
11573         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
11574         (get_symbol_for_decl): Likewise.
11575         * hsa.h (struct hsa_symbol): New flag.
11576
11577 2016-03-21  Richard Biener  <rguenther@suse.de>
11578
11579         PR tree-optimization/70288
11580         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
11581         we do not estimate unsimplified all-constant conditionals or
11582         switches as optimized away.
11583
11584 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
11585
11586         PR rtl-optimization/69102
11587         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
11588         when we have a readonly dependency context.
11589
11590 2016-03-18  Jeff Law  <law@redhat.com>
11591
11592         PR rtl-optimization/70263
11593         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
11594         (update_equiv_regs): When trying to move a store to after the insn
11595         that sets the source of the store, make sure the store occurs after
11596         the insn that sets the source of the store.  When successful note
11597         the REG_EQUIV note created in the dump file.
11598
11599 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
11600             Bernd Schmidt  <bschmidt@redhat.com>
11601
11602         * doc/extend.texi: Document more potential problems with basic asms.
11603
11604 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
11605
11606         PR rtl-optimization/70278
11607         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
11608         VOIDmode.
11609
11610 2016-03-18  Jason Merrill  <jason@redhat.com>
11611
11612         * calls.c (load_register_parameters): Fix zero size sibcall logic.
11613
11614 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11615
11616         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
11617         values to 128b regs.
11618
11619 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11620
11621         PR tree-optimization/70252
11622         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
11623         boolean vector has a proper number of elements.
11624         (supportable_narrowing_operation): Likewise.
11625
11626 2016-03-18  Tom de Vries  <tom@codesourcery.com>
11627
11628         PR ipa/70269
11629         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
11630
11631 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
11632
11633         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
11634         instead of replace_rtx for DEBUG_INSNs.
11635
11636 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11637
11638         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
11639         load type reservations.
11640
11641 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
11642
11643         PR target/70188
11644         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
11645         define_constraint for "Q" and "T" constraints.
11646
11647 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
11648
11649         Tweak the pipeline model for Exynos M1
11650
11651         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
11652         model.
11653
11654 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
11655
11656         PR c/70264
11657         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
11658         where one or both locations aren't within a line_map.
11659
11660 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11661
11662         PR driver/70192
11663         * opts.c (finish_options): Don't set flag_pie to the default if
11664         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
11665         if it is -1.
11666
11667 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
11668
11669         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
11670         true as ALL_REGS argument to replace_rtx.
11671
11672 2016-03-17  Richard Biener  <rguenther@suse.de>
11673
11674         PR debug/70271
11675         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
11676         last.
11677
11678 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11679
11680         PR target/70245
11681         * rtl.h (replace_rtx): Add ALL_REGS argument.
11682         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
11683         equality and assert mode is the same, instead of just rtx pointer
11684         equality.
11685         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
11686         true as ALL_REGS argument to replace_rtx.
11687
11688 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
11689
11690         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
11691         for boolean vector with vector mode only.
11692         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11693
11694 2016-03-17  Nick Clifton  <nickc@redhat.com>
11695
11696         PR target/70162
11697         * config/rx/rx.c (rx_print_integer): Print negative constants in
11698         decimal.
11699
11700 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11701
11702         PR target/70261
11703         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
11704
11705 2016-03-16  Richard Henderson  <rth@redhat.com>
11706             Richard Biener  <rguenth@suse.de>
11707
11708         PR middle-end/70240
11709         PR middle-end/68215
11710         PR tree-opt/68714
11711         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
11712         first operand as is_gimple_condexpr.
11713
11714         PR middle-end/70240
11715         PR middle-end/68215
11716         Revert r231575
11717         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
11718         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
11719         Do not gimplify the result.
11720         (do_unop): Adjust call to tree_vec_extract.
11721         (do_binop): Likewise.
11722         (do_compare): Likewise.
11723         (do_plus_minus): Likewise.
11724         (do_negate): Likewise.
11725         (expand_vector_condition): Likewise.
11726         (do_cond): Likewise.
11727
11728 2016-03-16  Richard Henderson  <rth@redhat.com>
11729
11730         PR target/70048
11731         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
11732         (aarch64_classify_address): Use it.
11733         (aarch64_legitimize_address): Force all subexpressions of PLUS
11734         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
11735
11736 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
11737             Richard Biener  <rguenth@suse.de>
11738
11739         PR target/70245
11740         * rtlanal.c (replace_rtx): For REG, if from is a REG,
11741         return to even if only REGNO is equal, and assert
11742         mode is the same.
11743
11744 2016-03-11  Jeff Law  <law@redhat.com>
11745
11746         PR rtl-optimization/70224
11747         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
11748
11749 2016-03-16  Richard Henderson  <rth@redhat.com>
11750
11751         PR middle-end/70199
11752         * function.h (struct function): Add has_forced_label_in_static.
11753         * gimplify.c (force_labels_r): Set it.
11754         * lto-streamer-in.c (input_struct_function_base): Read it.
11755         * lto-streamer-out.c (output_struct_function_base): Write it.
11756         * tree-inline.c (has_label_address_in_static_1): Remove.
11757         (copy_forbidden): Remove fndecl parameter; test
11758         has_forced_label_in_static.
11759         (inline_forbidden_p): Update call to copy_forbidden.
11760         (tree_versionable_function_p): Likewise.
11761         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
11762         (chkp_versioning): Likewise.
11763         * tree-inline.h (copy_forbidden): Update decl.
11764
11765 2016-03-16  Marek Polacek  <polacek@redhat.com>
11766
11767         PR c/70093
11768         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
11769         function being thunked if the result type doesn't have fixed size.
11770         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
11771         doesn't have fixed size.
11772
11773 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
11774
11775         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
11776         reporting malformed loop nest.
11777
11778 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11779
11780         PR lto/70187
11781         * ipa-devirt.c (possible_polymorphic_call_targets): Move
11782         nodes.length () == 1 test to before first nodes[0] access.
11783
11784 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11785
11786         PR tree-optimization/68715
11787         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
11788         single_pred_p test.
11789
11790 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11791
11792         PR tree-optimization/68809
11793         * graphite-scop-detection.c (same_close_phi_node): Test if result types
11794         are the same.
11795
11796 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
11797             Sandra Loosemore  <sandra@codesourcery.com>
11798
11799         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
11800         on leaf attribute. Mention ELF interposition problems.
11801
11802 2016-03-16  Alan Modra  <amodra@gmail.com>
11803
11804         PR rtl-optimization/69195
11805         PR rtl-optimization/47992
11806         * ira.c (indirect_jump_optimize): Ignore artificial defs.
11807         Add comments.
11808
11809 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11810
11811         PR bootstrap/69513
11812         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
11813
11814 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11815
11816         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
11817
11818 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
11819
11820         PR rtl-optimization/70222
11821         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
11822         optimization if mode is different from result_mode, queue up masking
11823         of the result in outer_op.  Formatting fix.
11824
11825         PR middle-end/70239
11826         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
11827         of safe_grow.
11828
11829 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11830
11831         PR rtl-optimization/69032
11832         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
11833         looping backwards over basic block insns.
11834
11835 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11836
11837         PR target/66660
11838         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
11839         to non-speculative when propagating trap bits.
11840
11841 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11842
11843         PR rtl-optimization/63384
11844         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
11845         DEBUG_INSN_P insns.
11846
11847 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11848
11849         PR target/64411
11850         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
11851         factored out from ...
11852         (sched_analyze_insn): ... here.
11853         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
11854         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
11855         get_implicit_reg_pending_clobbers in it.
11856         (setup_id_reg_sets): Use setup_id_implicit_regs.
11857         (deps_init_id): Ditto.
11858
11859 2016-03-15  Tom de Vries  <tom@codesourcery.com>
11860
11861         PR ipa/70161
11862         * cgraph.c (cgraph_node::get_body): Save, reset and restore
11863         dump_file_name.
11864         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
11865         execute_function_dump.
11866         (execute_one_pass): Don't dump function if it will be dumped after ipa
11867         transform.
11868
11869 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11870
11871         * genrecog.c (match_pattern_2): If pred is NULL don't call
11872         safe_predicate_mode on it.
11873
11874 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
11875
11876         PR middle-end/70219
11877         * lra-constraints.c (delete_move_and_clobber): Change assertion
11878         to also allow dregno == 0.
11879
11880 2016-03-14  Richard Henderson  <rth@redhat.com>
11881
11882         PR tree-opt/68714
11883         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
11884         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
11885         (reassociate_bb): Use optimize_vec_cond_expr; avoid
11886         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
11887         on vectors.
11888
11889 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11890
11891         PR target/70083
11892         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
11893         regs.
11894         (lra_create_live_ranges_1): initialize hard register biggest_mode to
11895         VOIDmode.
11896         * lra-constraints.c (split_reg): For hard regs, try to find the
11897         biggest single-register mode used in the function.
11898
11899 2016-03-14  Richard Biener  <rguenther@suse.de>
11900
11901         PR tree-optimization/56365
11902         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
11903         constants to compare against.
11904
11905 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
11906
11907         PR target/70098
11908         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11909         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
11910         (define_split for the GPR case): Use int_reg_operand instead of
11911         gpc_reg_operand for the output.
11912
11913 2016-03-14  Tom de Vries  <tom@codesourcery.com>
11914
11915         PR tree-optimization/70045
11916         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
11917         create_empty_if_region_on_edge argument.
11918
11919 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
11920
11921         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
11922         (STACK_CHECK_PROTECT): Likewise.
11923         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11924         (STACK_CHECK_PROTECT): Likewise.
11925         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11926         (STACK_CHECK_PROTECT): Likewise.
11927         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
11928         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11929         (STACK_CHECK_PROTECT): Likewise.
11930
11931 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
11932
11933         PR rtl-optimization/69307
11934         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
11935         registers in modes that span more than one register.
11936
11937 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
11938
11939         PR target/69614
11940         * lra-constraints.c (delete_move_and_clobber): New.
11941         (remove_inheritance_pseudos): Use it.
11942
11943 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11944
11945         PR ada/70017
11946         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
11947         the libcall is LCT_THROW.
11948         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
11949         for the checking routine.
11950
11951 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11952
11953         PR target/70131
11954         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
11955         optimization if we have direct move.
11956         (roundu32<mode>2_fprs): Likewise.
11957
11958 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
11959
11960         PR target/70123
11961         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
11962         be rematerialized.
11963         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
11964         Arguments swapped.  All callers changed.  Take reg_renumber into
11965         account, and Calculate and compare register ranges for hard regs.
11966
11967 2016-03-11  Jeff Law  <law@redhat.com>
11968
11969         PR tree-optimization/70190
11970         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11971         Handle cases where we can not extract the taken edge, even though we
11972         found a constant value.
11973
11974         PR tree-optimization/64058
11975         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
11976         (num_coalesce_pairs): Move up earlier in file.
11977         (find_coalesce_pair): Initialize the INDEX field for each pair
11978         discovered.
11979         (compare_pairs): No longer sort on the elements in each pair.
11980         Instead break ties with the index of the coalesce pair.
11981
11982 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11983
11984         PR target/70002
11985         * config/aarch64/aarch64-protos.h
11986         (aarch64_save_restore_target_globals): New prototype.
11987         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
11988         Call the above when popping pragma.
11989         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
11990         New function.
11991         (aarch64_set_current_function): Rewrite using the above.
11992
11993 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11994
11995         PR tree-optimization/70177
11996         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
11997         (extract_ops_from_tree): ... this.  In the 2 argument
11998         overload remove _1 suffix.
11999         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
12000         (extract_ops_from_tree): ... this.
12001         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
12002         Adjust callers.
12003         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12004         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
12005         extract_ops_from_tree instead of 2 operand one.
12006
12007 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
12008
12009         PR tree-optimization/70013
12010         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
12011         for constant-pool entries.
12012
12013 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12014
12015         PR rtl-optimization/70174
12016         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
12017         followed by gen_lowpart on force_reg instead of just gen_lowpart.
12018
12019         PR tree-optimization/70169
12020         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
12021         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
12022         for unknown codes.
12023
12024 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
12025             Jakub Jelinek  <jakub@redhat.com>
12026
12027         PR target/70160
12028         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
12029         of uninitialized values.
12030
12031 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12032
12033         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
12034         define_expand.
12035         ("*trunctddd2"): New pattern definition.
12036         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
12037         TD->DD truncation.
12038
12039 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12040
12041         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
12042         definitions for BFP and DFP rounding modes.
12043         ("fixuns_truncdddi2", "fixuns_trunctddi2")
12044         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
12045         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
12046         ("fix_trunctf<mode>2"): Use the new constants instead of magic
12047         numbers.
12048
12049 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12050
12051         * config/s390/constraints.md: Adjust comment.
12052         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
12053         s390_decompose_addrstyle_without_index.
12054         * config/s390/predicates.md (shift_count_or_setmem_operand):
12055         Rename to setmem_operand.
12056         * config/s390/s390-protos.h
12057         (s390_decompose_shift_count): Rename to
12058         s390_decompose_addrstyle_without_index.
12059         * config/s390/s390.c (s390_decompose_shift_count)
12060         (s390_mem_constraint, print_shift_count_operand)
12061         (print_operand_address, print_operand): Rename
12062         s390_decompose_shift_count to
12063         s390_decompose_addrstyle_without_index and rename
12064         print_shift_count_operand to print_addrstyle_operand troughout the
12065         file.
12066         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
12067         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
12068         Rename shift_count_or_setmem_operand to setmem_operand.
12069         * config/s390/vx-builtins.md ("vec_insert<mode>")
12070         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
12071         nonmemory_operand.
12072
12073 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12074
12075         PR target/70168
12076         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12077         Handle overlapping retval and newval.
12078
12079 2016-03-10  Nick Clifton  <nickc@redhat.com>
12080
12081         PR target/7044
12082         * config/aarch64/aarch64.c
12083         (aarch64_override_options_after_change_1): When forcing
12084         flag_omit_frame_pointer to be true, use a special value that can
12085         be detected if this function is called again, thus preventing
12086         flag_omit_leaf_frame_pointer from being forced to be false.
12087
12088 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12089
12090         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12091         Set x_flag_omit_leaf_frame_pointer when handling
12092         -momit-leaf-frame-pointer.
12093
12094 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12095
12096         PR lto/69589
12097         * cgraph.c (cgraph_node::dump): Dump split_part and
12098         indirect_call_target.
12099         * cgraph.h (cgraph_node): Add indirect_call_target flag.
12100         * ipa.c (has_addr_references_p): Cleanup.
12101         (is_indirect_call_target_p): New.
12102         (walk_polymorphic_call_targets): Do not mark virtuals that may be
12103         called indirectly as local.
12104         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12105
12106 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12107
12108         PR ipa/69630
12109         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12110         on cxa_pure_virtual.
12111
12112 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12113
12114         PR lto/69589
12115         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12116
12117 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12118
12119         PR lto/69589
12120         * tree.c (need_assembler_name_p): Only record main variant type names.
12121
12122 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12123
12124         PR target/70113.
12125         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12126         Always define to 0 or 1.
12127         (TARGET_FIX_ERR_A53_843419): New macro.
12128         * config/aarch64/aarch64-elf-raw.h
12129         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12130         * config/aarch64/aarch64-linux.h: Likewise.
12131         * config/aarch64/aarch64.c
12132         (aarch64_override_options_after_change_1): Do not default
12133         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12134         843419 is on.
12135         (aarch64_attributes): Handle fix-cortex-a53-843419.
12136         (aarch64_can_inline_p): Likewise.
12137         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12138
12139 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
12140         Jakub Jelinek <jakub@redhat.com>
12141
12142         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12143         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12144         DECL_COMMONS if flag_unconstrained_commons is set.
12145         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12146         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12147         (funconstrained-commons): Document.
12148
12149 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12150
12151         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12152         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12153
12154 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
12155
12156         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12157         has a proper number of elements.
12158
12159 2016-03-10  Alan Modra  <amodra@gmail.com>
12160
12161         PR rtl-optimization/69195
12162         PR rtl-optimization/47992
12163         * ira.c (recorded_label_ref): Delete.
12164         (update_equiv_regs): Return void.
12165         (indirect_jump_optimize): New function.
12166         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12167         before regstat_compute_ri.  Don't rebuild_jump_labels here.
12168         Delete update_regstat.
12169
12170 2016-03-10  Richard Biener  <rguenther@suse.de>
12171
12172         PR tree-optimization/70128
12173         * tree-ssa-structalias.c (set_uids_in_ptset): Set
12174         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12175
12176 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12177
12178         PR tree-optimization/70152
12179         * tree-sra.c (replace_removed_params_ssa_names): Copy over
12180         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12181
12182         PR target/70086
12183         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12184         instead of gen_sse2_loadlpd.
12185         * config/i386/sse.md (*vec_concatv2df): Rename to...
12186         (vec_concatv2df): ... this.
12187
12188         PR tree-optimization/70127
12189         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12190
12191 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12192
12193         PR c/68473
12194         PR c++/70105
12195         * diagnostic-show-locus.c (compatible_locations_p): New function.
12196         (layout::layout): Sanitize ranges using compatible_locations_p.
12197
12198 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12199
12200         PR c/68473
12201         PR c++/70105
12202         * diagnostic-show-locus.c (layout_range::layout_range): Replace
12203         location_range param with three const expanded_locations * and a
12204         bool.
12205         (layout::layout): Replace call to
12206         rich_location::lazily_expand_location with get_expanded_location.
12207         Extract the range and perform location expansion here, passing
12208         the results to the layout_range ctor.
12209         * diagnostic.c (source_range::debug): Delete.
12210         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12211         of rich_location::get_expanded_location.
12212         * gcc-rich-location.c (get_range_for_expr): Delete.
12213         (gcc_rich_location::add_expr): Reimplement to avoid the
12214         rich_location::add_range overload that took a location_range,
12215         passing a location_t instead.
12216
12217 2016-03-09  Richard Biener  <rguenther@suse.de>
12218         Jakub Jelinek  <jakub@redhat.com>
12219
12220         PR tree-optimization/70138
12221         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12222         Also skip vect_double_reduction_def.
12223
12224 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12225
12226         PR target/70049
12227         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
12228         if the operand is "m".
12229
12230 2016-03-09  Nathan Sidwell  <nathan@acm.org>
12231
12232         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
12233
12234 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12235
12236         * config/i386/i386.c (processor_target_table): Fix cost table
12237         intialization order for znver1.
12238
12239 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12240
12241         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
12242         - becuase -> because.
12243         * ipa-reference.c (ignore_module_statics): Likewise.
12244         * cgraph.c (cgraph_node::get_body): Likewise.
12245         * ipa-inline.c (early_inliner): Likewise.
12246         * ipa-devirt.c (types_same_for_odr): Likewise.
12247         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
12248         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
12249
12250 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12251
12252         * tree-ssa-math-opts.c: Fix typo in comment.
12253
12254 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12255
12256         PR target/70110
12257         * config/i386/i386.c (scalar_chain::make_vector_copies,
12258         scalar_chain::convert_reg): Call end_sequence in between
12259         get_insns and emit_conversion_insns rather than after both
12260         calls.
12261
12262 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12263
12264         PR target/70064
12265         * config/i386/i386.h (machine_function): Add
12266         pc_thunk_call_expanded flag.
12267         (ix86_pc_thunk_call_expanded): New define.
12268         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12269         (*set_got): Rename insn pattern from set_got.
12270         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12271         * config/i386/i386.c (ix86_compute_frame_layout): Use
12272         ix86_pc_thunk_call_expanded to prevent red-zone.
12273
12274 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12275
12276         * hsa.h (hsa_get_ctor_statements): Declare.
12277         (hsa_get_dtor_statements): Likewise.
12278         (hsa_get_kernel_dispatch_type): Likewise.
12279         * hsa.c (hsa_get_ctor_statements): New function.
12280         (hsa_get_dtor_statements): Likewise.
12281         (hsa_get_kernel_dispatch_type): Likewise.
12282         * hsa-brig.c (hsa_cdtor_statements): Removed.
12283         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12284         hsa_get_dtor_statements.
12285         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12286         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12287
12288 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12289
12290         * config/arm/arm-cores.def (cortex-r8): New.
12291         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12292         * config/arm/arm-tune.md: Likewise.
12293         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12294
12295 2016-03-07  Martin Sebor  <msebor@redhat.com>
12296
12297         PR rtl-optimization/19705
12298         * doc/invoke.texi (Options That Control Optimization): Clarify
12299         -fno-branch-count-reg.
12300
12301 2016-02-26  Richard Biener  <rguenther@suse.de>
12302             Jeff Law  <law@redhat.com>
12303
12304         PR tree-optimization/69740
12305         * cfghooks.c (remove_edge): Request loop fixups if we delete
12306         an edge that might turn an irreducible loop into a natural
12307         loop.
12308         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12309         Move after definition of loops_state_clear.
12310
12311 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12312
12313         PR rtl-optimization/69052
12314         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12315         to CONST_WIDE_INT.
12316
12317 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12318
12319         PR tree-optimization/70116
12320         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12321         is_tm_ending stmts and ubsan/asan internal functions.
12322         (find_duplicate): Use it.  Don't test is_tm_ending here.
12323
12324 2016-03-07  Richard Biener  <rguenther@suse.de>
12325
12326         PR tree-optimization/70115
12327         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12328         (propagate_constants_for_unrolling): Use replace_uses_by.
12329
12330 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12331
12332         PR middle-end/69916
12333         * omp-low.c (struct oacc_loop): Add ifns.
12334         (new_oacc_loop_raw): Initialize it.
12335         (finish_oacc_loop): Clear mask & flags if no ifns.
12336         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12337         (oacc_loop_xform_loop): Add ifns arg & adjust.
12338         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12339
12340 2016-03-07  Richard Henderson  <rth@redhat.com>
12341
12342         PR rtl-opt/70061
12343         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12344         (insert_value_copy_on_edge): Likewise.
12345
12346 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12347
12348         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12349
12350 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12351
12352         PR target/62281
12353         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12354
12355 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12356
12357         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12358
12359 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12360
12361         Fix sseimul type attribute.
12362         * config/i386/znver1.md
12363         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12364         znver1_sseimul_avx256_load) : Fix the type attribute.
12365         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12366         pipe usage and latency.
12367
12368 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12369
12370         PR c++/70084
12371         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12372         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12373         to the right type.
12374
12375 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12376
12377         PR c/69973
12378         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12379
12380         PR rtl-optimization/69941
12381         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12382         the reg share its mode.
12383
12384 2016-03-04  Jeff Law  <law@redhat.com>
12385
12386         PR tree-optimization/69196
12387         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12388         If the both SSA_NAMEs are anonymous, then consider them unassociated
12389         and include the PHI in the statement count.
12390
12391 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12392
12393         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12394         construct in oacc routine.  Check for oacc region in oacc routine.
12395
12396 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12397
12398         PR target/70062
12399         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
12400         2016-02-22 changes, instead don't recurse if RECUR is already true.
12401         Don't change *dynamic_check if RECUR.  Adjust recursive caller
12402         to pass true to the new argument.
12403         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
12404
12405         PR target/70059
12406         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12407         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
12408         fixes.
12409         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
12410
12411 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12412
12413         PR rtl-optimization/57676
12414         * lra-assigns.c (lra_assign): Guard test for maximum iterations
12415         with flag_checking.
12416
12417 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
12418
12419         * tree-vect-patterns.c (search_type_for_mask): Handle
12420         comparison of booleans.
12421
12422 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12423
12424         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
12425         Fix @xref usage.
12426
12427         PR debug/69947
12428         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
12429         all other ops that have dw_val_class_die_ref operands,
12430         and DW_OP_GNU_entry_value.
12431
12432 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12433
12434         PR rtl-optimization/69904
12435         * config/arm/arm.c (arm_cannot_copy_insn_p):
12436         Return true for load-exclusive instructions.
12437
12438 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
12439
12440         PR target/70021
12441         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
12442         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
12443         the pattern no matter if it is used just by non-pattern, pattern
12444         or mix thereof.
12445         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
12446         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12447         oprnd1 def_stmt is in pattern, don't look through it.
12448
12449 2016-03-03  Marek Polacek  <polacek@redhat.com>
12450
12451         PR middle-end/70050
12452         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
12453
12454 2016-03-03  Martin Liska  <mliska@suse.cz>
12455
12456         PR tree-optimization/70043
12457         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
12458         previous statement if we see a debug statement.
12459
12460 2016-03-03  Richard Biener  <rguenther@suse.de>
12461
12462         PR tree-optimization/55936
12463         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
12464         parameter and guard unsafe equivalence use.
12465         (vrp_evaluate_conditional_warnv_with_ops): Always use
12466         safe equivalences but not via the quadratic compare_names
12467         helper.
12468
12469 2016-03-03  Michael Collison  <michael.collison@linaro.org>
12470
12471         PR target/70014
12472         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
12473         for operand 1 to s_register_operand. Change predicate for operand
12474         2 to arm_not_immediate_operand.
12475
12476 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
12477
12478         * doc/tm.texi: Regenerated.
12479
12480 2016-03-02  Richard Henderson  <rth@redhat.com>
12481
12482         PR rtl-opt/67145
12483         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
12484         simplification when all args are positive non-fixed registers.
12485
12486 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12487
12488         * target.def (lra_p): Specify that new ports should use LRA.
12489
12490 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12491
12492         PR libgomp/69555
12493         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
12494         gimplify_type_sizes the type they refer to.
12495         (omp_notice_variable): Handle reference vars to VLAs.
12496         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
12497         reference to VLA decls in the second pass instead of first pass.
12498
12499 2016-03-02  Tom de Vries  <tom@codesourcery.com>
12500
12501         PR tree-optimization/68659
12502         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
12503         new_expr == NULL_TREE.
12504         (get_new_name): Handle ADDR_EXPR.
12505
12506 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
12507
12508         PR rtl-optimization/69052
12509         * loop-invariant.c (canonicalize_address): New function.
12510         (inv_can_prop_to_addr_use): Check validity of address expression
12511         which is canonicalized by above function.
12512
12513 2016-03-02  Alan Modra  <amodra@gmail.com>
12514
12515         PR ipa/69990
12516         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
12517         larger alignment.
12518
12519 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12520
12521         PR target/70028
12522         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
12523         (*movhi_internal): Put mask moves from and to memory separately
12524         from moves from/to GPRs.
12525
12526 2016-03-02  Richard Biener  <rguenther@suse.de>
12527
12528         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
12529         GENERIC expressions in GIMPLE.
12530
12531 2016-03-02  Richard Biener  <rguenther@suse.de>
12532
12533         * config/i386/i386.c (type_natural_mode): Fix typo.
12534
12535 2016-03-02  Nick Clifton  <nickc@redhat.com>
12536
12537         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
12538
12539 2016-03-02  Richard Biener  <rguenther@suse.de>
12540             Uros Bizjak  <ubizjak@gmail.com>
12541
12542         PR target/67278
12543         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
12544
12545 2016-03-02  Richard Biener  <rguenther@suse.de>
12546
12547         PR middle-end/67278
12548         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
12549
12550 2016-03-02  Marek Polacek  <polacek@redhat.com>
12551
12552         PR c/67854
12553         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
12554         "is promoted to" warning.
12555
12556 2016-03-01  DJ Delorie  <dj@redhat.com>
12557
12558         * config.gcc: Deprecate mep-*.
12559
12560 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
12561
12562         PR middle-end/70025
12563         * lra-constraints.c (regno_val_use_in): New.
12564         (match_reload): Use it instead of regno_use_in.
12565
12566 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12567
12568         PR rtl-optimization/70007
12569         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
12570         references present in REG_EQUAL notes attached to non-SET patterns.
12571
12572 2016-03-01  Jeff Law  <law@redhat.com>
12573
12574         PR tree-optimization/69196
12575         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12576         Appropriately clamp the number of statements to copy when the
12577         thread path does not traverse a loop backedge.
12578
12579         PR tree-optimization/69196
12580         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12581         Do count some PHIs in the thread path against the insn count.  Decrease
12582         final statement count by one as the control statement in the last
12583         block will get removed.  Remove special cased code for handling PHIs
12584         in the last block.
12585
12586 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
12587
12588         PR target/70027
12589         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
12590         asm dialect alternatives to explicit GOTPCREL calls.
12591
12592 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12593
12594         PR ada/70017
12595         * ira.c (do_reload): Issue warning for generic stack checking here...
12596         * reload1.c (reload): ...instead of here and streamline it.
12597
12598 2016-03-01  Nick Clifton  <nickc@redhat.com>
12599
12600         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
12601
12602 2016-03-01  Richard Biener  <rguenther@suse.de>
12603
12604         PR tree-optimization/69983
12605         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
12606         types and fall back to operand_equal_p.
12607
12608 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12609
12610         Revert
12611         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12612
12613         * config/s390/constraints.md ("jm8"): New constraint.
12614         * config/s390/predicates.md ("const_int_8bitset_operand"): New
12615         predicate.
12616         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
12617         into ...
12618         ("*setmem_long<setmem_and>"): New pattern.
12619         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
12620         into ...
12621         ("*setmem_long_31z<setmem_and>"): New pattern.
12622         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
12623         New substitution rules with the required attributes.
12624
12625
12626 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12627
12628         Revert
12629         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12630
12631         * gensupport.c (process_substs_on_one_elem): Split loop to
12632         complete mark_operands_used_in_match_dup on all expressions in the
12633         vector first.
12634         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12635         and remove function.
12636
12637 2016-03-01  Richard Biener  <rguenther@suse.de>
12638
12639         PR middle-end/70022
12640         * fold-const.c (fold_indirect_ref_1): Fix range checking for
12641         vector BIT_FIELD_REF extract.
12642
12643 2016-03-01  Richard Biener  <rguenther@suse.de>
12644
12645         PR tree-optimization/69994
12646         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
12647
12648 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12649
12650         PR tree-optimization/69956
12651         * tree-vect-stmts.c (supportable_widening_operation): Support
12652         multi-step conversion of boolean vectors.
12653         (supportable_narrowing_operation): Likewise.
12654
12655 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12656
12657         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
12658         anymore.
12659
12660 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12661
12662         * config/s390/subst.md (DSI_VI): New mode iterator.
12663         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
12664         * config/s390/vector.md ("vec_set<mode>"): Move expander before
12665         the insn definition.
12666         ("*vec_set<mode>"): Change predicate and add alternative to
12667         support only either register or const_int operands as element
12668         selector.
12669         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
12670         operands.
12671         ("vec_extract<mode>"): New expander.
12672         ("*vec_extract<mode>"): New insn definition supporting reg and
12673         const_int element selectors.
12674         ("*vec_extract<mode>_plus"): New insn definition supporting
12675         reg+const_int element selectors.
12676         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
12677         following expander+insn definition.
12678         ("<vec_shifts_name><mode>3"): New expander.
12679         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
12680
12681 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12682
12683         * config/s390/s390.md ("*tabort_1"): Change predicate to
12684         nonmemory_operand.  Add a second alternative to cover
12685         register as well as const int operands.
12686         ("*tabort_1_plus"): New pattern definition.
12687
12688 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12689
12690         * config/s390/s390.md ("*ashrdi3_cc_31")
12691         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
12692         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
12693         Merge insn definitions into ...
12694         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12695         New pattern definition.
12696         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
12697         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
12698         ("*ashr<mode>3_and"): Merge insn definitions into ...
12699         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12700         New pattern definition.
12701         * config/s390/subst.md ("addr_style_op_cc_subst")
12702         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
12703         substitutions patterns plus attributes.
12704         Add ashiftrt to SUBST iterator.
12705
12706 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12707
12708         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
12709         op2 to nonmemory_operand.
12710         ("*<shift>di3_31", "*<shift>di3_31_and"):
12711         Merge into single pattern definition ...
12712         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
12713         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
12714         pattern definition ...
12715         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
12716         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
12717         iterator.
12718
12719 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12720
12721         * config/s390/predicates.md (const_int_6bitset_operand): New
12722         predicate.
12723         * config/s390/s390.md: Include subst.md.
12724         ("rotl<mode>3"): New expander.
12725         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
12726         ...
12727         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
12728         * config/s390/subst.md: New file.
12729
12730 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12731
12732         * config/s390/s390.md ("op_type", "atype", "length" attributes):
12733         Remove RRR type.  It doesn't really exist.
12734         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
12735         attributes.
12736         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
12737         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
12738         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
12739         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
12740         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
12741         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
12742         `enabled' attribute.
12743
12744 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12745
12746         * gensupport.c (process_substs_on_one_elem): Split loop to
12747         complete mark_operands_used_in_match_dup on all expressions in the
12748         vector first.
12749         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12750         and remove function.
12751
12752 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12753
12754         PR target/69706
12755         * config/sparc/sparc.c (NWORDS_UP): Rename to...
12756         (CEIL_NWORDS): ...this.  Use CEIL macro.
12757         (compute_fp_layout): Adjust to above renaming.
12758         (function_arg_union_value): Likewise.
12759         (sparc_arg_partial_bytes): Likewise.
12760         (sparc_function_arg_advance): Likewise.
12761
12762 2016-02-29  Jeff Law  <law@redhat.com>
12763
12764         PR tree-optimization/70005
12765         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
12766         where an object with a boolean range is compared against a value
12767         outside [0..1].
12768
12769         PR tree-optimization/69999
12770         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
12771         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
12772         loop cleanups.
12773
12774 2016-02-29  Richard Biener  <rguenther@suse.de>
12775
12776         PR tree-optimization/69994
12777         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
12778         (get_unary_op): Look through nop conversions.
12779         (ops_equal_values_p): New function, look for equality diregarding
12780         nop conversions.
12781         (eliminate_plus_minus_pair): Use ops_equal_values_p
12782         (repropagate_negates): Do not use get_unary_op here.
12783
12784 2016-02-29  Martin Liska  <mliska@suse.cz>
12785
12786         * system.h: Poison ENABLE_CHECKING macro.
12787
12788 2016-02-29  Martin Liska  <mliska@suse.cz>
12789
12790         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
12791         is presented in dump flags.
12792         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12793         (hsa_regalloc): Likewise.
12794
12795 2016-02-19  Richard Biener  <rguenther@suse.de>
12796
12797         PR tree-optimization/69980
12798         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
12799         permutation of those we need to keep.
12800
12801 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12802
12803         PR target/69706
12804         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
12805         (NWORDS_UP): ...this
12806         (init_cumulative_args): Minor tweaks.
12807         (sparc_promote_function_mode): Likewise.
12808         (scan_record_type): Delete.
12809         (traverse_record_type): New function template.
12810         (classify_data_t): New structure type.
12811         (classify_registers): New inline function.
12812         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
12813         exhausted.  Instantiate traverse_record_type on classify_registers and
12814         deal with the case of a structure passed in slot #15 with no FP field
12815         in the first word.
12816         (assign_data_t): New structure type.
12817         (compute_int_layout): New static function.
12818         (compute_fp_layout): Likewise.
12819         (count_registers): New inline function.
12820         (assign_int_registers): New static function.
12821         (assign_fp_registers): Likewise.
12822         (assign_registers): New inline function.
12823         (function_arg_record_value_1): Delete.
12824         (function_arg_record_value_2): Likewise.
12825         (function_arg_record_value_3): Likewise.
12826         (function_arg_record_value): Adjust to above changes.  Instantiate
12827         traverse_record_type on count_registers to first count the number of
12828         registers to be used and then on assign_registers to assign them.
12829         (function_arg_union_value): Adjust to above renaming.
12830         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
12831         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
12832         case of a structure passed in slot #15
12833         (sparc_function_arg_advance): Likewise.
12834         (function_arg_padding): Minor tweak.
12835
12836 2016-02-29  Richard Biener  <rguenther@suse.de>
12837
12838         PR tree-optimization/69720
12839         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
12840         the adjustment_def path for possibly vectorized defs.
12841         (vect_create_epilog_for_reduction): Handle vectorized initial
12842         defs properly.
12843
12844 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12845
12846         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
12847
12848 2016-02-27  Jeff Law  <law@redhat.com>
12849
12850         Revert
12851         2016-02-26  Richard Biener  <rguenther@suse.de>
12852                     Jeff Law  <law@redhat.com>
12853
12854         PR tree-optimization/69740
12855         * cfghooks.c (remove_edge): Request loop fixups if we delete
12856         an edge that might turn an irreducible loop into a natural
12857         loop.
12858
12859 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
12860
12861         PR rtl-optimization/69896
12862         * tree-vect-generic.c (get_compute_type): Avoid single element
12863         vector types.
12864
12865 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
12866
12867         Rename the AArch64 tuning option and related functions to enable the
12868         Newton series for the reciprocal square root to reflect its
12869         approximative characteristic.
12870
12871         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
12872         function to "aarch64_emit_approx_rsqrt".
12873         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
12874         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
12875         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
12876         (xgene1_tunings): Likewise.
12877         (use_rsqrt_p): Likewise.
12878         (aarch64_emit_swrsqrt): Use new function name.
12879         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
12880         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
12881         text explaining this option.
12882         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
12883
12884 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12885
12886         PR target/69969
12887         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12888         complain about -mallow-movmisalign without -mvsx if
12889         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
12890
12891 2016-02-26  Joel Sherrill  <joel@rtems.org>
12892
12893         * config.gcc: Add x86_64-*-rtems*.
12894         * config/i386/rtems-64.h: New file.
12895
12896 2016-02-26  Joel Sherrill  <joel@rtems.org>
12897
12898         * config.gcc: Add aarch64-*-rtems*.
12899         * config/aarch64/rtems.h: New file.
12900
12901 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
12902
12903         PR target/69946
12904         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
12905         shift amount using %h.  Add comment.
12906
12907 2016-02-26  Richard Biener  <rguenther@suse.de>
12908             Jeff Law  <law@redhat.com>
12909
12910         PR tree-optimization/69740
12911         * cfghooks.c (remove_edge): Request loop fixups if we delete
12912         an edge that might turn an irreducible loop into a natural
12913         loop.
12914
12915 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12916
12917         PR middle-end/69920
12918         * tree-sra.c (sra_modify_assign): Do not remove loads of
12919         uninitialized aggregates to SSA_NAMEs.
12920
12921 2016-02-26  Richard Henderson  <rth@redhat.com>
12922
12923         PR target/69709
12924         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
12925         pseudo in case the target rtx matches the source of the left
12926         shift.
12927
12928 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12929
12930         PR hsa/69568
12931         * hsa.h (hsa_type_packed_p): Declare.
12932         * hsa.c (hsa_type_packed_p): New function.
12933         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
12934         loads.
12935         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
12936         * hsa-brig.c (emit_basic_insn): Likewise.
12937
12938 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12939
12940         pr hsa/69674
12941         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
12942         pointers.
12943         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
12944
12945 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12946
12947         * hsa.h (is_a_helper): New overload for hsa_op_immed for
12948         hsa_op_with_type operands.
12949         (hsa_unsigned_type_for_type): Declare.
12950         * hsa.c (hsa_unsigned_type_for_type): New function.
12951         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
12952         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
12953         the finalizer.  Do not emit extra move.
12954
12955 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12956
12957         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
12958         atomic operations in private segment.
12959
12960 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12961
12962         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
12963         statements to wi->info.  Also disallow omp simd constructs.
12964         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
12965         for not gridifying.  Dump special string for omp_for.
12966
12967 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12968
12969         PR target/69245
12970         * config/aarch64/aarch64.c (aarch64_set_current_function):
12971         Save/restore target globals when switching to
12972         target_option_default_node.
12973
12974 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12975
12976         PR target/69613
12977         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
12978         Return 0 if !SHIFT_COUNT_TRUNCATED.
12979
12980 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12981             Eric Botcazou  <ebotcazou@adacore.com>
12982
12983         PR rtl-optimization/69891
12984         * dse.c (scan_insn): If we can't figure out memset arguments
12985         or they are non-constant, call clear_rhs_from_active_local_stores.
12986
12987 2016-02-26  Martin Liska  <mliska@suse.cz>
12988
12989         * doc/extend.texi: Mention clog10, clog10f an clog10l
12990         in Builtins section.
12991
12992 2016-02-26  Martin Liska  <mliska@suse.cz>
12993
12994         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
12995         CHECKING_P.
12996         (resolve_args_picking_1): Likewise.
12997         * dwarf2out.h (struct GTY): Likewise.
12998
12999 2016-02-26  Martin Liska  <mliska@suse.cz>
13000
13001         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
13002         with flag_checking.
13003         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13004
13005 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13006             Martin Liska  <mliska@suse.cz>
13007
13008         * doc/install.texi: Mention --enable-valgrind-annotations.
13009
13010 2016-02-26  Richard Biener  <rguenther@suse.de>
13011
13012         PR tree-optimization/69551
13013         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
13014         looking through aliases adjust DECL_PT_UID to refer to the
13015         ultimate alias target.
13016
13017 2016-02-25  Martin Liska  <mliska@suse.cz>
13018
13019         PR middle-end/69919
13020         * alloc-pool.c (after_memory_report): New variable.
13021         * alloc-pool.h (base_pool_allocator ::release): Do not use
13022         the infrastructure if after_memory_report.
13023         * toplev.c (toplev::main): Mark after memory report.
13024
13025 2016-02-25  Richard Biener  <rguenther@suse.de>
13026
13027         PR tree-optimization/48795
13028         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
13029
13030 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13031
13032         PR driver/68463
13033         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
13034         offloading is enabled and -fopenacc or -fopenmp is specified.
13035         (CRTOFFLOADEND): Likewise.
13036         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
13037         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
13038         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
13039         (offload_objects_file_name): New static var.
13040         (tool_cleanup): Remove offload_objects_file_name file.
13041         (find_offloadbeginend): Replace with ...
13042         (find_crtoffloadtable): ... this.
13043         (run_gcc): Remove offload_argc and offload_argv.
13044         Get offload_objects_file_name from -foffload-objects=... option.
13045         Read names of object files with offload from this file, pass them to
13046         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
13047         don't pass offloadbegin and offloadend to the linker.  Don't pass
13048         offload non-LTO files to the linker, because now they're not claimed.
13049
13050 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
13051
13052         PR ipa/69630
13053         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13054         on builtin_unreachable.
13055
13056 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
13057
13058         PR rtl-optimization/69896
13059         * regcprop.c: Include cfgrtl.h.
13060         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
13061         than remembered mode, either delete it (if noop_move_p), or
13062         treat like copy_p but not noop_p instruction.
13063
13064 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13065
13066         PR debug/69705
13067         * dwarf2out.c (gen_variable_die): Work around buggy LTO
13068         - allow NULL decl for Fortran DW_TAG_common_block variables.
13069
13070 2016-02-24  Jason Merrill  <jason@redhat.com>
13071
13072         * common.opt (flifetime-dse): Add -flifetime-dse=1.
13073
13074 2016-02-24  Richard Biener  <rguenther@suse.de>
13075             Jakub Jelinek  <jakub@redhat.com>
13076
13077         PR middle-end/69760
13078         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
13079         conditionally executed ops to well-defined overflow behavior.
13080
13081 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13082
13083         PR middle-end/69915
13084         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
13085         elements.
13086
13087 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13088
13089         PR rtl-optimization/69886
13090         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
13091         argument.  Use it when checking validity of set instructions.
13092         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
13093         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
13094         callsite.
13095         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
13096         * store-motion.c (find_moveable_store): Update
13097         can_assign_to_reg_without_clobbers_p callsite.
13098
13099 2016-02-24  Richard Biener  <rguenther@suse.de>
13100
13101         PR middle-end/68963
13102         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
13103         bogus check.
13104         (record_nonwrapping_iv): Do not fall back to the low/high bound
13105         for non-constant IV bases if the stmt is not always executed.
13106
13107 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13108
13109         * config/arm/arm-cores.def (cortex-a32): New entry.
13110         * config/arm/arm-tables.opt: Regenerate.
13111         * config/arm/arm-tune.md: Regenerate.
13112         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13113         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13114         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13115         for -mcpu and -mtune.
13116
13117 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13118
13119         PR target/69875
13120         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13121         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13122         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13123         (atomic_loaddi_1): Delete.
13124         (atomic_loaddi): Rewrite expander using the above changes.
13125
13126 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13127
13128         PR c/69918
13129         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13130         2 to 3.
13131
13132 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13133             Richard Biener  <rguenth@suse.de>
13134
13135         PR middle-end/69909
13136         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13137         set_mem_attributes if tem is SSA_NAME which got expanded
13138         as a MEM.
13139
13140 2016-02-24  Richard Biener  <rguenther@suse.de>
13141
13142         PR tree-optimization/69907
13143         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13144         end of permutations for BB vectorization.
13145
13146 2016-02-24  Christian Bruel  <christian.bruel@st.com>
13147
13148         * config/arm/arm-c.c (arm_option_override): Initialize
13149         target_option_current_node.
13150         * config/arm/arm.c (arm_pragma_target_parse): Replace
13151         build_target_option_node call by target_option_current_node.
13152         Set target_option_current_node.
13153         Fix comments.
13154
13155 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
13156
13157         PR target/69810
13158         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13159         define_insn_and_split to define_insn.
13160         (zero_extendqi<mode>2_dot2): Same.
13161         (extendqi<mode>2_dot): Same.
13162         (extendqi<mode>2_dot2): Same.
13163
13164 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13165
13166         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13167         and add bypass for AES{D,E} and AESMC pairs.
13168         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13169         and AESMC pairs.
13170
13171 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13172
13173         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13174         series for reciprocal square root in Exynos M1.
13175
13176 2016-02-23  Martin Sebor  <msebor@redhat.com>
13177
13178         PR c/69759
13179         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13180         __builtin_alloca_with_align.
13181
13182 2016-02-23  Richard Henderson  <rth@redhat.com>
13183
13184         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13185         (ix86_register_pragmas): Remove __seg_tls.
13186         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13187         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13188         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13189         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13190         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13191         * doc/extend.texi (__seg_tls): Remove item.
13192
13193 2016-02-23  Richard Biener  <rguenther@suse.de>
13194
13195         * alloc-pool.h (struct allocation_object): Make id member
13196         conditional on CHECKING_P again.
13197         (get_instance): Adjust.
13198         (base_pool_allocator): Likewise.
13199
13200 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13201
13202         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13203         (parallelize_loops): In OpenACC kernels mode, set n_threads to
13204         zero.
13205         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13206         flag_openacc.
13207         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13208
13209 2016-02-23  Richard Biener  <rguenther@suse.de>
13210
13211         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13212         * bitmap.h (struct bitmap_usage): Likewise.
13213         (bitmap_move): Declare.
13214         * bitmap.c (register_overhead): Take size_t argument.
13215         (bitmap_move): New function.
13216         * df-problems.c (df_rd_transfer_function): Use bitmap_move
13217         to properly account overhead.
13218         * tree.c (free_node): Use tree_size.
13219
13220 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
13221
13222         PR c++/69902
13223         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
13224         when inverting comparison.
13225
13226         PR c/69900
13227         * common.opt (Wunreachable-code): Add Warning flag.
13228
13229 2016-02-23  Mark Wielaard  <mjw@redhat.com>
13230             Jakub Jelinek  <jakub@redhat.com>
13231
13232         PR c/69911
13233         * cgraphunit.c (check_global_declaration): Check main_input_filename
13234         and DECL_SOURCE_FILE are not NULL.
13235
13236 2016-02-23  Martin Jambor  <mjambor@suse.cz>
13237
13238         PR tree-optimization/69666
13239         * tree-sra.c (sra_modify_assign): Do not attempt to create
13240         default_def replacements for unscalarizable regions.
13241
13242 2016-02-20  Mark Wielaard  <mjw@redhat.com>
13243
13244         PR c/28901
13245         * cgraphunit.c (check_global_declaration): Check level of
13246         warn_unused_const_variable and main_input_filename.
13247         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
13248         (-Wunused-variable): For C implies -Wunused-const-variable=1.
13249         (-Wunused-const-variable): Explain levels 1 and 2.
13250
13251 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13252
13253         PR target/69888
13254         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13255         identical arguments.  Formatting and spelling fixes.
13256
13257         PR target/69885
13258         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13259         be specified.
13260
13261         PR target/69894
13262         PR target/69895
13263         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13264         and m68k-devices.def.
13265         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13266         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13267
13268 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13269
13270         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13271         and HImode registers.
13272
13273 2016-02-22  Richard Biener  <rguenther@suse.de>
13274
13275         PR tree-optimization/69882
13276         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13277         preserve permutations present because of gaps.
13278         (vect_supported_load_permutation_p): Always continue checking
13279         permutations after vect_attempt_slp_rearrange_stmts.
13280
13281 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13282
13283         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13284         min_profitable_estimate, rather than min_profitable_iters.
13285
13286 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13287
13288         PR target/69885
13289         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13290         SImode for last match_operand.
13291
13292 2016-02-22  Martin Liska  <mliska@suse.cz>
13293
13294         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13295         return bitsize - 1 as the return value.
13296
13297 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13298
13299         PR target/69806
13300         PR target/54089
13301         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13302         Handle negative shift counts.
13303         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13304         force_reg on the shift constant.
13305         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13306         (lshrsi3_d): Handle negative shift counts.
13307
13308 2016-02-22  Richard Biener  <rguenther@suse.de>
13309             Tom de Vries  <tom@codesourcery.com>
13310
13311         * graph.c: Include dumpfile.h.
13312         (print_graph_cfg): Split into three overloads.
13313         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13314
13315 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13316
13317         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13318         dump-fn.
13319
13320 2016-02-22  Richard Biener  <rguenther@suse.de>
13321
13322         PR ipa/37448
13323         * ipa-inline-transform.c (inline_call): When not updating
13324         overall summaries adjust self size by the growth estimate.
13325         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13326         hash-set, do not update overall summaries here.  Renamed from ...
13327         (inline_to_all_callers): ... this which is now wrapping the
13328         above and performing delayed overall summary update.
13329         (early_inline_small_functions): Delay updating of the overall
13330         summary.
13331
13332 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13333
13334         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13335         variable.
13336
13337 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13338
13339         PR driver/69805
13340         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13341         :%* in %:gt() argument.
13342         (greater_than_spec_func): Adjust for expecting only numbers,
13343         if there are more than two numbers, compare the last two.
13344
13345 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13346
13347         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13348         -Wnarrowing with -std.
13349
13350 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13351
13352         PR c++/69851
13353         * expr.c (store_field): Don't use bit-field path if exp is
13354         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13355         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13356         and the assignment can be performed by bitwise copy.  Formatting
13357         fix.
13358
13359         PR middle-end/69838
13360         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13361         call copy_reg_eh_region_note_forward on before and/or after sequences
13362         and remove note from insn if it no longer can throw.
13363
13364         PR target/69820
13365         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13366         if TARGET_AVX512BW.
13367
13368 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13369
13370         * config/s390/vector.md: Add missing commutative operand markers
13371         to the patterns which qualify for one.
13372         * config/s390/vx-builtins.md: Likewise.
13373
13374 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13375
13376         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13377         types to mode iterators.
13378         (vec_double): ... and mode attribute.
13379         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13380
13381 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13382
13383         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13384         Change the predicate of op2 from nonimmediate to general and let
13385         reload fix it if necessary.
13386
13387 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13388
13389         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13390
13391 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13392
13393         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13394         mode.
13395
13396 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13397
13398         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
13399         * config/s390/s390.c (s390_expand_vec_movstr): New function.
13400         * config/s390/s390.md ("movstr<P:mode>"): Call
13401         s390_expand_vec_movstr.
13402
13403 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13404
13405         * config/s390/s390.md: Add missing output modifier for operand 1
13406         to print it as address properly.
13407
13408 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13409
13410         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
13411         * config/s390/2964.md: New file.
13412         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
13413         of insn grouping attributes depending on the CPU level.
13414         (s390_get_unit_mask): New function.
13415         (s390_sched_score): Remove the OOO from the scheduling macros.
13416         Add loop to calculate a score for the instruction mix.
13417         (s390_sched_reorder): Likewise plus improve debug output.
13418         (s390_sched_variable_issue): Rename macros as above.  Calculate
13419         the unit distances after actually scheduling an insn.  Improve
13420         debug output.
13421         (s390_sched_init): Clear last_scheduled_unit_distance array.
13422         * config/s390/s390.md: Include 2964.md.
13423
13424 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13425
13426         PR target/69671
13427         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
13428         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
13429         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
13430         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
13431         *avx512f_<code>v8div16qi2_mask_1): New insns.
13432
13433 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13434
13435         PR target/68404
13436         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
13437         2016-02-09 change.
13438
13439         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
13440         earlyclobber from target.  Use wF constraint for fused memory
13441         address.
13442         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
13443
13444 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13445             Martin Liska  <mliska@suse.cz>
13446
13447         PR sanitizer/69863
13448         * cfgexpand.c (asan_sanitize_stack_p): New function.
13449         (partition_stack_vars): Use the function.
13450         (expand_stack_vars): Likewise.
13451         (defer_stack_allocation): Likewise.
13452         (expand_used_vars): Likewise.
13453
13454 2016-02-18  Richard Biener  <rguenther@suse.de>
13455
13456         PR middle-end/69553
13457         * fold-const.c (operand_equal_p): Properly compare offsets for
13458         IMAGPART_EXPR and ARRAY_REF.
13459
13460 2016-02-18  Nick Clifton  <nickc@redhat.com>
13461
13462         PR target/62254
13463         PR target/69610
13464         * config/arm/arm.c (arm_option_override_internal): Disable
13465         interworking if the target does not support thumb instructions.
13466         (arm_reload_in_hi): Handle the case where a register to register
13467         move needs reloading because there is no simple pattern to handle
13468         it.
13469         (arm_reload_out_hi): Likewise.
13470
13471 2016-02-18  Richard Biener  <rguenther@suse.de>
13472
13473         PR middle-end/69854
13474         * match.pd: Don't use fold_binary or fold_unary for folding
13475         constants.
13476
13477 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
13478
13479         PR c++/69850
13480         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
13481         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
13482         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
13483         warn on gimple_no_warning_p statements.
13484
13485 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
13486
13487         * doc/extend.texi (C++ Attributes): Correct description of
13488         warn_unused type attribute.
13489
13490 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13491
13492         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
13493         correct instruction.
13494
13495 2016-02-17  Richard Biener  <rguenther@suse.de>
13496
13497         PR rtl-optimization/69609
13498         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
13499         (find_traces_1_round): When ending a trace update cached priority
13500         of successors.
13501         (bb_to_key): Use cached priority when available.
13502         (copy_bb): Initialize cached priority.
13503         (reorder_basic_blocks_software_trace_cache): Likewise.
13504
13505 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13506
13507         PR target/69161
13508         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
13509         New predicate.
13510         (aarch64_comparison_operator): Break overly long line into two.
13511         (aarch64_comparison_operation): Likewise.
13512         * config/aarch64/aarch64.md (cstorecc4): Use
13513         aarch64_comparison_operator_mode instead of
13514         aarch64_comparison_operator.
13515         (cstore<mode>4): Likewise.
13516         (aarch64_cstore<mode>): Likewise.
13517         (*cstoresi_insn_uxtw): Likewise.
13518         (cstore<mode>_neg): Likewise.
13519         (*cstoresi_neg_uxtw): Likewise.
13520
13521 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13522
13523         PR target/69161
13524         * config/arm/predicates.md (arm_comparison_operator_mode):
13525         New predicate.
13526         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
13527         instead of arm_comparison_operator.
13528         (*mov_negscc): Likewise.
13529         (*mov_notscc): Likewise.
13530         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
13531         (*thumb2_mov_negscc): Likewise.
13532         (*thumb2_mov_negscc_strict_it): Likewise.
13533         (*thumb2_mov_notscc): Likewise.
13534         (*thumb2_mov_notscc_strict_it): Likewise.
13535
13536 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
13537
13538         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
13539         Add missing return.
13540
13541 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
13542
13543         * config/visium/visium.c (machine_libfunc_index): New enum.
13544         (machine_libfuncs): New structure.
13545         (visium_libfuncs): New static variable.
13546         (TARGET_INIT_LIBFUNCS): Define to...
13547         (visium_init_libfuncs): ...this.  New function.
13548         (expand_block_move_4): Use the appropriate libfunc.
13549         (expand_block_move_2): Likewise.
13550         (expand_block_move_1): Likewise.
13551         (expand_block_set_4): Likewise.
13552         (expand_block_set_2): Likewise.
13553         (expand_block_set_1): Likewise.
13554         (visium_trampoline_init): Likewise.
13555
13556 2016-02-17  Nick Clifton  <nickc@redhat.com>
13557
13558         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
13559         TI's devices.csv file as of March 2016.
13560
13561 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13562
13563         PR Target/48344
13564         * opts-global.c (handle_common_deferred_options): Introduce and
13565         initialize two global variables to remember command-line options
13566         specifying a stack-limiting register.
13567         * opts.h: Add extern declarations of the two new global variables.
13568         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
13569         variable based on the values of the two new global variables.
13570
13571 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13572
13573         PR c/69835
13574         * common.opt (Wnonnull-compare): New warning.
13575         * doc/invoke.texi (-Wnonnull): Remove text about comparison
13576         of arguments against NULL.
13577         (-Wnonnull-compare): Document.
13578         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
13579         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
13580         * passes.def (pass_warn_nonnull_compare): Add.
13581         * gimple-ssa-nonnull-compare.c: New file.
13582
13583 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13584
13585         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
13586         AARCH64_EXTRA_TUNE_RECIP_SQRT.
13587
13588 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13589
13590         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
13591         reciprocal sqrt for -mlow-precision-recip-sqrt.
13592
13593 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13594             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13595
13596         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
13597         always use lane loads to construct non-constant vectors.
13598
13599 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13600
13601         * config/aarch64/aarch64.md
13602         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
13603         constraints for operand 3.
13604         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
13605
13606 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13607             Richard Biener  <rguenther@suse.de>
13608
13609         PR tree-optimization/69820
13610         * tree-vect-patterns.c (type_conversion_p): Return false if
13611         *orig_type is unsigned single precision or boolean.
13612         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
13613         Formatting fix.
13614
13615 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13616
13617         PR rtl-optimization/69764
13618         PR rtl-optimization/69771
13619         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
13620         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
13621
13622 2016-02-16  Richard Biener  <rguenther@suse.de>
13623
13624         PR tree-optimization/69776
13625         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
13626         sets from caller.
13627         (indirect_refs_may_alias_p): Likewise.
13628         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
13629         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
13630         according to tbaa_p.
13631         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
13632         (optimize_stmt): For redundant store discovery do not allow tbaa.
13633
13634 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
13635
13636         PR tree-optimization/69714
13637         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
13638         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
13639
13640 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
13641
13642         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
13643         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
13644         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
13645         * config/arc/arc.c (arc_init): Check FPU options.
13646         (get_arc_condition_code): Handle new CC_FPU* modes.
13647         (arc_select_cc_mode): Likewise.
13648         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
13649         register pair only. Allow access for ARCv2 accumulator.
13650         (gen_compare_reg): Whenever we have FPU support use FPU compare
13651         instructions.
13652         (arc_reorg): Don't generate brcc insns when FPU compare
13653         instructions are involved.
13654         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
13655         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
13656         floating point emulation.
13657         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
13658         (REVERSE_CONDITION): Add new CC_FPU* modes.
13659         (TARGET_FP_SP_BASE): Define.
13660         (TARGET_FP_DP_BASE): Likewise.
13661         (TARGET_FP_SP_FUSED): Likewise.
13662         (TARGET_FP_DP_FUSED): Likewise.
13663         (TARGET_FP_SP_CONV): Likewise.
13664         (TARGET_FP_DP_CONV): Likewise.
13665         (TARGET_FP_SP_SQRT): Likewise.
13666         (TARGET_FP_DP_SQRT): Likewise.
13667         (TARGET_FP_DP_AX): Likewise.
13668         * config/arc/arc.md (ARCV2_ACC): New constant.
13669         (type): New fpu type attribute.
13670         (SDF): Conditional iterator.
13671         (cstore<mode>, cbranch<mode>): Change expand condition.
13672         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
13673         handles FPU/FPX cases as well.
13674         * config/arc/arc.opt (mfpu): New option.
13675         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
13676         Renamed.
13677         (adddf3, muldf3, subdf3): Removed.
13678         * config/arc/predicates.md (proper_comparison_operator): Recognize
13679         CC_FPU* modes.
13680         * config/arc/fpu.md: New file.
13681         * doc/invoke.texi (ARC Options): Document mfpu option.
13682
13683 2016-02-16  Richard Biener  <rguenther@suse.de>
13684
13685         PR rtl-optimization/69291
13686         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
13687         noce_operand_ok check.
13688
13689 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13690
13691         PR lto/67709
13692         * omp-low.c (simd_clone_create): Remove call to
13693         symtab->call_cgraph_insertion_hooks.
13694
13695 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13696
13697         PR tree-optimization/69802
13698         * tree-ssa-reassoc.c (update_range_test): If op is
13699         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
13700         op == 1 test of precision 1 integral op, otherwise handle
13701         that case as op itself.  Fix up formatting.
13702         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
13703         up formatting.
13704
13705 2016-02-16  Richard Biener  <rguenther@suse.de>
13706
13707         PR tree-optimization/69586
13708         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
13709         types for conversion sources.
13710
13711 2016-02-16  Richard Biener  <rguenther@suse.de>
13712
13713         PR middle-end/69801
13714         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
13715         mask OEP_ADDRESS_OF.
13716
13717 2016-02-16  Alan Modra  <amodra@gmail.com>
13718
13719         PR target/68973
13720         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
13721         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
13722         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
13723         (p8_mtvsrwz): New.
13724         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
13725         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
13726         (p8_fmrgow_<mode>): Likewise.
13727         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
13728         changes.
13729         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
13730         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
13731         to use movdi_internal64.  Remove op0_di.
13732         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
13733
13734 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
13735
13736         Add support for the FCCMP insn types
13737
13738         * config/aarch64/aarch64.md (fccmp): Change insn type.
13739         (fccmpe): Likewise.
13740         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
13741         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
13742         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
13743         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
13744         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
13745         * config/arm/types.md (fccmps): Add new insn type.
13746         (fccmpd): Likewise.
13747
13748 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13749
13750         * alias.c (get_alias_set): Fix a typo in comment.
13751
13752 2016-02-15  Richard Biener  <rguenther@suse.de>
13753
13754         PR tree-optimization/69595
13755         * match.pd: Complete range test simplification to true.
13756
13757 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
13758
13759         PR rtl-optimization/69648
13760         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
13761         pic_offset_table_rtx.
13762
13763         PR rtl-optimization/69752
13764         * ira.c (update_equiv_regs): When looking for more than a single SET,
13765         also take other side effects into account.
13766
13767 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13768
13769         * config/s390/s390.c (s390_function_profiler): Add a new sequence
13770         for z900+ CPUs in 31-bit mode.
13771
13772 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13773
13774         * common/config/s390/s390-common.c (s390_supports_split_stack):
13775         New function.
13776         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
13777         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
13778         * config/s390/s390.c (struct machine_function): New field
13779         split_stack_varargs_pointer.
13780         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
13781         in s390_emit_prologue.
13782         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
13783         vararg pointer.
13784         (morestack_ref): New global.
13785         (SPLIT_STACK_AVAILABLE): New macro.
13786         (s390_expand_split_stack_prologue): New function.
13787         (s390_live_on_entry): New function.
13788         (s390_va_start): Use split-stack vararg pointer if appropriate.
13789         (s390_asm_file_end): Emit the split-stack note sections.
13790         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
13791         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
13792         (UNSPECV_SPLIT_STACK_CALL): New unspec.
13793         (UNSPECV_SPLIT_STACK_DATA): New unspec.
13794         (split_stack_prologue): New expand.
13795         (split_stack_space_check): New expand.
13796         (split_stack_data): New insn.
13797         (split_stack_call): New expand.
13798         (split_stack_call_*): New insn.
13799         (split_stack_cond_call): New expand.
13800         (split_stack_cond_call_*): New insn.
13801
13802 2016-02-15  Richard Biener  <rguenther@suse.de>
13803
13804         PR tree-optimization/69783
13805         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13806         Add trivially correct cases.
13807
13808 2016-02-15  Tom de Vries  <tom@codesourcery.com>
13809
13810         PR lto/69655
13811         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
13812         do_force_output.
13813         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
13814
13815 2016-02-15  Richard Biener  <rguenther@suse.de>
13816
13817         PR tree-optimization/69776
13818         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
13819         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
13820         indicate whether we can use TBAA to disambiguate against stores.
13821         Use alias-set zero if not.
13822         (visit_reference_op_store): Do not use TBAA when looking up
13823         redundant stores.
13824         * tree-ssa-pre.c (compute_avail): Use TBAA here.
13825         (eliminate_dom_walker::before_dom_children): But not when looking
13826         up redundant stores.
13827
13828 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
13829
13830         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
13831
13832 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13833
13834         *  config/i386/znver1.md
13835         (znver1_pop, znver1_pop_mem,
13836         znver1_load_imov_double_store,
13837         znver1_load_imov_direct_store,
13838         znver1_load_imov_direct_load,
13839         znver1_load_imov_double_load): Add new.
13840         (znver1_insn, znver1_insn_load): Add icmov type.
13841         (znver1_sseavx_fma,
13842         znver1_sseavx_fma_load,
13843         znver1_avx256_fma,
13844         znver1_avx256_fma_load): Fix pipe usage.
13845
13846 2016-02-14  Alan Modra  <amodra@gmail.com>
13847
13848         PR target/68973
13849         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
13850         with an invalid hard reg, reload just the reg not the entire
13851         pre/post-inc/dec address expression.
13852
13853 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13854
13855         PR target/67260
13856         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
13857         fixed R1_REG scratch reg.
13858         (sibcall_value_pcrel_fdpic): Likewise.
13859
13860 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13861
13862         PR target/67636
13863         PR target/64345
13864         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
13865
13866 2016-02-12  Walter Lee  <walt@tilera.com>
13867
13868         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
13869         * config/tilegx/t-tilegx: Likewise.
13870
13871 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13872
13873         PR other/69554
13874         * diagnostic-show-locus.c (struct line_span): New struct.
13875         (layout::get_first_line): Delete.
13876         (layout::get_last_line): Delete.
13877         (layout::get_num_line_spans): New member function.
13878         (layout::get_line_span): Likewise.
13879         (layout::print_heading_for_line_span_index_p): Likewise.
13880         (layout::get_expanded_location): Likewise.
13881         (layout::calculate_line_spans): Likewise.
13882         (layout::m_first_line): Delete.
13883         (layout::m_last_line): Delete.
13884         (layout::m_line_spans): New field.
13885         (layout::layout): Update comment.  Replace m_first_line and
13886         m_last_line with m_line_spans, replacing their initialization
13887         with a call to calculate_line_spans.
13888         (diagnostic_show_locus): When printing source lines and
13889         annotations, rather than looping over a single span
13890         of lines, instead loop over each line_span within
13891         the layout, with an inner loop over the lines within them.
13892         Call the context's start_span callback when changing line spans.
13893         * diagnostic.c (diagnostic_initialize): Initialize start_span.
13894         (diagnostic_build_prefix): Break out the building of the location
13895         part of the string into...
13896         (diagnostic_get_location_text): ...this new function, rewriting
13897         it from nested ternary expressions to a sequence of "if"
13898         statements.
13899         (default_diagnostic_start_span_fn): New function.
13900         * diagnostic.h (diagnostic_start_span_fn): New typedef.
13901         (diagnostic_context::start_span): New field.
13902         (default_diagnostic_start_span_fn): New prototype.
13903
13904 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13905
13906         PR driver/69779
13907         * gcc.c (driver::finalize): Fix cleanup of "specs".
13908
13909 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13910
13911         PR driver/69265
13912         PR driver/69453
13913         * gcc.c (driver::driver): Initialize m_option_suggestions.
13914         (driver::~driver): Clean up m_option_suggestions.
13915         (suggest_option): Convert to...
13916         (driver::suggest_option): ...this, and split out into
13917         driver::build_option_suggestions and find_closest_string.
13918         (driver::build_option_suggestions): New function, from
13919         first half of suggest_option.  Special-case
13920         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
13921         the sanitizer_opts array.  For options of enum types, add the
13922         various enum values to the candidate strings.
13923         (driver::handle_unrecognized_options): Remove "const".
13924         * gcc.h (driver::handle_unrecognized_options): Likewise.
13925         (driver::build_option_suggestions): New decl.
13926         (driver::suggest_option): New decl.
13927         (driver::m_option_suggestions): New field.
13928         * opts-common.c (add_misspelling_candidates): New function.
13929         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
13930         and make non-static.
13931         * opts.h (sanitizer_opts): New array decl.
13932         (add_misspelling_candidates): New function decl.
13933         * spellcheck.c (find_closest_string): New function.
13934         * spellcheck.h (find_closest_string): New function decl.
13935
13936 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13937
13938         PR rtl-optimization/69764
13939         PR rtl-optimization/69771
13940         * optabs.c (expand_binop_directly): For shift_optab_p, force
13941         convert_modes with VOIDmode if xop1 has VOIDmode.
13942
13943 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
13944
13945         PR target/69729
13946         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
13947         to correctly determine instrumentation thunks.
13948
13949 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13950
13951         PR ipa/69241
13952         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
13953         type by reference, force lhs on the call.
13954
13955         PR ipa/68672
13956         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
13957         Compute retval and retbnd early in all cases if split_part_return_p
13958         and return_bb is not EXIT.  Remove all clobber stmts and reset
13959         all debug stmts that refer to SSA_NAMEs defined in split part,
13960         except if it is retval, in that case replace the old retval with the
13961         lhs of the call to the split part.
13962
13963 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13964
13965         revert:
13966         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13967
13968         PR middle-end/66726
13969         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13970         whose result is used in PHI.
13971         (maybe_optimize_range_tests): Likewise.
13972         (final_range_test_p): Likweise.
13973
13974 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13975
13976         PR middle-end/66726
13977         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13978         whose result is used in PHI.
13979         (maybe_optimize_range_tests): Likewise.
13980         (final_range_test_p): Likweise.
13981
13982 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13983
13984         * cgraph.c: Spelling fixes - behaviour -> behavior and
13985         neighbour -> neighbor.
13986         * target.def: Likewise.
13987         * sel-sched.c: Likewise.
13988         * config/mips/mips.c: Likewise.
13989         * config/arc/arc.md: Likewise.
13990         * config/arm/cortex-a57.md: Likewise.
13991         * config/arm/arm.c: Likewise.
13992         * config/arm/neon.md: Likewise.
13993         * config/arm/arm-c.c: Likewise.
13994         * config/vms/vms-c.c: Likewise.
13995         * config/s390/s390.c: Likewise.
13996         * config/i386/znver1.md: Likewise.
13997         * config/i386/i386.c: Likewise.
13998         * config/ia64/hpux-unix2003.h: Likewise.
13999         * config/msp430/msp430.md: Likewise.
14000         * config/rx/rx.c: Likewise.
14001         * config/rx/rx.md: Likewise.
14002         * config/aarch64/aarch64-simd.md: Likewise.
14003         * config/aarch64/aarch64.c: Likewise.
14004         * config/nvptx/nvptx.c: Likewise.
14005         * config/bfin/bfin.c: Likewise.
14006         * config/cris/cris.opt: Likewise.
14007         * config/rs6000/rs6000.c: Likewise.
14008         * target.h: Likewise.
14009         * spellcheck.c: Likewise.
14010         * ira-build.c: Likewise.
14011         * tree-inline.c: Likewise.
14012         * builtins.c: Likewise.
14013         * lra-constraints.c: Likewise.
14014         * explow.c: Likewise.
14015         * hwint.h: Likewise.
14016         * targhooks.c: Likewise.
14017         * tree-vect-data-refs.c: Likewise.
14018         * expr.c: Likewise.
14019         * doc/tm.texi: Likewise.
14020         * doc/extend.texi: Likewise.
14021         * doc/install.texi: Likewise.
14022         * doc/md.texi: Likewise.
14023         * tree-ssa-tail-merge.c: Likewise.
14024         * sched-int.h: Likewise.
14025         * match.pd: Likewise.
14026         * sched-ebb.c: Likewise.
14027         * target.def (omit_struct_return_reg): Likewise.
14028         * gimple-ssa-isolate-paths.c: Likewise.
14029         (find_implicit_erroneous_behaviour): Renamed to...
14030         (find_implicit_erroneous_behavior): ... this.
14031         (find_explicit_erroneous_behaviour): Renamed to...
14032         (find_explicit_erroneous_behavior): ... this.
14033         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
14034
14035 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
14036
14037         PR rtl-optimization/64682
14038         PR rtl-optimization/69567
14039         PR rtl-optimization/69737
14040         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
14041         in I2 as well, just lose it.
14042
14043 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14044
14045         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
14046         New variable.
14047         (aarch64_last_printed_tune_string): Likewise.
14048         (aarch64_declare_function_name): Only output .arch assembler
14049         directive if it will be different from the previously output
14050         directive.  Same for .tune comment but only if -dA is set.
14051         (aarch64_start_file): New function.
14052         (TARGET_ASM_FILE_START): Define.
14053
14054 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
14055
14056         PR plugins/69758
14057         * Makefile.in (PLUGIN_HEADERS): Add params.list.
14058
14059 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
14060
14061         PR target/65313
14062         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
14063         -Wmaybe-uninitialized warning.
14064
14065 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
14066
14067         PR target/69713
14068         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
14069
14070 2016-02-11  Richard Biener  <rguenther@suse.de>
14071
14072         PR rtl-optimization/69291
14073         * ifcvt.c (noce_try_store_flag_constants): Do not allow
14074         subexpressions affected by changing the result.
14075
14076 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
14077
14078         PR target/69148
14079         * lra-constraints.c (curr_insn_transform): Find in/out operands
14080         for secondary memory moves.  Update dups.
14081
14082 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
14083
14084         PR tree-optimization/69652
14085         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
14086         to nested loop, did source re-formatting, skip debug statements,
14087         add check on statement with volatile operand, remove dead scalar
14088         statements.
14089
14090 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
14091             Patrick Palka  <ppalka@gcc.gnu.org>
14092
14093         PR ipa/69241
14094         PR c++/69649
14095         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
14096         calls if the return type is TREE_ADDRESSABLE.
14097         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
14098         * ipa-split.c (split_function): Fix doubled "we" in comment.
14099         Use void return type for the split part even if
14100         !split_point->split_part_set_retval.
14101
14102 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
14103
14104         PR tree-optimization/68021
14105         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14106         when computing the value of biv cand by itself.
14107
14108 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14109
14110         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14111         (cortexa57_tunings): Likewise.
14112         (cortexa72_tunings): Likewise.
14113         (arch_macro_fusion_pair_p): Add support for AES fusion.
14114         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14115         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14116         Allow virtual registers before reload so early scheduling works.
14117         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14118         correct latency and pipeline.
14119         (cortex_a57_crypto_complex): Likewise.
14120         (cortex_a57_crypto_xor): Likewise.
14121         (define_bypass): Add AES bypass.
14122
14123 2016-02-10  Richard Biener  <rguenther@suse.de>
14124
14125         PR tree-optimization/69726
14126         * passes.def: Add DCE pass before late uninit.
14127         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14128         really fixup if-conversions job.
14129
14130 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14131
14132         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14133         (arm_cortex_a57_tune): Likewise.
14134         (aarch_macro_fusion_pair_p): Add support for AES fusion.
14135         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14136
14137 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14138
14139         * timevar.def (TV_PHASE_DBGINFO): Delete.
14140         (TV_PHASE_CHECK_DBGINFO): Likewise.
14141         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14142
14143 2016-02-10  Richard Biener  <rguenther@suse.de>
14144
14145         PR tree-optimization/69719
14146         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14147         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14148
14149 2016-02-09  Andrew Pinski  <apinski@cavium.com>
14150
14151         PR tree-opt/69282
14152         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14153         get_vcond_mask_icode returns false.
14154
14155 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
14156
14157         PR target/68404
14158         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14159         an ADDIS that adds a pointer to a large constant that sets the
14160         upper16 bits with a load operation.
14161
14162 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14163
14164         PR target/68532
14165         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14166         order.
14167         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14168         endian.
14169         (vzipq_s16): Likewise.
14170         (vzipq_s32): Likewise.
14171         (vzipq_f32): Likewise.
14172         (vzipq_u8): Likewise.
14173         (vzipq_u16): Likewise.
14174         (vzipq_u32): Likewise.
14175         (vzipq_p8): Likewise.
14176         (vzipq_p16): Likewise.
14177
14178 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14179
14180         PR target/68532
14181         * config/arm/arm.c (neon_endian_lane_map): New function.
14182         (neon_vector_pair_endian_lane_map): New function.
14183         (arm_evpc_neon_vuzp): Allow for big endian lane order.
14184         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14185         endian.
14186         (vuzpq_s16): Likewise.
14187         (vuzpq_s32): Likewise.
14188         (vuzpq_f32): Likewise.
14189         (vuzpq_u8): Likewise.
14190         (vuzpq_u16): Likewise.
14191         (vuzpq_u32): Likewise.
14192         (vuzpq_p8): Likewise.
14193         (vuzpq_p16): Likewise.
14194
14195 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
14196
14197         PR target/69634
14198         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14199         debug insns.
14200
14201 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
14202
14203         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14204         truncate const_int operand 1 to QImode.
14205
14206 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14207
14208         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14209         corresponding to an abnormal edge.
14210
14211 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14212
14213         PR tree-optimization/69599
14214         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
14215         function.
14216         (find_func_aliases_for_builtin_call, find_func_clobbers)
14217         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
14218         partition.
14219
14220 2016-02-09  Richard Biener  <rguenther@suse.de>
14221
14222         PR tree-optimization/69715
14223         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
14224         LHS on calls as non-rewritable.
14225
14226 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14227
14228         PR lto/69707
14229         * lto-wrapper.c (append_diag_options): New function.
14230         (compile_offload_image): Call append_diag_options.
14231
14232 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
14233
14234         PR other/69722
14235         * doc/extend.texi (Flag Output Operands): Correct sectioning.
14236         Minor copy-edit to fix verb tenses.
14237
14238 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
14239
14240         PR tree-optimization/69209
14241         * ipa-split.c (split_function): If split part is not
14242         returning retval, retval has gimple type but is not
14243         gimple value, force it into a SSA_NAME first.
14244
14245 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
14246
14247         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
14248         outdated section.
14249
14250 2016-02-08  Jason Merrill  <jason@redhat.com>
14251
14252         PR c++/69631
14253         * convert.c (convert_to_integer_1): Check dofold on truncation
14254         distribution.
14255         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14256         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14257         Rename from *_nofold.
14258         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14259         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14260
14261 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14262
14263         PR target/60410
14264         * tree.c (build_common_tree_nodes): Remove short_double argument.
14265         All callers changed.
14266         * tree.h (build_common_tree_nodes): Adjust declaration.
14267         * doc/invoke.texi (-fshort-double): Remove documentation.
14268         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14269         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14270         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14271         (append_linker_options): Don't handle OPT_fshort_double.
14272
14273         PR rtl-optimization/68730
14274         * lra-remat.c (insn_to_cand_activation): New static variable.
14275         (lra_remat): Allocate and free it.
14276         (create_cand): New arg activation. Initialize a field in
14277         insn_to_cand_activation if it is nonnull.
14278         (create_cands): Pass the activation insn to create_cand when making
14279         a candidate involving an output reload.  Reorganize code a little.
14280         (do_remat): Keep track of active status of candidates in a separate
14281         bitmap.
14282
14283 2016-02-08  Richard Biener  <rguenther@suse.de>
14284
14285         PR tree-optimization/69719
14286         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14287         Properly use absolute of the difference of the two offsets to
14288         compare or adjust the segment length.
14289
14290 2016-02-08  Richard Biener  <rguenther@suse.de>
14291             Jeff Law  <law@redhat.com>
14292
14293         PR target/68273
14294         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14295         types for anonymous SSA names.
14296
14297 2016-02-08   Richard Biener  <rguenther@suse.de>
14298
14299         PR rtl-optimization/69274
14300         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14301
14302 2016-02-08  Jeff Law  <law@redhat.com>
14303
14304         PR tree-optimization/65917
14305         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14306         equivalences from if (x == y) style conditionals.
14307         (loop_depth_of_name): Remove.
14308         (record_equality): Remove loop depth check.
14309         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14310         (const_and_copies::record_const_or_copy_raw): New member function.
14311         * tree-ssa-scopedtables.c
14312         (const_and_copies::record_const_or_copy_raw): New, factored out of
14313         (const_and_copies::record_const_or_copy): Call new member function.
14314
14315 2016-02-05  Jeff Law  <law@redhat.com>
14316
14317         PR tree-optimization/68541
14318         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14319         (count_stmts_in_block): New function.
14320         (poor_ifcvt_candidate_code): Likewise.
14321         (is_feasible_trace): Add some heuristics to determine when path
14322         splitting is profitable.
14323         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14324         is a diamond with a single exit.
14325
14326 2016-02-05  Martin Sebor  <msebor@redhat.com>
14327
14328         PR c++/69662
14329         * doc/invoke.texi: Update -Wplacement-new to take an optional
14330         argument.
14331
14332 2016-02-06  Richard Henderson  <rth@redhat.com>
14333
14334         PR c/69643
14335         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14336         out of non-standard address spaces.
14337
14338 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14339
14340         PR rtl-optimization/69691
14341         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14342
14343 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14344
14345         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14346         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14347         (*ieee128_mfvsrd_64bit): Likewise.
14348         (*ieee128_mfvsrd_32bit): Likewise.
14349
14350 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14351
14352         PR target/69369
14353         Revert r232560:
14354         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14355
14356         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14357         instrumented_version.
14358
14359 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14360
14361         * doc/invoke.texi (Optimize Options): In table of --param options
14362         rename second occurrence of tracer-min-branch-ratio to
14363         tracer-min-branch-probability, rename
14364         tracer-min-branch-ratio-feedback to
14365         tracer-min-branch-probability-feedback and clarify description,
14366         rename sched-spec-state-edge-prob-cutoff to
14367         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14368         to selsched-insns-to-rename, rename lto-minpartition to
14369         lto-min-partition, delete reorder-blocks-duplicate and
14370         reorder-blocks-duplicate-feedback.
14371
14372 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14373
14374         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14375         superfluous loops.
14376
14377 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14378
14379         * doc/extend.texi: S/390: Correct some typos.
14380
14381 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14382
14383         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14384
14385 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14386
14387         PR target/69625
14388         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14389         (s390_register_info_gprtofpr): Use new macros above.
14390         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14391         its name.
14392         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14393         its name.  Adjust restore and save gpr ranges.
14394         (s390_register_info_set_ranges): New function.
14395         (s390_register_info): Use new macros above.  Call
14396         s390_register_info_set_ranges.
14397         (s390_optimize_register_info): Likewise.
14398         (s390_hard_regno_rename_ok): Use new macros.
14399         (s390_hard_regno_scratch_ok): Likewise.
14400         (s390_emit_epilogue): Likewise.
14401         (s390_can_use_return_insn): Likewise.
14402         (s390_optimize_prologue): Likewise.
14403         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
14404
14405 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14406
14407         PR bootstrap/69677
14408         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
14409         alignment fixes.
14410         (ix86_option_override_internal): Disable TARGET_STV even for
14411         -m{incoming,preferred}-stack-boundary=3.
14412
14413 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14414
14415         * config.gcc: Mark deprecated rtems targets as obsolete.
14416
14417 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
14418
14419         PR rtl-optimization/64682
14420         PR rtl-optimization/69567
14421         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
14422         before I2 only if the register is both used and set in I2.
14423
14424 2016-02-04  DJ Delorie  <dj@redhat.com>
14425
14426         * config/msp430/msp430.c (msp430_start_function): Add function type.
14427
14428 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14429
14430         PR fortran/69368
14431         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
14432
14433 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
14434
14435         PR rtl-optimization/69577
14436         Revert:
14437         2015-10-29  Richard Henderson  <rth@redhat.com>
14438
14439         PR target/68124
14440         PR rtl-opt/67609
14441         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
14442         sse check to the exact conditions of PR 67609.
14443
14444 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14445
14446         PR target/69667
14447         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
14448         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
14449         not allowed into the traditional Altivec registers.
14450         (movtd_64bit_nodm): Likewise.
14451         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14452
14453 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
14454
14455         * config/aarch64/cortex-a57-fma-steering.c
14456         (aarch64_register_fma_steering): Remove "static" from arguments
14457         to register_pass.
14458
14459 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
14460
14461         PR target/69619
14462         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
14463         twice when complex.
14464
14465 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
14466
14467         * doc/invoke.texi: Delete -mno-fma4.
14468
14469 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
14470
14471         PR rtl-optimization/69577
14472         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
14473         (find_subregs_of_mode): Update accordingly.  Iterate over partial
14474         definitions.
14475
14476 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
14477
14478         * config/arm/arm-protos.h (neon_reinterpret): Remove.
14479         * config/arm/arm.c (neon_reinterpret): Remove.
14480         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
14481         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
14482         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
14483         vreinterpretti): Remove.
14484         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
14485         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14486         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
14487         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
14488         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
14489         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
14490         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
14491         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
14492         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
14493         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
14494         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
14495         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
14496         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
14497         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
14498         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
14499         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
14500         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
14501         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
14502         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
14503         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
14504         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
14505         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
14506         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
14507         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
14508         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
14509         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
14510         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
14511         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
14512         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
14513         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
14514         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
14515         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
14516         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
14517         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
14518         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
14519         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
14520         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
14521         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
14522         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
14523         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
14524         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
14525         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
14526         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
14527         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
14528         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
14529         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
14530         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
14531         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
14532         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
14533         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
14534         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
14535         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
14536         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
14537         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
14538         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
14539         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
14540         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
14541         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
14542         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
14543         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
14544         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
14545         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
14546         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
14547         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
14548         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
14549         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
14550         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
14551         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
14552         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
14553         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
14554         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
14555         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
14556         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
14557         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
14558         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
14559         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
14560         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
14561         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
14562         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
14563         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
14564         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
14565         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
14566         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
14567         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
14568         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
14569         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
14570         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
14571         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
14572         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
14573         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
14574         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
14575         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
14576         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
14577         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
14578         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
14579         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
14580         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
14581         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
14582         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
14583         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
14584         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
14585         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
14586         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
14587
14588 2016-02-04  Martin Liska  <mliska@suse.cz>
14589
14590         PR sanitizer/69276
14591         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
14592         that are gimple_store_p.
14593         (maybe_instrument_call): Likewise.
14594
14595 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
14596
14597         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
14598         register scaling out of memory reference and comment why.
14599
14600 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14601
14602         PR target/65932
14603         PR target/67714
14604         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
14605         folding the source of a SET.
14606
14607 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14608
14609         PR target/65932
14610         PR target/67714
14611         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
14612         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
14613
14614 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
14615
14616         PR target/65932
14617         PR target/67714
14618         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
14619         HImode.
14620
14621 2016-02-04  Christian Bruel  <christian.bruel@st.com>
14622
14623         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
14624         * config/arm/arm.c (arm_set_current_function): Likewise.
14625
14626 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14627             Ilya Enkovich  <enkovich.gnu@gmail.com>
14628             H.J. Lu  <hongjiu.lu@intel.com>
14629
14630         PR target/69454
14631         * config/i386/i386.c (convert_scalars_to_vector): Remove
14632         stack alignment fixes.
14633         (ix86_option_override_internal): Disable TARGET_STV if stack
14634         might not be aligned enough.
14635         (ix86_minimum_alignment): Assert that TARGET_STV is false.
14636
14637 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
14638
14639         * config/i386/x86-tune.def: Disable default prefetching
14640         for -march=znver1.
14641
14642 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14643             Vladimir Makarov  <vmakarov@redhat.com>
14644
14645         PR target/69461
14646         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
14647         in validating fused toc addresses.
14648
14649 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
14650
14651         PR c/69627
14652         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
14653         range->m_caret fields if range->m_show_caret_p is false.
14654
14655         PR target/69644
14656         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14657         Force oldval into register if it does not satisfy reg_or_short_operand
14658         predicate.  Fix up formatting.
14659
14660 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14661             Alexandre Oliva  <aoliva@redhat.com>
14662
14663         PR target/69461
14664         * lra-constraints.c (simplify_operand_subreg): Check additionally
14665         address validity after potential reloading.
14666         (process_address_1): Check insns validity.  In case of failure do
14667         nothing.
14668
14669 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14670
14671         PR target/69118
14672         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
14673         Fix target.
14674
14675 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
14676
14677         * wide-int.cc (canonize_uhwi): New function.
14678         (wi::divmod_internal): Use it.
14679
14680 2016-02-02  James Norris  <jnorris@codesourcery.com
14681
14682         * gimplify.c (omp_notice_variable): Add usage check.
14683
14684 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14685
14686         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
14687         like LE, GE, LT, GT when emitting relational operator.
14688
14689 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14690
14691         * ira-costs.c (find_costs_and_classes): Add extra argument.
14692         * target.def (ira_change_pseudo_allocno_class): Add parameter.
14693         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
14694         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
14695         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
14696         Add best_class parameter, and return it if not ALL_REGS.
14697         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
14698         Add parameter.
14699         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
14700         Update target hook.
14701
14702 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14703
14704         * config/aarch64/aarch64.c
14705         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
14706         (aarch64_ira_change_pseudo_allocno_class): New function.
14707
14708 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
14709
14710         PR target/67032
14711         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
14712
14713 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14714
14715         * config/avr/avr.c (avr_option_override): Set
14716         PARAM_ALLOW_STORE_DATA_RACES to 1.
14717
14718 2016-02-02  Richard Biener  <rguenther@suse.de>
14719
14720         PR tree-optimization/69595
14721         * match.pd: Add range test simplifications to true/false.
14722
14723 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14724
14725         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
14726         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
14727         instead.
14728
14729 2016-02-02  Richard Biener  <rguenther@suse.de>
14730
14731         PR tree-optimization/69606
14732         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
14733         info on the result before moving a stmt.
14734
14735 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
14736
14737         PR middle-end/68542
14738         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
14739         branch with vector comparison.
14740         * config/i386/sse.md (VI48_AVX): New mode iterator.
14741         (define_expand "cbranch<mode>4): Add support for conditional branch
14742         with vector comparison.
14743         * tree-vect-loop.c (optimize_mask_stores): New function.
14744         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
14745         has_mask_store field of vect_info.
14746         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
14747         vectorized loops having masked stores after vec_info destroy.
14748         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
14749         correspondent macros.
14750         (optimize_mask_stores): Add prototype.
14751
14752 2016-02-02  Alan Modra  <amodra@gmail.com>
14753
14754         PR target/69548
14755         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
14756         allow subregs.
14757
14758 2016-02-02  Alan Modra  <amodra@gmail.com>
14759
14760         PR target/68662
14761         * config/rs6000/rs6000.c (need_toc_init): New var, set it
14762         whenever toc_label_name used.
14763         (rs6000_file_start): Don't set up toc section here,
14764         (rs6000_output_function_epilogue): do so here instead,
14765         (rs6000_xcoff_file_start): and here.
14766         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
14767         (load_toc_aix_di): Likewise.
14768
14769 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14770
14771         PR rtl-optimization/69592
14772         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
14773         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
14774         (num_sign_bit_copies_binary_arith_p): New inline function.
14775         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
14776
14777 2016-02-01  Jeff Law  <law@redhat.com>
14778
14779         PR tree-optimization/69580
14780         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
14781         * tree-ssa-threadbackward.c
14782         (fsm_find_control_statement_thread_paths): Do not try to walk
14783         through large PHI nodes.
14784
14785 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14786
14787         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
14788         when count is incremented above limit, don't analyze further
14789         insns afterwards.
14790
14791         * omp-low.c (oacc_parse_default_dims): Avoid
14792         -Wsign-compare warning, make sure value fits into int
14793         rather than just unsigned int.
14794
14795 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
14796
14797         PR tree-optimization/67921
14798         * fold-const.c (split_tree): New parameters.  Convert pointer
14799         type variable part to proper type before negating.
14800         (fold_binary_loc): Pass new arguments to split_tree.
14801
14802 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14803
14804         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
14805         (nvptx_goacc_validate_dims): Extend to handle global defaults.
14806         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
14807         * doc/tm.texti: Rebuilt.
14808         * doc/invoke.texi (fopenacc-dim): Document.
14809         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
14810         (append_compiler_options): Likewise.
14811         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
14812         (oacc_parse_default_dims): New.
14813         (oacc_validate_dims): Add USED arg.  Select non-unity default when
14814         possible.
14815         (oacc_loop_fixed_partitions): Return mask of used partitions.
14816         (oacc_loop_auto_partitions): Emit dump info.
14817         (oacc_loop_partition): Return mask of used partitions.
14818         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
14819         loop partitioning and validation calls.
14820
14821 2016-02-01  Richard Biener  <rguenther@suse.de>
14822
14823         PR middle-end/69556
14824         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
14825
14826 2016-02-01  Richard Biener  <rguenther@suse.de>
14827
14828         PR tree-optimization/69574
14829         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
14830         of asserting return chrec_dont_know.
14831
14832 2016-02-01  Martin Liska  <mliska@suse.cz>
14833
14834         * mem-stats-traits.h: Add copyright header.
14835         * mem-stats.h: Likewise.
14836
14837 2016-02-01  Richard Biener  <rguenther@suse.de>
14838
14839         PR tree-optimization/69579
14840         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
14841         Do not propagate through abnormal PHI results.
14842
14843 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
14844
14845         * postreload.c (reload_cse_simplify): Remove dead code.
14846
14847 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14848
14849         PR rtl-optimization/69570
14850         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
14851         if there is more than one set, not if there is a single set.
14852
14853 2016-02-01  Richard Henderson  <rth@redhat.com>
14854
14855         PR rtl-opt/69535
14856         * combine.c (make_compound_operation): When looking through a
14857         subreg, make sure to re-extend to the width of the outer mode.
14858
14859 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
14860
14861         PR tree-optimization/69546
14862         * wide-int.cc (wi::divmod_internal): For unsigned division
14863         where both operands fit into uhwi, if o1 is 1 and o0 has
14864         msb set, if divident_prec is larger than bits per hwi,
14865         clear another quotient word and return 2 instead of 1.
14866         Similarly for remainder with msb in HWI set, if dividend_prec
14867         is larger than bits per hwi.
14868
14869 2016-01-29  Martin Jambor  <mjambor@suse.cz>
14870
14871         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
14872         Use short lowercase names.
14873         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
14874         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
14875         acq_rel one.  Protect warning agains segfaults if
14876         get_memory_order_name returns NULL.
14877         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
14878         with release semantics.  Do not warn if get_memory_order already did.
14879         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
14880         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
14881         if get_memory_order already did.
14882
14883 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
14884
14885         * doc/install.texi: Document that isl-0.16 is supported.
14886
14887 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14888
14889         PR target/69299
14890         * config/i386/constraints.md (Bm): Describe as special memory
14891         constraint.
14892         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
14893         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14894         * genpreds.c (struct constraint_data): Add is_special_memory.
14895         (have_special_memory_constraints, special_memory_start): New
14896         static vars.
14897         (special_memory_end): Ditto.
14898         (add_constraint): Add new arg is_special_memory.  Add code to
14899         process its true value.  Update have_special_memory_constraints.
14900         (process_define_constraint): Pass the new arg.
14901         (process_define_register_constraint): Ditto.
14902         (choose_enum_order): Process special memory.
14903         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
14904         function insn_extra_special_memory_constraint.
14905         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14906         * gensupport.c (process_rtx): Process
14907         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14908         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
14909         * ira-lives.c (single_reg_class): Use
14910         insn_extra_special_memory_constraint.
14911         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
14912         * lra-constraints.c (process_alt_operands): Ditto.
14913         (curr_insn_transform): Use insn_extra_special_memory_constraint.
14914         * recog.c (asm_operand_ok, preprocess_constraints): Process
14915         CT_SPECIAL_MEMORY.
14916         * reload.c (find_reloads): Ditto.
14917         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
14918         * stmt.c (parse_input_constraint): Use
14919         insn_extra_special_memory_constraint.
14920
14921 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         PR target/69530
14924         * lra-splill.c (lra_final_code_change): Revert r229087 by
14925         removing all sub-registers.
14926
14927 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
14928
14929         PR target/65604
14930         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
14931
14932 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
14933
14934         PR target/69551
14935         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
14936         SSE1, copy target into the temporary reg first before recursing
14937         on it.
14938
14939 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
14942         with vm.
14943
14944 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14945
14946         * ginclude/stdarg.h: Test __cplusplus instead of
14947         __GXX_EXPERIMENTAL_CXX0X__.
14948
14949 2016-01-29  Richard Biener  <rguenther@suse.de>
14950
14951         PR tree-optimization/69547
14952         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
14953         Do not mark clobbers necessary.
14954         (mark_all_reaching_defs_necessary_1): Likewise.
14955
14956 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14957
14958         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
14959         declaration name with %qs and print it in both error messages.
14960         Also fix indentation.
14961
14962 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14963
14964         PR other/69006
14965         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
14966         trailing blank line from error message.
14967
14968 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14969
14970         PR c++/69462
14971         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
14972         for C++-11.
14973
14974 2016-01-29  Richard Biener  <rguenther@suse.de>
14975
14976         PR middle-end/69537
14977         * match.pd: Allow all integral types when simplifying a
14978         widening or sign-changing conversion.
14979
14980 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14981
14982         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
14983         back to setting codegen_error to fail codegen.
14984
14985 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
14986
14987         PR target/69459
14988         * config/i386/constraints.md (C): Only accept constant zero operand.
14989         (BC): New constraint.
14990         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
14991         instead of C constraint.
14992         * doc/md.texi (Machine Constraints): Update description
14993         of C constraint.
14994
14995 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
14996
14997         PR target/68400
14998         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
14999
15000 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
15001
15002         PR middle-end/69542
15003         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
15004         non-debug insns.
15005
15006 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
15007
15008         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
15009         branches if using guessed profile.
15010
15011 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
15012
15013         * graphite-optimize-isl.c (optimize_isl): Fix dump.
15014
15015 2016-01-28  Richard Henderson  <rth@redhat.com>
15016
15017         PR target/69305
15018         * config/aarch64/aarch64-modes.def (CC_Cmode): New
15019         * config/aarch64/aarch64-protos.h: Update.
15020         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
15021         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
15022         (aarch64_get_condition_code_1): Handle CC_Cmode.
15023         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
15024         (*add<mode>3_compareC_cconly_imm): New.
15025         (*add<mode>3_compareC_cconly): New.
15026         (*add<mode>3_compareC_imm): New.
15027         (add<mode>3_compareC): New.
15028         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
15029         to be first.  Use aarch64_carry_operation.
15030         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
15031         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
15032         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
15033         (subti3): Use subdi3_compare1.
15034         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
15035         (sub<mode>3_compare1): New.
15036         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
15037         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
15038         (*subsi3_carryin_uxtw): Likewise.
15039         (*ngc<mode>, *ngcsi_uxtw): Likewise.
15040         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
15041         * config/aarch64/iterators.md (DWI): New.
15042         * config/aarch64/predicates.md (aarch64_carry_operation): New.
15043         (aarch64_borrow_operation): New.
15044
15045 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15046
15047         * graphite-optimize-isl.c (optimize_isl): Print a different debug
15048         message when isl does not return a valid schedule.
15049
15050 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15051
15052         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
15053         Remove comments from class declarations: they are already in the code
15054         close by the defs.
15055
15056 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15057
15058         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
15059         codegen_error_p.
15060         (ternary_op_to_tree): Same.
15061         (unary_op_to_tree): Same.
15062         (nary_op_to_tree): Same.
15063         (gcc_expression_from_isl_expr_op): Same.
15064         (gcc_expression_from_isl_expression): Same.
15065         (graphite_create_new_loop): Same.
15066         (graphite_create_new_loop_guard): Same.
15067         (build_iv_mapping): Same.
15068         (graphite_create_new_guard): Same.
15069         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
15070         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
15071
15072 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15073
15074         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
15075         instead of setting codegen_error to fail codegen.
15076
15077 2016-01-28  Jason Merrill  <jason@redhat.com>
15078
15079         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
15080
15081 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15082
15083         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15084         Remove CONST_INT_P check in CCMP cost calculation.
15085
15086 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15087
15088         * config/aarch64/aarch64.c (generic_vector_cost):
15089         Set vec_permute_cost.
15090         (cortexa57_vector_cost): Likewise.
15091         (exynosm1_vector_cost): Likewise.
15092         (xgene1_vector_cost): Likewise.
15093         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
15094         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
15095         Add vec_permute_cost entry.
15096
15097 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15098
15099         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
15100         immediate as %1.
15101         (add<mode>3_compare0): Likewise.
15102         (addsi3_compare0_uxtw): Likewise.
15103         (add<mode>3nr_compare0): Likewise.
15104         (compare_neg<mode>): Likewise.
15105         (<optab><mode>3): Likewise.
15106
15107 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
15108
15109         * tree-vect-stmts.c (vectorizable_comparison): Add
15110         NULL check for vectype.
15111
15112 2016-01-28  Richard Biener  <rguenther@suse.de>
15113
15114         PR tree-optimization/69466
15115         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15116         Account for PHIs we couldn't duplicate.
15117
15118 2016-01-28  Martin Liska  <mliska@suse.cz>
15119
15120         PR pch/68758
15121         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15122         instead of ENABLE_VALGRIND_CHECKING.
15123
15124 2016-01-27  Richard Henderson  <rth@redhat.com>
15125
15126         PR rtl-opt/69447
15127         * lra-remat.c (subreg_regs): New.
15128         (dump_candidates_and_remat_bb_data): Dump it.
15129         (operand_to_remat): Reject if operand in subreg_regs.
15130         (set_bb_regs): Collect subreg_regs.
15131         (lra_remat): Init and free subreg_regs.  Compute
15132         calculate_local_reg_remat_bb_data before create_cands.
15133
15134 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15135
15136         PR target/68986
15137         * config/i386/i386.c (ix86_update_stack_boundary): Don't
15138         change stack_alignment_needed for __tls_get_addr call.
15139
15140 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
15141
15142         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15143
15144 2016-01-27  Jeff Law  <law@redhat.com>
15145
15146         PR tree-optimization/68398
15147         PR tree-optimization/69196
15148         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15149         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15150         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15151         Only count PHIs in the last block in the path.  The others will
15152         const/copy propagate away.  Add heuristic to allow more irreducible
15153         subloops to be created when it is likely profitable to do so.
15154
15155         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15156         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
15157         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
15158
15159 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15160
15161         PR lto/69254
15162         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15163         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15164         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15165         * tree-streamer-in.c: Include asan.h.
15166         (streamer_get_builtin_tree): For builtins in sanitizer
15167         range call initialize_sanitizer_builtins and retry.
15168
15169 2016-01-27  Ian Lance Taylor  <iant@google.com>
15170
15171         * common.opt (fkeep-gc-roots-live): New undocumented option.
15172         * tree-ssa-loop-ivopts.c (add_candidate_1): If
15173         -fkeep-gc-roots-live, skip pointers.
15174         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15175         NULL.
15176
15177 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
15178
15179         PR target/69512
15180         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15181         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15182
15183 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
15184
15185         PR target/68380
15186         * configure.ac: NetBSD provides SSP in its C library.
15187         * configure: Updated.
15188
15189 2016-01-27  Richard Biener  <rguenther@suse.de>
15190
15191         PR tree-optimization/69166
15192         * tree-vect-loop.c (vect_is_simple_reduction): Always check
15193         reduction code for commutativity / associativity.
15194
15195 2016-01-27  Martin Jambor  <mjambor@suse.cz>
15196
15197         PR tree-optimization/69355
15198         * tree-sra.c (analyze_access_subtree): Correct hole detection when
15199         total_scalarization fails.
15200
15201 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
15202
15203         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15204         power9.
15205
15206 2016-01-27  Christian Bruel  <christian.bruel@st.com>
15207
15208         PR target/69245
15209         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15210         Move arm_reset_previous_fndecl and set_target_option_current_node in
15211         the conditional part.  Call save_restore_target_globals.
15212         * config/arm/arm.c (arm_set_current_function):
15213         Refactor to better support #pragma target and attribute mix.
15214         Call save_restore_target_globals.
15215         * config/arm/arm-protos.h (save_restore_target_globals): New function.
15216
15217 2016-01-27  Martin Liska  <mliska@suse.cz>
15218
15219         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
15220         reference for an HSA kernel and its host function.
15221
15222 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15223
15224         PR tree-optimization/69399
15225         * wide-int.h (wi::lrshift): For larger precisions, only
15226         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
15227
15228 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
15229
15230         * config/arc/predicates.md (proper_comparison_operator): Reject
15231         constant-constant comparison.
15232
15233 2016-01-26  Tom de Vries  <tom@codesourcery.com>
15234
15235         PR tree-optimization/69110
15236         * tree-data-ref.c (initialize_data_dependence_relation): Handle
15237         DR_NUM_DIMENSIONS == 0.
15238
15239 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15240             Sebastian Pop  <s.pop@samsung.com>
15241
15242         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
15243         isl_ast_op_cond and isl_ast_op_select.
15244         (gcc_expression_from_isl_expr_op): Same.
15245
15246 2016-01-26  Jason Merrill  <jason@redhat.com>
15247
15248         PR c++/68782
15249         * tree.c (recompute_constructor_flags): Split out from
15250         build_constructor.
15251         (verify_constructor_flags): New.
15252         * tree.h: Declare them.
15253
15254 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15255
15256         PR rtl-optimization/69217
15257         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15258         are no TYPE_FIELDS set for the record type.
15259
15260 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15261
15262         PR target/68662
15263         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15264         toc_label_name unconditionally.
15265         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15266         SYMBOL_REF string.  Use toc_label_name instead of constructing
15267         LCTOC1.
15268         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15269         constructing LCTOC1.
15270
15271 2016-01-26  Martin Sebor  <msebor@redhat.com>
15272
15273         PR other/69477
15274         * doc/extend.texi (Common Type Attributes): Move text that talks about
15275         attribute packed from attribute aligned to the section discussing
15276         the former attribute for clarity.
15277
15278 2016-01-26  Richard Henderson  <rth@redhat.com>
15279
15280         PR middle-end/60908
15281         * trans-mem.c (tm_region_init): Mark entry block as visited.
15282
15283 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15284
15285         PR other/69006
15286         * diagnostic-show-locus.c (layout::print_source_line): Replace
15287         call to pp_newline with call to layout::print_newline.
15288         (layout::print_annotation_line): Likewise.
15289         (layout::move_to_column): Likewise.
15290         (layout::print_any_fixits): After printing any fixits, print a
15291         trailing newline, if necessary.
15292         (layout::print_newline): New method, resetting any colorization
15293         before a newline.
15294         (diagnostic_show_locus): Move the pp_newline to before the
15295         early bailout.  Remove dummy block enclosing the layout instance.
15296         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15297         of pp_newline_and_flush with pp_flush.
15298         (diagnostic_append_note): Delete use of pp_newline.
15299         (diagnostic_append_note_at_rich_loc): Delete.
15300         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15301         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15302         when newline characters are added to the buffer.
15303
15304 2016-01-26  Michael Matz  <matz@suse.de>
15305
15306         * configure.ac (ac_cv_std_swap_in_utility): New test.
15307         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15308         * configure: Regenerate.
15309         * config.in: Regenerate.
15310
15311 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15312
15313         * config/arc/arc.md (cstoresi4): Force operand into register.
15314         (arcset<code>): Fix predicate.
15315         (arcsetltu): Likewise.
15316         (arcsetgeu): Likewise.
15317         (arcsethi): Likewise.
15318         (arcsetls): Likewise.
15319
15320 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15321
15322         PR tree-optimization/69483
15323         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15324         if base has error_mark_node type.
15325
15326 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15327
15328         PR target/68620
15329         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15330         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15331         New helper macros.
15332         (vget_lane_f16): Handle big-endian.
15333         (vgetq_lane_f16): Likewise.
15334         (vset_lane_f16): Likewise.
15335         (vsetq_lane_f16): Likewise.
15336         * config/arm/iterators.md (VQXMOV): Add V8HF.
15337         (VDQ): Add V4HF and V8HF.
15338         (V_reg): Handle V4HF and V8HF.
15339         (Is_float_mode): Likewise.
15340         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15341         neon_vdup_nv8hf): New patterns.
15342         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15343         Use VD_LANE iterator.
15344         (neon_vld1_dup<mode>): Use VQ2 iterator.
15345
15346 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15347
15348         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15349         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15350         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15351         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15352         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15353         (oacc_validate_dims): Add LEVEL arg, don't return level.
15354         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15355         oacc_validate_dims.
15356         (execute_oacc_device_lower): Adjust, add more dump output.
15357         * tree-ssa-loop.c (gate_oacc_kernels): Use
15358         oacc_fn_attrib_kernels_p.
15359         * tree-parloops.c (create_parallel_loop): Adjust
15360         set_oacc_fn_attrib call.
15361
15362 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15363
15364         PR lto/69254
15365         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15366         (append_compiler_options): Handle -fcilkplus.
15367         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15368
15369 2016-01-26  Nick Clifton  <nickc@redhat.com>
15370
15371         PR target/66655
15372         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15373         been marked as DECL_ONE_ONLY but we do not the means to make it
15374         so, then do not allow it to bind locally.
15375
15376 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15377
15378         PR lto/69254
15379         * opts.h (parse_sanitizer_options): New prototype.
15380         * opts.c (sanitizer_opts): New array.
15381         (parse_sanitizer_options): New function.
15382         (common_handle_option): Use parse_sanitizer_options.
15383
15384 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15385
15386         PR target/68986
15387         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15388         alignment adjustment to ...
15389         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15390         __tls_get_addr.
15391         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15392         if __tls_get_addr is called.
15393
15394 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15395
15396         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15397
15398 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15399
15400         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
15401
15402 2016-01-26  Richard Biener  <rguenther@suse.de>
15403
15404         PR middle-end/69467
15405         * match.pd: Guard X * CST CMP 0 pattern with single_use.
15406
15407 2016-01-26  Richard Biener  <rguenther@suse.de>
15408
15409         PR tree-optimization/69452
15410         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
15411         (move_computations_dom_walker::before_dom_children): Rename
15412         to ...
15413         (move_computations_worker): This.
15414         (move_computations): Perform an RPO rather than a DOM walk.
15415
15416 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15417
15418         PR target/69442
15419         * combine.c (combine_instructions): For REG_EQUAL note with
15420         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
15421         to the underlying register.
15422         * doc/rtl.texi (REG_EQUAL): Document the behavior of
15423         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
15424
15425 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
15426
15427         PR target/67896
15428         * config/aarch64/aarch64-builtins.c
15429         (aarch64_init_simd_builtin_types): Do not set structural
15430         equality to __Poly{8,16,64,128}_t types.
15431
15432 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
15433
15434         PR tree-optimization/69400
15435         * wide-int.cc (wi_pack): Take the precision as argument and
15436         perform canonicalization here rather than in the callers.
15437         Use the main loop to handle all full-width HWIs.  Add a
15438         zero HWI if in_len isn't a full result.
15439         (wi::divmod_internal): Update accordingly.
15440         (wi::mul_internal): Likewise.  Simplify.
15441
15442 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15443             Sebastian Pop  <s.pop@samsung.com>
15444
15445         * graphite-poly.c (apply_poly_transforms): Simplify.
15446         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
15447         (print_isl_map): Same.
15448         (print_isl_union_map): Same.
15449         (print_isl_schedule): New.
15450         (debug_isl_schedule): New.
15451         * graphite-dependences.c (scop_get_reads): Do not call
15452         isl_union_map_add_map that is undocumented isl functionality.
15453         (scop_get_must_writes): Same.
15454         (scop_get_may_writes): Same.
15455         (scop_get_original_schedule): Remove.
15456         (scop_get_dependences): Do not call isl_union_map_compute_flow that
15457         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
15458         (compute_deps): Remove.
15459         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
15460         (debug_schedule_ast): New.
15461         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
15462         set_separate_option.
15463         (graphite_regenerate_ast_isl): Add dump.
15464         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
15465         from scop->transformed_schedule.
15466         (graphite_regenerate_ast_isl): Add more dump.
15467         * graphite-optimize-isl.c (optimize_isl): Set
15468         scop->transformed_schedule.  Check whether schedules are equal.
15469         (apply_poly_transforms): Move here.
15470         * graphite-poly.c (apply_poly_transforms): ... from here.
15471         (free_poly_bb): Static.
15472         (free_scop): Static.
15473         (pbb_number_of_iterations_at_time): Remove.
15474         (print_isl_ast): New.
15475         (debug_isl_ast): New.
15476         (debug_scop_pbb): New.
15477         * graphite-scop-detection.c (print_edge): Move.
15478         (print_sese): Move.
15479         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
15480         (build_scop_scattering): Remove.
15481         (create_pw_aff_from_tree): Assert instead of bailing out.
15482         (add_condition_to_pbb): Remove unused code, do not fail.
15483         (add_conditions_to_domain): Same.
15484         (add_conditions_to_constraints): Remove.
15485         (build_scop_context): New.
15486         (add_iter_domain_dimension): New.
15487         (build_iteration_domains): Initialize pbb->iterators.
15488         Call add_conditions_to_domain.
15489         (nested_in): New.
15490         (loop_at): New.
15491         (index_outermost_in_loop): New.
15492         (index_pbb_in_loop): New.
15493         (outermost_pbb_in): New.
15494         (add_in_sequence): New.
15495         (add_outer_projection): New.
15496         (outer_projection_mupa): New.
15497         (add_loop_schedule): New.
15498         (build_schedule_pbb): New.
15499         (build_schedule_loop): New.
15500         (embed_in_surrounding_loops): New.
15501         (build_schedule_loop_nest): New.
15502         (build_original_schedule): New.
15503         (build_poly_scop): Call build_original_schedule.
15504         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
15505         (free_poly_dr): Remove.
15506         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
15507         (free_poly_bb): Remove.
15508         (debug_loop_vec): Remove.
15509         (print_isl_ast): Declare.
15510         (debug_isl_ast): Declare.
15511         (scop_do_interchange): Remove.
15512         (scop_do_strip_mine): Remove.
15513         (scop_do_block): Remove.
15514         (flatten_all_loops): Remove.
15515         (optimize_isl): Remove.
15516         (pbb_number_of_iterations_at_time): Remove.
15517         (debug_scop_pbb): Declare.
15518         (print_schedule_ast): Declare.
15519         (debug_schedule_ast): Declare.
15520         (struct scop): Remove schedule.  Add original_schedule,
15521         transformed_schedule.
15522         (free_gimple_poly_bb): Remove.
15523         (print_generated_program): Remove.
15524         (debug_generated_program): Remove.
15525         (unify_scattering_dimensions): Remove.
15526         * sese.c (print_edge): ... here.
15527         (print_sese): ... here.
15528         (debug_edge): ... here.
15529         (debug_sese): ... here.
15530         * sese.h (print_edge): Declare.
15531         (print_sese): Declare.
15532         (dump_edge): Declare.
15533         (dump_sese): Declare.
15534
15535 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15536             Sebastian Pop  <s.pop@samsung.com>
15537
15538         * Makefile.in: Set ISLVER in site.exp.
15539
15540 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
15541
15542         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
15543         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
15544         through DECL_VALUE_EXPR for expansion.
15545
15546 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15547
15548         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
15549         the frame info after reload completed.
15550
15551 2016-01-25  Jeff Law  <law@redhat.com>
15552
15553         PR tree-optimization/69196
15554         PR tree-optimization/68398
15555         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
15556         tree-ssa-threadupdate.c.
15557         (determine_bb_domination_status): Prototype
15558         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
15559         (determine_bb_domination_status): No longer static.
15560         (valid_jump_thread_path): Remove code to detect characteristics
15561         of the jump thread path not associated with correctness.
15562         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
15563         Correct test for thread path length.  Count PHIs for real operands as
15564         statements that need to be copied.  Do not count ASSERT_EXPRs.
15565         Look at all the blocks in the thread path.  Compute and selectively
15566         filter thread paths based on threading through the latch, threading
15567         a multiway branch or crossing a multiway branch.
15568
15569 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15570
15571         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
15572         decl with __attribute__ ((unused)) annotation.
15573
15574 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
15575
15576         PR target/69421
15577         * tree-vect-stmts.c (vectorizable_condition): Check vectype
15578         of operands is compatible with a statement vectype.
15579
15580 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
15581
15582         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
15583         improve wording for mixed storage order support.
15584
15585 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
15586
15587         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
15588         (vcvt_u64_f64): Likewise.
15589         (vcvta_s64_f64): Likewise.
15590         (vcvta_u64_f64): Likewise.
15591         (vcvtm_s64_f64): Likewise.
15592         (vcvtm_u64_f64): Likewise.
15593         (vcvtn_s64_f64): Likewise.
15594         (vcvtn_u64_f64): Likewise.
15595         (vcvtp_s64_f64): Likewise.
15596         (vcvtp_u64_f64): Likewise.
15597
15598 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
15599
15600         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
15601         (arc_init): Check validity mll64 option.
15602         (arc_save_restore): Use double load/store instruction.
15603         (arc_expand_movmem): Likewise.
15604         (arc_split_move): Don't split if we have double load/store
15605         instructions. Returns a boolean.
15606         (arc_process_double_reg_moves): Change function to return boolean
15607         instead of a sequence of instructions.
15608         (arc_dwarf_register_span): New function.
15609         * config/arc/arc-protos.h (arc_split_move): Change prototype.
15610         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
15611         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
15612         (*movdf_insn): Likewise.
15613         * config/arc/arc.opt (mll64): New option.
15614         * config/arc/predicates.md (even_register_operand): New predicate.
15615         * doc/invoke.texi (ARC Options): Add mll64 documentation.
15616
15617 2016-01-25  Richard Biener  <rguenther@suse.de>
15618
15619         PR lto/69393
15620         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
15621         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
15622         DECL_NAMELESS.
15623         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
15624
15625 2016-01-25  Richard Biener  <rguenther@suse.de>
15626
15627         PR tree-optimization/69376
15628         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
15629         flag.
15630         (VN_INFO_ANTI_RANGE_P): New inline.
15631         (VN_INFO_RANGE_TYPE): Likewise.
15632         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
15633         SSA_NAME_ANTI_RANGE_P.
15634         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
15635         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15636         Properly query VN_INFO_RANGE_TYPE.
15637
15638 2016-01-25  Nick Clifton  <nickc@redhat.com>
15639
15640         PR target/66655
15641         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
15642
15643 2016-01-23  Tom de Vries  <tom@codesourcery.com>
15644
15645         PR tree-optimization/69426
15646         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
15647         removed clobber.
15648
15649 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
15650
15651         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
15652         "the the" with "the" in the comments.
15653         * ipa-devirt.c (build_type_inheritance_graph,
15654         update_type_inheritance_graph): Likewise.
15655         * tree.c (build_function_type_list_1): Likewise.
15656         * cfgloopmanip.c (scale_loop_profile): Likewise.
15657         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
15658         * gimple-ssa-split-paths.c
15659         (find_block_to_duplicate_for_splitting_paths): Likewise.
15660         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
15661         * expr.c (convert_move): Likewise.
15662         * var-tracking.c (vt_stack_adjustments): Likewise.
15663         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15664         * tree-vrp.c (test_for_singularity): Likewise.
15665
15666         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
15667         directly instead of building a temporary tree.
15668
15669         PR bootstrap/69434
15670         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
15671         remove <algorithm> include.
15672
15673 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15674
15675         PR target/69432
15676         * config/i386/i386.c: Include dojump.h.
15677         (expand_small_movmem_or_setmem,
15678         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
15679         fixes.
15680         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
15681         if dynamic_check != -1.
15682
15683 2016-01-21  Jeff Law  <law@redhat.com>
15684
15685         PR middle-end/69347
15686         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
15687         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
15688         into dominated_by_p.
15689         (cprop_into_successor_phis): Avoid unnecessary tests.
15690
15691 2016-01-22  Richard Henderson  <rth@redhat.com>
15692
15693         PR target/69416
15694         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
15695         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
15696
15697 2016-01-22  Michael Matz  <matz@suse.de>
15698
15699         * system.h (string, algorithm): Include only conditionally.
15700         (new): Include always under C++.
15701         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
15702         * final.c (toplevel): Ditto.
15703         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
15704         * genconditions.c (write_header): Make gencondmd.c define
15705         INCLUDE_STRING.
15706         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
15707
15708         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
15709         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
15710
15711 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15712
15713         PR target/68674
15714         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
15715
15716 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15717
15718         PR target/69403
15719         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
15720         define_insn_and_split.  Ensure operands[1] and operands[0] do not
15721         get assigned the same register.
15722
15723 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15724
15725         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
15726
15727 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15728
15729         * config/arm/arm-c.c (arm_pragma_target_parse):
15730         Remove warn_builtin_macro_redefined overwrite.
15731
15732 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15733
15734         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
15735         flag_non_call_exceptions compatibility.
15736
15737 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15738
15739         PR debug/66668
15740         * dwarf2out.c (add_child_die_after): New function.
15741         (dwarf_qual_info_t): New type.
15742         (dwarf_qual_info): New variable.
15743         (qualified_die_p): New function.
15744         (modified_type_die): For -fdebug-types-section, ensure
15745         canonical order of qualifiers.  Put qualified DIEs adjacent
15746         to the corresponding non-qualified type DIE and search there
15747         for existing qualified DIEs.
15748
15749 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15750
15751         * doc/extend.texi (scalar_storage_order type attribute): Document
15752         restriction on type punning and aliasing, and remove future tense.
15753
15754 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
15755
15756         PR target/69252
15757         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
15758         first stage.
15759
15760 2016-01-21  Jeff Law  <law@redhat.com>
15761
15762         PR middle-end/69347
15763         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
15764         useless call to record_temporary_equivalences.
15765         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
15766         allocate 10 slots in the bb_path vector and let it grow as needed.
15767         (fsm_find_control_statement_thread_paths): Similarly for the next_path
15768         vector.
15769
15770 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15771
15772         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
15773         Detangle.
15774         * configure: Regenerate.
15775
15776 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
15777
15778         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
15779         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
15780
15781 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
15782
15783         PR middle-end/66178
15784         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15785         drop EXPAND_INITIALIZER.
15786         * rtl.h (contains_symbolic_reference_p): Declare.
15787         * rtlanal.c (contains_symbolic_reference_p): New function.
15788         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
15789         a subtraction into a NOT if symbolic constants are involved.
15790
15791 2016-01-21  Anton Blanchard  <anton@samba.org>
15792             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15793
15794         PR target/63354
15795         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
15796         #define.
15797         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
15798         function.
15799
15800 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15801
15802         * config/microblaze/microblaze.c
15803         (get_branch_target): New.
15804         (insert_wic_for_ilb_runout): New.
15805         (insert_wic): New.
15806         (microblaze_machine_dependent_reorg): New.
15807         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
15808         * config/microblaze/microblaze.md
15809         (UNSPEC_IPREFETCH): Define.
15810         (iprefetch): New pattern
15811         * config/microblaze/microblaze.opt
15812         (mxl-prefetch): New flag.
15813
15814 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15815
15816         * config/microblaze/microblaze.h
15817         (FIXED_REGISTERS): Update in macro.
15818         (CALL_USED_REGISTERS): Update in macro.
15819
15820 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
15821
15822         PR rtl-optimization/68920
15823         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
15824         moves.
15825
15826 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15827
15828         PR rtl-optimization/68990
15829         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
15830         pseudo instead of inheritance ones.
15831
15832 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15833             Nick Clifton  <nickc@redhat.com>
15834
15835         PR target/69129
15836         PR target/69012
15837         * config/mips/mips.c (mips_compute_frame_info): Initialise
15838         args_size and hard_frame_pointer_offset fields of the frame
15839         structure before calling mips_global_pointer.
15840
15841 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15842
15843         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
15844         label reference.
15845         * configure: Regenerate.
15846
15847 2016-01-21  Richard Biener  <rguenther@suse.de>
15848
15849         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
15850
15851 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15852
15853         * config/s390/s390.c (s390_asm_declare_function_size): Add code
15854         to actually emit the .size directive.
15855
15856 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
15857              Jakub Jelinek  <jakub@redhat.com>
15858
15859         PR target/69187
15860         PR target/65624
15861         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
15862         args array size by one to avoid buffer overflow.
15863
15864 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15865
15866         * config/s390/s390.md (pool_section_start): Use switch_to_section
15867         to select proper read-only data section instead of hardcoding
15868         .rodata.
15869         (pool_section_end): Use switch_to_section to match the above.
15870
15871 2016-01-21  Richard Biener  <rguenther@suse.de>
15872
15873         PR tree-optimization/69378
15874         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
15875         (set_ssa_val_to): Use it for dominance checks taking into
15876         account not executable edges.
15877
15878 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15879
15880         PR c++/69355
15881         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
15882         for bitsize instead of GET_MODE_PRECISION (mode).
15883
15884 2016-01-20  Martin Sebor  <msebor@redhat.com>
15885
15886         PR c/52291
15887         * extend.texi (__sync Builtins): Clarify the semantics of
15888         __sync_fetch_and_OP built-ins on pointers.
15889         (__atomic Builtins): Same.
15890
15891 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15892             Sebastian Pop  <s.pop@samsung.com>
15893
15894         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
15895         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
15896         (is_valid_rename): Same.
15897         (translate_isl_ast_to_gimple::get_rename): Same.
15898         (translate_isl_ast_to_gimple::rename_all_uses): Same.
15899         (translate_isl_ast_to_gimple::rename_uses): Same.
15900         (get_new_name): Check for close_phi nodes.
15901         (copy_loop_phi_args): Use phi_node_kind.
15902         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
15903         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
15904
15905 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15906             Sebastian Pop  <s.pop@samsung.com>
15907
15908         Revert commit r229783.
15909         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15910         Remove use of parameter_rename_map.
15911         (copy_def): Remove.
15912         (copy_internal_parameters): Remove.
15913         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
15914         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
15915         (free_sese_info): Do not free parameter_rename_map.
15916         (set_rename): Do not use parameter_rename_map.
15917         (rename_uses): Update call to set_rename.
15918         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
15919         * sese.h (parameter_rename_map_t): Remove.
15920         (struct sese_info_t): Remove field parameter_rename_map.
15921
15922 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15923             Sebastian Pop  <s.pop@samsung.com>
15924
15925         * graphite-isl-ast-to-gimple.c: Fix comment.
15926         * graphite-scop-detection.c (defined_in_loop_p): New.
15927         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
15928         names defined in loop.
15929
15930 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15931             Sebastian Pop  <s.pop@samsung.com>
15932
15933         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15934         Discard unstructured if-then-else regions.
15935
15936 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15937             Sebastian Pop  <s.pop@samsung.com>
15938
15939         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
15940         (cleanup_loop_iter_dom): Remove.
15941         (build_loop_iteration_domains): Remove.
15942         (build_scop_context): Remove.
15943         (build_scop_iteration_domain): Remove.
15944         (add_loop_constraints): New.
15945         (build_iteration_domains): New.
15946         (build_poly_scop): Call build_iteration_domains.
15947
15948 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15949             Sebastian Pop  <s.pop@samsung.com>
15950
15951         * graphite-scop-detection.c
15952         (scop_detection::harmful_loop_in_region): Free dom and loops.
15953         (scop_detection::loop_body_is_valid_scop): Free bbs.
15954
15955 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15956             Sebastian Pop  <s.pop@samsung.com>
15957
15958         * graphite-scop-detection.c (record_loop_in_sese): New.
15959         (gather_bbs::before_dom_children): Call record_loop_in_sese.
15960         (build_scops): Remove call to build_sese_loop_nests.
15961         * sese.c (sese_record_loop): Remove.
15962         (build_sese_loop_nests): Remove.
15963         (new_sese_info): Remove region->loops.
15964         (free_sese_info): Same.
15965         * sese.h (sese_contains_loop): Same.
15966         (build_sese_loop_nests): Remove.
15967         (sese_contains_loop): Remove.
15968
15969 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15970             Sebastian Pop  <s.pop@samsung.com>
15971
15972         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
15973         loop_is_valid_in_scop.
15974         (scop_detection::harmful_stmt_in_region): Renamed
15975         harmful_loop_in_region.
15976         Call loop_is_valid_in_scop.
15977
15978 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15979             Sebastian Pop  <s.pop@samsung.com>
15980
15981         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
15982         isl_ast_node_mark.
15983
15984 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15985             Sebastian Pop  <s.pop@samsung.com>
15986
15987         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
15988         * graphite.h (struct poly_bb): Remove field is_reduction.
15989         (PBB_IS_REDUCTION): Remove.
15990
15991 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15992             Sebastian Pop  <s.pop@samsung.com>
15993
15994         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
15995         (add_pdr_constraints): Same.
15996         (scop_get_reads): Same.
15997         (scop_get_must_writes): Same.
15998         (scop_get_may_writes): Same.
15999         (scop_get_original_schedule): Same.
16000         (extend_schedule): Same.
16001         (apply_schedule_on_deps): Same.
16002         (carries_deps): Same.
16003         (compute_deps): Same.
16004         (scop_get_dependences): Same.
16005         * graphite-isl-ast-to-gimple.c
16006         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
16007         * graphite-optimize-isl.c (get_schedule_for_band): Same.
16008         (get_schedule_for_band_list): Same.
16009         (get_schedule_map): Same.
16010         (apply_schedule_map_to_scop): Same.
16011         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16012         (build_loop_iteration_domains): Same.
16013         (add_condition_to_pbb): Same.
16014         (add_param_constraints): Same.
16015         (pdr_add_memory_accesses): Same.
16016         (pdr_add_data_dimensions): Same.
16017
16018 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16019
16020         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
16021         requirements.
16022
16023 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16024
16025         * common.opt (feliminate-dwarf2-dups): Replace references to
16026         "DWARF 2" with just "DWARF".
16027         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
16028         * doc/extend.texi: Likewise.
16029         * doc/cpp.texi: Likewise.
16030         * doc/invoke.texi: Likewise.
16031         (Option Summary): Add -gdwarf to list of Debugging Options.
16032         (Debugging Options): Document -gdwarf.
16033         * doc/contrib.texi: Spell "DWARF" like that.
16034
16035 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16036
16037         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
16038         warning.  Fix up formatting.
16039
16040         PR middle-end/67653
16041         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
16042         attempt to mark memory input operand addressable and
16043         call prepare_gimple_addressable in that case.  Don't adjust
16044         input_location for diagnostics, use error_at instead.
16045
16046 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
16047
16048         * config/rs6000/ppc-auxv.h: New file.
16049         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
16050         (cpu_is): Likewise.
16051         (cpu_supports): Likewise.
16052         * config/rs6000/rs6000.c: include "ppc-auxv.h".
16053         (cpu_is_info): New variable.
16054         (cpu_supports_info): Likewise.
16055         (tcb_verification_symbol): Likewise.
16056         (cpu_builtin_p): Likewise.
16057         (cpu_expand_builtin): New function.
16058         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
16059         (rs6000_init_builtins): Likewise.
16060         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
16061         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
16062         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
16063         * configure: Regenerate.
16064         * config.in: Likewise.
16065         * doc/extend.texi (PowerPC Built-in Functions): Document
16066         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
16067
16068 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
16069
16070         PR target/68609
16071         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
16072         domain check.
16073         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
16074         for V4SFmode.
16075
16076 2016-01-20  Richard Henderson  <rth@redhat.com>
16077
16078         PR bootstrap/69343
16079         PR bootstrap/69339
16080         PR tree-opt/68964
16081         Revert:
16082         * tree.c (tm_define_builtin): New.
16083         (find_tm_vector_type): New.
16084         (build_tm_vector_builtins): New.
16085         (build_common_builtin_nodes): Call it.
16086
16087 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
16088
16089         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
16090         (arm_fp_ok): Likewise.
16091         (arm_fp): Likewise.
16092         (arm_crypto): Likewise.
16093
16094 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16095             Richard Biener  <rguenther@suse.de>
16096
16097         PR tree-optimization/69328
16098         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
16099         vectors have same number of elements.
16100         (vectorizable_condition): Fix masked version recognition.
16101
16102 2016-01-20  Richard Biener  <rguenther@suse.de>
16103
16104         PR tree-optimization/69345
16105         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16106         (VN_INFO_PTR_INFO): Likewise.
16107         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16108         info when it is equal between non-dominating SSA names.
16109         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16110         Make sure to look at original SSA infos.
16111
16112 2016-01-20  Jeff Law  <law@redhat.com>
16113
16114         PR target/25114
16115         * config/m68k/predicates.md (pow2_m1_operand): New predicate
16116         extracted from ...
16117         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16118         (pc_or_label_operand): New predicate.
16119         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16120         tests for small integers that are 2^n - 1.
16121
16122 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
16123
16124         * doc/invoke.texi (Options Summary): Add '.' after @xref.
16125
16126 2016-01-19  Jeff Law  <law@redhat.com>
16127
16128         PR middle-end/69347
16129         * tree-ssa-threadbackwards.c
16130         (fsm_find_control_statement_thread_paths): Do not try to lookup
16131         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16132
16133 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16134
16135         * doc/lto.texi: Remove text that says only Gold has linker plugin
16136         support.
16137
16138 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
16139
16140         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16141         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16142         the DIE accordingly.
16143         (modified_type_die): Add REVERSE parameter and pass it recursively,
16144         as well as to base_type_die.  Adjust presence check accordingly.
16145         (base_type_for_mode): Adjust call to modified_type_die.
16146         (add_type_attribute): Add REVERSE parameter and pass it to
16147         modified_type_die.
16148         (generic_parameter_die): Adjust call to add_type_attribute.
16149         (add_scalar_info): Likewise.
16150         (add_subscript_info): Likewise.
16151         (gen_array_type_die): Likewise.
16152         (gen_descr_array_type_die): Likewise.
16153         (gen_entry_point_die): Likewise.
16154         (gen_enumeration_type_die): Likewise.
16155         (gen_formal_parameter_die): Likewise.
16156         (gen_subprogram_die): Likewise.
16157         (gen_variable_die ): Likewise.
16158         (gen_const_die): Likewise.
16159         (gen_field_die): Likewise.
16160         (gen_pointer_type_die): Likewise.
16161         (gen_reference_type_die): Likewise.
16162         (gen_ptr_to_mbr_type_die): Likewise.
16163         (gen_inheritance_die): Likewise.
16164         (gen_subroutine_type_die): Likewise.
16165         (gen_typedef_die): Likewise.
16166         (force_type_die): Adjust call to modified_type_die.
16167
16168 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
16169
16170         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16171         flow throughout the file.  Fix broken link to Objective-C 2.0
16172         documentation.
16173         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16174         errors.
16175
16176 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16177
16178         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16179
16180 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16181
16182         PR ipa/66223
16183         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16184         (maybe_record_node): Record cxa_pure_virtual as the only possible
16185         target if there are not ohter candidates.
16186         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16187
16188 2016-01-19  Richard Biener  <rguenther@suse.de>
16189
16190         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16191         (get_memory_order): Likewise.
16192
16193 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16194
16195         * tree-vect-stmts.c (vectorizable_store): Check
16196         rhs vectype.
16197
16198 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
16199
16200         PR jit/68446
16201         * gcc.c (driver::decode_argv): Add call to
16202         init_opts_obstack before init_options_struct.
16203         * opts.c (init_opts_obstack): Remove idempotency.
16204         (init_options_struct): Replace call to init_opts_obstack
16205         with a gcc_assert to verify that it has already been called.
16206         * toplev.c (toplev::main): Add call to init_opts_obstack before
16207         calls to init_options_struct.
16208         (toplev::finalize): Move cleanup of opts_obstack next to
16209         cleanup of save_decoded_options, clearing the latter, and
16210         save_decoded_options_count.
16211
16212 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16213
16214         PR target/69135
16215         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
16216         attribute to unconditional.  Remove %? from output template.
16217
16218 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16219             Jiong Wang  <jiong.wang@arm.com>
16220
16221         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
16222         generated from different expand order.
16223
16224 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16225
16226         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16227         Add support for CCMP costing.
16228
16229 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16230
16231         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
16232         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
16233         (fccmpe<mode>): Likewise.
16234         (fcmp): Rename to fcmp and globalize pattern.
16235         (fcmpe): Likewise.
16236         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
16237         (aarch64_gen_ccmp_next): Add FP support.
16238
16239 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16240
16241         * target.def (gen_ccmp_first): Update documentation.
16242         (gen_ccmp_next): Likewise.
16243         * doc/tm.texi (gen_ccmp_first): Update documentation.
16244         (gen_ccmp_next): Likewise.
16245         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
16246         expand_ccmp_expr_1.  Improve comments.
16247         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
16248         (ccmp_ior<mode>): Remove pattern.
16249         (cmp<mode>): Remove expand.
16250         (cmp): Globalize pattern.
16251         (cstorecc4): Use cc_register.
16252         (mov<mode>cc): Remove ccmp_cc_register check.
16253         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
16254         Simplify after removal of CC_DNE/* modes.
16255         (aarch64_ccmp_mode_to_code): Remove.
16256         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16257         In 'k' case use integer as condition.
16258         (aarch64_nzcv_codes): Remove inverted cases.
16259         (aarch64_code_to_ccmode): Remove.
16260         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16261         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16262         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16263         pattern.  Return the comparison with CC register.  Invert conditions
16264         when bitcode is OR.
16265         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16266         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16267
16268 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16269
16270         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16271         instrumented_version.
16272
16273 2016-01-19  Richard Biener  <rguenther@suse.de>
16274
16275         PR tree-optimization/69336
16276         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16277         handled components with get_ref_base_and_extent.
16278         (equal_mem_array_ref_p): Adjust.
16279
16280 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16281
16282         PR debug/65779
16283         * shrink-wrap.c: Include valtrack.h.
16284         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16285         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16286         in between insn and where it will be moved to.  Call
16287         dead_debug_insert_temp.
16288         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16289         first and dead_debug_local_finish at the end.
16290         For uses and defs bitmap, handle all regs in between REGNO and
16291         END_REGNO, not just the first one.
16292
16293 2016-01-19  Richard Biener  <rguenther@suse.de>
16294
16295         PR tree-optimization/69352
16296         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16297         (equal_mem_array_ref_p): Constrain size and max size properly.
16298         Compare the reverse flag.
16299
16300 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16301
16302         * ira.c (ira): Update regstat data if we deleted insns.
16303
16304 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16305
16306         PR rtl-optimization/68955
16307         PR rtl-optimization/64557
16308         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16309         here.  Fix up formatting.
16310         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16311
16312 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16313
16314         PR lto/69133
16315         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16316         assume that the node has body.
16317         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16318         check.
16319
16320 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16321
16322         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16323         thunks.
16324
16325 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16326
16327         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16328         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16329
16330 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16331             Martin Liska  <mliska@suse.cz>
16332             Michael Matz  <matz@suse.de>
16333
16334         * Makefile.in (OBJS): Add new source files.
16335         (GTFILES): Add hsa.c.
16336         * common.opt (disable_hsa): New variable.
16337         (-Whsa): New warning.
16338         * config.in (ENABLE_HSA): New.
16339         * configure.ac: Treat hsa differently from other accelerators.
16340         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16341         $enable_offloading.
16342         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16343         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16344         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16345         --with-hsa-kmt-lib.
16346         * doc/invoke.texi (-Whsa): Document.
16347         (hsa-gen-debug-stores): Likewise.
16348         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16349         to invoke offload compiler for hsa acclerator.
16350         * opts.c (common_handle_option): Determine whether HSA offloading
16351         should be performed.
16352         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16353         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16354         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16355         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16356         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16357         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16358         GF_OMP_FOR_KIND_GRID_LOOP.
16359         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16360         (pp_gimple_stmt_1): Likewise.
16361         * gimple-walk.c (walk_gimple_stmt): Likewise.
16362         * gimple.c (gimple_build_omp_grid_body): New function.
16363         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16364         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16365         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16366         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16367         GF_OMP_TEAMS_GRID_PHONY.
16368         (gimple_statement_omp_single_layout): Updated comments.
16369         (gimple_build_omp_grid_body): New function.
16370         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16371         (gimple_omp_for_grid_phony): New function.
16372         (gimple_omp_for_set_grid_phony): Likewise.
16373         (gimple_omp_parallel_grid_phony): Likewise.
16374         (gimple_omp_parallel_set_grid_phony): Likewise.
16375         (gimple_omp_teams_grid_phony): Likewise.
16376         (gimple_omp_teams_set_grid_phony): Likewise.
16377         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16378         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16379         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16380         (BUILT_IN_GOMP_TARGET): Updated type.
16381         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16382         (adjust_for_condition): New function.
16383         (get_omp_for_step_from_incr): Likewise.
16384         (extract_omp_for_data): Moved parts to adjust_for_condition and
16385         get_omp_for_step_from_incr.
16386         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16387         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16388         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16389         (scan_omp_parallel): Do not create child functions for phony
16390         constructs.
16391         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16392         (scan_omp_1_op): Checking assert we are not remapping to
16393         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16394         (parallel_needs_hsa_kernel_p): New function.
16395         (expand_parallel_call): Register apprpriate parallel child
16396         functions as HSA kernels.
16397         (grid_launch_attributes_trees): New type.
16398         (grid_attr_trees): New variable.
16399         (grid_create_kernel_launch_attr_types): New function.
16400         (grid_insert_store_range_dim): Likewise.
16401         (grid_get_kernel_launch_attributes): Likewise.
16402         (get_target_argument_identifier_1): Likewise.
16403         (get_target_argument_identifier): Likewise.
16404         (get_target_argument_value): Likewise.
16405         (push_target_argument_according_to_value): Likewise.
16406         (get_target_arguments): Likewise.
16407         (expand_omp_target): Call get_target_arguments instead of looking
16408         up for teams and thread limit.
16409         (grid_expand_omp_for_loop): New function.
16410         (grid_arg_decl_map): New type.
16411         (grid_remap_kernel_arg_accesses): New function.
16412         (grid_expand_target_kernel_body): New function.
16413         (expand_omp): Call it.
16414         (lower_omp_for): Do not emit phony constructs.
16415         (lower_omp_taskreg): Do not emit phony constructs but create for them
16416         a temporary variable receiver_decl.
16417         (lower_omp_taskreg): Do not emit phony constructs.
16418         (lower_omp_teams): Likewise.
16419         (lower_omp_grid_body): New function.
16420         (lower_omp_1): Call it.
16421         (grid_reg_assignment_to_local_var_p): New function.
16422         (grid_seq_only_contains_local_assignments): Likewise.
16423         (grid_find_single_omp_among_assignments_1): Likewise.
16424         (grid_find_single_omp_among_assignments): Likewise.
16425         (grid_find_ungridifiable_statement): Likewise.
16426         (grid_target_follows_gridifiable_pattern): Likewise.
16427         (grid_remap_prebody_decls): Likewise.
16428         (grid_copy_leading_local_assignments): Likewise.
16429         (grid_process_kernel_body_copy): Likewise.
16430         (grid_attempt_target_gridification): Likewise.
16431         (grid_gridify_all_targets_stmt): Likewise.
16432         (grid_gridify_all_targets): Likewise.
16433         (execute_lower_omp): Call grid_gridify_all_targets.
16434         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
16435         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
16436         (tree_omp_clause): Added union field dimension.
16437         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
16438         * tree.c (omp_clause_num_ops): Added number of arguments of
16439         OMP_CLAUSE__GRIDDIM_.
16440         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
16441         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
16442         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
16443         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
16444         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
16445         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
16446         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
16447         * tree-pass.h (make_pass_gen_hsail): Declare.
16448         (make_pass_ipa_hsa): Likewise.
16449         * ipa-hsa.c: New file.
16450         * lto-section-in.c (lto_section_name): Add hsa section name.
16451         * lto-streamer.h (lto_section_type): Add hsa section.
16452         * timevar.def (TV_IPA_HSA): New.
16453         * hsa-brig-format.h: New file.
16454         * hsa-brig.c: New file.
16455         * hsa-dump.c: Likewise.
16456         * hsa-gen.c: Likewise.
16457         * hsa.c: Likewise.
16458         * hsa.h: Likewise.
16459         * toplev.c (compile_file): Call hsa_output_brig.
16460         * hsa-regalloc.c: New file.
16461
16462 2016-01-18  Jeff Law  <law@redhat.com>
16463
16464         PR tree-optimization/69320
16465         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
16466         ranged object, do nothing if the RHS constant is not [0..1].
16467         (optimize_stmt): Comparing a boolean ranged object against a
16468         constant outside [0..1] results in a compile-time constant.
16469
16470         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
16471         test.
16472
16473 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16474
16475         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16476         (Option Summary): Update to reflect new section and moved options.
16477         (C++ Dialect Options): Move -fstats to new section.
16478         (Debugging Options): Move all dump, statistics, and other GCC
16479         developer options to new section.  Rewrite section introduction
16480         and re-order remaining options to put the more basic ones first.
16481         (Optimization Options): Move -fira-verbose and -flto-report* to
16482         new section.
16483         (Developer Options): New section incorporating moved options.
16484         * doc/cppopts.texi (-dM): Update cross-reference.
16485
16486 2016-01-18  Richard Henderson  <rth@redhat.com>
16487
16488         PR target/69176
16489         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
16490         operands to pseudo only if CSE is expected.  Split long immediate
16491         operands only after reload, and for the stack pointer.
16492         (*add<GPI>3_pluslong): Remove.
16493         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
16494         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
16495         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
16496         (*add<GPI>3 peepholes): New.
16497         (*add<GPI>3 splitters): New.
16498         * config/aarch64/constraints.md (Upl): New.
16499         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
16500
16501 2016-01-18  Richard Biener  <rguenther@suse.de>
16502
16503         PR tree-optimization/69297
16504         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
16505         stmt at most once.
16506         (vect_bb_vectorization_profitable_p): Clear visited flag again.
16507
16508 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16509
16510         PR middle-end/68542
16511         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
16512         of mixind vector and scalar types.
16513         (fold_relational_const): Add handling of vector
16514         comparison with boolean result.
16515         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
16516         comparison of vector operands with boolean result for EQ/NE only.
16517         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
16518         (verify_gimple_cond): Likewise.
16519         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
16520         valid type of VAL.
16521
16522 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
16523
16524         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
16525         !TARGET_OCTEON.
16526
16527 2016-01-18  Richard Biener  <rguenther@suse.de>
16528
16529         PR middle-end/69308
16530         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
16531
16532 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16533
16534         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
16535
16536 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16537
16538         * omp-low.c (set_oacc_fn_attrib): Make extern.
16539         * omp-low.h (set_oacc_fn_attrib): Declare.
16540         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
16541         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
16542         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
16543         Add and handle function parameter oacc_kernels_p.
16544         (find_reduc_addr, get_omp_data_i_param): New function.
16545         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
16546         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
16547         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
16548         Calculate dominance info.  Skip loops that are not in a kernels region
16549         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
16550         (pass_parallelize_loops::execute): Call parallelize_loops with
16551         oacc_kernels_p argument.
16552         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
16553         New member function.
16554         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
16555         * passes.def: Add argument to pass_parallelize_loops instantation.
16556
16557 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16558
16559         * tree-parloops.c (pass_parallelize_loops::execute): Allow
16560         pass_parallelize_loops to be run outside the loop pipeline.
16561
16562 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16563
16564         * tree-scalar-evolution.c (follow_copies_to_constant): New.
16565         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
16566
16567 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16568
16569         PR target/63679
16570         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
16571         using get_ref_base_and_extent.
16572         (equal_mem_array_ref_p): New.
16573         (hashable_expr_equal_p): Add call to previous.
16574
16575 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16576
16577         PR target/63679
16578         * tree-sra.c (disqualified_constants, constant_decl_p): New.
16579         (sra_initialize): Allocate disqualified_constants.
16580         (sra_deinitialize): Free disqualified_constants.
16581         (disqualify_candidate): Update disqualified_constants when appropriate.
16582         (create_access): Scan for constant-pool entries as we go along.
16583         (scalarizable_type_p): Add check against type_contains_placeholder_p.
16584         (maybe_add_sra_candidate): Allow constant-pool entries.
16585         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
16586         (initialize_constant_pool_replacements): New.
16587         (sra_modify_assign): Avoid mangling assignments created by previous,
16588         and don't generate writes into constant pool.
16589         (sra_modify_function_body): Call initialize_constant_pool_replacements.
16590
16591 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16592
16593         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
16594         andnot instruction.
16595         (scalar_chain::convert_op): Likewise.
16596         * config/i386/i386.md (*andndi3_doubleword): New.
16597
16598 2016-01-18  Richard Biener  <rguenther@suse.de>
16599
16600         PR tree-optimization/69170
16601         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
16602         building a vector from scalar results of a pattern stmt.
16603
16604 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
16605
16606         * haifa-sched.c (autopref_multipass_init): Work around
16607         -Wmaybe-uninitialized warning.
16608
16609 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16610
16611         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
16612         against the constant 0.
16613
16614 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16615
16616         PR tree-optimization/68799
16617         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
16618         look up phi candidates in the statement-candidate map.
16619         (phi_add_costs): Likewise.
16620         (record_phi_increments): Likewise.
16621         (phi_incr_cost): Likewise.
16622         (ncd_with_phi): Likewise.
16623         (all_phi_incrs_profitable): Likewise.
16624
16625 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
16626
16627         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
16628         -Wmaybe-uninitialized warning.
16629
16630 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
16631
16632         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16633         (Option Summary): Update to reflect new section and moved options.
16634         (C++ Dialect Options): Move -fvtable-verify and related options.
16635         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
16636         and profiling-related options.
16637         (Optimization Options): Move profile generation options and
16638         -fstack-protector and related options.
16639         (Instrumentation Options): New section incorporating moved options.
16640         (Code Generation Options): Move -finstrument-functions and
16641         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
16642
16643 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16644
16645         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
16646
16647 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16648
16649         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
16650
16651 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
16652
16653         * hash-table.h (hash_table::empty): Turn into an inline wrapper
16654         that checks whether the table is already empty.  Rename the
16655         original implementation to...
16656         (hash_table::empty_slot): ...this new private function.
16657
16658 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
16659
16660         PR diagnostic/68899
16661         * diagnostic-show-locus.c (layout::print_source_line): Move x
16662         offset of line until after call to
16663         get_line_width_without_trailing_whitespace.
16664
16665 2016-01-15  Jeff Law  <law@redhat.com>
16666
16667         PR tree-optimization/69270
16668         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
16669         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
16670         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
16671         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
16672         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16673         ssa_name_has_boolean_range and constant_boolean_node.
16674
16675 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16676
16677         PR rtl-optimization/69030
16678         * lra-spills.c (remove_pseudos): Check nrefs and make the function
16679         returning bool.
16680         (spill_pseudos): Delete debug insn for dead pseudo.
16681         (lra_spill): Initiate spill_hard_reg and slots memory separately.
16682
16683 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
16684
16685         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
16686         New.
16687         (TYPES_UNOPUS): Likewise.
16688         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
16689         builtin type, from UNOP to UNOPUS.
16690         (lbtruncuv4sf): Likewise.
16691         (lbtruncuv2df): Likewise.
16692         (lrounduv2sf): Likewise.
16693         (lrounduv4sf): Likewise.
16694         (lrounduv2df): Likewise.
16695         (lroundusf): Likewise.
16696         (lroundusf): Likewise.
16697         (lceiluv2sf): Likewise.
16698         (lceiluv4sf): Likewise.
16699         (lceiluv2df): Likewise.
16700         (lceilusf): Likewise.
16701         (lceiludf): Likewise.
16702         (lflooruv2sf): Likewise.
16703         (lflooruv4sf): Likewise.
16704         (lflooruv2df): Likewise.
16705         (lfloorusf): Likewise.
16706         (lfloorudf): Likewise.
16707         (lfrintnuv2sf): Likewise.
16708         (lfrintnuv4sf): Likewise.
16709         (lfrintnuv2df): Likewise.
16710         (lfrintnusf): Likewise.
16711         (lfrintnudf): Likewise.
16712         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
16713         conversion.
16714         (vcvtq_u32_f32): Likewise.
16715         (vcvtq_u64_f64): Likewise.
16716         (vcvta_u32_f32): Likewise.
16717         (vcvtaq_u32_f32): Likewise.
16718         (vcvtaq_u64_f64): Likewise.
16719         (vcvtm_u32_f32): Likewise.
16720         (vcvtmq_u32_f32): Likewise.
16721         (vcvtmq_u64_f64): Likewise.
16722         (vcvtn_u32_f32): Likwise.
16723         (vcvtnq_u32_f32): Likewise.
16724         (vcvtnq_u64_f64): Likewise.
16725         (vcvtp_u32_f32): Likewise.
16726         (vcvtpq_u32_f32): Likewise.
16727         (vcvtpq_u64_f64): Likewise.
16728         (vcvtmd_u64_f64): Likewise.
16729         (vcvtms_u32_f32): Likewise.
16730         (vcvtad_u64_f64): Likewise.
16731         (vcvtas_u32_f32): Likewise.
16732         (vcvtnd_u64_f64): Likewise.
16733         (vcvtns_u32_f32): Likewise.
16734         (vcvtpd_u64_f64): Likewise.
16735         (vcvtps_u32_f32): Likewise.
16736
16737 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16738
16739         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
16740         CSEL of zero_extended registers.
16741
16742 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16743
16744         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16745         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
16746
16747 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16748
16749         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
16750         false when argument string is not found in the attributes table
16751         at all.
16752
16753 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
16754
16755         PR target/68609
16756         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
16757         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
16758         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
16759         precision estimate.
16760
16761 2016-01-15  Richard Biener  <rguenther@suse.de>
16762
16763         PR tree-optimization/66856
16764         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
16765         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
16766         (vect_create_new_slp_node): Increment stmt reference count.
16767         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
16768         an SLP tree before swapping operands.
16769         (vect_build_slp_tree): Likewise.
16770         (destroy_bb_vec_info): Free stmt info after SLP instances.
16771         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
16772         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
16773         (STMT_VINFO_NUM_SLP_USES): New macro.
16774
16775 2016-01-15  Richard Biener  <rguenther@suse.de>
16776
16777         PR debug/69137
16778         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
16779         (add_linkage_name): ... here.
16780         (gen_typedef_die): Use add_linkage_name_raw instead of
16781         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
16782         if necessary.
16783
16784 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
16785
16786         * gimplify.c (oacc_default_clause): Decode reference and pointer
16787         types for both kernels and parallel regions.
16788
16789 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16790
16791         PR middle-end/69246
16792         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
16793
16794 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16795
16796         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
16797         (convert_scalars_to_vector): Likewise.
16798
16799 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
16800
16801         * doc/extend.texi (Type Traits): Fix grammar.
16802
16803 2016-01-15  Martin Jambor  <mjambor@suse.cz>
16804
16805         * tree-inline.c (remap_decl): Use existing dclarations if
16806         remapping a type and prevent_decl_creation_for_types.
16807         (replace_locals_stmt): Do an initial remapping of non-VLA typed
16808         decls first.  Do real remapping with
16809         prevent_decl_creation_for_types set.
16810         * tree-inline.h (copy_body_data): New field
16811         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
16812         padding.
16813
16814 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16815
16816         * config/s390/s390.opt (mmvcle): More verbose help text.
16817
16818 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16819
16820         * config/s390/s390.opt: Add period to -mzvector option text.
16821
16822 2016-01-15  Richard Biener  <rguenther@suse.de>
16823
16824         PR tree-optimization/68961
16825         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
16826         of invariants in stores again.
16827
16828 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16829
16830         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
16831
16832 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16833
16834         * config/i386/i386.c (ix86_expand_branch): Don't split
16835         DI mode xor instruction to SI mode.
16836
16837 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16838
16839         PR ipa/68148
16840         * ipa-icf.c (sem_function::merge): Virtual functions may become
16841         reachable even if they address is not taken and there are no
16842         idrect calls.
16843
16844 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16845
16846         * lto-streamer-out.c (subtract_estimated_size): New function.
16847         (get_symbol_initial_value): Use it.
16848
16849 2016-01-15  Christian Bruel  <christian.bruel@st.com>
16850
16851         PR target/65837
16852         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
16853         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
16854         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
16855         use add_builtin_function_ext_scope instead of add_builtin_function.
16856         (neon_set_p, neon_crypto_set_p): Remove.
16857         (arm_init_builtins): Always call arm_init_neon_builtins and
16858         arm_init_crypto_builtins.
16859         (arm_expand_builtin): Check that builtins are allowed for the arch.
16860         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
16861         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
16862         arm_init_neon_builtins call.
16863
16864 2016-01-15  Richard Biener  <rguenther@suse.de>
16865
16866         PR tree-optimization/69117
16867         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
16868         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
16869         of the leader conservatively.
16870         (free_scc_vn): Restore original SSA name infos.
16871
16872 2016-01-14  Jeff Law  <law@redhat.com>
16873
16874         PR tree-optimization/69270
16875         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
16876         single bit of precision, verify it's also unsigned.
16877         (record_edge_info): Use constant_boolean_node rather than fold_convert
16878         to convert boolean_true/boolean_false to the right type.
16879
16880 2016-01-14  Richard Henderson  <rth@redhat.com>
16881
16882         PR rtl-opt/69014
16883         * loop-doloop.c (record_reg_sets): New.
16884         (doloop_optimize): Reject the transform if the sequence
16885         clobbers registers live at the end of the loop block.
16886         (doloop_optimize_loops): Enable df_live if needed.
16887
16888 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16889
16890         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
16891         * config/rs6000/rs6000.c: Likewise.
16892         * config/rs6000/rs6000.h: Likewise.
16893         * config/rs6000/rs6000.md: Likewise.
16894         * doc/extend.texi: Likewsie.
16895
16896 2016-01-14  Jeff Law  <law@redhat.com>
16897
16898         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
16899         typo.
16900
16901 2016-01-14  Richard Henderson  <rth@redhat.com>
16902
16903         PR c/69272
16904         PR tree-opt/68964
16905         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
16906         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
16907         instead of builtin_decl_declared_p to test for declaration.
16908
16909 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
16910
16911         * doc/loop.texi (Loop Analysis and Representation): Document
16912         loop_depth function.
16913
16914 2016-01-14  Tom de Vries  <tom@codesourcery.com>
16915
16916         PR tree-optimization/68773
16917         * omp-low.c (expand_omp_target): Don't set force_output.
16918         * varpool.c (varpool_node::get_create): Same.
16919         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
16920         offload_funcs with force_output.
16921
16922 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16923
16924         PR debug/69244
16925         * lra-eliminations.c (move_plus_up): Don't change anything if either
16926         the outer or inner subreg mode is not MODE_INT.
16927         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
16928         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
16929
16930 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16931
16932         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
16933         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
16934         reduc_uplus_@var{m}): Remove.
16935         * expr.c (expand_expr_real_2): Remove expansion path for
16936         reduc_[us](min|max|plus) optabs.
16937         * optabs-tree.c (scalar_reduc_to_vector): Remove.
16938         * optabs-tree.h (scalar_reduc_to_vector): Remove.
16939         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
16940         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
16941         * tree-vect-loop.c (vectorizable_reduction): Remove test for
16942         reduc_[us](min|max|plus) optabs.
16943
16944 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16945
16946         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
16947         (reduc_plus_scal_v2sf): New.
16948         (reduc_smax_v2sf): Rename to...
16949         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
16950         (reduc_smin_v2sf): Rename to...
16951         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
16952
16953 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
16954
16955         * alias.c (compare_base_symbol_refs): New function.
16956         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
16957         it.
16958
16959 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16960
16961         PR middle-end/68146
16962         PR tree-optimization/69155
16963         * tree-complex.c: Include cfganal.h.
16964         (phis_to_revisit): New variable.
16965         (extract_component): Add phiarg_p argument.  Assert that returned
16966         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
16967         (update_phi_components): Partly rewrite to use loop over real/imag
16968         components instead of code duplication.  If extract_component returns
16969         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
16970         create_tmp_reg into the PHI node instead, and mention the phi triplet
16971         in phis_to_revisit.
16972         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
16973         in phis_to_revisit at the end.
16974
16975 2016-01-14  Richard Biener  <rguenther@suse.de>
16976
16977         PR tree-optimization/68060
16978         * tree-vect-loop.c (vect_is_simple_reduction): Check the
16979         outer loop reduction is only used in the inner loop before
16980         detecting a double reduction.
16981
16982 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16983
16984         PR target/68269
16985         * combine.c (expand_field_assignment): Punt if compute_mode is
16986         unsupported scalar mode.
16987
16988 2016-01-14  Richard Biener  <rguenther@suse.de>
16989
16990         PR tree-optimization/66856
16991         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
16992         SLP node only if it built successfully.
16993         (vect_analyze_slp_instance): Adjust.
16994
16995 2016-01-14  Jeff Law  <law@redhat.com>
16996
16997         PR tree-optimization/69270
16998         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
16999         (record_edge_info): Use it.  Convert boolean_{true,false}_node
17000         to the type of op0.
17001
17002 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
17003
17004         PR ipa/66487
17005         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
17006         use block_ultimate_origin
17007         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
17008
17009 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17010
17011         * doc/invoke.texi (Submodel Options): Rename section to
17012         "Machine-Dependent Options" to better reflect its content.
17013         Rewrite introductory text to remove archaic CPU names.
17014         Update references.
17015
17016 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17017
17018         * doc/invoke.texi (Code Gen Options): Move section up in file,
17019         before target-specific options.  Update menu and option summary
17020         to reflect the new section ordering.
17021
17022 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17023
17024         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
17025         (C++ Dialect Options): Add cross-reference to -std option.
17026         * doc/standards.texi (C++ Language): Document C++14 support.
17027
17028 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17029
17030         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
17031         for pack/unpack functions for __ibm128.
17032         (PACK_IF): Likewise.
17033         (UNPACK_IF): Likewise.
17034
17035         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17036         support for __ibm128 pack/unpack functions.
17037         (rs6000_invalid_builtin): Likewise.
17038         (rs6000_init_builtins): Likewise.
17039         (rs6000_opt_masks): Likewise.
17040
17041         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
17042         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
17043         functions
17044         (RS6000_BTM_COMMON): Likewise.
17045
17046         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
17047         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
17048         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
17049         128-bit floating point.  Add support for the double values to be
17050         in Altivec registers for TF/IF packing and unpacking, but restrict
17051         TD packing sub-fields to be FPR registers.  Don't allow overlapped
17052         register support for packing.  Allow pack inputs to be memory
17053         locations.  Don't build generator functions for unpack<mode>_dm
17054         and unpack<mode>_nodm.
17055         (unpack<mode>_dm): Likewise.
17056         (unpack<mode>_nodm): Likewise.
17057         (pack<mode>): Likewise.
17058
17059         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
17060         built-in functions to pack/unpack explicit __ibm128 values.
17061         (__builtin_unpack_ibm128): Likewise.
17062
17063         * doc/extend.texi (PowerPC Built-in Functions): Document
17064         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
17065
17066 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
17067
17068         PR c/66208
17069         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
17070         Add new arg loc and pass it down as context.
17071         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
17072         to the location to use for the warning.
17073         (check_function_arguments): New arg loc.  All callers changed.  Pass
17074         it to check_function_nonnull.
17075         * c-common.h (check_function_arguments): Adjust declaration.
17076
17077 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
17078
17079         PR tree-optimization/69156
17080         * gimple.c (validate_type): Removed.
17081         (gimple_builtin_call_types_compatible_p): Use
17082         useless_type_conversion_p instead of validate_type.
17083         * value-prof.c (gimple_stringop_fixed_value): Fold
17084         icall_size to correct type.
17085
17086 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17087
17088         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
17089         effects.
17090
17091 2016-01-13  Richard Henderson  <rth@redhat.com>
17092
17093         PR tree-opt/68964
17094         * target.def (builtin_tm_load, builtin_tm_store): Remove.
17095         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
17096         (ix86_builtin_tm_store): Remove.
17097         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17098         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17099         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17100         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17101         * doc/tm.texi: Rebuild.
17102
17103         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
17104         (BUILT_IN_TM_MEMCPY_RTWN): New.
17105         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17106         fallback from vector to integer helpers.
17107         (build_tm_load): Handle vector types directly, instead of
17108         via target hook.
17109         (build_tm_store): Likewise.
17110         (expand_assign_tm): Prepare for register types not handled by
17111         the above.  Copy them to memory and use memcpy.
17112         * tree.c (tm_define_builtin): New.
17113         (find_tm_vector_type): New.
17114         (build_tm_vector_builtins): New.
17115         (build_common_builtin_nodes): Call it.
17116
17117 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
17118
17119         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17120         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
17121
17122 2016-01-13  Tom de Vries  <tom@codesourcery.com>
17123
17124         PR tree-optimization/69169
17125         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17126         handled_struct_type param.
17127         (create_variable_info_for, intra_create_variable_infos): Call
17128         create_variable_info_for_1 with extra arg.
17129
17130 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
17131
17132         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17133         and "armv8.1-a+crc" entries.
17134
17135 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
17136
17137         PR target/69228
17138         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17139         Change first operand predicate from register_or_constm1_operand
17140         to register_operand.
17141         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17142         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17143         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17144         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17145         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17146         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17147         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17148         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17149         comparison with constm1_rtx from vec_prefetch_gen part.
17150
17151 2016-01-13  Richard Biener  <rguenther@suse.de>
17152
17153         PR tree-optimization/69013
17154         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17155         Exchange assert for a test.
17156
17157 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17158
17159         PR target/69247
17160         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17161
17162 2016-01-13  Richard Biener  <rguenther@suse.de>
17163
17164         PR tree-optimization/69242
17165         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17166         assert with a check.
17167
17168 2016-01-13  Richard Biener  <rguenther@suse.de>
17169
17170         PR tree-optimization/69186
17171         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17172         Properly guard vect_update_misalignment_for_peel call.
17173
17174 2016-01-12  Jeff Law  <law@redhat.com>
17175
17176         PR tree-optimization/pr67755
17177         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17178         "need_profile_correction".
17179         (thread_block_1): Initialize new field to false by default.  If we
17180         have multiple thread paths through a common joiner to different
17181         final targets, then set new field to true.
17182         (compute_path_counts): Only do count adjustment when it's really
17183         needed.
17184
17185 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17186
17187         * doc/invoke.texi (Spec Files): Move section down in file, past
17188         all command-line option descriptions.
17189
17190 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17191
17192         PR middle-end/54809
17193         * doc/gty.texi: Remove documentation of mark_hook.
17194         * gengtype.c (struct write_types_data): Remove code to support
17195         mark_hook attribute.
17196         (walk_type): Likewise.
17197         (write_func_for_structure): Likewise.
17198
17199 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17200
17201         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17202         Directory Options, and -specs= to Overall Options.
17203         (Overall Options): Adjust similarly.  Reorder to group related
17204         options together.  Make -specs= cross-reference the spec file details.
17205         (Directory Options): Adjust similarly.
17206
17207 2016-01-12  Jeff Law  <law@redhat.com>
17208
17209         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17210
17211 2016-01-12  Olivier Hainque  <hainque@adacore.com>
17212
17213         * gcc.c (spec_undefvar_allowed): New global.
17214         (process_command): Set to true when running for --version or --help,
17215         alone or together.
17216         (getenv_spec_function): When the variable is not defined, use the
17217         variable name as the variable value if we're allowed not to issue
17218         a fatal error.
17219
17220 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
17221
17222         PR tree-optimization/68911
17223         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
17224         information computed for expression "init + nit * step".
17225
17226 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17227
17228         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
17229         about name of GCC executable.  Remove deleted node from menu.
17230         (Directory Options) <-B>: Remove cross-reference to deleted node.
17231         (Target Options): Delete section.
17232
17233 2016-01-12  Christian Bruel  <christian.bruel@st.com>
17234
17235         PR target/69180
17236         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
17237         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
17238
17239 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
17240
17241         PR target/69198
17242         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
17243         aligned_mem is properly set for AVX512-VL floating point masked
17244         stores.
17245
17246         PR target/69175
17247         * ifcvt.c (cond_exec_process_if_block): When removing the last
17248         insn from then_bb, remove also any possible barriers that follow it.
17249
17250 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17251
17252         PR target/68456
17253         PR target/69226
17254         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17255         (PTRDIFF_TYPE): Likewise.
17256         (WCHAR_TYPE): Likewise.
17257         (WCHAR_TYPE_SIZE): Likewise.
17258         (STDINT_LONG32): Likewise.
17259
17260 2016-01-12  Richard Biener  <rguenther@suse.de>
17261
17262         PR tree-optimization/69053
17263         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17264         convert initial value for cond reductions.
17265
17266 2016-01-12  Richard Biener  <rguenther@suse.de>
17267
17268         PR tree-optimization/69007
17269         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17270         widen_sum after dot_prod and sad.
17271
17272 2016-01-12  Richard Biener  <rguenther@suse.de>
17273
17274         PR tree-optimization/69168
17275         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17276         pattern stmt SLP type.
17277         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17278         end up unused so cope with that case.
17279
17280 2016-01-12  Richard Biener  <rguenther@suse.de>
17281
17282         PR tree-optimization/69157
17283         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17284         stmts def type only during analyze phase.
17285         (vectorizable_call): Likewise.
17286         (vectorizable_simd_clone_call): Likewise.
17287         (vectorizable_conversion): Likewise.
17288         (vectorizable_assignment): Likewise.
17289         (vectorizable_shift): Likewise.
17290         (vectorizable_operation): Likewise.
17291         (vectorizable_store): Likewise.
17292         (vectorizable_load): Likewise.
17293
17294 2016-01-12  Richard Biener  <rguenther@suse.de>
17295
17296         PR tree-optimization/69174
17297         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17298         space.
17299         (vectorizable_load): Properly compute the number of loads needed
17300         for permuted strided SLP loads and do not spuriously assign
17301         to SLP_TREE_VEC_STMTS.
17302
17303 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17304
17305         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17306         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17307         (MD_EXEC_PREFIX): Remove.
17308         (MD_STARTFILE_PREFIX) Removee.
17309         (FILE_NAME_ABSOLUTE_P): Remove.
17310         (CPP_SPEC): Do not read macros from sys/version.h.
17311         (LINK_COMMAND_SPEC): Remove.
17312         (LOCAL_INCLUDE_DIR): Remove.
17313         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17314         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17315         (POST_LINK_SPEC): Define to invoke stubify after linker
17316         (LIBSTDCXX): Remove define
17317         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17318         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17319         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17320         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17321         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17322         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17323         (i386_djgpp_asm_named_section): Add propotype of new procedure
17324
17325         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17326         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17327         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17328         in config/i386/djgpp.h).
17329         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17330         STANDARD_STARTFILE_PREFIX_1.
17331         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17332         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17333         installation errors.
17334         (MAX_OFILE_ALIGNMENT): Define to 128.
17335         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17336
17337         * config/i386/djgpp.c: New file. Add implementation of
17338         i386_djgpp_asm_named_section.
17339
17340         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17341
17342         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17343         Add rule for building djgpp.o.
17344
17345 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17346
17347         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17348         (rtx_is_swappable_p): Reductions are swappable.
17349         (insn_is_swappable_p): V2DF reductions are swappable.
17350
17351 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17352
17353         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17354         reloads for other unsupported memory operands.
17355
17356 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17357             Jim Wilson  <jim.wilson@linaro.org>
17358
17359         PR target/69194
17360         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17361         copy_to_mode_reg instead of force_reg.
17362
17363 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17364
17365         PR target/69225
17366         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17367         TARGET_80387 is true.
17368
17369 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17370
17371         PR target/69071
17372         * lra-eliminations.c (move_plus_up): Only move plus up
17373         if subreg of the constant can be simplified into constant
17374         and use the simplified subreg of the constant instead of
17375         the original constant.
17376
17377         * fold-const.c (fold_convertible_p): Don't return true
17378         for conversion of VECTOR_TYPE to same sized integral type.
17379         (fold_convert_loc): Fix up formatting.  Fold conversion of
17380         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17381         instead of NOP_EXPR.
17382
17383         PR tree-optimization/69214
17384         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17385         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17386         Formatting fix.
17387
17388         PR tree-optimization/69207
17389         * tree-vect-slp.c (vect_get_constant_vectors): For
17390         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17391         fold_convertible_p to vector_type's element type, and always
17392         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17393
17394 2016-01-11  Richard Biener  <rguenther@suse.de>
17395
17396         PR tree-optimization/69173
17397         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
17398         fixup the cycle if all stmts are in a pattern.
17399
17400 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
17401
17402         PR middle-end/68999
17403         * alias.c (base_alias_check): Move check for addresses with
17404         alignment ANDs before the call for compare_base_decls.
17405         (memrefs_conflict_p): Return -1 for different decls
17406         that went through alignment adjustments.
17407
17408 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17409
17410         PR rtl-optimization/68796
17411         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
17412         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
17413         and QImode comparisons against zero with CC_NZmode.
17414         * config/aarch64/iterators.md (short_mask): New mode_attr.
17415
17416 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17417
17418         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
17419         (<avx512>_store<mode>_mask): Likewise.
17420
17421 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
17422             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17423
17424         PR rtl-optimization/68841
17425         * ifcvt.c (struct noce_if_info): Add orig_x field.
17426         (bbs_ok_for_cmove_arith): Add to_rename parameter.
17427         Don't record conflicts on to_rename if it's present.
17428         Allow memory destinations in sets.
17429         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
17430         blocks, passing orig_x to the checks.
17431         (noce_process_if_block): Set if_info->orig_x appropriately.
17432
17433 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17434
17435         PR tree-optimization/69069
17436         * tree-parloops.c (create_parallel_loop): Add missing phi args.
17437
17438 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17439
17440         PR rtl-optimization/68920
17441         * config/i386/i386.c (ix86_option_override_internal): Restrict number
17442         of conditional moves for  RTL if-conversion to 1 for
17443         TARGET_ONE_IF_CONV_INSN.
17444         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
17445         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
17446         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
17447         parameter to restirct number of conditional moves for
17448         RTL if-conversion.
17449         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
17450         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
17451         conditionl moves.
17452
17453 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
17454
17455         PR bootstrap/69123
17456         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
17457         onepart vars.  Fix typo in comment.  Fix reversed condition in
17458         unshare test.
17459         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
17460
17461         PR bootstrap/69123
17462         * var-tracking.c (dump_onepart_variable_differences): New.
17463         (dataflow_set_different): If a detailed dump is requested,
17464         delay early returns and dump differences between onepart
17465         variables present before and after, and added variables.
17466
17467 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
17468
17469         PR target/69010
17470         * expr.c (expand_expr_real_1): For boolean vector constants
17471         with a scalar mode use const_scalar_mask_from_tree.
17472         (const_scalar_mask_from_tree): New.
17473         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
17474         assigned to a mask type to handle constants.
17475
17476 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17477
17478         PR ipa/69044
17479         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
17480         useless parameters if we cannot change function signature.
17481
17482 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17483
17484         PR ipa/66616
17485         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
17486         flag.
17487
17488 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17489
17490         PR tree-optimization/69109
17491         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
17492         latch with phi.
17493
17494 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17495
17496         PR tree-optimization/69108
17497         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
17498         res is not used in a phi.
17499
17500 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
17501
17502         PR 67425
17503         * common.opt (frandom-seed): Fix parameter name.
17504         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
17505
17506 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17507
17508         PR tree-optimization/69058
17509         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
17510         not supported.
17511
17512 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
17513
17514         * config/arc/arc.opt (mdiv-rem): Add period to the end.
17515         (mcode-density): Likewise.
17516
17517 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17518
17519         PR tree-optimization/69062
17520         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
17521         (parallelize_loops): Don't paralelize loop that has phi with address
17522         arg.
17523
17524 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17525
17526         PR tree-optimization/69039
17527         * tree-parloops.c (try_create_reduction_list): Only allow single exit
17528         phi for reduction.
17529
17530 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
17531
17532         PR middle-end/68743
17533         * match.pd: Require target has function_c99_misc before doing
17534         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
17535
17536 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
17537
17538         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
17539         use GMPINC.
17540         * configure: Regenerate.
17541
17542 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
17543
17544         PR middle-end/50865
17545         PR tree-optimization/69097
17546         * fold-const.h (expr_not_equal_to): New prototype.
17547         * fold-const.c: Include stringpool.h and tree-ssanames.h.
17548         (expr_not_equal_to): New function.
17549         * match.pd (X % -Y is the same as X % Y): Don't optimize
17550         unless X is known not to be equal to minimum or Y is known
17551         not to be equal to -1.
17552         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
17553         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
17554         (simplify_stmt_using_ranges): Adjust caller.
17555         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
17556         substitute_and_fold.
17557
17558 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
17559
17560         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
17561         w/o DECL_NAME.
17562
17563 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17564
17565         PR tree-optimization/69167
17566         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
17567         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
17568         ops[0] comparison.
17569         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
17570
17571 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17572             Richard Biener  <rguenther@suse.de>
17573
17574         PR tree-optimization/68707
17575         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
17576         instances that can be handled via vect_load_lanes.
17577
17578 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
17579
17580         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
17581         if we can't determine address equivalence.
17582         * alias.c (compare_base_decl): Update for changed return value of
17583         symtab_node::equal_address_to.
17584
17585 2016-01-08  Jason Merrill  <jason@redhat.com>
17586
17587         PR c++/68983
17588         PR c++/67557
17589         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
17590         * expr.c (store_field): Not here.
17591         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
17592         call with TREE_ADDRESSABLE type.
17593         * tree-cfg.c (verify_gimple_call): Adjust.
17594
17595 2016-01-08  Olivier Hainque  <hainque@adacore.com>
17596
17597         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
17598         libc_internal.
17599
17600 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17601
17602         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
17603         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
17604         (reduc_smin_v2sf): Rename to...
17605         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
17606         (reduc_splus_v2sf): Rename to...
17607         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
17608
17609 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17610
17611         PR tree-optimization/69162
17612         * gimplify.c (gimplify_va_arg_expr): Encode original type of
17613         valist argument in another argument.
17614         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
17615         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
17616         to determine the va_list type, build a MEM_REF instead of
17617         build_fold_indirect_ref.
17618
17619         PR tree-optimization/69172
17620         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
17621         gimple_build.
17622
17623 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17624
17625         PR tree-optimization/67781
17626         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
17627         and cmpnop in two steps: first the ones not accessed in original
17628         gimple expression in a endian independent way and then the ones not
17629         accessed in the final result in an endian-specific way.
17630
17631 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17632
17633         PR tree-optimization/69083
17634         * tree-vect-slp.c (vect_get_constant_vectors): For
17635         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
17636         element type.  If op is fold_convertible_p to vector_type's element
17637         type, use NOP_EXPR instead of VCE.
17638
17639 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
17640
17641         PR rtl-optimization/67778
17642         PR rtl-optimization/68634
17643         PR rtl-optimization/68909
17644         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
17645         block from the stack until done with it.  Remove a superfluous
17646         bitmap set.  Remove a superfluous bitmap test.
17647
17648 2016-01-07  Martin Sebor  <msebor@redhat.com>
17649
17650         PR c/68966
17651         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
17652         constraint on the type of arguments.
17653
17654 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
17655
17656         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
17657         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
17658         unaligned_access on the gcc_options set.
17659         * config/arm/arm.c (arm_option_override_internal): Use
17660         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
17661
17662 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17663
17664         PR target/69140
17665         * config/i386/i386.c (ix86_frame_pointer_required): Enable
17666         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
17667
17668 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17669
17670         Revert
17671         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17672
17673         PR target/69140
17674         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17675         depending on frame_pointer_needed before remaining integer and SSE
17676         registers are saved.
17677
17678 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17679
17680         PR 1078
17681         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
17682
17683 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17684
17685         PR target/69171
17686         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
17687         Use the "xBm" constraint.
17688         (float<sseintvecmodelower><mode>2<mask_name><round_name):
17689         Likewise.
17690         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
17691         (sse_cvtsi2ssq<round_name>): Likewise.
17692         (sse_cvtss2si<round_name>): Likewise.
17693         (sse_cvtss2siq<round_name>): Likewise.
17694         (sse2_cvtsi2sdq<round_name>): Likewise.
17695         (sse2_cvtsd2si<round_name>): Likewise.
17696         (sse2_cvtsd2siq<round_name>): Likewise.
17697         * config/i386/subst.md (round_nimm_scalar_predicate): New
17698         predicate.
17699
17700 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
17701
17702         PR middle-end/67639
17703         * varasm.c (make_decl_rtl): Mark invalid register vars as
17704         DECL_EXTERNAL.
17705
17706         PR rtl-optimization/66206
17707         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
17708         All callers changed.
17709
17710 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
17711
17712         PR tree-optimization/69141
17713         * tree-ssa-pre.c: Include langhooks.h.
17714         (eliminate_dom_walker::before_dom_children): Use
17715         lang_hooks.decl_printable_name instead of
17716         cgraph_node::get ()->name ().
17717
17718         PR middle-end/68960
17719         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
17720         it and DECL_ALIGN too.
17721
17722 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
17723
17724         * config/mips/mips-ftypes.def: Sort to lexicographical order.
17725
17726 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17727
17728         PR target/69140
17729         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17730         depending on frame_pointer_needed before remaining integer and SSE
17731         registers are saved.
17732
17733 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17734
17735         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
17736         mode iterator with VSX_M2.
17737         (*p9_vecstore_<mode>): Likewise.
17738         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
17739         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
17740         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
17741         (define_split for VSX_LE128 stores): Likewise.
17742         (define_peephole2 for TImode LE swaps): Likewise.
17743         (define_split for VSX_LE128 post-reload stores): Likewise.
17744
17745 2016-01-06  Marek Polacek  <polacek@redhat.com>
17746
17747         PR sanitizer/69099
17748         * convert.c (convert_to_integer_1): Adjust call to
17749         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
17750         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
17751         EXPR instead of ARG.
17752         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
17753
17754 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17755
17756         PR 1078
17757         * doc/extend.texi (RL78 Variable Attributes): New section.
17758
17759 2016-01-05  Marek Polacek  <polacek@redhat.com>
17760
17761         PR c/69104
17762         * builtins.c (get_memmodel): Use expansion point location rather than
17763         the input location.  Call warning_at rather than warning.
17764         (expand_builtin_atomic_compare_exchange): Likewise.
17765         (expand_builtin_atomic_load): Likewise.
17766         (expand_builtin_atomic_store): Likewise.
17767         (expand_builtin_atomic_clear): Likewise.
17768
17769 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17770
17771         PR target/68991
17772         * config/i386/i386.c (ix86_expand_vector_logical_operator):
17773         Replace nonimmediate_operand with vector_operand.
17774         * config/i386/predicates.md (vector_operand): New predicate.
17775         (general_vector_operand): Replace nonimmediate_operand with
17776         vector_operand.
17777         * config/i386/sse.md: Replace nonimmediate_operand with
17778         vector_operand and m constraint with Bm constraint on SSE
17779         patterns with 16-byte memory operand.
17780         * config/i386/subst.md (round_nimm_predicate): Replace
17781         nonimmediate_operand with vector_operand.
17782         (round_saeonly_nimm_predicate): Likewise.
17783         (round_saeonly_nimm_scalar_predicate): New.
17784
17785 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17786
17787         PR target/68991
17788         * config/i386/constraints.md (Bm): New constraint.
17789         * config/i386/predicates.md (vector_memory_operand): New
17790         predicate.
17791         * config/i386/sse.md: Replace xm with xBm in plusminus and
17792         any_logic patterns.
17793
17794 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17795
17796         PR 1078
17797         * doc/extend.texi (V850 Function Attributes): New section.
17798         (V850 Variable Attributes): New section.
17799
17800 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17801
17802         PR 1078
17803         * doc/extend.texi (MicroBlaze Function Attributes): Document
17804         interrupt_handler and fast_interrupt attributes.
17805
17806 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
17807
17808         PR other/60465
17809         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
17810         for local symbolic operands.
17811         * config/ia64/predicates.md (local_symbolic_operand64): New
17812         predicate.
17813
17814 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17815
17816         PR rtl-optimization/68651
17817         * combine.c (combine_simplify_rtx): Canonicalize x + x into
17818         x << 1.
17819
17820 2016-01-05  Nathan Sidwell  <nathan@acm.org>
17821
17822         * alias.c (compare_base_decls): Use symtab_node::get.
17823
17824 2016-01-05  Nick Clifton  <nickc@redhat.com>
17825
17826         PR target/68770
17827         * ira-costs.c (copy_cost): Initialise the t_icode field of the
17828         secondary_reload_info structure.
17829
17830         PR target/66655
17831         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
17832         decls if weak support is available.
17833
17834 2016-01-04  Martin Sebor  <msebor@redhat.com>
17835
17836         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
17837
17838 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
17839
17840         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17841         OPTION_MASK_P9_DFORM.
17842
17843         * config/rs6000/constraints.md (wo constraint): New constraint for
17844         ISA 3.0 (power9).
17845
17846         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
17847         for wo constraint.
17848         (rs6000_init_hard_regno_mode_ok): Likewise.
17849
17850         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
17851         wo constraint.
17852
17853         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
17854         expanders not to have constraints.  Add support for ISA 3.0 xxperm
17855         instruction.  Add support for fusing xxlor with xxperm.
17856         (altivec_vperm_<mode>_internal): Likewise.
17857         (altivec_vperm_v8hiv16qi): Likewise.
17858         (altivec_vperm_<mode>v16q): Likewise.
17859         (altivec_vperm_<mode>_uns): Likewise.
17860         (vperm_v8hiv4si): Likewise.
17861         (vperm_v16qiv8hi): Likewise.
17862
17863         * doc/md.texi (RS/6000 constraints): Document wo constraint.
17864
17865 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
17866
17867         Update copyright years.
17868
17869         * gcc.c (process_command): Update copyright notice dates.
17870         * gcov-dump.c (print_version): Ditto.
17871         * gcov.c (print_version): Ditto.
17872         * gcov-tool.c (print_version): Ditto.
17873         * gengtype.c (create_file): Ditto.
17874         * doc/cpp.texi: Bump @copying's copyright year.
17875         * doc/cppinternals.texi: Ditto.
17876         * doc/gcc.texi: Ditto.
17877         * doc/gccint.texi: Ditto.
17878         * doc/gcov.texi: Ditto.
17879         * doc/install.texi: Ditto.
17880         * doc/invoke.texi: Ditto.
17881
17882 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17883
17884         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
17885         modes larger than TImode as TImode if NEON is not enabled.
17886
17887 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17888
17889         PR target/69100
17890         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
17891         mode for %f0-%f31 only if TARGET_FPU.
17892
17893 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17894
17895         PR target/69072
17896         * config/sparc/sparc.c (scan_record_type): Take into account subfields
17897         to compute the PACKED_P predicate.
17898         (function_arg_record_value): Minor tweaks.
17899
17900 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17901
17902         * doc/install.texi (--with-multilib-list): Describe the meaning of the
17903         option for arm*-*-* targets.
17904
17905 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17906
17907         * doc/extend.texi (Common Function Attributes): Move docs for
17908         MSP430-specific attributes to....
17909         (MSP430 Function Attributes): ...here.  Delete the redundant
17910         entries and copy-edit the remaining text.
17911         (MSP430 Variable Attributes): Use uniform format for index
17912         entries and add a cross-reference to the corresponding function
17913         attribute docs.
17914
17915 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
17916
17917         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
17918         -finite-math typo.
17919         (x86 Options): Likewise.
17920
17921 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17922
17923         PR 1078
17924
17925         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
17926         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
17927         to corresponding attribute.
17928
17929 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17930
17931         * doc/extend.texi (Common Function Attributes) <noplt>: Move
17932         to correct alphabetization of table.  Copy-edit and correct
17933         markup.
17934         <stack_protect>: Likewise.
17935         <target_clones>: Likewise.
17936         <simd>: Likewise.
17937         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
17938         Correct punctuation.
17939         (Code Gen Options) <-fno-plt>: Copy-edit.
17940
17941 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17942
17943         PR target/68917
17944         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
17945         SI values.  Explicitly convert SI to DI and vice-versa.
17946
17947 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
17948
17949         PR tree-optimization/69070
17950         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
17951         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
17952
17953         PR sanitizer/69055
17954         * ubsan.c (ubsan_instrument_float_cast): Call
17955         initialize_sanitizer_builtins.
17956
17957         PR target/69015
17958         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
17959 \f
17960 Copyright (C) 2016 Free Software Foundation, Inc.
17961
17962 Copying and distribution of this file, with or without modification,
17963 are permitted in any medium without royalty provided the copyright
17964 notice and this notice are preserved.