tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
2
3         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
4         (derive_simple_iv_with_niters): New function.
5         (simple_iv): Rewrite using simple_iv_with_niters.
6         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8         function.
9         (number_of_iterations_exit): Rewrite using above function.
10         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
11         Decl.
12
13 2016-07-15  Richard Biener  <rguenther@suse.de>
14
15         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16         vec_construct cost.
17
18 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
19
20         PR tree-optimization/71872
21         * tree-data-ref.c (get_references_in_stmt): Ignore references
22         with is_gimple_constant get_base_address.
23
24 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25
26         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
27         (TARGET_HAVE_LDACQD): New macro.
28         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
29         than TARGET_HAVE_LDACQ.
30         (arm_load_acquire_exclusivedi): Likewise.
31         (arm_store_release_exclusivedi): Likewise.
32
33 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34
35         PR rtl-optimization/71878
36         * lra-constraints.c (match_reload): Pass information about other
37         output operands.  Create new unique register value if matching input
38         operand shares same register value as output operand being considered.
39         (curr_insn_transform): Record output operands already processed.
40
41 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42
43         PR target/65951
44         PR tree-optimization/70923
45         * tree-vect-patterns.c: Include mult-synthesis.h.
46         (target_supports_mult_synth_alg): New function.
47         (synth_lshift_by_additions): Likewise.
48         (apply_binop_and_append_stmt): Likewise.
49         (vect_synth_mult_by_constant): Likewise.
50         (target_has_vecop_for_code): Likewise.
51         (vect_recog_mult_pattern): Use above functions to synthesize vector
52         multiplication by integer constants.
53
54 2016-07-14  Alan Modra  <amodra@gmail.com>
55
56         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
57         gpr alternatives.  Correct '*' placement on Y,r alternative.
58         Add '*' on operand 1 of r,r alternative.
59
60 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
61
62         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
63         * expmed.h: ... Here.
64
65 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
66
67         * gimple.h (stmt_can_terminate_bb_p): New function.
68         * tree-cfg.c (need_fake_edge_p): Rename to ...
69         (stmt_can_terminate_bb_p): ... this; return true if stmt can
70         throw external; handle const and pure calls.
71         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
72
73 2016-07-14  Richard Biener  <rguenther@suse.de>
74
75         PR tree-optimization/71866
76         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
77         (do_hoist_insertion): Avoid endless recursion when we
78         didn't insert anything because we managed to simplify
79         things down to a constant or SSA name.
80         (fully_constant_expression): Re-write in terms of ...
81         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
82         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
83         vn_nary_build_or_lookup_1.
84         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
85         (vn_nary_build_or_lookup): ... this which now wraps it.
86
87 2016-07-14  Alan Modra  <amodra@gmail.com>
88
89         PR target/71733
90         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
91         with p9_vector override before power9-dform override.
92
93 2016-07-13  Andi Kleen  <ak@linux.intel.com>
94
95         * value-prof.c (gimple_value_profile_transformations): Don't run
96         when auto_profile is on.
97
98 2016-07-13  Andi Kleen  <ak@linux.intel.com>
99
100         * auto-profile.c (update_inlined_ind_target,
101         afdo_indirect_call): Print information to dump file.
102
103 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
104
105         * genrecog.c (special_predicate_operand_p): New function.
106         (predicate_name): Move function.
107         (validate_pattern): Don't warn about missing mode for all
108         define_special_predicate predicates.
109
110 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
111
112         * tree-vect-data-refs.c (vect_no_alias_p): New function.
113         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
114         resolve alias checks which are known at compilation time.
115         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
116         alias checks are resolved.  Move dump info for too many runtime
117         alias checks to here...
118         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
119
120 2016-07-13  Richard Biener  <rguenther@suse.de>
121
122         PR tree-optimization/24574
123         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
124         position and add shift, rotate, divison and modulo support
125         for left zero.
126         (value_replacement): Pass in argument position to absorbing_element_p.
127
128 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
129
130         PR ipa/71633
131         * ipa-inline-transform.c (inline_call): Support
132         instrumented thunks.
133
134 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
135
136         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
137         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
138         divide feature.
139         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
140         Baseline.  Make initial alternative TARGET_32BIT only.
141         (udivsi3): Likewise.
142         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
143         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
144         target.
145
146 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
147
148         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
149         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
150         availability with TARGET_HAVE_MOVT.
151         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
152         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
153         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
154         UINTVAL.
155         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
156         extra instruction if MOVW is available.  Use a cost variable
157         incremented by COSTS_N_INSNS (1) when the condition match rather than
158         returning an arithmetic expression based on COSTS_N_INSNS.  Make
159         constant with bottom half word zero cost 2 instruction if MOVW is
160         available.
161         * config/arm/arm.md (define_attr "arch"): Add v8mb.
162         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
163         target is ARMv8-M Baseline.
164         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
165         (arm_movtas_ze): Likewise.
166         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
167         alternative for constants satisfying j constraint.
168         (thumb1_movsi_insn): Likewise.
169         (movsi splitter for K alternative): Tighten condition to not trigger
170         if movt is available and j constraint is satisfied.
171         (Pe immediate splitter): Likewise.
172         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
173         constant fitting in an halfword to use MOVW.
174         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
175         effective target.
176
177 2016-07-13  Richard Biener  <rguenther@suse.de>
178
179         PR middle-end/71104
180         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
181         gimplifying the LHS.  Make sure to gimplify a returning twice
182         call LHS without using SSA names.
183
184 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
185
186         * tree-data-ref.c (find_data_references_in_stmt): Remove
187         unnecessary call to vec::release.
188         (graphite_find_data_references_in_stmt): Likewise.
189         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
190         * tree-vect-stmts.c (vectorizable_condition): Likewise.
191
192 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
193
194         * cfgexpand.c (expand_used_vars): Make the type of a local variable auto_vec.
195         * genmatch.c (lower_for): Likewise.
196         * haifa-sched.c (haifa_sched_init): Likewise.
197         (add_to_speculative_block): Likewise.
198         (create_check_block_twin): Likewise.
199         * predict.c (handle_missing_profiles): Likewise.
200         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
201         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
202         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
203         (maybe_lower_iteration_bound): Likewise.
204         * tree-ssa-sccvn.c (DFS): Likewise.
205         * tree-stdarg.c (reachable_at_most_once): Likewise.
206         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
207         (vectorizable_store): Likewise.
208
209 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
210
211         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
212         (sccvn_dom_walker): make cond_stack an auto_vec.
213
214 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
215
216         * ree.c (struct ext_state): Make type of members auto_vec.
217         (find_and_remove_re): Adjust.
218
219 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
220
221         * cfgexpand.c (struct stack_vars_data): Make type of fields
222         auto_vec.
223         (expand_used_vars): Adjust.
224
225 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
226
227         * ipa.c (record_cdtor_fn): Adjust.
228         (build_cdtor_fns): Likewise.
229         (ipa_cdtor_merge): Make static_ctors and static_dtors local
230         variables.
231
232 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
233
234         * genextract.c (struct accum_extract): Add constructor and make
235         members auto_vec.
236         (gen_insn): Adjust.
237
238 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
239
240         * tree.c (struct free_lang_data_d): Add constructor and change
241         types of members to ones that automatically manage resources.
242         (fld_worklist_push): Adjust.
243         (find_decls_types): Likewise.
244         (find_decls_types_in_eh_region): Likewise.
245         (free_lang_data_in_cgraph): Stop manually creating and
246         destroying members of free_lang_data_d.
247
248 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
249
250         PR rtl-optimization/68961
251         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
252         peephole variant.  Use sse_reg_operand predicates.
253
254 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
255
256         * config/i386/predicates.md (x86_64_immediate_operand)
257         <case CONST_INT>: Remove unneeded truncation to DImode.
258         <case CONST>: Ditto.
259         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
260
261 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
262
263         PR target/71805
264         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
265         The xxperm and xxpermr instructions require that the 2nd input
266         operand overlap with the output operand, and not the 1st.
267         (altivec_vperm_v8hiv16qi): Likewise.
268         (altivec_vperm_<mode>_uns_internal): Likewise.
269         (altivec_vpermr_<mode>_internal): Likewise.
270         (vperm_v8hiv4si): Likewise.
271         (vperm_v16qiv8hi): Likewise.
272
273 2016-07-12  Martin Liska  <mliska@suse.cz>
274
275         * params.def: Add avg-loop niter.
276         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
277         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
278         * doc/invoke.texi: Document the new parameter.
279
280 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
281
282         PR middle-end/71700
283         * expr.c (store_constructor): Mask sign-extended bits when widening
284         sub-word constructor element at the start of a word.
285
286 2016-07-12  Martin Liska  <mliska@suse.cz>
287
288         * Makefile.in: Append rule for params-options.h.
289         * params-options.h: New file.
290
291 2016-07-12  Martin Liska  <mliska@suse.cz>
292
293         * ira-build.c (mark_loops_for_removal): Properly iterate
294         loops.
295
296 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
297             Richard Biener  <rguenther@suse.de>
298
299         PR tree-optimization/23286
300         PR tree-optimization/70159
301         * doc/invoke.texi: Document -fcode-hoisting.
302         * common.opt (fcode-hoisting): New flag.
303         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
304         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
305         (do_regular_insertion): Rename to ...
306         (do_pre_regular_insertion): ... this and amend general comments
307         on insertion strathegy.
308         (do_partial_partial_insertion): Rename to ...
309         (do_pre_partial_partial_insertion): ... this.
310         (do_hoist_insertion): New function.
311         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
312         and call do_hoist_insertion properly.
313         (insert): Adjust.
314         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
315         (pass_pre::execute): Register hoist_insert stats.
316
317 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
318
319         PR middle-end/71716
320         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
321         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
322         is different from mode's bitsize.  Small cleanup.
323
324 2016-07-12  Richard Biener  <rguenther@suse.de>
325
326         PR rtl-optimization/68961
327         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
328         to simplify to a non-constant.
329
330 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
331
332         PR middle-end/71758
333         * omp-low.c (expand_omp_target): Gimplify device.
334
335         PR tree-optimization/71823
336         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
337         to get vec_oprnds2 from op2.
338
339 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
340
341         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
342         Hoist common subexpressions.
343         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
344
345 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
346
347         PR target/71800
348         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
349         prevent generation of 'stxsiwx' on pre Power8 hardware.
350
351 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
352
353         * input.c: Include cpplib.h.
354         (selftest::temp_source_file): New class.
355         (selftest::temp_source_file::temp_source_file): New ctor.
356         (selftest::temp_source_file::~temp_source_file): New dtor.
357         (selftest::should_have_column_data_p): New function.
358         (selftest::test_should_have_column_data_p): New function.
359         (selftest::temp_line_table): New class.
360         (selftest::temp_line_table::temp_line_table): New ctor.
361         (selftest::temp_line_table::~temp_line_table): New dtor.
362         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
363         it to create a temp_line_table.
364         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
365         locations that are known to have column data.
366         (selftest::line_table_case): New struct.
367         (selftest::test_reading_source_line): Move tempfile handling
368         to class temp_source_file.
369         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
370         (selftest::assert_token_loc_eq): New function.
371         (ASSERT_TOKEN_LOC_EQ): New macro.
372         (selftest::test_lexer): New function.
373         (selftest::boundary_locations): New array.
374         (selftest::input_c_tests): Call test_should_have_column_data_p.
375         Loop over a test matrix of interesting values of location and
376         default_range_bits, calling test_lexer on each case in the matrix.
377         Move call to test_accessing_ordinary_linemaps into the matrix.
378         * selftest.h (ASSERT_EQ): Reimplement in terms of...
379         (ASSERT_EQ_AT): New macro.
380
381 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
382
383         PR target/71801
384         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
385         Don't convert TImode in debug insn.
386
387 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
388
389         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
390         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
391         (tree_type_common::lang_flag_7): New.
392         (tree_type_common::spare): Reduce size.
393         * tree.h (TYPE_ALIGN_OK): Remove.
394         (TYPE_LANG_FLAG_7): New.
395         (get_inner_reference): Adjust header.
396         * print-tree.c (print_node): Adjust.
397         * expr.c (get_inner_reference): Remove parameter keep_aligning.
398         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
399         calls to get_inner_reference.
400         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
401         handling of TYPE_ALIGN_OK.
402         * builtins.c (get_object_alignment_2): Adjust call to
403         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
404         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
405         TYPE_ALIGN_OK.
406         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
407         * cfgexpand.c (expand_debug_expr): Likewise.
408         * dbxout.c (dbxout_expand_expr): Likewise.
409         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
410         loc_list_from_tree, fortran_common): Likewise.
411         * fold-const.c (optimize_bit_field_compare,
412         decode_field_reference, fold_unary_loc, fold_comparison,
413         split_address_to_core_and_offset): Likewise.
414         * gimple-laddress.c (execute): Likewise.
415         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
416         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
417         * hsa-gen.c (gen_hsa_addr): Likewise.
418         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
419         * tsan.c (instrument_expr): Likewise.
420         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
421         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
422         * tree-affine.c (tree_to_aff_combination,
423         get_inner_reference_aff): Adjust calls to get_inner_reference.
424         * tree-data-ref.c (split_constant_offset_1,
425         dr_analyze_innermost): Likewise.
426         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
427         * tree-sra.c (ipa_sra_check_caller): Likewise.
428         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
429         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
430         bswap_replace): Likewise.
431         * tree-vect-data-refs.c (vect_check_gather,
432         vect_analyze_data_refs): Likewise.
433         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
434         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
435         TYPE_ALIGN_OK.
436
437 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
438
439         * Makefile.in (selftest-valgrind): New phony target.
440         * function-tests.c (selftest::build_cfg): Delete pass instances
441         created by the test.
442         (selftest::convert_to_ssa): Likewise.
443         (selftest::test_expansion_to_rtl): Likewise.
444         * tree-cfg.c (selftest::test_linear_chain): Release dominator
445         vectors.
446         (selftest::test_diamond): Likewise.
447
448 2016-07-11  Richard Biener  <rguenther@suse.de>
449
450         PR tree-optimization/71816
451         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
452         than replacing all of its operands.
453
454 2016-07-11  Alan Modra  <amodra@gmail.com>
455
456         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
457         (ctr<mode>): Add unspec.
458         (ctr<mode>_internal*): Likewise.
459
460 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
461
462         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
463         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
464
465 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
466
467         PR rtl-optimization/71621
468         * lra-constraints.c (process_alt_operands): Check combination of
469         reg class and mode.
470
471 2016-07-08  Jason Merrill  <jason@redhat.com>
472             Richard Biener  <rguenther@suse.de>
473
474         P0145: Refining Expression Order for C++.
475         * gimplify.c (initial_rhs_predicate_for): New.
476         (gimplfy_modify_expr): Gimplify RHS before LHS.
477
478 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
479
480         PR target/71297
481         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
482         Allow standard error handling to take over when a wrong number
483         of arguments is presented to __builtin_vec_ld () or
484         __builtin_vec_st ().
485
486 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
487
488         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
489         variants.
490         (smin): Likewise.
491         (fmax): New entry.
492         (fmin): Likewise.
493         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
494         __builtin_aarch64_fmaxv2sf.
495         (vmaxnmq_f32): Likewise.
496         (vmaxnmq_f64): Likewise.
497         (vminnm_f32): Likewise.
498         (vminnmq_f32): Likewise.
499         (vminnmq_f64): Likewise.
500
501 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
502
503         PR target/71806
504         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
505         enable -mfloat128-hardware by default.
506         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
507         that IEEE 128-bit hardware support needs.
508         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
509         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
510         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
511         floating point requires.
512         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
513         -mfloat128 and -mfloat128-hardware changes.
514
515 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
516
517         PR tree-optimization/71667
518         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
519
520 2016-07-08  Martin Liska  <mliska@suse.cz>
521
522         PR middle-end/71606
523         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
524         folding produces SAVE_EXPRs, thus return false for the type.
525
526 2016-07-07  Martin Liska  <mliska@suse.cz>
527
528         * file-find.c (remove_prefix): New function.
529         * file-find.h (remove_prefix): Declare the function.
530         * gcc-ar.c (main): Skip a folder of the wrapper if
531         a wrapped binary would point to the same file.
532
533 2016-07-07  Jan Hubicka  <jh@suse.cz>
534
535         * tree-scalar-evolution.c (iv_can_overflow_p): export.
536         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
537         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
538
539 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
540
541         PR ipa/71624
542         * ipa-inline-analysis.c (compute_inline_parameters): Set
543         local.can_change_signature to false for intrumentation
544         thunk callees.
545
546 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
547
548         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
549         with TARGET_HAVE_MOVT.
550         (TARGET_HAVE_MOVT): Define.
551         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
552         availability with TARGET_HAVE_MOVT.
553         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
554         availability.
555         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
556         TARGET_THUMB2.
557         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
558         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
559         * config/arm/constraints.md (define_constraint "j"): Use
560         TARGET_HAVE_MOVT to check MOVT availability.
561
562 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
563
564         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
565
566 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
567
568         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
569         (armv8-m.main): Likewise.
570         (armv8-m.main+dsp): Likewise.
571         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
572         (FL_FOR_ARCH8M_MAIN): Likewise.
573         * config/arm/arm-tables.opt: Regenerate.
574         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
575         armv8-m.main+dsp to BE8_LINK_SPEC.
576         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
577         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
578         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
579         Baseline and Mainline.
580         (arm_option_override_internal): Also disable arm_restrict_it when
581         !arm_arch_notm.  Update comment for -munaligned-access to also cover
582         ARMv8-M Baseline.
583         (arm_file_start): Increase buffer size for printing architecture name.
584         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
585         and armv8-m.main+dsp.
586         (mno-unaligned-access): Clarify that this is disabled by default for
587         ARMv8-M Baseline architectures as well.
588
589 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
590
591         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
592         decide whether to prevent some libgcc routines being included for some
593         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
594         link between this condition and the one in
595         libgcc/config/arm/lib1func.S.
596
597 2016-07-07  Richard Biener  <rguenther@suse.de>
598
599         * tree-ssa-pre.c: Include alias.h.
600         (compute_avail): If we have multiple VN_REFERENCEs with the
601         same hashtable entry adjust that to make it a valid replacement
602         for all of them with respect to alignment and aliasing
603         when doing insertion.
604         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
605         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
606
607 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
608
609         PR target/70098
610         PR target/71763
611         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
612         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
613         constraint.
614
615 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
616
617         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
618         (adjust_mems): Adjust.
619         (adjust_insn): Likewise.
620         (prepare_call_arguments): Likewise.
621
622 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
623
624         * gcse.c (struct ls_expr): Make stores field a vector.
625         (ldst_entry): Adjust.
626         (free_ldst_entry): Likewise.
627         (print_ldst_list): Likewise.
628         (compute_ld_motion_mems): Likewise.
629         (update_ld_motion_stores): Likewise.
630
631 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
632
633         * gcse.c (struct ls_expr): Remove loads field.
634         (ldst_entry): Adjust.
635         (free_ldst_entry): Likewise.
636         (print_ldst_list): Likewise.
637         (compute_ld_motion_mems): Likewise.
638
639 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
640
641         * store-motion.c (struct st_expr): Make antic_stores a vector.
642         (st_expr_entry): Adjust.
643         (free_st_expr_entry): Likewise.
644         (print_store_motion_mems): Likewise.
645         (find_moveable_store): Likewise.
646         (compute_store_table): Likewise.
647         (remove_reachable_equiv_notes): Likewise.
648         (replace_store_insn): Likewise.
649         (build_store_vectors): Likewise.
650
651 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
652
653         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
654         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
655
656 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
657
658         PR tree-optimization/71518
659         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
660         misalign also for outer loops with negative step.
661
662 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
663
664         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
665         (cortex_a53_shift): Add mov_shift.
666         (cortex_a53_shift_reg): Add new reservation for register shifts.
667         (cortex_a53_alu): Remove bfm.
668         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
669         (cortex_a53_alu_extr): Add new reservation for EXTR.
670         (bypasses): Improve bypass modelling.
671
672 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
673
674         PR target/50739
675         * config/avr/avr.c (avr_asm_select_section): Strip off
676         SECTION_DECLARED from flags when calling get_section.
677
678 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
679
680         * tree-vectorizer.h (vect_memory_access_type): Add
681         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
682         * tree-vect-stmts.c (compare_step_with_zero): New function.
683         (perm_mask_for_reverse): Move further up file.
684         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
685         step is negative.
686         (get_negative_load_store_type): New function.
687         (get_load_store_type): Call it.  Add an ncopies argument.
688         (vectorizable_mask_load_store): Update call accordingly and
689         remove tests for negative steps.
690         (vectorizable_store, vectorizable_load): Likewise.  Handle new
691         memory_access_types.
692
693 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
694
695         * tree-vectorizer.h (vect_memory_access_type): New enum.
696         (_stmt_vec_info): Add a memory_access_type field.
697         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
698         (vect_model_store_cost): Take an access type instead of a boolean.
699         (vect_model_load_cost): Likewise.
700         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
701         vect_model_store_cost and vect_model_load_cost.
702         * tree-vect-stmts.c (vec_load_store_type): New enum.
703         (vect_model_store_cost): Take an access type instead of a
704         store_lanes_p boolean.  Simplify tests.
705         (vect_model_load_cost): Likewise, but for load_lanes_p.
706         (get_group_load_store_type, get_load_store_type): New functions.
707         (vectorizable_store): Use get_load_store_type.  Record the access
708         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
709         (vectorizable_load): Likewise.
710         (vectorizable_mask_load_store): Likewise.  Replace is_store
711         variable with vls_type.
712
713 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
714
715         * tree-vectorizer.h (vect_grouped_load_supported): Add a
716         single_element_p parameter.
717         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
718         Check the PR65518 case here rather than in vectorizable_load.
719         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
720         * tree-vect-stmts.c (vectorizable_load): Likewise.
721
722 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
723
724         * tree-vectorizer.h (gather_scatter_info): New structure.
725         (vect_check_gather_scatter): Return a bool rather than a decl.
726         Replace return-by-pointer arguments with a single
727         gather_scatter_info *.
728         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
729         (vect_analyze_data_refs): Update call accordingly.
730         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
731         (vectorizable_mask_load_store): Likewise.  Also record the
732         offset dt and vectype in the gather_scatter_info.
733         (vectorizable_store): Likewise.
734         (vectorizable_load): Likewise.
735
736 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
737
738         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
739         strided groups, use the cost of N scalar accesses instead
740         of ncopies vector accesses.
741         (vect_model_load_cost): Likewise.
742
743 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
744
745         * tree-vect-stmts.c (vect_cost_group_size): Delete.
746         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
747         variable to indicate when once-per-group costs are being used.
748         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
749
750 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
751
752         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
753         peeling-for-gaps condition.
754
755 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
756
757         * config/s390/s390.c (s390_expand_vec_init): Force initializer
758         element to register if it doesn't match general_operand.
759
760 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
761             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
762
763         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
764         prototype.
765         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
766         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
767         (SIGNBIT): New mode iterator.
768         (Fsignbit): New mode attribute.
769         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
770         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
771         when direct moves are available.
772         (signbit<mode>2_dm): New define_insn_and_split).
773         (signbit<mode>2_dm2): New define_insn.
774
775 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
776
777         PR rtl-optimization/71594
778         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
779         into subregs of appropriate mode before trying to emit a conditional
780         move.
781
782 2016-07-05  Jan Hubicka  <jh@suse.cz>
783
784         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
785         (simple_iv): Use it.
786
787 2016-07-05  Jan Hubicka  <jh@suse.cz>
788
789         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
790
791 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
792
793         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
794         "offmemok".
795
796 2016-07-05  Jan Hubicka  <jh@suse.cz>
797
798         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
799         IV can overflow.
800
801 2016-07-05  Richard Biener  <rguenther@suse.de>
802
803         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
804         Handle empty else block.
805         (is_feasible_trace): Likewise.
806         (split_paths): Likewise.
807
808 2016-07-05  Richard Biener  <rguenther@suse.de>
809
810         * tree-loop-distribution.c (distribute_loop): Fix issue with
811         the cost model loop.
812
813 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
814
815         * config/arm/neon-testgen.ml: Delete.
816         * config/arm/neon.ml: Delete.
817
818 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
819
820         PR c++/71739
821         * tree.c (attribute_value_equal): Use get_attribute_name instead of
822         directly using TREE_PURPOSE.
823
824 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
825
826         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
827         * config/aarch64/aarch64_neon.h: Likewise.
828         * config/aarch64/arm_neon.h: Likewise.
829         * config/aarch64/atomics.md: Likewise.
830         * config/aarch64/aarch64-simd-builtins.def: Likewise.
831         * doc/invoke.texi: Likewise.
832
833 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
834
835         * config/s390/s390.md: Add "z13" cpu_facility.
836         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
837         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
838         condition" type instructions.
839
840 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
841             Jeff Law  <law@redhat.com>
842
843         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
844         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
845
846 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
847
848         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
849         permutation for TARGET_AVX512F.
850         (ix86_expand_vec_one_operand_perm_avx512): New function.
851         (expand_vec_perm_1): Invoke introduced function.
852         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
853         it may be not valid after vectorization.
854
855 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
856
857         PR target/63874
858         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
859         typo in comment.  Only force to memory if it is a weak
860         external reference.
861
862 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
863             Jiong Wang  <jiong.wang@arm.com>
864
865         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
866         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
867         (AARCH64_FL_F16): New.
868         (AARCH64_FL_FOR_ARCH8_2): New.
869         (AARCH64_ISA_8_2): New.
870         (AARCH64_ISA_F16): New.
871         (TARGET_FP_F16INST): New.
872         (TARGET_SIMD_F16INST): New.
873         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
874         ("fp"): Disabling "fp" also disables "fp16".
875         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
876         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
877         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
878         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
879
880 2016-07-04  Jan Beulich  <jbeulich@suse.com>
881
882         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
883
884 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
885
886         PR target/71720
887         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
888         the insns, use an insn form that does not adjust the offset on
889         little endian systems.
890
891 2016-07-01  Jan Beulich  <jbeulich@suse.com>
892
893         * varasm.c (get_variable_section): Validate initializer in
894         named .bss-like sections.
895
896 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
897
898         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
899         Exchange the order of the second and third operands in the vpermr
900         instruction tmeplate.
901
902 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
903
904         PR target/71698
905         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
906         Disallow TDmode values.
907
908 2016-07-01  Alan Modra  <amodra@gmail.com>
909
910         PR rtl-optimization/71709
911         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
912         being set, not referenced.
913
914 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
915
916         PR tree-optimization/70729
917         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
918         of loop since it can be not valid after transformation.
919
920 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
921
922         * config/arm/arm.c (thumb_reload_in_hi): Delete.
923         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
924
925 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
926
927         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
928         for NULL decl.
929
930 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
931
932         PR target/71677
933         * config/rs6000/constraints.md (wY constraint): New constraint to
934         match the requirements for the LXSD and STXSD instructions.
935         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
936         predicate to match the requirements for the LXSD and STXSD
937         instructions.
938         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
939         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
940         to make sure that the bottom 2 bits of offset are 0, the address
941         form is offsettable, and no updating is done in the address mode.
942         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
943         (movdi_internal32): Likewise
944         (movdi_internal64): Likewise.
945
946 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
947
948         PR tree-optimization/71707
949         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
950         strinfo even for ADDR_EXPR ptr.
951
952 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
953
954         * config/rs6000/altivec.md (darn_32): Change the condition to
955         TARGET_P9_MISC instead of TARGET_MODULO.
956         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
957         condition expression.
958         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
959         condition expression.
960         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
961         (DFP_TEST): New code iterator.
962         (dfptstsfi_<code>_mode>): New define_expand.
963         (*dfp_sgnfcnc_<mode>): New define_insn.
964         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
965         definition next to BU_P9_MISC_1 definition and change the MASK
966         value to RS6000_BTM_P9_MISC.
967         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
968         (BU_P9_64BIT_MISC_0): Likewise.
969         (BU_P9_DFP_MISC_0): New macro definition.
970         (BU_P9_DFP_MISC_1): New macro definition.
971         (BU_P9_DFP_MISC_2): New macro definition.
972         (BU_P9_DFP_OVERLOAD_1): New macro definition.
973         (BU_P9_DFP_OVERLOAD_2): New macro definition.
974         (BU_P9_DFP_OVERLOAD_3): New macro definition.
975         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
976         (TSTSFI_LT_TD): Likewise.
977         (TSTSFI_EQ_DD): Likewise.
978         (TSTSFI_EQ_TD): Likewise.
979         (TSTSFI_GT_DD): Likewise.
980         (TSTSFI_GT_TD): Likewise.
981         (TSTSFI_OV_DD): Likewise.
982         (TSTSFI_OV_TD): Likewise.
983         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
984         (TSTSFI_LT_DD): Likewise.
985         (TSTSFI_LT_TD): Likewise.
986         (TSTSFI_EQ): Likewise.
987         (TSTSFI_EQ_DD): Likewise.
988         (TSTSFI_EQ_TD): Likewise.
989         (TSTSFI_GT): Likewise.
990         (TSTSFI_GT_DD): Likewise.
991         (TSTSFI_GT_TD): Likewise.
992         (TSTSFI_OV): Likewise.
993         (TSTSFI_OV_DD): Likewise.
994         (TSTSFI_OV_TD): Likewise.
995         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
996         overloaded test significance functions.
997         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
998         OPTION_MASK_P9_MISC into the representation of this mask.
999         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
1000         of this mask.
1001         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
1002         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
1003         non-zero.
1004         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
1005         argument is a 6-bit unsigned literal value if the icode argument
1006         represents a DFP test significance built-in call.
1007         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
1008         flag used independently and in combination with the
1009         RS6000_BTM_64BIT flag.
1010         (rs6000_opt_masks): Add entry for power9-misc command-line option.
1011         (rs6000_builtin_mask_names): Add entry for power9-misc
1012         command-line option.
1013         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
1014         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
1015         RS6000_BTM_P9_MISC macros.
1016         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
1017         option and change the description of the -mpower9-vector option to
1018         enable only vector instructions, removing its erroneously claimed
1019         support for scalar instructions.
1020         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1021         the ISA 3.0 digital floating point test significance built-in
1022         functions.
1023
1024 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
1025
1026         * config/aarch64/aarch64.c (cortexa35_tunings):
1027         Enable AES fusion.  Use cortexa57_branch_cost.
1028         (cortexa53_tunings): Use cortexa57_branch_cost.
1029         (cortexa72_tunings): Use cortexa57_branch_cost.
1030         Use AUTOPREFETCHER_WEAK.
1031         (cortexa73_tunings): Use cortexa57_branch_cost.
1032
1033 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1034             James Greenhalgh  <james.greenhalgh@arm.com>
1035
1036         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
1037         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
1038         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
1039         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
1040         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
1041         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
1042         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
1043         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
1044         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
1045         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
1046         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
1047         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
1048         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
1049         New intrinsics.
1050
1051 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
1052             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1053
1054         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1055         New define_insn.
1056         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
1057
1058 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
1059
1060         PR driver/71651
1061         * gcc.c (driver::build_option_suggestions): Pass "option" to
1062         add_misspelling_candidates.
1063         * opts-common.c (add_misspelling_candidates): Add "option" param;
1064         use it to avoid adding negated forms for options marked with
1065         RejectNegative.
1066         * opts.h (add_misspelling_candidates): Add "option" param.
1067
1068 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1069
1070         PR middle-end/71693
1071         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1072         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1073         first when permuting bitwise operation with rotate.  Cast
1074         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1075
1076 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
1077
1078         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
1079         for misspelled param names.
1080         * params.c: Include spellcheck.h.
1081         (find_param_fuzzy): New function.
1082         * params.h (find_param_fuzzy): New prototype.
1083         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
1084         * spellcheck.h (struct edit_distance_traits<const char *>):
1085         ...here.
1086
1087 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1088
1089         * config/rs6000/predicates.md (const_0_to_7_operand): New
1090         predicate, recognize 0..7.
1091         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1092         support for doing extracts from V16QImode, V8HImode, V4SImode
1093         under ISA 3.0.
1094         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
1095         vector extract support.
1096         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
1097         for ISA 3.0 vector extract.
1098         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
1099         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
1100         extracts of a constant element number from small integer vectors
1101         on 64-bit ISA 3.0 systems.
1102         (vsx_extract_<mode>_di): Likewise.
1103         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
1104         say when we can do ISA 3.0 vector extracts.
1105         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
1106         registers, using the stxsiwx instruction.
1107
1108 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
1109
1110         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
1111         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
1112         qdf24xx_regmove_cost, qdf24xx_tunings): New.
1113         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
1114         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
1115         * config/arm/arm.c (arm_qdf24xx_tune): New.
1116
1117 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
1118
1119         * config/aarch64/aarch64.c (cortexa53_tunings):
1120         Increase loop alignment to 8.  Set function alignment to 16.
1121         (cortexa35_tunings): Likewise.
1122         (cortexa57_tunings): Increase loop alignment to 8.
1123         (cortexa72_tunings): Likewise.
1124         (cortexa73_tunings): Likewise.
1125
1126 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1127
1128         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
1129         for arm_fp16_ok and arm_fp16_hw.
1130         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
1131         arm_fp16_alternative.
1132
1133 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1134
1135         PR tree-optimization/71655
1136         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
1137         types when swapping operands.
1138
1139 2016-06-29  Martin Liska  <mliska@suse.cz>
1140
1141         PR middle-end/71585
1142         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
1143         * ipa-inline-transform.c (inline_call): Remove unnecessary call
1144         of build_optimization_node.
1145
1146 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1147
1148         PR tree-optimization/70729
1149         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1150         independent in loops having positive safelen value.
1151         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1152         it may be not valid after vectorization.
1153
1154 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1155
1156         PR tree-optimization/71625
1157         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
1158         is sorted by ascending list->offset.  If PTR is non-NULL and there is
1159         previous strinfo, call get_stridx_plus_constant.
1160         (get_stridx): Pass exp as second argument to get_addr_stridx.
1161         (addr_stridxptr): Add missing list = list->next, so that there can be
1162         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
1163         the list is sorted by ascending list->offset.
1164         (get_stridx_plus_constant): Adjust so that it can be also called with
1165         ADDR_EXPR instead of SSA_NAME as PTR.
1166         (handle_char_store): Pass NULL_TREE as second argument to
1167         get_addr_stridx.
1168
1169 2016-06-29  Richard Biener  <rguenther@suse.de>
1170
1171         PR rtl-optimization/68961
1172         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1173
1174 2016-06-29  Richard Biener  <rguenther@suse.de>
1175
1176         PR middle-end/71002
1177         * alias.c (component_uses_parent_alias_set_from): Handle
1178         type punning through union accesses by using the union alias set.
1179         * gimple.c (gimple_get_alias_set): Remove union type punning case.
1180
1181 2016-07-29  Richard Biener  <rguenther@suse.de>
1182
1183         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1184         precision not matching mode precision.
1185
1186 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
1187
1188         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1189         pa_output_arg_descriptor.
1190         (call_val_symref_64bit_post_reload): Likewise.
1191         (call_val_powf_64bit_post_reload): Likewise.
1192         (sibcall_internal_symref_64bit): Likewise.
1193         (sibcall_value_internal_symref_64bit): Likewise.
1194
1195 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1196
1197         PR middle-end/71626
1198         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1199         a constant, force its SUBREG_REG into memory or register instead
1200         of whole op1.
1201
1202 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1203
1204         PR target/58655
1205         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1206         * doc/invoke.texi (AVR Options): Document it.
1207
1208 2016-06-28  Walter Lee  <walt@tilera.com>
1209
1210         * config/tilegx/linux.h: Do not include arch/icache.h
1211         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1212         * config/tilepro/linux.h: Do not include arch/icache.h
1213         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1214
1215 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1216
1217         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1218         for big-endian BIT_FIELD_REF.
1219
1220 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
1221
1222         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1223         ('size' attribute): Add '128'.
1224         Include power9.md.
1225         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1226         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1227         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1228         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1229         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1230         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1231         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1232         *trunc<mode>df2_odd): Set size attribute to '128'.
1233         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1234         * config/rs6000/power6.md (power6-fp): Include dfp type.
1235         * config/rs6000/power7.md (power7-fp): Likewise.
1236         * config/rs6000/power8.md (power8-fp): Likewise.
1237         * config/rs6000/power9.md: New file.
1238         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1239         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1240         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1241         htmsimple.
1242         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1243         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1244         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1245         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1246         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1247         dfp_dscri_<mode>): Change type attribute to dfp.
1248         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1249         attribute to vecsimple.
1250         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1251         and prefetch streams.
1252         (rs6000_option_override_internal): Remove temporary code setting
1253         tuning to power8.  Don't set rs6000_sched_groups for power9.
1254         (last_scheduled_insn): Change to rtx_insn *.
1255         (divide_cnt, vec_load_pendulum): New variables.
1256         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
1257         (rs6000_issue_rate): Set issue rate for Power9.
1258         (is_power9_pairable_vec_type): New.
1259         (power9_sched_reorder2): New.
1260         (rs6000_sched_reorder2): Call new function for Power9 specific
1261         reordering.
1262         (insn_must_be_first_in_group): Remove Power9.
1263         (insn_must_be_last_in_group): Likewise.
1264         (force_new_group): Likewise.
1265         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
1266         Initialize divide_cnt/vec_load_pendulum.
1267         (_rs6000_sched_context, rs6000_init_sched_context,
1268         rs6000_set_sched_context): Handle context save/restore of new
1269         variables.
1270
1271 2016-06-28  Richard Biener  <rguenther@suse.de>
1272
1273         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1274         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
1275         COMPONENT_REF operand.
1276         (nonoverlapping_component_refs_p): Likewise.
1277         * stor-layout.c (start_bitfield_representative): Mark
1278         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
1279
1280 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1281
1282         * Makefile.in: Don't cat ../stage_current if it does not exist.
1283
1284         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
1285         last argument is a bit-field.
1286
1287         PR rtl-optimization/71673
1288         * internal-fn.c (expand_arith_overflow_result_store): Use
1289         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
1290         expand_simple_binop.
1291
1292         PR middle-end/66867
1293         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
1294         expand_ifn_atomic_compare_exchange): New functions.
1295         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1296         * tree.h (build_call_expr_internal_loc): Rename to ...
1297         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1298         last argument.
1299         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1300         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1301         ATOMIC_COMPARE_EXCHANGE result.
1302         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1303         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1304         fold_builtin_atomic_compare_exchange): New prototypes.
1305         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1306         fold_builtin_atomic_compare_exchange): New functions..
1307         * tree-ssa.c (execute_update_addresses_taken): If
1308         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1309         of call when finding addressable vars, and if such var becomes
1310         non-addressable, call fold_builtin_atomic_compare_exchange.
1311
1312 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1313
1314         PR target/71670
1315         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1316         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1317
1318 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1319
1320         * config/rs6000/rs6000.md ('type' attribute): Add
1321         veclogical,veccmpfx,vecexts,vecmove insn types.
1322         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1323         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1324         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1325         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1326         *nabs<mode>2_hw): Change type to vecmove.
1327         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1328         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1329         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1330         *ieee_128bit_vsx_abs<mode>2_internal,
1331         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1332         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1333         *ieee128_mtvsrd_32bit): Change type to veclogical.
1334         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1335         *movdi_internal32, *movdi_internal64): Update insn types.
1336         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1337         vsx_extract_<mode>): Change type to veclogical.
1338         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1339         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1340         *vsx_sign_extend_si_v2di): Change type to vecexts.
1341         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1342         type to veclogical.
1343         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1344         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1345         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1346         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1347         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1348         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1349         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1350         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1351         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1352         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1353         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1354         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1355         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1356         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1357         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1358         (ppc7450-vecsimple): Add veclogical, vecmove.
1359         (ppc7450-veccmp): Add veccmpfx.
1360         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1361         vecmove.
1362         (ppc8540_vector_compare): Add veccmpfx.
1363         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1364         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1365         (cell-vecsimple): Add veclogical, vecmove.
1366         (cell-veccmp): Add veccmpfx.
1367         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1368         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1369         veccmpfx.
1370         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1371         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1372         (power4-vecsimple): Add veclogical, vecmove.
1373         (power4-veccmp): Add veccmpfx.
1374         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1375         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1376         (power6-vecsimple): Add veclogical, vecmove.
1377         (power6-veccmp): Add veccmpfx.
1378         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1379         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1380         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1381         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1382         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1383         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1384         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1385         fpsimple.
1386         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1387
1388 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1389
1390         PR target/71656
1391         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1392         OPTION_MASK_P9_DFORM_VECTOR.
1393         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1394         disable -mpower9-dform-vector when using reload.
1395         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1396         New 'strict' argument.  Update all callers.  Add strict addressing
1397         support.
1398         (rs6000_legitimate_offset_address_p): Remove call to
1399         virtual_stack_registers_memory_p.
1400         (rs6000_legitimize_reload_address): Add quad address support.
1401         (rs6000_legitimate_address_p): Move call to quad_address_p above
1402         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1403         to account for new strict usage.
1404         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1405         for new strict usage.
1406         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1407
1408 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1409
1410         PR target/70902
1411         PR target/71453
1412         PR target/71555
1413         PR target/71596
1414         PR target/71657
1415         * config/i386/i386.c (ix86_spill_class): Disable condition to
1416         always return NO_REGS.
1417
1418 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1419
1420         * predict.c: Include gimple-pretty-print.h
1421         (predicted_by_loop_heuristics_p): Check also
1422         PRED_LOOP_EXIT_WITH_RECURSION
1423         (predict_loops): Find self recursive calls and use special purpose
1424         predictors for them; dump log about decisions.
1425         (pass_profile::execute): Dump info about #of iterations.
1426         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1427         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1428
1429 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1430
1431         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1432         output_asm_insn calls and shorten long lines.  Output .CALL
1433         argument descriptor using pa_output_arg_descriptor.  Add various
1434         inline $$dyncall and other optimizations.
1435         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1436
1437 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
1438
1439         PR tree-optimization/71643
1440         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
1441         EH preds.
1442
1443         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
1444         leak a bitmap if dep_bb is NULL.
1445
1446         PR tree-optimization/71631
1447         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
1448         to rewrite_expr_tree even if negate_result, move new_lhs var
1449         declaration and initialization earlier, for powi_result set afterwards
1450         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
1451         if new_lhs != lhs, and don't shadow gsi var.
1452
1453 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1454
1455         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
1456         Add in_loop parameter.
1457         (predict_loops): Add loop guard heuristics.
1458         * predict.def (PRED_LOOP_GUARD): New heuristics.
1459
1460 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1461
1462         * predict.c: Include ipa-utils.h
1463         (tree_bb_level_prediction): Predict recursive calls.
1464         (tree_estimate_probability_bb): Skip inexpensive calls for call
1465         predictor.
1466         * predict.def (PRED_RECURSIVE_CALL): New.
1467
1468 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1469
1470         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
1471         (BU_FLOAT128_1): Likewise.
1472         (FABSQ): Likewise.
1473         (COPYSIGNQ): Likewise.
1474         (RS6000_BUILTIN_NANQ): Likewise.
1475         (RS6000_BUILTIN_NANSQ): Likewise.
1476         (RS6000_BUILTIN_INFQ): Likewise.
1477         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
1478         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
1479         (TARGET_FOLD_BUILTIN): New #define.
1480         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
1481         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
1482         (rs6000_fold_builtin): New target hook implementation, handling
1483         folding of 128-bit NaNs and infinities.
1484         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
1485         entries are filled in to avoid problems during bootstrap
1486         self-test; define builtins for 128-bit NaNs and infinities.
1487         (rs6000_opt_mask): Add entry for float128.
1488         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
1489         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
1490         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
1491         (const_str_type_node): New #define.
1492         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
1493         to a define_expand that dispatches to either copysign<mode>3_soft
1494         or copysign<mode>3_hard.
1495         (copysign<mode>3_hard): Rename from copysign<mode>3.
1496         (copysign<mode>3_soft): New define_insn.
1497         * doc/extend.texi: Document new builtins.
1498
1499 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1500
1501         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
1502         PRIu64 instead of lu.
1503
1504 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1505
1506         PR debug/71642
1507         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
1508         copy the type name.
1509
1510 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1511
1512         PR tree-optimization/71647
1513         * omp-low.c (lower_rec_input_clauses): Convert
1514         omp_clause_aligned_alignment (c) to size_type_node for the
1515         last argument of __builtin_assume_aligned.
1516
1517 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1518
1519         * configure.ac (calling ___tls_get_addr via GOT): New
1520         assembler/linker check.
1521         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
1522         assembler and linker supports calling ___tls_get_addr via GOT.
1523         Otherise, defined to 0.
1524         * config.in: Regenerated.
1525         * configure: Likewise.
1526         * config/i386/constraints.md (Yb): New constraint.
1527         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
1528         (REG_CLASS_NAMES): Likewise.
1529         (REG_CLASS_CONTENTS): Likewise.
1530         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
1531         the b constraint with the Yb constraint.  Call ___tls_get_addr
1532         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
1533         is 1.
1534         (*tls_local_dynamic_base_32_gnu): Likewise.
1535         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
1536         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
1537         (*tls_local_dynamic_base_64_<mode>): Likewise.
1538
1539 2016-06-24  Martin Liska  <mliska@suse.cz>
1540
1541         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
1542         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
1543         few functions.
1544         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
1545         argument to true if the expected number of iterations is
1546         loop-based.
1547
1548 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
1549
1550         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
1551         assemble for 32bit target.
1552         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
1553         and $ld_ix86_gld_32_opt to link for 32bit target.
1554         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
1555         * configure: Regenerate.
1556
1557 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1558
1559         * config/arm/arm.c (int_log2): Delete definition and prototype.
1560         (shift_op): Use exact_log2 instead of int_log2.
1561         (vfp3_const_double_for_fract_bits): Likewise.
1562
1563 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1564
1565         * internal-fn.c (expand_arith_set_overflow): New function.
1566         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
1567         Use it.
1568         (expand_arith_overflow_result_store): Likewise.  Handle precision
1569         smaller than mode precision.
1570         * tree-vrp.c (extract_range_basic): For imag part, handle
1571         properly signed 1-bit precision result.
1572         * doc/extend.texi (__builtin_add_overflow): Document that last
1573         argument can't be pointer to enumerated or boolean type.
1574         (__builtin_add_overflow_p): Document that last argument can't
1575         have enumerated or boolean type.
1576
1577 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1578             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1579
1580         * config/rs6000/predicates.md (splat_input_operand): Rework.
1581         Don't allow constants, since the insns that use this predicate
1582         don't support constants.  Constants are handled by other insns
1583         that are created via combine.  During and after register
1584         allocation, only allow indexed or indirect addresses, and not
1585         general addresses.  Only allow modes supported by the hardware.
1586         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
1587         comment.  Move check for using VSPLTIS<x> to a common location,
1588         instead of doing it in two different places.
1589
1590 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
1591
1592         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1593         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
1594         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
1595         signature_CENTAUR_ebx.
1596
1597 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1598
1599         PR target/66232
1600         PR target/67400
1601         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
1602         (as_ix86_gas_32_opt): This.
1603         (ld_ix86_tls_ldm_opt): Renamed to ...
1604         (ld_ix86_gld_32_opt): This.
1605         (R_386_TLS_LDM reloc): Updated.
1606         (R_386_GOT32X reloc): New assembler/linker check.
1607         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
1608         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
1609         defined to 0.
1610         * config.in: Regenerated.
1611         * configure: Likewise.
1612         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
1613         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
1614         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
1615         if ix86_force_load_from_GOT_p returns true.
1616         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
1617         ix86_force_load_from_GOT_p returns true.
1618         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
1619         the external function address via the GOT slot.
1620         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
1621         HAVE_AS_IX86_GOT32X before returning false.
1622         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
1623         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
1624
1625 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
1626
1627         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
1628
1629 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1630
1631         * Makefile.in: Regenerate.
1632         * doc/install.texi: Document autoprofiledbootstrap.
1633
1634 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1635
1636         * config/i386/gcc-auto-profile: New file.
1637
1638 2016-06-23  Martin Liska  <mliska@suse.cz>
1639
1640         PR middle-end/71619
1641         * predict.c (predict_loops): Revert the hunk that was removed
1642         in r237103.
1643
1644 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1645
1646         * config.gcc: Add support for arm*-*-phoenix* targets.
1647         * config/arm/t-phoenix: New.
1648         * config/phoenix.h: New.
1649
1650 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
1651             H.J. Lu  <hongjiu.lu@intel.com>
1652
1653         PR target/67400
1654         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
1655         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
1656         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
1657         ix86_force_load_from_GOT_p returns true.
1658         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
1659         ix86_force_load_from_GOT_p returns true.
1660         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
1661         ix86_force_load_from_GOT_p returns true.
1662         (ix86_expand_move): Load the external function address via the
1663         GOT slot if ix86_force_load_from_GOT_p returns true.
1664         * config/i386/predicates.md (x86_64_immediate_operand): Return
1665         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
1666         (x86_64_zext_immediate_operand): Ditto.
1667
1668 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
1669
1670         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
1671
1672 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1673
1674         PR c/70339
1675         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
1676         * diagnostic.c (pedwarn_at_rich_loc): New function.
1677         * spellcheck.h (best_match::best_match): Add a
1678         "best_distance_so_far" optional parameter.
1679         (best_match::set_best_so_far): New method.
1680         (best_match::get_best_distance): New accessor.
1681         (best_match::get_best_candidate_length): New accessor.
1682
1683 2016-06-22  Nick Clifton  <nickc@redhat.com>
1684
1685         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
1686         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
1687         modes are accepted as well.
1688         (ucompare_loc_descriptor): Likewise.
1689         (minmax_loc_descriptor): Likewise.
1690         (clz_loc_descriptor): Likewise.
1691         (popcount_loc_descriptor): Likewise.
1692         (bswap_loc_descriptor): Likewise.
1693         (rotate_loc_descriptor): Likewise.
1694         (mem_loc_descriptor): Likewise.
1695         (loc_descriptor): Likewise.
1696
1697 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1698
1699         * common.opt (fdiagnostics-parseable-fixits): New option.
1700         * diagnostic.c: Include "selftest.h".
1701         (print_escaped_string): New function.
1702         (print_parseable_fixits): New function.
1703         (diagnostic_report_diagnostic): Call print_parseable_fixits.
1704         (selftest::assert_print_escaped_string): New function.
1705         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
1706         (selftest::test_print_escaped_string): New function.
1707         (selftest::test_print_parseable_fixits_none): New function.
1708         (selftest::test_print_parseable_fixits_insert): New function.
1709         (selftest::test_print_parseable_fixits_remove): New function.
1710         (selftest::test_print_parseable_fixits_replace): New function.
1711         (selftest::diagnostic_c_tests): New function.
1712         * diagnostic.h (struct diagnostic_context): Add field
1713         "parseable_fixits_p".
1714         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1715         -fdiagnostics-parseable-fixits.
1716         (-fdiagnostics-parseable-fixits): New option.
1717         * opts.c (common_handle_option): Handle
1718         -fdiagnostics-parseable-fixits.
1719         * selftest-run-tests.c (selftest::run_tests): Call
1720         selftest::diagnostic_c_tests.
1721         * selftest.h (selftest::diagnostic_c_tests): New prototype.
1722
1723 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
1724
1725         PR tree-optimization/71488
1726         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
1727         comparison of boolean vectors.
1728         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
1729         of boolean vectors using bitwise operations.
1730
1731 2016-06-22  Andreas Schwab  <schwab@suse.de>
1732
1733         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
1734         Remove declaration.
1735
1736 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1737
1738         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1739
1740 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1741
1742         * config/i386/i386.c (print_reg): Emit an error message on attempt to
1743         print FLAGS_REG.
1744
1745 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1746
1747         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
1748         * config/arm/arm-cores.def (cortex-a73): New entry.
1749         (cortex-a73.cortex-a35): Likewise.
1750         (cortex-a73.cortex-a53): Likewise.
1751         * config/arm/arm-tables.opt: Regenerate.
1752         * config/arm/arm-tune.md: Likewise.
1753         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
1754         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1755         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
1756         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1757         * doc/invoke.texi (ARM Options): Document cortex-a73,
1758         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
1759
1760 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1761
1762         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
1763         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
1764         (cortex-a73.cortex-a35): Likewise.
1765         (cortex-a73.cortex-a53): Likewise.
1766         * config/aarch64/aarch64-tune.md: Regenerate.
1767         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
1768         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
1769         -mcpu and -mtune.
1770
1771 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1772
1773         * configure.ac (gcc_cv_as_compress_debug): Remove
1774         --compress-debug-sections as extra as switch.
1775         Handle gas --compress-debug-sections=type.
1776         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
1777         Handle gld --compress-debug-sections=type.
1778         * configure: Regenerate.
1779
1780 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1781
1782         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
1783
1784 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
1785
1786         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
1787         (do_rewrite): likewise.
1788
1789 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1790
1791         * common/config/mep/mep-common.c: Remove.
1792         * config.gcc: Remove mep-* support.
1793         * config/mep/constraints.md: Remove.
1794         * config/mep/default.h: Remove.
1795         * config/mep/intrinsics.h: Remove.
1796         * config/mep/intrinsics.md: Remove.
1797         * config/mep/ivc2-template.h: Remove.
1798         * config/mep/mep-c5.cpu: Remove.
1799         * config/mep/mep-core.cpu: Remove.
1800         * config/mep/mep-default.cpu: Remove.
1801         * config/mep/mep-ext-cop.cpu: Remove.
1802         * config/mep/mep-intrin.h: Remove.
1803         * config/mep/mep-ivc2.cpu: Remove.
1804         * config/mep/mep-pragma.c: Remove.
1805         * config/mep/mep-protos.h: Remove.
1806         * config/mep/mep.c: Remove.
1807         * config/mep/mep.cpu: Remove.
1808         * config/mep/mep.h: Remove.
1809         * config/mep/mep.md: Remove.
1810         * config/mep/mep.opt: Remove.
1811         * config/mep/predicates.md: Remove.
1812         * config/mep/t-mep: Remove.
1813         * doc/install.texi: Remove mep-* documentation.
1814         * doc/md.texi: Likewise.
1815
1816 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1817
1818         * config.gcc: Remove support for avr-rtems.
1819         * config/avr/gen-avr-mmcu-specs.c: Likewise.
1820         * config/avr/rtems.h: Remove.
1821         * config/avr/t-rtems: Remove.
1822
1823 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1824
1825         * config.gcc: Remove m32r-rtems support.
1826         * config/m32r/rtems.h: Remove.
1827
1828 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1829
1830         * config.gcc: Remove h8300-rtems support.
1831         * config/h8300/rtems.h: Remove.
1832         * config/h8300/t-rtems: Remove.
1833
1834 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1835
1836         * config.gcc: Remove support for knetbsd.
1837         * configure.ac: Likewise.
1838         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
1839         * config/knetbsd-gnu.h: Remove.
1840         * configure: Regenerate.
1841
1842 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1843
1844         * config.gcc: Remove support for openbsd 2 and 3.
1845         * config/openbsd-oldgas.h: Remove.
1846
1847 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1848
1849         * config.gcc: Remove interix support.
1850         * config/i386/i386-interix.h: Remove.
1851         * config/i386/interix.opt: Remove.
1852         * config/i386/t-interix: Remove.
1853         * configure: Regenerate.
1854         * configure.ac: Remove interix support.
1855         * doc/install.texi: Remove interix documentation.
1856
1857 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1858
1859         * config/rs6000/rs6000.h: Add conditional preprocessing directives
1860         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
1861         not defined.
1862
1863 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1864
1865         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
1866         they are both PLACEHOLDER_EXPRs.
1867
1868 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1869
1870         * stor-layout.c (layout_type): Move setting complex MODE to
1871         layout_type, instead of setting it ahead of time by the caller.
1872         * tree.c (build_complex_type): Likewise.
1873
1874 2016-06-21  Martin Liska  <mliska@suse.cz>
1875
1876         * predict.c (force_edge_cold): Replace imposisble with
1877         impossible.
1878
1879 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1880
1881         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
1882         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
1883
1884 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1885
1886         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
1887
1888 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1889             Ilya Enkovich  <ilya.enkovich@intel.com>
1890
1891         PR target/71549
1892         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1893         New member function to convert V1TImode register to SUBREG
1894         TImode in debug insn.
1895         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
1896         after changing register mode to V1TImode.
1897
1898 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
1899
1900         * config/aarch64/aarch64-cores.def (vulcan): New core.
1901         * config/aarch64/aarch64-tune.md: Regenerate.
1902         * doc/invoke.texi: Document vulcan as an available option.
1903
1904 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1905
1906         * cse.c (canon_asm_operands): New function extracted from...
1907         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
1908         either standalone or member of a PARALLEL.
1909
1910 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1911
1912         PR target/30417
1913         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1914         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1915         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1916
1917 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1918
1919         PR target/71103
1920         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1921         constant addresses if can_create_pseudo_p.
1922
1923 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
1924
1925         PR tree-optimization/71588
1926         * tree-ssa-strlen.c (valid_builtin_call): New function.
1927         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1928         it.
1929
1930 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1931
1932         PR middle-end/71581
1933         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1934         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1935         for conversion of scalar user var to complex type and use the
1936         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
1937         punt.
1938
1939         PR rtl-optimization/71591
1940         * toplev.c (toplev::run_self_tests): If no_backend, complain and
1941         don't run any tests.
1942
1943 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
1944
1945         PR target/71571
1946         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
1947         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
1948         space for PIC with non-v32 and the common non-PIC "jump".
1949
1950 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1951
1952         PR target/71559
1953         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
1954         returned values and add UN*/LTGT/*ORDERED cases with values matching
1955         D operand modifier on vcmp for AVX.
1956
1957 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1958
1959         * config/aarch64/aarch64.opt
1960         (mpc-relative-literal-loads): Rename internal option name.
1961         * config/aarch64/aarch64.c
1962         (aarch64_nopcrelative_literal_loads): Rename to
1963         aarch64_pcrelative_literal_loads.
1964         (aarch64_expand_mov_immediate): Likewise.
1965         (aarch64_secondary_reload): Likewise.
1966         (aarch64_can_use_per_function_literal_pools_p): Likewise.
1967         (aarch64_override_options_after_change_1): Rename and simplify logic.
1968         (aarch64_classify_symbol): Merge large model checks into switch,
1969         remove pc-relative load check.
1970
1971 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1972
1973         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
1974         costs relative to the cost of a register move.
1975
1976 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1977
1978         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
1979         (vcvt_n_f64_u64): Likewise.
1980         (vcvt_n_s64_f64): Likewise.
1981         (vcvt_n_u64_f64): Likewise.
1982         (vcvt_f64_s64): Likewise.
1983         (vrecpe_f64): Likewise.
1984         (vcvt_f64_u64): Likewise.
1985         (vrecps_f64): Likewise.
1986
1987 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1988
1989         * config/aarch64/aarch64.md
1990         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
1991         iterators.
1992         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
1993         attributes.
1994         * config/aarch64/aarch64-builtins.c
1995         (aarch64_types_binop_uss_qualifiers): Delete.
1996         (TYPES_BINOP_USS): Likewise.
1997         (aarch64_types_binop_sus_qualifiers): Likewise.
1998         (TYPES_BINOP_SUS): Likewise.
1999         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
2000         (TYPES_FCVTIMM_SUS): Likewise.
2001         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
2002         rather than BINOP.
2003         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
2004         (fcvtzs): Use SHIFTIMM rather than BINOP.
2005         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
2006
2007 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2008
2009         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
2010         costs relative to the cost of a register move.
2011
2012 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2013
2014         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
2015         Allow scalar/single vector modes to be tieable.
2016
2017 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2018
2019         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
2020
2021 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2022
2023         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
2024         "alignement".
2025         * tree.h (TYPE_ALIGN): Likewise.
2026
2027 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2028
2029         PR target/71103
2030         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
2031
2032 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2033
2034         * config/avr/avr.c (avr_print_operand): Fix "format not a string
2035         literal" build warnings.
2036         (avr_print_operand_address): Dito.
2037
2038 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
2039
2040         PR target/71375
2041         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
2042         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
2043
2044 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
2045
2046         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
2047
2048 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2049
2050         PR bootstrap/71435
2051         * reload1.c (reload): Pass 0 to finish_spills when called because
2052         update_eliminables_and_spill returns true and remove did_spill.
2053         (finish_spills): Adjust comment and document GLOBAL parameter.
2054
2055 2016-06-17  DJ Delorie  <dj@redhat.com>
2056
2057         PR target/71338
2058         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2059         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2060         (umulqihi3_virt): Likewise.
2061         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2062         (umulqihi3_real): Likewise.
2063
2064 2016-06-17  Martin Liska  <mliska@suse.cz>
2065
2066         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2067
2068 2016-06-17  Martin Liska  <mliska@suse.cz>
2069
2070         * predict.def: PRED_LOOP_EXIT from 92 to 85.
2071
2072 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
2073
2074         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
2075         __FAST_MATH__.
2076         (vaddq_f32): Likewise.
2077         (vmul_f32): Likewise.
2078         (vmulq_f32): Likewise.
2079         (vsub_f32): Likewise.
2080         (vsubq_f32): Likewise.
2081
2082 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2083
2084         PR tree-optimization/71347
2085         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
2086         cost for all uses in group.
2087
2088 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
2089
2090         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
2091         insert gimple seq if it's not empty.
2092
2093 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2094
2095         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
2096         member OFFSET.
2097         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
2098         rather than OFFSET.
2099         (comp_dr_with_seg_len_pair): Ditto.
2100         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
2101         struct dr_with_seg_len_pair against DR_OFFSET.
2102         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
2103         DR_OFFSET directly.
2104
2105 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2106
2107         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
2108
2109 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
2110
2111         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
2112         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
2113         (pa_output_millicode_call): Likewise.
2114         (pa_output_call): Likewise.
2115         (pa_output_indirect_call): Likewise.
2116         (pa_asm_output_mi_thunk): Likewise.
2117
2118 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2119
2120         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
2121
2122 2016-06-16  Martin Liska  <mliska@suse.cz>
2123
2124         * predict.c (combine_predictions_for_insn): When we find a first
2125         match predictor, we should consider just predictors with
2126         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
2127         DS theory predictor.
2128         (combine_predictions_for_bb): Likewise.
2129
2130 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2131
2132         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2133         with base of reference to struct.
2134
2135 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2136
2137         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
2138
2139 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2140
2141         PR target/71151
2142         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2143         progmem_swtable_section.
2144         (progmem_swtable_section): Remove.
2145         (avr_asm_function_rodata_section): Remove.
2146         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2147         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2148
2149 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
2150
2151         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2152         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2153         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2154         signature_CENTAUR_ebx.
2155         * config/i386/i386.c (ix86_option_override_internal): Add
2156         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2157         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2158         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2159
2160 2016-06-16  Martin Liska  <mliska@suse.cz>
2161
2162         * predict.def: Add fortran loop preheader predictor.
2163         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2164         fold IFN_BUILTIN_EXPECT with a known constant argument.
2165
2166 2016-06-16  Martin Liska  <mliska@suse.cz>
2167
2168         * predict.def: Add 'Fortran' to display text of all
2169         PRED_FORTRAN_* predictors.
2170
2171 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2172
2173         PR target/71242
2174         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2175         [IA64_BUILTIN_NANSQ]: Ditto.
2176         (ia64_fold_builtin): New function.
2177         (TARGET_FOLD_BUILTIN): New define.
2178         (ia64_init_builtins) Declare const_string_type node.
2179         Add __builtin_nanq and __builtin_nansq builtin functions.
2180         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2181
2182 2016-06-16  Nick Clifton  <nickc@redhat.com>
2183
2184         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2185         MSP430_HWMULT_ prefix to enum values.
2186         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2187         * config/msp430/msp430.c: Update use of enum values.
2188         * config/msp430/msp430.md: Likewise.
2189         * config/msp430/msp430.opt: Likewise.
2190
2191 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
2192
2193         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2194         of comparsions in the last iteration.
2195
2196 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2197             Joern Rennecke  <joern.rennecke@embecosm.com>
2198
2199         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2200         addresses.
2201         (arc_needs_pcl_p): Add GOTOFFPC.
2202         (arc_legitimate_pic_addr_p): Likewise.
2203         (arc_output_pic_addr_const): Likewise.
2204         (arc_legitimize_pic_address): Generate a pc-relative address using
2205         GOTOFFPC.
2206         (arc_output_libcall): Use @pcl syntax.
2207         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2208         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2209         (*movsi_insn): Use @pcl syntax.
2210         (doloop_begin_i): Likewise.
2211
2212 2016-06-16  Martin Liska  <mliska@suse.cz>
2213
2214         * predict.def: Define a new predictor.
2215
2216 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2217
2218         * config/arc/arc.opt (mtp-regno): Update text.
2219
2220 2016-06-16  Renlin Li  <renlin.li@arm.com>
2221
2222         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2223
2224 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2225
2226         PR target/71554
2227         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2228         (setcc + and peephole2): Likewise.
2229
2230         PR rtl-optimization/71532
2231         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2232         memory slots.
2233
2234 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2235
2236         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2237         DImode constants with XXSPLTIB in vector registers.
2238         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2239         vsx_extract_<mode>_internal{1,2} into a single insn that handles
2240         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2241         extraction of the element at the top of the register as a scalar
2242         value.
2243         (vsx_extract_<mode>_internal1): Likewise.
2244         (vsx_extract_<mode>_internal2): Likewise.
2245         * config/rs6000/constraints.md (wi constraint): Remove a comment
2246         about DImode not being allowed in Altivec registers.
2247         (wB constraint): New constraint for constants that can be
2248         generated in Altivec registers with VSPLTISW/VUPKHSW.
2249         * config/rs6000/predicates.md (xxspltib_constant_split): Update
2250         comments.
2251         (xxspltib_constant_nosplit): Likewise.
2252         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2253         support for -mupper-regs-di to enable DImode to go into Altivec
2254         registers.
2255         (POWERPC_MASKS): Likewise.
2256         (power7 cpu): Likewise.
2257         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
2258         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
2259         for DImode being allowed in Altivec registers.  Update wi/wj
2260         constraints.  Set scalar_in_vmx_p flag.
2261         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
2262         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
2263         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
2264         (rs6000_opt_masks): Add -mupper-regs-di.
2265         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
2266         direct move to use wi and not wj.
2267         (lfiwzx): Likewise.
2268         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
2269         alternative.
2270         (floatunssi<mode>2_lfiwzx_mem): Likewise.
2271         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
2272         any VSX register, instead of just Altivec registers, to allow
2273         either operand to be an Altivec register or both.
2274         (fixuns_trunc<mode>di2_fctiduz): Likewise.
2275         (movdi_internal32): Add support for -mupper-regs-di.  Add support
2276         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
2277         the alternatives and attributes to be lined up to be easier to
2278         read.
2279         (movdi_internal64): Likewise.
2280         (64-bit DImode splitters): Change predicates to only split loading
2281         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
2282         load constants in ISA 3.0 or ISA 2.07 respectively.
2283         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2284         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
2285         mention -mcpu=power9 sets these options.
2286         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
2287         wB constraint.
2288
2289 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2290
2291         PR target/67353
2292         * config/avr/avr.c (avr_set_current_function): Warn misspelled
2293         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
2294         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2295         by default to warn misspelled interrupt/ signal handler.
2296         * doc/invoke.texi (AVR Options): Document it. Update description
2297         for -nodevicelib option.
2298
2299 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2300
2301         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2302         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2303         (aarch64_<sur>shll2_n<mode>): Likewise.
2304
2305 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2306
2307         PR middle-end/71529
2308         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2309         DECL_CONTEXT for copied arguments.
2310
2311 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2312
2313         PR tree-optimization/71483
2314         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2315         for slp
2316
2317 2016-06-15  Martin Liska  <mliska@suse.cz>
2318
2319         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2320         instead of predict_edge w/o a probability.
2321
2322 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2323
2324         PR tree-optimization/71439
2325         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2326         live PHIs.
2327
2328 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2329
2330         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2331         register subregs in SET_SRC.
2332
2333 2016-06-15  Richard Biener  <rguenther@suse.de>
2334
2335         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2336         store restrictions.
2337
2338 2016-06-15  Richard Biener  <rguenther@suse.de>
2339
2340         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2341         not consider dependences between accesses that belong to the
2342         same group.
2343         (vect_analyze_data_ref_dependences): Do not analyze read-read
2344         or self-dependences.
2345
2346 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2347
2348         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2349         spellcheck.h.
2350         (find_closest_identifier): Reimplement in terms of
2351         best_match<tree,tree>.
2352         * spellcheck-tree.h: New file.
2353         * spellcheck.c (struct edit_distance_traits<const char *>): New
2354         struct.
2355         (find_closest_string): Reimplement in terms of
2356         best_match<const char *, const char *>.
2357         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2358         overload to spellcheck-tree.h.
2359         (find_closest_identifier): Likewise.
2360         (struct edit_distance_traits<T>): New template.
2361         (class best_match): New class.
2362
2363 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2364
2365         * selftest-run-tests.c (selftest::run_tests): Call
2366         selftest::spellcheck_tree_c_tests.
2367         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2368         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2369         (selftest::test_find_closest_identifier): New function.
2370         (selftest::spellcheck_tree_c_tests): New function.
2371         * spellcheck.c (selftest::test_find_closest_string): Verify that
2372         the order of the vec does not affect the results for this case.
2373         (selftest::test_data): New array.
2374         (selftest::test_metric_conditions): New function.
2375         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2376         Call selftest::test_metric_conditions.
2377
2378 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2379
2380         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2381         (BU_P9_MISC_1): Likewise.
2382         (BU_P9_64BIT_MISC_0): Likewise.
2383         (BU_P9_MISC_0): Likewise.
2384
2385 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2386
2387         * gcc-rich-location.c
2388         (gcc_rich_location::add_fixit_misspelled_id): New method.
2389         * gcc-rich-location.h
2390         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2391
2392 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2393
2394         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2395         FreeBSD 11 and above.
2396
2397 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2398
2399         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2400
2401 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2402
2403         * expmed.h: Close parenthesis in "at your option" in copyright
2404         boilerplate.
2405         * lower-subreg.h: Likewise.
2406
2407 2016-06-14  Richard Biener  <rguenther@suse.de>
2408
2409         PR middle-end/71526
2410         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2411         if available.
2412
2413 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2414
2415         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2416         New function.
2417         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2418         mask+shift version.
2419         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2420         New prototype.
2421         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2422         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2423
2424 2016-06-14  Richard Biener  <rguenther@suse.de>
2425
2426         PR tree-optimization/71522
2427         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2428         copying into float copying.
2429
2430 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2431
2432         PR tree-optimization/71520
2433         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2434         (replace_block_by): Move user labels from bb1 to bb2.
2435
2436 2016-06-14  Richard Biener  <rguenther@suse.de>
2437
2438         PR middle-end/71310
2439         PR bootstrap/71510
2440         * expr.h (get_bit_range): Declare.
2441         * expr.c (get_bit_range): Export.
2442         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
2443         word_mode again to constrain the bitfield access.
2444
2445 2016-06-14  Richard Biener  <rguenther@suse.de>
2446
2447         PR tree-optimization/71521
2448         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2449         division int_const_binop against zero divisor.
2450
2451 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2452
2453         * config/i386/i386.md (signbittf2): New expander.
2454         * config/i386/sse.md (ptesttf2): New insn pattern.
2455
2456 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2457
2458         PR bootstrap/71481
2459         * input.c (selftest::test_reading_source_line): Avoid reading from
2460         __FILE__ by creating a tempfile with known content and reading
2461         from that instead.
2462
2463 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2464
2465         * pretty-print.c (assert_pp_format_colored): Skip the test if
2466         GCC_COLORS is set.
2467         (test_pp_format): Remove comment about GCC_COLORS.
2468
2469 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2470
2471         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
2472         * pretty-print.c (assert_pp_format_va): Add location param and use
2473         it with ASSERT_STREQ_AT.
2474         (assert_pp_format): Add location param and pass it to
2475         assert_pp_format_va.
2476         (assert_pp_format_colored): Likewise.
2477         (ASSERT_PP_FORMAT_1): New.
2478         (ASSERT_PP_FORMAT_2): New.
2479         (ASSERT_PP_FORMAT_3): New.
2480         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
2481         explicitly, or implicitly via the above macros.
2482         * selftest.c (selftest::pass): Use a selftest::location rather
2483         than file and line.
2484         (selftest::fail): Likewise.  Print the function name.
2485         (selftest::fail_formatted): Likewise.
2486         (selftest::assert_streq): Use a selftest::location rather than
2487         file and line.
2488         * selftest.h (selftest::location): New struct.
2489         (SELFTEST_LOCATION): New macro.
2490         (selftest::pass): Accept a const location & rather than file
2491         and line.
2492         (selftest::fail): Likewise.
2493         (selftest::fail_formatted): Likewise.
2494         (selftest::assert_streq): Likewise.
2495         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
2496         (ASSERT_FALSE): Likewise.
2497         (ASSERT_EQ): Likewise.
2498         (ASSERT_NE): Likewise.
2499         (ASSERT_STREQ): Likewise.
2500         (ASSERT_PRED1): Likewise.
2501         (ASSERT_STREQ_AT): New macro.
2502
2503 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2504
2505         * selftest.c (selftest::fail_formatted): New function.
2506         (selftest::assert_streq): New function.
2507         * selftest.h (selftests::fail_formatted): New decl.
2508         (selftest::assert_streq): New decl.
2509         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
2510
2511 2016-06-13  Jeff Law  <law@redhat.com>
2512
2513         PR tree-optimization/71403
2514         * tree-ssa-threadbackward.c
2515         (convert_and_register_jump_thread_path): No longer accept reference
2516         to path.  Do not pop items off the path anymore.
2517         (fsm_find_control_statement_thread_paths): Do not allow threading
2518         to a deeper loop nest.  Pop the last item off the path here rather
2519         than in convert_and_register_jump_thread_path.
2520
2521 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2522             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2523
2524         [AArch64] Emit division using the Newton series
2525
2526         * config/aarch64/aarch64-protos.h
2527         (cpu_approx_modes): Add new member "division".
2528         (aarch64_emit_approx_div): Declare new function.
2529         * config/aarch64/aarch64.c
2530         (generic_approx_modes): New member "division".
2531         (exynosm1_approx_modes): Likewise.
2532         (xgene1_approx_modes): Likewise.
2533         (aarch64_emit_approx_div): Define new function.
2534         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
2535         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
2536         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
2537         * doc/invoke.texi (-mlow-precision-div): Describe new option.
2538
2539 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2540             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2541
2542         [AArch64] Emit square root using the Newton series
2543
2544         * config/aarch64/aarch64-protos.h
2545         (aarch64_emit_approx_rsqrt): Replace with new function
2546         "aarch64_emit_approx_sqrt".
2547         (cpu_approx_modes): New member "sqrt".
2548         * config/aarch64/aarch64.c
2549         (generic_approx_modes): New member "sqrt".
2550         (exynosm1_approx_modes): Likewise.
2551         (xgene1_approx_modes): Likewise.
2552         (aarch64_emit_approx_rsqrt): Replace with new function
2553         "aarch64_emit_approx_sqrt".
2554         (aarch64_override_options_after_change_1): Handle new option.
2555         * config/aarch64/aarch64-simd.md
2556         (rsqrt<mode>2): Use new function instead.
2557         (sqrt<mode>2): New expansion and insn definitions.
2558         * config/aarch64/aarch64.md: Likewise.
2559         * config/aarch64/aarch64.opt
2560         (mlow-precision-sqrt): Add new option description.
2561         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
2562
2563 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2564
2565         [AArch64] Add more choices for the reciprocal square root approximation
2566
2567         Allow a target to prefer such operation depending on the operation mode.
2568
2569         * config/aarch64/aarch64-protos.h
2570         (AARCH64_APPROX_MODE): New macro.
2571         (AARCH64_APPROX_{NONE,ALL}): Likewise.
2572         (cpu_approx_modes): New structure.
2573         (tune_params): New member "approx_modes".
2574         * config/aarch64/aarch64-tuning-flags.def
2575         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
2576         * config/aarch64/aarch64.c
2577         (generic_approx_modes): New core "cpu_approx_modes" structure.
2578         (exynosm1_approx_modes): Likewise.
2579         (xgene1_approx_modes): Likewise.
2580         (generic_tunings): New member "approx_modes".
2581         (cortexa35_tunings): Likewise.
2582         (cortexa53_tunings): Likewise.
2583         (cortexa57_tunings): Likewise.
2584         (cortexa72_tunings): Likewise.
2585         (exynosm1_tunings): Likewise.
2586         (thunderx_tunings): Likewise.
2587         (xgene1_tunings): Likewise.
2588         (use_rsqrt_p): New argument for the mode and use new member from
2589         "tune_params".
2590         (aarch64_builtin_reciprocal): Devise mode from builtin.
2591         (aarch64_optab_supported_p): New argument for the mode.
2592         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
2593
2594 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2595
2596         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2597         RS6000_BTM_MODULO flag into the set of flags that are considered
2598         to be part of the common configuration.
2599
2600 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2601
2602         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2603         difference unsigned.
2604         (vec_absdb): New macro for vector absolute difference unsigned
2605         byte.
2606         (vec_absdh): New macro for vector absolute difference unsigned
2607         half-word.
2608         (vec_absdw): New macro for vector absolute difference unsigned word.
2609         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2610         (vadu<mode>3): New insn.
2611         (*p9_vadu<mode>3): New insn.
2612         * config/rs6000/rs6000-builtin.def (vadub): New built-in
2613         definition.
2614         (vaduh): New built-in definition.
2615         (vaduw): New built-in definition.
2616         (vadu): New overloaded built-in definition.
2617         (vadub): New overloaded built-in definition.
2618         (vaduh): New overloaded built-in definition.
2619         (vaduw): New overloaded built-in definition.
2620         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2621         overloaded vector absolute difference unsigned functions.
2622         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2623         the ISA 3.0 vector absolute difference unsigned built-in functions.
2624
2625 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2626
2627         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2628         update shared_lookup_references only once after changing operands.
2629
2630 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
2631
2632         PR middle-end/71373
2633         * tree-nested.c (convert_nonlocal_omp_clauses)
2634         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
2635
2636         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
2637         * tree.def (CASE_LABEL_EXPR): Likewise.
2638
2639 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2640
2641         PR bootstrap/71481
2642         * input.c (test_builtins): Fix an assertion.
2643
2644 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2645
2646         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
2647         (paritysi2): Ditto.
2648         (isinfxf2): Ditto.
2649         (isinf<mode>2): Ditto.
2650
2651 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2652
2653         * ggc-tests.c (test_finalization): Only test need_finalization_p
2654         for GCC_VERSION >= 4003.
2655
2656 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2657
2658         * config/s390/vecintrin.h: Fix file description in comment.
2659
2660 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2661
2662         * config/s390/s390-builtin-types.def: Change builtin type naming
2663         scheme to match builtin-types.def.
2664
2665 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
2666
2667         * fold-const.c (optimize_minmax_comparison): Remove.
2668         (fold_comparison): Remove call to the above.
2669         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
2670         New transformations.
2671
2672 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
2673
2674         PR tree-optimization/71416
2675         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
2676         multiple entries
2677
2678 2016-06-13  Martin Liska  <mliska@suse.cz>
2679
2680         * predict.c (enum predictor_reason): Prefix enum with REASON_.
2681         (combine_predictions_for_insn): Likewise.
2682         (prune_predictions_for_bb): Likewise.
2683         (combine_predictions_for_bb): Likewise.
2684
2685 2016-06-13  Richard Biener  <rguenther@suse.de>
2686
2687         PR tree-optimization/71505
2688         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2689         assert match comment.
2690
2691 2016-06-13  Marek Polacek  <polacek@redhat.com>
2692
2693         PR middle-end/71476
2694         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
2695         gimplify_switch_expr.
2696         (warn_switch_unreachable_r): New function.
2697
2698 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2699
2700         PR target/71379
2701         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2702         one.
2703
2704 2016-06-13  Richard Biener  <rguenther@suse.de>
2705
2706         PR middle-end/64516
2707         * fold-const.c (fold_unary_loc): Preserve alignment when
2708         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2709
2710 2016-06-13  Martin Liska  <mliska@suse.cz>
2711
2712         PR sanitizer/71458
2713         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
2714         w/ -fsanitize=bounds.
2715
2716 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2717
2718         * config/i386/i386.c (ix86_init_builtins): Calculate
2719         FLOAT128_FTYPE_CONST_STRING function type only once.
2720         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
2721         built-in functions are available for x86-32 and x86-64 targets.
2722
2723 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2724
2725         PR target/71241
2726         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
2727         New primitive type.
2728         (FLOAT128_FTYPE_CONST_STRING): New function type.
2729         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
2730         [IX86_BUILTIN_NANSQ]: Ditto.
2731         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2732         (ix86_init_builtin_types): Declare const_string_type_node.
2733         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
2734         builtin functions.
2735         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2736         * doc/extend.texi (x86 Built-in Functions): Document
2737         __builtin_nanq and __builtin_nansq.
2738
2739 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
2740
2741         PR target/71061
2742         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
2743         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
2744         length for pop patterns.
2745         (arm_attr_length_push_multi): Update comments.
2746         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
2747         attribute.
2748         (*pop_multiple_with_writeback_and_return): Likewise.
2749         (*pop_multiple_with_return): Likewise.
2750
2751 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
2752
2753         PR middle-end/71310
2754         * fold-const.c (optimize_bit_field_compare): Don't try to use
2755         word_mode unconditionally for reading the bit field, look at
2756         DECL_BIT_FIELD_REPRESENTATIVE instead.
2757
2758 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2759
2760         PR middle-end/71478
2761         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
2762         vector integer type.
2763
2764 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2765
2766         PR middle-end/71494
2767         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2768         without LABEL_DECL, set *handled_ops_p to false instead of true.
2769
2770 2016-06-10  Martin Sebor  <msebor@redhat.com>
2771
2772         PR c/71392
2773         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
2774         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
2775         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
2776         them.
2777         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
2778         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
2779         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
2780         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
2781         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
2782         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
2783         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
2784         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
2785
2786 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2787
2788         * config/arm/arm.h (pool_vector_label,
2789         return_used_this_function): Remove.
2790
2791 2016-06-10  Jeff Law  <law@redhat.com>
2792
2793         PR tree-optimization/71335
2794         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
2795         zero length paths here.
2796         (convert_and_register_jump_thread_path): Remove hacks related to
2797         duplicated blocks in the jump thread path.
2798         (fsm_find_control_statement_thread_paths): Avoid putting the same
2799         block on the thread path twice, but ensure the thread path is
2800         unchanged from the caller's point of view.
2801
2802 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2803
2804         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
2805         * predict.def (PRED_LOOP_BRANCH): Remove.
2806
2807 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
2808
2809         * Makefile.in (OBJS): Add ggc-tests.o.
2810         (GTFILES): Add ggc-tests.c.
2811         * ggc-tests.c: New file.
2812         * selftest-run-tests.c (selftest::run_tests): Call
2813         selftest::ggc_tests_c_tests.
2814         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
2815
2816 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
2817
2818         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
2819
2820 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
2821
2822         PR sanitizer/71480
2823         * varasm.c (place_block_symbol): Adjust alignment for asan protected
2824         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
2825
2826 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2827
2828         * profile.c: Include cfgloop.h.
2829         (branch_prob): Compute estimated number of iterations.
2830         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2831         recompute estimate number of iterations from profile.
2832
2833 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2834
2835         PR inline-asm/68843
2836         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
2837         must be grouped on top of stack.  Don't force early clobber
2838         on ordinary reg outputs.
2839
2840 2016-06-10  Richard Biener  <rguenther@suse.de>
2841
2842         * targhooks.c (default_builtin_vectorization_cost): Adjust
2843         vec_construct cost.
2844
2845 2016-06-10  Richard Biener  <rguenther@suse.de>
2846
2847         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
2848         to fold the RHS to a constant if possible.
2849
2850 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2851
2852         PR middle-end/71373
2853         * tree-nested.c (convert_nonlocal_omp_clauses)
2854         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2855         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2856         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2857
2858         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2859         OMP_CLAUSE_TILE.
2860         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2861
2862         * omp-low.c (scan_sharing_clauses): Don't expect
2863         OMP_CLAUSE__CACHE_.
2864
2865 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
2866
2867         PR tree-optimization/71407
2868         PR tree-optimization/71416
2869         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
2870         BIT_FIELD_REF type.
2871
2872 2016-06-10  Richard Biener  <rguenther@suse.de>
2873
2874         PR middle-end/71477
2875         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2876
2877 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2878
2879         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2880
2881 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
2882             Jiong Wang  <jiong.wang@arm.com>
2883
2884         PR rtl-optimization/70751
2885         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
2886         spilled into memory.
2887
2888 2016-06-09  Jonathan Yong  <10walls@gmail.com>
2889
2890         Revert:
2891         2015-09-21  Jonathan Yong  <10walls@gmail.com>
2892
2893         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2894         sysroot/usr/lib/32api for additional win32 libraries,
2895         fixes failing Cygwin bootstrapping.
2896
2897 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
2898
2899         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
2900         Delete.
2901
2902 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
2903
2904         PR bootstrap/71471
2905         * pretty-print.c (pp_indent): Specify that %p is printed in a
2906         host-dependent manner.
2907         (test_pp_format): Remove the test for %p.
2908
2909 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
2910
2911         * config/mips/mips.c (mips_output_jump): Fix formatting.
2912
2913 2016-06-09  Richard Biener  <rguenther@suse.de>
2914
2915         PR tree-optimization/71462
2916         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
2917         removed blocks.
2918
2919 2016-06-09  Martin Liska  <mliska@suse.cz>
2920
2921         * predict.c (dump_prediction): Add new argument.
2922         (enum predictor_reason): New enum.
2923         (struct predictor_hash): New struct.
2924         (predictor_hash::hash): New function.
2925         (predictor_hash::equal): Likewise.
2926         (not_removed_prediction_p): New function.
2927         (prune_predictions_for_bb): Likewise.
2928         (combine_predictions_for_bb): Prune predictions.
2929
2930 2016-06-09  Martin Liska  <mliska@suse.cz>
2931
2932         * predict.c (filter_predictions): New function.
2933         (remove_predictions_associated_with_edge): Use the filter
2934         function.
2935         (equal_edge_p): New function.
2936
2937 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
2938
2939         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
2940         Correct usage of @samp vs @option, add @samp where appropriate.
2941         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
2942         Add armv6s-m and document it, as it is no official ARM name.
2943
2944 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2945
2946         * ifcvt.c (struct noce_if_info): Add transform_name field.
2947         (noce_try_move): Set if_info->transform_name to the function name.
2948         (noce_try_ifelse_collapse): Likewise.
2949         (noce_try_store_flag): Likewise.
2950         (noce_try_inverse_constants): Likewise.
2951         (noce_try_store_flag_constants): Likewise.
2952         (noce_try_addcc): Likewise.
2953         (noce_try_store_flag_mask): Likewise.
2954         (noce_try_cmove): Likewise.
2955         (noce_try_cmove_arith): Likewise.
2956         (noce_try_minmax): Likewise.
2957         (noce_try_abs): Likewise.
2958         (noce_try_sign_mask): Likewise.
2959         (noce_try_bitop): Likewise.
2960         (noce_convert_multiple_sets): Likewise.
2961         (noce_process_if_block): Print if_info->transform_name to
2962         dump_file if transformation succeeded.
2963
2964 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2965
2966         * config/arm/cortex-a57.md (cortex_a57_alu):
2967         Handle csel type.
2968
2969 2016-06-08  Martin Sebor  <msebor@redhat.com>
2970             Jakub Jelinek  <jakub@redhat.com>
2971
2972         PR c++/70507
2973         PR c/68120
2974         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
2975         BUILT_IN_MUL_OVERFLOW_P): New builtins.
2976         * builtins.c: Include gimple-fold.h.
2977         (fold_builtin_arith_overflow): Handle
2978         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2979         (fold_builtin_3): Likewise.
2980         * doc/extend.texi (Integer Overflow Builtins): Document
2981         __builtin_{add,sub,mul}_overflow_p.
2982
2983 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2984
2985         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2986         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2987
2988 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
2989
2990         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
2991         Rewrite, looking one level down for records and arrays.
2992
2993 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
2994
2995         * pretty-print.c: Include "selftest.h".
2996         (pp_format): Fix comment.
2997         (identifier_to_locale): Likewise.
2998         (selftest::test_basic_printing): New function.
2999         (selftest::assert_pp_format): New function.
3000         (selftest::test_pp_format): New function.
3001         (selftest::pretty_print_c_tests): New function.
3002         * selftest-run-tests.c (selftest::run_tests): Call
3003         selftest::pretty_print_c_tests.
3004         * selftest.h (pretty_print_c_tests): New declaration.
3005
3006 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3007
3008         * invoke.texi (max-loop-headers-insns): Document.
3009         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
3010         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
3011         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
3012
3013 2016-06-08  Richard Biener  <rguenther@suse.de>
3014
3015         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
3016         on strided SLP loads and fall back to scalar loads in case
3017         we can't chunk them.
3018
3019 2016-06-08  Richard Biener  <rguenther@suse.de>
3020
3021         PR tree-optimization/71452
3022         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
3023         type used for the SSA rewrite has enough precision to cover
3024         the dynamic type of the location.
3025
3026 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3027             Richard Biener  <rguenther@suse.de>
3028
3029         PR c++/71448
3030         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3031         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3032         in one further place.
3033
3034 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
3035
3036         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
3037         to one word if the field is known to overlap other words.
3038         (extract_bit_field_1): Likewise.
3039         (store_split_bit_field): Remove compensating code.
3040         (extract_split_bit_field): Likewise.
3041
3042 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
3043
3044         PR debug/71432
3045         PR ada/71413
3046         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
3047
3048 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3049
3050         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
3051         VDQF.
3052         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
3053         (arch64_addpv4sf): Delete.
3054         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
3055         "gen_aarch64_addpv4sf".
3056         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
3057         builtin.
3058         (vpadds_f32): Likewise.
3059         (vpaddq_f32): Likewise.
3060         (vpaddq_f64): Likewise.
3061
3062 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3063
3064         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
3065         VALLF.
3066         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
3067         to VALLF.  Rename to "fabd<mode>3".
3068         "*fabd_scalar<mode>3): Delete.
3069         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
3070         Use builtin.
3071         (vabdd_f64): Likewise.
3072         (vabd_f32): Likewise.
3073         (vabd_f64): Likewise.
3074         (vabdq_f32): Likewise.
3075         (vabdq_f64): Likewise.
3076
3077 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3078
3079         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
3080         VALLF.
3081         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
3082         "aarch64_rsqrts<mode>".
3083         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
3084         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
3085         builtin.
3086         (vrsqrtsd_f64): Likewise.
3087         (vrsqrts_f32): Likewise.
3088         (vrsqrts_f64): Likewise.
3089         (vrsqrtsq_f32): Likewise.
3090         (vrsqrtsq_f64): Likewise.
3091
3092 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3093
3094         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
3095         VALLF.
3096         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
3097         "aarch64_rsqrte<mode>".
3098         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
3099         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
3100         builtin.
3101         (vrsqrted_f64): Likewise.
3102         (vrsqrte_f32): Likewise.
3103         (vrsqrte_f64): Likewise.
3104         (vrsqrteq_f32): Likewise.
3105         (vrsqrteq_f64): Likewise.
3106
3107 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3108
3109         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
3110         (ucvtf): Likewise.
3111         (fcvtzs): Likewise.
3112         (fcvtzu): Likewise.
3113         * config/aarch64/aarch64-simd.md
3114         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
3115         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
3116         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
3117         Use builtin.
3118         (vcvt_n_f32_u32): Likewise.
3119         (vcvt_n_s32_f32): Likewise.
3120         (vcvt_n_u32_f32): Likewise.
3121         (vcvtq_n_f32_s32): Likewise.
3122         (vcvtq_n_f32_u32): Likewise.
3123         (vcvtq_n_f64_s64): Likewise.
3124         (vcvtq_n_f64_u64): Likewise.
3125         (vcvtq_n_s32_f32): Likewise.
3126         (vcvtq_n_s64_f64): Likewise.
3127         (vcvtq_n_u32_f32): Likewise.
3128         (vcvtq_n_u64_f64): Likewise.
3129         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
3130         (VSDQ_SDI): Likewise.
3131         (fcvt_target): Support V4DI, V4SI and V2SI.
3132         (FCVT_TARGET): Likewise.
3133
3134 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3135
3136         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
3137         (TYPES_BINOP_SUS): Likewise.
3138         (aarch64_simd_builtin_data): Update include file name.
3139         (aarch64_builtins): Likewise.
3140         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
3141         for conversion between scalar float-point and fixed-point.
3142         (ucvtf): Likewise.
3143         (fcvtzs): Likewise.
3144         (fcvtzu): Likewise.
3145         * config/aarch64/aarch64.md
3146         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3147         pattern for conversion between scalar float to fixed-pointer.
3148         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3149         (UNSPEC_FCVTZS): New UNSPEC enumeration.
3150         (UNSPEC_FCVTZU): Likewise.
3151         (UNSPEC_SCVTF): Likewise.
3152         (UNSPEC_UCVTF): Likewise.
3153         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3154         Use builtin.
3155         (vcvtd_n_f64_u64): Likewise.
3156         (vcvtd_n_s64_f64): Likewise.
3157         (vcvtd_n_u64_f64): Likewise.
3158         (vcvtd_n_f32_s32): Likewise.
3159         (vcvts_n_f32_u32): Likewise.
3160         (vcvtd_n_s32_f32): Likewise.
3161         (vcvts_n_u32_f32): Likewise.
3162         * config/aarch64/iterators.md (fcvt_target): Support integer to float
3163         mapping.
3164         (FCVT_TARGET): Likewise.
3165         (FCVT_FIXED2F): New iterator.
3166         (FCVT_F2FIXED): Likewise.
3167         (fcvt_fixed_insn): New define_int_attr.
3168
3169 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3170
3171         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3172         some statements was removed.
3173
3174 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
3175
3176         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3177         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3178         (vect_can_advance_ivs_p): likewise.
3179         (vect_update_ivs_after_vectorizer): likewise.
3180         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3181         (vect_analyze_scalar_cycles_1): likewise.
3182         (vect_analyze_loop_operations): likewise.
3183         (report_vect_op): likewise.
3184         (vect_is_slp_reduction): likewise.
3185         (vect_is_simple_reduction): likewise.
3186         (get_initial_def_for_induction): likewise.
3187         (vect_transform_loop): likewise.
3188         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3189         (vect_recog_sad_pattern): likewise.
3190         (vect_recog_widen_sum_pattern): likewise.
3191         (vect_recog_widening_pattern): likewise.
3192         (vect_recog_divmod_pattern): likewise.
3193         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3194         (vect_analyze_slp_instance): likewise.
3195         (vect_transform_slp_perm_load): likewise.
3196         (vect_schedule_slp_instance): likewise.
3197
3198 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3199
3200         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3201         (return_prediction): PRED_CONST_RETURN predict return as not taken.
3202         * predict.def (PRED_CONTINUE): Change hitrate 50->67
3203         (PRED_LOOP_BRANCH): Document predictor as broken.
3204         (PRED_LOOP_EXIT): Change hitrate 91->92.
3205         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3206         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3207         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3208         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3209         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3210         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3211         (PRED_CALL): Chane hitrate 71->67.
3212         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3213         (PRED_GOTO): Document as unused right now.
3214         (PRED_CONST_RETURN): Change hitrate 67->69
3215         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3216         (PRED_NULL_RETURN): Change hitrate 91->90.
3217         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3218         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3219         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3220
3221 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
3222
3223         * config/rs6000/altivec.h: Add __builtin_vec_mul.
3224         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3225         special case Altivec builtin.
3226         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3227         VSX_BUILTIN_VEC_MUL (replaced with special case code).
3228         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3229         code for ALTIVEC_BUILTIN_VEC_MUL.
3230         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3231         for __builtin_vec_mul.
3232
3233 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3234
3235         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3236         -mno-htm.
3237
3238 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
3239
3240         * spellcheck.c (selftest::test_find_closest_string): New function.
3241         (spellcheck_c_tests): Call the above.
3242
3243 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3244
3245         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3246
3247 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
3248
3249         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3250         Yv=Yv,C alternatives.
3251
3252 2016-06-07  Richard Biener  <rguenther@suse.de>
3253
3254         PR c/61564
3255         * common.opt (ffast-math): Make Optimization.
3256
3257 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
3258             Prachi Godbole  <prachi.godbole@imgtec.com>
3259
3260         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
3261         `fabs' and `fneg' type attributes.
3262         (p5600_fpu_fabs): Add `fmove' to the comment.
3263
3264 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3265
3266         * gimple.c: Include builtins.h
3267         (gimple_inexpensive_call_p): New function.
3268         * gimple.h (gimple_inexpensive_call_p): Declare.
3269         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
3270         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
3271         fix formatting.
3272
3273 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
3274
3275         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
3276         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
3277         warning_at_rich_loc, warning_n, pedwarn, permerror,
3278         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
3279         sorry, fatal_error, internal_error, internal_error_no_backtrace):
3280         Use the above.
3281
3282 2016-06-07  Richard Biener  <rguenther@suse.de>
3283
3284         PR tree-optimization/71428
3285         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
3286         BIT_FIELD_REF op vs. load.
3287
3288 2016-06-07  Richard Biener  <rguenther@suse.de>
3289
3290         PR middle-end/71423
3291         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
3292         for signed ops.
3293
3294 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3295
3296         * config/pa/pa.md (call): Generate indirect long calls to non-local
3297         functions on TARGET_64BIT.
3298         (call_value): Likewise.
3299
3300 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3301
3302         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3303         pattern and subsequent splitters.
3304         (call_val_reg_64bit_post_reload): Likewise.
3305
3306 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3307
3308         PR middle-end/71408
3309         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3310         propagate_op_to_single_use.
3311
3312 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3313
3314         PR middle-end/71281
3315         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3316
3317 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3318
3319         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3320         (enum x86_dirflag_state): New enum.
3321         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3322         (machine_function): Remove needs_cld.
3323         (ix86_current_function_needs_cld): Remove.
3324         * config/i386/i386.c (ix86_set_func_type): Set
3325         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3326         (ix86_expand_prologue): Do not emit CLD here.
3327         (ix86_dirflag_mode_needed): New function.
3328         (ix86_dirflag_mode_entry): Ditto.
3329         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3330         (ix86_mode_after): Ditto.
3331         (ix86_mode_entry): Ditto.
3332         (ix86_mode_exit): Ditto.
3333         (ix86_emit_mode_set): Ditto.
3334         * config/i386/i386.md (strmov_singleop): Set
3335         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3336         Do not set ix86_current_function_needs_cld.
3337         (rep_mov): Ditto.
3338         (strset_singleop): Ditto.
3339         (rep_stos): Ditto.
3340         (cmpstrnqi_nz_1): Ditto.
3341         (cmpstrnqi_1): Ditto.
3342         (strlenqi_1): Ditto.
3343
3344 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3345
3346         PR tree-optimization/71259
3347         * tree-vect-slp.c (vect_get_constant_vectors): For
3348         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3349         one for constant op, and use COND_EXPR for non-constant.
3350
3351 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3352
3353         * Makefile.in (OBJS): Add function-tests.o,
3354         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3355         selftest-run-tests.o.
3356         (OBJS-libcommon): Add selftest.o.
3357         (OBJS-libcommon-target): Add selftest.o.
3358         (all.internal): Add "selftest".
3359         (all.cross): Likewise.
3360         (selftest): New phony target.
3361         (s-selftest): New target.
3362         (selftest-gdb): New phony target.
3363         (COLLECT2_OBJS): Add selftest.o.
3364         * bitmap.c: Include "selftest.h".
3365         (selftest::test_gc_alloc): New function.
3366         (selftest::test_set_range): New function.
3367         (selftest::test_clear_bit_in_middle): New function.
3368         (selftest::test_copying): New function.
3369         (selftest::test_bitmap_single_bit_set_p): New function.
3370         (selftest::bitmap_c_tests): New function.
3371         * common.opt (fself-test): New.
3372         * diagnostic-show-locus.c: Include "selftest.h".
3373         (make_range): New function.
3374         (test_range_contains_point_for_single_point): New function.
3375         (test_range_contains_point_for_single_line): New function.
3376         (test_range_contains_point_for_multiple_lines): New function.
3377         (assert_eq): New function.
3378         (test_get_line_width_without_trailing_whitespace): New function.
3379         (selftest::diagnostic_show_locus_c_tests): New function.
3380         * et-forest.c: Include "selftest.h".
3381         (selftest::test_single_node): New function.
3382         (selftest::test_simple_tree): New function.
3383         (selftest::test_disconnected_nodes): New function.
3384         (selftest::et_forest_c_tests): New function.
3385         * fold-const.c: Include "selftest.h".
3386         (selftest::assert_binop_folds_to_const): New function.
3387         (selftest::assert_binop_folds_to_nonlvalue): New function.
3388         (selftest::test_arithmetic_folding): New function.
3389         (selftest::fold_const_c_tests): New function.
3390         * function-tests.c: New file.
3391         * gimple.c: Include "selftest.h".
3392         Include "gimple-pretty-print.h".
3393         (selftest::verify_gimple_pp): New function.
3394         (selftest::test_assign_single): New function.
3395         (selftest::test_assign_binop): New function.
3396         (selftest::test_nop_stmt): New function.
3397         (selftest::test_return_stmt): New function.
3398         (selftest::test_return_without_value): New function.
3399         (selftest::gimple_c_tests): New function.
3400         * hash-map-tests.c: New file.
3401         * hash-set-tests.c: New file.
3402         * input.c: Include "selftest.h".
3403         (selftest::assert_loceq): New function.
3404         (selftest::test_accessing_ordinary_linemaps): New function.
3405         (selftest::test_unknown_location): New function.
3406         (selftest::test_builtins): New function.
3407         (selftest::test_reading_source_line): New function.
3408         (selftest::input_c_tests): New function.
3409         * rtl-tests.c: New file.
3410         * selftest-run-tests.c: New file.
3411         * selftest.c: New file.
3412         * selftest.h: New file.
3413         * spellcheck.c: Include "selftest.h".
3414         (selftest::levenshtein_distance_unit_test_oneway): New function,
3415         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3416         (selftest::levenshtein_distance_unit_test): Likewise.
3417         (selftest::spellcheck_c_tests): Likewise.
3418         * toplev.c: Include selftest.h.
3419         (toplev::run_self_tests): New.
3420         (toplev::main): Handle -fself-test.
3421         * toplev.h (toplev::run_self_tests): New.
3422         * tree.c: Include "selftest.h".
3423         (selftest::test_integer_constants): New function.
3424         (selftest::test_identifiers): New function.
3425         (selftest::test_labels): New function.
3426         (selftest::tree_c_tests): New function.
3427         * tree-cfg.c: Include "selftest.h".
3428         (selftest::push_fndecl): New function.
3429         (selftest::test_linear_chain): New function.
3430         (selftest::test_diamond): New function.
3431         (selftest::test_fully_connected): New function.
3432         (selftest::tree_cfg_c_tests): New function.
3433         * vec.c: Include "selftest.h".
3434         (selftest::safe_push_range): New function.
3435         (selftest::test_quick_push): New function.
3436         (selftest::test_safe_push): New function.
3437         (selftest::test_truncate): New function.
3438         (selftest::test_safe_grow_cleared): New function.
3439         (selftest::test_pop): New function.
3440         (selftest::test_safe_insert): New function.
3441         (selftest::test_ordered_remove): New function.
3442         (selftest::test_unordered_remove): New function.
3443         (selftest::test_block_remove): New function.
3444         (selftest::reverse_cmp): New function.
3445         (selftest::test_qsort): New function.
3446         (selftest::vec_c_tests): New function.c.
3447         * wide-int.cc: Include selftest.h and wide-int-print.h.
3448         (selftest::from_int <wide_int>): New function.
3449         (selftest::from_int <offset_int>): New function.
3450         (selftest::from_int <widest_int>): New function.
3451         (selftest::assert_deceq): New function.
3452         (selftest::assert_hexeq): New function.
3453         (selftest::test_printing <VALUE_TYPE>): New function template.
3454         (selftest::test_ops <VALUE_TYPE>): New function template.
3455         (selftest::test_comparisons <VALUE_TYPE>): New function template.
3456         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
3457         template.
3458         (selftest::wide_int_cc_tests): New function.
3459
3460 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3461
3462         PR middle-end/37780
3463         * ifcvt.c (noce_try_ifelse_collapse): New function.
3464         Declare prototype.
3465         (noce_process_if_block): Call noce_try_ifelse_collapse.
3466         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
3467         (simplify_ternary_operation): Use the above to simplify
3468         conditional CLZ/CTZ expressions.
3469
3470 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3471
3472         PR middle-end/37780
3473         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
3474         define_insn_and_split.
3475
3476 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3477
3478         PR middle-end/37780
3479         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
3480
3481 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3482
3483         PR c/24414
3484         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
3485         Implicitly clobber memory for basic asm with non-empty assembler
3486         string.  Use targetm.md_asm_adjust also here.
3487         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
3488         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
3489         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
3490         non-empty assembler string.
3491         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
3492         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
3493         (decode_asm_operands): Handle basic asm in PARALLEL block.
3494         (extract_insn): Handle basic asm in PARALLEL block.
3495         * doc/extend.texi: Mention new behavior of basic asm.
3496         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
3497         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
3498         branch_needs_nop_p): Use asm_noperands.
3499
3500 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3501
3502         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3503         Include the M7 SPARC DFA scheduler.
3504         New attribute v3pipe.
3505         Annotate insns with v3pipe where appropriate.
3506         Define cpu_feature vis4.
3507         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3508         Add (V8QI "8") to vbits.
3509         Add insns {add,sub}v8qi3
3510         Add insns ss{add,sub}v8qi3
3511         Add insns us{add,sub}{v8qi,v4hi}3
3512         Add insns {min,max}{v8qi,v4hi,v2si}3
3513         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3514         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3515         * config/sparc/niagara4.md: Add a comment explaining the
3516         discrepancy between the documented latenty numbers and the
3517         implemented ones.
3518         * config/sparc/niagara7.md: New file.
3519         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3520         supports SPARC5 and VIS 4.0 instructions.
3521         * configure: Regenerate.
3522         * config.in: Likewise.
3523         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3524         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3525         TARGET_CPU_niagara7.
3526         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3527         (CPP_CPU_SPEC): Handle niagara7.
3528         (ASM_CPU_SPEC): Likewise.
3529         * config/sparc/sparc-opts.h (processor_type): Add
3530         PROCESSOR_NIAGARA7.
3531         (mvis4): New option.
3532         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3533         (AS_NIAGARA7_FLAG): Define.
3534         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3535         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3536         (CPP_CPU_SPEC): Handle niagara7.
3537         (ASM_CPU_SPEC): Likewise.
3538         * config/sparc/sparc.c (niagara7_costs): Define.
3539         (sparc_option_override): Handle niagara7 and adjust cache-related
3540         parameters with better values for niagara cpus.  Also support VIS4.
3541         (sparc32_initialize_trampoline): Likewise.
3542         (sparc_use_sched_lookahead): Likewise.
3543         (sparc_issue_rate): Likewise.
3544         (sparc_register_move_cost): Likewise.
3545         (dump_target_flag_bits): Support VIS4.
3546         (sparc_vis_init_builtins): Likewise.
3547         (sparc_builtins): Likewise.
3548         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3549         VIS4 4.0.
3550         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3551         UltraSparc M7.
3552         * config/sparc/sparc.opt (sparc_processor_type): New value
3553         niagara7.
3554         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3555         VIS4 builtins.
3556         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3557         -mvis4.
3558         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3559         VIS4 builtins.
3560
3561 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
3562
3563         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
3564
3565 2016-06-06  Richard Biener  <rguenther@suse.de>
3566
3567         PR tree-optimization/71398
3568         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
3569         remove edges.
3570
3571 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
3572
3573         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
3574         ft32_expand_prolog, ft32_expand_epilogue):
3575         Handle pretend_args.
3576         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
3577         * config/ft32/ft32.md: Add pretend_returner.
3578
3579 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
3580
3581         PR target/71389
3582         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3583         Copy op1 RTX to avoid invalid sharing.
3584         (ix86_expand_vector_move_misalign): Ditto.
3585
3586 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
3587
3588         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
3589         ATTRIBUTE_UNUSED.
3590
3591 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3592
3593         * predict.c (predicted_by_loop_heuristics_p): New function.
3594         (predict_iv_comparison): Use it.
3595         (predict_loops): Walk from innermost loops; do not predict edges
3596         leaving multiple loops multiple times; implement
3597         PRED_LOOP_ITERATIONS_MAX heuristics.
3598         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
3599
3600 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3601
3602         * cfg.c (check_bb_profile): Do not report mismatched profiles when
3603         only edges out of BB are EH edges.
3604
3605 2016-06-04  Martin Sebor  <msebor@redhat.com>
3606             Marcin Baczyński  <marbacz@gmail.com>
3607
3608         PR c/48116
3609         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
3610         a void expression in a void function.
3611
3612 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3613
3614         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
3615         aux; dump reasons of decisions.
3616         (should_duplicate_loop_header_p): Likewise.
3617         (do_while_loop_p): Likewise.
3618         (ch_base::copy_headers): Dump asi num insns duplicated.
3619
3620 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3621
3622         PR tree-optimization/71405
3623         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3624         incompatible type, build a new clobber with the right type instead
3625         of building a VIEW_CONVERT_EXPR around it.
3626
3627 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3628
3629         PR tree-optimization/52171
3630         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
3631         by_pieces_ninsns instead of move_by_pieces_ninsns.
3632
3633 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3634
3635         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
3636         for reg+reg addressing mode.
3637
3638 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3639
3640         * rs6000-c.c (c/c-tree.h): Add #include.
3641         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
3642         in C++ when found in the base position of vec_ld or vec_st.
3643
3644 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3645
3646         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
3647         use of profile unless profile status is PROFILE_READ.
3648         * profile.c (compute_branch_probabilities): Set profile status
3649         only after reporting predictor hitrates.
3650
3651 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
3652
3653         PR target/71276
3654         PR target/71277
3655         * common.opt (ffp-int-builtin-inexact): New option.
3656         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
3657         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
3658         (ceil@var{m}2): Document dependence on this option.
3659         * ipa-inline-transform.c (inline_call): Handle
3660         flag_fp_int_builtin_inexact.
3661         * ipa-inline.c (can_inline_edge_p): Likewise.
3662         * config/i386/i386.md (rintxf2): Do not test
3663         flag_unsafe_math_optimizations.
3664         (rint<mode>2_frndint): New define_insn.
3665         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
3666         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
3667         for 387 instead of extending and truncating.
3668         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
3669         !flag_trapping_math instead of flag_unsafe_math_optimizations.
3670         Change to frndint<mode>2_<rounding>.
3671         (frndintxf2_<rounding>_i387): Likewise.  Change to
3672         frndint<mode>2_<rounding>_i387.
3673         (<rounding_insn>xf2): Likewise.
3674         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
3675         !flag_trapping_math instead of flag_unsafe_math_optimizations for
3676         x87.  Test TARGET_ROUND || !flag_trapping_math ||
3677         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
3678         SSE.  Use ROUND_NO_EXC in constant operand of
3679         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
3680         for 387 instead of extending and truncating.
3681
3682 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3683             Julia Koval  <julia.koval@intel.com>
3684
3685         PR target/66960
3686         PR target/67630
3687         PR target/67634
3688         PR target/67841
3689         PR target/68037
3690         PR target/68618
3691         PR target/68661
3692         PR target/69575
3693         PR target/69596
3694         PR target/69734
3695         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
3696         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
3697         all registers, except for function return registers if there are
3698         no caller-saved registers.
3699         (ix86_set_func_type): New function.
3700         (ix86_set_current_function): Call ix86_set_func_type to set
3701         no_caller_saved_registers and func_type.  Call reinit_regs if
3702         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
3703         nor x87 instructions in interrupt handler nor function with
3704         no_caller_saved_registers attribute.
3705         (ix86_function_ok_for_sibcall): Return false if there are no
3706         caller-saved registers.
3707         (type_natural_mode): Don't warn ABI change for MMX in interrupt
3708         handler.
3709         (ix86_function_arg_advance): Skip for callee in interrupt handler.
3710         (ix86_function_arg): Return special arguments in interrupt handler.
3711         (ix86_promote_function_mode): Promote pointer to word_mode only
3712         for normal functions.
3713         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
3714         interrupt handler.
3715         (ix86_epilogue_uses): New function.
3716         (ix86_hard_regno_scratch_ok): Likewise.
3717         (ix86_save_reg): Preserve all registers in interrupt handler
3718         after reload.  Preserve all registers, except for function return
3719         registers, if there are no caller-saved registers after reload.
3720         (find_drap_reg): Always use callee-saved register if there are
3721         no caller-saved registers.
3722         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
3723         for interrupt handler.
3724         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
3725         Emit cld instruction if stringops are used in interrupt handler
3726         or interrupt handler isn't a leaf function.
3727         (ix86_expand_epilogue): Generate interrupt return for interrupt
3728         handler and pop the 'ERROR_CODE' off the stack before interrupt
3729         return in exception handler.
3730         (ix86_expand_call): Disallow calling interrupt handler directly.
3731         If there are no caller-saved registers, mark all registers that
3732         are clobbered by the call which returns as clobbered.
3733         (ix86_handle_no_caller_saved_registers_attribute): New function.
3734         (ix86_handle_interrupt_attribute): Likewise.
3735         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
3736         attributes.
3737         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
3738         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
3739         accumulation in interrupt function if stack may be realigned to
3740         avoid DRAP.
3741         (EPILOGUE_USES): New.
3742         (function_type): New enum.
3743         (machine_function): Add func_type and no_caller_saved_registers.
3744         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
3745         (interrupt_return): New pattern.
3746         * doc/extend.texi: Document x86 interrupt and
3747         no_caller_saved_registers attributes.
3748
3749 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
3750
3751         PR tree-optimization/52171
3752         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
3753         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
3754         Look for constant strings.  Move some code to emit_block_cmp_hints
3755         and use it.
3756         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
3757         * defaults.h (COMPARE_MAX_PIECES): New macro.
3758         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
3759         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
3760         (clear_by_pieces_1): Don't declare.  Move definition before use.
3761         (can_do_by_pieces): New static function.
3762         (can_move_by_pieces): Use it.  Return bool.
3763         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
3764         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
3765         (class pieces_addr); New.
3766         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
3767         pieces_addr::adjust, pieces_addr::increment_address,
3768         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
3769         functions for it.
3770         (class op_by_pieces_d): New.
3771         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
3772         functions for it.
3773         (class move_by_pieces_d, class compare_by_pieces_d,
3774         class store_by_pieces_d): New subclasses of op_by_pieces_d.
3775         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
3776         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
3777         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
3778         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
3779         compare_by_pieces_d::finish_mode): New member functions.
3780         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
3781         functions.
3782         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
3783         (emit_block_cmp_hints): New function.
3784         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
3785         use the newly defined classes.
3786         * expr.h (by_pieces_constfn): New typedef.
3787         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
3788         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
3789         (move_by_pieces_ninsns): Don't declare.
3790         (can_move_by_pieces): Change return value to bool.
3791         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
3792         (compare_by_pieces_branch_ratio): New hook.
3793         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
3794         (by_pieces_ninsns): Declare.
3795         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
3796         COMPARE_BY_PIECES.
3797         (default_compare_by_pieces_branch_ratio): New function.
3798         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
3799         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
3800         * doc/tm.texi: Regenerate.
3801         * tree-ssa-strlen.c: Include "builtins.h".
3802         (handle_builtin_memcmp): New static function.
3803         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
3804         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
3805
3806 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3807
3808         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
3809         relevant stmts which are simple and invariant.
3810         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
3811         instead of simple and invariant
3812
3813 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3814
3815         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
3816         (vectorizable_reduction): Check for new relevant state.
3817         (vectorizable_live_operation): vectorize live stmts using
3818         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
3819         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
3820         (vect_stmt_relevant_p): Check for stmts which are only used live.
3821         (process_use): Use of a stmt does not inherit it's live value.
3822         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
3823         (vect_analyze_stmt): Check for new relevant state.
3824         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
3825         outside the loop, but not inside it.
3826
3827 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3828
3829         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
3830         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
3831         (vect_get_vec_def_for_operand): Split out code.
3832
3833 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
3834
3835         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
3836
3837 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3838
3839         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
3840
3841 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3842
3843         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
3844
3845 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3846
3847         PR middle-end/71387
3848         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3849         to noreturn e->callee->decl that has void return type and void
3850         arguments, adjust gimple_call_fntype and remove lhs even if it had
3851         previously addressable type.
3852
3853 2016-06-02  Jeff Law  <law@redhat.com>
3854
3855         PR tree-optimization/71328
3856         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
3857         error when checking for a jump back onto the copied path.
3858
3859 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
3860
3861         * config/microblaze/microblaze.c (get_branch_target): Add return
3862         NULL_RTX for the non-CALL_P case.
3863         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
3864         (insert_wic): Remove unused local "j".
3865
3866 2016-06-02  Martin Liska  <mliska@suse.cz>
3867
3868         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
3869
3870 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3871             Julia Koval  <julia.koval@intel.com>
3872
3873         * function.c (assign_parm_setup_stack): Force source into a
3874         register if needed.
3875         * target.def (function_incoming_arg): Update documentation to
3876         allow arbitrary address computation based on hard register.
3877         * doc/tm.texi: Regenerated.
3878
3879 2016-06-02  Martin Liska  <mliska@suse.cz>
3880
3881         * predict.c (combine_predictions_for_bb): Fix first match in
3882         cases where a first predictor contains more than one occurence
3883         in list of predictors.  Take the best value in such case.
3884
3885 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3886
3887         PR rtl-optimization/71295
3888         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
3889         offset would go over the size of the inner mode reject it.
3890
3891 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
3892
3893         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
3894         x=x,x and v=v,m instead of x=x,m.
3895
3896         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
3897         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
3898         alternative to v=rm,C.
3899
3900         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
3901         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
3902         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
3903         instead of vex for the last two above mentioned alternatives.
3904
3905 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3906
3907         PR target/70830
3908         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3909
3910 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
3911
3912         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
3913
3914 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
3915
3916         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
3917         from int to unsigned.
3918
3919 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3920
3921         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3922         alternatives, eliminating preferred register class.  Add support
3923         for the MTVSRDD instruction in ISA 3.0.
3924         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3925         reg_or_indexed_operand.
3926         (vsx_splat_v4sf_internal): Likewise.
3927
3928 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3929
3930         PR target/71186
3931         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3932         for loading up all 0's or all 1's.
3933
3934 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3935
3936         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
3937
3938 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3939
3940         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
3941         extension.
3942         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
3943         * gcc.c (set_source_date_epoch_envvar): New function, sets
3944         the SOURCE_DATE_EPOCH environment variable to the current time.
3945
3946 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3947
3948         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3949         the factor for live Phi nodes.
3950
3951 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3952
3953         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
3954         * tree-parloops.c (parallelize_loops): likewise.
3955         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
3956         tree_unswitch_outer_loop): likewise.
3957
3958 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3959
3960         PR middle-end/71371
3961         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3962         around creation of the temporary.
3963
3964 2016-06-01  Richard Biener  <rguenther@suse.de>
3965
3966         PR tree-optimization/71366
3967         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
3968         (unloop_loops): Move removing edges here ...
3969         (try_unroll_loop_completely): ... from here.
3970         (try_peel_loop): ... and here.
3971         (tree_unroll_loops_completely_1): Track parent loops via
3972         bitmap of header BBs.
3973         (tree_unroll_loops_completely): Adjust for that.
3974
3975 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3976
3977         * config/rs6000/altivec.h (vec_slv): New macro.
3978         (vec_srv): New macro.
3979         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3980         (UNSPEC_VSRV): New value.
3981         (vslv): New insn.
3982         (vsrv): New insn.
3983         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3984         (vsrv): New builtin definition.
3985         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3986         define argument types for new builtin.
3987         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3988         new builtin.
3989         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3990         functions.
3991
3992 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3993             Jocelyn Mayer  <l_indien@magic.fr>
3994
3995         PR target/67310
3996         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3997         detect processor family for signature_CENTAUR_ebx.
3998         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3999         signature_CENTAUR_ebx.
4000         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
4001         <default>: Pass x86-64 for has_longmode.
4002
4003 2016-06-01  Nathan Sidwell  <nathan@acm.org>
4004
4005         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
4006         undefined weak.
4007
4008 2016-06-01  Richard Biener  <rguenther@suse.de>
4009
4010         PR tree-optimization/71261
4011         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
4012         of stmts successfully put in the bool pattern.  Remove
4013         single-use restriction.
4014         (adjust_bool_pattern_cast): Add cast at the use site via the
4015         pattern def sequence.
4016         (adjust_bool_pattern): Remove recursion, maintain a hash-map
4017         of patterned defs.  Use the pattern def seqence instead of
4018         multiple independent patterns.
4019         (sort_after_uid): New qsort compare function.
4020         (adjust_bool_stmts): New function to process stmts in the bool
4021         pattern in IL order.
4022         (vect_recog_bool_pattern): Adjust.
4023         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
4024         (ifcvt_walk_pattern_tree): Likewise.
4025         (stmt_is_root_of_bool_pattern): Likewise.
4026         (ifcvt_repair_bool_pattern): Likewise.
4027         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
4028
4029 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
4030
4031         * loop-unroll.c (decide_unroll_constant_iterations,
4032         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
4033         likely upper bounds.
4034         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
4035
4036 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
4037
4038         * tree-core.h (enum omp_clause_code): Remove
4039         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
4040
4041 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4042
4043         * config/arm/sync.md (arm_store_exclusive<mode>):
4044         Use 'H' output modifier on operands[2] rather than creating a new
4045         entry in out-of-bounds memory of the operands array.
4046         (arm_store_release_exclusivedi): Likewise.
4047
4048 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4049
4050         * config/arm/arm.c (arm_fusion_enabled_p): New function.
4051         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
4052         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
4053         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4054
4055 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4056
4057         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
4058         into account live statements for mask producers.
4059
4060 2016-06-01  Richard Biener  <rguenther@suse.de>
4061
4062         PR tree-optimization/71311
4063         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
4064         restrict to non-INTEGER_CST @0.
4065
4066 2016-06-01  Richard Biener  <rguenther@suse.de>
4067
4068         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
4069         (relational patterns): Use :c to avoid pattern duplications.
4070
4071 2016-06-01  Richard Biener  <rguenther@suse.de>
4072
4073         * genmatch.c (comparison_code_p): New predicate.
4074         (swap_tree_comparison): New function.
4075         (commutate): Add for_vec parameter to append new for entries.
4076         Support commutating relational operators by swapping it alongside
4077         operands.
4078         (lower_commutative): Adjust.
4079         (dt_simplify::gen): Do not pass artificial operators to gen
4080         functions.
4081         (decision_tree::gen): Do not add artificial operators as parameters.
4082         (parser::parse_expr): Verify operator commutativity when :c is
4083         applied.  Allow :C to override this.
4084         * match.pd: Adjust patterns to use :C instead of :c where required.
4085
4086 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
4087
4088         PR tree-optimization/71077
4089         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
4090         the combining step, use boolean_false_node and boolean_true_node
4091         as the designated false/true return values.
4092
4093 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4094
4095         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
4096         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
4097         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
4098         PRED_LOOP_EXIT.
4099
4100 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4101
4102         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
4103         of flags impliying the register renaming.
4104         * toplev.c (process_options): Do not imply flag_rename_registers with
4105         loop peeling.
4106
4107 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4108
4109         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
4110         default implementation.
4111
4112 2016-05-31  Nathan Sidwell  <nathan@acm.org>
4113
4114         * dwarf2out.c (cur_line_info_table): Add GTY marker.
4115
4116 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4117
4118         * config/sh/constraints.md (b): Remove constraint.
4119         * config/sh/predicates.md (arith_reg_operand): Remove
4120         TARGET_REGISTER_P.
4121         * config/sh/sh-modes.def (PDI): Remove.
4122         * config/sh/sh.c (sh_target_reg_class,
4123         sh_optimize_target_register_callee_saved): Remove functions.
4124         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
4125         (sh_expand_epilogue): Update comment.
4126         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
4127         sh_secondary_reload): Remove TARGET_REGS related code.
4128         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
4129         TARGET_REGISTER_P): Remove macros.
4130         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
4131         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
4132         TR1_REG, TR2_REG): Remove constants.
4133         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
4134
4135 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4136
4137         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
4138         define_expand patterns.
4139         (adddi3_compact): Rename to adddi3.
4140         (subdi3_compact): Rename to subdi3.
4141         (*negdi2): Rename to negdi2.
4142         (*abs<mode>2): Rename to abs<mode>2.
4143
4144 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4145
4146         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4147         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4148         (atomic_sub_fetchsi): ... this new pattern.
4149         (mvtc): Add CC_REG clobber.
4150
4151 2016-05-31  Marek Polacek  <polacek@redhat.com>
4152
4153         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4154
4155 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4156
4157         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4158         aarch64_fusion_enabled_p to check for fusion capabilities.
4159
4160 2016-05-31  Richard Biener  <rguenther@suse.de>
4161
4162         PR tree-optimization/71352
4163         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4164         minus one and a negate.
4165
4166 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4167
4168         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4169         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4170         Delete prototype.
4171         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4172         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4173         Remove use of aarch64_simd_attr_length_move, set length attribute
4174         directly.
4175         (*aarch64_be_movoi): Likewise.
4176         (*aarch64_be_movci): Likewise.
4177         (*aarch64_be_movxi): Likewise.
4178
4179 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4180
4181         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4182         It no longer does that.
4183         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4184
4185 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
4186
4187         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4188         attribute __unused__.
4189
4190 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4191
4192         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4193         * config/arm/arm.c (arm_arch_thumb1): Define.
4194         (arm_option_override): Initialize arm_arch_thumb1.
4195         * config/arm/arm.h (arm_arch_thumb1): Declare.
4196         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4197         support Thumb-1 ISA.
4198
4199 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4200
4201         PR target/71346
4202         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4203         `Yv' for scalar operand.
4204
4205 2016-05-31  Tom de Vries  <tom@codesourcery.com>
4206
4207         PR tree-optimization/69068
4208         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4209         phis with more than two args.
4210
4211 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
4212
4213         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4214         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4215         target.
4216
4217 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
4218
4219         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4220         tune_64.
4221         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4222         support on SPARC.
4223         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4224         cpu_32, cpu_64, tune_32 and tune_64.
4225         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4226
4227 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
4228
4229         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4230
4231 2016-05-30  Andi Kleen  <ak@linux.intel.com>
4232
4233         * auto-profile.c (read_profile): Replace asserts with errors
4234         when file does not exist.
4235         * gcov-io.c (gcov_read_words): Dito.
4236
4237 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4238
4239         * tree-cfg.c (print_loop): Print likely upper bounds.
4240
4241 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4242
4243         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4244         * opts.c (default_options): Enable peel loops at -O3.
4245         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4246         (try_peel_loop): Do not re-peel already peeled loops;
4247         use likely upper bounds; fix profile updating.
4248         (pass_complete_unroll::execute): Initialize peeled_loops.
4249
4250 2016-05-30  Martin Liska  <mliska@suse.cz>
4251
4252         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4253         computed costs by frequency of BB they belong to.
4254         (get_scaled_computation_cost_at): New function.
4255
4256 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
4257             Marc Glisse  <marc.glisse@inria.fr>
4258
4259         PR tree-optimization/71289
4260         * match.pd (-1 / B < A, A > -1 / B): New transformations.
4261
4262 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4263
4264         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
4265
4266 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4267
4268         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
4269         for peeled copies; avoid underflow when updating estimates; correctly
4270         scale loop profile.
4271
4272 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4273
4274         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
4275         r236875. Corrected oe3 to oe2 as obvious.
4276
4277 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4278
4279         PR middle-end/71269
4280         PR middle-end/71252
4281         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
4282         that inserted stmt will not dominate stmts that defines its operand.
4283         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
4284         (rewrite_expr_tree_parallel): Likewise.
4285
4286 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4287
4288         PR middle-end/71252
4289         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
4290         all fields including stmt_to_insert are swapped.
4291
4292 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4293
4294         * predict.h (force_edge_cold): Declare.
4295         * predict.c (force_edge_cold): New function.
4296         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4297         updating.
4298         (canonicalize_loop_induction_variables): Fix formating.
4299
4300 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4301
4302         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4303         (visium_expand_copysign): Use gen_int_mode directly.
4304         (visium_compute_frame_size): Minor tweaks.
4305
4306 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4307
4308         * tree-vect-loop.c (vect_analyze_loop_2): Use
4309         likely_max_stmt_executions_int.
4310
4311 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4312
4313         PR tree-optimization/69067
4314         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4315
4316 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4317
4318         PR target/71245
4319         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4320         New peepholes to remove unneeded fild/fistp pairs.
4321         (define_peephole2 atomic_loaddi_fpu): Ditto.
4322
4323 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4324
4325         * predict.c (maybe_hot_frequency_p): Avoid division.
4326
4327 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4328
4329         * doc/install.texi: Use https for shop.fsf.org.
4330
4331 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4332
4333         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4334         likely_max_stmt_executions_int.
4335
4336 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4337
4338         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4339         likely_max_stmt_executions_int.
4340
4341 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4342
4343         * profile.c (compute_branch_probabilities): Do not report hitrates
4344         here.
4345         (branch_prob): Report hitrates here.
4346         * predict.c (gimple_predict_edge): Do not assert profile status;
4347         fix formatting issues.
4348
4349 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4350
4351         * predict.c (edge_predicted_by_p): New function.
4352         (predict_paths_for_bb): Do not put multiple predictions of the same type
4353         on one edge.
4354
4355 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4356
4357         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4358         commit.
4359
4360 2016-05-28  Alan Modra  <amodra@gmail.com>
4361
4362         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4363
4364 2016-05-28  Alan Modra  <amodra@gmail.com>
4365
4366         PR rtl-optimization/71275
4367         * ira.c (ira): Free dominance info.
4368
4369 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4370
4371         * doc/sourcebuild.texi: New address for upstream Go repository.
4372
4373 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4374
4375         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4376         (TARGET_ARM_V7M): Likewise.
4377
4378 2016-05-26  Jeff Law  <law@redhat.com>
4379
4380         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4381         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4382         * passes.def: Add jump threading passes before DOM/VRP.
4383         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4384         argument to a basic block from an edge.  Remove tests which are
4385         handled elsewhere.
4386         (pass_data_thread_jumps, class pass_thread_jumps): New.
4387         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4388         (make_pass_thread_jumps): Likewise.
4389         * tree-pass.h (make_pass_thread_jumps): Declare.
4390
4391 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4392
4393         * config/visium/visium-protos.h (split_double_move): Rename into...
4394         (visium_split_double_move): ...this.
4395         (visium_split_double_add): Declare.
4396         * config/visium/visium.c (split_double_move): Rename into...
4397         (visium_split_double_move): ...this.
4398         (visium_split_double_add): New function.
4399         (visium_expand_copysign): Renumber operands for consistency.
4400         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4401         (DFmode move splitter): Likewise.
4402         (*addi3_insn): Split by means of visium_split_double_add.
4403         (*adddi3_insn_flags): Delete.
4404         (*plus_plus_sltu<subst_arith>): New insn.
4405         (*subdi3_insn): Split by means of visium_split_double_add.
4406         (subdi3_insn_flags): Delete.
4407         (*minus_minus_sltu<subst_arith>): New insn.
4408         (*negdi2_insn): Split by means of visium_split_double_add.
4409         (*negdi2_insn_flags): Delete.
4410
4411 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4412
4413         * configure.ac: Treat a --with-headers option without argument
4414         the same as the default (i.e. consult sys-include directory).
4415         * configure: Regenerate.
4416
4417 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4418
4419         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4420         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4421         prototype.
4422         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4423         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4424
4425 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4426
4427         PR target/63596
4428         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4429         tree-stdarg analysis results.
4430         (aarch64_setup_incoming_varargs): Likewise.
4431
4432 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4433
4434         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4435         va_list_gpr_counter_field and va_list_fpr_counter_field.
4436
4437 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
4438
4439         PR67609
4440         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
4441         * config/aarch64/aarch64.c
4442         (aarch64_cannot_change_mode_class): Remove function.
4443         * config/aarch64/aarch64-protos.h
4444         (aarch64_cannot_change_mode_class): Remove.
4445
4446 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4447
4448         * cfgloop.c (record_niter_bound): Record likely upper bounds.
4449         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
4450         get_likely_max_loop_iterations_int): New.
4451         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
4452         any_likely_upper_bound.
4453         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
4454         Declare.
4455         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
4456         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
4457         upper bound.
4458         (unroll_loop_constant_iterations): Likewise.
4459         (unroll_loop_runtime_iterations): Likewise.
4460         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
4461         * lto-streamer-out.c (output_cfg): Likewise.
4462         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
4463         bounds.
4464         (canonicalize_loop_induction_variables): Dump likely upper bounds.
4465         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
4466         (likely_max_loop_iterations): New.
4467         (likely_max_loop_iterations_int): New.
4468         (likely_max_stmt_executions): New.
4469         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
4470         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
4471         likely_max_stmt_executions): Declare.
4472
4473 2016-05-27  Marek Polacek  <polacek@redhat.com>
4474
4475         PR middle-end/71308
4476         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
4477
4478 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4479
4480         * config/s390/s390.md (2x risbg splitters): Use
4481         reg_overlap_mentioned_p instead of rtx_equal_p.
4482
4483 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4484
4485         * combine.c (make_compound_operation): Take known zero bits into
4486         account when checking for possible zero_extend.
4487
4488 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4489
4490         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
4491         Use const_int_operand for operand 2 predicate.  Simplify expand code
4492         as a result.
4493
4494 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4495
4496         PR middle-end/71279
4497         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4498         into comparison.
4499
4500 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4501
4502         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
4503         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
4504         that returns CC_SESWPmode and CC_ZESWPmode.
4505         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
4506         and CC_SESWPmode.
4507         (aarch64_rtx_costs): Likewise.
4508
4509 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4510
4511         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
4512         for ISA 3.0 min/max support.
4513         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
4514         conditional move support.
4515         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
4516         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
4517         available.
4518         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
4519         conditional moves where the comparison type is different from move
4520         type.
4521         (fp_minmax): New code iterator for smin/smax.
4522         (minmax): New code attributes for min/max.
4523         (SMINMAX): Likewise.
4524         (smax<mode>3): Combine min, max insns into one insn using the
4525         fp_minmax code iterator.  Add support for ISA 3.0 min/max
4526         instructions that don't need -ffast-math.
4527         (s<minmax><mode>3): Likewise.
4528         (smax<mode>3_vsx): Likewise.
4529         (smin<mode>3): Likewise.
4530         (s<minmax><mode>3_vsx): Likewise.
4531         (smin<mode>3_vsx): Likewise.
4532         (pre-VSX min/max splitters): Likewise.
4533         (s<minmax><mode>3_fpr): Likewise.
4534         (movsfcc): Rewrite floating point conditional moves to combine
4535         SFmode/DFmode into a single insn.
4536         (mov<mode>cc): Likewise.
4537         (movdfcc): Likewise.
4538         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
4539         SFDF2 iterators to handle all combinations.
4540         (fseldfsf4): Likewise.
4541         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
4542         (fseldfdf4): Likewise.
4543         (fselsfdf4): Likewise.
4544         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
4545         comparison instructions that set a 0/-1 mask, and use it for
4546         floating point conditional move via XXSEL.
4547         (fpmask<mode>): Likewise.
4548         (xxsel<mode>): Likewise.
4549         * config/rs6000/predicates.md (min_max_operator): Delete, no
4550         longer used.
4551         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
4552         instructions that generate a 0/-1 mask for use with XXSEL.
4553         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
4554         say whether floating point min/max is available, either through
4555         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
4556         (TARGET_MINMAX_DF): Likewise.
4557
4558 2016-05-27  Alan Modra  <amodra@gmail.com>
4559
4560         PR rtl-optimization/71275
4561         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
4562         for update_equiv_regs and combine_and_move_insns.
4563
4564 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
4565
4566         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
4567         if_then_else or cond RTXes to calculate attribute value.
4568         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
4569         <attr "length_immediate>: Ditto.
4570         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
4571         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
4572         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
4573         <attr "type">: Ditto.
4574         <attr "prefix_data16">: Ditto.
4575         <attr "prefix_extra">: Ditto.
4576         <attr "length_immediate">: Ditto.
4577         <attr "prefix">: Ditto.
4578         (vec_set<mode>_0) <attr "isa">: Ditto.
4579         <attr "prefix_extra">: Ditto.
4580         <attr "length_immediate">: Ditto.
4581         <attr "prefix">: Ditto.
4582         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
4583         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
4584         (sse2_storelpd) <attr "prefix_data16">: Ditto.
4585         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
4586         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
4587         <attr "length_immediate">: Ditto.
4588         <attr "prefix">: Ditto.
4589         (sse2_movsd) <attr "length_immediate">: Ditto.
4590         <attr "prefix">: Ditto.
4591         (vec_concatv2df)  <attr "isa">: Ditto.
4592         <attr "prefix">: Ditto.
4593         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
4594         (*vec_extractv2di_1) <attr "isa">: Ditto.
4595         <attr "type">: Ditto.
4596         <attr "length_immediate">: Ditto.
4597         <attr "prefix_rex">: Ditto.
4598         <attr "prefix_extra">: Ditto.
4599         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
4600         <attr "prefix_extra">: Ditto.
4601         <attr "length_immediate">: Ditto.
4602         (vec_concatv2di) <attr "isa">: Ditto.
4603         <attr "prefix_extra">: Ditto.
4604         <attr "length_immediate">: Ditto.
4605         <attr "prefix">: Ditto.
4606
4607 2016-05-26  Martin Liska  <mliska@suse.cz>
4608
4609         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
4610         function.
4611         (operator+): Likewise.
4612         (operator-): Likewise.
4613         (comp_cost::operator+=): Likewise.
4614         (comp_cost::operator-=): Likewise.
4615         (comp_cost::operator/=): Likewise.
4616         (comp_cost::operator*=): Likewise.
4617         (operator<): Likewise.
4618         (operator==): Likewise.
4619         (operator<=): Likewise.
4620         (new_cost): Remove.
4621         (infinite_cost_p): Likewise.
4622         (add_costs): Likewise.
4623         (sub_costs): Likewise.
4624         (compare_costs): Likewise.
4625         (set_group_iv_cost): Use the newly introduced functions.
4626         (get_address_cost): Likewise.
4627         (get_shiftadd_cost): Likewise.
4628         (force_expr_to_var_cost): Likewise.
4629         (split_address_cost): Likewise.
4630         (ptr_difference_cost): Likewise.
4631         (difference_cost): Likewise.
4632         (get_computation_cost_at): Likewise.
4633         (determine_group_iv_cost_generic): Likewise.
4634         (determine_group_iv_cost_address): Likewise.
4635         (determine_group_iv_cost_cond): Likewise.
4636         (autoinc_possible_for_pair): Likewise.
4637         (determine_group_iv_costs): Likewise.
4638         (cheaper_cost_pair): Likewise.
4639         (iv_ca_recount_cost): Likewise.
4640         (iv_ca_set_no_cp): Likewise.
4641         (iv_ca_set_cp): Likewise.
4642         (iv_ca_cost): Likewise.
4643         (iv_ca_new): Likewise.
4644         (iv_ca_dump): Likewise.
4645         (iv_ca_narrow): Likewise.
4646         (iv_ca_prune): Likewise.
4647         (iv_ca_replace): Likewise.
4648         (try_add_cand_for): Likewise.
4649         (try_improve_iv_set): Likewise.
4650         (find_optimal_iv_set): Likewise.
4651
4652 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4653
4654         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
4655         that internal functions will clobber all caller-saved registers.
4656
4657 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4658
4659         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4660         Return a better case_values_threshold when optimizing.
4661
4662 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4663
4664         * config/aarch64/aarch64-simd.md (aarch64_combinez):
4665         Add ? to integer variant.
4666         (aarch64_combinez_be): Likewise.
4667
4668 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4669
4670         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
4671         instead of x constraint.
4672         (vcvtps2ph256<mask_name>): Likewise.
4673
4674         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
4675         alternative.  Formatting fix.
4676
4677         * config/i386/sse.md
4678         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
4679         to ...
4680         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
4681         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
4682         maybe_evex prefix instead of vex.
4683         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
4684         EXT_REX_SSE_REG_P (op0) case in the splitter.
4685
4686 2016-05-25  Jeff Law  <law@redhat.com>
4687
4688         PR tree-optimization/71272
4689         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
4690         Update comments.  Add test for empty path.
4691
4692 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4693
4694         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
4695         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
4696         special case builtin.
4697         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4698         code for ALTIVEC_BUILTIN_VEC_CMPNE.
4699         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4700         for __builtin_vec_cmpne.
4701
4702 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4703
4704         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4705         redundant test and bail out if the type of the new operand is not
4706         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4707
4708 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4709
4710         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
4711         (x_ix86_target_flags_explicit): Remove.
4712         * config/i386/i386.c (ix86_function_specific_save): Do not copy
4713         x_ix86_target_flags_explicit.
4714         (ix86_function_specific_restore): Ditto.
4715
4716 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4717             H.J. Lu  <hongjiu.lu@intel.com>
4718
4719         PR target/70738
4720         * common/config/i386/i386-common.c
4721         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
4722         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
4723         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
4724         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
4725         (-mgeneral-regs-only): Add new option.
4726         * config/i386/i386.c (ix86_option_override_internal): Don't enable
4727         x87 instructions if only general registers are allowed.
4728         (ix86_target_string): Add ix86_flags argument. Handle additional
4729         flags options through ix86_flags argument.  Update all callers.
4730         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
4731
4732 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4733
4734         PR rtl-optimization/66940
4735         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
4736         decrementing desired_val will not overflow before performing these
4737         operations.
4738
4739 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
4740
4741         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
4742         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
4743         * config/i386/i386.c (enum ix86_builtins): Add
4744         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
4745         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
4746         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
4747         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
4748         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
4749         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
4750         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
4751         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
4752         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
4753         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
4754         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
4755         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
4756         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
4757         __builtin_ia32_cvtps2dq512_mask.
4758         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
4759         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
4760         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
4761         * config/i386/sse.md
4762         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
4763         Rename to ...
4764         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
4765         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
4766         to ...
4767         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
4768         (avx512f_vec_pack_sfix_v8df): New define_expand.
4769         (avx512f_roundpd512): Rename to ...
4770         (avx512f_round<castmode>512): ... this.  Change iterator.
4771         (avx512f_roundps512_sfix): New define_expand.
4772         (round<mode>2_sfix): Change iterator.
4773
4774 2016-05-25  Nick Clifton  <nickc@redhat.com>
4775
4776         * config/msp430/msp430.c (msp430_attr): Produce an error if a
4777         static interrupt handler is detected.
4778         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
4779         default linker script.
4780         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
4781         the low part of a symbolic pointer.
4782
4783 2016-05-25  Richard Biener  <rguenther@suse.de>
4784
4785         PR tree-optimization/71261
4786         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
4787         interesting stmt instead of immediate uses when looking
4788         for the use operand to replace.
4789
4790 2016-05-25  Martin Liska  <mliska@suse.cz>
4791
4792         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
4793
4794 2016-05-25  Richard Biener  <rguenther@suse.de>
4795
4796         PR tree-optimization/71264
4797         * tree-vect-stmts.c (vect_init_vector): Properly deal with
4798         vector type val.
4799
4800 2016-05-25  Martin Liska  <mliska@suse.cz>
4801
4802         PR tree-optimization/71239
4803         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
4804         if DECL_SIZE is NULL.
4805
4806 2016-05-25  Richard Biener  <rguenther@suse.de>
4807
4808         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
4809         * tree-if-conv.c (pass_data_if_conversion): Use it.
4810
4811 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4812
4813         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
4814         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
4815         * varpool.c (varpool_node::get_availability): Likewise.
4816
4817 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4818
4819         * config/rs6000/altivec.md (VNEG iterator): New iterator for
4820         VNEGW/VNEGD instructions.
4821         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
4822         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
4823         support for ISA 3.0 VNEGW/VNEGD instructions.
4824
4825 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4826
4827         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
4828         pointers inside OACC_DATA regions.
4829         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
4830         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
4831         (gimplify_adjust_omp_clauses): Fix typo in comment.
4832
4833 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4834
4835         * config/rs6000/altivec.md (VParity): New mode iterator for vector
4836         parity built-in functions.
4837         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
4838         zeros.
4839         (p9v_parity<mode>2): Likewise.
4840         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
4841         parity.
4842         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
4843         (parity<mode>2): ISA 3.0 expander for vector parity.
4844         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
4845         power9 built-ins.
4846         (BU_P9_64BIT_MISC_0): Likewise.
4847         (BU_P9_MISC_0): Likewise.
4848         (BU_P9V_AV_1): Likewise.
4849         (BU_P9V_AV_2): Likewise.
4850         (BU_P9V_AV_3): Likewise.
4851         (BU_P9V_AV_P): Likewise.
4852         (BU_P9V_VSX_1): Likewise.
4853         (BU_P9V_OVERLOAD_1): Likewise.
4854         (BU_P9V_OVERLOAD_2): Likewise.
4855         (BU_P9V_OVERLOAD_3): Likewise.
4856         (VCTZB): Add vector count trailing zeros support.
4857         (VCTZH): Likewise.
4858         (VCTZW): Likewise.
4859         (VCTZD): Likewise.
4860         (VPRTYBD): Add vector parity support.
4861         (VPRTYBQ): Likewise.
4862         (VPRTYBW): Likewise.
4863         (VCTZ): Add overloaded vector count trailing zeros support.
4864         (VPRTYB): Add overloaded vector parity support.
4865         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4866         overloaded vector count trailing zeros and parity instructions.
4867         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
4868         vector parity support.
4869         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
4870         trailing zeros support.
4871         (vec_cntlz): Likewise.
4872         (vec_vctzb): Likewise.
4873         (vec_vctzd): Likewise.
4874         (vec_vctzh): Likewise.
4875         (vec_vctzw): Likewise.
4876         (vec_vprtyb): Add ISA 3.0 vector parity support.
4877         (vec_vprtybd): Likewise.
4878         (vec_vprtybw): Likewise.
4879         (vec_vprtybq): Likewise.
4880         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4881         the ISA 3.0 vector count trailing zeros and vector parity built-in
4882         functions.
4883
4884 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4885
4886         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
4887         when there is stmt_to_insert.
4888
4889 2016-05-24  Martin Sebor  <msebor@redhat.com>
4890
4891         PR c++/71147
4892         * tree.h (complete_or_array_type_p): New inline function.
4893
4894 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4895
4896         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4897         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4898         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
4899
4900         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
4901         Limit 1st alternative to noavx isa, split 2nd alternative into one
4902         noavx and one avx alternative, use *x and Bm in the former and
4903         x and m in the latter.
4904
4905         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
4906         of sse4 for the first alternative, drop %v from the template
4907         and d operand modifier.  Split second alternative into one sse4_noavx
4908         and one avx alternative, use *x instead of *v in the former and v
4909         instead of *v in the latter.
4910         (*sse4_1_extractps): Use noavx isa instead of * for the first
4911         alternative, drop %v from the template.  Split second alternative into
4912         one noavx and one avx alternative, use *x instead of *v in the
4913         former and v instead of *v in the latter.
4914         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
4915         with noavx and the last one with avx.
4916         (sse4_1_phminposuw): Guard first alternative with noavx isa,
4917         split the second one into one noavx and one avx alternative,
4918         use *x and Bm in the former and x and m in the latter one.
4919         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
4920         alternatives.
4921
4922         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
4923         first two alternatives to noavx, use *x instead of *v in the second
4924         one, add avx alternative without *.
4925         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
4926         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
4927         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
4928
4929 2016-05-24  Jeff Law  <law@redhat.com>
4930
4931         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
4932         New function, extracted from...
4933         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
4934         Allow simple copies and constant initializations in the SSA chain.
4935
4936 2016-05-24  Marek Polacek  <polacek@redhat.com>
4937
4938         PR c/71249
4939         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
4940         scope.
4941
4942 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4943
4944         PR c++/71257
4945         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4946         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4947         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4948         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4949         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4950
4951 2016-05-24  Richard Biener  <rguenther@suse.de>
4952
4953         PR tree-optimization/71240
4954         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
4955         has integral type.
4956
4957 2016-05-24  Richard Biener  <rguenther@suse.de>
4958
4959         PR tree-optimization/71230
4960         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
4961
4962 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4963
4964         * tree-vectorizer.h (vectorizable_comparison): Delete.
4965         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
4966         PURE_SLP_STMT check.
4967         * tree-vect-stmts.c (vectorizable_call): Likewise.
4968         (vectorizable_simd_clone_call): Likewise.
4969         (vectorizable_conversion): Likewise.
4970         (vectorizable_assignment): Likewise.
4971         (vectorizable_shift): Likewise.
4972         (vectorizable_operation): Likewise.
4973         (vectorizable_load): Likewise.
4974         (vectorizable_condition): Likewise.
4975         (vectorizable_store): Likewise.  Assert that we don't have
4976         hybrid SLP.
4977         (vectorizable_comparison): Make static.  Remove redundant
4978         PURE_SLP_STMT check.
4979         (vect_transform_stmt): Assert that we always have an slp_node
4980         if PURE_SLP_STMT.
4981
4982 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4983
4984         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
4985         operands[2] against 1 with comparison against CONST1_RTX.
4986         (<shift>di3_neon): Likewise.
4987         * config/arm/predicates.md (const0_operand): Replace with comparison
4988         against CONST0_RTX.
4989
4990 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4991
4992         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
4993         operands[2] against 1 with comparison against CONST1_RTX.
4994         (ashrdi3): Likewise.
4995         (lshrdi3): Likewise.
4996         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
4997         UINTVAL.
4998         (ashrsi3): Likewise.
4999         (lshrsi3): Likewise.
5000         (rotrsi3): Likewise.
5001         (define_split above *compareqi_eq0): Likewise.
5002         (define_split above "prologue"): Likewise.
5003         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
5004         * config/arm/predicates.md (shift_operator): Likewise.
5005         (shift_nomul_operator): Likewise.
5006         (sat_shift_operator): Likewise.
5007         (thumb1_cmp_operand): Likewise.
5008         (const_neon_scalar_shift_amount_operand): Replace manual range
5009         check with IN_RANGE.
5010         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
5011         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
5012
5013 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5014
5015         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
5016         with HOST_WIDE_INT_1.
5017         (insv): Likewise.
5018         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
5019         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
5020         (arm_canonicalize_comparison): Likewise.
5021         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
5022         HOST_WIDE_INT_1.
5023         (thumb1_size_rtx_costs): Likewise.
5024         (vfp_const_double_index): Replace cast of 1 to unsigned
5025         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5026         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
5027         HOST_WIDE_INT_1.
5028         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
5029         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5030         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
5031         HOST_WIDE_INT with HOST_WIDE_INT_1.
5032
5033 2016-05-24  Marek Polacek  <polacek@redhat.com>
5034
5035         * tree-cfg.h (should_remove_lhs_p): New predicate.
5036         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5037         * gimplify.c (gimplify_modify_expr): Likewise.
5038         * tree-cfg.c (verify_gimple_call): Likewise.
5039         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5040         * gimple-fold.c: Include "tree-cfg.h".
5041         (gimple_fold_call): Use should_remove_lhs_p.
5042
5043 2016-05-24  Richard Biener  <rguenther@suse.de>
5044
5045         PR tree-optimization/71253
5046         * cfganal.h (control_dependences): Make robust against edge
5047         and BB removal.
5048         (control_dependences::control_dependences): Remove edge_list argument.
5049         (control_dependences::get_edge): Remove.
5050         (control_dependences::get_edge_src): Add.
5051         (control_dependences::get_edge_dest): Likewise.
5052         (control_dependences::m_el): Make a vector of edge src/dest index.
5053         * cfganal.c (control_dependences::find_control_dependence): Adjust.
5054         (control_dependences::control_dependences): Likewise.
5055         (control_dependences::~control_dependence): Likewise.
5056         (control_dependences::get_edge): Remove.
5057         (control_dependences::get_edge_src): Add.
5058         (control_dependences::get_edge_dest): Likewise.
5059         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
5060         get_edge_src.
5061         (perform_tree_ssa_dce): Adjust.
5062         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
5063         get_edge_src.
5064         (pass_loop_distribution::execute): Adjust.  Do loop destroying
5065         conditional on changed.
5066
5067 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5068
5069         PR target/69857
5070         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
5071         return.  Reindent transformation comment and mention the ARM state
5072         behavior.
5073
5074 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5075
5076         PR middle-end/71252
5077         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
5078         after build_and_add_sum creates new use stmt.
5079
5080 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5081
5082         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
5083         load_lanes/grouped_load classification comes first.  Don't check
5084         whether the vectorization factor is a multiple of the group size
5085         for load_lanes.
5086
5087 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5088
5089         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
5090         GROUP_GAP for single-element interleaving.
5091         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
5092         variable.
5093
5094 2016-05-24  Richard Biener  <rguenther@suse.de>
5095
5096         PR middle-end/70434
5097         PR c/69504
5098         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
5099         bases which are accessed with non-invariant indices.
5100         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
5101         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
5102
5103 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5104
5105         PR middle-end/71170
5106         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
5107         (add_to_ops_vec): Add stmt_to_insert.
5108         (add_repeat_to_ops_vec): Init stmt_to_insert.
5109         (insert_stmt_before_use): New.
5110         (transform_add_to_multiply): Remove mult_stmt insertion and add it
5111         to ops vector.
5112         (get_ops): Init stmt_to_insert.
5113         (maybe_optimize_range_tests): Likewise.
5114         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
5115         (rewrite_expr_tree_parallel): Likewise.
5116         (reassociate_bb): Likewise.
5117
5118 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5119
5120         PR target/71201
5121         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5122         ISA 3.0 xxperm fusion alternative.
5123         (altivec_vperm_v8hiv16qi): Likewise.
5124         (altivec_vperm_<mode>_uns_internal): Likewise.
5125         (vperm_v8hiv4si): Likewise.
5126         (vperm_v16qiv8hi): Likewise.
5127
5128 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5129             Kelvin Nilsen  <kelvin@gcc.gnu.org>
5130
5131         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5132         vpermr/xxpermr on ISA 3.0.
5133         (altivec_expand_vec_perm_le): Likewise.
5134         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5135         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5136         ISA 3.0.
5137
5138 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
5139
5140         * config/i386/i386.h (IS_STACK_MODE): Enable for
5141         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
5142         SSE_FLOAT_MODE_P macros.
5143         * config/i386/i386.c (ix86_preferred_reload_class): Use
5144         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5145         Cleanup regclass processing for CONST_DOUBLE_P.
5146         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5147         (ix86_rtx_costs): Remove redundant TARGET_80387 check
5148         with IS_STACK_MODE macro.
5149         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5150         with TARGET_SSE2.
5151         (*movdf_internal): Use IS_STACK_MODE macro.
5152         (*movsf_internal): Ditto.
5153
5154 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
5155
5156         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5157         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5158
5159 2016-05-23  Jeff Law  <law@redhat.com>
5160
5161         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5162         extracted from ...
5163         (fsm_find_control_statement_thread_paths): Call it.
5164
5165 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5166
5167         PR ipa/71234
5168         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5169         from_global_constant if t is not NULL.
5170
5171 2016-05-23  Marek Polacek  <polacek@redhat.com>
5172
5173         PR c/49859
5174         * common.opt (Wswitch-unreachable): New option.
5175         * doc/invoke.texi: Document -Wswitch-unreachable.
5176         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5177         warning.
5178
5179 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
5180
5181         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5182         TMR_INDEX is non-NULL.
5183
5184 2016-05-23  Richard Biener  <rguenther@suse.de>
5185
5186         PR tree-optimization/71230
5187         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5188         (try_special_add_to_ops): ... here.  Always test for single-use.
5189
5190 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5191
5192         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5193         default block if a PHI node in the original one would be resized.
5194
5195 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5196
5197         PR tree-optimization/58135
5198         * tree-vect-slp.c: When group size is not multiple
5199         of vector size, allow splitting of store group at
5200         vector boundary.
5201
5202 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
5203
5204         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5205
5206 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
5207
5208         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5209         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5210         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
5211         of 64x2.
5212
5213         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5214         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5215         v constraint instead of x and vinserti32x4 insn.
5216
5217         * config/i386/sse.md (i128vldq): New mode iterator.
5218         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5219         avx512dq and avx512vl alternatives.
5220
5221         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5222         constraint, use maybe_evex prefix instead of vex.
5223         (vec_dupv4sf): Use v constraint instead of x for output
5224         operand except for noavx alternative, use Yv constraint
5225         instead of x for input.  Use maybe_evex prefix instead of vex.
5226         (*vec_dupv4si): Likewise.
5227         (*vec_dupv2di): Likewise.
5228
5229 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5230
5231         PR middle-end/40921
5232         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5233         (linearize_expr_tree): Call try_special_add_to_ops.
5234         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5235
5236 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5237
5238         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5239         to computed stack_usage.
5240
5241 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5242
5243         PR target/71103
5244         * config/avr/avr.md (define_expand "mov<mode>"): If the source
5245         operand is subreg (symbol_ref) then move the symbol ref to register.
5246
5247 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
5248
5249         * tree.c (array_at_struct_end_p): Look through MEM_REF.
5250
5251 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5252
5253         PR middle-end/71179
5254         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
5255         VECTOR type.
5256
5257 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5258
5259         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
5260         ranges by calling get_single_symbol and tidy up.  Look more closely
5261         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
5262
5263 2016-05-20  Jeff Law  <law@redhat.com>
5264
5265         * bitmap.c (bitmap_find_bit): Remove useless test.
5266
5267 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5268
5269         * function.c (thread_prologue_and_epilogue_insns): Commit the
5270         insertion of the epilogue.
5271
5272 2016-05-20  Martin Jambor  <mjambor@suse.cz>
5273
5274         PR tree-optimization/70884
5275         * tree-sra.c (initialize_constant_pool_replacements): Do not check
5276         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5277         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5278         of constant pool data as a reason for scalarization.
5279
5280 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5281
5282         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5283         for naked functions.
5284         (thumb1_expand_prologue): Likewise.
5285
5286 2016-05-20  Nathan Sidwell  <nathan@acm.org>
5287
5288         * config/nvptx/nptx.c (nvptx_option_override): Only set
5289         flag_toplevel_reorder, if not explicitly specified.  Set
5290         flag_no_common, unless explicitly specified.
5291
5292 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5293
5294         * calls.c (can_implement_as_sibling_call_p): Mark param
5295         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5296
5297 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5298
5299         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5300         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5301         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5302         constants.
5303         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5304         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5305         and CASE_CONST_ANY.
5306
5307 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5308
5309         * config/nvptx/nvptx.md (sincossf3): New pattern.
5310
5311 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5312
5313         * calls.c (maybe_complain_about_tail_call): New function.
5314         (initialize_argument_information): Call
5315         maybe_complain_about_tail_call when clearing *may_tailcall.
5316         (can_implement_as_sibling_call_p): Call
5317         maybe_complain_about_tail_call when returning false.
5318         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5319         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5320         if tail-call optimization fails.
5321         * cfgexpand.c (expand_call_stmt): Initialize
5322         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5323         * gimple-pretty-print.c (dump_gimple_call): Dump
5324         gimple_call_must_tail_p.
5325         * gimple.c (gimple_build_call_from_tree): Call
5326         gimple_call_set_must_tail with the value of
5327         CALL_EXPR_MUST_TAIL_CALL.
5328         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5329         (gimple_call_set_must_tail): New function.
5330         (gimple_call_must_tail_p): New function.
5331         * print-tree.c (print_node): Update printing of TREE_STATIC
5332         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5333         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5334         trailing comment listing applicable flags.
5335         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5336
5337 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5338
5339         * calls.c (expand_call): Move "Rest of purposes for tail call
5340         optimizations to fail" to...
5341         (can_implement_as_sibling_call_p): ...this new function, and
5342         split into multiple "if" statements.
5343
5344 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5345
5346         * cfgloop.h (expected_loop_iterations_unbounded,
5347         expected_loop_iterations): Unconstify.
5348         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5349         profile with known upper bound; return 3 when profile is absent.
5350         (expected_loop_iterations): Update.
5351
5352 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5353
5354         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5355         and get_max_loop_iterations_int.
5356
5357 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5358
5359         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5360         realistic upper bounds here.
5361
5362 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5363
5364         PR c++/71210
5365         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5366         calls if the LHS is variable length or has addressable type.
5367         If targets[0]->decl is a noreturn call with void return type and
5368         zero arguments, adjust fntype and remove lhs in that case.
5369
5370 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5371
5372         PR tree-optimization/71079
5373         PR tree-optimization/71206
5374         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5375
5376 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5377
5378         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5379         (get_vec_alignment_for_array_decl): Likewise.
5380         (get_vec_alignment_for_record_decl): Likewise.
5381         (increase_alignment::execute): Move code to find alignment to
5382         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5383         (type_align_map): New hash_map.
5384
5385 2016-05-20  Richard Guenther  <rguenther@suse.de>
5386
5387         PR tree-optimization/29756
5388         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5389         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5390         * fold-const.c (operand_equal_p): Likewise.
5391         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5392         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5393         * tree-inline.c (estimate_operator_cost): Likewise.
5394         * tree-pretty-print.c (dump_generic_node): Likewise.
5395         * tree-ssa-operands.c (get_expr_operands): Likewise.
5396         * cfgexpand.c (expand_debug_expr): Likewise.
5397         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5398         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5399         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5400         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5401         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5402         (execute_update_addresses_taken): Do it.
5403
5404 2016-05-20  Richard Biener  <rguenther@suse.de>
5405
5406         PR tree-optimization/71185
5407         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5408         register operations.
5409
5410 2016-05-20  Richard Biener  <rguenther@suse.de>
5411
5412         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5413         gimple_seq_add_seq_without_update.
5414         (release_bb_predicate): Assert we have no operands to free.
5415         (if_convertible_loop_p_1): Calculate post dominators later.
5416         Do not free BB predicates here.
5417         (combine_blocks): Do not recompute BB predicates.
5418         (version_loop_for_if_conversion): Save BB predicates around
5419         loop versioning.
5420
5421 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5422
5423         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5424         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5425         code.  Ignore sibcalls on EDGE_IGNORE edges.
5426         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5427         on edges for sibcalls that run without prologue.  The rest of the
5428         function is combined from...
5429         (fix_fake_fallthrough_edge): ... this, and ...
5430         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5431         function argument, make it a local variable.
5432
5433 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5434
5435         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5436         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5437         for 32-bit mode and SEH for 64-bit.
5438         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
5439         TARGET_64BIT_DEFAULT.
5440
5441 2016-05-19  Ryan Burn  <contact@rnburn.com>
5442
5443         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
5444         * gengtype.c (open_base_files): Add cilk.h to ifiles.
5445
5446 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
5447
5448         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5449         force pending loads from memory.
5450
5451 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5452
5453         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5454         (UNSPEC_DARN_32): New unspec constant.
5455         (UNSPEC_DARN_RAW): New unspec constant.
5456         (darn_32): New instruction.
5457         (darn_raw): New instruction.
5458         (darn): New instruction.
5459         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5460         support and documentation for this macro.
5461         (BU_P9_MISC_1): New macro definition.
5462         (BU_P9_64BIT_MISC_0): New macro definition.
5463         (BU_P9_MISC_0): New macro definition.
5464         (darn_32): New builtin definition.
5465         (darn_raw): New builtin definition.
5466         (darn): New builtin definition.
5467         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5468         RS6000_BUILTIN_0 directives to surround each occurrence of
5469         #include "rs6000-builtin.def".
5470         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5471         RS6000_BTM_64BIT flags to the returned mask, depending on
5472         configuration.
5473         (def_builtin): Correct an error in the assignments made to the
5474         debugging variable attr_string.
5475         (rs6000_expand_builtin): Add support for no-operand built-in
5476         functions.
5477         (builtin_function_type): Remove fatal_error assertion that is no
5478         longer valid.
5479         (rs6000_common_init_builtins): Add support for no-operand built-in
5480         functions.
5481         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
5482         definition.
5483         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
5484         definition.
5485         (RS6000_BTM_64BIT): New macro definition.
5486         * doc/extend.texi: Document __builtin_darn (void),
5487         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
5488         functions.
5489
5490 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
5491
5492         * tree-vect-loop.c (vect_analyze_loop_2): Use also
5493         max_loop_iterations_int.
5494
5495 2016-05-19  Marek Polacek  <polacek@redhat.com>
5496
5497         PR tree-optimization/71031
5498         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
5499         condition and adjust the code a bit.
5500
5501 2016-05-19  Martin Liska  <mliska@suse.cz>
5502
5503         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
5504         auto_vec instead of vec.
5505
5506 2016-05-19  Martin Liska  <mliska@suse.cz>
5507
5508         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
5509
5510 2016-05-19  Martin Liska  <mliska@suse.cz>
5511
5512         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
5513
5514 2016-05-19  Martin Liska  <mliska@suse.cz>
5515
5516         * ipa-pure-const.c (set_function_state): Remove an existing
5517         funct_state.
5518         (remove_node_data): Do not free it as it's released
5519         in set_function_state.
5520
5521 2016-05-19  Martin Liska  <mliska@suse.cz>
5522
5523         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
5524         bitmap.
5525
5526 2016-05-19  Martin Liska  <mliska@suse.cz>
5527
5528         * omp-simd-clone.c (simd_clone_adjust): Release vector.
5529
5530 2016-05-19  Martin Liska  <mliska@suse.cz>
5531
5532         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
5533         an auto_vec instead of re-creating it.
5534
5535 2016-05-19  Martin Liska  <mliska@suse.cz>
5536
5537         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
5538         auto_vec instead of vec.
5539
5540 2016-05-19  Martin Liska  <mliska@suse.cz>
5541
5542         * lto-section-in.c (lto_get_section_data): Call
5543         lto_check_version with additional argument.
5544         * lto-streamer.c (lto_check_version): Add new argument.
5545         * lto-streamer.h (lto_check_version): Likewise.
5546
5547 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5548
5549         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
5550         Don't add cost of inner memory when handling sign-extended loads.
5551
5552 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
5553
5554         PR rtl-optimization/71148
5555         * cse.c (cse_main): Free dominance info.
5556         (rest_of_handle_cse): Don't free dominance info.
5557         (rest_of_handle_cse2): Likewise.
5558         (rest_of_handle_cse_after_global_opts): Likewise.
5559
5560 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5561
5562         PR target/71056
5563         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
5564         NULL_TREE early if NEON is not available.  Remove now redundant check
5565         in ARM_CHECK_BUILTIN_MODE.
5566
5567 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
5568
5569         PR sanitizer/64354
5570         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
5571         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
5572         * doc/cpp.texi: Document new macros.
5573
5574 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
5575
5576         PR tree-optimization/69848
5577         * tree-vect-loop.c (vectorizable_reduction): Don't factor
5578         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
5579
5580 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5581
5582         * function.c (thread_prologue_and_epilogue_insn): Move the
5583         "goto epilogue_done" one block later.
5584
5585 2016-05-19  Richard Biener  <rguenther@suse.de>
5586
5587         PR tree-optimization/70729
5588         * passes.def: Move LIM pass before PRE.  Remove no longer
5589         required copyprop and move first DCE out of the loop pipeline.
5590
5591 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
5592
5593         PR driver/69265
5594         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
5595         (OBJS-libcommon-target): ...here.
5596         * opts-common.c: Include spellcheck.h.
5597         (cmdline_handle_error): Build a vec of valid options and use it
5598         to suggest provide hints for misspelled arguments.
5599
5600 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5601
5602         PR c++/71100
5603         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
5604         lhs if it has TREE_ADDRESSABLE type.
5605
5606 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
5607
5608         PR target/71145
5609         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
5610         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
5611
5612 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5613
5614         PR ipa/69708
5615         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
5616         input for NOP_EXPR pass-through functions.
5617         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
5618         aggregate global constant VAR_DECLs in constant jump functions.
5619
5620 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5621
5622         PR ipa/69708
5623         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
5624         from TREE_READONLY parameters.
5625
5626 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5627
5628         PR ipa/69708
5629         * cgraph.h (cgraph_indirect_call_info): New field
5630         guaranteed_unmodified.
5631         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
5632         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5633         appropriate.
5634         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
5635         pass the parameter value to ipa_find_agg_cst_for_param.
5636         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
5637         guaranteed_unmodified, store AA results there instead of bailing out
5638         if present.
5639         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
5640         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
5641         (find_constructor_constant_at_offset): New function.
5642         (ipa_find_agg_cst_from_init): Likewise.
5643         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
5644         static initializers of contants, report back through a new paameter
5645         from_global_constant if that was the case.
5646         (try_make_edge_direct_simple_call): Also pass parameter value to
5647         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5648         appropriate.
5649         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
5650         (ipa_read_indirect_edge_info): Likewise.
5651         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
5652         (ipa_load_from_parm_agg): Likewise.
5653
5654 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
5655
5656         PR rtl-optimization/71150
5657         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
5658         check.
5659
5660 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5661
5662         PR target/70915
5663         * config/rs6000/constraints.md (wE constraint): New constraint
5664         for a vector constant that can be loaded with XXSPLTIB.
5665         (wM constraint): New constraint for a vector constant of a 1's.
5666         (wS constraint): New constraint for a vector constant that can be
5667         loaded with XXSPLTIB and a vector sign extend instruction.
5668         * config/rs6000/predicates.md (xxspltib_constant_split): New
5669         predicates for wE/wS constraints.
5670         (xxspltib_constant_nosplit): Likewise.
5671         (easy_vector_constant): Add support for constants that can be
5672         loaded via XXSPLTIB.
5673         (all_ones_constant): New predicate for vector constant with all
5674         1's set.
5675         (splat_input_operand): Add support for ISA 3.0 word splat operations.
5676         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5677         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5678         instruction and possibly with a sign extension.
5679         (output_vec_const_move): Add support for XXSPLTIB. If we are
5680         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5681         instead of XXLXOR/XXLORC.
5682         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5683         operations.
5684         (rs6000_legitimize_reload_address): Likewise.
5685         (rs6000_output_move_128bit): Use output_vec_const_move to emit
5686         constants.
5687         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5688         combine VSX_M and VSX_M2 into one iterator.
5689         (VSX_M2): Likewise.
5690         (VSINT_84): New iterators for loading constants with XXSPLTIB.
5691         (VSINT_842): Likewise.
5692         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5693         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5694         XXSPLTIB instruction.
5695         (xxspltib_<mode>_nosplit): Likewise.
5696         (xxspltib_<mode>_split): New insn to load up constants with
5697         XXSPLTIB and a sign extend instruction.
5698         (vsx_mov<mode>): Replace single move that handled all vector types
5699         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
5700         moves (when -mvsx-timode is in effect) into the main vector
5701         moves.  Eliminate separate moves for <VSr> <VSa>, where the
5702         preferred register class (<VSr>) is listed first, and the
5703         secondary register class (<VSa>) is listed second with a '?' to
5704         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
5705         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5706         that if the register was involved in a slow operation, the
5707         clear/set operation does not wait for the slow operation to
5708         finish.  Adjust the length attributes for 32-bit mode.  Use
5709         rs6000_output_move_128bit and drop the use of the string
5710         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
5711         spacing so that the alternatives and attributes don't generate
5712         long lines, and put things in columns, so that it is easier to
5713         match up the operands and attributes with the insn alternatives.
5714         (vsx_mov<mode>_64bit): Likewise.
5715         (vsx_mov<mode>_32bit): Likewise.
5716         (vsx_movti_64bit): Fold movti into normal vector moves.
5717         (vsx_movti_32bit): Likewise.
5718         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5719         splat instructions.
5720         (vsx_splat_v4si_internal): Likewise.
5721         (vsx_splat_v4sf_internal): Likewise.
5722         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5723         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5724         extend vector elements.
5725         (vsx_sign_extend_hi_<mode>): Likewise.
5726         (vsx_sign_extend_si_v2di): Likewise.
5727         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5728         declaration.
5729         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5730         constraints.  Add trailing period to wL documentation.
5731
5732 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
5733
5734         PR middle-end/71020
5735         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
5736         * tree-dfa.c (replace_abnormal_ssa_names): New function.
5737         * tree-call-cdce.c: Include tree-dfa.h.
5738         (can_guard_call_p): New function, extracted from...
5739         (can_use_internal_fn): ...here.
5740         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
5741         and return void.
5742         (shrink_wrap_one_built_in_call): Likewise.
5743         (use_internal_fn): Likewise.
5744         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
5745         and return void.  Call replace_abnormal_ssa_names.
5746         (pass_call_cdce::execute): Check can_guard_call_p during the
5747         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
5748         will always change something.
5749
5750 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5751
5752         PR ipa/70646
5753         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5754         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5755
5756 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5757
5758         PR ipa/70646
5759         * ipa-inline.h (condition): New field size.
5760         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5761         for comaprison and store it into the new condition.
5762         (evaluate_conditions_for_known_args): Use condition size to check
5763         access sizes for all but CHANGED conditions.
5764         (unmodified_parm_1): New parameter size_p, store access size into it.
5765         (unmodified_parm): Likewise.
5766         (unmodified_parm_or_parm_agg_item): Likewise.
5767         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5768         (set_cond_stmt_execution_predicate): Extract access sizes and store
5769         them to conditions.
5770         (set_switch_stmt_execution_predicate): Likewise.
5771         (will_be_nonconstant_expr_predicate): Likewise.
5772         (will_be_nonconstant_predicate): Likewise.
5773         (inline_read_section): Stream condition size.
5774         (inline_write_summary): Likewise.
5775
5776 2016-05-18  Richard Biener  <rguenther@suse.de>
5777
5778         * tree-ssa-loop-im.c (determine_max_movement): Properly add
5779         condition cost to PHI cost instead of total_cost.
5780
5781 2016-05-18  Martin Liska  <mliska@suse.cz>
5782
5783         PR fortran/70856
5784         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5785         merged variables.
5786
5787 2016-05-18  Richard Biener  <rguenther@suse.de>
5788
5789         * lto-streamer.h (LTO_major_version): Bump to 6.
5790
5791 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5792
5793         * function.c (make_split_prologue_seq, make_prologue_seq,
5794         make_epilogue_seq): New functions, factored out from...
5795         (thread_prologue_and_epilogue_insns): Here.
5796
5797 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5798
5799         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5800         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
5801         of before.  Add a comment.
5802
5803 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
5804
5805         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
5806         expression pointer, not pointer to the pointer.
5807
5808 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5809
5810         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
5811         (avx2_pbroadcast<mode>): Add another alternative with v instead
5812         of x constraints in it, using <pbroadcast_evex_isa> isa.
5813         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
5814
5815         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
5816         constraint x instead of v in second alternative, add avx512bw
5817         alternative.
5818
5819         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
5820         constraint x instead of v in second alternative, add avx512bw
5821         alternative.
5822
5823         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
5824         constraint x instead of v in second alternative, add avx512bw
5825         alternative.
5826
5827         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
5828         avx512bw alternative.
5829
5830 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5831
5832         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
5833         array to 128 chars.
5834         (define_insn "*andnottf3"): Ditto.
5835         (define_insn "*<code><mode>3"/any_logic): Ditto.
5836         (define_insn "*<code>tf3"/any_logic): Ditto.
5837         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
5838         operand to block AVX-512VL insn variant emit when it is not enabled.
5839
5840 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5841
5842         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
5843         constraint fot SF mode.
5844
5845 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
5846             Kirill Yukhin  <kirill.yukhin@intel.com>
5847
5848         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
5849         modifiers.
5850         (define_insn "rsqrt14<mode>"): Ditto.
5851         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5852         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
5853         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
5854         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
5855         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
5856         Ditto.
5857         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
5858         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
5859         * config/i386/i386.c (ix86_print_operand): Expand check for size
5860         override codes for Intel syntax.
5861
5862 2016-05-18  Richard Biener  <rguenther@suse.de>
5863
5864         PR tree-optimization/71168
5865         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
5866         initialization earlier.
5867
5868 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
5869
5870         * config/aarch64/aarch64-simd.md
5871         (aarch64_reduc_plus_internal<mode>): Rename to...
5872         (reduc_plus_scal): ...This, and remove previous implementation.
5873
5874 2016-05-18  Richard Biener  <rguenther@suse.de>
5875
5876         * passes.def: Put late dse and cd_dce in canonical order.
5877
5878 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
5879
5880         * ipa-inline-transform.c (preserve_function_body_p): Look for
5881         first non-thunk clone.
5882         (save_function_body): Save into first non-thunk.
5883         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
5884         up call stmt id.
5885         (lto_output_node): Inline thunks don't need body in every
5886         partition.
5887         * lto-streamer-in.c: Do not fixup thunk clones.
5888         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
5889         thunks.
5890         * tree-inline.c (copy_bb): Be prepared for target node to be new after
5891         folding suceeds.
5892
5893 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5894
5895         PR middle-end/63586
5896         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
5897         (reassociate_bb): Call transform_add_to_multiply.
5898
5899 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5900
5901         * config/aarch64/aarch64.c (all_extensions): Removed unused
5902         static variable.
5903
5904 2016-05-17  Nathan Sidwell  <nathan@acm.org>
5905
5906         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
5907         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
5908
5909 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
5910
5911         PR tree-optimization/54579
5912         PR middle-end/55299
5913         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
5914
5915 2016-05-17  Marek Polacek  <polacek@redhat.com>
5916
5917         PR ipa/71146
5918         * tree-inline.c (expand_call_inline): Call
5919         maybe_remove_unused_call_args.
5920
5921 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
5922
5923         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
5924         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
5925         * doc/md.texi (fmin@var{m}3): Likewise.
5926
5927 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5928
5929         * match.pd (X & C): New transformation.
5930
5931 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5932
5933         * match.pd (~X & Y): New transformation.
5934
5935 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5936
5937         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
5938         information for new SSA_NAME.
5939         (simplify_conversion_using_ranges): Get range through get_range_info
5940         instead of get_value_range.
5941
5942 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5943
5944         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
5945         Remove inline assembly.
5946         (vmvn_s16): Likewise.
5947         (vmvn_s32): Likewise.
5948         (vmvn_u8): Likewise.
5949         (vmvn_u16): Likewise.
5950         (vmvn_u32): Likewise.
5951         (vmvnq_s8): Likewise.
5952         (vmvnq_s16): Likewise.
5953         (vmvnq_s32): Likewise.
5954         (vmvnq_u8): Likewise.
5955         (vmvnq_u16): Likewise.
5956         (vmvnq_u32): Likewise.
5957         (vmvn_p8): Likewise.
5958         (vmvnq_p16): Likewise.
5959
5960 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5961
5962         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
5963         Use builtin.
5964         (vmul_n_s16): Likewise.
5965         (vmul_n_s32): Likewise.
5966         (vmul_n_u16): Likewise.
5967         (vmul_n_u32): Likewise.
5968         (vmulq_n_f32): Likewise.
5969         (vmulq_n_f64): Likewise.
5970         (vmulq_n_s16): Likewise.
5971         (vmulq_n_s32): Likewise.
5972         (vmulq_n_u16): Likewise.
5973         (vmulq_n_u32): Likewise.
5974
5975 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5976
5977         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
5978         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
5979
5980 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5981
5982         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
5983         to *aarch64_fma4_elt_from_dup<mode>.
5984         (*aarch64_fnma4_elt_to_128df): Rename to
5985         *aarch64_fnma4_elt_from_dup<mode>.
5986         * config/aarch64/arm_neon.h (vfma_n_f64): New.
5987         (vfms_n_f32): Likewise.
5988         (vfms_n_f64): Likewise.
5989         (vfmsq_n_f32): Likewise.
5990         (vfmsq_n_f64): Likewise.
5991
5992 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
5993
5994         * wide-int.h: Change fixed_wide_int_storage from class to struct.
5995
5996 2016-05-17  Richard Biener  <rguenther@suse.de>
5997
5998         PR tree-optimization/71132
5999         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
6000         Only add control dependences for blocks in the loop.
6001         (build_rdg): Adjust.
6002         (generate_code_for_partition): Return whether loop should
6003         be destroyed and delay that.
6004         (distribute_loop): Likewise.
6005         (pass_loop_distribution::execute): Record loops to be destroyed
6006         and perform delayed destroying of loops.
6007
6008 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6009
6010         PR target/70809
6011         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
6012
6013 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6014
6015         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
6016
6017 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
6018
6019         PR target/71114
6020         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
6021         insertion point for instructions generated by validize_mem.
6022
6023 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6024
6025         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
6026         in brackets.
6027
6028 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6029
6030         * config/aarch64/aarch64.c
6031         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
6032         rather than a macro.
6033
6034 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6035
6036         * doc/invoke.texi (AArch64 Options): Various updates.
6037
6038 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6039
6040         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
6041         into instrumentation thunks.
6042         * cif-code.def (CIF_CHKP): New.
6043
6044 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
6045
6046         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
6047
6048 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6049
6050         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
6051         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
6052
6053 2016-05-16  Marek Polacek  <polacek@redhat.com>
6054
6055         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
6056         commentary.
6057
6058 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6059
6060         PR hsa/70857
6061         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
6062         the outlined kernel function.
6063
6064 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
6065
6066         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
6067         (ISA_HAS_DLSA): Ditto.
6068
6069 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6070
6071         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
6072
6073 2016-05-16  Nathan Sidwell  <nathan@acm.org>
6074
6075         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
6076         (nvptx_name_replacement): Restore.  Add comment.
6077         (write_fn_proto, write_fn_proto_from_insn,
6078         nvptx_output_call_insn): Restore
6079         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
6080
6081 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6082
6083         * config/aarch64/aarch64.md
6084         (add<mode>3_compareC_cconly_imm): Remove use of %w.
6085         (add<mode>3_compareC_imm): Likewise.
6086         (<optab>si3_uxtw): Split into register and immediate variants.
6087         (andsi3_compare0_uxtw): Likewise.
6088         (and<mode>3_compare0): Likewise.
6089         (and<mode>3nr_compare0): Likewise.
6090         (stack_protect_test_<mode>): Don't use %x for memory operands.
6091
6092 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6093
6094         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
6095
6096 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6097
6098         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6099         Split integer shifts into shift_reg and bfm.
6100         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6101         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6102         (ror<mode>3_insn): Likewise.
6103         (<optab>si3_insn_uxtw): Likewise.
6104         (<optab><mode>3_insn): Change to rotate_imm.
6105         (extr<mode>5_insn_alt): Likewise.
6106         (extrsi5_insn_uxtw): Likewise.
6107         (extrsi5_insn_uxtw_alt): Likewise.
6108
6109 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6110
6111         * doc/tm.texi: Regenerate.
6112         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
6113         (TARGET_INVALID_RETURN_TYPE): Remove.
6114         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
6115         TARGET_INVALID_RETURN_TYPE.
6116         * target.def (invalid_parameter_type): Remove.
6117         (invalid_return_type): Remove.
6118
6119 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6120
6121         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
6122         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
6123         calls from thunk.
6124         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
6125         gimple body.
6126         (preserve_function_body_p): No need to preserve function body
6127         * cif-codes.def (CIF_THUNK): Remove.
6128         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
6129
6130 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6131
6132         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
6133
6134 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6135
6136         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
6137         for thunks.
6138
6139 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6140
6141         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
6142         (inline_small_functions): Do not look for function symbol when
6143         resetting caches.
6144
6145 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6146
6147         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6148         of inline thunks
6149
6150 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6151             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6152             Jiong Wang  <jiong.wang@arm.com>
6153
6154         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6155         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6156         Define __ARM_FP16_ARGS when appropriate.
6157         * config/arm/arm.c (arm_invalid_parameter_type): Remove
6158         declaration.
6159         (arm_invalid_return_type): Likewise.
6160         (TARGET_INVALID_PARAMETER_TYPE): Remove.
6161         (TARGET_INVALID_RETURN_TYPE): Remove.
6162         (aapcs_vfp_sub_candidate): Allow HFmode.
6163         (aapcs_vfp_allocate): Add comment.  Support HFmode.
6164         (aapcs_vfp_allocate_return_reg): Likewise.
6165         (struct aapcs_cp_arg_layout): Slightly reword comments for
6166         is_return_candidate and allocate_return_reg.
6167         (output_mov_vfp): Update assert.
6168         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6169         condition.
6170         (arm_invalid_parameter_type): Remove.
6171         (amr_invalid_return_type): Remove.
6172         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6173         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6174         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6175
6176 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6177
6178         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6179         * config/aarch64/arch64-protos.h
6180         (aarch64_legitimize_reload_address): Remove.
6181         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6182         Remove.
6183
6184 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6185
6186         * configure.ac: Add ACX_NONCANONICAL_HOST.
6187         * configure: Regenerate.
6188         * Makefile.in: Set host_noncanonical.
6189
6190 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
6191
6192         PR target/71097
6193         * config/i386/i386.md (*movtf_internal): Before register allocation,
6194         do not allow FP constants for CM_MEDIUM memory model, allow only
6195         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6196         (*movxf_internal): Ditto.
6197         (*movdf_internal): Ditto.
6198         (*movsf_internal): Ditto.
6199
6200 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6201
6202         PR rtl-optimization/67483
6203         * combine.c (make_compound_operation): Don't call extract_left_shift
6204         with negative shift amounts.
6205
6206 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
6207
6208         PR bootstrap/71071
6209         * fold-const.c (fold_checksum_tree): Allow modification
6210         of TYPE_ALIAS_SET during folding.
6211
6212         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6213         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6214         (ix86_split_to_parts): Likewise.  Fix up formatting.
6215
6216 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6217
6218         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6219         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6220         printf format.
6221
6222 2016-05-13  Nathan Sidwell  <nathan@acm.org>
6223
6224         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6225         (nvptx_name_replacement): Delete.
6226         (write_fn_proto, write_fn_proto_from_insn,
6227         nvptx_output_call_insn): Remove nvptx_name_replacement call.
6228         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6229         * langhooks.c (add_builtin_funcction_common): Call
6230         targetm.mangle_decl_assembler_name.
6231
6232         * config/nvptx/nvptx.c (write_fn_proto): Handle
6233         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6234
6235 2016-05-13  Martin Liska  <mliska@suse.cz>
6236
6237         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6238         and PRIu64 in printf format.
6239
6240 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6241
6242         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6243         comment.
6244
6245 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6246
6247         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6248         Change --param max-completely-peeled-times to
6249         --param max-completely-peel-times in dump file printing.
6250
6251 2016-05-13  Richard Biener  <rguenther@suse.de>
6252
6253         PR tree-optimization/42587
6254         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
6255         (find_bswap_or_nop_1): Likewise.
6256         (bswap_replace): Likewise.
6257
6258 2016-05-13  Martin Liska  <mliska@suse.cz>
6259
6260         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
6261         Initialize a variable with default value.
6262
6263 2016-05-13  Martin Liska  <mliska@suse.cz>
6264
6265         * doc/invoke.texi: Enhance explanation of error recovery
6266         of sanitizers.
6267
6268 2016-05-13  Martin Liska  <mliska@suse.cz>
6269
6270         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
6271         (struct cost_pair): Change inv_expr_id (int) to inv_expr
6272         (iv_inv_expr_ent *).
6273         (struct iv_inv_expr_ent): Comment struct fields.
6274         (sort_iv_inv_expr_ent): New function.
6275         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
6276         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
6277         a hash_map between iv_inv_expr_ent and number of usages.
6278         (niter_for_exit): Fix coding style.
6279         (tree_ssa_iv_optimize_init): Use renamed variable.
6280         (determine_base_object): Fix coding style.
6281         (alloc_iv): Likewise.
6282         (find_interesting_uses_outside): Likewise.
6283         (add_candidate_1): Likewise.
6284         (add_standard_iv_candidates): Likewise.
6285         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
6286         (prepare_decl_rtl): Fix coding style.
6287         (get_address_cost): Likewise.
6288         (get_shiftadd_cost): Likewise.
6289         (force_expr_to_var_cost): Likewise.
6290         (compare_aff_trees): Likewise.
6291         (get_expr_id): Restructure the function.
6292         (get_loop_invariant_expr_id): Renamed to
6293         get_loop_invariant_expr.
6294         (get_computation_cost_at): Replace usage of inv_expr_id with
6295         inv_expr.
6296         (get_computation_cost): Likewise.
6297         (determine_group_iv_cost_generic): Likewise.
6298         (determine_group_iv_cost_address): Likewise.
6299         (iv_period): Fix coding style.
6300         (iv_elimination_compare_lt): Likewise.
6301         (may_eliminate_iv): Likewise.
6302         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6303         inv_expr.
6304         (determine_group_iv_costs): Dump invariant expressions.
6305         (iv_ca_recount_cost): Use the newly added hash_map.
6306         (iv_ca_set_remove_invariants): Fix coding style.
6307         (iv_ca_set_add_invariants): Fix coding style.
6308         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6309         invariants.
6310         (iv_ca_set_cp): Likewise.
6311         (iv_ca_new): Initialize the newly added hash_map and remove
6312         initialization of fields.
6313         (iv_ca_free): Delete the hash_map.
6314         (iv_ca_dump): Dump invariant expressions.
6315         (iv_ca_extend): Fix coding style.
6316         (try_add_cand_for): Likewise.
6317         (create_new_ivs): Dump information about # of avg iterations and
6318         # of used invariant expressions.
6319         (rewrite_use_compare): Fix coding style.
6320         (free_loop_data): Set default value for max_inv_expr_id.
6321
6322 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6323
6324         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6325         returned value cse_cfg_altered computation.
6326         (rest_of_handle_cse2): Likewise.
6327         (rest_of_handle_cse_after_global_opts): Likewise.
6328
6329 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6330
6331         PR target/53440
6332         * config/arm/arm.c (arm32_output_mi_thunk): New.
6333         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6334         to split Thumb1 vs TARGET_32BIT functionality.
6335         (arm_thumb1_mi_thunk): New.
6336
6337 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6338
6339         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6340         to true.
6341
6342 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6343
6344         PR target/71080
6345         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6346
6347 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6348
6349         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6350         (expand_builtin_trap): Emit a regular call.
6351         (set_builtin_user_assembler_name): Remove obsolete cases.
6352         * dse.c (scan_insn): Adjust.
6353         * except.c: Include calls.h.
6354         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6355         emit a regular call to setjmp.
6356         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6357         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6358         (emit_block_move_via_libcall): Delete.
6359         (block_move_fn): Delete.
6360         (init_block_move_fn): Likewise.
6361         (emit_block_move_libcall_fn): Likewise.
6362         (emit_block_op_via_libcall): New function.
6363         (set_storage_via_libcall): Tidy up and use memset builtin.
6364         (block_clear_fn): Delete.
6365         (init_block_clear_fn): Likewise.
6366         (clear_storage_libcall_fn): Likewise.
6367         (expand_assignment): Call emit_block_move_via_libcall.
6368         Do not include gt-expr.h.
6369         * expr.h (emit_block_op_via_libcall): Declare.
6370         (emit_block_copy_via_libcall): New inline function.
6371         (emit_block_move_via_libcall): Likewise.
6372         (emit_block_comp_via_libcall): Likewise.
6373         (block_clear_fn): Delete.
6374         (init_block_move_fn): Likewise.
6375         (init_block_clear_fn): Likewise.
6376         (emit_block_move_via_libcall): Likewise.
6377         (set_storage_via_libcall): Add default parameter value.
6378         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6379         (abort_libfunc): Delete.
6380         (memcpy_libfunc): Likewise.
6381         (memmove_libfunc): Likewise.
6382         (memcmp_libfunc): Likewise.
6383         (memset_libfunc): Likewise.
6384         (setbits_libfunc): Likewise.
6385         (setjmp_libfunc): Likewise.
6386         (longjmp_libfunc): Likewise.
6387         (profile_function_entry_libfunc): Likewise.
6388         (profile_function_exit_libfunc): Likewise.
6389         (gcov_flush_libfunc): Likewise.
6390         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6391         and DECL_VISIBILITY on the declaration.
6392         (init_optabs): Do not initialize obsolete libfuncs.
6393         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6394         * tree-core.h (ECF_RET1): Define.
6395         (ECF_TM_PURE): Adjust.
6396         (ECF_TM_BUILTIN): Likewise.
6397         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6398         (build_common_builtin_nodes): Initialize abort builtin.
6399         Add ECF_RET1 on memcpy, memmove and memset builtins.
6400         Pass final flags for alloca and alloca_with_align builtins.
6401         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6402         obsolete builtins.
6403         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6404         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6405         set_storage_via_libcall and call emit_block_copy_via_libcall.
6406
6407 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6408
6409         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6410         DImode before it is passed to ix86_output_call_operand.
6411         (*call_value_got_x32): Ditto for operand 1.
6412
6413 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6414
6415         PR rtl-optimization/70904
6416         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6417         reload for wide mode.
6418
6419 2016-05-12  Marek Polacek  <polacek@redhat.com>
6420
6421         PR c/70756
6422         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6423         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6424         * langhooks.h (incomplete_type_error): Likewise.
6425         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6426         parameter, pass it down to incomplete_type_error.
6427         * tree.h (size_in_bytes): New inline overload.
6428         (size_in_bytes_loc): Renamed from size_in_bytes.
6429
6430 2016-05-12  Richard Biener  <rguenther@suse.de>
6431
6432         PR tree-optimization/71059
6433         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6434         nary before looking up or entering the expression into the VN
6435         hashes.
6436         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6437         Make sure to re-use NARYs without result as inserted by
6438         phi-translation.
6439
6440 2016-05-12  Richard Biener  <rguenther@suse.de>
6441
6442         PR tree-optimization/71062
6443         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6444         field.
6445         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6446         vars_contains_restrict if the var is a restrict tag.
6447         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
6448         do not disambiguate pointers against it.
6449         (dump_points_to_solution): Re-structure and adjust for new
6450         vars_contains_restrict flag.
6451         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
6452
6453 2016-05-12  Martin Liska  <mliska@suse.cz>
6454
6455         * doc/invoke.texi: Explain connection between
6456         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
6457
6458 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6459
6460         PR tree-optimization/71006
6461         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6462         consider COND_EXPR as a mask producer.
6463
6464 2016-05-12  Marek Polacek  <polacek@redhat.com>
6465
6466         PR driver/71063
6467         * opts.c (common_handle_option): Detect missing argument for --help^.
6468
6469 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6470
6471         PR target/70830
6472         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
6473         when popping the PC and within an interrupt handler routine.
6474         Add missing tab to output of "ldmfd".
6475         (output_return_instruction): Output LDMFD with SP update rather
6476         than POP when returning from interrupt handler.
6477
6478 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
6479
6480         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
6481         TARGET_64BIT && TARGET_AVX512DQ.
6482         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
6483         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
6484         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
6485         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
6486         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
6487         (*vec_extractv4si_zext): Add avx512dq alternative.
6488         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
6489         use v instead of x constraint in other alternatives where possible.
6490
6491         * config/i386/sse.md (sse2_loadld): Use v instead of x
6492         constraint in alternatives 0,1,4.
6493
6494         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
6495         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
6496         v constraints instead of x and <pinsr_evex_isa> isa attribute.
6497
6498         PR target/71019
6499         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
6500         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
6501         is not emitted unless TARGET_AVX512BW.
6502         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
6503         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
6504         for the result operand.
6505
6506         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
6507         constraint instead of x in avx alternatives.  Use maybe_evex instead
6508         of vex prefix.
6509
6510         * config/i386/constraints.md (Yv): New constraint.
6511         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
6512         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
6513         * config/i386/i386.md (avx512fvecmode): New mode attr.
6514         (*pushtf): Use v constraint instead of x.
6515         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
6516         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
6517         (*absneg<mode>2): Use Yv constraint instead of x constraint.
6518         (*absnegtf2_sse): Likewise.
6519         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
6520         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
6521         avx512f alternatives.
6522         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
6523
6524 2016-05-12  Richard Biener  <rguenther@suse.de>
6525
6526         PR tree-optimization/71060
6527         * tree-data-ref.c (initialize_data_dependence_relation): Do not
6528         require exact match of DR_BASE_OBJECT but only matching address and
6529         type.
6530
6531 2016-05-12  Richard Biener  <rguenther@suse.de>
6532
6533         PR tree-optimization/70986
6534         * cfganal.c: Include cfgloop.h.
6535         (dfs_find_deadend): Prefer to take edges exiting loops.
6536
6537 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6538
6539         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
6540         compile and run time.
6541
6542 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6543
6544         PR c/43651
6545         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
6546
6547 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
6548
6549         * config/i386/i386.c (legitimize_pic_address): Use
6550         copy_to_suggested_reg instead of gen_movsi.
6551
6552 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6553
6554         * config/rs6000/predicates.md (quad_memory_operand): Move most of
6555         the code into quad_address_p and call it to share code with
6556         vsx_quad_dform_memory_operand.
6557         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
6558         d-form support.
6559         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
6560         bit instead of being a separate word.  Split -mpower9-dform into
6561         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6562         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
6563         for the register class supporting 128-bit quad word memory offsets.
6564         (mode_supports_vsx_dform_quad): Helper function to return if the
6565         register class uses quad word memory offsets.
6566         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
6567         (rs6000_debug_reg_global): Always print if we are using LRA or not.
6568         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
6569         instructions are enabled, set up the appropriate addr_masks for
6570         128-bit types.
6571         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
6572         -mpower9-dform-scalar, instead of -mpower9-dform.
6573         (rs6000_option_override_internal): Split -mpower9-dform into two
6574         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
6575         -mpower9-dform switch sets or clears both.  If we are not using
6576         the LRA register allocator, do not enable -mpower9-dform-vector by
6577         default.  If we are using LRA, enable -mpower9-dform-vector and
6578         -mvsx-timode if it is appropriate.  Issue a warning if either
6579         -mpower9-dform-vector or -mvsx-timode are explicitly used without
6580         enabling LRA.
6581         (quad_address_offset_p): New helper function to return if the
6582         offset is legal for quad word memory instructions.
6583         (quad_address_p): New function to determin if GPR or vector
6584         register quad word memory addresses are legal.
6585         (mem_operand_gpr): Validate quad word address offsets.
6586         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
6587         d-form (register + offset) instructions.
6588         (offsettable_ok_by_alignment): Likewise.
6589         (rs6000_legitimate_offset_address_p): Likewise.
6590         (legitimate_lo_sum_address_p): Likewise.
6591         (rs6000_legitimize_address): Likewise.
6592         (rs6000_legitimize_reload_address): Add more debug statements for
6593         -mdebug=addr.
6594         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
6595         d-form instructions.
6596         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
6597         d-form instructions.  Distinguish different cases in debug
6598         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
6599         d-form instructions.
6600         (rs6000_preferred_reload_class): Likewise.
6601         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
6602         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
6603         of the ISA 2.06 indexed memory instructions.
6604         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
6605         use them to save/restore the saved vector registers instead of
6606         using Altivec instructions.
6607         (rs6000_emit_epilogue): Likewise.
6608         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
6609         (rs6000_opt_masks): Split -mpower9-dform into
6610         -mpower9-dform-scalar and -mpower9-dform-vector.
6611         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
6612         was not selected.
6613         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
6614         ISA 3.0 vector indexed memory instructions, and fold the code into
6615         the normal mov<mode> patterns.
6616         (p9_vecstore_<mode>): Likewise.
6617         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
6618         instructions.
6619         (vsx_movti_64bit): Likewise.
6620         (vsx_movti_32bit): Likewise.
6621         * config/rs6000/constraints.md (wO constraint): New constraint for
6622         ISA 3.0 vector d-form support.
6623         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
6624         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
6625         include -mpower9-dform-vector until we switch over to LRA.
6626         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
6627         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6628         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
6629         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
6630         for -mpower9-dform and -mlra.
6631         * doc/md.texi (wO constraint): Document wO constraint.
6632
6633 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
6634
6635         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
6636         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
6637         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
6638         Move handling of non-insn arguments inline into the sole user:
6639         (output_trans_func): ...here.
6640         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
6641         in emitted function prototype.
6642         (output_internal_insn_latency_func): Ditto.  Simplify.
6643         (output_internal_maximal_insn_latency_func): Ditto.  Delete
6644         always-unused argument.
6645         (output_insn_latency_func): Ditto.
6646         (output_maximal_insn_latency_func): Ditto.
6647
6648 2016-05-11  Richard Biener  <rguenther@suse.de>
6649
6650         PR tree-optimization/71055
6651         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
6652         sth with precision not equal to access size verify we don't chop
6653         off bits.
6654
6655 2016-05-11  Richard Biener  <rguenther@suse.de>
6656
6657         PR debug/71057
6658         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
6659         (dwarf2out_finish): Move retry_incomplete_types call ...
6660         (dwarf2out_early_finish): ... here.
6661
6662 2016-05-11  Richard Biener  <rguenther@suse.de>
6663
6664         PR middle-end/71002
6665         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
6666         if the langhook insists on it.
6667         * fold-const.c (make_bit_field_ref): Add arg for the original
6668         reference and preserve its alias-set.
6669         (decode_field_reference): Take exp by reference and adjust it
6670         to the original memory reference.
6671         (optimize_bit_field_compare): Adjust callers.
6672         (fold_truth_andor_1): Likewise.
6673         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
6674
6675 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
6676
6677         PR middle-end/70807
6678         * cfgrtl.h (delete_insn_and_edges): Now return bool.
6679         * cfgrtl.c (delete_insn_and_edges): Likewise.
6680         * config/i386/i386.c (convert_scalars_to_vector): Remove
6681         redundant code.
6682         * cse.c (cse_insn): Compute cse_cfg_altered.
6683         (delete_trivially_dead_insns): Likewise.
6684         (cse_cc_succs): Likewise.
6685         (rest_of_handle_cse): Free dominance info if required.
6686         (rest_of_handle_cse2): Likewise.
6687         (rest_of_handle_cse_after_global_opts): Likewise.
6688
6689 2016-05-11  Alan Modra  <amodra@gmail.com>
6690
6691         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
6692         abi_v4_pass_in_fpr): New functions.
6693         (rs6000_function_arg_boundary): Exclude complex IBM long double
6694         from 64-bit alignment when ABI_V4.
6695         (rs6000_function_arg, rs6000_function_arg_advance_1,
6696         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
6697
6698 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
6699
6700         PR rtl-optimization/71028
6701         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
6702         jump with just a return in the fallthrough block if the branch
6703         block contains just a return as well.
6704
6705 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
6706
6707         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
6708         * match.pd ((X & Y) ^ Y): ... this.
6709         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
6710         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
6711
6712 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6713
6714         * read-md.c (require_char_ws): New function.
6715         (read_string): Simplify using require_char_ws.
6716         (handle_constants): Likewise.
6717         (handle_enum): Likewise.
6718         (handle_file): Likewise.
6719         * read-md.h (require_char_ws): New declaration.
6720         * read-rtl.c (read_conditions): Simplify using require_char_ws.
6721         (read_mapping): Likewise.
6722         (read_rtx_code): Likewise.
6723         (read_nested_rtx): Likewise.
6724
6725 2016-05-10  James Norris  <jnorris@codesourcery.com>
6726
6727         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
6728         if offloading is enabled and -fopenacc or -fopenmp is specified.
6729         (CRTOFFLOADEND): Likewise.
6730         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
6731         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
6732
6733 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
6734
6735         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
6736         gotoff_operand code paths.  Use copy_to_suggested_regs and
6737         expand_simple_binop where appropriate.  Cleanup.
6738
6739 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6740
6741         PR target/70799
6742         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
6743         integer constants.
6744         (dimode_scalar_chain::vector_const_cost): New.
6745         (dimode_scalar_chain::compute_convert_gain): Handle constants.
6746         (dimode_scalar_chain::convert_op): Likewise.
6747         (dimode_scalar_chain::convert_insn): Likewise.
6748
6749 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6750
6751         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
6752         unary operation, not a binary one.
6753
6754 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6755
6756         PR middle-end/70877
6757         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6758         calls with type casted fndecl.
6759
6760 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6761
6762         PR tree-optimization/70786
6763         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6764         * calls.c (initialize_argument_information): Bind bounds
6765         with corresponding args passed by reference.
6766
6767 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
6768
6769         PR target/70927
6770         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
6771         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
6772         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
6773         accordingly.
6774
6775 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6776
6777         PR target/70963
6778         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6779         code for a zero scale factor.
6780         (vsx_xvcvdpuxds_scale): Likewise.
6781
6782 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6783
6784         * diagnostic-show-locus.c (layout::layout): Call show_ruler
6785         if show_ruler_p was set on the context.
6786         (layout::show_ruler): New method.
6787         * diagnostic.h (struct diagnostic_context): Add field
6788         "show_ruler_p".
6789
6790 2016-05-10  Richard Biener  <rguenther@suse.de>
6791
6792         PR tree-optimization/71039
6793         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
6794         (chk_uses): New function.
6795         (propagate_with_phi): Verify we can safely replicate the lhs of an
6796         aggregate assignment on all incoming edges.
6797
6798 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
6799
6800         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
6801         Forward declare.
6802         (rx_atomic_sequence): New class.
6803         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
6804         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
6805         non-inline.
6806         (rx_atomic_sequence::rx_atomic_sequence,
6807         rx_atomic_sequence::~rx_atomic_sequence): New functions.
6808         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
6809         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
6810         CTRLREG_INTB): New constants.
6811         (FETCHOP): New code iterator.
6812         (fethcop_name, fetchop_name2): New iterator code attributes.
6813         (QIHI): New mode iterator.
6814         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
6815         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
6816         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
6817
6818 2016-05-10  Martin Liska  <mliska@suse.cz>
6819
6820         * tree-inline.c (remap_dependence_clique): Do not remap
6821         debugging statements.
6822
6823 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6824
6825         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6826         ("*fixuns_truncdfdi2_z13")
6827         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6828         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6829         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6830
6831 2016-05-10  Richard Biener  <rguenther@suse.de>
6832
6833         PR tree-optimization/70497
6834         PR tree-optimization/28367
6835         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
6836         split out from ...
6837         (visit_reference_op_load): ... here.
6838         (vn_reference_lookup_3): Use it to handle subreg-like accesses
6839         with simplified BIT_FIELD_REFs.
6840         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
6841         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
6842         correctly.
6843
6844 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6845
6846         * dwarf2out.c (add_abstract_origin_attribute): Adjust
6847         documentation comment.  For BLOCK nodes, add a
6848         DW_AT_abstract_origin attribute that points to the DIE generated
6849         for the origin BLOCK.
6850         (gen_lexical_block_die): Call add_abstract_origin_attribute for
6851         blocks from inlined functions.
6852
6853 2016-05-10  Alan Modra  <amodra@gmail.com>
6854
6855         PR target/70947
6856         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
6857         regrename modifying insns saving lr before __morestack call.
6858         * config/rs6000/rs6000.md (split_stack_return): Similarly for
6859         insns restoring lr after __morestack call.
6860
6861 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
6862
6863         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
6864         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
6865         expanders.
6866         * config/i386/sse.md (vec_interleave_high<mode>,
6867         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
6868         <avx512>_vpermt2var<mode>3_maskz): Likewise.
6869
6870 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6871
6872         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
6873         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
6874         parallel reassociation for power8 and forward.
6875
6876 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
6877
6878         * config/i386/i386.md (absneg splitters with general regs): Use
6879         general_reg_operand predicate.
6880         (btsq peephole2): Use x86_64_immediate_operand to check if new
6881         value is suitable for immediate operand.  Generate emitted insn
6882         using RTL expressions.
6883         (btcq peephole2): Ditto.
6884         (btrq peephole2): Ditto.  Generate correct immediate operand
6885         for AND masking.
6886
6887 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6888
6889         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
6890         bitpos.
6891
6892 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6893
6894         * tree-affine.c (wide_int_constant_multiple_p): Add missing
6895         pointer dereference.
6896
6897 2016-05-09  Richard Biener  <rguenther@suse.de>
6898
6899         PR tree-optimization/70985
6900         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
6901         op0 isn't a gimple register.
6902
6903 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
6904
6905         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
6906         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
6907         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
6908         (i6400_fpu_mult): New cpu units.
6909         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
6910         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
6911         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
6912         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
6913         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
6914         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
6915         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
6916         (i6400_msa_long_float4, i6400_msa_long_float5)
6917         (i6400_msa_long_float8, i6400_msa_fdiv_df)
6918         (i6400_msa_fdiv_sf): New reservations.
6919         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
6920         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
6921         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
6922         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
6923         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
6924         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
6925         (msa_short_cmp, msa_short_float2, msa_short_logic3)
6926         (msa_short_store4, msa_long_load, msa_short_store)
6927         (msa_long_logic, msa_long_float2, msa_long_float4)
6928         (msa_long_float5, msa_long_float8, msa_long_mult)
6929         (msa_long_fdiv, msa_long_div): New reservations.
6930
6931 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
6932             Sameera Deshpande  <sameera.deshpande@imgtec.com>
6933             Matthew Fortune  <matthew.fortune@imgtec.com>
6934             Graham Stott  <graham.stott@imgtec.com>
6935             Chao-ying Fu  <chao-ying.fu@imgtec.com>
6936
6937         * config.gcc: Add MSA header file for mips*-*-* target.
6938         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
6939         (Ubv8i, Urv8):  New constraints.
6940         * config/mips/mips-ftypes.def: Add function types for MSA
6941         builtins.
6942         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
6943         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
6944         * config/mips/mips-msa.md: New file.
6945         * config/mips/mips-protos.h
6946         (mips_split_128bit_const_insns): New prototype.
6947         (mips_msa_idiv_insns): Likewise.
6948         (mips_split_128bit_move): Likewise.
6949         (mips_split_128bit_move_p): Likewise.
6950         (mips_split_msa_copy_d): Likewise.
6951         (mips_split_msa_insert_d): Likewise.
6952         (mips_split_msa_fill_d): Likewise.
6953         (mips_expand_msa_branch): Likewise.
6954         (mips_const_vector_same_val_p): Likewise.
6955         (mips_const_vector_same_bytes_p): Likewise.
6956         (mips_const_vector_same_int_p): Likewise.
6957         (mips_const_vector_shuffle_set_p): Likewise.
6958         (mips_const_vector_bitimm_set_p): Likewise.
6959         (mips_const_vector_bitimm_clr_p): Likewise.
6960         (mips_msa_vec_parallel_const_half): Likewise.
6961         (mips_msa_output_division): Likewise.
6962         (mips_ldst_scaled_shift): Likewise.
6963         (mips_expand_vec_cond_expr): Likewise.
6964         * config/mips/mips.c (enum mips_builtin_type): Add
6965         MIPS_BUILTIN_MSA_TEST_BRANCH.
6966         (mips_gen_const_int_vector_shuffle): New prototype.
6967         (mips_const_vector_bitimm_set_p): New function.
6968         (mips_const_vector_bitimm_clr_p): Likewise.
6969         (mips_const_vector_same_val_p): Likewise.
6970         (mips_const_vector_same_bytes_p): Likewise.
6971         (mips_const_vector_same_int_p): Likewise.
6972         (mips_const_vector_shuffle_set_p): Likewise.
6973         (mips_symbol_insns): Forbid loading symbols via immediate for
6974         MSA.
6975         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
6976         stores.
6977         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
6978         MSA.
6979         (mips_lx_address_p): Add support load indexed address for MSA.
6980         (mips_address_insns): Add calculation of instructions needed for
6981         stores and loads for MSA.
6982         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
6983         CONST_VECTOR for MSA and let it fall through.
6984         (mips_ldst_scaled_shift): New function.
6985         (mips_subword_at_byte): Likewise.
6986         (mips_msa_idiv_insns): Likewise.
6987         (mips_legitimize_move): Validate MSA moves.
6988         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
6989         calculation of costs for MSA division.
6990         (mips_split_move_p): Check if MSA moves need splitting.
6991         (mips_split_move): Split MSA moves if necessary.
6992         (mips_split_128bit_move_p): New function.
6993         (mips_split_128bit_move): Likewise.
6994         (mips_split_msa_copy_d): Likewise.
6995         (mips_split_msa_insert_d): Likewise.
6996         (mips_split_msa_fill_d): Likewise.
6997         (mips_output_move): Handle MSA moves.
6998         (mips_expand_msa_branch): New function.
6999         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
7000         Reinstate 'y' modifier.
7001         (mips_file_start): Add MSA .gnu_attribute.
7002         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
7003         FPRs.
7004         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
7005         (mips_class_max_nregs): Add register size for MSA supported mode.
7006         (mips_cannot_change_mode_class): Allow conversion between MSA
7007         vector modes and TImode.
7008         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
7009         instruction.
7010         (mips_secondary_reload_class): Force MSA loads/stores via memory.
7011         (mips_preferred_simd_mode): Add preffered modes for MSA.
7012         (mips_vector_mode_supported_p): Add MSA supported modes.
7013         (mips_autovectorize_vector_sizes): New function.
7014         (mips_msa_output_division): Likewise.
7015         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
7016         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
7017         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
7018         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
7019         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
7020         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
7021         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
7022         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
7023         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
7024         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
7025         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
7026         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
7027         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
7028         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
7029         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
7030         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
7031         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
7032         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
7033         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
7034         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
7035         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
7036         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
7037         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
7038         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
7039         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
7040         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
7041         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
7042         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
7043         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
7044         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
7045         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
7046         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
7047         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
7048         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
7049         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
7050         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
7051         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
7052         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
7053         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
7054         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
7055         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
7056         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
7057         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
7058         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
7059         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7060         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7061         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7062         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7063         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7064         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7065         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7066         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7067         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
7068         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
7069         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
7070         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
7071         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
7072         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
7073         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
7074         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
7075         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
7076         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
7077         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
7078         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
7079         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
7080         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
7081         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
7082         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
7083         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
7084         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
7085         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
7086         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
7087         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
7088         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
7089         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
7090         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
7091         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
7092         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
7093         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
7094         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
7095         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
7096         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
7097         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
7098         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
7099         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
7100         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
7101         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
7102         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
7103         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
7104         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
7105         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
7106         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
7107         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
7108         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
7109         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
7110         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
7111         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
7112         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
7113         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
7114         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
7115         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
7116         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
7117         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
7118         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
7119         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
7120         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
7121         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
7122         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
7123         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
7124         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
7125         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
7126         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
7127         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
7128         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
7129         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
7130         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
7131         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
7132         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
7133         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
7134         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
7135         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
7136         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
7137         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
7138         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
7139         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
7140         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
7141         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
7142         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
7143         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
7144         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7145         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7146         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7147         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7148         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7149         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7150         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7151         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7152         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7153         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7154         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7155         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7156         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7157         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7158         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7159         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7160         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7161         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7162         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7163         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7164         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7165         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7166         move_v builtins.
7167         (mips_get_builtin_decl_index): New array.
7168         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7169         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7170         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7171         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7172         (mips_init_builtins): Initialize mips_get_builtin_decl_index
7173         array.
7174         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7175         hook.
7176         (mips_expand_builtin_insn): Prepare operands for
7177         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7178         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7179         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7180         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7181         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7182         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7183         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7184         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7185         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7186         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7187         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7188         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7189         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7190         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7191         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7192         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7193         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7194         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7195         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7196         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7197         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7198         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7199         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7200         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7201         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7202         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7203         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7204         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7205         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7206         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7207         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7208         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7209         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7210         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7211         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7212         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7213         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7214         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7215         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7216         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7217         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7218         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7219         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7220         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7221         These are set implicitly and an error is reported if overridden.
7222         (mips_expand_builtin_msa_test_branch): New function.
7223         (mips_expand_msa_shuffle): Likewise.
7224         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7225         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7226         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7227         (mips_expand_vec_unpack): Add support for MSA.
7228         (mips_expand_vector_init): Likewise.
7229         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7230         instead of const0_rtx.
7231         (mips_msa_vec_parallel_const_half): New function.
7232         (mips_gen_const_int_vector): Likewise.
7233         (mips_gen_const_int_vector_shuffle): Likewise.
7234         (mips_expand_msa_cmp): Likewise.
7235         (mips_expand_vec_cond_expr): Likewise.
7236         * config/mips/mips.h
7237         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7238         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7239         specified.
7240         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7241         (ISA_HAS_MSA): New macro.
7242         (UNITS_PER_MSA_REG): Likewise.
7243         (BITS_PER_MSA_REG): Likewise.
7244         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7245         (MSA_REG_FIRST): New macro.
7246         (MSA_REG_LAST): Likewise.
7247         (MSA_REG_NUM): Likewise.
7248         (MSA_REG_P): Likewise.
7249         (MSA_REG_RTX_P): Likewise.
7250         (MSA_SUPPORTED_MODE_P): Likewise.
7251         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7252         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7253         * config/mips/mips.md: Include mips-msa.md.
7254         (alu_type): Add simd_add.
7255         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
7256         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
7257         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
7258         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
7259         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
7260         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
7261         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
7262         simd_move, simd_load, simd_store.  Choose "multi" for moves
7263         for "qword_mode".
7264         (qword_mode): New attribute.
7265         (insn_count): Add instruction count for quad moves.
7266         Increase the count for MIPS SIMD division.
7267         (UNITMODE): Add UNITMODEs for vector types.
7268         (addsub): New code iterator.
7269         * config/mips/mips.opt (mmsa): New option.
7270         * config/mips/msa.h: New file.
7271         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
7272         specified.
7273         * config/mips/mti-linux.h: Likewise.
7274         * config/mips/predicates.md
7275         (const_msa_branch_operand): New constraint.
7276         (const_uimm3_operand): Likewise.
7277         (const_uimm4_operand): Likewise.
7278         (const_uimm5_operand): Likewise.
7279         (const_uimm8_operand): Likewise.
7280         (const_imm5_operand): Likewise.
7281         (aq10b_operand): Likewise.
7282         (aq10h_operand): Likewise.
7283         (aq10w_operand): Likewise.
7284         (aq10d_operand): Likewise.
7285         (const_m1_operand): Likewise.
7286         (reg_or_m1_operand): Likewise.
7287         (const_exp_2_operand): Likewise.
7288         (const_exp_4_operand): Likewise.
7289         (const_exp_8_operand): Likewise.
7290         (const_exp_16_operand): Likewise.
7291         (const_vector_same_val_operand): Likewise.
7292         (const_vector_same_simm5_operand): Likewise.
7293         (const_vector_same_uimm5_operand): Likewise.
7294         (const_vector_same_uimm6_operand): Likewise.
7295         (const_vector_same_uimm8_operand): Likewise.
7296         (par_const_vector_shf_set_operand): Likewise.
7297         (reg_or_vector_same_val_operand): Likewise.
7298         (reg_or_vector_same_simm5_operand): Likewise.
7299         (reg_or_vector_same_uimm6_operand): Likewise.
7300         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7301         section.
7302         * doc/invoke.texi (-mmsa): Document new option.
7303
7304 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7305
7306         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7307         * configure: Regenerate.
7308         * config.in: Regenerate.
7309         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7310         on -fvtable-verify.
7311         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7312         (ENDFILE_VTV_SPEC): Define.
7313
7314 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7315
7316         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7317         registers in all interrupt handlers if necessary.
7318         (rl78_option_override): Add warning.
7319         (MUST_SAVE_MDUC_REGISTERS): New macro.
7320         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7321         * config/rl78/rl78.c (check_mduc_usage): New function.
7322         (mduc_regs): New structure to hold MDUC register data.
7323         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7324         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7325         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7326         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7327         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7328         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7329
7330 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7331
7332         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7333         (tree-ssa-loop-niter.h): Ditto.
7334         (idx_within_array_bound, ref_within_array_bound): New functions.
7335         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7336         Factor out check on writable base object to ...
7337         (base_object_writable): ... here.
7338
7339 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7340
7341         * config/arm/arm.md (probe_stack): Add modes to set source
7342         and destination.
7343
7344 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7345
7346         * regrename.c (base_reg_class_for_rename): New static function.
7347         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7348
7349 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7350
7351         * cgraph.c (thunk_adjust): Export.
7352         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7353         * cgraphunit.c (thunk_adjust): Export.
7354         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7355         thunks.
7356         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7357         inlinable.
7358         * tree-inline.c (expand_call_inline): Expand thunks inline.
7359
7360 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7361
7362         PR target/70998
7363         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7364         (*sse2_vd_cvtss2sd): Ditto.
7365         * config/i386/i386.md
7366         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7367         Generate *sse2_vd_cvtsd2ss pattern.
7368         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7369         Generate *sse2_vd_cvtss2sd pattern.
7370
7371 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7372
7373         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7374         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7375         users.
7376
7377 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7378
7379         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7380         * config/sh/sh.c: Define and declare variables on first use throughout
7381         the file.
7382         (current_function_interrupt): Change to bool type.
7383         (frame_insn): Rename to emit_frame_insn and update users.
7384         (push_regs): Use bool for 'interrupt_handler' argument.
7385         (save_schedule_s): Remove.
7386         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7387         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7388         targetm.asm_out.unaligned_op.di.
7389         (gen_far_branch): Remove redundant forward declaration.
7390         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7391         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7392         (sh_set_return_address, sh_function_ok_for_sibcall,
7393         scavenge_reg): Update comments.
7394         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7395         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7396         (sh_attr_renesas_p): Remove unnecessary parentheses.
7397         (branch_dest): Simplify.
7398         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7399         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7400         (CUMULATIVE_ARGS): Change macro to typedef.
7401         (current_function_interrupt): Change to bool type.
7402         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7403         Surround with __cplusplus ifdef.
7404         (sh_compare_op0, sh_compare_op1): Remove.
7405         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7406
7407 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7408
7409         * config/arm/arm.md: (arch): Add neon.
7410         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7411         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7412         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7413         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7414         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7415         (thumb2_movdf_vfp): Likewise.
7416
7417 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7418
7419         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7420         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7421         (*andqi_1): Add preferred_for_speed attribute to disparage
7422         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7423         (*<code>qi_1): Ditto.
7424         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7425         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7426         (*ashlqi3_1): Ditto.
7427         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7428         Add preferred_for_size attribute to disparage alternative 0 and
7429         preferred_for_speed attribute to disparage alternative 1 for
7430         TARGET_PARTIAL_REG_STALL targets.
7431
7432 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7433
7434         PR tree-optimization/70956
7435         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7436         def.
7437
7438 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7439
7440         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
7441         * config/sh/sh.c (sh_cbranch_distance): Implement it.
7442         * config/sh/sh.md (branch_zero): Remove define_attr.
7443         (define_delay): Disable delay slot if branch distance is one insn.
7444
7445 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7446
7447         * config/i386/i386.md (LEAMODE): New mode attribute.
7448         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
7449         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
7450         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
7451         operand 2 predicate.
7452         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
7453         (*lea<mode>_general_3): Ditto.
7454         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
7455
7456 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7457
7458         * genmddump.c (main): Convert argv from char ** to const char **.
7459
7460 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7461
7462         * coretypes.h (OVERRIDE): New macro.
7463         (FINAL): New macro.
7464
7465 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7466
7467         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
7468         allow coalescing if the types are compatible.
7469
7470 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7471
7472         * pass_manager.h (pass_manager::register_pass_name): New method.
7473         (pass_manager::get_pass_by_name): New method.
7474         (pass_manager::create_pass_tab): New method.
7475         (pass_manager::m_name_to_pass_map): New field.
7476         * passes.c (name_to_pass_map): Delete global in favor of field
7477         "m_name_to_pass_map" of pass_manager.
7478         (register_pass_name): Rename from a function to...
7479         (pass_manager::register_pass_name): ...this method, updating
7480         for renaming of global "name_to_pass_map" to field
7481         "m_name_to_pass_map".
7482         (create_pass_tab): Rename from a function to...
7483         (pass_manager::create_pass_tab): ...this method, updating
7484         for renaming of global "name_to_pass_map" to field.
7485         (get_pass_by_name): Rename from a function to...
7486         (pass_manager::get_pass_by_name): ...this method.
7487         (enable_disable_pass): Convert use of get_pass_by_name to
7488         a method call, locating the pass_manager singleton.
7489
7490 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7491
7492         * genattr-common.c (main): Convert argv from char ** to const char **.
7493         * genattr.c (main): Likewise.
7494         * genattrtab.c (main): Likewise.
7495         * genautomata.c (initiate_automaton_gen): Likewise.
7496         (main): Likewise.
7497         * gencodes.c (main): Likewise.
7498         * genconditions.c (main): Likewise.
7499         * genconfig.c (main): Likewise.
7500         * genconstants.c (main): Likewise.
7501         * genemit.c (main): Likewise.
7502         * genenums.c (main): Likewise.
7503         * genextract.c (main): Likewise.
7504         * genflags.c (main): Likewise.
7505         * genmddeps.c (main): Likewise.
7506         * genopinit.c (main): Likewise.
7507         * genoutput.c (main): Likewise.
7508         * genpeep.c (main): Likewise.
7509         * genpreds.c (main): Likewise.
7510         * genrecog.c (main): Likewise.
7511         * gensupport.c (init_rtx_reader_args_cb): Likewise.
7512         (init_rtx_reader_args): Likewise.
7513         * gensupport.h (init_rtx_reader_args_cb): Likewise.
7514         (init_rtx_reader_args): Likewise.
7515         * gentarget-def.c (main): Likewise.
7516         * read-md.c (read_md_files): Likewise.
7517         * read-md.h (read_md_files): Likewise.
7518
7519 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7520
7521         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
7522         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
7523         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
7524         Remove unused predicate.
7525         (register_and_not_fp_reg_operand): Ditto.
7526
7527 2016-05-06  Martin Liska  <mliska@suse.cz>
7528
7529         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
7530         instead of vec as the vector is local to the function.
7531
7532 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7533
7534         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
7535         avx512bw alternative.
7536
7537         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
7538         before the ashr<mode>3 pattern.
7539
7540         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
7541         v instead of x in vex or maybe_vex alternatives, use
7542         maybe_evex instead of vex in prefix.
7543
7544         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
7545         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
7546         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
7547         in vex or maybe_vex alternatives, use maybe_evex instead of vex
7548         in prefix.
7549
7550         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
7551         v instead of x in vex or maybe_vex alternatives, use
7552         maybe_evex instead of vex in prefix.
7553
7554         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
7555         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
7556         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
7557         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
7558         alternatives, use maybe_evex instead of vex in prefix.
7559
7560         * config/i386/sse.md (vec_interleave_lowv4sf,
7561         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
7562         v instead of x in vex or maybe_vex alternatives, use
7563         maybe_evex instead of vex in prefix.
7564
7565         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
7566         v instead of x in vex or maybe_vex alternatives, use
7567         maybe_evex instead of vex in prefix.
7568
7569         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
7570         v constraint instead of x.
7571
7572 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7573
7574         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
7575         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
7576         equality first.
7577
7578 2016-05-06  Richard Biener  <rguenther@suse.de>
7579
7580         PR tree-optimization/70948
7581         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7582         Properly clobber all fields of va_list for __builtin_va_start.
7583
7584 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7585
7586         PR debug/70935
7587         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
7588         loop latch destination.
7589
7590 2016-05-06  Martin Liska  <mliska@suse.cz>
7591
7592         * tree-ssa-uninit.c: Apply manual changes
7593         to the GNU coding style.
7594         (prune_uninit_phi_opnds): Rename from
7595         prune_uninit_phi_opnds_in_unrealizable_paths.
7596
7597 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7598
7599         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
7600         mspace): Remove deprecated options.
7601         * doc/invoke.texi (SH options): Remove -mspace.
7602
7603 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7604
7605         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
7606
7607 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7608
7609         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
7610         corresponding combine split pattern.
7611
7612 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7613
7614         PR target/58219
7615         * config/sh/predicates.md (long_displacement_mem_operand): New.
7616         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
7617         Add movi20, movi20s alternatives.  Adjust length attribute for
7618         alternatives.
7619         (movsi_ie): Allow for any FPU.  Adjust length attribute for
7620         alternatives.
7621         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
7622         attribute for alternatives.
7623         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
7624         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
7625         length attribute for alternatives.
7626
7627 2016-05-06  Richard Biener  <rguenther@suse.de>
7628
7629         PR tree-optimization/70960
7630         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
7631
7632 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7633
7634         PR target/52933
7635         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
7636         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
7637
7638 2016-05-06  Marek Polacek  <polacek@redhat.com>
7639
7640         PR sanitizer/70875
7641         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
7642
7643 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7644
7645         PR target/54089
7646         * config/sh/sh.md (*rotcr): Add another variant.
7647
7648 2016-05-06  Richard Biener  <rguenther@suse.de>
7649
7650         PR middle-end/70931
7651         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
7652
7653 2016-05-06  Richard Biener  <rguenther@suse.de>
7654
7655         PR middle-end/70941
7656         * fold-const.c (split_tree): Always convert to the original type
7657         before negating.
7658
7659 2016-05-06  Richard Biener  <rguenther@suse.de>
7660
7661         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
7662         (fwprop_addr): Likewise.
7663
7664 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7665
7666         PR target/70873
7667         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
7668         New prototype.
7669         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
7670         * config/i386/i386.md (push mem splitter): Use find_constant_src in
7671         the splitter condition.
7672         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
7673         the splitter condition.
7674         (FP float_extend load splitter): Ditto.
7675
7676 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
7677
7678         * config/i386/i386.md (peehole2 patterns): Change true_regnum
7679         to REGNO in all peephole2 patterns.
7680         (post-reload splitters): Change true_regnum to REGNO in
7681         post-reload splitters.
7682         (zero_extend splitters): Use general_reg_operand and
7683         nonimmediate_gr_operand predicates.
7684
7685 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
7686
7687         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
7688         v constraint instead of x.
7689
7690 2016-05-05  Alan Modra  <amodra@gmail.com>
7691
7692         PR target/68662
7693         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7694         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
7695         TARGET_NO_FP_IN_TOC for -mrelocatable.
7696         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
7697         TARGET_RELOCATABLE test.
7698         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7699         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7700         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7701         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7702         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7703         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7704         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7705         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7706         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
7707         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7708         Likewise.
7709         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
7710         (rs6000_stack_info): Likewise.
7711         (rs6000_elf_asm_out_constructor): Likewise.
7712         (rs6000_elf_asm_out_destructor): Likewise.
7713         (rs6000_elf_declare_function_name): Likewise.
7714         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
7715         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
7716         Don't define.
7717
7718 2016-05-05  Alan Modra  <amodra@gmail.com>
7719
7720         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
7721
7722 2016-05-05  Alan Modra  <amodra@gmail.com>
7723
7724         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
7725         out-of-line gpr restore for one or two regs if that would add
7726         a save of lr.
7727
7728 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
7729
7730         PR target/70873
7731         * config/i386/i386.md
7732         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
7733         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
7734         as operand 0 predicate.
7735         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
7736         Ditto.
7737         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
7738         Ditto.  Emit the pattern using RTX.
7739
7740         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
7741         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
7742         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
7743         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
7744         Ditto.
7745         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
7746         sse_reg_operand as operand 0 predicate.
7747
7748         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
7749         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
7750         instead of gen_rtx_REG.
7751         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
7752         Ditto.
7753
7754 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7755
7756         * function.c (emit_use_return_register_into_block): Delete.
7757         (gen_return_pattern): Delete.
7758         (emit_return_into_block): Delete.
7759         (active_insn_between): Delete.
7760         (convert_jumps_to_returns): Delete.
7761         (emit_return_for_exit): Delete.
7762         (thread_prologue_and_epilogue_insns): Delete all code dealing with
7763         simple_return for shrink-wrapped blocks.
7764         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
7765         end of blocks that need one.
7766         (get_unconverted_simple_return): Delete.
7767         (convert_to_simple_return): Delete.
7768         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
7769         (convert_to_simple_return): Ditto.
7770
7771 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7772
7773         * cfgcleanup.c (bb_is_just_return): New function.
7774         (try_optimize_cfg): Simplify jumps to return, branches to return,
7775         and branches around return.
7776
7777 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7778
7779         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
7780         branch to a return.
7781
7782 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7783
7784         PR c++/70906
7785         PR c++/70933
7786         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
7787         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
7788         assert flags & OEP_HASH_CHECK, instead of asserting it
7789         never happens.  Handle TARGET_EXPR.
7790         * fold-const.c (operand_equal_p): For hash verification,
7791         or in OEP_HASH_CHECK into flags.
7792
7793 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7794
7795         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
7796         comment.
7797         (compute_samebase_partition_bases): Fix typo.
7798
7799 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * config/i386/sse.md (vec_interleave_highv8sf,
7802         vec_interleave_lowv8sf, vec_interleave_highv4df,
7803         vec_interleave_lowv4df): Remove constraints from expanders.
7804
7805         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
7806
7807 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7808
7809         * tree-inline.c (expand_call_inline): Fix path dealing with
7810         making lhs of call statement undefined.
7811
7812 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7813
7814         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7815         Check availability on NODE, too.
7816         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
7817         (cgraph_node::call_for_symbol_and_aliases): Likewise.
7818         (varpool_node::call_for_symbol_and_aliase): Likewise.
7819         * ipa-pure-const.c (add_new_function): Analyze all bodies.
7820         (propagate_pure_const): Propagate across interposable functions, too.
7821         (skip_function_for_local_pure_const): Do not skip interposable bodies
7822         with aliases.
7823         (pass_local_pure_const::execute): Update.
7824
7825 2016-05-04  Marek Polacek  <polacek@redhat.com>
7826
7827         * doc/invoke.texi: Document -Wdangling-else.
7828
7829 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7830
7831         * config.gcc: Error out when conflicting multilib is detected.  Do not
7832         loop over multilibs since no combination is legal.
7833
7834 2016-05-04  Alan Modra  <amodra@gmail.com>
7835
7836         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
7837         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
7838         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7839         Align .toc.
7840
7841 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
7842
7843         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
7844         Clean up p5600 comments.
7845
7846 2016-05-04  Richard Biener  <rguenther@suse.de>
7847
7848         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
7849         constructor simplifications.
7850         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
7851
7852 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
7853
7854         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
7855         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
7856         result.set_rtx is null instead of aborting.
7857         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
7858         Always enable.
7859         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
7860         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
7861         *mov<mode>_store_postinc): New patterns.
7862
7863 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
7864
7865         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
7866         as commutative.  Check both conversions are NOP.
7867         ((A & B) OP (C & B)): Remove.
7868
7869 2016-05-04  Alan Modra  <amodra@gmail.com>
7870
7871         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
7872
7873 2016-05-04  Alan Modra  <amodra@gmail.com>
7874
7875         PR target/70866
7876         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
7877         when cr2,3,4 are all fixed regs.
7878
7879 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
7880
7881         PR rtl-optimization/57193
7882         * opts.c (default_options_table): Revert OPT_frename_registers change.
7883         * doc/invoke.texi (-frename-registers, -O2): Likewise.
7884
7885 2016-05-03  Martin Sebor  <msebor@redhat.com>
7886
7887         PR c++/66561
7888         * builtins.c (fold_builtin_FILE): New function.
7889         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
7890         (fold_builtin_0): Call them.
7891         * gimplify.c (gimplify_call_expr): Remove the handling of
7892         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
7893
7894         PR c++/66561
7895         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
7896         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
7897         constants.
7898
7899         PR c++/66639
7900         * doc/extend.texi (Function Names as Strings): Update __func__,
7901         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
7902         constants.
7903
7904 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7905             Richard Biener  <rguenther@suse.de>
7906
7907         PR tree-optimization/70916
7908         * tree-if-conv.c: Include cfganal.h.
7909         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
7910         and remove_fake_exit_edges around the optimization pass.
7911
7912 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
7913
7914         * cgraph.c (symbol_table::create_edge): Set inline_failed.
7915         (cgraph_edge::make_direct): Likewise.
7916         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
7917         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7918         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
7919         (CIF_THUNK): New code.
7920         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
7921         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
7922         (compute_inline_parameters): Set inline_failed for thunks.
7923         (inline_analyze_function): Cleanup.
7924         * ipa-inline.c (can_inline_edge_p): Do not deal with
7925         call_stmt_cannot_inline_p.
7926         (can_early_inline_edge_p): Likewise.
7927         (early_inliner): Initialize inline_failed.
7928         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
7929
7930 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
7931
7932         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
7933         from nonimm_ssenomem_operand.
7934         (nonimm_ssenomem_operand): New predicate.
7935         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
7936         as operand 0 predicate.
7937         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
7938         Disable unsupported alternatives using "enabled" attribute.
7939         Use register_ssemem_operand as operand 0 predicate.
7940         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
7941
7942 2016-05-03  Marek Polacek  <polacek@redhat.com>
7943
7944         PR c/70859
7945         * input.c (expansion_point_location): New function.
7946         * input.h (expansion_point_location): Declare.
7947
7948 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7949
7950         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
7951         occurence with frame_offset_ ones.
7952
7953 2016-05-03  Alan Modra  <amodra@gmail.com>
7954
7955         PR rtl-optimization/70890
7956         * ira.c (combine_and_move_insns): When moving def_insn, remove
7957         equivs on use_insn.
7958
7959 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7960
7961         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
7962         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
7963         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
7964         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
7965
7966 2016-05-03  Alan Modra  <amodra@gmail.com>
7967
7968         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
7969         for SAVE_MULTIPLE/STORE_MULTIPLE.
7970
7971 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7972
7973         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
7974         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
7975
7976 2016-05-03  Richard Biener  <rguenther@suse.de>
7977
7978         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
7979         default true.
7980         (gimplify_arg): Likewise.
7981         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
7982         re-writing the result to a decl if required.
7983         (internal_get_tmp_var): Add allow_ssa parameter
7984         and override into_ssa with it.
7985         (get_formal_tmp_var): Adjust.
7986         (get_initialized_tmp_var): Add allow_ssa parameter.
7987         (gimplify_arg): Add allow_ssa parameter and avoid generating
7988         SSA names for the result false.
7989         (gimplify_call_expr): If the call may return twice do not
7990         gimplify parameters into SSA.
7991         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
7992         (gimplify_modify_expr): Adjust assert.  For noreturn calls
7993         with a SSA name LHS adjust its def.
7994         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
7995         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
7996         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
7997         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
7998         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
7999         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
8000         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
8001         (optimize_target_teams): Do not allow SSA names for clause operands.
8002         (gimplify_expr): Likewise for where we mark the result addressable.
8003         * passes.def (pass_init_datastructures): Remove.
8004         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
8005         (rewrite_stmt): Likewise.
8006         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
8007         (replace_locals_op): Replace SSA names.
8008         (copy_gimple_seq_and_replace_locals): Init src_cfun.
8009         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
8010         * cgraph.c (release_function_body): Free CFG annotations only
8011         when we have a CFG.  Simplify.
8012         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8013         force_gimple_operand instead of get_initialized_tmp_var.
8014         * tree-pass.h (make_pass_init_datastructures): Remove.
8015         * tree-ssa.c (execute_init_datastructures): Remove.
8016         (pass_data_init_datastructures): Likewise.
8017         (class pass_init_datastructures): Likewise.
8018         (make_pass_init_datastructures): Likewise.
8019         * omp-low.c (create_omp_child_function): Init SSA data structures.
8020         (grid_expand_target_grid_body): Likewise.
8021         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
8022         name before adding it to names_to_release.
8023         (remove_bb): Always release SSA defs.
8024         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
8025         before dereferencing it.
8026         * cgraphunit.c (init_lowered_empty_function): Always
8027         int SSA data structures.
8028         * tree-ssanames.c (release_defs): Remove assert that we are in
8029         SSA form.
8030         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
8031
8032 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8033             Uros Bizjak  <ubizjak@gmail.com>
8034
8035         PR rtl-optimization/70467
8036         * config/i386/predicates.md (x86_64_hilo_int_operand,
8037         x86_64_hilo_general_operand): New predicates.
8038         * config/i386/constraints.md (Wd): New constraint.
8039         * config/i386/i386.md (mode attr di): Use Wd instead of e.
8040         (general_hilo_operand): New mode attr.
8041         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
8042         instead of <general_operand>.
8043         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
8044         x86_64_hilo_general_operand instead of <general_operand>.
8045
8046 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8047
8048         PR tree-optimization/70916
8049         * tree-if-conv.c (constant_or_ssa_name): Removed.
8050         (fold_build_cond_expr): Use is_gimple_val instead of
8051         constant_or_ssa_name.
8052
8053         PR tree-optimization/70916
8054         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
8055         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
8056
8057         PR target/49244
8058         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
8059         (optimize_atomic_bit_test_and): New function.
8060         (pass_fold_builtins::execute): Use it.
8061         * optabs.def (atomic_bit_test_and_set_optab,
8062         atomic_bit_test_and_complement_optab,
8063         atomic_bit_test_and_reset_optab): New optabs.
8064         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
8065         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
8066         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
8067         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
8068         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
8069         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
8070         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
8071         * doc/md.texi (atomic_bit_test_and_set@var{mode},
8072         atomic_bit_test_and_complement@var{mode},
8073         atomic_bit_test_and_reset@var{mode}): Document.
8074         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
8075         atomic_bit_test_and_complement<mode>,
8076         atomic_bit_test_and_reset<mode>): New expanders.
8077         (atomic_bit_test_and_set<mode>_1,
8078         atomic_bit_test_and_complement<mode>_1,
8079         atomic_bit_test_and_reset<mode>_1): New insns.
8080
8081 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
8082
8083         PR rtl-optimization/70687
8084         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
8085         instead of unsigned HOST_WIDE_INT.
8086
8087 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
8088
8089         PR rtl-optimization/44281
8090         * hard-reg-set.h (struct target_hard_regs): New field
8091         x_fixed_nonglobal_reg_set.
8092         (fixed_nonglobal_reg_set): New macro.
8093         * reginfo.c (init_reg_sets_1): Initialize it.
8094         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
8095         of fixed_reg_set.
8096         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
8097
8098 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8099
8100         PR tree-optimization/56541
8101         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
8102         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
8103         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
8104         (any_complicated_phi): new static variable.
8105         (aggressive_if_conv): delete.
8106         (if_convertible_phi_p): support phis with more than two arguments.
8107         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
8108         critical pred edges.
8109         (ifcvt_split_critical_edges): support phis with more than two
8110         arguments by checking new parameter.  only split critical edges
8111         if needed.
8112         (tree_if_conversion): handle simd pragma marked loop using new
8113         local variable aggressive_if_conv.  check any_complicated_phi.
8114
8115 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8116
8117         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
8118         before using it.
8119
8120 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8121
8122         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
8123         cbase.
8124
8125 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
8126
8127         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
8128         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
8129         define_insn_and_split.
8130         (mulsi3_i): New define_insn_and_split.
8131         (mulsi3_call): Convert to define_insn.
8132         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
8133         Remove constraints.
8134
8135 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8136
8137         * machmode.h (mode_complex): Add support to give the complex mode
8138         for a given mode.
8139         (GET_MODE_COMPLEX_MODE): Likewise.
8140         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
8141         stored by build_complex_type and gfc_build_complex_type instead of
8142         trying to figure out the appropriate mode based on the size. Raise
8143         an assertion error, if the type was not set.
8144         * genmodes.c (struct mode_data): Add field for the complex type of
8145         the given type.
8146         (blank_mode): Likewise.
8147         (make_complex_modes): Remember the complex mode created in the
8148         base type.
8149         (emit_mode_complex): Write out the mode_complex array to map a
8150         type mode to the complex version.
8151         (emit_insn_modes_c): Likewise.
8152         * tree.c (build_complex_type): Set the complex type to use before
8153         calling layout_type.
8154         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8155         support for __float128 complex datatypes.
8156         (rs6000_hard_regno_mode_ok): Likewise.
8157         (rs6000_setup_reg_addr_masks): Likewise.
8158         (rs6000_complex_function_value): Likewise.
8159         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8160         __float128 and __ibm128 complex.
8161         (FLOAT128_IBM_P): Likewise.
8162         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8163         * doc/extend.texi (Additional Floating Types): Document that
8164         -mfloat128 must be used to enable __float128.  Document complex
8165         __float128 and __ibm128 support.
8166
8167 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8168
8169         PR target/49244
8170         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8171         char/short arguments promoted to int because of promote_prototypes.
8172
8173 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8174
8175         * config/i386/predicates.md (register_ssemem_operand): New predicate.
8176         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8177         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8178         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
8179         alternatives using "enabled" attribute.  Use register_ssemem_operand
8180         as operand 1 predicate.
8181         (*cmpi<unord>xf_i387): Split XFmode pattern from
8182         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8183         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8184         *absneg<mode>2_i387.  Disable unsupported alternatives using
8185         "enabled" attribute.
8186         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8187
8188 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8189
8190         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8191         marker.
8192         (oacc_loop_process): Check mask for loop termination.
8193
8194 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8195
8196         * cif-code.def (CIF_THUNK): Add.
8197         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8198         accidental change.
8199
8200 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8201
8202         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8203         (dump_inline_summary): Dump it.
8204         (fp_expression_p): New predicate.
8205         (estimate_function_body_sizes): Use it.
8206         (inline_merge_summary): Merge fp_expressions.
8207         (inline_read_section): Read fp_expressions.
8208         (inline_write_summary): Write fp_expressions.
8209         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8210         codegen boundary if either caller or callee is !fp_expressions.
8211         * ipa-inline.h (inline_summary): Add fp_expressions.
8212         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8213         to fp_expressions be sure the fp generation flags are updated.
8214
8215 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8216
8217         PR rtl-optimization/70467
8218         * cse.c (cse_insn): Handle no-op MEM moves after folding.
8219
8220         PR rtl-optimization/70467
8221         * ipa-pure-const.c (check_call): Handle internal calls even in
8222         ipa mode like in local mode.
8223
8224 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8225
8226         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8227
8228 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8229
8230         * match.pd (X u< X, X u> X): New transformations.
8231
8232 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8233
8234         * flag-types.h (enum warn_strict_overflow_code): Move ...
8235         * coretypes.h: ... here.
8236         * fold-const.h (fold_overflow_warning): Declare.
8237         * fold-const.c (fold_overflow_warning): Make non-static.
8238         (fold_comparison): Move the transformation of X +- C1 CMP C2
8239         into X CMP C2 -+ C1 ...
8240         * match.pd: ... here.
8241         * gimple-fold.c (fold_stmt_1): Protect with
8242         fold_defer_overflow_warnings.
8243
8244 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8245
8246         * omp-low.c (struct oacc_loop): Add 'inner' field.
8247         (new_oacc_loop_raw): Initialize it to zero.
8248         (oacc_loop_fixed_partitions): Initialize it.
8249         (oacc_loop_auto_partitions): Partition outermost loop to outermost
8250         available partitioning.
8251
8252 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8253
8254         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
8255         register_operand.
8256         (umulsidi3): Likewise.
8257         (indirect_jump): Fix jump instruction assembly patterns.
8258
8259 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
8260
8261         PR target/70860
8262         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
8263         (nvptx_function_value): Assert non-NULL cfun.
8264
8265 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8266
8267         PR rtl-optimization/70886
8268         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
8269
8270         * cselib.h (rtx_equal_for_cselib_1): Declare.
8271         (rtx_equal_for_cselib_p: New inline function.
8272         * cselib.c (rtx_equal_for_cselib_p): Delete.
8273         (rtx_equal_for_cselib_1): Make public.
8274
8275 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8276
8277         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
8278         (register_mixssei387nonimm_operand): Remove predicate.
8279         * config/i386/i386.md (*fop_<mode>_comm): Merge from
8280         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
8281         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
8282         for TARGET_MIX_SSE_I387 alternatives.
8283         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
8284         Disable unsupported alternatives using "enabled" attribute.  Use
8285         nonimm_ssenomem_operand as operand 1 predicate.  Also check
8286         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
8287
8288 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8289
8290         * tree.c (cst_and_fits_in_hwi): Simplify.
8291
8292 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8293
8294         * tree.h (wi::to_wide): New function.
8295         * expr.c (expand_expr_real_1): Use wi::to_wide.
8296         * fold-const.c (int_const_binop_1): Likewise.
8297         (extract_muldiv_1): Likewise.
8298
8299 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8300
8301         * wide-int.h: Update offset_int and widest_int documentation.
8302         (WI_SIGNED_SHIFT_RESULT): New macro.
8303         (wi::binary_shift): Define signed_shift_result_type for
8304         shifts on offset_int- and widest_int-like types.
8305         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8306         * tree.h (int_bit_position): Use shift operators instead of wi::
8307          shifts.
8308         * alias.c (adjust_offset_for_component_ref): Likewise.
8309         * expr.c (get_inner_reference): Likewise.
8310         * fold-const.c (fold_comparison): Likewise.
8311         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8312         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8313         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8314         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8315         (stmt_kills_ref_p): Likewise.
8316         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8317         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8318         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8319         (ao_ref_init_from_vn_reference): Likewise.
8320
8321 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8322
8323         * wide-int.h: Update offset_int and widest_int documentation.
8324         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8325         (wi::binary_traits): Allow ordered comparisons between offset_int and
8326         offset_int, between widest_int and widest_int, and between either
8327         of these types and basic C types.
8328         (operator <, <=, >, >=): Define for the same combinations.
8329         * tree.h (tree_int_cst_lt): Use comparison operators instead
8330         of wi:: comparisons.
8331         (tree_int_cst_le): Likewise.
8332         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8333         (fold_nonarray_ctor_reference): Likewise.
8334         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8335         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8336         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8337         * tree-sra.c (completely_scalarize): Likewise.
8338         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8339         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8340         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8341         (check_for_binary_op_overflow): Likewise.
8342         (search_for_addr_array): Likewise.
8343         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8344
8345 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8346
8347         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8348         (arc_save_restore): Likewise.
8349         (arc_dwarf_register_span): Likewise.
8350         (arc_output_pic_addr_const): Initialize suffix variable.
8351
8352 2016-05-02  Martin Liska  <mliska@suse.cz>
8353
8354         * symbol-summary.h (function_summary::function_summary):
8355         Remove checking assert for all cgraph nodes.
8356         (function_summary::get): Check summary_uid.
8357         (symtab_insertion): Check summary_uid.
8358
8359 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8360
8361         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8362         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8363         bmaskn instruction.
8364         (arc_dwarf_register_span): Remove enum keyword.
8365         (compact_memory_operand_p): New function.
8366         * config/arc/arc.h (reg_class): Add code density register classes.
8367         (REG_CLASS_NAMES): Likewise.
8368         (REG_CLASS_CONTENTS): Likewise.
8369         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8370         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8371         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8372         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8373         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8374         constraints.
8375         (h, Rcd, Rsd, Rzd): New register constraints.
8376         (T): Use compact_memory_operand_p function.
8377         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8378
8379 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8380
8381         * config/sh/sh.md (*negnegt, *movtt): Remove.
8382
8383 2016-05-02  Marek Polacek  <polacek@redhat.com>
8384             Tom de Vries  <tom@codesourcery.com>
8385
8386         PR tree-optimization/70700
8387         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8388         bigger than FIRST_REF_NODE.
8389
8390 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8391
8392         PR target/52898
8393         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8394         TARGET_CMPEQDI_T.
8395         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8396         function is used when pseudos can be created.
8397         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8398         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8399         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8400         define_expand.  Allow it only when pseudos can be created.
8401         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8402
8403 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8404
8405         * config/i386/constraints.md (BC): Only allow -1 operands.
8406         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8407         Add "enabled" attribute.  Update XI mode attribute calculation.
8408         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8409         (*movoi_internal_avx): Update XI mode attribute calculation.
8410         (*movti_internal): Ditto.
8411
8412 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8413
8414         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8415         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8416
8417 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8418
8419         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8420         statement on instruction code.  Remove trailing spaces.
8421         (altivec_expand_stv_builtin): Likewise.
8422
8423 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8424
8425         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8426         (TARGET_FPU_DOUBLE): Simplify.
8427         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8428         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8429         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8430         with 'TARGET_FPU_DOUBLE'.
8431         * config/sh/sh.md: Likewise.
8432
8433 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8434
8435         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8436         SH_DIV_STR_FOR_SIZE): Remove.
8437         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
8438         SH_DIV_STR_FOR_SIZE): Remove.
8439
8440 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8441
8442         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
8443         logical_reg_operand): Delete.
8444         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
8445         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
8446         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
8447         match_operand and match_test.
8448         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
8449         variables on their first use.  Return bool values.
8450         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
8451         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
8452         arith_reg_operand for input operand.  Remove empty constraints.
8453         (xorsi3): Delete.
8454         (*xorsi3_compact): Rename to xorsi3.
8455         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
8456         (*zero_extend<mode>si2_disp_mem): Update comment.
8457         (mov_nop): Delete.
8458
8459 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8460
8461         * config/sh/t-sh: Remove SH5 support.
8462         * config.gcc: Likewise.
8463         * configure: Likewise.
8464
8465 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8466
8467         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
8468
8469 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8470
8471         * config/sh/sh.c (register_sh_passes, sh_option_override,
8472         sh_print_operand, prepare_move_operands,
8473         sh_can_follow_jump): Remove TARGET_SH1 checks.
8474         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
8475         PROMOTE_MODE): Likewise.
8476         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
8477         movdi): Likewise.
8478
8479 2016-04-30  Alan Modra  <amodra@gmail.com>
8480
8481         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
8482         restoring when fixed_reg_p, but allow out-of-line or stmw save.
8483         Check for user regs later to avoid unnecessary looping over regs.
8484         Merge user reg check with non-saved reg check.  Don't force
8485         inline VR restore when static chain used.
8486         (rs6000_frame_related): Omit eh_frame info for user regs when
8487         saving.
8488         (fixed_regs_p): Delete.
8489
8490 2016-04-30  Alan Modra  <amodra@gmail.com>
8491
8492         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
8493         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
8494         Update all uses.
8495
8496 2016-04-30  Alan Modra  <amodra@gmail.com>
8497
8498         PR target/69645
8499         * config/rs6000/rs6000.c (fixed_reg_p): New function.
8500         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
8501         Update all uses.
8502
8503 2016-04-30  Alan Modra  <amodra@gmail.com>
8504
8505         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8506         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
8507         flag_pic test for Darwin.
8508
8509 2016-04-30  Alan Modra  <amodra@gmail.com>
8510
8511         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
8512         throw_calls_crossed.
8513         (REG_FREQ_CALLS_CROSSED): Delete.
8514         (REG_N_THROWING_CALLS_CROSSED): Delete.
8515         * regstat.c (regstat_bb_compute_ri): Don't calculate
8516         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
8517         (dump_reg_info): Don't print call cross frequency.
8518         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
8519         and REG_N_THROWING_CALLS_CROSSED.
8520
8521 2016-04-30  Alan Modra  <amodra@gmail.com>
8522
8523         * regs.h (struct reg_info_t): Delete live_length.
8524         (REG_LIVE_LENGTH): Delete macro.
8525         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
8526         local_live, local_processed and local_live_last_luid params.
8527         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
8528         Formatting fixes.
8529         (regstat_compute_ri): Adjust for above.  Don't set
8530         REG_LIVE_LENGTH.
8531         (dump_reg_info): Don't print live length.
8532         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
8533         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
8534         Localize loop_depth var.
8535
8536 2016-04-30  Alan Modra  <amodra@gmail.com>
8537
8538         * ira.c (enum valid_equiv): New.
8539         (validate_equiv_mem): Return enum.
8540         (update_equiv_mem): Create replacement in more cases.
8541         (add_store_equivs): Update validate_equiv_mem call.
8542
8543 2016-04-30  Alan Modra  <amodra@gmail.com>
8544
8545         * ira.c (combine_and_move_insns): Rather than scanning insns,
8546         use DF infrastucture to find use and def insns.
8547
8548 2016-04-30  Alan Modra  <amodra@gmail.com>
8549
8550         ira.c (combine_and_move_insns): Move invariant conditions..
8551         (ira.c): ..to here.  Call combine_and_move_insns before
8552         add_store_equivs.  Call grow_reg_equivs later.  Allocate
8553         req_equiv later using max_reg_num() rather than global max_regno.
8554         (contains_replace_regs): Delete.
8555         (add_store_equivs): Remove contains_replace_regs test.
8556
8557 2016-04-30  Alan Modra  <amodra@gmail.com>
8558
8559         * ira.c (struct equiv_mem_data): New.
8560         (equiv_mem, equiv_mem_modified): Delete static vars.
8561         (validate_equiv_mem_from_store): Use "data" param to communicate..
8562         (validate_equiv_mem): ..from here.
8563
8564 2016-04-30  Alan Modra  <amodra@gmail.com>
8565
8566         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
8567         split out from..
8568         (update_reg_equivs): ..here.  Move allocation and freeing of
8569         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
8570         end_alias_analysis to..
8571         (ira): ..here.
8572
8573 2016-04-30  Alan Modra  <amodra@gmail.com>
8574
8575         * ira.c (pdx_subregs): Delete.
8576         (struct equivalence): Add pdx_subregs field.
8577         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
8578         pdx_subregs access.
8579         (update_equiv_regs): Don't create or free pdx_subregs.  Update
8580         pdx_subregs access.
8581
8582 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8583
8584         * config/rs6000/altivec.h: Change definitions of vec_xl and
8585         vec_xst.
8586         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
8587         (LD_ELEMREV_V2DI): New.
8588         (LD_ELEMREV_V4SF): New.
8589         (LD_ELEMREV_V4SI): New.
8590         (LD_ELEMREV_V8HI): New.
8591         (LD_ELEMREV_V16QI): New.
8592         (ST_ELEMREV_V2DF): New.
8593         (ST_ELEMREV_V2DI): New.
8594         (ST_ELEMREV_V4SF): New.
8595         (ST_ELEMREV_V4SI): New.
8596         (ST_ELEMREV_V8HI): New.
8597         (ST_ELEMREV_V16QI): New.
8598         (XL): New.
8599         (XST): New.
8600         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8601         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
8602         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
8603         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
8604         (altivec_expand_builtin): Add handling for
8605         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
8606         (rs6000_invalid_builtin): Add error-checking for
8607         RS6000_BTM_P9_VECTOR.
8608         (altivec_init_builtins): Define builtins used to implement vec_xl
8609         and vec_xst.
8610         (rs6000_builtin_mask_names): Define power9-vector.
8611         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
8612         (RS6000_BTM_P9_VECTOR): Define.
8613         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
8614         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
8615         (vsx_ld_elemrev_v2df): Likewise.
8616         (vsx_ld_elemrev_v4sf): Likewise.
8617         (vsx_ld_elemrev_v4si): Likewise.
8618         (vsx_ld_elemrev_v8hi): Likewise.
8619         (vsx_ld_elemrev_v16qi): Likewise.
8620         (vsx_st_elemrev_v2df): Likewise.
8621         (vsx_st_elemrev_v2di): Likewise.
8622         (vsx_st_elemrev_v4sf): Likewise.
8623         (vsx_st_elemrev_v4si): Likewise.
8624         (vsx_st_elemrev_v8hi): Likewise.
8625         (vsx_st_elemrev_v16qi): Likewise.
8626         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
8627         grammar.
8628
8629 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
8630
8631         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
8632         out into ...
8633         (simplify_control_stmt_condition_1): ... here.  Recurse into
8634         BIT_AND_EXPRs and BIT_IOR_EXPRs.
8635
8636 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
8637
8638         PR target/69810
8639         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
8640         (zero_extendqi<mode>2_dot): Revert earlier conversion from
8641         define_insn_and_split to define_insn.
8642         (zero_extendqi<mode>2_dot2): Same.
8643         (extendqi<mode>2_dot): Same.
8644         (extendqi<mode>2_dot2): Same.
8645
8646 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8647
8648         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
8649         (probe_stack): New expander.
8650         (probe_stack_<mode>): New insn pattern.
8651
8652 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8653
8654         * config/i386/i386.md
8655         (operations with memory inputs setting flags peephole2):
8656         Remove uneeded REG_P checks.  Cleanup pattern generation.
8657
8658 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8659
8660         * tree-vect-loop.c (vect_transform_loop): Fix
8661         nb_iterations_upper_bound computation for vectorized loop.
8662
8663 2016-04-29  Marek Polacek  <polacek@redhat.com>
8664             Jakub Jelinek  <jakub@redhat.com>
8665
8666         PR sanitizer/70342
8667         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
8668         TARGET_EXPR_SLOT as a base.
8669
8670 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
8671
8672         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
8673         with 'rCm2' constraints to limit possible immediate size.
8674         (*load_zeroextendqisi_update): Likewise.
8675         (*load_signextendqisi_update): Likewise.
8676         (*loadhi_update): Likewise.
8677         (*load_zeroextendhisi_update): Likewise.
8678         (*load_signextendhisi_update): Likewise.
8679         (*loadsi_update): Likewise.
8680         (*loadsf_update): Likewise.
8681
8682 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8683
8684         * config/i386/predicates.md (constm1_operand): Fix comparison.
8685
8686 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8687
8688         * testsuite/gcc.target/arc/ieee_eq.c: New test.
8689
8690 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
8691
8692         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
8693         remaining SH5 related settings.
8694         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
8695         shmedia_prepare_call_address): Delete.
8696         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
8697         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
8698         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
8699         UNSUPPORTED_SH2A): Remove m5 checks.
8700         (sh_divide_strategy_e): Remove SH5 division strategies.
8701         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
8702         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
8703
8704 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8705
8706         * config/s390/s390.c (s390_rtx_costs): Update documentation.
8707
8708 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8709
8710         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
8711         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
8712         Change lder to ldr.
8713         * config/s390/vector.md ("mov<mode>"): Likewise.
8714
8715 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
8716
8717         * config/s390/constraints.md ("U", "W"): Invoke
8718         s390_mem_constraint with "ZR" and "ZT".
8719         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
8720         addresses when using LRA.  Accept also short displacements for S
8721         and T constraints.  Do not check for long displacement target for
8722         S and T constraints.
8723         (s390_mem_constraint): Remove handling of U and W constraints.
8724         * config/s390/s390.md (various patterns): Remove the short
8725         displacement constraints (Q and R) if a long displacement
8726         constraint is present.  Add longdisp as required CPU capability.
8727         * config/s390/vector.md: Likewise.
8728         * config/s390/vx-builtins.md: Likewise.
8729
8730 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8731
8732         PR target/60040
8733         * reload1.c (reload): Call finish_spills before
8734         restarting reload loop. Skip select_reload_regs
8735         if update_eliminables_and_spill returns true.
8736
8737 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8738
8739         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
8740         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
8741         (umulhisi3_imm): Update predicates and constraint letters.
8742         (umulhisi3_reg): Declare instruction as commutative.
8743         * config/arc/constraints.md (J12, J16): New constraints.
8744         * config/arc/predicates.md (short_unsigned_const_operand): New
8745         predicate.
8746         (arc_short_operand): Likewise.
8747         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
8748
8749 2016-04-29  Richard Biener  <rguenther@suse.de>
8750
8751         PR tree-optimization/13962
8752         PR tree-optimization/65686
8753         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
8754         * tree-ssa-alias.c (ptrs_compare_unequal): New function
8755         using PTA to compare pointers.
8756         * match.pd: Add pattern for pointer equality compare simplification
8757         using ptrs_compare_unequal.
8758
8759 2016-04-29  Richard Biener  <rguenther@suse.de>
8760
8761         * stor-layout.c (layout_type): Do not build a pointer-to-element
8762         type for arrays.
8763
8764 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8765
8766         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
8767         Use SWI mode iterator.  Use general_reg_operand predicate.
8768         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
8769         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
8770         predicates.
8771
8772 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
8773
8774         PR middle-end/70843
8775         * fold-const.c (operand_equal_p): Don't verify hash value equality
8776         if arg0 == arg1.
8777         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
8778         and OMP_CLAUSE.
8779
8780 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8781
8782         PR target/70858
8783         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
8784         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
8785         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
8786         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
8787         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
8788
8789 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8790
8791         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
8792         to info.  Don't initialize separate fields to 0.  Clean up
8793         formatting a bit.
8794
8795 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8796
8797         * config/i386/i386.md (peephole2s for operations with memory inputs):
8798         Use SWI mode iterator.
8799         (peephole2s for operations with memory outputs): Ditto.
8800         Do not check for stack checking probe.
8801
8802         (probe_stack): Remove expander.
8803
8804 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8805             Andrew Burgess  <andrew.burgess@embecosm.com>
8806
8807         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
8808         operands as 32-bits.
8809
8810 2016-04-28  Jason Merrill  <jason@redhat.com>
8811
8812         * gdbinit.in: Skip line-map.h.
8813
8814 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8815             Andrew Burgess  <andrew.burgess@embecosm.com>
8816
8817         * config/arc/arc.c (arc_conditional_register_usage): Take
8818         TARGET_RRQ_CLASS into account.
8819         (arc_print_operand): Support printing 'p' and 's' operands.
8820         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
8821         as 0.
8822         (TARGET_RRQ_CLASS): Define.
8823         (IS_POWEROF2_OR_0_P): Define.
8824         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
8825         alternatives.
8826         (*tst_movb): New define_insn.
8827         (*tst): Avoid recognition if it could prevent '*tst_movb'
8828         combination; replace c/CnL with c/Chs alternative.
8829         (*tst_bitfield_tst): New define_insn.
8830         (*tst_bitfield_asr): New define_insn.
8831         (*tst_bitfield): New define_insn.
8832         (andsi3_i): Add Rrq variant.
8833         (extzv): New define_expand.
8834         (insv): New define_expand.
8835         (*insv_i): New define_insn.
8836         (*movb): New define_insn.
8837         (*movb_signed): New define_insn.
8838         (*movb_high): New define_insn.
8839         (*movb_high_signed): New define_insn.
8840         (*movb_high_signed + 1): New define_split pattern.
8841         (*mrgb): New define_insn.
8842         (*mrgb + 1): New define_peephole2 pattern.
8843         (*mrgb + 2): New define_peephole2 pattern.
8844         * config/arc/arc.opt (mbitops): New option for nps400, uses
8845         TARGET_NPS_BITOPS_DEFAULT.
8846         * config/arc/constraints.md (q): Make register class conditional.
8847         (Rrq): New register constraint.
8848         (Chs): New constraint.
8849         (Clo): New constraint.
8850         (Chi): New constraint.
8851         (Cbf): New constraint.
8852         (Cbn): New constraint.
8853         (C18): New constraint.
8854         (Cbi): New constraint.
8855
8856 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8857
8858         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
8859         dst->popcount.
8860         (bitmap_intersection_of_preds): Ditto.
8861         (bitmap_union_of_succs): Ditto.
8862         (bitmap_union_of_preds): Ditto.
8863         * sbitmap.c (do_popcount): Delete.
8864         (BITMAP_DEBUGGING): Delete.
8865         (sbitmap_verify_popcount): Delete.
8866         (sbitmap_alloc): Don't initialize the popcount field.
8867         (sbitmap_alloc_with_popcount): Delete.
8868         (sbitmap_resize): Don't resize the popcount array.
8869         (sbitmap_vector_alloc): Don't initialize the popcount field.
8870         (bitmap_copy): Don't copy the popcount array.
8871         (bitmap_clear): Don't clear the popcount array.
8872         (bitmap_clear): Delete the popcount array handling.
8873         (bitmap_ior_and_compl): Delete the popcount assert.
8874         (bitmap_not): Ditto.
8875         (bitmap_and_compl): Ditto.
8876         (bitmap_and): Delete the popcount array handling.
8877         (bitmap_xor): Ditto.
8878         (bitmap_ior): Ditto.
8879         (bitmap_or_and): Delete the popcount assert.
8880         (bitmap_and_or): Ditto.
8881         (popcount_table): Delete.
8882         (sbitmap_elt_popcount): Delete.
8883         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
8884         (bitmap_set_bit): Delete the popcount assert.
8885         (bitmap_clear_bit): Ditto.
8886         (sbitmap_free): Don't free the popcount array.
8887         (sbitmap_alloc_with_popcount): Delete declaration.
8888         (sbitmap_popcount): Ditto.
8889
8890 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8891             Andrew Burgess  <andrew.burgess@embecosm.com>
8892
8893         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
8894         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
8895         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
8896         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
8897         * config/arc/arc.opt (mcmem): New option.
8898         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
8899         supply length for r/m alternative.
8900         (*extendqisi2_ac): Likewise.
8901         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
8902         r/Uex alternative.
8903         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
8904         (movhi_insn): Likewise.
8905         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
8906         (*zero_extendqihi2_i): Add r/Ucm alternative.
8907         (*zero_extendqisi2_ac): Likewise.
8908         (*zero_extendhisi2_i): Likewise.
8909         * config/arc/constraints.md (Uex): New memory constraint.
8910         (Ucm): New define_constraint.
8911         * config/arc/predicates.md (long_immediate_loadstore_operand):
8912         Return 0 for MEM with cmem_address address.
8913         (cmem_address_0): New predicates.
8914         (cmem_address_1): Likewise.
8915         (cmem_address_2): Likewise.
8916         (cmem_address): Likewise.
8917
8918 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8919
8920         * config/rs6000/rs6000.c (machine_function): Rename
8921         insn_chain_scanned_p to spe_insn_chain_scanned_p.
8922         (rs6000_stack_info): Adjust.
8923
8924 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8925             Andrew Burgess  <andrew.burgess@embecosm.com>
8926
8927         * config/arc/constraints.md (Usd): Convert to define_constraint.
8928         (Us<): Likewise.
8929         (Us>): Likewise.
8930
8931 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8932
8933         PR target/70821
8934         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
8935         Add new peephole2 where the first insn is *mov<mode>_or instead of
8936         *mov<mode>_internal.
8937
8938 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
8939
8940         * tracer.c (bb_seen): Make static.
8941
8942 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8943
8944         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
8945         support, setup defaults.
8946         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
8947         * config/arc/arc.c (arc_init): Add NPS400 support.
8948         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
8949         (TARGET_ARC700): NPS400 is also an ARC700.
8950         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
8951
8952 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8953
8954         PR target/70668
8955         * config/nds32/nds32.md (casesi): Don't access the operands array
8956         out of bounds.
8957
8958 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8959
8960         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
8961         (or $-1,reg peephole2): Ditto.
8962         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
8963
8964 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8965
8966         * doc/extend.texi (Common Function Attributes) [optimize]:
8967         Discourage use of the optimize attribute.
8968
8969 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
8970
8971         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
8972         special case builtin.
8973         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
8974         ALTIVEC_BUILTIN_VEC_ADDE.
8975         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8976         support for ALTIVEC_BUILTIN_VEC_ADDE.
8977         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8978         for __builtin_vec_adde.
8979
8980 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8981
8982         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
8983         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
8984
8985 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8986
8987         PR testsuite/70595
8988         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8989         attributes): Document cilkplus_runtime.
8990
8991 2016-04-28  Martin Jambor  <mjambor@suse.cz>
8992
8993         * tree-cfg.c (verify_expr): Verify that local declarations belong to
8994         this function.  Call verify_expr on MEM_REFs and bases of other
8995         handled_components.
8996
8997 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8998
8999         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
9000         for WORD_REGISTER_OPERATIONS to runtime check.
9001
9002 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9003
9004         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
9005
9006 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9007
9008         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
9009         big-endian compilation.
9010         * config/arc/arc.md (addf3): Likewise.
9011         (subdf3): Likewise.
9012         (muldf3): Likewise.
9013
9014 2016-04-28  Richard Biener  <rguenther@suse.de>
9015
9016         PR tree-optimization/70840
9017         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
9018         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
9019         Mark x * pow(x,c) -> pow(x,c+1) commutative.
9020         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
9021
9022 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9023
9024         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
9025         and explain why in a comment.
9026
9027 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9028
9029         * config/arc/arc.md (cpu_facility): Add fpx variant.
9030         (subdf3): Prohibit use reverse sub when assist operations option
9031         is enabled.
9032         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
9033         instructions only when FPX is enabled.
9034         * testsuite/gcc.target/arc/trsub.c: New test.
9035
9036 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9037
9038         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
9039         mult_operator when calculating "type" attribute.
9040         (*fop_<mode>_1_i387): Ditto.
9041         (*fop_xf_1_i387): Ditto.
9042         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
9043         Use std::swap to swap operands.  Use RTL expressions to generate
9044         converted pattern.
9045
9046 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9047             Joern Rennecke  <joern.rennecke@embecosm.com>
9048
9049         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
9050         declaration.
9051         (emit_pic_move): Remove.
9052         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
9053         * config/arc/arc.c (emit_pic_move): Removed.
9054         (TARGET_HAVE_TLS): Define.
9055         (arc_conditional_register_usage): Test for arc_tp_regno.
9056         (arc_print_operand, arc_print_operand_address): Handle TLS
9057         unspecs.
9058         (arc_needs_pcl_p): New function.
9059         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
9060         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
9061         (arc_raw_symbolic_reference_mentioned_p): Likewise.
9062         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
9063         (arc_legitimize_tls_address): Likewise.
9064         (DTPOFF_ZERO_SYM): Define.
9065         (arc_legitimize_pic_address): Make it static, handle TLS cases.
9066         (arc_output_pic_addr_const): Print TLS unspecs.
9067         (prepare_pic_move): New function, replaces emit_pic_move.
9068         (arc_legitimate_constant_p): Handle TLS unspecs.
9069         (arc_legitimate_address_p): Likewise.
9070         (arc_rewrite_small_data_p): Use assert for TLS constants.
9071         (prepare_move_operands): Use prepare_pic_move.
9072         (arc_legitimize_address): Legitimize tls addresses.
9073         (arc_epilogue_uses): Check for arc_tp_regno.
9074         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
9075         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
9076         Define.
9077         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
9078         Likewise.
9079         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
9080         %(arc_tls_extra_start_spec).
9081         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
9082         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
9083         (EH_USES): Define.
9084         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
9085         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
9086         (UNSPEC_TLS_OFF): Add.
9087         (R10_REG): Define.
9088         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
9089         (get_thread_pointersi): New patterns.
9090         * config/arc/arc.opt (mtp-regno): New option.
9091         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
9092         (move_dest_operand): Likewise.
9093         * configure: Regenerate.
9094         * configure.ac: Add arc*-*-* case to test for tls.
9095         * doc/invoke.texi (ARC options): Document mtp-regno.
9096
9097 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9098
9099         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
9100         the new ARC HS SIMD instructions.
9101         (arc_preferred_simd_mode): New function.
9102         (arc_autovectorize_vector_sizes): Likewise.
9103         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9104         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9105         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
9106         (arc_init_builtins): Add new SIMD builtin types.
9107         (arc_split_move): Handle 64 bit vector moves.
9108         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
9109         (TARGET_PLUS_QMACW): Define.
9110         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
9111         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
9112         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
9113         (VSUBADD4H): New builtins.
9114         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
9115         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
9116
9117 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
9118             Matthias Klose  <doko@debian.org>
9119
9120         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
9121
9122 2016-04-28  Richard Biener  <rguenther@suse.de>
9123
9124         PR middle-end/70777
9125         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
9126         canonicalization.
9127
9128 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
9129
9130         * common/config/sh/sh-common.c: Remove SH5 support.
9131         * config/sh/constraints.md: Likewise.
9132         * config/sh/config/sh/elf.h: Likewise.
9133         * config/sh/linux.h: Likewise.
9134         * config/sh/netbsd-elf.h: Likewise.
9135         * config/sh/predicates.md: Likewise.
9136         * config/sh/sh-c.c: Likewise.
9137         * config/sh/sh-protos.h: Likewise.
9138         * config/sh/sh.c: Likewise.
9139         * config/sh/sh.h: Likewise.
9140         * config/sh/sh.md: Likewise.
9141         * config/sh/sh.opt: Likewise.
9142         * config/sh/sync.md: Likewise.
9143         * config/sh/sh64.h: Delete.
9144         * config/sh/shmedia.h: Likewise.
9145         * config/sh/shmedia.md: Likewise.
9146         * config/sh/sshmedia.h: Likewise.
9147         * config/sh/t-netbsd-sh5-64: Likewise.
9148         * config/sh/t-sh64: Likewise.
9149         * config/sh/ushmedia.h: Likewise.
9150
9151 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9152
9153         * config/i386/i386.md (sign_extend to memory peephole2s): Use
9154         general_reg_operand instead of register_operand predicate.
9155
9156 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9157
9158         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9159
9160 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
9161
9162         * match.pd (A - B > A, A + B < A): New transformations.
9163
9164 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
9165
9166         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9167         which defaults to true.  Emit an outer pair of parentheses only if
9168         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
9169         don't emit parentheses for the right-hand operand.
9170
9171 2016-04-27  Jeff Law  <law@redhat.com>
9172
9173         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9174
9175 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9176
9177         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9178         (altivec_lvx_<mode>_internal): Document.
9179         (altivec_lvx_<mode>_2op): New define_insn.
9180         (altivec_lvx_<mode>_1op): Likewise.
9181         (altivec_lvx_<mode>_2op_si): Likewise.
9182         (altivec_lvx_<mode>_1op_si): Likewise.
9183         (altivec_stvx_<mode>): Remove.
9184         (altivec_stvx_<mode>_internal): Document.
9185         (altivec_stvx_<mode>_2op): New define_insn.
9186         (altivec_stvx_<mode>_1op): Likewise.
9187         (altivec_stvx_<mode>_2op_si): Likewise.
9188         (altivec_stvx_<mode>_1op_si): Likewise.
9189         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9190         Expand vec_ld and vec_st during parsing.
9191         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9192         changes.
9193         (altivec_expand_stvx_be): Likewise.
9194         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9195         address-masking behavior in RTL.
9196         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9197         address-masking behavior in RTL.
9198         (altivec_expand_builtin): Change builtin code arguments for calls
9199         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9200         (insn_is_swappable_p): Avoid incorrect swap optimization in the
9201         presence of lvx/stvx patterns.
9202         (alignment_with_canonical_addr): New function.
9203         (alignment_mask): Likewise.
9204         (find_alignment_op): Likewise.
9205         (recombine_lvx_pattern): Likewise.
9206         (recombine_stvx_pattern): Likewise.
9207         (recombine_lvx_stvx_patterns): Likewise.
9208         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9209         stvx patterns from expand.
9210         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9211         expansions.
9212         (vector_altivec_store_<mode>): Likewise.
9213
9214 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
9215
9216         * config/aarch64/aarch64.md
9217         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9218         remove the "fp" attributes.
9219         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9220         add the "simd" attributes.
9221         (*movdf_aarch64): Likewise.
9222         (*movtf_aarch64): Remove the "fp" attributes.
9223         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9224         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9225
9226 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9227
9228         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9229         rtx to rtx_code_label *.
9230         * rtl.h (maybe_set_first_label_num): Likewise.
9231
9232 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9233
9234         * df-core.c (df_add_problem): Make the problem param be const.
9235         (df_remove_problem): Make local "problem" be const.
9236         * df-problems.c (problem_RD): Make const.
9237         (problem_LR): Likewise.
9238         (problem_LIVE): Likewise.
9239         (problem_MIR): Likewise.
9240         (problem_CHAIN): Likewise.
9241         (problem_WORD_LR): Likewise.
9242         (problem_NOTE): Likewise.
9243         (problem_MD): Likewise.
9244         * df-scan.c (problem_SCAN): Likewise.
9245         * df.h (struct df_problem): Make field "dependent_problem" be
9246         const.
9247         (struct dataflow): Likewise for field "problem".
9248         (df_add_problem): Make param const.
9249
9250 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9251
9252         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9253         inter-unit moves to/from vector registers are enabled.  Do not disable
9254         for TARGET_MMX.
9255
9256 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9257
9258         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
9259         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
9260         #define to...
9261         (enum df_problem_id): ...this new enum.
9262         (struct df_problem): Convert field "id" from "int" to
9263         enum df_problem_id.
9264
9265 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9266
9267         * rtl.def: Update comment for "things in the instruction chain" to
9268         reflect the removal of the leading "i" field for INSN_UID in
9269         r210360.  Fix bogus apostrophe.
9270
9271 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9272
9273         * config/i386/i386.md
9274         (lea arith with mem operand + setcc peephole2): Set operator mode.
9275
9276 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9277
9278         PR target/70155
9279         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
9280         (dimode_scalar_to_vector_candidate_p): This.
9281         (timode_scalar_to_vector_candidate_p): New function.
9282         (scalar_to_vector_candidate_p): Likewise.
9283         (timode_check_non_convertible_regs): Likewise.
9284         (timode_remove_non_convertible_regs): Likewise.
9285         (remove_non_convertible_regs): Likewise.
9286         (remove_non_convertible_regs): Renamed to ...
9287         (dimode_remove_non_convertible_regs): This.
9288         (scalar_chain::~scalar_chain): Make it virtual.
9289         (scalar_chain::compute_convert_gain): Make it pure virtual.
9290         (scalar_chain::mark_dual_mode_def): Likewise.
9291         (scalar_chain::convert_insn): Likewise.
9292         (scalar_chain::convert_registers): Likewise.
9293         (scalar_chain::add_to_queue): Make it protected.
9294         (scalar_chain::emit_conversion_insns): Likewise.
9295         (scalar_chain::replace_with_subreg): Likewise.
9296         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9297         (scalar_chain::convert_op): Likewise.
9298         (scalar_chain::convert_reg): Likewise.
9299         (scalar_chain::make_vector_copies): Likewise.
9300         (scalar_chain::convert_registers): New pure virtual function.
9301         (class dimode_scalar_chain): New class.
9302         (class timode_scalar_chain): Likewise.
9303         (scalar_chain::mark_dual_mode_def): Renamed to ...
9304         (dimode_scalar_chain::mark_dual_mode_def): This.
9305         (timode_scalar_chain::mark_dual_mode_def): New function.
9306         (timode_scalar_chain::convert_insn): Likewise.
9307         (dimode_scalar_chain::convert_registers): Likewise.
9308         (scalar_chain::compute_convert_gain): Renamed to ...
9309         (dimode_scalar_chain::compute_convert_gain): This.
9310         (scalar_chain::replace_with_subreg): Renamed to ...
9311         (dimode_scalar_chain::replace_with_subreg): This.
9312         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9313         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9314         (scalar_chain::make_vector_copies): Renamed to ...
9315         (dimode_scalar_chain::make_vector_copies): This.
9316         (scalar_chain::convert_reg): Renamed to ...
9317         (dimode_scalar_chain::convert_reg ): This.
9318         (scalar_chain::convert_op): Renamed to ...
9319         (dimode_scalar_chain::convert_op): This.
9320         (scalar_chain::convert_insn): Renamed to ...
9321         (dimode_scalar_chain::convert_insn): This.
9322         (scalar_chain::convert): Call convert_registers.
9323         (convert_scalars_to_vector): Change to scalar_chain pointer to
9324         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9325         in 32-bit mode.  Delete scalar_chain pointer.  Call
9326         free_dominance_info in 64-bit mode.
9327         (pass_stv::gate): Remove TARGET_64BIT check.
9328         (ix86_option_override): Put the 64-bit STV pass before the CSE
9329         pass.
9330
9331 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9332
9333         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9334         dw_loc_frame_offset field.
9335         * dwarf2out.c (new_loc_descr): Likewise.
9336         (resolve_args_picking_1): Turn the VISITED hash set into a
9337         FRAME_OFFSET hash map. Use it to associate a frame offset to
9338         visited nodes. Remove uses of the CHECKING_P macro.
9339         (resolve_args_picking): Update call to resolve_args_picking_1.
9340
9341 2016-04-27  Martin Liska  <mliska@suse.cz>
9342
9343         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9344         (free_loop_data): Release vuses of groups.
9345
9346 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9347
9348         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9349         instead of redundant use_id and boolean have_use_for.
9350         (struct iv_use): Change sub_id into group_id.  Remove field next.
9351         Move fields: related_cands, n_map_members, cost_map and selected
9352         to ...
9353         (struct iv_group): ... here.  New structure.
9354         (struct iv_common_cand): Use structure declaration directly.
9355         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9356         (MAX_CONSIDERED_USES): Rename macro to ...
9357         (MAX_CONSIDERED_GROUPS): ... here.
9358         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9359         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9360         (dump_uses): Rename to ...
9361         (dump_groups): ... here.  Update all uses.
9362         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9363         (find_induction_variables): Refactor format of dump information.
9364         (record_sub_use): Delete.
9365         (record_use): Update all uses.
9366         (record_group): New function.
9367         (record_group_use, find_interesting_uses_op): Call above functions.
9368         Update all uses.
9369         (find_interesting_uses_cond): Ditto.
9370         (group_compare_offset): New function.
9371         (split_all_small_groups): Rename to ...
9372         (split_small_address_groups_p): ... here.  Update all uses.
9373         (split_address_groups):  Update all uses.
9374         (find_interesting_uses): Refactor format of dump information.
9375         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9376         base and step.
9377         (add_candidate, record_common_cand): Remove redundant assert.
9378         (add_iv_candidate_for_biv): Update use.
9379         (add_iv_candidate_derived_from_uses): Update all uses.
9380         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9381         (alloc_use_cost_map): Ditto.
9382         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9383         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9384         (determine_use_iv_cost_generic): Ditto.
9385         (determine_group_iv_cost_generic): Ditto.
9386         (determine_use_iv_cost_address): Ditto.
9387         (determine_group_iv_cost_address): Ditto.
9388         (determine_use_iv_cost_condition): Ditto.
9389         (determine_group_iv_cost_cond): Ditto.
9390         (determine_use_iv_cost): Ditto.
9391         (determine_group_iv_cost): Ditto.
9392         (set_autoinc_for_original_candidates): Update all uses.
9393         (find_iv_candidates): Update all uses.  Refactor dump information.
9394         (determine_use_iv_costs): Ditto.
9395         (determine_iv_costs): Ditto.
9396         (iv_ca_cand_for_use): Rename to ...
9397         (iv_ca_cand_for_group): ... here.  Update all uses.
9398         (iv_ca_add_use, iv_ca_add_group): Ditto.
9399         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9400         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9401         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9402         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9403         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9404         (create_new_iv, adjust_iv_update_pos): Ditto.
9405         (rewrite_use_address): Delete.
9406         (rewrite_use_address_1): Rename to ...
9407         (rewrite_use_address): ... here.
9408         (rewrite_use_compare): Update all uses.
9409         (rewrite_use): Delete.
9410         (rewrite_uses): Rename to ...
9411         (rewrite_groups): ... here.  Update all uses.
9412         (remove_unused_ivs, free_loop_data): Update all uses.
9413         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9414
9415 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9416
9417         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9418         for WORD_REGISTER_OPERATIONS to runtime check.
9419
9420 2016-04-27  Richard Biener  <rguenther@suse.de>
9421
9422         PR ipa/70760
9423         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9424         aggregate_value_p to determine if a function result is
9425         returned by reference.
9426         (ipa_pta_execute): Functions having their address taken are
9427         not automatically nonlocal.
9428
9429 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9430
9431         PR sanitizer/70683
9432         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9433         * fold-const.c (operand_equal_p): If flag_checking and
9434         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9435         and if it returns non-zero, assert iterative_hash_expr on both
9436         args is the same.
9437
9438 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9439
9440         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
9441
9442 2016-04-27  Nick Clifton  <nickc@redhat.com>
9443
9444         PR middle-end/49889
9445         * varasm.c (merge_weak): Generate an error if an attempt is made
9446         to convert a non-weak static function into a weak, public function.
9447
9448 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9449
9450         * params.def (MAX_PARTITION_SIZE): New param.
9451         * doc/invoke.texi: Document lto-max-partition.
9452
9453 2016-04-27  Richard Biener  <rguenther@suse.de>
9454
9455         PR ipa/70785
9456         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
9457         function cummulating used_from_other_partition, externally_visible
9458         and force_output from aliases.
9459         (refered_from_nonlocal_var): Likewise.
9460         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
9461         node flags properly.
9462
9463 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9464
9465         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
9466         (-Wmemset-elt-size): New item.
9467
9468 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9469
9470         PR ada/70759
9471         * stor-layout.h (internal_reference_types): Delete.
9472         * stor-layout.c (reference_types_internal): Likewise.
9473         (internal_reference_types): Likewise.
9474         (layout_type) <REFERENCE_TYPE>: Adjust.
9475
9476 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9477
9478         PR sanitizer/70683
9479         * tree.h (inchash::add_expr): Add FLAGS argument.
9480         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
9481         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
9482         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
9483         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
9484         if swap_tree_comparison (code) is smaller than code, hash that
9485         and arguments in the other order.  Hash CONVERT_EXPR the same
9486         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
9487         of ADDR_EXPR of decl as the decl itself.  Add or remove
9488         OEP_ADDRESS_OF from recursive flags as needed.  For
9489         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
9490         operands commutatively and only the third one normally.
9491         For internal CALL_EXPR hash in CALL_EXPR_IFN.
9492
9493 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9494
9495         * config/rtems.h (LIB_SPEC): Add -latomic.
9496
9497 2016-04-27  Joel Sherrill  <joel@rtems.org>
9498
9499         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
9500         xilink.ld and flags not relevant to RTEMS.
9501
9502 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9503
9504         * toplev.c (backend_init_target): Avoid calling init_reload when using
9505         LRA.
9506
9507 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9508
9509         * reorg.c (try_merge_delay_insns): Declare i and j inside the
9510         for loops rather than one for the whole function.
9511
9512 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9513
9514         * match.pd (X + CST CMP X): New transformation.
9515
9516 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9517
9518         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
9519         * fold-const.c (fold_binary_loc): Remove 2 transformations
9520         superseded by match.pd.
9521         * match.pd (x+x -> x*2): Generalize to integers.
9522
9523 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
9524
9525         * config/i386/i386.md (operation on memory peephole): Duplicate an
9526         existing peephole and adapt it to match lea rather than an operation
9527         that clobbers CC.
9528
9529         PR rtl-optimization/57193
9530         * opts.c (default_options_table): Add OPT_frename_registers at -O2
9531         and above.
9532         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
9533
9534 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9535
9536         * tree-if-conv.c (any_pred_load_store): New static variable.
9537         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
9538         any_pred_load_store instead of and_mask_load_store.
9539         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
9540         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
9541         (combine_blocks, tree_if_conversion): Ditto.
9542
9543 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9544
9545         PR tree-optimization/70771
9546         PR tree-optimization/70775
9547         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
9548         virtual PHI nodes.  Delete parameter.
9549         (if_convertible_loop_p_1): Delete argument to above function.
9550         (predicate_all_scalar_phis): Delete code handling single-argument
9551         PHIs.
9552         (tree_if_conversion): Mark and update virtual SSA.
9553
9554 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9555
9556         PR target/61821
9557         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
9558         (x86_elf_aligned_common): Rename to ...
9559         (x86_elf_aligned_decl_common): ... this.
9560         Add decl arg.  Switch to .lbss for largecomm object.  Use
9561         LARGECOMM_SECTION_ASM_OP.
9562         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
9563         renaming.
9564         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
9565         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
9566         Pass new decl arg.
9567         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9568         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
9569
9570 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9571
9572         PR target/59407
9573         * config/i386/i386.c (SECTION_LARGE): Define.
9574         (x86_64_elf_select_section): Set it for large data/bss sections.
9575         Only clear SECTION_WRITE for .lrodata.
9576         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
9577         data/bss sections.
9578         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
9579         * varasm.c (default_elf_asm_named_section): Grow flagchars.
9580         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
9581         SECTION_MACH_DEP.
9582         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
9583         * doc/tm.texi: Regenerate.
9584
9585 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9586
9587         PR bootstrap/70704
9588         * configure.ac (--enable-checking): Document extra flag, for
9589         non-release builds default to --enable-checking=yes,extra.
9590         If misc checking and extra checking, define CHECKING_P to 2 instead
9591         of 1.
9592         * common.opt (fchecking=): Add.
9593         * doc/invoke.texi (-fchecking=): Document.
9594         * doc/install.texi: Document --enable-checking changes.
9595         * configure: Regenerated.
9596         * config.in: Regenerated.
9597
9598 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9599
9600         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
9601         attribute instead of which_alternative.
9602         * config/i386/sse.md (*mov<mode>_internal): Ditto.
9603         Use EXT_REX_SSE_REG_P where appropriate.
9604
9605 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9606
9607         * config/i386/predicates.md (const0_operand): Do not match
9608         const_wide_int code.
9609         (const1_operand): Ditto.
9610
9611 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9612
9613         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
9614         for SSE constm1 operands and TARGET_AVX512VL.
9615         (*movti_internal): Ditto.
9616         (*mov<mode>_or): Use constm1_operand predicate.
9617         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
9618         for SSE vector_all_ones operands and TARGET_AVX512VL.
9619         * config/i386/predicates.md (constm1_operand): New predicate.
9620         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
9621         emission of constant -1 load.
9622
9623 2016-04-25  Jason Merrill  <jason@redhat.com>
9624
9625         * gdbinit.in: Skip is-a.h.
9626
9627         * attribs.c (register_scoped_attributes): Fix logic.
9628         * attribs.h: Declare register_scoped_attributes.
9629
9630 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9631
9632         * config/rs6000/rs6000-builtin.def: Correct pasto error for
9633         stxvd2x and stxvw4x built-in functions.
9634
9635 2016-04-25  DJ Delorie  <dj@redhat.com>
9636
9637         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
9638         (ashrhi3): Likewise.
9639         (lshrhi3): Likewise.
9640
9641 2016-04-25  Richard Biener  <rguenther@suse.de>
9642
9643         PR tree-optimization/70780
9644         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
9645         wasn't visited yet.
9646         (compute_antic): Mark blocks with abnormal preds as visited as
9647         they have a final empty antic-in solution already.
9648
9649 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9650
9651         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
9652
9653 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9654
9655         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
9656         mode is VQI to improve mixed mode vectorization.
9657         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
9658         define_insn to match low half of signed vaddw.
9659         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
9660         define_insn to match high half of signed vaddw.
9661         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
9662         define_insn to match low half of unsigned vaddw.
9663         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
9664         define_insn to match high half of unsigned vaddw.
9665         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
9666         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9667         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
9668         for new function.
9669         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9670         * config/arm/predicates.md (vect_par_constant_high): Support
9671         big endian and simplify by calling
9672         arm_simd_check_vect_par_cnst_half
9673         (vect_par_constant_low): Likewise.
9674
9675 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9676
9677         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
9678         predicate for operand 2.
9679
9680 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
9681             H.J. Lu  <hongjiu.lu@intel.com>
9682
9683         * config/i386/i386-protos.h (standard_sse_constant_p): Add
9684         machine_mode argument.
9685         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
9686         constm1_rtx operands.  For VOIDmode constants, get mode from
9687         pred_mode.  Check mode size if the mode is supported by ABI.
9688         (standard_sse_constant_opcode): Do not use standard_constant_p.
9689         Strictly check ABI support for all-ones operands.
9690         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
9691         immediates. Update calls to standard_sse_constant_p.
9692         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
9693         (ix86_rtx_costs): Ditto.
9694         * config/i386/i386.md (*movxi_internal_avx512f): Use
9695         nonimmediate_or_sse_const_operand instead of vector_move_operand.
9696         Use (v,BC) alternative instead of (v,C). Use register_operand
9697         checks instead of MEM_P.
9698         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
9699         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
9700         isa attribute.  Use register_operand checks instead of MEM_P.
9701         (*movti_internal): Use nonimmediate_or_sse_const_operand for
9702         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
9703         alternative and corresponding sse2 isa attribute.
9704         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
9705         to standard_sse_constant_p.
9706         (FP constant splitters): Ditto.
9707         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
9708         (C): Ditto.
9709         * config/i386/predicates.md (constm1_operand): Remove.
9710         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
9711         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
9712         vector_all_ones_operand instead of constm1_operand.
9713
9714 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9715
9716         * print-rtl.c (print_rtx_insn_vec): New function.
9717         * print-rtl.h: New prototype.
9718         * store-motion.c (struct st_expr): Make avail_stores a vector.
9719         (st_expr_entry): Adjust.
9720         (free_st_expr_entry): Likewise.
9721         (print_store_motion_mems): Likewise.
9722         (find_moveable_store): Likewise.
9723         (compute_store_table): Likewise.
9724         (delete_store): Likewise.
9725         (build_store_vectors): Likewise.
9726
9727 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9728
9729         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
9730
9731 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9732
9733         * vec.h (vec_safe_contains): New function.
9734         (vec::contains): Likewise.
9735         (vec::begin): Likewise.
9736         (vec::end): Likewise.
9737
9738 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
9739
9740         PR sanitizer/70712
9741         * cfgexpand.c (expand_stack_vars): Fix typo.
9742
9743 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9744
9745         * system.h (list, map, set, vector): Include conditionally.
9746         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
9747         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
9748         * ipa-icf.c (INCLUDE_LIST): Define.
9749         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
9750         * config/sh/sh.c (INCLUDE_VECTOR): Define.
9751         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
9752         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
9753         * cp/logic.cc (INCLUDE_LIST): Define.
9754         * fortran/trans-common.c (INCLUDE_MAP): Define.
9755
9756 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9757
9758         * auto-profile.c: Remove <string.h> include.
9759         * ipa-icf-gimple.c: Remove <list> include.
9760         * diagnostic.c: Remove <new> include.
9761         * genmatch.c: Likewise.
9762         * pretty-print.c: Likewise.
9763         * toplev.c: Likewise
9764         * c/c-objc-common.c: Likewise.
9765         * cp/error.c: Likewise.
9766         * fortran/error.c: Likewise.
9767
9768 2016-04-22  Richard Biener  <rguenther@suse.de>
9769
9770         * lto-streamer-in.c (input_ssa_names): Do not allocate
9771         GIMPLE_NOP for all SSA names.
9772         * lto-streamer-out.c (output_ssa_names): Do not output
9773         SSA names that should have been released.
9774
9775 2016-04-22  Richard Biener  <rguenther@suse.de>
9776
9777         PR tree-optimization/70740
9778         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
9779         VDEF.
9780
9781 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9782
9783         PR target/70750
9784         * config/i386/predicates.md (call_insn_operand): Replace
9785         sibcall_memory_operand with memory_operand.
9786
9787 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
9788
9789         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
9790         has_single_use() tests.
9791         (register_edge_assert_for_1): Likewise.
9792         (find_assert_locations_1): Check the liveness bitmap instead of
9793         checking has_single_use().
9794
9795 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9796
9797         PR target/70728
9798         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
9799         Extract AVX-512BW constraint from AVX.
9800
9801 2016-04-21  Richard Biener  <rguenther@suse.de>
9802
9803         PR tree-optimization/70725
9804         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
9805         for phi_convertible_by_degenerating_args.
9806         (predicate_all_scalar_phis): Handle single-argument PHIs.
9807
9808 2016-04-21  Richard Biener  <rguenther@suse.de>
9809
9810         PR middle-end/70747
9811         * fold-const.c (fold_comparison): Return properly typed
9812         constant boolean.
9813
9814 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
9815
9816         PR tree-optimization/70715
9817         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9818         after expanding BASE using expand_simple_operations.
9819
9820 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9821
9822         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
9823         New transformations.
9824
9825 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9826
9827         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
9828
9829 2016-04-20  Jan Hubicka  <jh@suse.cz>
9830
9831         * ipa-inline.c (can_inline_edge_p): Pass caller info to
9832         ultiimate_alias_target.
9833         (update_callee_keys): Likewise.
9834         (lookup_recursive_calls): Likewise.
9835         (speculation_useful_p): Likewise.
9836
9837 2016-04-20  Jan Hubicka  <jh@suse.cz>
9838
9839         PR ipa/70018
9840         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
9841         (set_nothrow_flag_1): ... this; handle interposition correctly;
9842         recurse on aliases and thunks.
9843         (cgraph_node::set_nothrow_flag): New.
9844         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
9845         functions compiled with non-call exceptions that binds to current
9846         def.
9847         (propagate_nothrow): Be safe WRT interposition.
9848         * cgraph.h (set_nothrow_flag): Update prototype.
9849
9850 2016-04-18  Jan Hubicka  <jh@suse.cz>
9851
9852         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9853         max_loop_iterations_int.
9854         (tree_unswitch_outer_loop): Likewise.
9855
9856 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9857
9858         PR tree-optimization/69489
9859         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
9860         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
9861         Revise dump message.
9862         (if_convertible_bb_p): Remove check on edge count of basic block's
9863         predecessors.
9864
9865 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9866
9867         PR tree-optimization/56625
9868         PR tree-optimization/69489
9869         * tree-data-ref.h (DR_INNERMOST): New macro.
9870         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
9871         hashing struct innermost_loop_behavior.
9872         (ref_DR_map): Remove.
9873         (innermost_DR_map): New map.
9874         (baseref_DR_map): Revise comment.
9875         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
9876         to innermost_DR_map accroding to its innermost loop behavior.
9877         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
9878         to its innermost loop behavior.
9879         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
9880         Add initialization for innermost_DR_map.  Record memory reference
9881         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
9882         have innermost loop behavior.
9883         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
9884         innermost_DR_map.
9885
9886 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
9887
9888         * config/i386/i386.md (*lea<mode>_general_1): Rename from
9889         *lea_general_1.  Use explicit SWI12 mode interator.
9890         (*lea<mode>_general_2): Rename from *lea_general_2.
9891         Use explicit SWI12 mode interator.
9892         (*lea<mode>_general_3): Rename from *lea_general_3.
9893         Use explicit SWI12 mode interator.
9894         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
9895         Use explicit SWI12 mode interator.
9896         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
9897         Use explicit SWI48 mode interator.
9898
9899 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9900
9901         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9902         Short-cut unaligned load and store cases.  Handle all integer
9903         vector modes.
9904         (ix86_expand_vector_move_misalign): Short-cut unaligned load
9905         and store cases.  Call ix86_avx256_split_vector_move_misalign
9906         directly without checking mode class.
9907
9908 2016-04-20  Andrew Pinski  <apinski@cavium.com>
9909             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9910
9911         PR target/64971
9912         * config/aarch64/aarch64.md (sibcall): Force call
9913         address to be DImode for ILP32.
9914         (sibcall_value): Likewise.
9915
9916 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9917
9918         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
9919
9920 2016-04-20  Richard Biener  <rguenther@suse.de>
9921
9922         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
9923         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
9924         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
9925         (maybe_push_res_to_seq): Adjust.
9926         * gimple-fold.c (maybe_build_generic_op): Likewise.
9927
9928 2016-04-20  Marek Polacek  <polacek@redhat.com>
9929
9930         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
9931         rather than true.
9932
9933 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
9934
9935         * config/i386/sse.md (vec_unpacks_lo_hi): Always
9936         use kmovw to support AVX512F target.
9937
9938 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9939
9940         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
9941
9942 2016-04-20  Marek Polacek  <polacek@redhat.com>
9943
9944         PR tree-optimization/70725
9945         * tree-if-conv.c (is_false_predicate): New function.
9946         (predicate_mem_writes): Use it.
9947
9948 2016-04-20  Richard Biener  <rguenther@suse.de>
9949
9950         PR tree-optimization/70726
9951         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
9952         shift amounts from a pattern stmt operand.
9953
9954 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9955
9956         PR target/70674
9957         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
9958         stack_restore_from_fpr pattern when restoring r15.
9959         (s390_optimize_prologue): Strip away the memory barrier in the
9960         parallel when trying to get rid of restore insns.
9961         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
9962         definition for loading the stack pointer from an FPR.  Compared to
9963         the normal move insn this pattern includes a full memory barrier.
9964
9965 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
9966
9967         PR middle-end/70680
9968         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
9969         implicitly linear or lastprivate iterator on the outer context.
9970
9971 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9972
9973         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
9974         alignment check.
9975         * config/i386/i386.md (ssememalign): Removed.
9976         * config/i386/sse.md: Remove ssememalign attribute from patterns.
9977
9978 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9979
9980         PR target/69201
9981         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
9982         const short * to __builtin_ia32_loaddquhi512_mask.
9983         (_mm512_maskz_loadu_epi16): Likewise.
9984         (_mm512_mask_storeu_epi16): Pass short * to
9985         __builtin_ia32_storedquhi512_mask.
9986         (_mm512_mask_loadu_epi8): Pass const char * to
9987         __builtin_ia32_loaddquqi512_mask.
9988         (_mm512_maskz_loadu_epi8): Likewise.
9989         (_mm512_mask_storeu_epi8): Pass char * to
9990         __builtin_ia32_storedquqi512_mask.
9991         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
9992         const double * to __builtin_ia32_loadupd512_mask.
9993         (_mm512_mask_loadu_pd): Likewise.
9994         (_mm512_maskz_loadu_pd): Likewise.
9995         (_mm512_storeu_pd): Pass double * to
9996         __builtin_ia32_storeupd512_mask.
9997         (_mm512_mask_storeu_pd): Likewise.
9998         (_mm512_loadu_ps): Pass const float * to
9999         __builtin_ia32_loadups512_mask.
10000         (_mm512_mask_loadu_ps): Likewise.
10001         (_mm512_maskz_loadu_ps): Likewise.
10002         (_mm512_storeu_ps): Pass float * to
10003         __builtin_ia32_storeups512_mask.
10004         (_mm512_mask_storeu_ps): Likewise.
10005         (_mm512_mask_loadu_epi64): Pass const long long * to
10006         __builtin_ia32_loaddqudi512_mask.
10007         (_mm512_maskz_loadu_epi64): Likewise.
10008         (_mm512_mask_storeu_epi64): Pass long long *
10009         to __builtin_ia32_storedqudi512_mask.
10010         (_mm512_loadu_si512): Pass const int * to
10011         __builtin_ia32_loaddqusi512_mask.
10012         (_mm512_mask_loadu_epi32): Likewise.
10013         (_mm512_maskz_loadu_epi32): Likewise.
10014         (_mm512_storeu_si512): Pass int * to
10015         __builtin_ia32_storedqusi512_mask.
10016         (_mm512_mask_storeu_epi32): Likewise.
10017         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
10018         char * to __builtin_ia32_storedquqi256_mask.
10019         (_mm_mask_storeu_epi8): Likewise.
10020         (_mm256_mask_loadu_epi16): Pass const short * to
10021         __builtin_ia32_loaddquhi256_mask.
10022         (_mm256_maskz_loadu_epi16): Likewise.
10023         (_mm_mask_loadu_epi16): Pass const short * to
10024         __builtin_ia32_loaddquhi128_mask.
10025         (_mm_maskz_loadu_epi16): Likewise.
10026         (_mm256_mask_loadu_epi8): Pass const char * to
10027         __builtin_ia32_loaddquqi256_mask.
10028         (_mm256_maskz_loadu_epi8): Likewise.
10029         (_mm_mask_loadu_epi8): Pass const char * to
10030         __builtin_ia32_loaddquqi128_mask.
10031         (_mm_maskz_loadu_epi8): Likewise.
10032         (_mm256_mask_storeu_epi16): Pass short * to.
10033         __builtin_ia32_storedquhi256_mask.
10034         (_mm_mask_storeu_epi16): Pass short * to.
10035         __builtin_ia32_storedquhi128_mask.
10036         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
10037         const double * to __builtin_ia32_loadupd256_mask.
10038         (_mm256_maskz_loadu_pd): Likewise.
10039         (_mm_mask_loadu_pd): Pass onst double * to
10040         __builtin_ia32_loadupd128_mask.
10041         (_mm_maskz_loadu_pd): Likewise.
10042         (_mm256_mask_storeu_pd): Pass double * to
10043         __builtin_ia32_storeupd256_mask.
10044         (_mm_mask_storeu_pd): Pass double * to
10045         __builtin_ia32_storeupd128_mask.
10046         (_mm256_mask_loadu_ps): Pass const float * to
10047         __builtin_ia32_loadups256_mask.
10048         (_mm256_maskz_loadu_ps): Likewise.
10049         (_mm_mask_loadu_ps): Pass const float * to
10050         __builtin_ia32_loadups128_mask.
10051         (_mm_maskz_loadu_ps): Likewise.
10052         (_mm256_mask_storeu_ps): Pass float * to
10053         __builtin_ia32_storeups256_mask.
10054         (_mm_mask_storeu_ps): ass float * to
10055         __builtin_ia32_storeups128_mask.
10056         (_mm256_mask_loadu_epi64): Pass const long long * to
10057         __builtin_ia32_loaddqudi256_mask.
10058         (_mm256_maskz_loadu_epi64): Likewise.
10059         (_mm_mask_loadu_epi64): Pass const long long * to
10060         __builtin_ia32_loaddqudi128_mask.
10061         (_mm_maskz_loadu_epi64): Likewise.
10062         (_mm256_mask_storeu_epi64): Pass long long * to
10063         __builtin_ia32_storedqudi256_mask.
10064         (_mm_mask_storeu_epi64): Pass long long * to
10065         __builtin_ia32_storedqudi128_mask.
10066         (_mm256_mask_loadu_epi32): Pass const int * to
10067         __builtin_ia32_loaddqusi256_mask.
10068         (_mm256_maskz_loadu_epi32): Likewise.
10069         (_mm_mask_loadu_epi32): Pass const int * to
10070         __builtin_ia32_loaddqusi128_mask.
10071         (_mm_maskz_loadu_epi32): Likewise.
10072         (_mm256_mask_storeu_epi32): Pass int * to
10073         __builtin_ia32_storedqusi256_mask.
10074         (_mm_mask_storeu_epi32): Pass int * to
10075         __builtin_ia32_storedqusi128_mask.
10076         * config/i386/i386-builtin-types.def (PCSHORT): New.
10077         (PINT64): Likewise.
10078         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
10079         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
10080         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
10081         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
10082         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
10083         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
10084         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
10085         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
10086         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
10087         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
10088         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
10089         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
10090         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
10091         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
10092         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
10093         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
10094         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
10095         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
10096         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
10097         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
10098         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
10099         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
10100         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
10101         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
10102         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
10103         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
10104         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
10105         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
10106         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
10107         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
10108         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
10109         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
10110         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
10111         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
10112         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
10113         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
10114         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
10115         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
10116         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
10117         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
10118         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
10119         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
10120         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
10121         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
10122         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
10123         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
10124         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
10125         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
10126         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
10127         use UNSPEC_STOREU.
10128         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
10129         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
10130         load nor store.
10131         (ix86_expand_vector_move_misalign): Likewise.
10132         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
10133         to scalar function prototype for unaligned load/store builtins.
10134         (ix86_expand_special_args_builtin): Updated.
10135         * config/i386/sse.md (UNSPEC_LOADU): Removed.
10136         (UNSPEC_STOREU): Likewise.
10137         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
10138         (VI_ULOADSTORE_F_AVX512VL): Likewise.
10139         (ssescalarsize): Handle V4TI, V2TI and V1TI.
10140         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10141         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10142         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
10143         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
10144         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10145         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10146         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10147         (<avx512>_storedqu<mode>_mask): Likewise.
10148         (*sse4_2_pcmpestr_unaligned): Likewise.
10149         (*sse4_2_pcmpistr_unaligned): Likewise.
10150         (*mov<mode>_internal): Renamed to ...
10151         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
10152         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10153         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10154         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10155
10156 2016-04-19  Richard Biener  <rguenther@suse.de>
10157
10158         PR tree-optimization/70171
10159         * tree-ssa-phiprop.c: Include stor-layout.h.
10160         (phiprop_insert_phi): Handle the aggregate copy case.
10161         (propagate_with_phi): Likewise.
10162
10163 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
10164
10165         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10166         instead of simplify_gen_subreg (... , 0).
10167         (ix86_delegitimize_address): Ditto.
10168         (ix86_split_divmod): Ditto.
10169         (ix86_split_copysign_const): Ditto.
10170         (ix86_split_copysign_var): Ditto.
10171         (ix86_expand_args_builtin): Ditto.
10172         (ix86_expand_round_builtin): Ditto.
10173         (ix86_expand_special_args_builtin): Ditto.
10174         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10175         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10176         (udivmodqi4): Ditto.
10177         (absneg splitters): Ditto.
10178         (*jcc_bt<mode>_1): Ditto.
10179
10180 2016-04-19  Richard Biener  <rguenther@suse.de>
10181
10182         PR tree-optimization/70724
10183         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10184         restoring out from ...
10185         (free_scc_vn): ... here.
10186         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10187         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10188         tail merging.
10189         (pass_fre::execute): Restore SSA info.
10190
10191 2016-04-19  Richard Biener  <rguenther@suse.de>
10192
10193         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10194         * gimple-walk.c (walk_gimple_op): Initialize it.
10195         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10196         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10197         remapping SSA names of defs.
10198         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10199         adjustment.
10200
10201 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
10202
10203         PR middle-end/70689
10204         * lra-constraints.c (equiv_substition_p): New.
10205         (process_alt_operands): Use it.
10206         (swap_operands): Swap it.
10207         (curr_insn_transform): Update it.
10208
10209 2016-04-18  Michael Matz  <matz@suse.de>
10210
10211         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10212         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10213         * tree-core.h (tree_type_common.align): Use bit-field.
10214         (tree_type_common.spare): New.
10215         (tree_decl_common.off_align): Make smaller.
10216         (tree_decl_common.align): Use bit-field.
10217
10218         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10219         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10220         (scan_sharing_clauses): Ditto.
10221         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10222         (omp_finish_file): Ditto.
10223         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10224         (layout_decl): Ditto.
10225         (relayout_decl): Ditto.
10226         (finalize_record_size): Use SET_TYPE_ALIGN.
10227         (finalize_type_size): Ditto.
10228         (finish_builtin_struct): Ditto.
10229         (layout_type): Ditto.
10230         (initialize_sizetypes): Ditto.
10231         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10232         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10233         (lookup_field_for_decl): Use SET_DECL_ALIGN.
10234         (get_chain_field): Ditto.
10235         (get_trampoline_type): Ditto.
10236         (get_nl_goto_field): Ditto.
10237         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10238         SET_DECL_ALIGN.
10239         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10240         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10241         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10242         (build_qualified_type): Use SET_TYPE_ALIGN.
10243         (build_aligned_type, build_range_type_1): Ditto.
10244         (build_atomic_base): Ditto.
10245         (build_common_tree_nodes): Ditto.
10246         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10247         (expand_one_stack_var_at): Ditto.
10248         * coverage.c (build_var): Use SET_DECL_ALIGN.
10249         * except.c (init_eh): Ditto.
10250         * function.c (assign_parm_setup_block): Ditto.
10251         * symtab.c (increase_alignment_1): Ditto.
10252         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10253         * tree-vect-stmts.c (ensure_base_align): Ditto.
10254         * varasm.c (align_variable): Ditto.
10255         (assemble_variable): Ditto.
10256         (build_constant_desc): Ditto.
10257         (output_constant_def_contents): Ditto.
10258
10259         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
10260         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
10261         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
10262         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
10263         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
10264
10265 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
10266
10267         PR target/70708
10268         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
10269         replace %vmovsd with "%vmovq".
10270         (vec_concatv2df): Likewise.
10271
10272 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
10273
10274         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
10275         (*vec_extractv2si_0): Ditto.
10276         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
10277         (zero_extended_scalar_load_operand splitters): Ditto.
10278         (vec_extract splitters): Ditto.
10279         (*vec_extractv4si_0_zext): Ditto.
10280         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
10281         and lowpart_subreg.
10282         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
10283         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
10284         (*sse4_1_extractps): Use lowpart_subreg.
10285         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
10286
10287 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10288
10289         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
10290         gld requirements.
10291         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
10292         Mention Solaris 11 packaging changes.
10293         Update gas and gld requirements.
10294         Remove reference to pre-Solaris 10 bug.
10295         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10296         systems and bugs.
10297         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10298         with cc.
10299
10300 2016-04-17  Jan Hubicka  <jh@suse.cz>
10301
10302         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10303         max_loop_iterations_int.
10304
10305 2016-04-18  Richard Biener  <rguenther@suse.de>
10306
10307         PR tree-optimization/43434
10308         * tree-ssa-structalias.c (struct vls_data): New.
10309         (visit_loadstore): Handle all pointer-based accesses.
10310         (compute_dependence_clique): Compute a bitmap of restrict tags
10311         assigned bases and pass it to visit_loadstore.
10312
10313 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10314
10315         PR target/70711
10316         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10317         armv8.1-a and armv8.1-a+crc.
10318
10319 2016-04-18  Richard Biener  <rguenther@suse.de>
10320
10321         PR tree-optimization/70701
10322         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10323         references after translating through a memcpy.
10324
10325 2016-04-18  Richard Biener  <rguenther@suse.de>
10326
10327         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10328         (compute_antic): ... here.  For partial antic use regular
10329         postorder and scrap iteration.
10330         (compute_partial_antic_aux): Remove unused return value.
10331         (init_pre): Do not allocate postorder.
10332         (fini_pre): Do not free postorder.
10333
10334 2016-04-18  Richard Biener  <rguenther@suse.de>
10335
10336         PR middle-end/37870
10337         * expmed.c (extract_bit_field_1): Remove broken case
10338         using a wider MODE_INT mode.
10339
10340 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10341
10342         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10343         unless compiling with at least GCC-4.8.
10344
10345 2016-04-17  Jan Hubicka  <jh@suse.cz>
10346
10347         PR bootstrap/70706
10348         * graphite.c (graphite_finalize): Update call to
10349         tree_estimate_probability.
10350         * predict.h (tree_estimate_probability): Update prototype.
10351
10352 2016-04-17  Jan Hubicka  <jh@suse.cz>
10353
10354         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10355         (tree_estimate_probability): Likewise.
10356         (pass_profile::execute): Update.
10357         (report_predictor_hitrates): New function.
10358         * profile.c (compute_branch_probabilities): Use it.
10359         * predict.h (report_predictor_hitrates): Declare.
10360
10361 2016-04-17  Jan Hubicka  <jh@suse.cz>
10362
10363         PR ipa/70018
10364         * cgraph.h (cgraph_node::set_const_flag,
10365         cgraph_node::set_pure_flag): Update prototype to return bool;
10366         update comment.
10367         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10368         of interposable symbol are interposable, too.
10369         (cgraph_set_const_flag_1): Rename to ...
10370         (set_const_flag_1): ... this one; change to self recursive function
10371         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10372         clearnig the flag in all variants and also virtual thunks of const
10373         functions are pure; track if any change was done.
10374         (cgraph_node::set_const_flag): Update.
10375         (struct set_pure_flag_info): New struct.
10376         (cgraph_set_pure_flag_1): Rename to ...
10377         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10378         rather than pointer encoded flags; track if any changes was done;
10379         handle correctly clearning flag and setting flag of aliases already
10380         declared const.
10381         (cgraph_node::set_pure_flag): Update.
10382         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10383
10384 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10385
10386         PR other/70433
10387         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10388         backslash in label.
10389
10390 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10391
10392         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10393         '{}<> ' as escape-for-record.
10394
10395 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10396
10397         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10398         structure.
10399
10400 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10401
10402         PR other/70185
10403         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10404         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10405         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10406         * passes.c (finish_optimization_passes): Only call
10407         finish_graph_dump_file if dfi->graph_dump_initialized.
10408         (execute_function_dump, pass_init_dump_file): Use
10409         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10410
10411 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10412
10413         PR tree-optimization/70256
10414         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10415         (debug_varmap): New function.
10416
10417 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10418
10419         PR other/70183
10420         * passes.c (pass_manager::register_pass): Propagate pflags.
10421
10422 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10423
10424         PR other/68875
10425         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10426         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10427         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10428         check if it's equal to p_start.
10429         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10430
10431 2016-04-15  Jan Hubicka  <jh@suse.cz>
10432
10433         PR ipa/70018
10434         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10435         function does not bind to current def.
10436         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10437         handle conservatively calls to functions that does not need to bind
10438         to current def.
10439         (check_call): Update call of worse_state.
10440         (ignore_edge_for_nothrow): Update.
10441         (ignore_edge_for_pure_const): Likewise.
10442         (propagate_pure_const): Update calls to worse_state.
10443         (skip_function_for_local_pure_const): Reformat comments.
10444
10445 2016-04-15  Jan Hubicka  <jh@suse.cz>
10446
10447         PR ipa/70018
10448         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
10449         (cgraph_node::function_symbol): Likewise.
10450         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10451         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
10452         (symtab_node::ultimate_alias_target): Add REF parameter.
10453         (symtab_node::binds_to_current_def_p): Declare.
10454         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
10455         (cgraph_node::function_symbol): Likewise.
10456         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10457         (cgraph_node::get_availability): Likewise.
10458         (cgraph_edge::binds_to_current_def_p): New inline function.
10459         (varpool_node::get_availability): Add REF parameter.
10460         (varpool_node::ultimate_alias_target): Likewise.
10461         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
10462         (symtab_node::binds_to_current_def_p): Likewise.
10463         * varpool.c (varpool_node::get_availability): Likewise.
10464
10465 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10466
10467         PR target/70662
10468         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
10469         Fix mode size check.
10470
10471 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10472
10473         * BASE-VER: Set to 7.0.0.
10474
10475 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
10476
10477         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
10478
10479 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10480
10481         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
10482         architecture revisions.
10483
10484 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
10485
10486         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
10487         * config/i386/i386.c (ix86_using_red_zone): No longer static.
10488         * config/i386/i386.md (stack decrement to push peepholes): Guard
10489         with !x86_using_red_zone ().
10490
10491 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10492
10493         PR c++/70675
10494         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
10495         to dump_generic_node.
10496         (NIY): Pass also flags to do_niy.
10497
10498 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10499
10500         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
10501         (simd_clone_vector_of_formal_parm_types)
10502         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
10503         (simd_clone_mangle, simd_clone_create)
10504         (simd_clone_adjust_return_type, create_tmp_simd_array)
10505         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
10506         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
10507         (ipa_simd_modify_function_body, simd_clone_linear_addend)
10508         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
10509         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
10510         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
10511         * omp-simd-clone.c: ... this new file.
10512         (simd_clone_vector_of_formal_parm_types): Make it static.
10513         * Makefile.in (OBJS): Add omp-simd-clone.o.
10514
10515 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10516
10517         PR target/70662
10518         * config/i386/sse.md: Use proper memory operand modifiers.
10519
10520
10521 2016-04-15  Richard Biener  <rguenther@suse.de>
10522         Alan Modra  <amodra@gmail.com>
10523
10524         PR tree-optimization/70130
10525         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
10526         when alignment stays not the same and no not use the realign
10527         scheme then.
10528
10529 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10530
10531         PR target/70669
10532         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10533         direct move handlers for KFmode. Change TFmode handlers test from
10534         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
10535
10536 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
10537
10538         PR c++/70594
10539         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
10540         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
10541         (inlined_polymorphic_ctor_dtor_block_p): Use it.
10542         * tree-ssa-live.c (remove_unused_scope_block_p): When
10543         in_ctor_dtor_block, avoid discarding not just BLOCKs with
10544         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
10545         block_ultimate_origin is FUNCTION_DECL.
10546         (remove_unused_locals): If current_function_decl is
10547         polymorphic_ctor_dtor_p, pass initial true to
10548         remove_unused_scope_block_p' is_ctor_dtor_block.
10549
10550 2016-04-14  Martin Sebor  <msebor@redhat.com>
10551
10552         PR c++/69517
10553         PR c++/70019
10554         PR c++/70588
10555         * doc/extend.texi (Variable Length): Revert.
10556
10557 2016-04-14  Marek Polacek  <polacek@redhat.com>
10558             Jan Hubicka  <hubicka@ucw.cz>
10559
10560         PR c++/70029
10561         * tree.c (verify_type): Disable the canonical type of main variant
10562         check.
10563
10564 2016-04-14  Jason Merrill  <jason@redhat.com>
10565
10566         * cfgexpand.c, expr.c: Revert previous change.
10567
10568 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10569
10570         PR middle-end/70643
10571         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
10572         when building a mem ref for the incoming reduction variable.
10573
10574 2016-04-14  Richard Biener  <rguenther@suse.de>
10575
10576         PR tree-optimization/70614
10577         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
10578         loop if the evolution dropped to chrec_dont_know.
10579         (interpret_condition_phi): Likewise.
10580
10581 2016-04-14  Richard Biener  <rguenther@suse.de>
10582
10583         PR tree-optimization/70623
10584         * tree-ssa-pre.c (changed_blocks): Make global ...
10585         (compute_antic): ... local here.  Move and fix worklist
10586         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
10587         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
10588         worklist handling, dump when ANTIC_IN changed.
10589         (compute_partial_antic_aux): Remove worklist handling.
10590         (init_pre): Do not compute post dominators.  Add a comment about
10591         the CFG order chosen.
10592         (fini_pre): Do not free post dominators.
10593
10594 2016-04-13  Martin Sebor  <msebor@redhat.com>
10595
10596         PR c++/69517
10597         PR c++/70019
10598         PR c++/70588
10599         * doc/extend.texi (Variable Length): Document C++ specifics.
10600
10601 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10602
10603         PR c++/70641
10604         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
10605         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
10606         eh edges have been purged.
10607
10608         PR c++/70594
10609         * tree-sra.c (create_access_replacement,
10610         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
10611         gets fancy name.
10612         * tree-pretty-print.c (dump_fancy_name): New function.
10613         (dump_decl_name, dump_generic_node): Use it.
10614
10615 2016-04-13  Jason Merrill  <jason@redhat.com>
10616
10617         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
10618         * expr.c (expand_expr_real_1): Likewise.
10619
10620 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10621
10622         * config/i386/i386.md (kunpckhi): Swap operands.
10623         (kunpcksi): Likewise.
10624         (kunpckdi): Likewise.
10625         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
10626         (vec_pack_trunc_<mode>): Likewise.
10627
10628 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10629
10630         PR debug/70628
10631         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
10632
10633         PR middle-end/70633
10634         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
10635         gimplification turns some element into non-constant.
10636
10637         PR debug/70628
10638         * rtl.h (convert_memory_address_addr_space_1): New prototype.
10639         * explow.c (convert_memory_address_addr_space_1): No longer static,
10640         add NO_EMIT argument and don't call convert_modes if true, pass
10641         it down recursively, remove break after return.
10642         (convert_memory_address_addr_space): Adjust caller.
10643         * simplify-rtx.c (simplify_unary_operation_1): Call
10644         convert_memory_address_addr_space_1 instead of convert_memory_address,
10645         if it returns NULL, don't simplify.
10646
10647 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10648
10649         PR target/70630
10650         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
10651
10652 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10653
10654         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10655         Bump the upper SIMDLEN limits, so that if the return type or
10656         characteristic type if the return type is void can be passed in
10657         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
10658         allowed.
10659
10660 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10661
10662         PR target/70640
10663         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
10664         Do not use "=" constraint on an input constraint.
10665         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10666         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10667         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
10668         generates (neg (abs ...)) instead of (abs ...).
10669
10670 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10671
10672         PR rtl-optimization/70596
10673         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
10674         just invalidate LRA data and reset them.  Adjust dump wording.
10675
10676 2016-04-12  Martin Liska  <mliska@suse.cz>
10677
10678         Revert
10679         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10680
10681         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10682         estimates here.
10683         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10684         max_loop_iterations_int.
10685         (tree_unswitch_outer_loop): Likewise.
10686         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10687         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10688
10689 2016-04-12  Tom de Vries  <tom@codesourcery.com>
10690
10691         PR tree-optimization/68756
10692         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
10693         instead of new_name.
10694
10695 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10696
10697         PR tree-optimization/70602
10698         * tree-sra.c (generate_subtree_copies): Don't write anything into
10699         constant pool decls.
10700
10701         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
10702         regardless whether there are depend clauses or not.
10703
10704 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10705
10706         PR target/70381
10707         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
10708         target attribute and pragma from changing the -mfloat128
10709         and -mfloat128-hardware options.
10710
10711         * doc/extend.texi (Additional Floating Types): Document PowerPC
10712         __float128 restrictions.
10713
10714 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10715
10716         PR target/70133
10717         * config/aarch64/driver-aarch64.c
10718         (aarch64_get_extension_string_for_isa_flags): New.
10719         (arch_extension): Rename to...
10720         (aarch64_arch_extension): ...This.
10721         (ext_to_feat_string): Rename to...
10722         (aarch64_extensions): ...This.
10723         (aarch64_core_data): Keep track of architecture extension flags.
10724         (cpu_data): Rename to...
10725         (aarch64_cpu_data): ...This.
10726         (aarch64_arch_driver_info): Keep track of architecture extension
10727         flags.
10728         (get_arch_name_from_id): Rename to...
10729         (get_arch_from_id): ...This, change return type.
10730         (host_detect_local_cpu): Update and reformat for renames, handle
10731         extensions through common infrastructure.
10732
10733 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10734
10735         PR target/70133
10736         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
10737         track of a canonical flag name.
10738         (all_extensions): Likewise.
10739         (arch_to_arch_name): Also track extension flags enabled by the arch.
10740         (all_architectures): Likewise.
10741         (aarch64_parse_extension): Move to here.
10742         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
10743         rework.
10744         (aarch64_rewrite_selected_cpu): Update for above change.
10745         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
10746         are handled, such that the single explicit value enabled by an
10747         extension is kept seperate from the implicit values it also enables.
10748         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
10749         to here.
10750         (aarch64_parse_extension): New.
10751         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
10752         here to config/aarch64/aarch64-protos.h.
10753         (aarch64_parse_extension): Move from here to
10754         common/config/aarch64/aarch64-common.c.
10755         (aarch64_option_print): Update.
10756         (aarch64_declare_function_name): Likewise.
10757         (aarch64_start_file): Likewise.
10758         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
10759         the canonical flag for extensions.
10760         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
10761         flags.
10762
10763 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10764
10765         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
10766         AARCH64_FL_CRC.
10767
10768 2016-04-09  Tom de Vries  <tom@codesourcery.com>
10769
10770         PR tree-optimization/68953
10771         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
10772         first to last subscript.
10773
10774 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
10775
10776         PR tree-optimization/70586
10777         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
10778         for any calls.
10779
10780 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10781
10782         PR lto/70289
10783         PR ipa/70348
10784         PR tree-optimization/70373
10785         PR middle-end/70533
10786         PR middle-end/70534
10787         PR middle-end/70535
10788         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
10789         clauses for acc parallel reductions as necessary.  Error on those
10790         that are private.
10791         * omp-low.c (scan_sharing_clauses): Don't install variables which
10792         are used in acc parallel reductions.
10793         (lower_rec_input_clauses): Remove dead code.
10794         (lower_oacc_reductions): Add support for reference reductions.
10795         (lower_reduction_clauses): Remove dead code.
10796         (lower_omp_target): Don't remap variables appearing in acc parallel
10797         reductions.
10798         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
10799
10800 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
10801
10802         PR middle-end/70593
10803         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
10804         with multiple SSA_NAME defs, force the outputs other than first
10805         to be live before calling live_track_process_def on each output.
10806
10807         PR rtl-optimization/70574
10808         * fwprop.c (forward_propagate_and_simplify): Don't add
10809         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
10810         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
10811         paradoxical subregs within *loc.
10812
10813 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
10814
10815         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
10816         -ftree-parallelize-loops={0,1}.
10817         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10818         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10819         * config/ia64/hpux.h (LIB_SPEC): Likewise.
10820         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10821         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10822
10823 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
10824
10825         PR sanitizer/70541
10826         * asan.c (instrument_derefs): If we get unknown location, extract it
10827         with EXPR_LOCATION.
10828         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
10829
10830 2016-04-08  Tom de Vries  <tom@codesourcery.com>
10831
10832         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
10833         implicit firstprivate clause.
10834
10835 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10836
10837         PR target/70566
10838         * config/arm/thumb2.md (tst + branch-> lsls + branch
10839         peephole below *orsi_not_shiftsi_si): Require that condition
10840         register is dead after the peephole.
10841         (second peephole after the above): Likewise.
10842
10843 2016-04-08  Alan Modra  <amodra@gmail.com>
10844
10845         PR target/70117
10846         * builtins.c (fold_builtin_classify): For IBM extended precision,
10847         look at just the high-order double to test for NaN.
10848         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
10849         test just the high double for Inf but both doubles for subnormal
10850         limit.
10851
10852 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
10853
10854         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
10855         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
10856         node->simdclone->mask_mode != VOIDmode masks.
10857         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
10858         earlier, use it instead of node->simdclone.
10859         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10860         Set clonei->mask_mode.
10861
10862 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10863
10864         PR c/70436
10865         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
10866         Pass it through to cp_parser_already_scoped_statement.
10867         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
10868         it through to cp_parser_statement.
10869         (cp_parser_statement): Pass IF_P through to
10870         cp_parser_iteration_statement.
10871         (cp_parser_pragma): Adjust call to
10872         cp_parser_iteration_statement.
10873
10874 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10875
10876         PR c/70436
10877         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
10878         resolve a future -Wparentheses warning.
10879         * omp-low.c (scan_sharing_clauses): Likewise.
10880         * tree-parloops.c (eliminate_local_variables): Likewise.
10881
10882 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
10883
10884         PR rtl-optimization/70398
10885         * lra-constraints.c (process_address_1): Check zero scale and code
10886         for reloading with zero scale.
10887
10888 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
10889
10890         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
10891         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
10892
10893 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
10894
10895         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10896         Add support for AVX512F clones, include them by default for
10897         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
10898         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
10899         up to 128.
10900
10901         PR middle-end/70550
10902         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
10903         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
10904         firstprivate clauses.
10905         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
10906         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
10907         (lower_omp_target): Set TREE_NO_WARNING for
10908         non-addressable possibly uninitialized vars which are copied into
10909         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
10910
10911 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
10912
10913         * config/pa/predicates.md (integer_store_memory_operand): Accept
10914         REG+D operands with a large offset when reload_in_progress is true.
10915         (floating_point_store_memory_operand): Likewise.
10916
10917 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10918
10919         PR c++/70336
10920         * match.pd (nested int casts): Limit to GIMPLE.
10921
10922 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
10923
10924         PR ipa/66223
10925         * ipa-devirt.c (maybe_record_node): Fix comment; use
10926         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
10927
10928 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10929
10930         PR rtl-optimization/70542
10931         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
10932         if there are any uses other than insn or debug insns.
10933
10934 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
10935             Jakub Jelinek  <jakub@redhat.com>
10936
10937         PR tree-optimization/70509
10938         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
10939         Shift HOST_WIDE_INT_1U instead of 1.
10940
10941 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
10942
10943         PR tree-optimization/70509
10944         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
10945         of the vector base type for index.
10946
10947 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
10948
10949         PR target/70510
10950         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
10951
10952 2016-04-05  Richard Biener  <rguenther@suse.de>
10953
10954         PR tree-optimization/70526
10955         * tree-sra.c (build_ref_for_offset): Use prev_base to
10956         extract the alias pointer type.
10957
10958 2016-04-05  Richard Biener  <rguenther@suse.de>
10959
10960         * dse.c (struct store_info): Remove alias_set member.
10961         (struct read_info_type): Likewise.
10962         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
10963         spill_deleted, clear_alias_set_lookup): Remove.
10964         (get_group_info): Remove dead base == NULL_RTX case.
10965         (dse_step0): Remove initialization of removed variables.
10966         (delete_dead_store_insn): Reomve alias set dumping.
10967         (free_read_records): Remove alias_set handling.
10968         (canon_address): Remove alias_set_out parameter.
10969         (record_store): Remove spill_alias_set, it's always zero.
10970         (check_mem_read_rtx): Likewise.
10971         (dse_step2): Rename from ...
10972         (dse_step2_nospill): ... this.  Adjust.
10973         (scan_stores): Rename from ...
10974         (scan_stores_nospill): ... this.
10975         (scan_reads): Rename from ...
10976         (scan_reads_nospill): ... this.
10977         (scan_stores_spill, scan_reads_spill): Remove.
10978         (dse_step3_scan): Remove for_spills argument which is always false.
10979         (dse_step3): Likewise.
10980         (dse_step5): Rename from ...
10981         (dse_step5_nospill): ... this.  Remove alias_set handling.
10982         (rest_of_handle_dse): Adjust.
10983
10984 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10985
10986         PR target/70525
10987         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
10988         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
10989         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
10990         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
10991
10992 2016-04-05  Richard Biener  <rguenther@suse.de>
10993
10994         PR middle-end/70499
10995         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
10996         non-register type temporaries into SSA.
10997
10998 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
10999
11000         PR ipa/66223
11001         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
11002         calls when sanitizing.
11003         (possible_polymorphic_call_target_p): Fix formatting.
11004
11005 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11006             Jakub Jelinek <jakub@redhat.com>
11007
11008         PR middle-end/70457
11009         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
11010         to ensure a call statement is compatible with a built-in's
11011         prototype.
11012         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
11013         Likewise.
11014
11015 2016-04-04  Richard Biener  <rguenther@suse.de>
11016
11017         PR rtl-optimization/70484
11018         * rtl.h (canon_output_dependence): Declare.
11019         * alias.c (canon_output_dependence): New function.
11020         * dse.c (record_store): Use canon_output_dependence rather
11021         than canon_true_dependence.
11022
11023 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11024
11025         PR ipa/68881
11026         * cgraph.h (symtab_node::copy_visibility_from): New function.
11027         * symtab.c (symtab_node::copy_visibility_from): New function.
11028         * ipa-visibility.c (optimize_weakref): New function.
11029         (function_and_variable_visibility): Use it.
11030
11031 2016-04-04  Martin Liska  <mliska@suse.cz>
11032
11033         PR hsa/70402
11034         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
11035         value that is really in range handled by SBR instruction.
11036         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
11037         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
11038         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
11039
11040 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
11041
11042         PR target/70416
11043         PR target/67391
11044         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
11045         set, but not for SP_REG operands.
11046
11047 2016-04-02  Martin Sebor  <msebor@redhat.com>
11048
11049         PR c++/67376
11050         * fold-const.c (maybe_nonzero_address): New function.
11051         (fold_comparison): Call it.  Fold equality and relational
11052         expressions involving null pointers.
11053         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
11054
11055 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
11056
11057         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
11058         the "Y" constraint (scalar FP 0.0 immediate).
11059
11060         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
11061         Add the "const_double" to the list of operand constraints.
11062
11063 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
11064
11065         PR rtl-optimization/70467
11066         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
11067         If low word of the last operand is 0, just emit addition/subtraction
11068         for the high word.
11069
11070 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11071
11072         PR target/70404
11073         * config/s390/s390.c (s390_expand_insv): Check for everything
11074         constant instead of just VOIDmode stuff.
11075
11076 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11077
11078         PR target/70496
11079         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
11080
11081 2016-04-01  Nathan Sidwell  <nathan@acm.org>
11082
11083         * tree.def (TRY_CATCH_EXPR): Correct documentation.
11084
11085 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11086
11087         PR rtl-optimization/70461
11088         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
11089         is necessary.
11090
11091 2016-03-31  Martin Liska  <mliska@suse.cz>
11092
11093         PR hsa/70399
11094         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
11095         a tree value or an immediate integer value to a buffer
11096         that is eventually copied to a BRIG section.
11097         (emit_immediate_operand): Call the function here.
11098         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
11099         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
11100         of class' fields that are removed.
11101         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
11102         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
11103         m_brig_repr_size fields.
11104
11105 2016-03-31  Martin Liska  <mliska@suse.cz>
11106
11107         PR hsa/70391
11108         * hsa-gen.c (hsa_function_representation::update_dominance): New
11109         function.
11110         (convert_addr_to_flat_segment): Likewise.
11111         (gen_hsa_memory_set): New alignment argument.
11112         (gen_hsa_ctor_assignment): Likewise.
11113         (gen_hsa_insns_for_single_assignment): Provide alignment
11114         to gen_hsa_ctor_assignment.
11115         (gen_hsa_insns_for_direct_call): Add new argument.
11116         (expand_lhs_of_string_op): New function.
11117         (expand_string_operation_builtin): Likewise.
11118         (expand_memory_copy): New function.
11119         (expand_memory_set): New function.
11120         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
11121         (convert_switch_statements): Change signature.
11122         (generate_hsa): Use a return value of the function.
11123         (pass_gen_hsail::execute): Do not call
11124         convert_switch_statements here.
11125         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
11126         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
11127         (hsa_function_representation::update_dominance): New function.
11128
11129 2016-03-31  Martin Liska  <mliska@suse.cz>
11130
11131         PR hsa/70391
11132         * hsa-brig.c (emit_directive_variable): Emit alignment
11133         according to hsa_symbol::m_align.
11134         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
11135         (dump_hsa_symbol): Dump alignment of HSA symbols.
11136         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
11137         (gen_hsa_addr_with_align): New function.
11138         (hsa_bitmemref_alignment): Use newly added function.
11139         (gen_hsa_insns_for_load): Likewise.
11140         (gen_hsa_insns_for_store): Likewise.
11141         (gen_hsa_memory_copy): New argument added.
11142         (gen_hsa_insns_for_single_assignment): Respect
11143         alignment for assignments processed via gen_hsa_memory_copy.
11144         (gen_hsa_insns_for_direct_call): Likewise.
11145         (gen_hsa_insns_for_return): Likewise.
11146         (gen_function_def_parameters): Set default alignment.
11147         * hsa.c (hsa_object_alignment): New function.
11148         (hsa_byte_alignment): Pasted function.
11149         * hsa.h (hsa_symbol::m_align): New field.
11150
11151 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11152
11153         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11154         scratch field for goto case.
11155
11156 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
11157
11158         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11159
11160 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
11161
11162         PR target/70442
11163         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11164         (scalar_chain::convert_insn): Call convert_op for reg
11165         moves to handle undefined registers.
11166
11167 2016-03-31  Nathan Sidwell  <nathan@acm.org>
11168
11169         PR c++/70393
11170         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11171         Assert we don't want to move backwards.
11172
11173 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11174
11175         PR target/70453
11176         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11177
11178 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
11179
11180         PR rtl-optimization/70460
11181         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11182         with operand from REG_LABEL_OPERAND, instead substitute
11183         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11184         Don't do anything for REG_NON_LOCAL_GOTO jumps.
11185
11186 2016-03-31  Martin Liska  <mliska@suse.cz>
11187
11188         * passes.c (execute_one_pass): Do not call
11189         todo_after for a discarded function.
11190
11191 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11192
11193         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11194         (no_cost, infinite_cost): Initialize the new field.
11195         (get_computation_cost_at): Record setup cost.
11196         (determine_use_iv_cost_address): Skip cost computation for sub
11197         uses if we can estimate it without losing accuracy.
11198
11199 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11200
11201         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11202         estimates here.
11203         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11204         max_loop_iterations_int.
11205         (tree_unswitch_outer_loop): Likewise.
11206         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11207         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11208
11209 2016-03-30  Richard Biener  <rguenther@suse.de>
11210
11211         PR middle-end/70450
11212         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11213
11214 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
11215
11216         PR target/70421
11217         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11218         in gen_blendm expander.
11219
11220 2016-03-30  Nick Clifton  <nickc@redhat.com>
11221
11222         PR target/62254
11223         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11224         case where we are already provided with an SImode SUBREG.
11225
11226 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11227
11228         PR target/70439
11229         * config/i386/i386.c (ix86_expand_epilogue): Properly check
11230         conflict between DRAP register and __builtin_eh_return.
11231
11232 2016-03-30  Michael Matz  <matz@suse.de>
11233             Richard Biener  <rguenther@suse.de>
11234
11235         PR ipa/12392
11236         * ipa-polymorphic-call.c (struct type_change_info): Change
11237         speculative to an unsigned allowing to limit the work we do.
11238         (csftc_abort_walking_p): New inline function..
11239         (check_stmt_for_type_change): Limit the number of may-defs
11240         skipped for speculative devirtualization to
11241         max-speculative-devirt-maydefs.
11242         * params.def (max-speculative-devirt-maydefs): New param.
11243         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11244
11245 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
11246
11247         PR target/63890
11248         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11249         and TARGET_MACHO.
11250
11251 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
11252
11253         PR tree-optimization/59124
11254         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
11255         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
11256
11257 2016-03-29  Jeff Law  <law@redhat.com>
11258
11259         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
11260
11261 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11262
11263         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
11264         to HOST_WIDE_INT.
11265
11266 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11267
11268         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
11269         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
11270         gcrt0.o if linking dynamically.
11271
11272 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11273
11274         PR ipa/70283
11275         * ipa-devirt.c (methods_equal_p): New function.
11276         (compare_virtual_tables): Use it.
11277         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
11278         * cgraphclones.c (clone_function_name_1): Use
11279         symbol_table::symbol_suffix_separator.
11280         * coverage.c (build_var): Likewise.
11281         * symtab.c (symbol_table::symbol_suffix_separator): New.
11282
11283 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
11284
11285         PR rtl-optimization/70429
11286         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
11287         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
11288         mode != result_mode.
11289
11290         PR c++/70353
11291         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
11292
11293         PR tree-optimization/70405
11294         * ssa-iterators.h (num_imm_uses): Add missing braces.
11295
11296 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11297
11298         PR rtl-optimization/68695
11299         * ira-color.c (allocno_copy_cost_saving): New.
11300         (improve_allocation): Use it.
11301
11302 2016-03-29  Richard Henderson  <rth@redhat.com>
11303
11304         PR middle-end/70355
11305         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11306
11307 2016-03-29  Richard Biener  <rguenther@suse.de>
11308
11309         PR middle-end/70424
11310         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11311         use alignment returned by get_pointer_alignment_1 if it is
11312         bigger than BITS_PER_UNIT.
11313         * builtins.c (get_pointer_alignment_1): Do not return true
11314         for alignment extracted from SSA info.
11315
11316 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11317
11318         * config/ft32/ft32.opt (mnodiv): New.
11319         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11320         * doc/invoke.texi (FT32 Options -mnodiv): New.
11321
11322 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11323
11324         PR target/70406
11325         * config/i386/i386.md (define_split, andn): Fix modes.
11326
11327 2016-03-26  Richard Biener  <rguenther@suse.de>
11328             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11329
11330         PR ipa/70366
11331         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11332         instead of
11333         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11334         as 2nd argument to cl_optimization_restore().
11335
11336 2016-03-25  Richard Henderson  <rth@redhat.com>
11337
11338         PR target/70120
11339         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11340         * config/aarch64/aarch64-protos.h: Declare it.
11341         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11342
11343 2016-03-25  Alan Modra  <amodra@gmail.com>
11344
11345         PR target/70052
11346         * config/rs6000/constraints.md (j): Simplify.
11347         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11348         decimal float 0.D.
11349         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11350         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11351          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11352         in all constraint alternatives.
11353         (movtd_64bit_nodm): Delete "j" constraint alternative.
11354
11355 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11356
11357         * tree-ssa-propagate.c: Enhance docs for
11358         SSA_PROP_NOT_INTERESTING.
11359
11360 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11361
11362         * doc/extend.texi: Fix typo in documentation to pure attribute.
11363
11364 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11365
11366         PR target/70319
11367         * config/pa/pa.md (bswapdi2): Use a scratch register.
11368
11369 2016-03-24  Richard Henderson  <rth@redhat.com>
11370
11371         PR middle-end/69845
11372         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11373         overflow.
11374
11375 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11376
11377         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11378         using ix86_expand_binary_operator instead of gen_andsi3.
11379
11380 2016-03-24  Richard Biener  <rguenther@suse.de>
11381
11382         PR tree-optimization/70396
11383         * tree-vect-stmts.c (vectorizable_comparison): Use
11384         get_vectype_for_scalar_type.
11385
11386 2016-03-24  Richard Biener  <rguenther@suse.de>
11387
11388         PR middle-end/70370
11389         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11390         with register bases.
11391
11392 2016-03-24  Richard Biener  <rguenther@suse.de>
11393
11394         PR tree-optimization/70372
11395         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11396         build_all_ones_cst to also handle vector types correctly.
11397
11398 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11399
11400         PR target/70381
11401         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11402         -mfloat128 here.
11403
11404 2016-03-23  Marek Polacek  <polacek@redhat.com>
11405
11406         PR c++/69884
11407         * doc/invoke.texi: Document -Wignored-attributes.
11408
11409 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11410
11411         PR tree-optimization/69042
11412         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11413         parameter from 30 to 40.
11414
11415 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11416
11417         PR tree-optimization/69042
11418         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11419         for use with constant offset stripped in base.
11420
11421 2016-03-23  Richard Biener  <rguenther@suse.de>
11422
11423         PR middle-end/70251
11424         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11425         mode compatibility check.
11426         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11427
11428 2016-03-23  Jeff Law  <law@redhat.com>
11429
11430         PR tree-optimization/64058
11431         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11432         CONFLICT_COUNT.
11433         (struct ssa_conflicts): Move up earlier in the file.
11434         (conflicts_, var_map_): New static variables.
11435         (initialize_conflict_count): New function to initialize the
11436         CONFLICT_COUNT field for each conflict pair.
11437         (compare_pairs): Lazily initialize the conflict count and use it
11438         as the first tie-breaker.
11439         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
11440         and wipe conflicts_ and map_ around the call to qsort.  Remove
11441         special case for 2 coalesce pairs.
11442         * bitmap.c (bitmap_count_unique_bits): New function.
11443         (bitmap_count_bits_in_word): New function, extracted from
11444         bitmap_count_bits.
11445         (bitmap_count_bits): Use bitmap_count_bits_in_word.
11446         * bitmap.h (bitmap_count_unique_bits): Declare it.
11447
11448 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
11449
11450         PR target/69917
11451         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
11452         transparent alias chain for decl assembler name.
11453         * config/sol2.c (solaris_assemble_visibility): Likewise.
11454
11455 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11456
11457         * config/arm/arm1020e.md (1020call_op): Reduce reservation
11458         duration.
11459         (v10_fdivs): Likewise.
11460         (v10_fdivd): Likewise.
11461
11462 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11463
11464         PR driver/70132
11465         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
11466         to not call fclose twice on file.
11467
11468 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR tree-optimization/70354
11471         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11472         oprnd0 is wider than oprnd1 and there is a cast from the wider
11473         type to oprnd1, mask it with the mask of the narrower type.
11474
11475         PR target/70321
11476         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
11477         Optimize TARGET_STV splitters, if high or low word of last argument
11478         is 0 or -1.
11479
11480 2016-03-22  Jeff Law  <law@redhat.com>
11481
11482         PR target/70232
11483         tree-ssa-threadbackward.c
11484         (fsm_find_control_statement_thread_paths): Correctly distinguish
11485         between old style jump threads vs FSM jump threads.
11486
11487 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11488
11489         PR target/70302
11490         * config/i386/i386.c (scalar_chain::convert_op): Support
11491         uninitialized register usage case.
11492
11493 2016-03-22  Richard Biener  <rguenther@suse.de>
11494
11495         PR middle-end/70251
11496         * genmatch.c (gen_transform): Adjust last parameter to a three-state
11497         int...
11498         (capture::gen_transform): ... to change behavior when substituting
11499         a condition into cond or not-cond expr context.
11500         (dt_simplify::gen_1): Adjust.
11501         * gimple-match-head.c: Include gimplify.h for unshare_expr.
11502         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
11503         last change and instead change to
11504         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
11505         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11506
11507 2016-03-22  Anthony Green  <green@moxielogic.com>
11508
11509         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
11510         issue for moxiebox targets.
11511         (CC1PLUS_SPEC): Ditto.
11512
11513 2016-03-22  Richard Biener  <rguenther@suse.de>
11514
11515         PR middle-end/70333
11516         * fold-const.c (extract_muldiv_1): Properly perform multiplication
11517         in the wide type.
11518
11519 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11520
11521         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
11522
11523 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11524
11525         PR target/70325
11526         * config/i386/i386.c (def_builtin): Handle
11527         OPTION_MASK_ISA_AVX512VL to be and-ed with other
11528         bits.
11529         (const struct builtin_description bdesc_special_args[]):
11530         Remove duplicate ISA bits.
11531
11532 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
11533
11534         PR target/70329
11535         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
11536         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
11537         in a way that works also for AVX512BW.
11538
11539         PR target/70300
11540         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
11541         instead of source if operands[1] is xmm16 and above and
11542         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
11543         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
11544
11545         PR c++/70295
11546         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
11547         on assign if (*from_p) is a comparison, set it to
11548         TREE_NO_WARNING (*from_p).
11549
11550 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11551
11552         PR middle-end/70326
11553         * lra.c (restore_scratches): Ignore deleted insns.
11554
11555 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
11556             Jakub Jelinek  <jakub@redhat.com>
11557
11558         PR tree-optimization/70317
11559         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
11560         to HONOR_NANS.
11561
11562 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
11563
11564         PR target/70327
11565         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
11566         of ix86_expand_move.
11567         (movoi): Ditto.
11568         (movti): Use general_operand for operand 1 predicate.
11569
11570 2016-03-21  Martin Liska  <mliska@suse.cz>
11571
11572         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
11573         insns.
11574         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
11575
11576 2016-03-21  Martin Liska  <mliska@suse.cz>
11577
11578         PR ipa/70306
11579         * ipa-icf.c (sem_function::parse): Skip static
11580         constructors and destructors.
11581
11582 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11583
11584         PR target/70296
11585         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
11586         function-like macro, peek following token(s) if it is followed
11587         by CPP_OPEN_PAREN token with optional padding in between, and
11588         if not, don't treat it like a macro.
11589
11590 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11591             Alexander Monakov  <amonakov@ispras.ru>
11592
11593         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
11594         for the stabs debug format.
11595
11596 2016-03-21  Richard Biener  <rguenther@suse.de>
11597
11598         PR tree-optimization/70310
11599         * tree-vect-generic.c (expand_vector_condition): Fold the built
11600         condition.
11601
11602 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11603
11604         PR target/70293
11605         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
11606         Block third alternative for AVX-512VL target,
11607
11608 2016-03-21  Martin Liska  <mliska@suse.cz>
11609
11610         PR hsa/70234
11611         * hsa-brig.c (emit_function_directives): Mark unemitted
11612         global variables for emission.
11613         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
11614         (get_symbol_for_decl): Likewise.
11615         * hsa.h (struct hsa_symbol): New flag.
11616
11617 2016-03-21  Richard Biener  <rguenther@suse.de>
11618
11619         PR tree-optimization/70288
11620         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
11621         we do not estimate unsimplified all-constant conditionals or
11622         switches as optimized away.
11623
11624 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
11625
11626         PR rtl-optimization/69102
11627         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
11628         when we have a readonly dependency context.
11629
11630 2016-03-18  Jeff Law  <law@redhat.com>
11631
11632         PR rtl-optimization/70263
11633         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
11634         (update_equiv_regs): When trying to move a store to after the insn
11635         that sets the source of the store, make sure the store occurs after
11636         the insn that sets the source of the store.  When successful note
11637         the REG_EQUIV note created in the dump file.
11638
11639 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
11640             Bernd Schmidt  <bschmidt@redhat.com>
11641
11642         * doc/extend.texi: Document more potential problems with basic asms.
11643
11644 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
11645
11646         PR rtl-optimization/70278
11647         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
11648         VOIDmode.
11649
11650 2016-03-18  Jason Merrill  <jason@redhat.com>
11651
11652         * calls.c (load_register_parameters): Fix zero size sibcall logic.
11653
11654 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11655
11656         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
11657         values to 128b regs.
11658
11659 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11660
11661         PR tree-optimization/70252
11662         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
11663         boolean vector has a proper number of elements.
11664         (supportable_narrowing_operation): Likewise.
11665
11666 2016-03-18  Tom de Vries  <tom@codesourcery.com>
11667
11668         PR ipa/70269
11669         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
11670
11671 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
11672
11673         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
11674         instead of replace_rtx for DEBUG_INSNs.
11675
11676 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11677
11678         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
11679         load type reservations.
11680
11681 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
11682
11683         PR target/70188
11684         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
11685         define_constraint for "Q" and "T" constraints.
11686
11687 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
11688
11689         Tweak the pipeline model for Exynos M1
11690
11691         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
11692         model.
11693
11694 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
11695
11696         PR c/70264
11697         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
11698         where one or both locations aren't within a line_map.
11699
11700 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11701
11702         PR driver/70192
11703         * opts.c (finish_options): Don't set flag_pie to the default if
11704         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
11705         if it is -1.
11706
11707 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
11708
11709         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
11710         true as ALL_REGS argument to replace_rtx.
11711
11712 2016-03-17  Richard Biener  <rguenther@suse.de>
11713
11714         PR debug/70271
11715         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
11716         last.
11717
11718 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11719
11720         PR target/70245
11721         * rtl.h (replace_rtx): Add ALL_REGS argument.
11722         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
11723         equality and assert mode is the same, instead of just rtx pointer
11724         equality.
11725         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
11726         true as ALL_REGS argument to replace_rtx.
11727
11728 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
11729
11730         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
11731         for boolean vector with vector mode only.
11732         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11733
11734 2016-03-17  Nick Clifton  <nickc@redhat.com>
11735
11736         PR target/70162
11737         * config/rx/rx.c (rx_print_integer): Print negative constants in
11738         decimal.
11739
11740 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11741
11742         PR target/70261
11743         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
11744
11745 2016-03-16  Richard Henderson  <rth@redhat.com>
11746             Richard Biener  <rguenth@suse.de>
11747
11748         PR middle-end/70240
11749         PR middle-end/68215
11750         PR tree-opt/68714
11751         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
11752         first operand as is_gimple_condexpr.
11753
11754         PR middle-end/70240
11755         PR middle-end/68215
11756         Revert r231575
11757         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
11758         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
11759         Do not gimplify the result.
11760         (do_unop): Adjust call to tree_vec_extract.
11761         (do_binop): Likewise.
11762         (do_compare): Likewise.
11763         (do_plus_minus): Likewise.
11764         (do_negate): Likewise.
11765         (expand_vector_condition): Likewise.
11766         (do_cond): Likewise.
11767
11768 2016-03-16  Richard Henderson  <rth@redhat.com>
11769
11770         PR target/70048
11771         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
11772         (aarch64_classify_address): Use it.
11773         (aarch64_legitimize_address): Force all subexpressions of PLUS
11774         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
11775
11776 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
11777             Richard Biener  <rguenth@suse.de>
11778
11779         PR target/70245
11780         * rtlanal.c (replace_rtx): For REG, if from is a REG,
11781         return to even if only REGNO is equal, and assert
11782         mode is the same.
11783
11784 2016-03-11  Jeff Law  <law@redhat.com>
11785
11786         PR rtl-optimization/70224
11787         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
11788
11789 2016-03-16  Richard Henderson  <rth@redhat.com>
11790
11791         PR middle-end/70199
11792         * function.h (struct function): Add has_forced_label_in_static.
11793         * gimplify.c (force_labels_r): Set it.
11794         * lto-streamer-in.c (input_struct_function_base): Read it.
11795         * lto-streamer-out.c (output_struct_function_base): Write it.
11796         * tree-inline.c (has_label_address_in_static_1): Remove.
11797         (copy_forbidden): Remove fndecl parameter; test
11798         has_forced_label_in_static.
11799         (inline_forbidden_p): Update call to copy_forbidden.
11800         (tree_versionable_function_p): Likewise.
11801         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
11802         (chkp_versioning): Likewise.
11803         * tree-inline.h (copy_forbidden): Update decl.
11804
11805 2016-03-16  Marek Polacek  <polacek@redhat.com>
11806
11807         PR c/70093
11808         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
11809         function being thunked if the result type doesn't have fixed size.
11810         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
11811         doesn't have fixed size.
11812
11813 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
11814
11815         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
11816         reporting malformed loop nest.
11817
11818 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11819
11820         PR lto/70187
11821         * ipa-devirt.c (possible_polymorphic_call_targets): Move
11822         nodes.length () == 1 test to before first nodes[0] access.
11823
11824 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11825
11826         PR tree-optimization/68715
11827         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
11828         single_pred_p test.
11829
11830 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11831
11832         PR tree-optimization/68809
11833         * graphite-scop-detection.c (same_close_phi_node): Test if result types
11834         are the same.
11835
11836 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
11837             Sandra Loosemore  <sandra@codesourcery.com>
11838
11839         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
11840         on leaf attribute. Mention ELF interposition problems.
11841
11842 2016-03-16  Alan Modra  <amodra@gmail.com>
11843
11844         PR rtl-optimization/69195
11845         PR rtl-optimization/47992
11846         * ira.c (indirect_jump_optimize): Ignore artificial defs.
11847         Add comments.
11848
11849 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11850
11851         PR bootstrap/69513
11852         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
11853
11854 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11855
11856         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
11857
11858 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
11859
11860         PR rtl-optimization/70222
11861         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
11862         optimization if mode is different from result_mode, queue up masking
11863         of the result in outer_op.  Formatting fix.
11864
11865         PR middle-end/70239
11866         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
11867         of safe_grow.
11868
11869 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11870
11871         PR rtl-optimization/69032
11872         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
11873         looping backwards over basic block insns.
11874
11875 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11876
11877         PR target/66660
11878         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
11879         to non-speculative when propagating trap bits.
11880
11881 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11882
11883         PR rtl-optimization/63384
11884         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
11885         DEBUG_INSN_P insns.
11886
11887 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11888
11889         PR target/64411
11890         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
11891         factored out from ...
11892         (sched_analyze_insn): ... here.
11893         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
11894         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
11895         get_implicit_reg_pending_clobbers in it.
11896         (setup_id_reg_sets): Use setup_id_implicit_regs.
11897         (deps_init_id): Ditto.
11898
11899 2016-03-15  Tom de Vries  <tom@codesourcery.com>
11900
11901         PR ipa/70161
11902         * cgraph.c (cgraph_node::get_body): Save, reset and restore
11903         dump_file_name.
11904         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
11905         execute_function_dump.
11906         (execute_one_pass): Don't dump function if it will be dumped after ipa
11907         transform.
11908
11909 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11910
11911         * genrecog.c (match_pattern_2): If pred is NULL don't call
11912         safe_predicate_mode on it.
11913
11914 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
11915
11916         PR middle-end/70219
11917         * lra-constraints.c (delete_move_and_clobber): Change assertion
11918         to also allow dregno == 0.
11919
11920 2016-03-14  Richard Henderson  <rth@redhat.com>
11921
11922         PR tree-opt/68714
11923         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
11924         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
11925         (reassociate_bb): Use optimize_vec_cond_expr; avoid
11926         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
11927         on vectors.
11928
11929 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11930
11931         PR target/70083
11932         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
11933         regs.
11934         (lra_create_live_ranges_1): initialize hard register biggest_mode to
11935         VOIDmode.
11936         * lra-constraints.c (split_reg): For hard regs, try to find the
11937         biggest single-register mode used in the function.
11938
11939 2016-03-14  Richard Biener  <rguenther@suse.de>
11940
11941         PR tree-optimization/56365
11942         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
11943         constants to compare against.
11944
11945 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
11946
11947         PR target/70098
11948         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11949         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
11950         (define_split for the GPR case): Use int_reg_operand instead of
11951         gpc_reg_operand for the output.
11952
11953 2016-03-14  Tom de Vries  <tom@codesourcery.com>
11954
11955         PR tree-optimization/70045
11956         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
11957         create_empty_if_region_on_edge argument.
11958
11959 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
11960
11961         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
11962         (STACK_CHECK_PROTECT): Likewise.
11963         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11964         (STACK_CHECK_PROTECT): Likewise.
11965         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11966         (STACK_CHECK_PROTECT): Likewise.
11967         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
11968         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11969         (STACK_CHECK_PROTECT): Likewise.
11970
11971 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
11972
11973         PR rtl-optimization/69307
11974         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
11975         registers in modes that span more than one register.
11976
11977 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
11978
11979         PR target/69614
11980         * lra-constraints.c (delete_move_and_clobber): New.
11981         (remove_inheritance_pseudos): Use it.
11982
11983 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11984
11985         PR ada/70017
11986         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
11987         the libcall is LCT_THROW.
11988         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
11989         for the checking routine.
11990
11991 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11992
11993         PR target/70131
11994         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
11995         optimization if we have direct move.
11996         (roundu32<mode>2_fprs): Likewise.
11997
11998 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
11999
12000         PR target/70123
12001         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
12002         be rematerialized.
12003         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
12004         Arguments swapped.  All callers changed.  Take reg_renumber into
12005         account, and Calculate and compare register ranges for hard regs.
12006
12007 2016-03-11  Jeff Law  <law@redhat.com>
12008
12009         PR tree-optimization/70190
12010         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12011         Handle cases where we can not extract the taken edge, even though we
12012         found a constant value.
12013
12014         PR tree-optimization/64058
12015         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
12016         (num_coalesce_pairs): Move up earlier in file.
12017         (find_coalesce_pair): Initialize the INDEX field for each pair
12018         discovered.
12019         (compare_pairs): No longer sort on the elements in each pair.
12020         Instead break ties with the index of the coalesce pair.
12021
12022 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12023
12024         PR target/70002
12025         * config/aarch64/aarch64-protos.h
12026         (aarch64_save_restore_target_globals): New prototype.
12027         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
12028         Call the above when popping pragma.
12029         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
12030         New function.
12031         (aarch64_set_current_function): Rewrite using the above.
12032
12033 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12034
12035         PR tree-optimization/70177
12036         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
12037         (extract_ops_from_tree): ... this.  In the 2 argument
12038         overload remove _1 suffix.
12039         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
12040         (extract_ops_from_tree): ... this.
12041         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
12042         Adjust callers.
12043         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12044         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
12045         extract_ops_from_tree instead of 2 operand one.
12046
12047 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
12048
12049         PR tree-optimization/70013
12050         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
12051         for constant-pool entries.
12052
12053 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12054
12055         PR rtl-optimization/70174
12056         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
12057         followed by gen_lowpart on force_reg instead of just gen_lowpart.
12058
12059         PR tree-optimization/70169
12060         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
12061         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
12062         for unknown codes.
12063
12064 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
12065             Jakub Jelinek  <jakub@redhat.com>
12066
12067         PR target/70160
12068         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
12069         of uninitialized values.
12070
12071 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12072
12073         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
12074         define_expand.
12075         ("*trunctddd2"): New pattern definition.
12076         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
12077         TD->DD truncation.
12078
12079 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12080
12081         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
12082         definitions for BFP and DFP rounding modes.
12083         ("fixuns_truncdddi2", "fixuns_trunctddi2")
12084         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
12085         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
12086         ("fix_trunctf<mode>2"): Use the new constants instead of magic
12087         numbers.
12088
12089 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12090
12091         * config/s390/constraints.md: Adjust comment.
12092         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
12093         s390_decompose_addrstyle_without_index.
12094         * config/s390/predicates.md (shift_count_or_setmem_operand):
12095         Rename to setmem_operand.
12096         * config/s390/s390-protos.h
12097         (s390_decompose_shift_count): Rename to
12098         s390_decompose_addrstyle_without_index.
12099         * config/s390/s390.c (s390_decompose_shift_count)
12100         (s390_mem_constraint, print_shift_count_operand)
12101         (print_operand_address, print_operand): Rename
12102         s390_decompose_shift_count to
12103         s390_decompose_addrstyle_without_index and rename
12104         print_shift_count_operand to print_addrstyle_operand troughout the
12105         file.
12106         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
12107         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
12108         Rename shift_count_or_setmem_operand to setmem_operand.
12109         * config/s390/vx-builtins.md ("vec_insert<mode>")
12110         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
12111         nonmemory_operand.
12112
12113 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12114
12115         PR target/70168
12116         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12117         Handle overlapping retval and newval.
12118
12119 2016-03-10  Nick Clifton  <nickc@redhat.com>
12120
12121         PR target/7044
12122         * config/aarch64/aarch64.c
12123         (aarch64_override_options_after_change_1): When forcing
12124         flag_omit_frame_pointer to be true, use a special value that can
12125         be detected if this function is called again, thus preventing
12126         flag_omit_leaf_frame_pointer from being forced to be false.
12127
12128 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12129
12130         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12131         Set x_flag_omit_leaf_frame_pointer when handling
12132         -momit-leaf-frame-pointer.
12133
12134 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12135
12136         PR lto/69589
12137         * cgraph.c (cgraph_node::dump): Dump split_part and
12138         indirect_call_target.
12139         * cgraph.h (cgraph_node): Add indirect_call_target flag.
12140         * ipa.c (has_addr_references_p): Cleanup.
12141         (is_indirect_call_target_p): New.
12142         (walk_polymorphic_call_targets): Do not mark virtuals that may be
12143         called indirectly as local.
12144         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12145
12146 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12147
12148         PR ipa/69630
12149         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12150         on cxa_pure_virtual.
12151
12152 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12153
12154         PR lto/69589
12155         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12156
12157 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12158
12159         PR lto/69589
12160         * tree.c (need_assembler_name_p): Only record main variant type names.
12161
12162 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12163
12164         PR target/70113.
12165         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12166         Always define to 0 or 1.
12167         (TARGET_FIX_ERR_A53_843419): New macro.
12168         * config/aarch64/aarch64-elf-raw.h
12169         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12170         * config/aarch64/aarch64-linux.h: Likewise.
12171         * config/aarch64/aarch64.c
12172         (aarch64_override_options_after_change_1): Do not default
12173         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12174         843419 is on.
12175         (aarch64_attributes): Handle fix-cortex-a53-843419.
12176         (aarch64_can_inline_p): Likewise.
12177         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12178
12179 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
12180         Jakub Jelinek <jakub@redhat.com>
12181
12182         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12183         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12184         DECL_COMMONS if flag_unconstrained_commons is set.
12185         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12186         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12187         (funconstrained-commons): Document.
12188
12189 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12190
12191         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12192         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12193
12194 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
12195
12196         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12197         has a proper number of elements.
12198
12199 2016-03-10  Alan Modra  <amodra@gmail.com>
12200
12201         PR rtl-optimization/69195
12202         PR rtl-optimization/47992
12203         * ira.c (recorded_label_ref): Delete.
12204         (update_equiv_regs): Return void.
12205         (indirect_jump_optimize): New function.
12206         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12207         before regstat_compute_ri.  Don't rebuild_jump_labels here.
12208         Delete update_regstat.
12209
12210 2016-03-10  Richard Biener  <rguenther@suse.de>
12211
12212         PR tree-optimization/70128
12213         * tree-ssa-structalias.c (set_uids_in_ptset): Set
12214         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12215
12216 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12217
12218         PR tree-optimization/70152
12219         * tree-sra.c (replace_removed_params_ssa_names): Copy over
12220         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12221
12222         PR target/70086
12223         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12224         instead of gen_sse2_loadlpd.
12225         * config/i386/sse.md (*vec_concatv2df): Rename to...
12226         (vec_concatv2df): ... this.
12227
12228         PR tree-optimization/70127
12229         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12230
12231 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12232
12233         PR c/68473
12234         PR c++/70105
12235         * diagnostic-show-locus.c (compatible_locations_p): New function.
12236         (layout::layout): Sanitize ranges using compatible_locations_p.
12237
12238 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12239
12240         PR c/68473
12241         PR c++/70105
12242         * diagnostic-show-locus.c (layout_range::layout_range): Replace
12243         location_range param with three const expanded_locations * and a
12244         bool.
12245         (layout::layout): Replace call to
12246         rich_location::lazily_expand_location with get_expanded_location.
12247         Extract the range and perform location expansion here, passing
12248         the results to the layout_range ctor.
12249         * diagnostic.c (source_range::debug): Delete.
12250         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12251         of rich_location::get_expanded_location.
12252         * gcc-rich-location.c (get_range_for_expr): Delete.
12253         (gcc_rich_location::add_expr): Reimplement to avoid the
12254         rich_location::add_range overload that took a location_range,
12255         passing a location_t instead.
12256
12257 2016-03-09  Richard Biener  <rguenther@suse.de>
12258         Jakub Jelinek  <jakub@redhat.com>
12259
12260         PR tree-optimization/70138
12261         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12262         Also skip vect_double_reduction_def.
12263
12264 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12265
12266         PR target/70049
12267         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
12268         if the operand is "m".
12269
12270 2016-03-09  Nathan Sidwell  <nathan@acm.org>
12271
12272         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
12273
12274 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12275
12276         * config/i386/i386.c (processor_target_table): Fix cost table
12277         intialization order for znver1.
12278
12279 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12280
12281         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
12282         - becuase -> because.
12283         * ipa-reference.c (ignore_module_statics): Likewise.
12284         * cgraph.c (cgraph_node::get_body): Likewise.
12285         * ipa-inline.c (early_inliner): Likewise.
12286         * ipa-devirt.c (types_same_for_odr): Likewise.
12287         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
12288         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
12289
12290 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12291
12292         * tree-ssa-math-opts.c: Fix typo in comment.
12293
12294 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12295
12296         PR target/70110
12297         * config/i386/i386.c (scalar_chain::make_vector_copies,
12298         scalar_chain::convert_reg): Call end_sequence in between
12299         get_insns and emit_conversion_insns rather than after both
12300         calls.
12301
12302 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12303
12304         PR target/70064
12305         * config/i386/i386.h (machine_function): Add
12306         pc_thunk_call_expanded flag.
12307         (ix86_pc_thunk_call_expanded): New define.
12308         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12309         (*set_got): Rename insn pattern from set_got.
12310         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12311         * config/i386/i386.c (ix86_compute_frame_layout): Use
12312         ix86_pc_thunk_call_expanded to prevent red-zone.
12313
12314 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12315
12316         * hsa.h (hsa_get_ctor_statements): Declare.
12317         (hsa_get_dtor_statements): Likewise.
12318         (hsa_get_kernel_dispatch_type): Likewise.
12319         * hsa.c (hsa_get_ctor_statements): New function.
12320         (hsa_get_dtor_statements): Likewise.
12321         (hsa_get_kernel_dispatch_type): Likewise.
12322         * hsa-brig.c (hsa_cdtor_statements): Removed.
12323         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12324         hsa_get_dtor_statements.
12325         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12326         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12327
12328 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12329
12330         * config/arm/arm-cores.def (cortex-r8): New.
12331         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12332         * config/arm/arm-tune.md: Likewise.
12333         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12334
12335 2016-03-07  Martin Sebor  <msebor@redhat.com>
12336
12337         PR rtl-optimization/19705
12338         * doc/invoke.texi (Options That Control Optimization): Clarify
12339         -fno-branch-count-reg.
12340
12341 2016-02-26  Richard Biener  <rguenther@suse.de>
12342             Jeff Law  <law@redhat.com>
12343
12344         PR tree-optimization/69740
12345         * cfghooks.c (remove_edge): Request loop fixups if we delete
12346         an edge that might turn an irreducible loop into a natural
12347         loop.
12348         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12349         Move after definition of loops_state_clear.
12350
12351 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12352
12353         PR rtl-optimization/69052
12354         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12355         to CONST_WIDE_INT.
12356
12357 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12358
12359         PR tree-optimization/70116
12360         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12361         is_tm_ending stmts and ubsan/asan internal functions.
12362         (find_duplicate): Use it.  Don't test is_tm_ending here.
12363
12364 2016-03-07  Richard Biener  <rguenther@suse.de>
12365
12366         PR tree-optimization/70115
12367         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12368         (propagate_constants_for_unrolling): Use replace_uses_by.
12369
12370 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12371
12372         PR middle-end/69916
12373         * omp-low.c (struct oacc_loop): Add ifns.
12374         (new_oacc_loop_raw): Initialize it.
12375         (finish_oacc_loop): Clear mask & flags if no ifns.
12376         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12377         (oacc_loop_xform_loop): Add ifns arg & adjust.
12378         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12379
12380 2016-03-07  Richard Henderson  <rth@redhat.com>
12381
12382         PR rtl-opt/70061
12383         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12384         (insert_value_copy_on_edge): Likewise.
12385
12386 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12387
12388         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12389
12390 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12391
12392         PR target/62281
12393         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12394
12395 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12396
12397         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12398
12399 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12400
12401         Fix sseimul type attribute.
12402         * config/i386/znver1.md
12403         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12404         znver1_sseimul_avx256_load) : Fix the type attribute.
12405         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12406         pipe usage and latency.
12407
12408 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12409
12410         PR c++/70084
12411         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12412         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12413         to the right type.
12414
12415 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12416
12417         PR c/69973
12418         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12419
12420         PR rtl-optimization/69941
12421         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12422         the reg share its mode.
12423
12424 2016-03-04  Jeff Law  <law@redhat.com>
12425
12426         PR tree-optimization/69196
12427         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12428         If the both SSA_NAMEs are anonymous, then consider them unassociated
12429         and include the PHI in the statement count.
12430
12431 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12432
12433         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12434         construct in oacc routine.  Check for oacc region in oacc routine.
12435
12436 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12437
12438         PR target/70062
12439         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
12440         2016-02-22 changes, instead don't recurse if RECUR is already true.
12441         Don't change *dynamic_check if RECUR.  Adjust recursive caller
12442         to pass true to the new argument.
12443         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
12444
12445         PR target/70059
12446         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12447         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
12448         fixes.
12449         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
12450
12451 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12452
12453         PR rtl-optimization/57676
12454         * lra-assigns.c (lra_assign): Guard test for maximum iterations
12455         with flag_checking.
12456
12457 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
12458
12459         * tree-vect-patterns.c (search_type_for_mask): Handle
12460         comparison of booleans.
12461
12462 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12463
12464         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
12465         Fix @xref usage.
12466
12467         PR debug/69947
12468         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
12469         all other ops that have dw_val_class_die_ref operands,
12470         and DW_OP_GNU_entry_value.
12471
12472 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12473
12474         PR rtl-optimization/69904
12475         * config/arm/arm.c (arm_cannot_copy_insn_p):
12476         Return true for load-exclusive instructions.
12477
12478 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
12479
12480         PR target/70021
12481         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
12482         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
12483         the pattern no matter if it is used just by non-pattern, pattern
12484         or mix thereof.
12485         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
12486         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12487         oprnd1 def_stmt is in pattern, don't look through it.
12488
12489 2016-03-03  Marek Polacek  <polacek@redhat.com>
12490
12491         PR middle-end/70050
12492         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
12493
12494 2016-03-03  Martin Liska  <mliska@suse.cz>
12495
12496         PR tree-optimization/70043
12497         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
12498         previous statement if we see a debug statement.
12499
12500 2016-03-03  Richard Biener  <rguenther@suse.de>
12501
12502         PR tree-optimization/55936
12503         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
12504         parameter and guard unsafe equivalence use.
12505         (vrp_evaluate_conditional_warnv_with_ops): Always use
12506         safe equivalences but not via the quadratic compare_names
12507         helper.
12508
12509 2016-03-03  Michael Collison  <michael.collison@linaro.org>
12510
12511         PR target/70014
12512         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
12513         for operand 1 to s_register_operand. Change predicate for operand
12514         2 to arm_not_immediate_operand.
12515
12516 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
12517
12518         * doc/tm.texi: Regenerated.
12519
12520 2016-03-02  Richard Henderson  <rth@redhat.com>
12521
12522         PR rtl-opt/67145
12523         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
12524         simplification when all args are positive non-fixed registers.
12525
12526 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12527
12528         * target.def (lra_p): Specify that new ports should use LRA.
12529
12530 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12531
12532         PR libgomp/69555
12533         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
12534         gimplify_type_sizes the type they refer to.
12535         (omp_notice_variable): Handle reference vars to VLAs.
12536         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
12537         reference to VLA decls in the second pass instead of first pass.
12538
12539 2016-03-02  Tom de Vries  <tom@codesourcery.com>
12540
12541         PR tree-optimization/68659
12542         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
12543         new_expr == NULL_TREE.
12544         (get_new_name): Handle ADDR_EXPR.
12545
12546 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
12547
12548         PR rtl-optimization/69052
12549         * loop-invariant.c (canonicalize_address): New function.
12550         (inv_can_prop_to_addr_use): Check validity of address expression
12551         which is canonicalized by above function.
12552
12553 2016-03-02  Alan Modra  <amodra@gmail.com>
12554
12555         PR ipa/69990
12556         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
12557         larger alignment.
12558
12559 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12560
12561         PR target/70028
12562         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
12563         (*movhi_internal): Put mask moves from and to memory separately
12564         from moves from/to GPRs.
12565
12566 2016-03-02  Richard Biener  <rguenther@suse.de>
12567
12568         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
12569         GENERIC expressions in GIMPLE.
12570
12571 2016-03-02  Richard Biener  <rguenther@suse.de>
12572
12573         * config/i386/i386.c (type_natural_mode): Fix typo.
12574
12575 2016-03-02  Nick Clifton  <nickc@redhat.com>
12576
12577         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
12578
12579 2016-03-02  Richard Biener  <rguenther@suse.de>
12580             Uros Bizjak  <ubizjak@gmail.com>
12581
12582         PR target/67278
12583         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
12584
12585 2016-03-02  Richard Biener  <rguenther@suse.de>
12586
12587         PR middle-end/67278
12588         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
12589
12590 2016-03-02  Marek Polacek  <polacek@redhat.com>
12591
12592         PR c/67854
12593         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
12594         "is promoted to" warning.
12595
12596 2016-03-01  DJ Delorie  <dj@redhat.com>
12597
12598         * config.gcc: Deprecate mep-*.
12599
12600 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
12601
12602         PR middle-end/70025
12603         * lra-constraints.c (regno_val_use_in): New.
12604         (match_reload): Use it instead of regno_use_in.
12605
12606 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12607
12608         PR rtl-optimization/70007
12609         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
12610         references present in REG_EQUAL notes attached to non-SET patterns.
12611
12612 2016-03-01  Jeff Law  <law@redhat.com>
12613
12614         PR tree-optimization/69196
12615         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12616         Appropriately clamp the number of statements to copy when the
12617         thread path does not traverse a loop backedge.
12618
12619         PR tree-optimization/69196
12620         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12621         Do count some PHIs in the thread path against the insn count.  Decrease
12622         final statement count by one as the control statement in the last
12623         block will get removed.  Remove special cased code for handling PHIs
12624         in the last block.
12625
12626 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
12627
12628         PR target/70027
12629         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
12630         asm dialect alternatives to explicit GOTPCREL calls.
12631
12632 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12633
12634         PR ada/70017
12635         * ira.c (do_reload): Issue warning for generic stack checking here...
12636         * reload1.c (reload): ...instead of here and streamline it.
12637
12638 2016-03-01  Nick Clifton  <nickc@redhat.com>
12639
12640         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
12641
12642 2016-03-01  Richard Biener  <rguenther@suse.de>
12643
12644         PR tree-optimization/69983
12645         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
12646         types and fall back to operand_equal_p.
12647
12648 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12649
12650         Revert
12651         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12652
12653         * config/s390/constraints.md ("jm8"): New constraint.
12654         * config/s390/predicates.md ("const_int_8bitset_operand"): New
12655         predicate.
12656         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
12657         into ...
12658         ("*setmem_long<setmem_and>"): New pattern.
12659         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
12660         into ...
12661         ("*setmem_long_31z<setmem_and>"): New pattern.
12662         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
12663         New substitution rules with the required attributes.
12664
12665
12666 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12667
12668         Revert
12669         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12670
12671         * gensupport.c (process_substs_on_one_elem): Split loop to
12672         complete mark_operands_used_in_match_dup on all expressions in the
12673         vector first.
12674         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12675         and remove function.
12676
12677 2016-03-01  Richard Biener  <rguenther@suse.de>
12678
12679         PR middle-end/70022
12680         * fold-const.c (fold_indirect_ref_1): Fix range checking for
12681         vector BIT_FIELD_REF extract.
12682
12683 2016-03-01  Richard Biener  <rguenther@suse.de>
12684
12685         PR tree-optimization/69994
12686         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
12687
12688 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12689
12690         PR tree-optimization/69956
12691         * tree-vect-stmts.c (supportable_widening_operation): Support
12692         multi-step conversion of boolean vectors.
12693         (supportable_narrowing_operation): Likewise.
12694
12695 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12696
12697         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
12698         anymore.
12699
12700 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12701
12702         * config/s390/subst.md (DSI_VI): New mode iterator.
12703         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
12704         * config/s390/vector.md ("vec_set<mode>"): Move expander before
12705         the insn definition.
12706         ("*vec_set<mode>"): Change predicate and add alternative to
12707         support only either register or const_int operands as element
12708         selector.
12709         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
12710         operands.
12711         ("vec_extract<mode>"): New expander.
12712         ("*vec_extract<mode>"): New insn definition supporting reg and
12713         const_int element selectors.
12714         ("*vec_extract<mode>_plus"): New insn definition supporting
12715         reg+const_int element selectors.
12716         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
12717         following expander+insn definition.
12718         ("<vec_shifts_name><mode>3"): New expander.
12719         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
12720
12721 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12722
12723         * config/s390/s390.md ("*tabort_1"): Change predicate to
12724         nonmemory_operand.  Add a second alternative to cover
12725         register as well as const int operands.
12726         ("*tabort_1_plus"): New pattern definition.
12727
12728 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12729
12730         * config/s390/s390.md ("*ashrdi3_cc_31")
12731         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
12732         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
12733         Merge insn definitions into ...
12734         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12735         New pattern definition.
12736         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
12737         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
12738         ("*ashr<mode>3_and"): Merge insn definitions into ...
12739         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12740         New pattern definition.
12741         * config/s390/subst.md ("addr_style_op_cc_subst")
12742         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
12743         substitutions patterns plus attributes.
12744         Add ashiftrt to SUBST iterator.
12745
12746 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12747
12748         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
12749         op2 to nonmemory_operand.
12750         ("*<shift>di3_31", "*<shift>di3_31_and"):
12751         Merge into single pattern definition ...
12752         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
12753         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
12754         pattern definition ...
12755         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
12756         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
12757         iterator.
12758
12759 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12760
12761         * config/s390/predicates.md (const_int_6bitset_operand): New
12762         predicate.
12763         * config/s390/s390.md: Include subst.md.
12764         ("rotl<mode>3"): New expander.
12765         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
12766         ...
12767         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
12768         * config/s390/subst.md: New file.
12769
12770 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12771
12772         * config/s390/s390.md ("op_type", "atype", "length" attributes):
12773         Remove RRR type.  It doesn't really exist.
12774         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
12775         attributes.
12776         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
12777         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
12778         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
12779         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
12780         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
12781         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
12782         `enabled' attribute.
12783
12784 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12785
12786         * gensupport.c (process_substs_on_one_elem): Split loop to
12787         complete mark_operands_used_in_match_dup on all expressions in the
12788         vector first.
12789         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12790         and remove function.
12791
12792 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12793
12794         PR target/69706
12795         * config/sparc/sparc.c (NWORDS_UP): Rename to...
12796         (CEIL_NWORDS): ...this.  Use CEIL macro.
12797         (compute_fp_layout): Adjust to above renaming.
12798         (function_arg_union_value): Likewise.
12799         (sparc_arg_partial_bytes): Likewise.
12800         (sparc_function_arg_advance): Likewise.
12801
12802 2016-02-29  Jeff Law  <law@redhat.com>
12803
12804         PR tree-optimization/70005
12805         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
12806         where an object with a boolean range is compared against a value
12807         outside [0..1].
12808
12809         PR tree-optimization/69999
12810         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
12811         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
12812         loop cleanups.
12813
12814 2016-02-29  Richard Biener  <rguenther@suse.de>
12815
12816         PR tree-optimization/69994
12817         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
12818         (get_unary_op): Look through nop conversions.
12819         (ops_equal_values_p): New function, look for equality diregarding
12820         nop conversions.
12821         (eliminate_plus_minus_pair): Use ops_equal_values_p
12822         (repropagate_negates): Do not use get_unary_op here.
12823
12824 2016-02-29  Martin Liska  <mliska@suse.cz>
12825
12826         * system.h: Poison ENABLE_CHECKING macro.
12827
12828 2016-02-29  Martin Liska  <mliska@suse.cz>
12829
12830         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
12831         is presented in dump flags.
12832         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12833         (hsa_regalloc): Likewise.
12834
12835 2016-02-19  Richard Biener  <rguenther@suse.de>
12836
12837         PR tree-optimization/69980
12838         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
12839         permutation of those we need to keep.
12840
12841 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12842
12843         PR target/69706
12844         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
12845         (NWORDS_UP): ...this
12846         (init_cumulative_args): Minor tweaks.
12847         (sparc_promote_function_mode): Likewise.
12848         (scan_record_type): Delete.
12849         (traverse_record_type): New function template.
12850         (classify_data_t): New structure type.
12851         (classify_registers): New inline function.
12852         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
12853         exhausted.  Instantiate traverse_record_type on classify_registers and
12854         deal with the case of a structure passed in slot #15 with no FP field
12855         in the first word.
12856         (assign_data_t): New structure type.
12857         (compute_int_layout): New static function.
12858         (compute_fp_layout): Likewise.
12859         (count_registers): New inline function.
12860         (assign_int_registers): New static function.
12861         (assign_fp_registers): Likewise.
12862         (assign_registers): New inline function.
12863         (function_arg_record_value_1): Delete.
12864         (function_arg_record_value_2): Likewise.
12865         (function_arg_record_value_3): Likewise.
12866         (function_arg_record_value): Adjust to above changes.  Instantiate
12867         traverse_record_type on count_registers to first count the number of
12868         registers to be used and then on assign_registers to assign them.
12869         (function_arg_union_value): Adjust to above renaming.
12870         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
12871         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
12872         case of a structure passed in slot #15
12873         (sparc_function_arg_advance): Likewise.
12874         (function_arg_padding): Minor tweak.
12875
12876 2016-02-29  Richard Biener  <rguenther@suse.de>
12877
12878         PR tree-optimization/69720
12879         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
12880         the adjustment_def path for possibly vectorized defs.
12881         (vect_create_epilog_for_reduction): Handle vectorized initial
12882         defs properly.
12883
12884 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12885
12886         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
12887
12888 2016-02-27  Jeff Law  <law@redhat.com>
12889
12890         Revert
12891         2016-02-26  Richard Biener  <rguenther@suse.de>
12892                     Jeff Law  <law@redhat.com>
12893
12894         PR tree-optimization/69740
12895         * cfghooks.c (remove_edge): Request loop fixups if we delete
12896         an edge that might turn an irreducible loop into a natural
12897         loop.
12898
12899 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
12900
12901         PR rtl-optimization/69896
12902         * tree-vect-generic.c (get_compute_type): Avoid single element
12903         vector types.
12904
12905 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
12906
12907         Rename the AArch64 tuning option and related functions to enable the
12908         Newton series for the reciprocal square root to reflect its
12909         approximative characteristic.
12910
12911         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
12912         function to "aarch64_emit_approx_rsqrt".
12913         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
12914         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
12915         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
12916         (xgene1_tunings): Likewise.
12917         (use_rsqrt_p): Likewise.
12918         (aarch64_emit_swrsqrt): Use new function name.
12919         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
12920         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
12921         text explaining this option.
12922         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
12923
12924 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12925
12926         PR target/69969
12927         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12928         complain about -mallow-movmisalign without -mvsx if
12929         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
12930
12931 2016-02-26  Joel Sherrill  <joel@rtems.org>
12932
12933         * config.gcc: Add x86_64-*-rtems*.
12934         * config/i386/rtems-64.h: New file.
12935
12936 2016-02-26  Joel Sherrill  <joel@rtems.org>
12937
12938         * config.gcc: Add aarch64-*-rtems*.
12939         * config/aarch64/rtems.h: New file.
12940
12941 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
12942
12943         PR target/69946
12944         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
12945         shift amount using %h.  Add comment.
12946
12947 2016-02-26  Richard Biener  <rguenther@suse.de>
12948             Jeff Law  <law@redhat.com>
12949
12950         PR tree-optimization/69740
12951         * cfghooks.c (remove_edge): Request loop fixups if we delete
12952         an edge that might turn an irreducible loop into a natural
12953         loop.
12954
12955 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12956
12957         PR middle-end/69920
12958         * tree-sra.c (sra_modify_assign): Do not remove loads of
12959         uninitialized aggregates to SSA_NAMEs.
12960
12961 2016-02-26  Richard Henderson  <rth@redhat.com>
12962
12963         PR target/69709
12964         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
12965         pseudo in case the target rtx matches the source of the left
12966         shift.
12967
12968 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12969
12970         PR hsa/69568
12971         * hsa.h (hsa_type_packed_p): Declare.
12972         * hsa.c (hsa_type_packed_p): New function.
12973         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
12974         loads.
12975         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
12976         * hsa-brig.c (emit_basic_insn): Likewise.
12977
12978 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12979
12980         pr hsa/69674
12981         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
12982         pointers.
12983         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
12984
12985 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12986
12987         * hsa.h (is_a_helper): New overload for hsa_op_immed for
12988         hsa_op_with_type operands.
12989         (hsa_unsigned_type_for_type): Declare.
12990         * hsa.c (hsa_unsigned_type_for_type): New function.
12991         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
12992         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
12993         the finalizer.  Do not emit extra move.
12994
12995 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12996
12997         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
12998         atomic operations in private segment.
12999
13000 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13001
13002         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
13003         statements to wi->info.  Also disallow omp simd constructs.
13004         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
13005         for not gridifying.  Dump special string for omp_for.
13006
13007 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13008
13009         PR target/69245
13010         * config/aarch64/aarch64.c (aarch64_set_current_function):
13011         Save/restore target globals when switching to
13012         target_option_default_node.
13013
13014 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13015
13016         PR target/69613
13017         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
13018         Return 0 if !SHIFT_COUNT_TRUNCATED.
13019
13020 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
13021             Eric Botcazou  <ebotcazou@adacore.com>
13022
13023         PR rtl-optimization/69891
13024         * dse.c (scan_insn): If we can't figure out memset arguments
13025         or they are non-constant, call clear_rhs_from_active_local_stores.
13026
13027 2016-02-26  Martin Liska  <mliska@suse.cz>
13028
13029         * doc/extend.texi: Mention clog10, clog10f an clog10l
13030         in Builtins section.
13031
13032 2016-02-26  Martin Liska  <mliska@suse.cz>
13033
13034         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
13035         CHECKING_P.
13036         (resolve_args_picking_1): Likewise.
13037         * dwarf2out.h (struct GTY): Likewise.
13038
13039 2016-02-26  Martin Liska  <mliska@suse.cz>
13040
13041         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
13042         with flag_checking.
13043         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13044
13045 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13046             Martin Liska  <mliska@suse.cz>
13047
13048         * doc/install.texi: Mention --enable-valgrind-annotations.
13049
13050 2016-02-26  Richard Biener  <rguenther@suse.de>
13051
13052         PR tree-optimization/69551
13053         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
13054         looking through aliases adjust DECL_PT_UID to refer to the
13055         ultimate alias target.
13056
13057 2016-02-25  Martin Liska  <mliska@suse.cz>
13058
13059         PR middle-end/69919
13060         * alloc-pool.c (after_memory_report): New variable.
13061         * alloc-pool.h (base_pool_allocator ::release): Do not use
13062         the infrastructure if after_memory_report.
13063         * toplev.c (toplev::main): Mark after memory report.
13064
13065 2016-02-25  Richard Biener  <rguenther@suse.de>
13066
13067         PR tree-optimization/48795
13068         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
13069
13070 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13071
13072         PR driver/68463
13073         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
13074         offloading is enabled and -fopenacc or -fopenmp is specified.
13075         (CRTOFFLOADEND): Likewise.
13076         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
13077         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
13078         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
13079         (offload_objects_file_name): New static var.
13080         (tool_cleanup): Remove offload_objects_file_name file.
13081         (find_offloadbeginend): Replace with ...
13082         (find_crtoffloadtable): ... this.
13083         (run_gcc): Remove offload_argc and offload_argv.
13084         Get offload_objects_file_name from -foffload-objects=... option.
13085         Read names of object files with offload from this file, pass them to
13086         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
13087         don't pass offloadbegin and offloadend to the linker.  Don't pass
13088         offload non-LTO files to the linker, because now they're not claimed.
13089
13090 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
13091
13092         PR ipa/69630
13093         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13094         on builtin_unreachable.
13095
13096 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
13097
13098         PR rtl-optimization/69896
13099         * regcprop.c: Include cfgrtl.h.
13100         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
13101         than remembered mode, either delete it (if noop_move_p), or
13102         treat like copy_p but not noop_p instruction.
13103
13104 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13105
13106         PR debug/69705
13107         * dwarf2out.c (gen_variable_die): Work around buggy LTO
13108         - allow NULL decl for Fortran DW_TAG_common_block variables.
13109
13110 2016-02-24  Jason Merrill  <jason@redhat.com>
13111
13112         * common.opt (flifetime-dse): Add -flifetime-dse=1.
13113
13114 2016-02-24  Richard Biener  <rguenther@suse.de>
13115             Jakub Jelinek  <jakub@redhat.com>
13116
13117         PR middle-end/69760
13118         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
13119         conditionally executed ops to well-defined overflow behavior.
13120
13121 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13122
13123         PR middle-end/69915
13124         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
13125         elements.
13126
13127 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13128
13129         PR rtl-optimization/69886
13130         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
13131         argument.  Use it when checking validity of set instructions.
13132         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
13133         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
13134         callsite.
13135         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
13136         * store-motion.c (find_moveable_store): Update
13137         can_assign_to_reg_without_clobbers_p callsite.
13138
13139 2016-02-24  Richard Biener  <rguenther@suse.de>
13140
13141         PR middle-end/68963
13142         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
13143         bogus check.
13144         (record_nonwrapping_iv): Do not fall back to the low/high bound
13145         for non-constant IV bases if the stmt is not always executed.
13146
13147 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13148
13149         * config/arm/arm-cores.def (cortex-a32): New entry.
13150         * config/arm/arm-tables.opt: Regenerate.
13151         * config/arm/arm-tune.md: Regenerate.
13152         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13153         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13154         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13155         for -mcpu and -mtune.
13156
13157 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13158
13159         PR target/69875
13160         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13161         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13162         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13163         (atomic_loaddi_1): Delete.
13164         (atomic_loaddi): Rewrite expander using the above changes.
13165
13166 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13167
13168         PR c/69918
13169         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13170         2 to 3.
13171
13172 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13173             Richard Biener  <rguenth@suse.de>
13174
13175         PR middle-end/69909
13176         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13177         set_mem_attributes if tem is SSA_NAME which got expanded
13178         as a MEM.
13179
13180 2016-02-24  Richard Biener  <rguenther@suse.de>
13181
13182         PR tree-optimization/69907
13183         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13184         end of permutations for BB vectorization.
13185
13186 2016-02-24  Christian Bruel  <christian.bruel@st.com>
13187
13188         * config/arm/arm-c.c (arm_option_override): Initialize
13189         target_option_current_node.
13190         * config/arm/arm.c (arm_pragma_target_parse): Replace
13191         build_target_option_node call by target_option_current_node.
13192         Set target_option_current_node.
13193         Fix comments.
13194
13195 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
13196
13197         PR target/69810
13198         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13199         define_insn_and_split to define_insn.
13200         (zero_extendqi<mode>2_dot2): Same.
13201         (extendqi<mode>2_dot): Same.
13202         (extendqi<mode>2_dot2): Same.
13203
13204 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13205
13206         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13207         and add bypass for AES{D,E} and AESMC pairs.
13208         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13209         and AESMC pairs.
13210
13211 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13212
13213         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13214         series for reciprocal square root in Exynos M1.
13215
13216 2016-02-23  Martin Sebor  <msebor@redhat.com>
13217
13218         PR c/69759
13219         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13220         __builtin_alloca_with_align.
13221
13222 2016-02-23  Richard Henderson  <rth@redhat.com>
13223
13224         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13225         (ix86_register_pragmas): Remove __seg_tls.
13226         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13227         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13228         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13229         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13230         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13231         * doc/extend.texi (__seg_tls): Remove item.
13232
13233 2016-02-23  Richard Biener  <rguenther@suse.de>
13234
13235         * alloc-pool.h (struct allocation_object): Make id member
13236         conditional on CHECKING_P again.
13237         (get_instance): Adjust.
13238         (base_pool_allocator): Likewise.
13239
13240 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13241
13242         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13243         (parallelize_loops): In OpenACC kernels mode, set n_threads to
13244         zero.
13245         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13246         flag_openacc.
13247         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13248
13249 2016-02-23  Richard Biener  <rguenther@suse.de>
13250
13251         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13252         * bitmap.h (struct bitmap_usage): Likewise.
13253         (bitmap_move): Declare.
13254         * bitmap.c (register_overhead): Take size_t argument.
13255         (bitmap_move): New function.
13256         * df-problems.c (df_rd_transfer_function): Use bitmap_move
13257         to properly account overhead.
13258         * tree.c (free_node): Use tree_size.
13259
13260 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
13261
13262         PR c++/69902
13263         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
13264         when inverting comparison.
13265
13266         PR c/69900
13267         * common.opt (Wunreachable-code): Add Warning flag.
13268
13269 2016-02-23  Mark Wielaard  <mjw@redhat.com>
13270             Jakub Jelinek  <jakub@redhat.com>
13271
13272         PR c/69911
13273         * cgraphunit.c (check_global_declaration): Check main_input_filename
13274         and DECL_SOURCE_FILE are not NULL.
13275
13276 2016-02-23  Martin Jambor  <mjambor@suse.cz>
13277
13278         PR tree-optimization/69666
13279         * tree-sra.c (sra_modify_assign): Do not attempt to create
13280         default_def replacements for unscalarizable regions.
13281
13282 2016-02-20  Mark Wielaard  <mjw@redhat.com>
13283
13284         PR c/28901
13285         * cgraphunit.c (check_global_declaration): Check level of
13286         warn_unused_const_variable and main_input_filename.
13287         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
13288         (-Wunused-variable): For C implies -Wunused-const-variable=1.
13289         (-Wunused-const-variable): Explain levels 1 and 2.
13290
13291 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13292
13293         PR target/69888
13294         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13295         identical arguments.  Formatting and spelling fixes.
13296
13297         PR target/69885
13298         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13299         be specified.
13300
13301         PR target/69894
13302         PR target/69895
13303         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13304         and m68k-devices.def.
13305         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13306         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13307
13308 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13309
13310         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13311         and HImode registers.
13312
13313 2016-02-22  Richard Biener  <rguenther@suse.de>
13314
13315         PR tree-optimization/69882
13316         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13317         preserve permutations present because of gaps.
13318         (vect_supported_load_permutation_p): Always continue checking
13319         permutations after vect_attempt_slp_rearrange_stmts.
13320
13321 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13322
13323         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13324         min_profitable_estimate, rather than min_profitable_iters.
13325
13326 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13327
13328         PR target/69885
13329         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13330         SImode for last match_operand.
13331
13332 2016-02-22  Martin Liska  <mliska@suse.cz>
13333
13334         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13335         return bitsize - 1 as the return value.
13336
13337 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13338
13339         PR target/69806
13340         PR target/54089
13341         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13342         Handle negative shift counts.
13343         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13344         force_reg on the shift constant.
13345         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13346         (lshrsi3_d): Handle negative shift counts.
13347
13348 2016-02-22  Richard Biener  <rguenther@suse.de>
13349             Tom de Vries  <tom@codesourcery.com>
13350
13351         * graph.c: Include dumpfile.h.
13352         (print_graph_cfg): Split into three overloads.
13353         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13354
13355 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13356
13357         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13358         dump-fn.
13359
13360 2016-02-22  Richard Biener  <rguenther@suse.de>
13361
13362         PR ipa/37448
13363         * ipa-inline-transform.c (inline_call): When not updating
13364         overall summaries adjust self size by the growth estimate.
13365         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13366         hash-set, do not update overall summaries here.  Renamed from ...
13367         (inline_to_all_callers): ... this which is now wrapping the
13368         above and performing delayed overall summary update.
13369         (early_inline_small_functions): Delay updating of the overall
13370         summary.
13371
13372 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13373
13374         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13375         variable.
13376
13377 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13378
13379         PR driver/69805
13380         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13381         :%* in %:gt() argument.
13382         (greater_than_spec_func): Adjust for expecting only numbers,
13383         if there are more than two numbers, compare the last two.
13384
13385 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13386
13387         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13388         -Wnarrowing with -std.
13389
13390 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13391
13392         PR c++/69851
13393         * expr.c (store_field): Don't use bit-field path if exp is
13394         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13395         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13396         and the assignment can be performed by bitwise copy.  Formatting
13397         fix.
13398
13399         PR middle-end/69838
13400         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13401         call copy_reg_eh_region_note_forward on before and/or after sequences
13402         and remove note from insn if it no longer can throw.
13403
13404         PR target/69820
13405         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13406         if TARGET_AVX512BW.
13407
13408 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13409
13410         * config/s390/vector.md: Add missing commutative operand markers
13411         to the patterns which qualify for one.
13412         * config/s390/vx-builtins.md: Likewise.
13413
13414 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13415
13416         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13417         types to mode iterators.
13418         (vec_double): ... and mode attribute.
13419         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13420
13421 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13422
13423         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13424         Change the predicate of op2 from nonimmediate to general and let
13425         reload fix it if necessary.
13426
13427 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13428
13429         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13430
13431 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13432
13433         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13434         mode.
13435
13436 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13437
13438         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
13439         * config/s390/s390.c (s390_expand_vec_movstr): New function.
13440         * config/s390/s390.md ("movstr<P:mode>"): Call
13441         s390_expand_vec_movstr.
13442
13443 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13444
13445         * config/s390/s390.md: Add missing output modifier for operand 1
13446         to print it as address properly.
13447
13448 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13449
13450         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
13451         * config/s390/2964.md: New file.
13452         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
13453         of insn grouping attributes depending on the CPU level.
13454         (s390_get_unit_mask): New function.
13455         (s390_sched_score): Remove the OOO from the scheduling macros.
13456         Add loop to calculate a score for the instruction mix.
13457         (s390_sched_reorder): Likewise plus improve debug output.
13458         (s390_sched_variable_issue): Rename macros as above.  Calculate
13459         the unit distances after actually scheduling an insn.  Improve
13460         debug output.
13461         (s390_sched_init): Clear last_scheduled_unit_distance array.
13462         * config/s390/s390.md: Include 2964.md.
13463
13464 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13465
13466         PR target/69671
13467         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
13468         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
13469         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
13470         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
13471         *avx512f_<code>v8div16qi2_mask_1): New insns.
13472
13473 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13474
13475         PR target/68404
13476         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
13477         2016-02-09 change.
13478
13479         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
13480         earlyclobber from target.  Use wF constraint for fused memory
13481         address.
13482         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
13483
13484 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13485             Martin Liska  <mliska@suse.cz>
13486
13487         PR sanitizer/69863
13488         * cfgexpand.c (asan_sanitize_stack_p): New function.
13489         (partition_stack_vars): Use the function.
13490         (expand_stack_vars): Likewise.
13491         (defer_stack_allocation): Likewise.
13492         (expand_used_vars): Likewise.
13493
13494 2016-02-18  Richard Biener  <rguenther@suse.de>
13495
13496         PR middle-end/69553
13497         * fold-const.c (operand_equal_p): Properly compare offsets for
13498         IMAGPART_EXPR and ARRAY_REF.
13499
13500 2016-02-18  Nick Clifton  <nickc@redhat.com>
13501
13502         PR target/62254
13503         PR target/69610
13504         * config/arm/arm.c (arm_option_override_internal): Disable
13505         interworking if the target does not support thumb instructions.
13506         (arm_reload_in_hi): Handle the case where a register to register
13507         move needs reloading because there is no simple pattern to handle
13508         it.
13509         (arm_reload_out_hi): Likewise.
13510
13511 2016-02-18  Richard Biener  <rguenther@suse.de>
13512
13513         PR middle-end/69854
13514         * match.pd: Don't use fold_binary or fold_unary for folding
13515         constants.
13516
13517 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
13518
13519         PR c++/69850
13520         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
13521         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
13522         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
13523         warn on gimple_no_warning_p statements.
13524
13525 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
13526
13527         * doc/extend.texi (C++ Attributes): Correct description of
13528         warn_unused type attribute.
13529
13530 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13531
13532         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
13533         correct instruction.
13534
13535 2016-02-17  Richard Biener  <rguenther@suse.de>
13536
13537         PR rtl-optimization/69609
13538         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
13539         (find_traces_1_round): When ending a trace update cached priority
13540         of successors.
13541         (bb_to_key): Use cached priority when available.
13542         (copy_bb): Initialize cached priority.
13543         (reorder_basic_blocks_software_trace_cache): Likewise.
13544
13545 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13546
13547         PR target/69161
13548         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
13549         New predicate.
13550         (aarch64_comparison_operator): Break overly long line into two.
13551         (aarch64_comparison_operation): Likewise.
13552         * config/aarch64/aarch64.md (cstorecc4): Use
13553         aarch64_comparison_operator_mode instead of
13554         aarch64_comparison_operator.
13555         (cstore<mode>4): Likewise.
13556         (aarch64_cstore<mode>): Likewise.
13557         (*cstoresi_insn_uxtw): Likewise.
13558         (cstore<mode>_neg): Likewise.
13559         (*cstoresi_neg_uxtw): Likewise.
13560
13561 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13562
13563         PR target/69161
13564         * config/arm/predicates.md (arm_comparison_operator_mode):
13565         New predicate.
13566         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
13567         instead of arm_comparison_operator.
13568         (*mov_negscc): Likewise.
13569         (*mov_notscc): Likewise.
13570         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
13571         (*thumb2_mov_negscc): Likewise.
13572         (*thumb2_mov_negscc_strict_it): Likewise.
13573         (*thumb2_mov_notscc): Likewise.
13574         (*thumb2_mov_notscc_strict_it): Likewise.
13575
13576 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
13577
13578         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
13579         Add missing return.
13580
13581 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
13582
13583         * config/visium/visium.c (machine_libfunc_index): New enum.
13584         (machine_libfuncs): New structure.
13585         (visium_libfuncs): New static variable.
13586         (TARGET_INIT_LIBFUNCS): Define to...
13587         (visium_init_libfuncs): ...this.  New function.
13588         (expand_block_move_4): Use the appropriate libfunc.
13589         (expand_block_move_2): Likewise.
13590         (expand_block_move_1): Likewise.
13591         (expand_block_set_4): Likewise.
13592         (expand_block_set_2): Likewise.
13593         (expand_block_set_1): Likewise.
13594         (visium_trampoline_init): Likewise.
13595
13596 2016-02-17  Nick Clifton  <nickc@redhat.com>
13597
13598         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
13599         TI's devices.csv file as of March 2016.
13600
13601 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13602
13603         PR Target/48344
13604         * opts-global.c (handle_common_deferred_options): Introduce and
13605         initialize two global variables to remember command-line options
13606         specifying a stack-limiting register.
13607         * opts.h: Add extern declarations of the two new global variables.
13608         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
13609         variable based on the values of the two new global variables.
13610
13611 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13612
13613         PR c/69835
13614         * common.opt (Wnonnull-compare): New warning.
13615         * doc/invoke.texi (-Wnonnull): Remove text about comparison
13616         of arguments against NULL.
13617         (-Wnonnull-compare): Document.
13618         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
13619         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
13620         * passes.def (pass_warn_nonnull_compare): Add.
13621         * gimple-ssa-nonnull-compare.c: New file.
13622
13623 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13624
13625         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
13626         AARCH64_EXTRA_TUNE_RECIP_SQRT.
13627
13628 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13629
13630         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
13631         reciprocal sqrt for -mlow-precision-recip-sqrt.
13632
13633 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13634             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13635
13636         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
13637         always use lane loads to construct non-constant vectors.
13638
13639 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13640
13641         * config/aarch64/aarch64.md
13642         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
13643         constraints for operand 3.
13644         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
13645
13646 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13647             Richard Biener  <rguenther@suse.de>
13648
13649         PR tree-optimization/69820
13650         * tree-vect-patterns.c (type_conversion_p): Return false if
13651         *orig_type is unsigned single precision or boolean.
13652         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
13653         Formatting fix.
13654
13655 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13656
13657         PR rtl-optimization/69764
13658         PR rtl-optimization/69771
13659         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
13660         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
13661
13662 2016-02-16  Richard Biener  <rguenther@suse.de>
13663
13664         PR tree-optimization/69776
13665         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
13666         sets from caller.
13667         (indirect_refs_may_alias_p): Likewise.
13668         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
13669         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
13670         according to tbaa_p.
13671         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
13672         (optimize_stmt): For redundant store discovery do not allow tbaa.
13673
13674 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
13675
13676         PR tree-optimization/69714
13677         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
13678         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
13679
13680 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
13681
13682         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
13683         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
13684         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
13685         * config/arc/arc.c (arc_init): Check FPU options.
13686         (get_arc_condition_code): Handle new CC_FPU* modes.
13687         (arc_select_cc_mode): Likewise.
13688         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
13689         register pair only. Allow access for ARCv2 accumulator.
13690         (gen_compare_reg): Whenever we have FPU support use FPU compare
13691         instructions.
13692         (arc_reorg): Don't generate brcc insns when FPU compare
13693         instructions are involved.
13694         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
13695         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
13696         floating point emulation.
13697         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
13698         (REVERSE_CONDITION): Add new CC_FPU* modes.
13699         (TARGET_FP_SP_BASE): Define.
13700         (TARGET_FP_DP_BASE): Likewise.
13701         (TARGET_FP_SP_FUSED): Likewise.
13702         (TARGET_FP_DP_FUSED): Likewise.
13703         (TARGET_FP_SP_CONV): Likewise.
13704         (TARGET_FP_DP_CONV): Likewise.
13705         (TARGET_FP_SP_SQRT): Likewise.
13706         (TARGET_FP_DP_SQRT): Likewise.
13707         (TARGET_FP_DP_AX): Likewise.
13708         * config/arc/arc.md (ARCV2_ACC): New constant.
13709         (type): New fpu type attribute.
13710         (SDF): Conditional iterator.
13711         (cstore<mode>, cbranch<mode>): Change expand condition.
13712         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
13713         handles FPU/FPX cases as well.
13714         * config/arc/arc.opt (mfpu): New option.
13715         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
13716         Renamed.
13717         (adddf3, muldf3, subdf3): Removed.
13718         * config/arc/predicates.md (proper_comparison_operator): Recognize
13719         CC_FPU* modes.
13720         * config/arc/fpu.md: New file.
13721         * doc/invoke.texi (ARC Options): Document mfpu option.
13722
13723 2016-02-16  Richard Biener  <rguenther@suse.de>
13724
13725         PR rtl-optimization/69291
13726         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
13727         noce_operand_ok check.
13728
13729 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13730
13731         PR lto/67709
13732         * omp-low.c (simd_clone_create): Remove call to
13733         symtab->call_cgraph_insertion_hooks.
13734
13735 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13736
13737         PR tree-optimization/69802
13738         * tree-ssa-reassoc.c (update_range_test): If op is
13739         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
13740         op == 1 test of precision 1 integral op, otherwise handle
13741         that case as op itself.  Fix up formatting.
13742         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
13743         up formatting.
13744
13745 2016-02-16  Richard Biener  <rguenther@suse.de>
13746
13747         PR tree-optimization/69586
13748         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
13749         types for conversion sources.
13750
13751 2016-02-16  Richard Biener  <rguenther@suse.de>
13752
13753         PR middle-end/69801
13754         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
13755         mask OEP_ADDRESS_OF.
13756
13757 2016-02-16  Alan Modra  <amodra@gmail.com>
13758
13759         PR target/68973
13760         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
13761         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
13762         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
13763         (p8_mtvsrwz): New.
13764         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
13765         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
13766         (p8_fmrgow_<mode>): Likewise.
13767         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
13768         changes.
13769         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
13770         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
13771         to use movdi_internal64.  Remove op0_di.
13772         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
13773
13774 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
13775
13776         Add support for the FCCMP insn types
13777
13778         * config/aarch64/aarch64.md (fccmp): Change insn type.
13779         (fccmpe): Likewise.
13780         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
13781         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
13782         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
13783         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
13784         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
13785         * config/arm/types.md (fccmps): Add new insn type.
13786         (fccmpd): Likewise.
13787
13788 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13789
13790         * alias.c (get_alias_set): Fix a typo in comment.
13791
13792 2016-02-15  Richard Biener  <rguenther@suse.de>
13793
13794         PR tree-optimization/69595
13795         * match.pd: Complete range test simplification to true.
13796
13797 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
13798
13799         PR rtl-optimization/69648
13800         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
13801         pic_offset_table_rtx.
13802
13803         PR rtl-optimization/69752
13804         * ira.c (update_equiv_regs): When looking for more than a single SET,
13805         also take other side effects into account.
13806
13807 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13808
13809         * config/s390/s390.c (s390_function_profiler): Add a new sequence
13810         for z900+ CPUs in 31-bit mode.
13811
13812 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13813
13814         * common/config/s390/s390-common.c (s390_supports_split_stack):
13815         New function.
13816         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
13817         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
13818         * config/s390/s390.c (struct machine_function): New field
13819         split_stack_varargs_pointer.
13820         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
13821         in s390_emit_prologue.
13822         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
13823         vararg pointer.
13824         (morestack_ref): New global.
13825         (SPLIT_STACK_AVAILABLE): New macro.
13826         (s390_expand_split_stack_prologue): New function.
13827         (s390_live_on_entry): New function.
13828         (s390_va_start): Use split-stack vararg pointer if appropriate.
13829         (s390_asm_file_end): Emit the split-stack note sections.
13830         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
13831         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
13832         (UNSPECV_SPLIT_STACK_CALL): New unspec.
13833         (UNSPECV_SPLIT_STACK_DATA): New unspec.
13834         (split_stack_prologue): New expand.
13835         (split_stack_space_check): New expand.
13836         (split_stack_data): New insn.
13837         (split_stack_call): New expand.
13838         (split_stack_call_*): New insn.
13839         (split_stack_cond_call): New expand.
13840         (split_stack_cond_call_*): New insn.
13841
13842 2016-02-15  Richard Biener  <rguenther@suse.de>
13843
13844         PR tree-optimization/69783
13845         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13846         Add trivially correct cases.
13847
13848 2016-02-15  Tom de Vries  <tom@codesourcery.com>
13849
13850         PR lto/69655
13851         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
13852         do_force_output.
13853         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
13854
13855 2016-02-15  Richard Biener  <rguenther@suse.de>
13856
13857         PR tree-optimization/69776
13858         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
13859         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
13860         indicate whether we can use TBAA to disambiguate against stores.
13861         Use alias-set zero if not.
13862         (visit_reference_op_store): Do not use TBAA when looking up
13863         redundant stores.
13864         * tree-ssa-pre.c (compute_avail): Use TBAA here.
13865         (eliminate_dom_walker::before_dom_children): But not when looking
13866         up redundant stores.
13867
13868 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
13869
13870         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
13871
13872 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13873
13874         *  config/i386/znver1.md
13875         (znver1_pop, znver1_pop_mem,
13876         znver1_load_imov_double_store,
13877         znver1_load_imov_direct_store,
13878         znver1_load_imov_direct_load,
13879         znver1_load_imov_double_load): Add new.
13880         (znver1_insn, znver1_insn_load): Add icmov type.
13881         (znver1_sseavx_fma,
13882         znver1_sseavx_fma_load,
13883         znver1_avx256_fma,
13884         znver1_avx256_fma_load): Fix pipe usage.
13885
13886 2016-02-14  Alan Modra  <amodra@gmail.com>
13887
13888         PR target/68973
13889         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
13890         with an invalid hard reg, reload just the reg not the entire
13891         pre/post-inc/dec address expression.
13892
13893 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13894
13895         PR target/67260
13896         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
13897         fixed R1_REG scratch reg.
13898         (sibcall_value_pcrel_fdpic): Likewise.
13899
13900 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13901
13902         PR target/67636
13903         PR target/64345
13904         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
13905
13906 2016-02-12  Walter Lee  <walt@tilera.com>
13907
13908         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
13909         * config/tilegx/t-tilegx: Likewise.
13910
13911 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13912
13913         PR other/69554
13914         * diagnostic-show-locus.c (struct line_span): New struct.
13915         (layout::get_first_line): Delete.
13916         (layout::get_last_line): Delete.
13917         (layout::get_num_line_spans): New member function.
13918         (layout::get_line_span): Likewise.
13919         (layout::print_heading_for_line_span_index_p): Likewise.
13920         (layout::get_expanded_location): Likewise.
13921         (layout::calculate_line_spans): Likewise.
13922         (layout::m_first_line): Delete.
13923         (layout::m_last_line): Delete.
13924         (layout::m_line_spans): New field.
13925         (layout::layout): Update comment.  Replace m_first_line and
13926         m_last_line with m_line_spans, replacing their initialization
13927         with a call to calculate_line_spans.
13928         (diagnostic_show_locus): When printing source lines and
13929         annotations, rather than looping over a single span
13930         of lines, instead loop over each line_span within
13931         the layout, with an inner loop over the lines within them.
13932         Call the context's start_span callback when changing line spans.
13933         * diagnostic.c (diagnostic_initialize): Initialize start_span.
13934         (diagnostic_build_prefix): Break out the building of the location
13935         part of the string into...
13936         (diagnostic_get_location_text): ...this new function, rewriting
13937         it from nested ternary expressions to a sequence of "if"
13938         statements.
13939         (default_diagnostic_start_span_fn): New function.
13940         * diagnostic.h (diagnostic_start_span_fn): New typedef.
13941         (diagnostic_context::start_span): New field.
13942         (default_diagnostic_start_span_fn): New prototype.
13943
13944 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13945
13946         PR driver/69779
13947         * gcc.c (driver::finalize): Fix cleanup of "specs".
13948
13949 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13950
13951         PR driver/69265
13952         PR driver/69453
13953         * gcc.c (driver::driver): Initialize m_option_suggestions.
13954         (driver::~driver): Clean up m_option_suggestions.
13955         (suggest_option): Convert to...
13956         (driver::suggest_option): ...this, and split out into
13957         driver::build_option_suggestions and find_closest_string.
13958         (driver::build_option_suggestions): New function, from
13959         first half of suggest_option.  Special-case
13960         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
13961         the sanitizer_opts array.  For options of enum types, add the
13962         various enum values to the candidate strings.
13963         (driver::handle_unrecognized_options): Remove "const".
13964         * gcc.h (driver::handle_unrecognized_options): Likewise.
13965         (driver::build_option_suggestions): New decl.
13966         (driver::suggest_option): New decl.
13967         (driver::m_option_suggestions): New field.
13968         * opts-common.c (add_misspelling_candidates): New function.
13969         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
13970         and make non-static.
13971         * opts.h (sanitizer_opts): New array decl.
13972         (add_misspelling_candidates): New function decl.
13973         * spellcheck.c (find_closest_string): New function.
13974         * spellcheck.h (find_closest_string): New function decl.
13975
13976 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13977
13978         PR rtl-optimization/69764
13979         PR rtl-optimization/69771
13980         * optabs.c (expand_binop_directly): For shift_optab_p, force
13981         convert_modes with VOIDmode if xop1 has VOIDmode.
13982
13983 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
13984
13985         PR target/69729
13986         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
13987         to correctly determine instrumentation thunks.
13988
13989 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13990
13991         PR ipa/69241
13992         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
13993         type by reference, force lhs on the call.
13994
13995         PR ipa/68672
13996         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
13997         Compute retval and retbnd early in all cases if split_part_return_p
13998         and return_bb is not EXIT.  Remove all clobber stmts and reset
13999         all debug stmts that refer to SSA_NAMEs defined in split part,
14000         except if it is retval, in that case replace the old retval with the
14001         lhs of the call to the split part.
14002
14003 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14004
14005         revert:
14006         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14007
14008         PR middle-end/66726
14009         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14010         whose result is used in PHI.
14011         (maybe_optimize_range_tests): Likewise.
14012         (final_range_test_p): Likweise.
14013
14014 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14015
14016         PR middle-end/66726
14017         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14018         whose result is used in PHI.
14019         (maybe_optimize_range_tests): Likewise.
14020         (final_range_test_p): Likweise.
14021
14022 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14023
14024         * cgraph.c: Spelling fixes - behaviour -> behavior and
14025         neighbour -> neighbor.
14026         * target.def: Likewise.
14027         * sel-sched.c: Likewise.
14028         * config/mips/mips.c: Likewise.
14029         * config/arc/arc.md: Likewise.
14030         * config/arm/cortex-a57.md: Likewise.
14031         * config/arm/arm.c: Likewise.
14032         * config/arm/neon.md: Likewise.
14033         * config/arm/arm-c.c: Likewise.
14034         * config/vms/vms-c.c: Likewise.
14035         * config/s390/s390.c: Likewise.
14036         * config/i386/znver1.md: Likewise.
14037         * config/i386/i386.c: Likewise.
14038         * config/ia64/hpux-unix2003.h: Likewise.
14039         * config/msp430/msp430.md: Likewise.
14040         * config/rx/rx.c: Likewise.
14041         * config/rx/rx.md: Likewise.
14042         * config/aarch64/aarch64-simd.md: Likewise.
14043         * config/aarch64/aarch64.c: Likewise.
14044         * config/nvptx/nvptx.c: Likewise.
14045         * config/bfin/bfin.c: Likewise.
14046         * config/cris/cris.opt: Likewise.
14047         * config/rs6000/rs6000.c: Likewise.
14048         * target.h: Likewise.
14049         * spellcheck.c: Likewise.
14050         * ira-build.c: Likewise.
14051         * tree-inline.c: Likewise.
14052         * builtins.c: Likewise.
14053         * lra-constraints.c: Likewise.
14054         * explow.c: Likewise.
14055         * hwint.h: Likewise.
14056         * targhooks.c: Likewise.
14057         * tree-vect-data-refs.c: Likewise.
14058         * expr.c: Likewise.
14059         * doc/tm.texi: Likewise.
14060         * doc/extend.texi: Likewise.
14061         * doc/install.texi: Likewise.
14062         * doc/md.texi: Likewise.
14063         * tree-ssa-tail-merge.c: Likewise.
14064         * sched-int.h: Likewise.
14065         * match.pd: Likewise.
14066         * sched-ebb.c: Likewise.
14067         * target.def (omit_struct_return_reg): Likewise.
14068         * gimple-ssa-isolate-paths.c: Likewise.
14069         (find_implicit_erroneous_behaviour): Renamed to...
14070         (find_implicit_erroneous_behavior): ... this.
14071         (find_explicit_erroneous_behaviour): Renamed to...
14072         (find_explicit_erroneous_behavior): ... this.
14073         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
14074
14075 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
14076
14077         PR rtl-optimization/64682
14078         PR rtl-optimization/69567
14079         PR rtl-optimization/69737
14080         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
14081         in I2 as well, just lose it.
14082
14083 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14084
14085         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
14086         New variable.
14087         (aarch64_last_printed_tune_string): Likewise.
14088         (aarch64_declare_function_name): Only output .arch assembler
14089         directive if it will be different from the previously output
14090         directive.  Same for .tune comment but only if -dA is set.
14091         (aarch64_start_file): New function.
14092         (TARGET_ASM_FILE_START): Define.
14093
14094 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
14095
14096         PR plugins/69758
14097         * Makefile.in (PLUGIN_HEADERS): Add params.list.
14098
14099 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
14100
14101         PR target/65313
14102         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
14103         -Wmaybe-uninitialized warning.
14104
14105 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
14106
14107         PR target/69713
14108         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
14109
14110 2016-02-11  Richard Biener  <rguenther@suse.de>
14111
14112         PR rtl-optimization/69291
14113         * ifcvt.c (noce_try_store_flag_constants): Do not allow
14114         subexpressions affected by changing the result.
14115
14116 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
14117
14118         PR target/69148
14119         * lra-constraints.c (curr_insn_transform): Find in/out operands
14120         for secondary memory moves.  Update dups.
14121
14122 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
14123
14124         PR tree-optimization/69652
14125         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
14126         to nested loop, did source re-formatting, skip debug statements,
14127         add check on statement with volatile operand, remove dead scalar
14128         statements.
14129
14130 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
14131             Patrick Palka  <ppalka@gcc.gnu.org>
14132
14133         PR ipa/69241
14134         PR c++/69649
14135         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
14136         calls if the return type is TREE_ADDRESSABLE.
14137         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
14138         * ipa-split.c (split_function): Fix doubled "we" in comment.
14139         Use void return type for the split part even if
14140         !split_point->split_part_set_retval.
14141
14142 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
14143
14144         PR tree-optimization/68021
14145         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14146         when computing the value of biv cand by itself.
14147
14148 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14149
14150         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14151         (cortexa57_tunings): Likewise.
14152         (cortexa72_tunings): Likewise.
14153         (arch_macro_fusion_pair_p): Add support for AES fusion.
14154         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14155         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14156         Allow virtual registers before reload so early scheduling works.
14157         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14158         correct latency and pipeline.
14159         (cortex_a57_crypto_complex): Likewise.
14160         (cortex_a57_crypto_xor): Likewise.
14161         (define_bypass): Add AES bypass.
14162
14163 2016-02-10  Richard Biener  <rguenther@suse.de>
14164
14165         PR tree-optimization/69726
14166         * passes.def: Add DCE pass before late uninit.
14167         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14168         really fixup if-conversions job.
14169
14170 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14171
14172         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14173         (arm_cortex_a57_tune): Likewise.
14174         (aarch_macro_fusion_pair_p): Add support for AES fusion.
14175         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14176
14177 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14178
14179         * timevar.def (TV_PHASE_DBGINFO): Delete.
14180         (TV_PHASE_CHECK_DBGINFO): Likewise.
14181         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14182
14183 2016-02-10  Richard Biener  <rguenther@suse.de>
14184
14185         PR tree-optimization/69719
14186         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14187         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14188
14189 2016-02-09  Andrew Pinski  <apinski@cavium.com>
14190
14191         PR tree-opt/69282
14192         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14193         get_vcond_mask_icode returns false.
14194
14195 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
14196
14197         PR target/68404
14198         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14199         an ADDIS that adds a pointer to a large constant that sets the
14200         upper16 bits with a load operation.
14201
14202 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14203
14204         PR target/68532
14205         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14206         order.
14207         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14208         endian.
14209         (vzipq_s16): Likewise.
14210         (vzipq_s32): Likewise.
14211         (vzipq_f32): Likewise.
14212         (vzipq_u8): Likewise.
14213         (vzipq_u16): Likewise.
14214         (vzipq_u32): Likewise.
14215         (vzipq_p8): Likewise.
14216         (vzipq_p16): Likewise.
14217
14218 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14219
14220         PR target/68532
14221         * config/arm/arm.c (neon_endian_lane_map): New function.
14222         (neon_vector_pair_endian_lane_map): New function.
14223         (arm_evpc_neon_vuzp): Allow for big endian lane order.
14224         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14225         endian.
14226         (vuzpq_s16): Likewise.
14227         (vuzpq_s32): Likewise.
14228         (vuzpq_f32): Likewise.
14229         (vuzpq_u8): Likewise.
14230         (vuzpq_u16): Likewise.
14231         (vuzpq_u32): Likewise.
14232         (vuzpq_p8): Likewise.
14233         (vuzpq_p16): Likewise.
14234
14235 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
14236
14237         PR target/69634
14238         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14239         debug insns.
14240
14241 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
14242
14243         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14244         truncate const_int operand 1 to QImode.
14245
14246 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14247
14248         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14249         corresponding to an abnormal edge.
14250
14251 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14252
14253         PR tree-optimization/69599
14254         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
14255         function.
14256         (find_func_aliases_for_builtin_call, find_func_clobbers)
14257         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
14258         partition.
14259
14260 2016-02-09  Richard Biener  <rguenther@suse.de>
14261
14262         PR tree-optimization/69715
14263         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
14264         LHS on calls as non-rewritable.
14265
14266 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14267
14268         PR lto/69707
14269         * lto-wrapper.c (append_diag_options): New function.
14270         (compile_offload_image): Call append_diag_options.
14271
14272 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
14273
14274         PR other/69722
14275         * doc/extend.texi (Flag Output Operands): Correct sectioning.
14276         Minor copy-edit to fix verb tenses.
14277
14278 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
14279
14280         PR tree-optimization/69209
14281         * ipa-split.c (split_function): If split part is not
14282         returning retval, retval has gimple type but is not
14283         gimple value, force it into a SSA_NAME first.
14284
14285 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
14286
14287         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
14288         outdated section.
14289
14290 2016-02-08  Jason Merrill  <jason@redhat.com>
14291
14292         PR c++/69631
14293         * convert.c (convert_to_integer_1): Check dofold on truncation
14294         distribution.
14295         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14296         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14297         Rename from *_nofold.
14298         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14299         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14300
14301 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14302
14303         PR target/60410
14304         * tree.c (build_common_tree_nodes): Remove short_double argument.
14305         All callers changed.
14306         * tree.h (build_common_tree_nodes): Adjust declaration.
14307         * doc/invoke.texi (-fshort-double): Remove documentation.
14308         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14309         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14310         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14311         (append_linker_options): Don't handle OPT_fshort_double.
14312
14313         PR rtl-optimization/68730
14314         * lra-remat.c (insn_to_cand_activation): New static variable.
14315         (lra_remat): Allocate and free it.
14316         (create_cand): New arg activation. Initialize a field in
14317         insn_to_cand_activation if it is nonnull.
14318         (create_cands): Pass the activation insn to create_cand when making
14319         a candidate involving an output reload.  Reorganize code a little.
14320         (do_remat): Keep track of active status of candidates in a separate
14321         bitmap.
14322
14323 2016-02-08  Richard Biener  <rguenther@suse.de>
14324
14325         PR tree-optimization/69719
14326         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14327         Properly use absolute of the difference of the two offsets to
14328         compare or adjust the segment length.
14329
14330 2016-02-08  Richard Biener  <rguenther@suse.de>
14331             Jeff Law  <law@redhat.com>
14332
14333         PR target/68273
14334         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14335         types for anonymous SSA names.
14336
14337 2016-02-08   Richard Biener  <rguenther@suse.de>
14338
14339         PR rtl-optimization/69274
14340         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14341
14342 2016-02-08  Jeff Law  <law@redhat.com>
14343
14344         PR tree-optimization/65917
14345         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14346         equivalences from if (x == y) style conditionals.
14347         (loop_depth_of_name): Remove.
14348         (record_equality): Remove loop depth check.
14349         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14350         (const_and_copies::record_const_or_copy_raw): New member function.
14351         * tree-ssa-scopedtables.c
14352         (const_and_copies::record_const_or_copy_raw): New, factored out of
14353         (const_and_copies::record_const_or_copy): Call new member function.
14354
14355 2016-02-05  Jeff Law  <law@redhat.com>
14356
14357         PR tree-optimization/68541
14358         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14359         (count_stmts_in_block): New function.
14360         (poor_ifcvt_candidate_code): Likewise.
14361         (is_feasible_trace): Add some heuristics to determine when path
14362         splitting is profitable.
14363         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14364         is a diamond with a single exit.
14365
14366 2016-02-05  Martin Sebor  <msebor@redhat.com>
14367
14368         PR c++/69662
14369         * doc/invoke.texi: Update -Wplacement-new to take an optional
14370         argument.
14371
14372 2016-02-06  Richard Henderson  <rth@redhat.com>
14373
14374         PR c/69643
14375         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14376         out of non-standard address spaces.
14377
14378 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14379
14380         PR rtl-optimization/69691
14381         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14382
14383 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14384
14385         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14386         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14387         (*ieee128_mfvsrd_64bit): Likewise.
14388         (*ieee128_mfvsrd_32bit): Likewise.
14389
14390 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14391
14392         PR target/69369
14393         Revert r232560:
14394         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14395
14396         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14397         instrumented_version.
14398
14399 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14400
14401         * doc/invoke.texi (Optimize Options): In table of --param options
14402         rename second occurrence of tracer-min-branch-ratio to
14403         tracer-min-branch-probability, rename
14404         tracer-min-branch-ratio-feedback to
14405         tracer-min-branch-probability-feedback and clarify description,
14406         rename sched-spec-state-edge-prob-cutoff to
14407         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14408         to selsched-insns-to-rename, rename lto-minpartition to
14409         lto-min-partition, delete reorder-blocks-duplicate and
14410         reorder-blocks-duplicate-feedback.
14411
14412 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14413
14414         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14415         superfluous loops.
14416
14417 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14418
14419         * doc/extend.texi: S/390: Correct some typos.
14420
14421 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14422
14423         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14424
14425 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14426
14427         PR target/69625
14428         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14429         (s390_register_info_gprtofpr): Use new macros above.
14430         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14431         its name.
14432         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14433         its name.  Adjust restore and save gpr ranges.
14434         (s390_register_info_set_ranges): New function.
14435         (s390_register_info): Use new macros above.  Call
14436         s390_register_info_set_ranges.
14437         (s390_optimize_register_info): Likewise.
14438         (s390_hard_regno_rename_ok): Use new macros.
14439         (s390_hard_regno_scratch_ok): Likewise.
14440         (s390_emit_epilogue): Likewise.
14441         (s390_can_use_return_insn): Likewise.
14442         (s390_optimize_prologue): Likewise.
14443         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
14444
14445 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14446
14447         PR bootstrap/69677
14448         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
14449         alignment fixes.
14450         (ix86_option_override_internal): Disable TARGET_STV even for
14451         -m{incoming,preferred}-stack-boundary=3.
14452
14453 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14454
14455         * config.gcc: Mark deprecated rtems targets as obsolete.
14456
14457 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
14458
14459         PR rtl-optimization/64682
14460         PR rtl-optimization/69567
14461         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
14462         before I2 only if the register is both used and set in I2.
14463
14464 2016-02-04  DJ Delorie  <dj@redhat.com>
14465
14466         * config/msp430/msp430.c (msp430_start_function): Add function type.
14467
14468 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14469
14470         PR fortran/69368
14471         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
14472
14473 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
14474
14475         PR rtl-optimization/69577
14476         Revert:
14477         2015-10-29  Richard Henderson  <rth@redhat.com>
14478
14479         PR target/68124
14480         PR rtl-opt/67609
14481         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
14482         sse check to the exact conditions of PR 67609.
14483
14484 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14485
14486         PR target/69667
14487         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
14488         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
14489         not allowed into the traditional Altivec registers.
14490         (movtd_64bit_nodm): Likewise.
14491         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14492
14493 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
14494
14495         * config/aarch64/cortex-a57-fma-steering.c
14496         (aarch64_register_fma_steering): Remove "static" from arguments
14497         to register_pass.
14498
14499 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
14500
14501         PR target/69619
14502         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
14503         twice when complex.
14504
14505 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
14506
14507         * doc/invoke.texi: Delete -mno-fma4.
14508
14509 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
14510
14511         PR rtl-optimization/69577
14512         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
14513         (find_subregs_of_mode): Update accordingly.  Iterate over partial
14514         definitions.
14515
14516 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
14517
14518         * config/arm/arm-protos.h (neon_reinterpret): Remove.
14519         * config/arm/arm.c (neon_reinterpret): Remove.
14520         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
14521         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
14522         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
14523         vreinterpretti): Remove.
14524         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
14525         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14526         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
14527         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
14528         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
14529         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
14530         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
14531         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
14532         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
14533         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
14534         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
14535         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
14536         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
14537         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
14538         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
14539         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
14540         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
14541         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
14542         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
14543         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
14544         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
14545         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
14546         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
14547         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
14548         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
14549         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
14550         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
14551         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
14552         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
14553         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
14554         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
14555         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
14556         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
14557         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
14558         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
14559         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
14560         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
14561         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
14562         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
14563         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
14564         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
14565         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
14566         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
14567         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
14568         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
14569         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
14570         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
14571         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
14572         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
14573         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
14574         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
14575         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
14576         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
14577         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
14578         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
14579         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
14580         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
14581         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
14582         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
14583         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
14584         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
14585         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
14586         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
14587         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
14588         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
14589         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
14590         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
14591         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
14592         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
14593         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
14594         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
14595         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
14596         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
14597         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
14598         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
14599         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
14600         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
14601         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
14602         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
14603         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
14604         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
14605         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
14606         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
14607         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
14608         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
14609         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
14610         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
14611         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
14612         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
14613         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
14614         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
14615         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
14616         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
14617         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
14618         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
14619         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
14620         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
14621         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
14622         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
14623         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
14624         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
14625         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
14626         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
14627
14628 2016-02-04  Martin Liska  <mliska@suse.cz>
14629
14630         PR sanitizer/69276
14631         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
14632         that are gimple_store_p.
14633         (maybe_instrument_call): Likewise.
14634
14635 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
14636
14637         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
14638         register scaling out of memory reference and comment why.
14639
14640 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14641
14642         PR target/65932
14643         PR target/67714
14644         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
14645         folding the source of a SET.
14646
14647 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14648
14649         PR target/65932
14650         PR target/67714
14651         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
14652         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
14653
14654 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
14655
14656         PR target/65932
14657         PR target/67714
14658         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
14659         HImode.
14660
14661 2016-02-04  Christian Bruel  <christian.bruel@st.com>
14662
14663         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
14664         * config/arm/arm.c (arm_set_current_function): Likewise.
14665
14666 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14667             Ilya Enkovich  <enkovich.gnu@gmail.com>
14668             H.J. Lu  <hongjiu.lu@intel.com>
14669
14670         PR target/69454
14671         * config/i386/i386.c (convert_scalars_to_vector): Remove
14672         stack alignment fixes.
14673         (ix86_option_override_internal): Disable TARGET_STV if stack
14674         might not be aligned enough.
14675         (ix86_minimum_alignment): Assert that TARGET_STV is false.
14676
14677 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
14678
14679         * config/i386/x86-tune.def: Disable default prefetching
14680         for -march=znver1.
14681
14682 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14683             Vladimir Makarov  <vmakarov@redhat.com>
14684
14685         PR target/69461
14686         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
14687         in validating fused toc addresses.
14688
14689 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
14690
14691         PR c/69627
14692         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
14693         range->m_caret fields if range->m_show_caret_p is false.
14694
14695         PR target/69644
14696         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14697         Force oldval into register if it does not satisfy reg_or_short_operand
14698         predicate.  Fix up formatting.
14699
14700 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14701             Alexandre Oliva  <aoliva@redhat.com>
14702
14703         PR target/69461
14704         * lra-constraints.c (simplify_operand_subreg): Check additionally
14705         address validity after potential reloading.
14706         (process_address_1): Check insns validity.  In case of failure do
14707         nothing.
14708
14709 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14710
14711         PR target/69118
14712         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
14713         Fix target.
14714
14715 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
14716
14717         * wide-int.cc (canonize_uhwi): New function.
14718         (wi::divmod_internal): Use it.
14719
14720 2016-02-02  James Norris  <jnorris@codesourcery.com
14721
14722         * gimplify.c (omp_notice_variable): Add usage check.
14723
14724 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14725
14726         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
14727         like LE, GE, LT, GT when emitting relational operator.
14728
14729 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14730
14731         * ira-costs.c (find_costs_and_classes): Add extra argument.
14732         * target.def (ira_change_pseudo_allocno_class): Add parameter.
14733         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
14734         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
14735         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
14736         Add best_class parameter, and return it if not ALL_REGS.
14737         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
14738         Add parameter.
14739         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
14740         Update target hook.
14741
14742 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14743
14744         * config/aarch64/aarch64.c
14745         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
14746         (aarch64_ira_change_pseudo_allocno_class): New function.
14747
14748 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
14749
14750         PR target/67032
14751         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
14752
14753 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14754
14755         * config/avr/avr.c (avr_option_override): Set
14756         PARAM_ALLOW_STORE_DATA_RACES to 1.
14757
14758 2016-02-02  Richard Biener  <rguenther@suse.de>
14759
14760         PR tree-optimization/69595
14761         * match.pd: Add range test simplifications to true/false.
14762
14763 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14764
14765         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
14766         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
14767         instead.
14768
14769 2016-02-02  Richard Biener  <rguenther@suse.de>
14770
14771         PR tree-optimization/69606
14772         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
14773         info on the result before moving a stmt.
14774
14775 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
14776
14777         PR middle-end/68542
14778         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
14779         branch with vector comparison.
14780         * config/i386/sse.md (VI48_AVX): New mode iterator.
14781         (define_expand "cbranch<mode>4): Add support for conditional branch
14782         with vector comparison.
14783         * tree-vect-loop.c (optimize_mask_stores): New function.
14784         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
14785         has_mask_store field of vect_info.
14786         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
14787         vectorized loops having masked stores after vec_info destroy.
14788         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
14789         correspondent macros.
14790         (optimize_mask_stores): Add prototype.
14791
14792 2016-02-02  Alan Modra  <amodra@gmail.com>
14793
14794         PR target/69548
14795         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
14796         allow subregs.
14797
14798 2016-02-02  Alan Modra  <amodra@gmail.com>
14799
14800         PR target/68662
14801         * config/rs6000/rs6000.c (need_toc_init): New var, set it
14802         whenever toc_label_name used.
14803         (rs6000_file_start): Don't set up toc section here,
14804         (rs6000_output_function_epilogue): do so here instead,
14805         (rs6000_xcoff_file_start): and here.
14806         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
14807         (load_toc_aix_di): Likewise.
14808
14809 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14810
14811         PR rtl-optimization/69592
14812         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
14813         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
14814         (num_sign_bit_copies_binary_arith_p): New inline function.
14815         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
14816
14817 2016-02-01  Jeff Law  <law@redhat.com>
14818
14819         PR tree-optimization/69580
14820         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
14821         * tree-ssa-threadbackward.c
14822         (fsm_find_control_statement_thread_paths): Do not try to walk
14823         through large PHI nodes.
14824
14825 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14826
14827         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
14828         when count is incremented above limit, don't analyze further
14829         insns afterwards.
14830
14831         * omp-low.c (oacc_parse_default_dims): Avoid
14832         -Wsign-compare warning, make sure value fits into int
14833         rather than just unsigned int.
14834
14835 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
14836
14837         PR tree-optimization/67921
14838         * fold-const.c (split_tree): New parameters.  Convert pointer
14839         type variable part to proper type before negating.
14840         (fold_binary_loc): Pass new arguments to split_tree.
14841
14842 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14843
14844         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
14845         (nvptx_goacc_validate_dims): Extend to handle global defaults.
14846         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
14847         * doc/tm.texti: Rebuilt.
14848         * doc/invoke.texi (fopenacc-dim): Document.
14849         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
14850         (append_compiler_options): Likewise.
14851         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
14852         (oacc_parse_default_dims): New.
14853         (oacc_validate_dims): Add USED arg.  Select non-unity default when
14854         possible.
14855         (oacc_loop_fixed_partitions): Return mask of used partitions.
14856         (oacc_loop_auto_partitions): Emit dump info.
14857         (oacc_loop_partition): Return mask of used partitions.
14858         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
14859         loop partitioning and validation calls.
14860
14861 2016-02-01  Richard Biener  <rguenther@suse.de>
14862
14863         PR middle-end/69556
14864         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
14865
14866 2016-02-01  Richard Biener  <rguenther@suse.de>
14867
14868         PR tree-optimization/69574
14869         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
14870         of asserting return chrec_dont_know.
14871
14872 2016-02-01  Martin Liska  <mliska@suse.cz>
14873
14874         * mem-stats-traits.h: Add copyright header.
14875         * mem-stats.h: Likewise.
14876
14877 2016-02-01  Richard Biener  <rguenther@suse.de>
14878
14879         PR tree-optimization/69579
14880         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
14881         Do not propagate through abnormal PHI results.
14882
14883 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
14884
14885         * postreload.c (reload_cse_simplify): Remove dead code.
14886
14887 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14888
14889         PR rtl-optimization/69570
14890         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
14891         if there is more than one set, not if there is a single set.
14892
14893 2016-02-01  Richard Henderson  <rth@redhat.com>
14894
14895         PR rtl-opt/69535
14896         * combine.c (make_compound_operation): When looking through a
14897         subreg, make sure to re-extend to the width of the outer mode.
14898
14899 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
14900
14901         PR tree-optimization/69546
14902         * wide-int.cc (wi::divmod_internal): For unsigned division
14903         where both operands fit into uhwi, if o1 is 1 and o0 has
14904         msb set, if divident_prec is larger than bits per hwi,
14905         clear another quotient word and return 2 instead of 1.
14906         Similarly for remainder with msb in HWI set, if dividend_prec
14907         is larger than bits per hwi.
14908
14909 2016-01-29  Martin Jambor  <mjambor@suse.cz>
14910
14911         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
14912         Use short lowercase names.
14913         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
14914         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
14915         acq_rel one.  Protect warning agains segfaults if
14916         get_memory_order_name returns NULL.
14917         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
14918         with release semantics.  Do not warn if get_memory_order already did.
14919         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
14920         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
14921         if get_memory_order already did.
14922
14923 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
14924
14925         * doc/install.texi: Document that isl-0.16 is supported.
14926
14927 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14928
14929         PR target/69299
14930         * config/i386/constraints.md (Bm): Describe as special memory
14931         constraint.
14932         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
14933         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14934         * genpreds.c (struct constraint_data): Add is_special_memory.
14935         (have_special_memory_constraints, special_memory_start): New
14936         static vars.
14937         (special_memory_end): Ditto.
14938         (add_constraint): Add new arg is_special_memory.  Add code to
14939         process its true value.  Update have_special_memory_constraints.
14940         (process_define_constraint): Pass the new arg.
14941         (process_define_register_constraint): Ditto.
14942         (choose_enum_order): Process special memory.
14943         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
14944         function insn_extra_special_memory_constraint.
14945         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14946         * gensupport.c (process_rtx): Process
14947         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14948         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
14949         * ira-lives.c (single_reg_class): Use
14950         insn_extra_special_memory_constraint.
14951         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
14952         * lra-constraints.c (process_alt_operands): Ditto.
14953         (curr_insn_transform): Use insn_extra_special_memory_constraint.
14954         * recog.c (asm_operand_ok, preprocess_constraints): Process
14955         CT_SPECIAL_MEMORY.
14956         * reload.c (find_reloads): Ditto.
14957         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
14958         * stmt.c (parse_input_constraint): Use
14959         insn_extra_special_memory_constraint.
14960
14961 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14962
14963         PR target/69530
14964         * lra-splill.c (lra_final_code_change): Revert r229087 by
14965         removing all sub-registers.
14966
14967 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
14968
14969         PR target/65604
14970         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
14971
14972 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
14973
14974         PR target/69551
14975         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
14976         SSE1, copy target into the temporary reg first before recursing
14977         on it.
14978
14979 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14980
14981         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
14982         with vm.
14983
14984 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14985
14986         * ginclude/stdarg.h: Test __cplusplus instead of
14987         __GXX_EXPERIMENTAL_CXX0X__.
14988
14989 2016-01-29  Richard Biener  <rguenther@suse.de>
14990
14991         PR tree-optimization/69547
14992         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
14993         Do not mark clobbers necessary.
14994         (mark_all_reaching_defs_necessary_1): Likewise.
14995
14996 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14997
14998         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
14999         declaration name with %qs and print it in both error messages.
15000         Also fix indentation.
15001
15002 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15003
15004         PR other/69006
15005         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
15006         trailing blank line from error message.
15007
15008 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
15009
15010         PR c++/69462
15011         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
15012         for C++-11.
15013
15014 2016-01-29  Richard Biener  <rguenther@suse.de>
15015
15016         PR middle-end/69537
15017         * match.pd: Allow all integral types when simplifying a
15018         widening or sign-changing conversion.
15019
15020 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15021
15022         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
15023         back to setting codegen_error to fail codegen.
15024
15025 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
15026
15027         PR target/69459
15028         * config/i386/constraints.md (C): Only accept constant zero operand.
15029         (BC): New constraint.
15030         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
15031         instead of C constraint.
15032         * doc/md.texi (Machine Constraints): Update description
15033         of C constraint.
15034
15035 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
15036
15037         PR target/68400
15038         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
15039
15040 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
15041
15042         PR middle-end/69542
15043         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
15044         non-debug insns.
15045
15046 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
15047
15048         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
15049         branches if using guessed profile.
15050
15051 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
15052
15053         * graphite-optimize-isl.c (optimize_isl): Fix dump.
15054
15055 2016-01-28  Richard Henderson  <rth@redhat.com>
15056
15057         PR target/69305
15058         * config/aarch64/aarch64-modes.def (CC_Cmode): New
15059         * config/aarch64/aarch64-protos.h: Update.
15060         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
15061         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
15062         (aarch64_get_condition_code_1): Handle CC_Cmode.
15063         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
15064         (*add<mode>3_compareC_cconly_imm): New.
15065         (*add<mode>3_compareC_cconly): New.
15066         (*add<mode>3_compareC_imm): New.
15067         (add<mode>3_compareC): New.
15068         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
15069         to be first.  Use aarch64_carry_operation.
15070         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
15071         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
15072         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
15073         (subti3): Use subdi3_compare1.
15074         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
15075         (sub<mode>3_compare1): New.
15076         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
15077         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
15078         (*subsi3_carryin_uxtw): Likewise.
15079         (*ngc<mode>, *ngcsi_uxtw): Likewise.
15080         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
15081         * config/aarch64/iterators.md (DWI): New.
15082         * config/aarch64/predicates.md (aarch64_carry_operation): New.
15083         (aarch64_borrow_operation): New.
15084
15085 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15086
15087         * graphite-optimize-isl.c (optimize_isl): Print a different debug
15088         message when isl does not return a valid schedule.
15089
15090 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15091
15092         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
15093         Remove comments from class declarations: they are already in the code
15094         close by the defs.
15095
15096 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15097
15098         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
15099         codegen_error_p.
15100         (ternary_op_to_tree): Same.
15101         (unary_op_to_tree): Same.
15102         (nary_op_to_tree): Same.
15103         (gcc_expression_from_isl_expr_op): Same.
15104         (gcc_expression_from_isl_expression): Same.
15105         (graphite_create_new_loop): Same.
15106         (graphite_create_new_loop_guard): Same.
15107         (build_iv_mapping): Same.
15108         (graphite_create_new_guard): Same.
15109         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
15110         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
15111
15112 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15113
15114         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
15115         instead of setting codegen_error to fail codegen.
15116
15117 2016-01-28  Jason Merrill  <jason@redhat.com>
15118
15119         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
15120
15121 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15122
15123         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15124         Remove CONST_INT_P check in CCMP cost calculation.
15125
15126 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15127
15128         * config/aarch64/aarch64.c (generic_vector_cost):
15129         Set vec_permute_cost.
15130         (cortexa57_vector_cost): Likewise.
15131         (exynosm1_vector_cost): Likewise.
15132         (xgene1_vector_cost): Likewise.
15133         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
15134         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
15135         Add vec_permute_cost entry.
15136
15137 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15138
15139         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
15140         immediate as %1.
15141         (add<mode>3_compare0): Likewise.
15142         (addsi3_compare0_uxtw): Likewise.
15143         (add<mode>3nr_compare0): Likewise.
15144         (compare_neg<mode>): Likewise.
15145         (<optab><mode>3): Likewise.
15146
15147 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
15148
15149         * tree-vect-stmts.c (vectorizable_comparison): Add
15150         NULL check for vectype.
15151
15152 2016-01-28  Richard Biener  <rguenther@suse.de>
15153
15154         PR tree-optimization/69466
15155         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15156         Account for PHIs we couldn't duplicate.
15157
15158 2016-01-28  Martin Liska  <mliska@suse.cz>
15159
15160         PR pch/68758
15161         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15162         instead of ENABLE_VALGRIND_CHECKING.
15163
15164 2016-01-27  Richard Henderson  <rth@redhat.com>
15165
15166         PR rtl-opt/69447
15167         * lra-remat.c (subreg_regs): New.
15168         (dump_candidates_and_remat_bb_data): Dump it.
15169         (operand_to_remat): Reject if operand in subreg_regs.
15170         (set_bb_regs): Collect subreg_regs.
15171         (lra_remat): Init and free subreg_regs.  Compute
15172         calculate_local_reg_remat_bb_data before create_cands.
15173
15174 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15175
15176         PR target/68986
15177         * config/i386/i386.c (ix86_update_stack_boundary): Don't
15178         change stack_alignment_needed for __tls_get_addr call.
15179
15180 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
15181
15182         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15183
15184 2016-01-27  Jeff Law  <law@redhat.com>
15185
15186         PR tree-optimization/68398
15187         PR tree-optimization/69196
15188         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15189         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15190         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15191         Only count PHIs in the last block in the path.  The others will
15192         const/copy propagate away.  Add heuristic to allow more irreducible
15193         subloops to be created when it is likely profitable to do so.
15194
15195         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15196         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
15197         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
15198
15199 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15200
15201         PR lto/69254
15202         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15203         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15204         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15205         * tree-streamer-in.c: Include asan.h.
15206         (streamer_get_builtin_tree): For builtins in sanitizer
15207         range call initialize_sanitizer_builtins and retry.
15208
15209 2016-01-27  Ian Lance Taylor  <iant@google.com>
15210
15211         * common.opt (fkeep-gc-roots-live): New undocumented option.
15212         * tree-ssa-loop-ivopts.c (add_candidate_1): If
15213         -fkeep-gc-roots-live, skip pointers.
15214         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15215         NULL.
15216
15217 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
15218
15219         PR target/69512
15220         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15221         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15222
15223 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
15224
15225         PR target/68380
15226         * configure.ac: NetBSD provides SSP in its C library.
15227         * configure: Updated.
15228
15229 2016-01-27  Richard Biener  <rguenther@suse.de>
15230
15231         PR tree-optimization/69166
15232         * tree-vect-loop.c (vect_is_simple_reduction): Always check
15233         reduction code for commutativity / associativity.
15234
15235 2016-01-27  Martin Jambor  <mjambor@suse.cz>
15236
15237         PR tree-optimization/69355
15238         * tree-sra.c (analyze_access_subtree): Correct hole detection when
15239         total_scalarization fails.
15240
15241 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
15242
15243         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15244         power9.
15245
15246 2016-01-27  Christian Bruel  <christian.bruel@st.com>
15247
15248         PR target/69245
15249         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15250         Move arm_reset_previous_fndecl and set_target_option_current_node in
15251         the conditional part.  Call save_restore_target_globals.
15252         * config/arm/arm.c (arm_set_current_function):
15253         Refactor to better support #pragma target and attribute mix.
15254         Call save_restore_target_globals.
15255         * config/arm/arm-protos.h (save_restore_target_globals): New function.
15256
15257 2016-01-27  Martin Liska  <mliska@suse.cz>
15258
15259         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
15260         reference for an HSA kernel and its host function.
15261
15262 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15263
15264         PR tree-optimization/69399
15265         * wide-int.h (wi::lrshift): For larger precisions, only
15266         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
15267
15268 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
15269
15270         * config/arc/predicates.md (proper_comparison_operator): Reject
15271         constant-constant comparison.
15272
15273 2016-01-26  Tom de Vries  <tom@codesourcery.com>
15274
15275         PR tree-optimization/69110
15276         * tree-data-ref.c (initialize_data_dependence_relation): Handle
15277         DR_NUM_DIMENSIONS == 0.
15278
15279 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15280             Sebastian Pop  <s.pop@samsung.com>
15281
15282         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
15283         isl_ast_op_cond and isl_ast_op_select.
15284         (gcc_expression_from_isl_expr_op): Same.
15285
15286 2016-01-26  Jason Merrill  <jason@redhat.com>
15287
15288         PR c++/68782
15289         * tree.c (recompute_constructor_flags): Split out from
15290         build_constructor.
15291         (verify_constructor_flags): New.
15292         * tree.h: Declare them.
15293
15294 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15295
15296         PR rtl-optimization/69217
15297         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15298         are no TYPE_FIELDS set for the record type.
15299
15300 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15301
15302         PR target/68662
15303         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15304         toc_label_name unconditionally.
15305         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15306         SYMBOL_REF string.  Use toc_label_name instead of constructing
15307         LCTOC1.
15308         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15309         constructing LCTOC1.
15310
15311 2016-01-26  Martin Sebor  <msebor@redhat.com>
15312
15313         PR other/69477
15314         * doc/extend.texi (Common Type Attributes): Move text that talks about
15315         attribute packed from attribute aligned to the section discussing
15316         the former attribute for clarity.
15317
15318 2016-01-26  Richard Henderson  <rth@redhat.com>
15319
15320         PR middle-end/60908
15321         * trans-mem.c (tm_region_init): Mark entry block as visited.
15322
15323 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15324
15325         PR other/69006
15326         * diagnostic-show-locus.c (layout::print_source_line): Replace
15327         call to pp_newline with call to layout::print_newline.
15328         (layout::print_annotation_line): Likewise.
15329         (layout::move_to_column): Likewise.
15330         (layout::print_any_fixits): After printing any fixits, print a
15331         trailing newline, if necessary.
15332         (layout::print_newline): New method, resetting any colorization
15333         before a newline.
15334         (diagnostic_show_locus): Move the pp_newline to before the
15335         early bailout.  Remove dummy block enclosing the layout instance.
15336         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15337         of pp_newline_and_flush with pp_flush.
15338         (diagnostic_append_note): Delete use of pp_newline.
15339         (diagnostic_append_note_at_rich_loc): Delete.
15340         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15341         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15342         when newline characters are added to the buffer.
15343
15344 2016-01-26  Michael Matz  <matz@suse.de>
15345
15346         * configure.ac (ac_cv_std_swap_in_utility): New test.
15347         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15348         * configure: Regenerate.
15349         * config.in: Regenerate.
15350
15351 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15352
15353         * config/arc/arc.md (cstoresi4): Force operand into register.
15354         (arcset<code>): Fix predicate.
15355         (arcsetltu): Likewise.
15356         (arcsetgeu): Likewise.
15357         (arcsethi): Likewise.
15358         (arcsetls): Likewise.
15359
15360 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15361
15362         PR tree-optimization/69483
15363         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15364         if base has error_mark_node type.
15365
15366 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15367
15368         PR target/68620
15369         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15370         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15371         New helper macros.
15372         (vget_lane_f16): Handle big-endian.
15373         (vgetq_lane_f16): Likewise.
15374         (vset_lane_f16): Likewise.
15375         (vsetq_lane_f16): Likewise.
15376         * config/arm/iterators.md (VQXMOV): Add V8HF.
15377         (VDQ): Add V4HF and V8HF.
15378         (V_reg): Handle V4HF and V8HF.
15379         (Is_float_mode): Likewise.
15380         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15381         neon_vdup_nv8hf): New patterns.
15382         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15383         Use VD_LANE iterator.
15384         (neon_vld1_dup<mode>): Use VQ2 iterator.
15385
15386 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15387
15388         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15389         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15390         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15391         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15392         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15393         (oacc_validate_dims): Add LEVEL arg, don't return level.
15394         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15395         oacc_validate_dims.
15396         (execute_oacc_device_lower): Adjust, add more dump output.
15397         * tree-ssa-loop.c (gate_oacc_kernels): Use
15398         oacc_fn_attrib_kernels_p.
15399         * tree-parloops.c (create_parallel_loop): Adjust
15400         set_oacc_fn_attrib call.
15401
15402 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15403
15404         PR lto/69254
15405         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15406         (append_compiler_options): Handle -fcilkplus.
15407         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15408
15409 2016-01-26  Nick Clifton  <nickc@redhat.com>
15410
15411         PR target/66655
15412         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15413         been marked as DECL_ONE_ONLY but we do not the means to make it
15414         so, then do not allow it to bind locally.
15415
15416 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15417
15418         PR lto/69254
15419         * opts.h (parse_sanitizer_options): New prototype.
15420         * opts.c (sanitizer_opts): New array.
15421         (parse_sanitizer_options): New function.
15422         (common_handle_option): Use parse_sanitizer_options.
15423
15424 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15425
15426         PR target/68986
15427         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15428         alignment adjustment to ...
15429         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15430         __tls_get_addr.
15431         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15432         if __tls_get_addr is called.
15433
15434 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15435
15436         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15437
15438 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15439
15440         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
15441
15442 2016-01-26  Richard Biener  <rguenther@suse.de>
15443
15444         PR middle-end/69467
15445         * match.pd: Guard X * CST CMP 0 pattern with single_use.
15446
15447 2016-01-26  Richard Biener  <rguenther@suse.de>
15448
15449         PR tree-optimization/69452
15450         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
15451         (move_computations_dom_walker::before_dom_children): Rename
15452         to ...
15453         (move_computations_worker): This.
15454         (move_computations): Perform an RPO rather than a DOM walk.
15455
15456 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15457
15458         PR target/69442
15459         * combine.c (combine_instructions): For REG_EQUAL note with
15460         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
15461         to the underlying register.
15462         * doc/rtl.texi (REG_EQUAL): Document the behavior of
15463         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
15464
15465 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
15466
15467         PR target/67896
15468         * config/aarch64/aarch64-builtins.c
15469         (aarch64_init_simd_builtin_types): Do not set structural
15470         equality to __Poly{8,16,64,128}_t types.
15471
15472 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
15473
15474         PR tree-optimization/69400
15475         * wide-int.cc (wi_pack): Take the precision as argument and
15476         perform canonicalization here rather than in the callers.
15477         Use the main loop to handle all full-width HWIs.  Add a
15478         zero HWI if in_len isn't a full result.
15479         (wi::divmod_internal): Update accordingly.
15480         (wi::mul_internal): Likewise.  Simplify.
15481
15482 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15483             Sebastian Pop  <s.pop@samsung.com>
15484
15485         * graphite-poly.c (apply_poly_transforms): Simplify.
15486         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
15487         (print_isl_map): Same.
15488         (print_isl_union_map): Same.
15489         (print_isl_schedule): New.
15490         (debug_isl_schedule): New.
15491         * graphite-dependences.c (scop_get_reads): Do not call
15492         isl_union_map_add_map that is undocumented isl functionality.
15493         (scop_get_must_writes): Same.
15494         (scop_get_may_writes): Same.
15495         (scop_get_original_schedule): Remove.
15496         (scop_get_dependences): Do not call isl_union_map_compute_flow that
15497         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
15498         (compute_deps): Remove.
15499         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
15500         (debug_schedule_ast): New.
15501         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
15502         set_separate_option.
15503         (graphite_regenerate_ast_isl): Add dump.
15504         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
15505         from scop->transformed_schedule.
15506         (graphite_regenerate_ast_isl): Add more dump.
15507         * graphite-optimize-isl.c (optimize_isl): Set
15508         scop->transformed_schedule.  Check whether schedules are equal.
15509         (apply_poly_transforms): Move here.
15510         * graphite-poly.c (apply_poly_transforms): ... from here.
15511         (free_poly_bb): Static.
15512         (free_scop): Static.
15513         (pbb_number_of_iterations_at_time): Remove.
15514         (print_isl_ast): New.
15515         (debug_isl_ast): New.
15516         (debug_scop_pbb): New.
15517         * graphite-scop-detection.c (print_edge): Move.
15518         (print_sese): Move.
15519         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
15520         (build_scop_scattering): Remove.
15521         (create_pw_aff_from_tree): Assert instead of bailing out.
15522         (add_condition_to_pbb): Remove unused code, do not fail.
15523         (add_conditions_to_domain): Same.
15524         (add_conditions_to_constraints): Remove.
15525         (build_scop_context): New.
15526         (add_iter_domain_dimension): New.
15527         (build_iteration_domains): Initialize pbb->iterators.
15528         Call add_conditions_to_domain.
15529         (nested_in): New.
15530         (loop_at): New.
15531         (index_outermost_in_loop): New.
15532         (index_pbb_in_loop): New.
15533         (outermost_pbb_in): New.
15534         (add_in_sequence): New.
15535         (add_outer_projection): New.
15536         (outer_projection_mupa): New.
15537         (add_loop_schedule): New.
15538         (build_schedule_pbb): New.
15539         (build_schedule_loop): New.
15540         (embed_in_surrounding_loops): New.
15541         (build_schedule_loop_nest): New.
15542         (build_original_schedule): New.
15543         (build_poly_scop): Call build_original_schedule.
15544         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
15545         (free_poly_dr): Remove.
15546         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
15547         (free_poly_bb): Remove.
15548         (debug_loop_vec): Remove.
15549         (print_isl_ast): Declare.
15550         (debug_isl_ast): Declare.
15551         (scop_do_interchange): Remove.
15552         (scop_do_strip_mine): Remove.
15553         (scop_do_block): Remove.
15554         (flatten_all_loops): Remove.
15555         (optimize_isl): Remove.
15556         (pbb_number_of_iterations_at_time): Remove.
15557         (debug_scop_pbb): Declare.
15558         (print_schedule_ast): Declare.
15559         (debug_schedule_ast): Declare.
15560         (struct scop): Remove schedule.  Add original_schedule,
15561         transformed_schedule.
15562         (free_gimple_poly_bb): Remove.
15563         (print_generated_program): Remove.
15564         (debug_generated_program): Remove.
15565         (unify_scattering_dimensions): Remove.
15566         * sese.c (print_edge): ... here.
15567         (print_sese): ... here.
15568         (debug_edge): ... here.
15569         (debug_sese): ... here.
15570         * sese.h (print_edge): Declare.
15571         (print_sese): Declare.
15572         (dump_edge): Declare.
15573         (dump_sese): Declare.
15574
15575 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15576             Sebastian Pop  <s.pop@samsung.com>
15577
15578         * Makefile.in: Set ISLVER in site.exp.
15579
15580 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
15581
15582         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
15583         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
15584         through DECL_VALUE_EXPR for expansion.
15585
15586 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15587
15588         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
15589         the frame info after reload completed.
15590
15591 2016-01-25  Jeff Law  <law@redhat.com>
15592
15593         PR tree-optimization/69196
15594         PR tree-optimization/68398
15595         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
15596         tree-ssa-threadupdate.c.
15597         (determine_bb_domination_status): Prototype
15598         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
15599         (determine_bb_domination_status): No longer static.
15600         (valid_jump_thread_path): Remove code to detect characteristics
15601         of the jump thread path not associated with correctness.
15602         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
15603         Correct test for thread path length.  Count PHIs for real operands as
15604         statements that need to be copied.  Do not count ASSERT_EXPRs.
15605         Look at all the blocks in the thread path.  Compute and selectively
15606         filter thread paths based on threading through the latch, threading
15607         a multiway branch or crossing a multiway branch.
15608
15609 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15610
15611         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
15612         decl with __attribute__ ((unused)) annotation.
15613
15614 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
15615
15616         PR target/69421
15617         * tree-vect-stmts.c (vectorizable_condition): Check vectype
15618         of operands is compatible with a statement vectype.
15619
15620 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
15621
15622         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
15623         improve wording for mixed storage order support.
15624
15625 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
15626
15627         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
15628         (vcvt_u64_f64): Likewise.
15629         (vcvta_s64_f64): Likewise.
15630         (vcvta_u64_f64): Likewise.
15631         (vcvtm_s64_f64): Likewise.
15632         (vcvtm_u64_f64): Likewise.
15633         (vcvtn_s64_f64): Likewise.
15634         (vcvtn_u64_f64): Likewise.
15635         (vcvtp_s64_f64): Likewise.
15636         (vcvtp_u64_f64): Likewise.
15637
15638 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
15639
15640         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
15641         (arc_init): Check validity mll64 option.
15642         (arc_save_restore): Use double load/store instruction.
15643         (arc_expand_movmem): Likewise.
15644         (arc_split_move): Don't split if we have double load/store
15645         instructions. Returns a boolean.
15646         (arc_process_double_reg_moves): Change function to return boolean
15647         instead of a sequence of instructions.
15648         (arc_dwarf_register_span): New function.
15649         * config/arc/arc-protos.h (arc_split_move): Change prototype.
15650         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
15651         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
15652         (*movdf_insn): Likewise.
15653         * config/arc/arc.opt (mll64): New option.
15654         * config/arc/predicates.md (even_register_operand): New predicate.
15655         * doc/invoke.texi (ARC Options): Add mll64 documentation.
15656
15657 2016-01-25  Richard Biener  <rguenther@suse.de>
15658
15659         PR lto/69393
15660         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
15661         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
15662         DECL_NAMELESS.
15663         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
15664
15665 2016-01-25  Richard Biener  <rguenther@suse.de>
15666
15667         PR tree-optimization/69376
15668         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
15669         flag.
15670         (VN_INFO_ANTI_RANGE_P): New inline.
15671         (VN_INFO_RANGE_TYPE): Likewise.
15672         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
15673         SSA_NAME_ANTI_RANGE_P.
15674         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
15675         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15676         Properly query VN_INFO_RANGE_TYPE.
15677
15678 2016-01-25  Nick Clifton  <nickc@redhat.com>
15679
15680         PR target/66655
15681         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
15682
15683 2016-01-23  Tom de Vries  <tom@codesourcery.com>
15684
15685         PR tree-optimization/69426
15686         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
15687         removed clobber.
15688
15689 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
15690
15691         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
15692         "the the" with "the" in the comments.
15693         * ipa-devirt.c (build_type_inheritance_graph,
15694         update_type_inheritance_graph): Likewise.
15695         * tree.c (build_function_type_list_1): Likewise.
15696         * cfgloopmanip.c (scale_loop_profile): Likewise.
15697         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
15698         * gimple-ssa-split-paths.c
15699         (find_block_to_duplicate_for_splitting_paths): Likewise.
15700         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
15701         * expr.c (convert_move): Likewise.
15702         * var-tracking.c (vt_stack_adjustments): Likewise.
15703         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15704         * tree-vrp.c (test_for_singularity): Likewise.
15705
15706         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
15707         directly instead of building a temporary tree.
15708
15709         PR bootstrap/69434
15710         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
15711         remove <algorithm> include.
15712
15713 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15714
15715         PR target/69432
15716         * config/i386/i386.c: Include dojump.h.
15717         (expand_small_movmem_or_setmem,
15718         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
15719         fixes.
15720         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
15721         if dynamic_check != -1.
15722
15723 2016-01-21  Jeff Law  <law@redhat.com>
15724
15725         PR middle-end/69347
15726         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
15727         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
15728         into dominated_by_p.
15729         (cprop_into_successor_phis): Avoid unnecessary tests.
15730
15731 2016-01-22  Richard Henderson  <rth@redhat.com>
15732
15733         PR target/69416
15734         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
15735         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
15736
15737 2016-01-22  Michael Matz  <matz@suse.de>
15738
15739         * system.h (string, algorithm): Include only conditionally.
15740         (new): Include always under C++.
15741         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
15742         * final.c (toplevel): Ditto.
15743         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
15744         * genconditions.c (write_header): Make gencondmd.c define
15745         INCLUDE_STRING.
15746         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
15747
15748         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
15749         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
15750
15751 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15752
15753         PR target/68674
15754         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
15755
15756 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15757
15758         PR target/69403
15759         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
15760         define_insn_and_split.  Ensure operands[1] and operands[0] do not
15761         get assigned the same register.
15762
15763 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15764
15765         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
15766
15767 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15768
15769         * config/arm/arm-c.c (arm_pragma_target_parse):
15770         Remove warn_builtin_macro_redefined overwrite.
15771
15772 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15773
15774         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
15775         flag_non_call_exceptions compatibility.
15776
15777 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15778
15779         PR debug/66668
15780         * dwarf2out.c (add_child_die_after): New function.
15781         (dwarf_qual_info_t): New type.
15782         (dwarf_qual_info): New variable.
15783         (qualified_die_p): New function.
15784         (modified_type_die): For -fdebug-types-section, ensure
15785         canonical order of qualifiers.  Put qualified DIEs adjacent
15786         to the corresponding non-qualified type DIE and search there
15787         for existing qualified DIEs.
15788
15789 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15790
15791         * doc/extend.texi (scalar_storage_order type attribute): Document
15792         restriction on type punning and aliasing, and remove future tense.
15793
15794 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
15795
15796         PR target/69252
15797         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
15798         first stage.
15799
15800 2016-01-21  Jeff Law  <law@redhat.com>
15801
15802         PR middle-end/69347
15803         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
15804         useless call to record_temporary_equivalences.
15805         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
15806         allocate 10 slots in the bb_path vector and let it grow as needed.
15807         (fsm_find_control_statement_thread_paths): Similarly for the next_path
15808         vector.
15809
15810 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15811
15812         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
15813         Detangle.
15814         * configure: Regenerate.
15815
15816 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
15817
15818         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
15819         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
15820
15821 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
15822
15823         PR middle-end/66178
15824         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15825         drop EXPAND_INITIALIZER.
15826         * rtl.h (contains_symbolic_reference_p): Declare.
15827         * rtlanal.c (contains_symbolic_reference_p): New function.
15828         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
15829         a subtraction into a NOT if symbolic constants are involved.
15830
15831 2016-01-21  Anton Blanchard  <anton@samba.org>
15832             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15833
15834         PR target/63354
15835         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
15836         #define.
15837         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
15838         function.
15839
15840 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15841
15842         * config/microblaze/microblaze.c
15843         (get_branch_target): New.
15844         (insert_wic_for_ilb_runout): New.
15845         (insert_wic): New.
15846         (microblaze_machine_dependent_reorg): New.
15847         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
15848         * config/microblaze/microblaze.md
15849         (UNSPEC_IPREFETCH): Define.
15850         (iprefetch): New pattern
15851         * config/microblaze/microblaze.opt
15852         (mxl-prefetch): New flag.
15853
15854 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15855
15856         * config/microblaze/microblaze.h
15857         (FIXED_REGISTERS): Update in macro.
15858         (CALL_USED_REGISTERS): Update in macro.
15859
15860 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
15861
15862         PR rtl-optimization/68920
15863         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
15864         moves.
15865
15866 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15867
15868         PR rtl-optimization/68990
15869         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
15870         pseudo instead of inheritance ones.
15871
15872 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15873             Nick Clifton  <nickc@redhat.com>
15874
15875         PR target/69129
15876         PR target/69012
15877         * config/mips/mips.c (mips_compute_frame_info): Initialise
15878         args_size and hard_frame_pointer_offset fields of the frame
15879         structure before calling mips_global_pointer.
15880
15881 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15882
15883         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
15884         label reference.
15885         * configure: Regenerate.
15886
15887 2016-01-21  Richard Biener  <rguenther@suse.de>
15888
15889         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
15890
15891 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15892
15893         * config/s390/s390.c (s390_asm_declare_function_size): Add code
15894         to actually emit the .size directive.
15895
15896 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
15897              Jakub Jelinek  <jakub@redhat.com>
15898
15899         PR target/69187
15900         PR target/65624
15901         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
15902         args array size by one to avoid buffer overflow.
15903
15904 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15905
15906         * config/s390/s390.md (pool_section_start): Use switch_to_section
15907         to select proper read-only data section instead of hardcoding
15908         .rodata.
15909         (pool_section_end): Use switch_to_section to match the above.
15910
15911 2016-01-21  Richard Biener  <rguenther@suse.de>
15912
15913         PR tree-optimization/69378
15914         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
15915         (set_ssa_val_to): Use it for dominance checks taking into
15916         account not executable edges.
15917
15918 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15919
15920         PR c++/69355
15921         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
15922         for bitsize instead of GET_MODE_PRECISION (mode).
15923
15924 2016-01-20  Martin Sebor  <msebor@redhat.com>
15925
15926         PR c/52291
15927         * extend.texi (__sync Builtins): Clarify the semantics of
15928         __sync_fetch_and_OP built-ins on pointers.
15929         (__atomic Builtins): Same.
15930
15931 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15932             Sebastian Pop  <s.pop@samsung.com>
15933
15934         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
15935         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
15936         (is_valid_rename): Same.
15937         (translate_isl_ast_to_gimple::get_rename): Same.
15938         (translate_isl_ast_to_gimple::rename_all_uses): Same.
15939         (translate_isl_ast_to_gimple::rename_uses): Same.
15940         (get_new_name): Check for close_phi nodes.
15941         (copy_loop_phi_args): Use phi_node_kind.
15942         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
15943         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
15944
15945 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15946             Sebastian Pop  <s.pop@samsung.com>
15947
15948         Revert commit r229783.
15949         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15950         Remove use of parameter_rename_map.
15951         (copy_def): Remove.
15952         (copy_internal_parameters): Remove.
15953         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
15954         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
15955         (free_sese_info): Do not free parameter_rename_map.
15956         (set_rename): Do not use parameter_rename_map.
15957         (rename_uses): Update call to set_rename.
15958         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
15959         * sese.h (parameter_rename_map_t): Remove.
15960         (struct sese_info_t): Remove field parameter_rename_map.
15961
15962 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15963             Sebastian Pop  <s.pop@samsung.com>
15964
15965         * graphite-isl-ast-to-gimple.c: Fix comment.
15966         * graphite-scop-detection.c (defined_in_loop_p): New.
15967         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
15968         names defined in loop.
15969
15970 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15971             Sebastian Pop  <s.pop@samsung.com>
15972
15973         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15974         Discard unstructured if-then-else regions.
15975
15976 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15977             Sebastian Pop  <s.pop@samsung.com>
15978
15979         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
15980         (cleanup_loop_iter_dom): Remove.
15981         (build_loop_iteration_domains): Remove.
15982         (build_scop_context): Remove.
15983         (build_scop_iteration_domain): Remove.
15984         (add_loop_constraints): New.
15985         (build_iteration_domains): New.
15986         (build_poly_scop): Call build_iteration_domains.
15987
15988 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15989             Sebastian Pop  <s.pop@samsung.com>
15990
15991         * graphite-scop-detection.c
15992         (scop_detection::harmful_loop_in_region): Free dom and loops.
15993         (scop_detection::loop_body_is_valid_scop): Free bbs.
15994
15995 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15996             Sebastian Pop  <s.pop@samsung.com>
15997
15998         * graphite-scop-detection.c (record_loop_in_sese): New.
15999         (gather_bbs::before_dom_children): Call record_loop_in_sese.
16000         (build_scops): Remove call to build_sese_loop_nests.
16001         * sese.c (sese_record_loop): Remove.
16002         (build_sese_loop_nests): Remove.
16003         (new_sese_info): Remove region->loops.
16004         (free_sese_info): Same.
16005         * sese.h (sese_contains_loop): Same.
16006         (build_sese_loop_nests): Remove.
16007         (sese_contains_loop): Remove.
16008
16009 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16010             Sebastian Pop  <s.pop@samsung.com>
16011
16012         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
16013         loop_is_valid_in_scop.
16014         (scop_detection::harmful_stmt_in_region): Renamed
16015         harmful_loop_in_region.
16016         Call loop_is_valid_in_scop.
16017
16018 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16019             Sebastian Pop  <s.pop@samsung.com>
16020
16021         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
16022         isl_ast_node_mark.
16023
16024 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16025             Sebastian Pop  <s.pop@samsung.com>
16026
16027         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
16028         * graphite.h (struct poly_bb): Remove field is_reduction.
16029         (PBB_IS_REDUCTION): Remove.
16030
16031 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16032             Sebastian Pop  <s.pop@samsung.com>
16033
16034         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
16035         (add_pdr_constraints): Same.
16036         (scop_get_reads): Same.
16037         (scop_get_must_writes): Same.
16038         (scop_get_may_writes): Same.
16039         (scop_get_original_schedule): Same.
16040         (extend_schedule): Same.
16041         (apply_schedule_on_deps): Same.
16042         (carries_deps): Same.
16043         (compute_deps): Same.
16044         (scop_get_dependences): Same.
16045         * graphite-isl-ast-to-gimple.c
16046         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
16047         * graphite-optimize-isl.c (get_schedule_for_band): Same.
16048         (get_schedule_for_band_list): Same.
16049         (get_schedule_map): Same.
16050         (apply_schedule_map_to_scop): Same.
16051         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16052         (build_loop_iteration_domains): Same.
16053         (add_condition_to_pbb): Same.
16054         (add_param_constraints): Same.
16055         (pdr_add_memory_accesses): Same.
16056         (pdr_add_data_dimensions): Same.
16057
16058 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16059
16060         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
16061         requirements.
16062
16063 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16064
16065         * common.opt (feliminate-dwarf2-dups): Replace references to
16066         "DWARF 2" with just "DWARF".
16067         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
16068         * doc/extend.texi: Likewise.
16069         * doc/cpp.texi: Likewise.
16070         * doc/invoke.texi: Likewise.
16071         (Option Summary): Add -gdwarf to list of Debugging Options.
16072         (Debugging Options): Document -gdwarf.
16073         * doc/contrib.texi: Spell "DWARF" like that.
16074
16075 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16076
16077         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
16078         warning.  Fix up formatting.
16079
16080         PR middle-end/67653
16081         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
16082         attempt to mark memory input operand addressable and
16083         call prepare_gimple_addressable in that case.  Don't adjust
16084         input_location for diagnostics, use error_at instead.
16085
16086 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
16087
16088         * config/rs6000/ppc-auxv.h: New file.
16089         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
16090         (cpu_is): Likewise.
16091         (cpu_supports): Likewise.
16092         * config/rs6000/rs6000.c: include "ppc-auxv.h".
16093         (cpu_is_info): New variable.
16094         (cpu_supports_info): Likewise.
16095         (tcb_verification_symbol): Likewise.
16096         (cpu_builtin_p): Likewise.
16097         (cpu_expand_builtin): New function.
16098         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
16099         (rs6000_init_builtins): Likewise.
16100         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
16101         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
16102         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
16103         * configure: Regenerate.
16104         * config.in: Likewise.
16105         * doc/extend.texi (PowerPC Built-in Functions): Document
16106         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
16107
16108 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
16109
16110         PR target/68609
16111         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
16112         domain check.
16113         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
16114         for V4SFmode.
16115
16116 2016-01-20  Richard Henderson  <rth@redhat.com>
16117
16118         PR bootstrap/69343
16119         PR bootstrap/69339
16120         PR tree-opt/68964
16121         Revert:
16122         * tree.c (tm_define_builtin): New.
16123         (find_tm_vector_type): New.
16124         (build_tm_vector_builtins): New.
16125         (build_common_builtin_nodes): Call it.
16126
16127 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
16128
16129         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
16130         (arm_fp_ok): Likewise.
16131         (arm_fp): Likewise.
16132         (arm_crypto): Likewise.
16133
16134 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16135             Richard Biener  <rguenther@suse.de>
16136
16137         PR tree-optimization/69328
16138         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
16139         vectors have same number of elements.
16140         (vectorizable_condition): Fix masked version recognition.
16141
16142 2016-01-20  Richard Biener  <rguenther@suse.de>
16143
16144         PR tree-optimization/69345
16145         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16146         (VN_INFO_PTR_INFO): Likewise.
16147         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16148         info when it is equal between non-dominating SSA names.
16149         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16150         Make sure to look at original SSA infos.
16151
16152 2016-01-20  Jeff Law  <law@redhat.com>
16153
16154         PR target/25114
16155         * config/m68k/predicates.md (pow2_m1_operand): New predicate
16156         extracted from ...
16157         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16158         (pc_or_label_operand): New predicate.
16159         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16160         tests for small integers that are 2^n - 1.
16161
16162 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
16163
16164         * doc/invoke.texi (Options Summary): Add '.' after @xref.
16165
16166 2016-01-19  Jeff Law  <law@redhat.com>
16167
16168         PR middle-end/69347
16169         * tree-ssa-threadbackwards.c
16170         (fsm_find_control_statement_thread_paths): Do not try to lookup
16171         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16172
16173 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16174
16175         * doc/lto.texi: Remove text that says only Gold has linker plugin
16176         support.
16177
16178 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
16179
16180         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16181         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16182         the DIE accordingly.
16183         (modified_type_die): Add REVERSE parameter and pass it recursively,
16184         as well as to base_type_die.  Adjust presence check accordingly.
16185         (base_type_for_mode): Adjust call to modified_type_die.
16186         (add_type_attribute): Add REVERSE parameter and pass it to
16187         modified_type_die.
16188         (generic_parameter_die): Adjust call to add_type_attribute.
16189         (add_scalar_info): Likewise.
16190         (add_subscript_info): Likewise.
16191         (gen_array_type_die): Likewise.
16192         (gen_descr_array_type_die): Likewise.
16193         (gen_entry_point_die): Likewise.
16194         (gen_enumeration_type_die): Likewise.
16195         (gen_formal_parameter_die): Likewise.
16196         (gen_subprogram_die): Likewise.
16197         (gen_variable_die ): Likewise.
16198         (gen_const_die): Likewise.
16199         (gen_field_die): Likewise.
16200         (gen_pointer_type_die): Likewise.
16201         (gen_reference_type_die): Likewise.
16202         (gen_ptr_to_mbr_type_die): Likewise.
16203         (gen_inheritance_die): Likewise.
16204         (gen_subroutine_type_die): Likewise.
16205         (gen_typedef_die): Likewise.
16206         (force_type_die): Adjust call to modified_type_die.
16207
16208 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
16209
16210         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16211         flow throughout the file.  Fix broken link to Objective-C 2.0
16212         documentation.
16213         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16214         errors.
16215
16216 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16217
16218         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16219
16220 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16221
16222         PR ipa/66223
16223         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16224         (maybe_record_node): Record cxa_pure_virtual as the only possible
16225         target if there are not ohter candidates.
16226         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16227
16228 2016-01-19  Richard Biener  <rguenther@suse.de>
16229
16230         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16231         (get_memory_order): Likewise.
16232
16233 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16234
16235         * tree-vect-stmts.c (vectorizable_store): Check
16236         rhs vectype.
16237
16238 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
16239
16240         PR jit/68446
16241         * gcc.c (driver::decode_argv): Add call to
16242         init_opts_obstack before init_options_struct.
16243         * opts.c (init_opts_obstack): Remove idempotency.
16244         (init_options_struct): Replace call to init_opts_obstack
16245         with a gcc_assert to verify that it has already been called.
16246         * toplev.c (toplev::main): Add call to init_opts_obstack before
16247         calls to init_options_struct.
16248         (toplev::finalize): Move cleanup of opts_obstack next to
16249         cleanup of save_decoded_options, clearing the latter, and
16250         save_decoded_options_count.
16251
16252 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16253
16254         PR target/69135
16255         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
16256         attribute to unconditional.  Remove %? from output template.
16257
16258 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16259             Jiong Wang  <jiong.wang@arm.com>
16260
16261         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
16262         generated from different expand order.
16263
16264 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16265
16266         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16267         Add support for CCMP costing.
16268
16269 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16270
16271         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
16272         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
16273         (fccmpe<mode>): Likewise.
16274         (fcmp): Rename to fcmp and globalize pattern.
16275         (fcmpe): Likewise.
16276         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
16277         (aarch64_gen_ccmp_next): Add FP support.
16278
16279 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16280
16281         * target.def (gen_ccmp_first): Update documentation.
16282         (gen_ccmp_next): Likewise.
16283         * doc/tm.texi (gen_ccmp_first): Update documentation.
16284         (gen_ccmp_next): Likewise.
16285         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
16286         expand_ccmp_expr_1.  Improve comments.
16287         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
16288         (ccmp_ior<mode>): Remove pattern.
16289         (cmp<mode>): Remove expand.
16290         (cmp): Globalize pattern.
16291         (cstorecc4): Use cc_register.
16292         (mov<mode>cc): Remove ccmp_cc_register check.
16293         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
16294         Simplify after removal of CC_DNE/* modes.
16295         (aarch64_ccmp_mode_to_code): Remove.
16296         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16297         In 'k' case use integer as condition.
16298         (aarch64_nzcv_codes): Remove inverted cases.
16299         (aarch64_code_to_ccmode): Remove.
16300         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16301         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16302         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16303         pattern.  Return the comparison with CC register.  Invert conditions
16304         when bitcode is OR.
16305         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16306         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16307
16308 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16309
16310         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16311         instrumented_version.
16312
16313 2016-01-19  Richard Biener  <rguenther@suse.de>
16314
16315         PR tree-optimization/69336
16316         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16317         handled components with get_ref_base_and_extent.
16318         (equal_mem_array_ref_p): Adjust.
16319
16320 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16321
16322         PR debug/65779
16323         * shrink-wrap.c: Include valtrack.h.
16324         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16325         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16326         in between insn and where it will be moved to.  Call
16327         dead_debug_insert_temp.
16328         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16329         first and dead_debug_local_finish at the end.
16330         For uses and defs bitmap, handle all regs in between REGNO and
16331         END_REGNO, not just the first one.
16332
16333 2016-01-19  Richard Biener  <rguenther@suse.de>
16334
16335         PR tree-optimization/69352
16336         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16337         (equal_mem_array_ref_p): Constrain size and max size properly.
16338         Compare the reverse flag.
16339
16340 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16341
16342         * ira.c (ira): Update regstat data if we deleted insns.
16343
16344 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16345
16346         PR rtl-optimization/68955
16347         PR rtl-optimization/64557
16348         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16349         here.  Fix up formatting.
16350         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16351
16352 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16353
16354         PR lto/69133
16355         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16356         assume that the node has body.
16357         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16358         check.
16359
16360 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16361
16362         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16363         thunks.
16364
16365 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16366
16367         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16368         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16369
16370 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16371             Martin Liska  <mliska@suse.cz>
16372             Michael Matz  <matz@suse.de>
16373
16374         * Makefile.in (OBJS): Add new source files.
16375         (GTFILES): Add hsa.c.
16376         * common.opt (disable_hsa): New variable.
16377         (-Whsa): New warning.
16378         * config.in (ENABLE_HSA): New.
16379         * configure.ac: Treat hsa differently from other accelerators.
16380         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16381         $enable_offloading.
16382         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16383         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16384         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16385         --with-hsa-kmt-lib.
16386         * doc/invoke.texi (-Whsa): Document.
16387         (hsa-gen-debug-stores): Likewise.
16388         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16389         to invoke offload compiler for hsa acclerator.
16390         * opts.c (common_handle_option): Determine whether HSA offloading
16391         should be performed.
16392         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16393         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16394         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16395         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16396         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16397         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16398         GF_OMP_FOR_KIND_GRID_LOOP.
16399         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16400         (pp_gimple_stmt_1): Likewise.
16401         * gimple-walk.c (walk_gimple_stmt): Likewise.
16402         * gimple.c (gimple_build_omp_grid_body): New function.
16403         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16404         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16405         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16406         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16407         GF_OMP_TEAMS_GRID_PHONY.
16408         (gimple_statement_omp_single_layout): Updated comments.
16409         (gimple_build_omp_grid_body): New function.
16410         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16411         (gimple_omp_for_grid_phony): New function.
16412         (gimple_omp_for_set_grid_phony): Likewise.
16413         (gimple_omp_parallel_grid_phony): Likewise.
16414         (gimple_omp_parallel_set_grid_phony): Likewise.
16415         (gimple_omp_teams_grid_phony): Likewise.
16416         (gimple_omp_teams_set_grid_phony): Likewise.
16417         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16418         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16419         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16420         (BUILT_IN_GOMP_TARGET): Updated type.
16421         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16422         (adjust_for_condition): New function.
16423         (get_omp_for_step_from_incr): Likewise.
16424         (extract_omp_for_data): Moved parts to adjust_for_condition and
16425         get_omp_for_step_from_incr.
16426         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16427         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16428         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16429         (scan_omp_parallel): Do not create child functions for phony
16430         constructs.
16431         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16432         (scan_omp_1_op): Checking assert we are not remapping to
16433         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16434         (parallel_needs_hsa_kernel_p): New function.
16435         (expand_parallel_call): Register apprpriate parallel child
16436         functions as HSA kernels.
16437         (grid_launch_attributes_trees): New type.
16438         (grid_attr_trees): New variable.
16439         (grid_create_kernel_launch_attr_types): New function.
16440         (grid_insert_store_range_dim): Likewise.
16441         (grid_get_kernel_launch_attributes): Likewise.
16442         (get_target_argument_identifier_1): Likewise.
16443         (get_target_argument_identifier): Likewise.
16444         (get_target_argument_value): Likewise.
16445         (push_target_argument_according_to_value): Likewise.
16446         (get_target_arguments): Likewise.
16447         (expand_omp_target): Call get_target_arguments instead of looking
16448         up for teams and thread limit.
16449         (grid_expand_omp_for_loop): New function.
16450         (grid_arg_decl_map): New type.
16451         (grid_remap_kernel_arg_accesses): New function.
16452         (grid_expand_target_kernel_body): New function.
16453         (expand_omp): Call it.
16454         (lower_omp_for): Do not emit phony constructs.
16455         (lower_omp_taskreg): Do not emit phony constructs but create for them
16456         a temporary variable receiver_decl.
16457         (lower_omp_taskreg): Do not emit phony constructs.
16458         (lower_omp_teams): Likewise.
16459         (lower_omp_grid_body): New function.
16460         (lower_omp_1): Call it.
16461         (grid_reg_assignment_to_local_var_p): New function.
16462         (grid_seq_only_contains_local_assignments): Likewise.
16463         (grid_find_single_omp_among_assignments_1): Likewise.
16464         (grid_find_single_omp_among_assignments): Likewise.
16465         (grid_find_ungridifiable_statement): Likewise.
16466         (grid_target_follows_gridifiable_pattern): Likewise.
16467         (grid_remap_prebody_decls): Likewise.
16468         (grid_copy_leading_local_assignments): Likewise.
16469         (grid_process_kernel_body_copy): Likewise.
16470         (grid_attempt_target_gridification): Likewise.
16471         (grid_gridify_all_targets_stmt): Likewise.
16472         (grid_gridify_all_targets): Likewise.
16473         (execute_lower_omp): Call grid_gridify_all_targets.
16474         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
16475         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
16476         (tree_omp_clause): Added union field dimension.
16477         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
16478         * tree.c (omp_clause_num_ops): Added number of arguments of
16479         OMP_CLAUSE__GRIDDIM_.
16480         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
16481         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
16482         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
16483         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
16484         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
16485         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
16486         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
16487         * tree-pass.h (make_pass_gen_hsail): Declare.
16488         (make_pass_ipa_hsa): Likewise.
16489         * ipa-hsa.c: New file.
16490         * lto-section-in.c (lto_section_name): Add hsa section name.
16491         * lto-streamer.h (lto_section_type): Add hsa section.
16492         * timevar.def (TV_IPA_HSA): New.
16493         * hsa-brig-format.h: New file.
16494         * hsa-brig.c: New file.
16495         * hsa-dump.c: Likewise.
16496         * hsa-gen.c: Likewise.
16497         * hsa.c: Likewise.
16498         * hsa.h: Likewise.
16499         * toplev.c (compile_file): Call hsa_output_brig.
16500         * hsa-regalloc.c: New file.
16501
16502 2016-01-18  Jeff Law  <law@redhat.com>
16503
16504         PR tree-optimization/69320
16505         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
16506         ranged object, do nothing if the RHS constant is not [0..1].
16507         (optimize_stmt): Comparing a boolean ranged object against a
16508         constant outside [0..1] results in a compile-time constant.
16509
16510         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
16511         test.
16512
16513 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16514
16515         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16516         (Option Summary): Update to reflect new section and moved options.
16517         (C++ Dialect Options): Move -fstats to new section.
16518         (Debugging Options): Move all dump, statistics, and other GCC
16519         developer options to new section.  Rewrite section introduction
16520         and re-order remaining options to put the more basic ones first.
16521         (Optimization Options): Move -fira-verbose and -flto-report* to
16522         new section.
16523         (Developer Options): New section incorporating moved options.
16524         * doc/cppopts.texi (-dM): Update cross-reference.
16525
16526 2016-01-18  Richard Henderson  <rth@redhat.com>
16527
16528         PR target/69176
16529         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
16530         operands to pseudo only if CSE is expected.  Split long immediate
16531         operands only after reload, and for the stack pointer.
16532         (*add<GPI>3_pluslong): Remove.
16533         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
16534         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
16535         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
16536         (*add<GPI>3 peepholes): New.
16537         (*add<GPI>3 splitters): New.
16538         * config/aarch64/constraints.md (Upl): New.
16539         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
16540
16541 2016-01-18  Richard Biener  <rguenther@suse.de>
16542
16543         PR tree-optimization/69297
16544         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
16545         stmt at most once.
16546         (vect_bb_vectorization_profitable_p): Clear visited flag again.
16547
16548 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16549
16550         PR middle-end/68542
16551         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
16552         of mixind vector and scalar types.
16553         (fold_relational_const): Add handling of vector
16554         comparison with boolean result.
16555         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
16556         comparison of vector operands with boolean result for EQ/NE only.
16557         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
16558         (verify_gimple_cond): Likewise.
16559         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
16560         valid type of VAL.
16561
16562 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
16563
16564         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
16565         !TARGET_OCTEON.
16566
16567 2016-01-18  Richard Biener  <rguenther@suse.de>
16568
16569         PR middle-end/69308
16570         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
16571
16572 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16573
16574         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
16575
16576 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16577
16578         * omp-low.c (set_oacc_fn_attrib): Make extern.
16579         * omp-low.h (set_oacc_fn_attrib): Declare.
16580         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
16581         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
16582         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
16583         Add and handle function parameter oacc_kernels_p.
16584         (find_reduc_addr, get_omp_data_i_param): New function.
16585         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
16586         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
16587         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
16588         Calculate dominance info.  Skip loops that are not in a kernels region
16589         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
16590         (pass_parallelize_loops::execute): Call parallelize_loops with
16591         oacc_kernels_p argument.
16592         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
16593         New member function.
16594         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
16595         * passes.def: Add argument to pass_parallelize_loops instantation.
16596
16597 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16598
16599         * tree-parloops.c (pass_parallelize_loops::execute): Allow
16600         pass_parallelize_loops to be run outside the loop pipeline.
16601
16602 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16603
16604         * tree-scalar-evolution.c (follow_copies_to_constant): New.
16605         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
16606
16607 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16608
16609         PR target/63679
16610         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
16611         using get_ref_base_and_extent.
16612         (equal_mem_array_ref_p): New.
16613         (hashable_expr_equal_p): Add call to previous.
16614
16615 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16616
16617         PR target/63679
16618         * tree-sra.c (disqualified_constants, constant_decl_p): New.
16619         (sra_initialize): Allocate disqualified_constants.
16620         (sra_deinitialize): Free disqualified_constants.
16621         (disqualify_candidate): Update disqualified_constants when appropriate.
16622         (create_access): Scan for constant-pool entries as we go along.
16623         (scalarizable_type_p): Add check against type_contains_placeholder_p.
16624         (maybe_add_sra_candidate): Allow constant-pool entries.
16625         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
16626         (initialize_constant_pool_replacements): New.
16627         (sra_modify_assign): Avoid mangling assignments created by previous,
16628         and don't generate writes into constant pool.
16629         (sra_modify_function_body): Call initialize_constant_pool_replacements.
16630
16631 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16632
16633         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
16634         andnot instruction.
16635         (scalar_chain::convert_op): Likewise.
16636         * config/i386/i386.md (*andndi3_doubleword): New.
16637
16638 2016-01-18  Richard Biener  <rguenther@suse.de>
16639
16640         PR tree-optimization/69170
16641         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
16642         building a vector from scalar results of a pattern stmt.
16643
16644 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
16645
16646         * haifa-sched.c (autopref_multipass_init): Work around
16647         -Wmaybe-uninitialized warning.
16648
16649 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16650
16651         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
16652         against the constant 0.
16653
16654 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16655
16656         PR tree-optimization/68799
16657         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
16658         look up phi candidates in the statement-candidate map.
16659         (phi_add_costs): Likewise.
16660         (record_phi_increments): Likewise.
16661         (phi_incr_cost): Likewise.
16662         (ncd_with_phi): Likewise.
16663         (all_phi_incrs_profitable): Likewise.
16664
16665 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
16666
16667         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
16668         -Wmaybe-uninitialized warning.
16669
16670 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
16671
16672         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16673         (Option Summary): Update to reflect new section and moved options.
16674         (C++ Dialect Options): Move -fvtable-verify and related options.
16675         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
16676         and profiling-related options.
16677         (Optimization Options): Move profile generation options and
16678         -fstack-protector and related options.
16679         (Instrumentation Options): New section incorporating moved options.
16680         (Code Generation Options): Move -finstrument-functions and
16681         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
16682
16683 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16684
16685         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
16686
16687 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16688
16689         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
16690
16691 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
16692
16693         * hash-table.h (hash_table::empty): Turn into an inline wrapper
16694         that checks whether the table is already empty.  Rename the
16695         original implementation to...
16696         (hash_table::empty_slot): ...this new private function.
16697
16698 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
16699
16700         PR diagnostic/68899
16701         * diagnostic-show-locus.c (layout::print_source_line): Move x
16702         offset of line until after call to
16703         get_line_width_without_trailing_whitespace.
16704
16705 2016-01-15  Jeff Law  <law@redhat.com>
16706
16707         PR tree-optimization/69270
16708         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
16709         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
16710         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
16711         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
16712         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16713         ssa_name_has_boolean_range and constant_boolean_node.
16714
16715 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16716
16717         PR rtl-optimization/69030
16718         * lra-spills.c (remove_pseudos): Check nrefs and make the function
16719         returning bool.
16720         (spill_pseudos): Delete debug insn for dead pseudo.
16721         (lra_spill): Initiate spill_hard_reg and slots memory separately.
16722
16723 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
16724
16725         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
16726         New.
16727         (TYPES_UNOPUS): Likewise.
16728         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
16729         builtin type, from UNOP to UNOPUS.
16730         (lbtruncuv4sf): Likewise.
16731         (lbtruncuv2df): Likewise.
16732         (lrounduv2sf): Likewise.
16733         (lrounduv4sf): Likewise.
16734         (lrounduv2df): Likewise.
16735         (lroundusf): Likewise.
16736         (lroundusf): Likewise.
16737         (lceiluv2sf): Likewise.
16738         (lceiluv4sf): Likewise.
16739         (lceiluv2df): Likewise.
16740         (lceilusf): Likewise.
16741         (lceiludf): Likewise.
16742         (lflooruv2sf): Likewise.
16743         (lflooruv4sf): Likewise.
16744         (lflooruv2df): Likewise.
16745         (lfloorusf): Likewise.
16746         (lfloorudf): Likewise.
16747         (lfrintnuv2sf): Likewise.
16748         (lfrintnuv4sf): Likewise.
16749         (lfrintnuv2df): Likewise.
16750         (lfrintnusf): Likewise.
16751         (lfrintnudf): Likewise.
16752         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
16753         conversion.
16754         (vcvtq_u32_f32): Likewise.
16755         (vcvtq_u64_f64): Likewise.
16756         (vcvta_u32_f32): Likewise.
16757         (vcvtaq_u32_f32): Likewise.
16758         (vcvtaq_u64_f64): Likewise.
16759         (vcvtm_u32_f32): Likewise.
16760         (vcvtmq_u32_f32): Likewise.
16761         (vcvtmq_u64_f64): Likewise.
16762         (vcvtn_u32_f32): Likwise.
16763         (vcvtnq_u32_f32): Likewise.
16764         (vcvtnq_u64_f64): Likewise.
16765         (vcvtp_u32_f32): Likewise.
16766         (vcvtpq_u32_f32): Likewise.
16767         (vcvtpq_u64_f64): Likewise.
16768         (vcvtmd_u64_f64): Likewise.
16769         (vcvtms_u32_f32): Likewise.
16770         (vcvtad_u64_f64): Likewise.
16771         (vcvtas_u32_f32): Likewise.
16772         (vcvtnd_u64_f64): Likewise.
16773         (vcvtns_u32_f32): Likewise.
16774         (vcvtpd_u64_f64): Likewise.
16775         (vcvtps_u32_f32): Likewise.
16776
16777 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16778
16779         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
16780         CSEL of zero_extended registers.
16781
16782 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16783
16784         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16785         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
16786
16787 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16788
16789         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
16790         false when argument string is not found in the attributes table
16791         at all.
16792
16793 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
16794
16795         PR target/68609
16796         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
16797         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
16798         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
16799         precision estimate.
16800
16801 2016-01-15  Richard Biener  <rguenther@suse.de>
16802
16803         PR tree-optimization/66856
16804         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
16805         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
16806         (vect_create_new_slp_node): Increment stmt reference count.
16807         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
16808         an SLP tree before swapping operands.
16809         (vect_build_slp_tree): Likewise.
16810         (destroy_bb_vec_info): Free stmt info after SLP instances.
16811         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
16812         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
16813         (STMT_VINFO_NUM_SLP_USES): New macro.
16814
16815 2016-01-15  Richard Biener  <rguenther@suse.de>
16816
16817         PR debug/69137
16818         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
16819         (add_linkage_name): ... here.
16820         (gen_typedef_die): Use add_linkage_name_raw instead of
16821         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
16822         if necessary.
16823
16824 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
16825
16826         * gimplify.c (oacc_default_clause): Decode reference and pointer
16827         types for both kernels and parallel regions.
16828
16829 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16830
16831         PR middle-end/69246
16832         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
16833
16834 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16835
16836         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
16837         (convert_scalars_to_vector): Likewise.
16838
16839 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
16840
16841         * doc/extend.texi (Type Traits): Fix grammar.
16842
16843 2016-01-15  Martin Jambor  <mjambor@suse.cz>
16844
16845         * tree-inline.c (remap_decl): Use existing dclarations if
16846         remapping a type and prevent_decl_creation_for_types.
16847         (replace_locals_stmt): Do an initial remapping of non-VLA typed
16848         decls first.  Do real remapping with
16849         prevent_decl_creation_for_types set.
16850         * tree-inline.h (copy_body_data): New field
16851         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
16852         padding.
16853
16854 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16855
16856         * config/s390/s390.opt (mmvcle): More verbose help text.
16857
16858 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16859
16860         * config/s390/s390.opt: Add period to -mzvector option text.
16861
16862 2016-01-15  Richard Biener  <rguenther@suse.de>
16863
16864         PR tree-optimization/68961
16865         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
16866         of invariants in stores again.
16867
16868 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16869
16870         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
16871
16872 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16873
16874         * config/i386/i386.c (ix86_expand_branch): Don't split
16875         DI mode xor instruction to SI mode.
16876
16877 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16878
16879         PR ipa/68148
16880         * ipa-icf.c (sem_function::merge): Virtual functions may become
16881         reachable even if they address is not taken and there are no
16882         idrect calls.
16883
16884 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16885
16886         * lto-streamer-out.c (subtract_estimated_size): New function.
16887         (get_symbol_initial_value): Use it.
16888
16889 2016-01-15  Christian Bruel  <christian.bruel@st.com>
16890
16891         PR target/65837
16892         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
16893         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
16894         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
16895         use add_builtin_function_ext_scope instead of add_builtin_function.
16896         (neon_set_p, neon_crypto_set_p): Remove.
16897         (arm_init_builtins): Always call arm_init_neon_builtins and
16898         arm_init_crypto_builtins.
16899         (arm_expand_builtin): Check that builtins are allowed for the arch.
16900         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
16901         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
16902         arm_init_neon_builtins call.
16903
16904 2016-01-15  Richard Biener  <rguenther@suse.de>
16905
16906         PR tree-optimization/69117
16907         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
16908         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
16909         of the leader conservatively.
16910         (free_scc_vn): Restore original SSA name infos.
16911
16912 2016-01-14  Jeff Law  <law@redhat.com>
16913
16914         PR tree-optimization/69270
16915         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
16916         single bit of precision, verify it's also unsigned.
16917         (record_edge_info): Use constant_boolean_node rather than fold_convert
16918         to convert boolean_true/boolean_false to the right type.
16919
16920 2016-01-14  Richard Henderson  <rth@redhat.com>
16921
16922         PR rtl-opt/69014
16923         * loop-doloop.c (record_reg_sets): New.
16924         (doloop_optimize): Reject the transform if the sequence
16925         clobbers registers live at the end of the loop block.
16926         (doloop_optimize_loops): Enable df_live if needed.
16927
16928 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16929
16930         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
16931         * config/rs6000/rs6000.c: Likewise.
16932         * config/rs6000/rs6000.h: Likewise.
16933         * config/rs6000/rs6000.md: Likewise.
16934         * doc/extend.texi: Likewsie.
16935
16936 2016-01-14  Jeff Law  <law@redhat.com>
16937
16938         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
16939         typo.
16940
16941 2016-01-14  Richard Henderson  <rth@redhat.com>
16942
16943         PR c/69272
16944         PR tree-opt/68964
16945         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
16946         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
16947         instead of builtin_decl_declared_p to test for declaration.
16948
16949 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
16950
16951         * doc/loop.texi (Loop Analysis and Representation): Document
16952         loop_depth function.
16953
16954 2016-01-14  Tom de Vries  <tom@codesourcery.com>
16955
16956         PR tree-optimization/68773
16957         * omp-low.c (expand_omp_target): Don't set force_output.
16958         * varpool.c (varpool_node::get_create): Same.
16959         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
16960         offload_funcs with force_output.
16961
16962 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16963
16964         PR debug/69244
16965         * lra-eliminations.c (move_plus_up): Don't change anything if either
16966         the outer or inner subreg mode is not MODE_INT.
16967         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
16968         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
16969
16970 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16971
16972         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
16973         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
16974         reduc_uplus_@var{m}): Remove.
16975         * expr.c (expand_expr_real_2): Remove expansion path for
16976         reduc_[us](min|max|plus) optabs.
16977         * optabs-tree.c (scalar_reduc_to_vector): Remove.
16978         * optabs-tree.h (scalar_reduc_to_vector): Remove.
16979         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
16980         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
16981         * tree-vect-loop.c (vectorizable_reduction): Remove test for
16982         reduc_[us](min|max|plus) optabs.
16983
16984 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16985
16986         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
16987         (reduc_plus_scal_v2sf): New.
16988         (reduc_smax_v2sf): Rename to...
16989         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
16990         (reduc_smin_v2sf): Rename to...
16991         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
16992
16993 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
16994
16995         * alias.c (compare_base_symbol_refs): New function.
16996         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
16997         it.
16998
16999 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17000
17001         PR middle-end/68146
17002         PR tree-optimization/69155
17003         * tree-complex.c: Include cfganal.h.
17004         (phis_to_revisit): New variable.
17005         (extract_component): Add phiarg_p argument.  Assert that returned
17006         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
17007         (update_phi_components): Partly rewrite to use loop over real/imag
17008         components instead of code duplication.  If extract_component returns
17009         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
17010         create_tmp_reg into the PHI node instead, and mention the phi triplet
17011         in phis_to_revisit.
17012         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
17013         in phis_to_revisit at the end.
17014
17015 2016-01-14  Richard Biener  <rguenther@suse.de>
17016
17017         PR tree-optimization/68060
17018         * tree-vect-loop.c (vect_is_simple_reduction): Check the
17019         outer loop reduction is only used in the inner loop before
17020         detecting a double reduction.
17021
17022 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17023
17024         PR target/68269
17025         * combine.c (expand_field_assignment): Punt if compute_mode is
17026         unsupported scalar mode.
17027
17028 2016-01-14  Richard Biener  <rguenther@suse.de>
17029
17030         PR tree-optimization/66856
17031         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
17032         SLP node only if it built successfully.
17033         (vect_analyze_slp_instance): Adjust.
17034
17035 2016-01-14  Jeff Law  <law@redhat.com>
17036
17037         PR tree-optimization/69270
17038         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
17039         (record_edge_info): Use it.  Convert boolean_{true,false}_node
17040         to the type of op0.
17041
17042 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
17043
17044         PR ipa/66487
17045         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
17046         use block_ultimate_origin
17047         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
17048
17049 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17050
17051         * doc/invoke.texi (Submodel Options): Rename section to
17052         "Machine-Dependent Options" to better reflect its content.
17053         Rewrite introductory text to remove archaic CPU names.
17054         Update references.
17055
17056 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17057
17058         * doc/invoke.texi (Code Gen Options): Move section up in file,
17059         before target-specific options.  Update menu and option summary
17060         to reflect the new section ordering.
17061
17062 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17063
17064         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
17065         (C++ Dialect Options): Add cross-reference to -std option.
17066         * doc/standards.texi (C++ Language): Document C++14 support.
17067
17068 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17069
17070         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
17071         for pack/unpack functions for __ibm128.
17072         (PACK_IF): Likewise.
17073         (UNPACK_IF): Likewise.
17074
17075         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17076         support for __ibm128 pack/unpack functions.
17077         (rs6000_invalid_builtin): Likewise.
17078         (rs6000_init_builtins): Likewise.
17079         (rs6000_opt_masks): Likewise.
17080
17081         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
17082         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
17083         functions
17084         (RS6000_BTM_COMMON): Likewise.
17085
17086         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
17087         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
17088         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
17089         128-bit floating point.  Add support for the double values to be
17090         in Altivec registers for TF/IF packing and unpacking, but restrict
17091         TD packing sub-fields to be FPR registers.  Don't allow overlapped
17092         register support for packing.  Allow pack inputs to be memory
17093         locations.  Don't build generator functions for unpack<mode>_dm
17094         and unpack<mode>_nodm.
17095         (unpack<mode>_dm): Likewise.
17096         (unpack<mode>_nodm): Likewise.
17097         (pack<mode>): Likewise.
17098
17099         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
17100         built-in functions to pack/unpack explicit __ibm128 values.
17101         (__builtin_unpack_ibm128): Likewise.
17102
17103         * doc/extend.texi (PowerPC Built-in Functions): Document
17104         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
17105
17106 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
17107
17108         PR c/66208
17109         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
17110         Add new arg loc and pass it down as context.
17111         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
17112         to the location to use for the warning.
17113         (check_function_arguments): New arg loc.  All callers changed.  Pass
17114         it to check_function_nonnull.
17115         * c-common.h (check_function_arguments): Adjust declaration.
17116
17117 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
17118
17119         PR tree-optimization/69156
17120         * gimple.c (validate_type): Removed.
17121         (gimple_builtin_call_types_compatible_p): Use
17122         useless_type_conversion_p instead of validate_type.
17123         * value-prof.c (gimple_stringop_fixed_value): Fold
17124         icall_size to correct type.
17125
17126 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17127
17128         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
17129         effects.
17130
17131 2016-01-13  Richard Henderson  <rth@redhat.com>
17132
17133         PR tree-opt/68964
17134         * target.def (builtin_tm_load, builtin_tm_store): Remove.
17135         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
17136         (ix86_builtin_tm_store): Remove.
17137         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17138         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17139         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17140         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17141         * doc/tm.texi: Rebuild.
17142
17143         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
17144         (BUILT_IN_TM_MEMCPY_RTWN): New.
17145         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17146         fallback from vector to integer helpers.
17147         (build_tm_load): Handle vector types directly, instead of
17148         via target hook.
17149         (build_tm_store): Likewise.
17150         (expand_assign_tm): Prepare for register types not handled by
17151         the above.  Copy them to memory and use memcpy.
17152         * tree.c (tm_define_builtin): New.
17153         (find_tm_vector_type): New.
17154         (build_tm_vector_builtins): New.
17155         (build_common_builtin_nodes): Call it.
17156
17157 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
17158
17159         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17160         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
17161
17162 2016-01-13  Tom de Vries  <tom@codesourcery.com>
17163
17164         PR tree-optimization/69169
17165         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17166         handled_struct_type param.
17167         (create_variable_info_for, intra_create_variable_infos): Call
17168         create_variable_info_for_1 with extra arg.
17169
17170 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
17171
17172         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17173         and "armv8.1-a+crc" entries.
17174
17175 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
17176
17177         PR target/69228
17178         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17179         Change first operand predicate from register_or_constm1_operand
17180         to register_operand.
17181         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17182         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17183         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17184         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17185         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17186         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17187         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17188         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17189         comparison with constm1_rtx from vec_prefetch_gen part.
17190
17191 2016-01-13  Richard Biener  <rguenther@suse.de>
17192
17193         PR tree-optimization/69013
17194         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17195         Exchange assert for a test.
17196
17197 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17198
17199         PR target/69247
17200         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17201
17202 2016-01-13  Richard Biener  <rguenther@suse.de>
17203
17204         PR tree-optimization/69242
17205         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17206         assert with a check.
17207
17208 2016-01-13  Richard Biener  <rguenther@suse.de>
17209
17210         PR tree-optimization/69186
17211         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17212         Properly guard vect_update_misalignment_for_peel call.
17213
17214 2016-01-12  Jeff Law  <law@redhat.com>
17215
17216         PR tree-optimization/pr67755
17217         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17218         "need_profile_correction".
17219         (thread_block_1): Initialize new field to false by default.  If we
17220         have multiple thread paths through a common joiner to different
17221         final targets, then set new field to true.
17222         (compute_path_counts): Only do count adjustment when it's really
17223         needed.
17224
17225 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17226
17227         * doc/invoke.texi (Spec Files): Move section down in file, past
17228         all command-line option descriptions.
17229
17230 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17231
17232         PR middle-end/54809
17233         * doc/gty.texi: Remove documentation of mark_hook.
17234         * gengtype.c (struct write_types_data): Remove code to support
17235         mark_hook attribute.
17236         (walk_type): Likewise.
17237         (write_func_for_structure): Likewise.
17238
17239 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17240
17241         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17242         Directory Options, and -specs= to Overall Options.
17243         (Overall Options): Adjust similarly.  Reorder to group related
17244         options together.  Make -specs= cross-reference the spec file details.
17245         (Directory Options): Adjust similarly.
17246
17247 2016-01-12  Jeff Law  <law@redhat.com>
17248
17249         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17250
17251 2016-01-12  Olivier Hainque  <hainque@adacore.com>
17252
17253         * gcc.c (spec_undefvar_allowed): New global.
17254         (process_command): Set to true when running for --version or --help,
17255         alone or together.
17256         (getenv_spec_function): When the variable is not defined, use the
17257         variable name as the variable value if we're allowed not to issue
17258         a fatal error.
17259
17260 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
17261
17262         PR tree-optimization/68911
17263         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
17264         information computed for expression "init + nit * step".
17265
17266 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17267
17268         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
17269         about name of GCC executable.  Remove deleted node from menu.
17270         (Directory Options) <-B>: Remove cross-reference to deleted node.
17271         (Target Options): Delete section.
17272
17273 2016-01-12  Christian Bruel  <christian.bruel@st.com>
17274
17275         PR target/69180
17276         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
17277         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
17278
17279 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
17280
17281         PR target/69198
17282         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
17283         aligned_mem is properly set for AVX512-VL floating point masked
17284         stores.
17285
17286         PR target/69175
17287         * ifcvt.c (cond_exec_process_if_block): When removing the last
17288         insn from then_bb, remove also any possible barriers that follow it.
17289
17290 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17291
17292         PR target/68456
17293         PR target/69226
17294         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17295         (PTRDIFF_TYPE): Likewise.
17296         (WCHAR_TYPE): Likewise.
17297         (WCHAR_TYPE_SIZE): Likewise.
17298         (STDINT_LONG32): Likewise.
17299
17300 2016-01-12  Richard Biener  <rguenther@suse.de>
17301
17302         PR tree-optimization/69053
17303         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17304         convert initial value for cond reductions.
17305
17306 2016-01-12  Richard Biener  <rguenther@suse.de>
17307
17308         PR tree-optimization/69007
17309         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17310         widen_sum after dot_prod and sad.
17311
17312 2016-01-12  Richard Biener  <rguenther@suse.de>
17313
17314         PR tree-optimization/69168
17315         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17316         pattern stmt SLP type.
17317         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17318         end up unused so cope with that case.
17319
17320 2016-01-12  Richard Biener  <rguenther@suse.de>
17321
17322         PR tree-optimization/69157
17323         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17324         stmts def type only during analyze phase.
17325         (vectorizable_call): Likewise.
17326         (vectorizable_simd_clone_call): Likewise.
17327         (vectorizable_conversion): Likewise.
17328         (vectorizable_assignment): Likewise.
17329         (vectorizable_shift): Likewise.
17330         (vectorizable_operation): Likewise.
17331         (vectorizable_store): Likewise.
17332         (vectorizable_load): Likewise.
17333
17334 2016-01-12  Richard Biener  <rguenther@suse.de>
17335
17336         PR tree-optimization/69174
17337         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17338         space.
17339         (vectorizable_load): Properly compute the number of loads needed
17340         for permuted strided SLP loads and do not spuriously assign
17341         to SLP_TREE_VEC_STMTS.
17342
17343 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17344
17345         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17346         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17347         (MD_EXEC_PREFIX): Remove.
17348         (MD_STARTFILE_PREFIX) Removee.
17349         (FILE_NAME_ABSOLUTE_P): Remove.
17350         (CPP_SPEC): Do not read macros from sys/version.h.
17351         (LINK_COMMAND_SPEC): Remove.
17352         (LOCAL_INCLUDE_DIR): Remove.
17353         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17354         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17355         (POST_LINK_SPEC): Define to invoke stubify after linker
17356         (LIBSTDCXX): Remove define
17357         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17358         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17359         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17360         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17361         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17362         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17363         (i386_djgpp_asm_named_section): Add propotype of new procedure
17364
17365         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17366         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17367         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17368         in config/i386/djgpp.h).
17369         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17370         STANDARD_STARTFILE_PREFIX_1.
17371         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17372         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17373         installation errors.
17374         (MAX_OFILE_ALIGNMENT): Define to 128.
17375         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17376
17377         * config/i386/djgpp.c: New file. Add implementation of
17378         i386_djgpp_asm_named_section.
17379
17380         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17381
17382         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17383         Add rule for building djgpp.o.
17384
17385 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17386
17387         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17388         (rtx_is_swappable_p): Reductions are swappable.
17389         (insn_is_swappable_p): V2DF reductions are swappable.
17390
17391 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17392
17393         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17394         reloads for other unsupported memory operands.
17395
17396 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17397             Jim Wilson  <jim.wilson@linaro.org>
17398
17399         PR target/69194
17400         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17401         copy_to_mode_reg instead of force_reg.
17402
17403 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17404
17405         PR target/69225
17406         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17407         TARGET_80387 is true.
17408
17409 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17410
17411         PR target/69071
17412         * lra-eliminations.c (move_plus_up): Only move plus up
17413         if subreg of the constant can be simplified into constant
17414         and use the simplified subreg of the constant instead of
17415         the original constant.
17416
17417         * fold-const.c (fold_convertible_p): Don't return true
17418         for conversion of VECTOR_TYPE to same sized integral type.
17419         (fold_convert_loc): Fix up formatting.  Fold conversion of
17420         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17421         instead of NOP_EXPR.
17422
17423         PR tree-optimization/69214
17424         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17425         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17426         Formatting fix.
17427
17428         PR tree-optimization/69207
17429         * tree-vect-slp.c (vect_get_constant_vectors): For
17430         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17431         fold_convertible_p to vector_type's element type, and always
17432         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17433
17434 2016-01-11  Richard Biener  <rguenther@suse.de>
17435
17436         PR tree-optimization/69173
17437         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
17438         fixup the cycle if all stmts are in a pattern.
17439
17440 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
17441
17442         PR middle-end/68999
17443         * alias.c (base_alias_check): Move check for addresses with
17444         alignment ANDs before the call for compare_base_decls.
17445         (memrefs_conflict_p): Return -1 for different decls
17446         that went through alignment adjustments.
17447
17448 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17449
17450         PR rtl-optimization/68796
17451         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
17452         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
17453         and QImode comparisons against zero with CC_NZmode.
17454         * config/aarch64/iterators.md (short_mask): New mode_attr.
17455
17456 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17457
17458         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
17459         (<avx512>_store<mode>_mask): Likewise.
17460
17461 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
17462             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17463
17464         PR rtl-optimization/68841
17465         * ifcvt.c (struct noce_if_info): Add orig_x field.
17466         (bbs_ok_for_cmove_arith): Add to_rename parameter.
17467         Don't record conflicts on to_rename if it's present.
17468         Allow memory destinations in sets.
17469         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
17470         blocks, passing orig_x to the checks.
17471         (noce_process_if_block): Set if_info->orig_x appropriately.
17472
17473 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17474
17475         PR tree-optimization/69069
17476         * tree-parloops.c (create_parallel_loop): Add missing phi args.
17477
17478 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17479
17480         PR rtl-optimization/68920
17481         * config/i386/i386.c (ix86_option_override_internal): Restrict number
17482         of conditional moves for  RTL if-conversion to 1 for
17483         TARGET_ONE_IF_CONV_INSN.
17484         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
17485         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
17486         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
17487         parameter to restirct number of conditional moves for
17488         RTL if-conversion.
17489         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
17490         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
17491         conditionl moves.
17492
17493 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
17494
17495         PR bootstrap/69123
17496         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
17497         onepart vars.  Fix typo in comment.  Fix reversed condition in
17498         unshare test.
17499         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
17500
17501         PR bootstrap/69123
17502         * var-tracking.c (dump_onepart_variable_differences): New.
17503         (dataflow_set_different): If a detailed dump is requested,
17504         delay early returns and dump differences between onepart
17505         variables present before and after, and added variables.
17506
17507 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
17508
17509         PR target/69010
17510         * expr.c (expand_expr_real_1): For boolean vector constants
17511         with a scalar mode use const_scalar_mask_from_tree.
17512         (const_scalar_mask_from_tree): New.
17513         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
17514         assigned to a mask type to handle constants.
17515
17516 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17517
17518         PR ipa/69044
17519         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
17520         useless parameters if we cannot change function signature.
17521
17522 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17523
17524         PR ipa/66616
17525         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
17526         flag.
17527
17528 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17529
17530         PR tree-optimization/69109
17531         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
17532         latch with phi.
17533
17534 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17535
17536         PR tree-optimization/69108
17537         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
17538         res is not used in a phi.
17539
17540 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
17541
17542         PR 67425
17543         * common.opt (frandom-seed): Fix parameter name.
17544         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
17545
17546 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17547
17548         PR tree-optimization/69058
17549         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
17550         not supported.
17551
17552 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
17553
17554         * config/arc/arc.opt (mdiv-rem): Add period to the end.
17555         (mcode-density): Likewise.
17556
17557 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17558
17559         PR tree-optimization/69062
17560         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
17561         (parallelize_loops): Don't paralelize loop that has phi with address
17562         arg.
17563
17564 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17565
17566         PR tree-optimization/69039
17567         * tree-parloops.c (try_create_reduction_list): Only allow single exit
17568         phi for reduction.
17569
17570 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
17571
17572         PR middle-end/68743
17573         * match.pd: Require target has function_c99_misc before doing
17574         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
17575
17576 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
17577
17578         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
17579         use GMPINC.
17580         * configure: Regenerate.
17581
17582 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
17583
17584         PR middle-end/50865
17585         PR tree-optimization/69097
17586         * fold-const.h (expr_not_equal_to): New prototype.
17587         * fold-const.c: Include stringpool.h and tree-ssanames.h.
17588         (expr_not_equal_to): New function.
17589         * match.pd (X % -Y is the same as X % Y): Don't optimize
17590         unless X is known not to be equal to minimum or Y is known
17591         not to be equal to -1.
17592         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
17593         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
17594         (simplify_stmt_using_ranges): Adjust caller.
17595         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
17596         substitute_and_fold.
17597
17598 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
17599
17600         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
17601         w/o DECL_NAME.
17602
17603 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17604
17605         PR tree-optimization/69167
17606         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
17607         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
17608         ops[0] comparison.
17609         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
17610
17611 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17612             Richard Biener  <rguenther@suse.de>
17613
17614         PR tree-optimization/68707
17615         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
17616         instances that can be handled via vect_load_lanes.
17617
17618 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
17619
17620         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
17621         if we can't determine address equivalence.
17622         * alias.c (compare_base_decl): Update for changed return value of
17623         symtab_node::equal_address_to.
17624
17625 2016-01-08  Jason Merrill  <jason@redhat.com>
17626
17627         PR c++/68983
17628         PR c++/67557
17629         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
17630         * expr.c (store_field): Not here.
17631         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
17632         call with TREE_ADDRESSABLE type.
17633         * tree-cfg.c (verify_gimple_call): Adjust.
17634
17635 2016-01-08  Olivier Hainque  <hainque@adacore.com>
17636
17637         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
17638         libc_internal.
17639
17640 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17641
17642         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
17643         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
17644         (reduc_smin_v2sf): Rename to...
17645         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
17646         (reduc_splus_v2sf): Rename to...
17647         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
17648
17649 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17650
17651         PR tree-optimization/69162
17652         * gimplify.c (gimplify_va_arg_expr): Encode original type of
17653         valist argument in another argument.
17654         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
17655         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
17656         to determine the va_list type, build a MEM_REF instead of
17657         build_fold_indirect_ref.
17658
17659         PR tree-optimization/69172
17660         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
17661         gimple_build.
17662
17663 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17664
17665         PR tree-optimization/67781
17666         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
17667         and cmpnop in two steps: first the ones not accessed in original
17668         gimple expression in a endian independent way and then the ones not
17669         accessed in the final result in an endian-specific way.
17670
17671 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17672
17673         PR tree-optimization/69083
17674         * tree-vect-slp.c (vect_get_constant_vectors): For
17675         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
17676         element type.  If op is fold_convertible_p to vector_type's element
17677         type, use NOP_EXPR instead of VCE.
17678
17679 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
17680
17681         PR rtl-optimization/67778
17682         PR rtl-optimization/68634
17683         PR rtl-optimization/68909
17684         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
17685         block from the stack until done with it.  Remove a superfluous
17686         bitmap set.  Remove a superfluous bitmap test.
17687
17688 2016-01-07  Martin Sebor  <msebor@redhat.com>
17689
17690         PR c/68966
17691         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
17692         constraint on the type of arguments.
17693
17694 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
17695
17696         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
17697         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
17698         unaligned_access on the gcc_options set.
17699         * config/arm/arm.c (arm_option_override_internal): Use
17700         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
17701
17702 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17703
17704         PR target/69140
17705         * config/i386/i386.c (ix86_frame_pointer_required): Enable
17706         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
17707
17708 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17709
17710         Revert
17711         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17712
17713         PR target/69140
17714         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17715         depending on frame_pointer_needed before remaining integer and SSE
17716         registers are saved.
17717
17718 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17719
17720         PR 1078
17721         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
17722
17723 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17724
17725         PR target/69171
17726         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
17727         Use the "xBm" constraint.
17728         (float<sseintvecmodelower><mode>2<mask_name><round_name):
17729         Likewise.
17730         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
17731         (sse_cvtsi2ssq<round_name>): Likewise.
17732         (sse_cvtss2si<round_name>): Likewise.
17733         (sse_cvtss2siq<round_name>): Likewise.
17734         (sse2_cvtsi2sdq<round_name>): Likewise.
17735         (sse2_cvtsd2si<round_name>): Likewise.
17736         (sse2_cvtsd2siq<round_name>): Likewise.
17737         * config/i386/subst.md (round_nimm_scalar_predicate): New
17738         predicate.
17739
17740 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
17741
17742         PR middle-end/67639
17743         * varasm.c (make_decl_rtl): Mark invalid register vars as
17744         DECL_EXTERNAL.
17745
17746         PR rtl-optimization/66206
17747         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
17748         All callers changed.
17749
17750 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
17751
17752         PR tree-optimization/69141
17753         * tree-ssa-pre.c: Include langhooks.h.
17754         (eliminate_dom_walker::before_dom_children): Use
17755         lang_hooks.decl_printable_name instead of
17756         cgraph_node::get ()->name ().
17757
17758         PR middle-end/68960
17759         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
17760         it and DECL_ALIGN too.
17761
17762 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
17763
17764         * config/mips/mips-ftypes.def: Sort to lexicographical order.
17765
17766 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17767
17768         PR target/69140
17769         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17770         depending on frame_pointer_needed before remaining integer and SSE
17771         registers are saved.
17772
17773 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17774
17775         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
17776         mode iterator with VSX_M2.
17777         (*p9_vecstore_<mode>): Likewise.
17778         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
17779         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
17780         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
17781         (define_split for VSX_LE128 stores): Likewise.
17782         (define_peephole2 for TImode LE swaps): Likewise.
17783         (define_split for VSX_LE128 post-reload stores): Likewise.
17784
17785 2016-01-06  Marek Polacek  <polacek@redhat.com>
17786
17787         PR sanitizer/69099
17788         * convert.c (convert_to_integer_1): Adjust call to
17789         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
17790         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
17791         EXPR instead of ARG.
17792         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
17793
17794 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17795
17796         PR 1078
17797         * doc/extend.texi (RL78 Variable Attributes): New section.
17798
17799 2016-01-05  Marek Polacek  <polacek@redhat.com>
17800
17801         PR c/69104
17802         * builtins.c (get_memmodel): Use expansion point location rather than
17803         the input location.  Call warning_at rather than warning.
17804         (expand_builtin_atomic_compare_exchange): Likewise.
17805         (expand_builtin_atomic_load): Likewise.
17806         (expand_builtin_atomic_store): Likewise.
17807         (expand_builtin_atomic_clear): Likewise.
17808
17809 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17810
17811         PR target/68991
17812         * config/i386/i386.c (ix86_expand_vector_logical_operator):
17813         Replace nonimmediate_operand with vector_operand.
17814         * config/i386/predicates.md (vector_operand): New predicate.
17815         (general_vector_operand): Replace nonimmediate_operand with
17816         vector_operand.
17817         * config/i386/sse.md: Replace nonimmediate_operand with
17818         vector_operand and m constraint with Bm constraint on SSE
17819         patterns with 16-byte memory operand.
17820         * config/i386/subst.md (round_nimm_predicate): Replace
17821         nonimmediate_operand with vector_operand.
17822         (round_saeonly_nimm_predicate): Likewise.
17823         (round_saeonly_nimm_scalar_predicate): New.
17824
17825 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17826
17827         PR target/68991
17828         * config/i386/constraints.md (Bm): New constraint.
17829         * config/i386/predicates.md (vector_memory_operand): New
17830         predicate.
17831         * config/i386/sse.md: Replace xm with xBm in plusminus and
17832         any_logic patterns.
17833
17834 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17835
17836         PR 1078
17837         * doc/extend.texi (V850 Function Attributes): New section.
17838         (V850 Variable Attributes): New section.
17839
17840 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17841
17842         PR 1078
17843         * doc/extend.texi (MicroBlaze Function Attributes): Document
17844         interrupt_handler and fast_interrupt attributes.
17845
17846 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
17847
17848         PR other/60465
17849         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
17850         for local symbolic operands.
17851         * config/ia64/predicates.md (local_symbolic_operand64): New
17852         predicate.
17853
17854 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17855
17856         PR rtl-optimization/68651
17857         * combine.c (combine_simplify_rtx): Canonicalize x + x into
17858         x << 1.
17859
17860 2016-01-05  Nathan Sidwell  <nathan@acm.org>
17861
17862         * alias.c (compare_base_decls): Use symtab_node::get.
17863
17864 2016-01-05  Nick Clifton  <nickc@redhat.com>
17865
17866         PR target/68770
17867         * ira-costs.c (copy_cost): Initialise the t_icode field of the
17868         secondary_reload_info structure.
17869
17870         PR target/66655
17871         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
17872         decls if weak support is available.
17873
17874 2016-01-04  Martin Sebor  <msebor@redhat.com>
17875
17876         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
17877
17878 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
17879
17880         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17881         OPTION_MASK_P9_DFORM.
17882
17883         * config/rs6000/constraints.md (wo constraint): New constraint for
17884         ISA 3.0 (power9).
17885
17886         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
17887         for wo constraint.
17888         (rs6000_init_hard_regno_mode_ok): Likewise.
17889
17890         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
17891         wo constraint.
17892
17893         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
17894         expanders not to have constraints.  Add support for ISA 3.0 xxperm
17895         instruction.  Add support for fusing xxlor with xxperm.
17896         (altivec_vperm_<mode>_internal): Likewise.
17897         (altivec_vperm_v8hiv16qi): Likewise.
17898         (altivec_vperm_<mode>v16q): Likewise.
17899         (altivec_vperm_<mode>_uns): Likewise.
17900         (vperm_v8hiv4si): Likewise.
17901         (vperm_v16qiv8hi): Likewise.
17902
17903         * doc/md.texi (RS/6000 constraints): Document wo constraint.
17904
17905 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
17906
17907         Update copyright years.
17908
17909         * gcc.c (process_command): Update copyright notice dates.
17910         * gcov-dump.c (print_version): Ditto.
17911         * gcov.c (print_version): Ditto.
17912         * gcov-tool.c (print_version): Ditto.
17913         * gengtype.c (create_file): Ditto.
17914         * doc/cpp.texi: Bump @copying's copyright year.
17915         * doc/cppinternals.texi: Ditto.
17916         * doc/gcc.texi: Ditto.
17917         * doc/gccint.texi: Ditto.
17918         * doc/gcov.texi: Ditto.
17919         * doc/install.texi: Ditto.
17920         * doc/invoke.texi: Ditto.
17921
17922 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17923
17924         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
17925         modes larger than TImode as TImode if NEON is not enabled.
17926
17927 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17928
17929         PR target/69100
17930         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
17931         mode for %f0-%f31 only if TARGET_FPU.
17932
17933 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17934
17935         PR target/69072
17936         * config/sparc/sparc.c (scan_record_type): Take into account subfields
17937         to compute the PACKED_P predicate.
17938         (function_arg_record_value): Minor tweaks.
17939
17940 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17941
17942         * doc/install.texi (--with-multilib-list): Describe the meaning of the
17943         option for arm*-*-* targets.
17944
17945 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17946
17947         * doc/extend.texi (Common Function Attributes): Move docs for
17948         MSP430-specific attributes to....
17949         (MSP430 Function Attributes): ...here.  Delete the redundant
17950         entries and copy-edit the remaining text.
17951         (MSP430 Variable Attributes): Use uniform format for index
17952         entries and add a cross-reference to the corresponding function
17953         attribute docs.
17954
17955 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
17956
17957         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
17958         -finite-math typo.
17959         (x86 Options): Likewise.
17960
17961 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17962
17963         PR 1078
17964
17965         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
17966         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
17967         to corresponding attribute.
17968
17969 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17970
17971         * doc/extend.texi (Common Function Attributes) <noplt>: Move
17972         to correct alphabetization of table.  Copy-edit and correct
17973         markup.
17974         <stack_protect>: Likewise.
17975         <target_clones>: Likewise.
17976         <simd>: Likewise.
17977         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
17978         Correct punctuation.
17979         (Code Gen Options) <-fno-plt>: Copy-edit.
17980
17981 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17982
17983         PR target/68917
17984         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
17985         SI values.  Explicitly convert SI to DI and vice-versa.
17986
17987 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
17988
17989         PR tree-optimization/69070
17990         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
17991         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
17992
17993         PR sanitizer/69055
17994         * ubsan.c (ubsan_instrument_float_cast): Call
17995         initialize_sanitizer_builtins.
17996
17997         PR target/69015
17998         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
17999 \f
18000 Copyright (C) 2016 Free Software Foundation, Inc.
18001
18002 Copying and distribution of this file, with or without modification,
18003 are permitted in any medium without royalty provided the copyright
18004 notice and this notice are preserved.