016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2
3         PR middle-end/71876
4         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
5         if STMT may be an alloca call.
6         (gimple_alloca_call_p, alloca_call_p): Return only true for the
7         builtin alloca call.
8         * calls.h (gimple_maybe_alloca_call_p): New function.
9         * tree-inline.c (inline_forbidden_p_stmt): Use
10         gimple_maybe_alloca_call_p here.
11
12 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
13
14         * spellcheck-tree.c (best_macro_match::best_macro_match):
15         Explictly specify the template arguments when invoking the base
16         class constructor, to help older C++ compilers.
17
18 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
19
20         PR sanitizer/71953
21         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
22         before builtin_decl_implicit.
23
24 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
25
26         * optabs.c (emit_condiitonal_move): Short circuit for identical
27         sources.
28
29 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
30
31         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
32         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
33         (noce_conversion_profitable_p): New.
34         (noce_try_store_flag_constants): Use it.
35         (noce_try_addcc): Likewise.
36         (noce_try_store_flag_mask): Likewise.
37         (noce_try_cmove): Likewise.
38         (noce_try_cmove_arith): Likewise.
39         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
40         overwriting it.
41         (noce_convert_multiple_sets): Move cost model to here, from...
42         (bb_ok_for_noce_convert_multiple_sets) ...here.
43         (noce_process_if_block): Update calls for above changes.
44         (noce_find_if_block): Record new noce_if_info parameters.
45
46 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
47
48         * target.def (max_noce_ifcvt_seq_cost): New.
49         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
50         * doc/tm.texi: Regenerate.
51         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
52         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
53         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
54         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
55         * doc/invoke.texi: Document new params.
56
57 2016-07-21  Richard Biener  <rguenther@suse.de>
58
59         PR tree-optimization/71947
60         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
61         ranges have useful limit_vr information.
62
63 2016-07-21  Richard Biener  <rguenther@suse.de>
64
65         * function-tests.c (build_trivial_generic_function): Set
66         BLOCK_SUPERCONTEXT of DECL_INITIAL.
67         * omp-low.c (create_omp_child_function): Likewise.
68         (grid_expand_target_grid_body): Likewise.
69         * cgraphunit.c (init_lowered_empty_function): Likewise.
70         (cgraph_node::expand_thunk): Likewise.
71         * tree-parloops.c (create_loop_fn): Likewise.
72         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
73
74 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
75
76         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
77         in comment.
78
79 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
80
81         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
82         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
83         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
84         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
85         values for insn attribute.
86         * config/avr/avr.c (avr_out_insert_notbit): New function.
87         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
88         ADJUST_LEN_INSV_NOTBIT_0/_7.
89         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
90
91 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
92
93         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
94         (chrec_convert_1, chrec_convert): Ditto.
95         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
96         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
97         * tree-vrp.c (adjust_range_with_scev): Ditto.
98         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
99         (scev_var_range_cant_overflow): New function.
100         (scev_probably_wraps_p): New parameter.  Call above function.
101         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
102
103 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
104
105         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
106         by removing computation of may_be_zero.
107
108 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
109
110         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
111
112 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
113
114         Improving concepts performance and diagnostics.
115         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
116         for constraint satisfaction and subsumption.
117         * timevar.h (auto_timevar): New constructor that matches the push/pop
118         pattern of usage in pt.c.
119
120 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
121
122         * hwint.h (HOST_WIDE_INT_0): New define.
123         (HOST_WIDE_INT_0U): Ditto.
124         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
125         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
126         * simplify-rtx.c: Ditto.
127         * tree-object-size.c: Ditto.
128
129 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
130
131         * config/s390/s390.c (s390_encode_section_info): Remove mode size
132         check.
133
134 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
135
136         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
137         * combine.c: Use HOST_WIDE_INT_M1U instead of
138         ~(unsigned HOST_WIDE_INT) 0.
139         * double-int.h: Ditto.
140         * dse.c: Ditto.
141         * dwarf2asm.c:Ditto.
142         * expmed.c: Ditto.
143         * genmodes.c: Ditto.
144         * match.pd: Ditto.
145         * read-rtl.c: Ditto.
146         * tree-ssa-loop-ivopts.c: Ditto.
147         * tree-ssa-loop-prefetch.c: Ditto.
148         * tree-vect-generic.c: Ditto.
149         * tree-vect-patterns.c: Ditto.
150         * tree.c: Ditto.
151
152 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
153
154         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
155         constant addresses outside [0,0xc0] into a register.
156         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
157         cases where the base address register is unused after.
158         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
159         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
160         (avr_out_store_psi_reg_disp_tiny): Same.
161
162 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
163
164         Implement attribute progmem on reduced Tiny cores by adding
165         flash offset 0x4000 to respective symbols.
166
167         PR target/71948
168         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
169         documentation how it works on reduced Tiny cores.
170         (AVR Named Address Spaces): No support for reduced Tiny.
171         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
172         (avr_address_tiny_pm_p): New static function.
173         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
174         if the address is in progmem.
175         (avr_assemble_integer): Same.
176         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
177         for symbol_ref in progmem.
178         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
179         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
180         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
181
182 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
183
184         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
185         * configure: Regenerate.
186         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
187         (USE_THIN_ARCHIVES): New variable.
188         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
189         this archive as a thin archive.
190
191 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
192
193         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
194         same location as last time, don't skip if we have fix-it hints.
195         Clarify the skipping logic by converting it from one "if" clause
196         to repeated "if" clauses.
197         * spellcheck-tree.c: Include "cpplib.h".
198         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
199         (best_macro_match::best_macro_match): New constructor.
200         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
201         Move here from c/c-decl.c.
202         (class best_macro_match): Move here from c/c-decl.c, converting
203         from a typedef to a subclass, gaining a ctor.
204
205 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
206
207         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
208         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
209         define...
210         (avr_addr_space_diagnose_usage): ...and implementation.
211         (avr_addr_space_supported_p): New function.
212         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
213         report bad address space usage if that space is supported.
214         (avr_insert_attributes): Same.  No more complain about unsupported
215         address spaces.
216         * config/avr/avr-c.c (tm_p.h): Include it.
217         (avr_cpu_cpp_builtins): Only define addr-space related built-in
218         macro if avr_addr_space_supported_p.
219
220 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
221
222         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
223         flag_toplevel_reorder.
224
225 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
226
227         * gcc-rich-location.c
228         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
229         a const char *.
230         * gcc-rich-location.h
231         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
232
233 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
234
235         * target.def (addr_space): Add new diagnose_usage to hook vector.
236         * targhooks.c (default_addr_space_diagnose_usage): Add default
237         implementation and...
238         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
239         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
240         is some address space, call targetm.addr_space.diagnose_usage.
241         * doc/tm.texi.in (Named Address Spaces): Add anchor for
242         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
243         * doc/tm.texi: Regenerate.
244
245 2016-07-20  Martin Liska  <mliska@suse.cz>
246
247         PR middle-end/71898
248         * graphite-isl-ast-to-gimple.c (later_of_the_two):
249         Properly handly PHI stmts.
250
251 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
252
253         PR tree-optimization/71503
254         PR tree-optimization/71683
255         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
256         and break.
257
258 2016-07-20  Martin Liska  <mliska@suse.cz>
259
260         * doc/invoke.texi (-fipa-ra): Document when the option is
261         disabled. Fix a typo.
262
263 2016-07-20  Martin Liska  <mliska@suse.cz>
264
265         * Makefile.in: Include fibonacci_heap.c
266         * fibonacci_heap.c: New file.
267         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
268         (fibonacci_heap::union_with): Fix deletion of the second heap.
269         * selftest-run-tests.c (selftest::run_tests): Incorporate
270         fibonacci heap tests.
271         * selftest.h: Declare fibonacci_heap_c_tests.
272
273 2016-07-20  Martin Liska  <mliska@suse.cz>
274
275         * selftest-run-tests.c (selftest::run_tests): New function.
276         * selftest.h (sreal_c_tests): Declare.
277         * sreal.c (sreal_verify_basics): New function.
278         (verify_aritmetics): Likewise.
279         (sreal_verify_arithmetics): Likewise.
280         (verify_shifting): Likewise.
281         (sreal_verify_shifting): Likewise.
282         (void sreal_c_tests): Likewise.
283
284 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
285
286         PR rtl-optimization/71916
287         * cfgrtl.c (contains_no_active_insn_p): Return false also for
288         bb which have a single succ fake edge.
289
290 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
291
292         PR debug/71855
293         * dwarf2out.c (gen_subprogram_die): Only call
294         gen_unspecified_parameters_die while dumping early dwarf.
295
296 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
297
298         PR middle-end/71874
299         * gimple-fold.c (fold_builtin_memory_op): Use
300         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
301
302 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
303
304         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
305         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
306         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
307         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
308         * combine.c: Ditto.
309         * cse.c: Ditto.
310         * dojump.c: Ditto.
311         * double-int.c: Ditto.
312         * dse.c: Ditto.
313         * dwarf2out.c: Ditto.
314         * expmed.c: Ditto.
315         * expr.c: Ditto.
316         * fold-const.c: Ditto.
317         * function.c: Ditto.
318         * fwprop.c: Ditto.
319         * genmodes.c: Ditto.
320         * hwint.c: Ditto.
321         * hwint.h: Ditto.
322         * ifcvt.c: Ditto.
323         * loop-doloop.c: Ditto.
324         * loop-invariant.c: Ditto.
325         * loop-iv.c: Ditto.
326         * match.pd: Ditto.
327         * optabs.c: Ditto.
328         * real.c: Ditto.
329         * reload.c: Ditto.
330         * rtlanal.c: Ditto.
331         * simplify-rtx.c: Ditto.
332         * stor-layout.c: Ditto.
333         * toplev.c: Ditto.
334         * tree-ssa-loop-ivopts.c: Ditto.
335         * tree-vect-generic.c: Ditto.
336         * tree-vect-patterns.c: Ditto.
337         * tree.c: Ditto.
338         * tree.h: Ditto.
339         * ubsan.c: Ditto.
340         * varasm.c: Ditto.
341         * wide-int-print.cc: Ditto.
342         * wide-int.cc: Ditto.
343         * wide-int.h: Ditto.
344
345 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
346
347         * selftest.c (selftest::assert_streq): Handle NULL values of
348         val_actual and val_expected.
349
350 2016-07-19  Martin Jambor  <mjambor@suse.cz>
351
352         PR fortran/71688
353         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
354         rather than cgraph_create_node to get a call graph node.
355
356 2016-07-19  Richard Biener  <rguenther@suse.de>
357
358         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
359         handle all tcc_constant bases and valueize SSA names.
360         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
361         tcc_constant bases.
362
363 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
364
365         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
366         the flags of the exit block and bb2, not just the entry block.
367
368 2016-07-19  Richard Biener  <rguenther@suse.de>
369
370         PR tree-optimization/71901
371         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
372         align member, group stuff with the bitfield.
373         (vn_ref_op_align_unit): New inline.
374         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
375         record element alignment and operand 3 unchanged.
376         (ao_ref_init_from_vn_reference): Adjust.
377         (valueize_refs_1): Likewise.
378         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
379
380 2016-07-19  Richard Biener  <rguenther@suse.de>
381
382         PR tree-optimization/71908
383         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
384         symbolic constants in a more reliable way.
385
386 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
387
388         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
389         comment.
390         (vect_update_inits_of_drs): Likewise.
391         (vect_create_cond_for_alias_checks): Likewise.
392         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
393
394 2016-07-19  Richard Biener  <rguenther@suse.de>
395
396         PR lto/71907
397         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
398         with an abstract origin that is not an inlined function outer
399         scope add a self-reference as abstract origin.
400         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
401
402 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
403
404         PR target/71493
405         * config/rs6000/rs6000.c (rs6000_function_value): Fix
406         unintentional System V.4 structure return breakage for structures
407         with a single floating point element.
408
409 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
410
411         PR tree-optimization/71734
412         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
413         contains REF, use it to check safelen, assume that safelen value
414         must be greater 1, fix style.
415         (ref_indep_loop_p_2): Add REF_LOOP argument.
416         (ref_indep_loop_p): Pass LOOP as additional argument to
417         ref_indep_loop_p_2.
418
419 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
420
421         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
422         allocation in the prologue.
423         * explow.c (get_dynamic_stack_base): New function to return an address
424         expression for the dynamic stack base.
425         (get_dynamic_stack_size): New function to do the required dynamic stack
426         space size calculations.
427         (allocate_dynamic_stack_space): Use new functions.
428         (align_dynamic_address): Move some code from
429         allocate_dynamic_stack_space to new function.
430         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
431
432 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
433
434         * config/s390/s390.c (s390_encode_section_info): Always set
435         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
436         found.
437
438 2016-07-18  Richard Biener  <rguenther@suse.de>
439
440         PR tree-optimization/71893
441         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
442         for sizetype cast added by array_ref_element_size.
443         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
444
445 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
446
447         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
448         register parameters.  Remove code to initialize argument pointer
449         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
450         using a pc-relative branch.  Cleanup conditional code.
451         * config/pa/pa.md (call_mcount): New expander.
452         (call_mcount_nonpic): New insn.
453         (call_mcount_pic): New insn and split.
454         (call_mcount_pic_post_reload): New insn.
455         (call_mcount_64bit): New insn and split.
456         (call_mcount_64bit_post_reload): New insn.
457
458 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
459
460         * config/avr/predicates.md (const_m255_to_m1_operand): New.
461         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
462         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
463         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
464         (*usum_widenqihi3, *udiff_widenqihi3)
465         (*addhi3_zero_extend.const): New combiner insns.
466         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
467         just 1 bit is affected.
468         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
469         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
470
471 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
472
473         * omp-low.c (lower_omp_target): Mark data clauses with
474         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
475         zero-length subarrays.
476
477 2016-07-15  Richard Biener  <rguenther@suse.de>
478
479         PR tree-optimization/71881
480         * tree-loop-distribution.c (destroy_loop): Remove blocks in
481         reverse DOM order to make debug temp generation happy.
482
483 2016-07-15  Richard Biener  <rguenther@suse.de>
484
485         PR tree-optimization/71887
486         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
487         verify it is not zero for division / modulo handling.
488         (value_replacement): Adjust.
489
490 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
491             Julian Brown  <julian@codesourcery.com>
492
493         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
494         * config/aarch64/aarch64-cost-tables.h
495         (vulcan_extra_costs): New variable.
496         * config/aarch64/aarch64.c
497         (vulcan_addrcost_table): Likewise.
498         (vulcan_regmove_cost): Likewise.
499         (vulcan_vector_cost): Likewise.
500         (vulcan_branch_cost): Likewise.
501         (vulcan_tunings): Likewise.
502
503 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
504
505         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
506         (output_in_order): Loop over undefined variables too.  Output them
507         via assemble_undefined_decl.  Skip variables that correspond to hard
508         registers or have value-exprs.
509         * varpool.c (symbol_table::output_variables): Handle undefined
510         variables together with defined ones.
511
512 2016-07-15  Richard Biener  <rguenther@suse.de>
513
514         * tree-ssa-pre.c (get_representative_for): Make sure to return
515         the value number of SSA names.
516         (phi_translate_1): get_representative_for cannot return NULL.
517         (do_pre_regular_insertion): Remove redundant call to
518         fully_constant_expression.
519         (do_pre_partial_partial_insertion): Likewise.
520
521 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
522
523         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
524         (derive_simple_iv_with_niters): New function.
525         (simple_iv): Rewrite using simple_iv_with_niters.
526         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
527         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
528         function.
529         (number_of_iterations_exit): Rewrite using above function.
530         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
531         Decl.
532
533 2016-07-15  Richard Biener  <rguenther@suse.de>
534
535         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
536         vec_construct cost.
537
538 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
539
540         PR tree-optimization/71872
541         * tree-data-ref.c (get_references_in_stmt): Ignore references
542         with is_gimple_constant get_base_address.
543
544 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
545
546         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
547         (TARGET_HAVE_LDACQD): New macro.
548         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
549         than TARGET_HAVE_LDACQ.
550         (arm_load_acquire_exclusivedi): Likewise.
551         (arm_store_release_exclusivedi): Likewise.
552
553 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
554
555         PR rtl-optimization/71878
556         * lra-constraints.c (match_reload): Pass information about other
557         output operands.  Create new unique register value if matching input
558         operand shares same register value as output operand being considered.
559         (curr_insn_transform): Record output operands already processed.
560
561 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
562
563         PR target/65951
564         PR tree-optimization/70923
565         * tree-vect-patterns.c: Include mult-synthesis.h.
566         (target_supports_mult_synth_alg): New function.
567         (synth_lshift_by_additions): Likewise.
568         (apply_binop_and_append_stmt): Likewise.
569         (vect_synth_mult_by_constant): Likewise.
570         (target_has_vecop_for_code): Likewise.
571         (vect_recog_mult_pattern): Use above functions to synthesize vector
572         multiplication by integer constants.
573
574 2016-07-14  Alan Modra  <amodra@gmail.com>
575
576         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
577         gpr alternatives.  Correct '*' placement on Y,r alternative.
578         Add '*' on operand 1 of r,r alternative.
579
580 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
581
582         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
583         * expmed.h: ... Here.
584
585 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
586
587         * gimple.h (stmt_can_terminate_bb_p): New function.
588         * tree-cfg.c (need_fake_edge_p): Rename to ...
589         (stmt_can_terminate_bb_p): ... this; return true if stmt can
590         throw external; handle const and pure calls.
591         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
592
593 2016-07-14  Richard Biener  <rguenther@suse.de>
594
595         PR tree-optimization/71866
596         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
597         (do_hoist_insertion): Avoid endless recursion when we
598         didn't insert anything because we managed to simplify
599         things down to a constant or SSA name.
600         (fully_constant_expression): Re-write in terms of ...
601         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
602         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
603         vn_nary_build_or_lookup_1.
604         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
605         (vn_nary_build_or_lookup): ... this which now wraps it.
606
607 2016-07-14  Alan Modra  <amodra@gmail.com>
608
609         PR target/71733
610         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
611         with p9_vector override before power9-dform override.
612
613 2016-07-13  Andi Kleen  <ak@linux.intel.com>
614
615         * value-prof.c (gimple_value_profile_transformations): Don't run
616         when auto_profile is on.
617
618 2016-07-13  Andi Kleen  <ak@linux.intel.com>
619
620         * auto-profile.c (update_inlined_ind_target,
621         afdo_indirect_call): Print information to dump file.
622
623 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
624
625         * genrecog.c (special_predicate_operand_p): New function.
626         (predicate_name): Move function.
627         (validate_pattern): Don't warn about missing mode for all
628         define_special_predicate predicates.
629
630 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
631
632         * tree-vect-data-refs.c (vect_no_alias_p): New function.
633         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
634         resolve alias checks which are known at compilation time.
635         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
636         alias checks are resolved.  Move dump info for too many runtime
637         alias checks to here...
638         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
639
640 2016-07-13  Richard Biener  <rguenther@suse.de>
641
642         PR tree-optimization/24574
643         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
644         position and add shift, rotate, divison and modulo support
645         for left zero.
646         (value_replacement): Pass in argument position to absorbing_element_p.
647
648 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
649
650         PR ipa/71633
651         * ipa-inline-transform.c (inline_call): Support
652         instrumented thunks.
653
654 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
655
656         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
657         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
658         divide feature.
659         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
660         Baseline.  Make initial alternative TARGET_32BIT only.
661         (udivsi3): Likewise.
662         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
663         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
664         target.
665
666 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
667
668         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
669         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
670         availability with TARGET_HAVE_MOVT.
671         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
672         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
673         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
674         UINTVAL.
675         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
676         extra instruction if MOVW is available.  Use a cost variable
677         incremented by COSTS_N_INSNS (1) when the condition match rather than
678         returning an arithmetic expression based on COSTS_N_INSNS.  Make
679         constant with bottom half word zero cost 2 instruction if MOVW is
680         available.
681         * config/arm/arm.md (define_attr "arch"): Add v8mb.
682         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
683         target is ARMv8-M Baseline.
684         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
685         (arm_movtas_ze): Likewise.
686         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
687         alternative for constants satisfying j constraint.
688         (thumb1_movsi_insn): Likewise.
689         (movsi splitter for K alternative): Tighten condition to not trigger
690         if movt is available and j constraint is satisfied.
691         (Pe immediate splitter): Likewise.
692         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
693         constant fitting in an halfword to use MOVW.
694         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
695         effective target.
696
697 2016-07-13  Richard Biener  <rguenther@suse.de>
698
699         PR middle-end/71104
700         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
701         gimplifying the LHS.  Make sure to gimplify a returning twice
702         call LHS without using SSA names.
703
704 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
705
706         * tree-data-ref.c (find_data_references_in_stmt): Remove
707         unnecessary call to vec::release.
708         (graphite_find_data_references_in_stmt): Likewise.
709         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
710         * tree-vect-stmts.c (vectorizable_condition): Likewise.
711
712 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
713
714         * cfgexpand.c (expand_used_vars): Make the type of a local
715         variable auto_vec.
716         * genmatch.c (lower_for): Likewise.
717         * haifa-sched.c (haifa_sched_init): Likewise.
718         (add_to_speculative_block): Likewise.
719         (create_check_block_twin): Likewise.
720         * predict.c (handle_missing_profiles): Likewise.
721         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
722         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
723         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
724         Likewise.
725         (maybe_lower_iteration_bound): Likewise.
726         * tree-ssa-sccvn.c (DFS): Likewise.
727         * tree-stdarg.c (reachable_at_most_once): Likewise.
728         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
729         (vectorizable_store): Likewise.
730
731 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
732
733         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
734         (sccvn_dom_walker): make cond_stack an auto_vec.
735
736 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
737
738         * ree.c (struct ext_state): Make type of members auto_vec.
739         (find_and_remove_re): Adjust.
740
741 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
742
743         * cfgexpand.c (struct stack_vars_data): Make type of fields
744         auto_vec.
745         (expand_used_vars): Adjust.
746
747 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
748
749         * ipa.c (record_cdtor_fn): Adjust.
750         (build_cdtor_fns): Likewise.
751         (ipa_cdtor_merge): Make static_ctors and static_dtors local
752         variables.
753
754 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
755
756         * genextract.c (struct accum_extract): Add constructor and make
757         members auto_vec.
758         (gen_insn): Adjust.
759
760 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
761
762         * tree.c (struct free_lang_data_d): Add constructor and change
763         types of members to ones that automatically manage resources.
764         (fld_worklist_push): Adjust.
765         (find_decls_types): Likewise.
766         (find_decls_types_in_eh_region): Likewise.
767         (free_lang_data_in_cgraph): Stop manually creating and
768         destroying members of free_lang_data_d.
769
770 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
771
772         PR rtl-optimization/68961
773         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
774         peephole variant.  Use sse_reg_operand predicates.
775
776 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
777
778         * config/i386/predicates.md (x86_64_immediate_operand)
779         <case CONST_INT>: Remove unneeded truncation to DImode.
780         <case CONST>: Ditto.
781         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
782
783 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
784
785         PR target/71805
786         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
787         The xxperm and xxpermr instructions require that the 2nd input
788         operand overlap with the output operand, and not the 1st.
789         (altivec_vperm_v8hiv16qi): Likewise.
790         (altivec_vperm_<mode>_uns_internal): Likewise.
791         (altivec_vpermr_<mode>_internal): Likewise.
792         (vperm_v8hiv4si): Likewise.
793         (vperm_v16qiv8hi): Likewise.
794
795 2016-07-12  Martin Liska  <mliska@suse.cz>
796
797         * params.def: Add avg-loop niter.
798         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
799         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
800         * doc/invoke.texi: Document the new parameter.
801
802 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
803
804         PR middle-end/71700
805         * expr.c (store_constructor): Mask sign-extended bits when widening
806         sub-word constructor element at the start of a word.
807
808 2016-07-12  Martin Liska  <mliska@suse.cz>
809
810         * Makefile.in: Append rule for params-options.h.
811         * params-options.h: New file.
812
813 2016-07-12  Martin Liska  <mliska@suse.cz>
814
815         * ira-build.c (mark_loops_for_removal): Properly iterate
816         loops.
817
818 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
819             Richard Biener  <rguenther@suse.de>
820
821         PR tree-optimization/23286
822         PR tree-optimization/70159
823         * doc/invoke.texi: Document -fcode-hoisting.
824         * common.opt (fcode-hoisting): New flag.
825         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
826         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
827         (do_regular_insertion): Rename to ...
828         (do_pre_regular_insertion): ... this and amend general comments
829         on insertion strathegy.
830         (do_partial_partial_insertion): Rename to ...
831         (do_pre_partial_partial_insertion): ... this.
832         (do_hoist_insertion): New function.
833         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
834         and call do_hoist_insertion properly.
835         (insert): Adjust.
836         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
837         (pass_pre::execute): Register hoist_insert stats.
838
839 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
840
841         PR middle-end/71716
842         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
843         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
844         is different from mode's bitsize.  Small cleanup.
845
846 2016-07-12  Richard Biener  <rguenther@suse.de>
847
848         PR rtl-optimization/68961
849         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
850         to simplify to a non-constant.
851
852 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
853
854         PR middle-end/71758
855         * omp-low.c (expand_omp_target): Gimplify device.
856
857         PR tree-optimization/71823
858         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
859         to get vec_oprnds2 from op2.
860
861 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
862
863         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
864         Hoist common subexpressions.
865         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
866
867 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
868
869         PR target/71800
870         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
871         prevent generation of 'stxsiwx' on pre Power8 hardware.
872
873 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
874
875         * input.c: Include cpplib.h.
876         (selftest::temp_source_file): New class.
877         (selftest::temp_source_file::temp_source_file): New ctor.
878         (selftest::temp_source_file::~temp_source_file): New dtor.
879         (selftest::should_have_column_data_p): New function.
880         (selftest::test_should_have_column_data_p): New function.
881         (selftest::temp_line_table): New class.
882         (selftest::temp_line_table::temp_line_table): New ctor.
883         (selftest::temp_line_table::~temp_line_table): New dtor.
884         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
885         it to create a temp_line_table.
886         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
887         locations that are known to have column data.
888         (selftest::line_table_case): New struct.
889         (selftest::test_reading_source_line): Move tempfile handling
890         to class temp_source_file.
891         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
892         (selftest::assert_token_loc_eq): New function.
893         (ASSERT_TOKEN_LOC_EQ): New macro.
894         (selftest::test_lexer): New function.
895         (selftest::boundary_locations): New array.
896         (selftest::input_c_tests): Call test_should_have_column_data_p.
897         Loop over a test matrix of interesting values of location and
898         default_range_bits, calling test_lexer on each case in the matrix.
899         Move call to test_accessing_ordinary_linemaps into the matrix.
900         * selftest.h (ASSERT_EQ): Reimplement in terms of...
901         (ASSERT_EQ_AT): New macro.
902
903 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
904
905         PR target/71801
906         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
907         Don't convert TImode in debug insn.
908
909 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
910
911         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
912         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
913         (tree_type_common::lang_flag_7): New.
914         (tree_type_common::spare): Reduce size.
915         * tree.h (TYPE_ALIGN_OK): Remove.
916         (TYPE_LANG_FLAG_7): New.
917         (get_inner_reference): Adjust header.
918         * print-tree.c (print_node): Adjust.
919         * expr.c (get_inner_reference): Remove parameter keep_aligning.
920         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
921         calls to get_inner_reference.
922         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
923         handling of TYPE_ALIGN_OK.
924         * builtins.c (get_object_alignment_2): Adjust call to
925         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
926         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
927         TYPE_ALIGN_OK.
928         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
929         * cfgexpand.c (expand_debug_expr): Likewise.
930         * dbxout.c (dbxout_expand_expr): Likewise.
931         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
932         loc_list_from_tree, fortran_common): Likewise.
933         * fold-const.c (optimize_bit_field_compare,
934         decode_field_reference, fold_unary_loc, fold_comparison,
935         split_address_to_core_and_offset): Likewise.
936         * gimple-laddress.c (execute): Likewise.
937         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
938         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
939         * hsa-gen.c (gen_hsa_addr): Likewise.
940         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
941         * tsan.c (instrument_expr): Likewise.
942         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
943         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
944         * tree-affine.c (tree_to_aff_combination,
945         get_inner_reference_aff): Adjust calls to get_inner_reference.
946         * tree-data-ref.c (split_constant_offset_1,
947         dr_analyze_innermost): Likewise.
948         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
949         * tree-sra.c (ipa_sra_check_caller): Likewise.
950         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
951         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
952         bswap_replace): Likewise.
953         * tree-vect-data-refs.c (vect_check_gather,
954         vect_analyze_data_refs): Likewise.
955         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
956         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
957         TYPE_ALIGN_OK.
958
959 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
960
961         * Makefile.in (selftest-valgrind): New phony target.
962         * function-tests.c (selftest::build_cfg): Delete pass instances
963         created by the test.
964         (selftest::convert_to_ssa): Likewise.
965         (selftest::test_expansion_to_rtl): Likewise.
966         * tree-cfg.c (selftest::test_linear_chain): Release dominator
967         vectors.
968         (selftest::test_diamond): Likewise.
969
970 2016-07-11  Richard Biener  <rguenther@suse.de>
971
972         PR tree-optimization/71816
973         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
974         than replacing all of its operands.
975
976 2016-07-11  Alan Modra  <amodra@gmail.com>
977
978         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
979         (ctr<mode>): Add unspec.
980         (ctr<mode>_internal*): Likewise.
981
982 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
983
984         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
985         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
986
987 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
988
989         PR rtl-optimization/71621
990         * lra-constraints.c (process_alt_operands): Check combination of
991         reg class and mode.
992
993 2016-07-08  Jason Merrill  <jason@redhat.com>
994             Richard Biener  <rguenther@suse.de>
995
996         P0145: Refining Expression Order for C++.
997         * gimplify.c (initial_rhs_predicate_for): New.
998         (gimplfy_modify_expr): Gimplify RHS before LHS.
999
1000 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1001
1002         PR target/71297
1003         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1004         Allow standard error handling to take over when a wrong number
1005         of arguments is presented to __builtin_vec_ld () or
1006         __builtin_vec_st ().
1007
1008 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1009
1010         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1011         variants.
1012         (smin): Likewise.
1013         (fmax): New entry.
1014         (fmin): Likewise.
1015         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1016         __builtin_aarch64_fmaxv2sf.
1017         (vmaxnmq_f32): Likewise.
1018         (vmaxnmq_f64): Likewise.
1019         (vminnm_f32): Likewise.
1020         (vminnmq_f32): Likewise.
1021         (vminnmq_f64): Likewise.
1022
1023 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1024
1025         PR target/71806
1026         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1027         enable -mfloat128-hardware by default.
1028         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1029         that IEEE 128-bit hardware support needs.
1030         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1031         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1032         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1033         floating point requires.
1034         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1035         -mfloat128 and -mfloat128-hardware changes.
1036
1037 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
1038
1039         PR tree-optimization/71667
1040         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1041
1042 2016-07-08  Martin Liska  <mliska@suse.cz>
1043
1044         PR middle-end/71606
1045         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1046         folding produces SAVE_EXPRs, thus return false for the type.
1047
1048 2016-07-07  Martin Liska  <mliska@suse.cz>
1049
1050         * file-find.c (remove_prefix): New function.
1051         * file-find.h (remove_prefix): Declare the function.
1052         * gcc-ar.c (main): Skip a folder of the wrapper if
1053         a wrapped binary would point to the same file.
1054
1055 2016-07-07  Jan Hubicka  <jh@suse.cz>
1056
1057         * tree-scalar-evolution.c (iv_can_overflow_p): export.
1058         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1059         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1060
1061 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1062
1063         PR ipa/71624
1064         * ipa-inline-analysis.c (compute_inline_parameters): Set
1065         local.can_change_signature to false for intrumentation
1066         thunk callees.
1067
1068 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1069
1070         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1071         with TARGET_HAVE_MOVT.
1072         (TARGET_HAVE_MOVT): Define.
1073         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1074         availability with TARGET_HAVE_MOVT.
1075         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1076         availability.
1077         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1078         TARGET_THUMB2.
1079         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1080         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1081         * config/arm/constraints.md (define_constraint "j"): Use
1082         TARGET_HAVE_MOVT to check MOVT availability.
1083
1084 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1085
1086         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1087
1088 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1089
1090         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1091         (armv8-m.main): Likewise.
1092         (armv8-m.main+dsp): Likewise.
1093         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1094         (FL_FOR_ARCH8M_MAIN): Likewise.
1095         * config/arm/arm-tables.opt: Regenerate.
1096         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1097         armv8-m.main+dsp to BE8_LINK_SPEC.
1098         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1099         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1100         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1101         Baseline and Mainline.
1102         (arm_option_override_internal): Also disable arm_restrict_it when
1103         !arm_arch_notm.  Update comment for -munaligned-access to also cover
1104         ARMv8-M Baseline.
1105         (arm_file_start): Increase buffer size for printing architecture name.
1106         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1107         and armv8-m.main+dsp.
1108         (mno-unaligned-access): Clarify that this is disabled by default for
1109         ARMv8-M Baseline architectures as well.
1110
1111 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1112
1113         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1114         decide whether to prevent some libgcc routines being included for some
1115         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1116         link between this condition and the one in
1117         libgcc/config/arm/lib1func.S.
1118
1119 2016-07-07  Richard Biener  <rguenther@suse.de>
1120
1121         * tree-ssa-pre.c: Include alias.h.
1122         (compute_avail): If we have multiple VN_REFERENCEs with the
1123         same hashtable entry adjust that to make it a valid replacement
1124         for all of them with respect to alignment and aliasing
1125         when doing insertion.
1126         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1127         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1128
1129 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
1130
1131         PR target/70098
1132         PR target/71763
1133         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1134         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1135         constraint.
1136
1137 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1138
1139         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1140         (adjust_mems): Adjust.
1141         (adjust_insn): Likewise.
1142         (prepare_call_arguments): Likewise.
1143
1144 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1145
1146         * gcse.c (struct ls_expr): Make stores field a vector.
1147         (ldst_entry): Adjust.
1148         (free_ldst_entry): Likewise.
1149         (print_ldst_list): Likewise.
1150         (compute_ld_motion_mems): Likewise.
1151         (update_ld_motion_stores): Likewise.
1152
1153 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1154
1155         * gcse.c (struct ls_expr): Remove loads field.
1156         (ldst_entry): Adjust.
1157         (free_ldst_entry): Likewise.
1158         (print_ldst_list): Likewise.
1159         (compute_ld_motion_mems): Likewise.
1160
1161 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1162
1163         * store-motion.c (struct st_expr): Make antic_stores a vector.
1164         (st_expr_entry): Adjust.
1165         (free_st_expr_entry): Likewise.
1166         (print_store_motion_mems): Likewise.
1167         (find_moveable_store): Likewise.
1168         (compute_store_table): Likewise.
1169         (remove_reachable_equiv_notes): Likewise.
1170         (replace_store_insn): Likewise.
1171         (build_store_vectors): Likewise.
1172
1173 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1174
1175         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1176         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1177
1178 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1179
1180         PR tree-optimization/71518
1181         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1182         misalign also for outer loops with negative step.
1183
1184 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
1185
1186         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1187         (cortex_a53_shift): Add mov_shift.
1188         (cortex_a53_shift_reg): Add new reservation for register shifts.
1189         (cortex_a53_alu): Remove bfm.
1190         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1191         (cortex_a53_alu_extr): Add new reservation for EXTR.
1192         (bypasses): Improve bypass modelling.
1193
1194 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1195
1196         PR target/50739
1197         * config/avr/avr.c (avr_asm_select_section): Strip off
1198         SECTION_DECLARED from flags when calling get_section.
1199
1200 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1201
1202         * tree-vectorizer.h (vect_memory_access_type): Add
1203         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1204         * tree-vect-stmts.c (compare_step_with_zero): New function.
1205         (perm_mask_for_reverse): Move further up file.
1206         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1207         step is negative.
1208         (get_negative_load_store_type): New function.
1209         (get_load_store_type): Call it.  Add an ncopies argument.
1210         (vectorizable_mask_load_store): Update call accordingly and
1211         remove tests for negative steps.
1212         (vectorizable_store, vectorizable_load): Likewise.  Handle new
1213         memory_access_types.
1214
1215 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1216
1217         * tree-vectorizer.h (vect_memory_access_type): New enum.
1218         (_stmt_vec_info): Add a memory_access_type field.
1219         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1220         (vect_model_store_cost): Take an access type instead of a boolean.
1221         (vect_model_load_cost): Likewise.
1222         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1223         vect_model_store_cost and vect_model_load_cost.
1224         * tree-vect-stmts.c (vec_load_store_type): New enum.
1225         (vect_model_store_cost): Take an access type instead of a
1226         store_lanes_p boolean.  Simplify tests.
1227         (vect_model_load_cost): Likewise, but for load_lanes_p.
1228         (get_group_load_store_type, get_load_store_type): New functions.
1229         (vectorizable_store): Use get_load_store_type.  Record the access
1230         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1231         (vectorizable_load): Likewise.
1232         (vectorizable_mask_load_store): Likewise.  Replace is_store
1233         variable with vls_type.
1234
1235 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1236
1237         * tree-vectorizer.h (vect_grouped_load_supported): Add a
1238         single_element_p parameter.
1239         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1240         Check the PR65518 case here rather than in vectorizable_load.
1241         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1242         * tree-vect-stmts.c (vectorizable_load): Likewise.
1243
1244 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1245
1246         * tree-vectorizer.h (gather_scatter_info): New structure.
1247         (vect_check_gather_scatter): Return a bool rather than a decl.
1248         Replace return-by-pointer arguments with a single
1249         gather_scatter_info *.
1250         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1251         (vect_analyze_data_refs): Update call accordingly.
1252         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1253         (vectorizable_mask_load_store): Likewise.  Also record the
1254         offset dt and vectype in the gather_scatter_info.
1255         (vectorizable_store): Likewise.
1256         (vectorizable_load): Likewise.
1257
1258 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1259
1260         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
1261         strided groups, use the cost of N scalar accesses instead
1262         of ncopies vector accesses.
1263         (vect_model_load_cost): Likewise.
1264
1265 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1266
1267         * tree-vect-stmts.c (vect_cost_group_size): Delete.
1268         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
1269         variable to indicate when once-per-group costs are being used.
1270         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
1271
1272 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1273
1274         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
1275         peeling-for-gaps condition.
1276
1277 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1278
1279         * config/s390/s390.c (s390_expand_vec_init): Force initializer
1280         element to register if it doesn't match general_operand.
1281
1282 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1283             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1284
1285         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1286         prototype.
1287         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1288         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1289         (SIGNBIT): New mode iterator.
1290         (Fsignbit): New mode attribute.
1291         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1292         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1293         when direct moves are available.
1294         (signbit<mode>2_dm): New define_insn_and_split).
1295         (signbit<mode>2_dm2): New define_insn.
1296
1297 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1298
1299         PR rtl-optimization/71594
1300         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
1301         into subregs of appropriate mode before trying to emit a conditional
1302         move.
1303
1304 2016-07-05  Jan Hubicka  <jh@suse.cz>
1305
1306         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
1307         (simple_iv): Use it.
1308
1309 2016-07-05  Jan Hubicka  <jh@suse.cz>
1310
1311         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
1312
1313 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
1314
1315         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
1316         "offmemok".
1317
1318 2016-07-05  Jan Hubicka  <jh@suse.cz>
1319
1320         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
1321         IV can overflow.
1322
1323 2016-07-05  Richard Biener  <rguenther@suse.de>
1324
1325         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
1326         Handle empty else block.
1327         (is_feasible_trace): Likewise.
1328         (split_paths): Likewise.
1329
1330 2016-07-05  Richard Biener  <rguenther@suse.de>
1331
1332         * tree-loop-distribution.c (distribute_loop): Fix issue with
1333         the cost model loop.
1334
1335 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
1336
1337         * config/arm/neon-testgen.ml: Delete.
1338         * config/arm/neon.ml: Delete.
1339
1340 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
1341
1342         PR c++/71739
1343         * tree.c (attribute_value_equal): Use get_attribute_name instead of
1344         directly using TREE_PURPOSE.
1345
1346 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
1347
1348         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
1349         * config/aarch64/aarch64_neon.h: Likewise.
1350         * config/aarch64/arm_neon.h: Likewise.
1351         * config/aarch64/atomics.md: Likewise.
1352         * config/aarch64/aarch64-simd-builtins.def: Likewise.
1353         * doc/invoke.texi: Likewise.
1354
1355 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1356
1357         * config/s390/s390.md: Add "z13" cpu_facility.
1358         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
1359         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
1360         condition" type instructions.
1361
1362 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1363             Jeff Law  <law@redhat.com>
1364
1365         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
1366         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
1367
1368 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
1369
1370         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
1371         permutation for TARGET_AVX512F.
1372         (ix86_expand_vec_one_operand_perm_avx512): New function.
1373         (expand_vec_perm_1): Invoke introduced function.
1374         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1375         it may be not valid after vectorization.
1376
1377 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1378
1379         PR target/63874
1380         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
1381         typo in comment.  Only force to memory if it is a weak
1382         external reference.
1383
1384 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
1385             Jiong Wang  <jiong.wang@arm.com>
1386
1387         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
1388         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
1389         (AARCH64_FL_F16): New.
1390         (AARCH64_FL_FOR_ARCH8_2): New.
1391         (AARCH64_ISA_8_2): New.
1392         (AARCH64_ISA_F16): New.
1393         (TARGET_FP_F16INST): New.
1394         (TARGET_SIMD_F16INST): New.
1395         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
1396         ("fp"): Disabling "fp" also disables "fp16".
1397         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
1398         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
1399         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
1400         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
1401
1402 2016-07-04  Jan Beulich  <jbeulich@suse.com>
1403
1404         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
1405
1406 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1407
1408         PR target/71720
1409         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
1410         the insns, use an insn form that does not adjust the offset on
1411         little endian systems.
1412
1413 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1414
1415         * varasm.c (get_variable_section): Validate initializer in
1416         named .bss-like sections.
1417
1418 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1419
1420         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
1421         Exchange the order of the second and third operands in the vpermr
1422         instruction tmeplate.
1423
1424 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
1425
1426         PR target/71698
1427         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
1428         Disallow TDmode values.
1429
1430 2016-07-01  Alan Modra  <amodra@gmail.com>
1431
1432         PR rtl-optimization/71709
1433         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1434         being set, not referenced.
1435
1436 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1437
1438         PR tree-optimization/70729
1439         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
1440         of loop since it can be not valid after transformation.
1441
1442 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1443
1444         * config/arm/arm.c (thumb_reload_in_hi): Delete.
1445         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
1446
1447 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
1448
1449         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
1450         for NULL decl.
1451
1452 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1453
1454         PR target/71677
1455         * config/rs6000/constraints.md (wY constraint): New constraint to
1456         match the requirements for the LXSD and STXSD instructions.
1457         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
1458         predicate to match the requirements for the LXSD and STXSD
1459         instructions.
1460         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
1461         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
1462         to make sure that the bottom 2 bits of offset are 0, the address
1463         form is offsettable, and no updating is done in the address mode.
1464         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
1465         (movdi_internal32): Likewise
1466         (movdi_internal64): Likewise.
1467
1468 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1469
1470         PR tree-optimization/71707
1471         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
1472         strinfo even for ADDR_EXPR ptr.
1473
1474 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1475
1476         * config/rs6000/altivec.md (darn_32): Change the condition to
1477         TARGET_P9_MISC instead of TARGET_MODULO.
1478         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
1479         condition expression.
1480         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
1481         condition expression.
1482         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
1483         (DFP_TEST): New code iterator.
1484         (dfptstsfi_<code>_mode>): New define_expand.
1485         (*dfp_sgnfcnc_<mode>): New define_insn.
1486         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
1487         definition next to BU_P9_MISC_1 definition and change the MASK
1488         value to RS6000_BTM_P9_MISC.
1489         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
1490         (BU_P9_64BIT_MISC_0): Likewise.
1491         (BU_P9_DFP_MISC_0): New macro definition.
1492         (BU_P9_DFP_MISC_1): New macro definition.
1493         (BU_P9_DFP_MISC_2): New macro definition.
1494         (BU_P9_DFP_OVERLOAD_1): New macro definition.
1495         (BU_P9_DFP_OVERLOAD_2): New macro definition.
1496         (BU_P9_DFP_OVERLOAD_3): New macro definition.
1497         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
1498         (TSTSFI_LT_TD): Likewise.
1499         (TSTSFI_EQ_DD): Likewise.
1500         (TSTSFI_EQ_TD): Likewise.
1501         (TSTSFI_GT_DD): Likewise.
1502         (TSTSFI_GT_TD): Likewise.
1503         (TSTSFI_OV_DD): Likewise.
1504         (TSTSFI_OV_TD): Likewise.
1505         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
1506         (TSTSFI_LT_DD): Likewise.
1507         (TSTSFI_LT_TD): Likewise.
1508         (TSTSFI_EQ): Likewise.
1509         (TSTSFI_EQ_DD): Likewise.
1510         (TSTSFI_EQ_TD): Likewise.
1511         (TSTSFI_GT): Likewise.
1512         (TSTSFI_GT_DD): Likewise.
1513         (TSTSFI_GT_TD): Likewise.
1514         (TSTSFI_OV): Likewise.
1515         (TSTSFI_OV_DD): Likewise.
1516         (TSTSFI_OV_TD): Likewise.
1517         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1518         overloaded test significance functions.
1519         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1520         OPTION_MASK_P9_MISC into the representation of this mask.
1521         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
1522         of this mask.
1523         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
1524         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
1525         non-zero.
1526         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
1527         argument is a 6-bit unsigned literal value if the icode argument
1528         represents a DFP test significance built-in call.
1529         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
1530         flag used independently and in combination with the
1531         RS6000_BTM_64BIT flag.
1532         (rs6000_opt_masks): Add entry for power9-misc command-line option.
1533         (rs6000_builtin_mask_names): Add entry for power9-misc
1534         command-line option.
1535         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
1536         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
1537         RS6000_BTM_P9_MISC macros.
1538         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
1539         option and change the description of the -mpower9-vector option to
1540         enable only vector instructions, removing its erroneously claimed
1541         support for scalar instructions.
1542         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1543         the ISA 3.0 digital floating point test significance built-in
1544         functions.
1545
1546 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
1547
1548         * config/aarch64/aarch64.c (cortexa35_tunings):
1549         Enable AES fusion.  Use cortexa57_branch_cost.
1550         (cortexa53_tunings): Use cortexa57_branch_cost.
1551         (cortexa72_tunings): Use cortexa57_branch_cost.
1552         Use AUTOPREFETCHER_WEAK.
1553         (cortexa73_tunings): Use cortexa57_branch_cost.
1554
1555 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1556             James Greenhalgh  <james.greenhalgh@arm.com>
1557
1558         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
1559         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
1560         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
1561         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
1562         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
1563         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
1564         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
1565         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
1566         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
1567         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
1568         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
1569         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
1570         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
1571         New intrinsics.
1572
1573 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
1574             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1575
1576         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1577         New define_insn.
1578         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
1579
1580 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
1581
1582         PR driver/71651
1583         * gcc.c (driver::build_option_suggestions): Pass "option" to
1584         add_misspelling_candidates.
1585         * opts-common.c (add_misspelling_candidates): Add "option" param;
1586         use it to avoid adding negated forms for options marked with
1587         RejectNegative.
1588         * opts.h (add_misspelling_candidates): Add "option" param.
1589
1590 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1591
1592         PR middle-end/71693
1593         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1594         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1595         first when permuting bitwise operation with rotate.  Cast
1596         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1597
1598 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
1599
1600         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
1601         for misspelled param names.
1602         * params.c: Include spellcheck.h.
1603         (find_param_fuzzy): New function.
1604         * params.h (find_param_fuzzy): New prototype.
1605         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
1606         * spellcheck.h (struct edit_distance_traits<const char *>):
1607         ...here.
1608
1609 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1610
1611         * config/rs6000/predicates.md (const_0_to_7_operand): New
1612         predicate, recognize 0..7.
1613         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1614         support for doing extracts from V16QImode, V8HImode, V4SImode
1615         under ISA 3.0.
1616         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
1617         vector extract support.
1618         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
1619         for ISA 3.0 vector extract.
1620         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
1621         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
1622         extracts of a constant element number from small integer vectors
1623         on 64-bit ISA 3.0 systems.
1624         (vsx_extract_<mode>_di): Likewise.
1625         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
1626         say when we can do ISA 3.0 vector extracts.
1627         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
1628         registers, using the stxsiwx instruction.
1629
1630 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
1631
1632         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
1633         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
1634         qdf24xx_regmove_cost, qdf24xx_tunings): New.
1635         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
1636         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
1637         * config/arm/arm.c (arm_qdf24xx_tune): New.
1638
1639 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
1640
1641         * config/aarch64/aarch64.c (cortexa53_tunings):
1642         Increase loop alignment to 8.  Set function alignment to 16.
1643         (cortexa35_tunings): Likewise.
1644         (cortexa57_tunings): Increase loop alignment to 8.
1645         (cortexa72_tunings): Likewise.
1646         (cortexa73_tunings): Likewise.
1647
1648 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1649
1650         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
1651         for arm_fp16_ok and arm_fp16_hw.
1652         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
1653         arm_fp16_alternative.
1654
1655 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1656
1657         PR tree-optimization/71655
1658         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
1659         types when swapping operands.
1660
1661 2016-06-29  Martin Liska  <mliska@suse.cz>
1662
1663         PR middle-end/71585
1664         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
1665         * ipa-inline-transform.c (inline_call): Remove unnecessary call
1666         of build_optimization_node.
1667
1668 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1669
1670         PR tree-optimization/70729
1671         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1672         independent in loops having positive safelen value.
1673         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1674         it may be not valid after vectorization.
1675
1676 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1677
1678         PR tree-optimization/71625
1679         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
1680         is sorted by ascending list->offset.  If PTR is non-NULL and there is
1681         previous strinfo, call get_stridx_plus_constant.
1682         (get_stridx): Pass exp as second argument to get_addr_stridx.
1683         (addr_stridxptr): Add missing list = list->next, so that there can be
1684         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
1685         the list is sorted by ascending list->offset.
1686         (get_stridx_plus_constant): Adjust so that it can be also called with
1687         ADDR_EXPR instead of SSA_NAME as PTR.
1688         (handle_char_store): Pass NULL_TREE as second argument to
1689         get_addr_stridx.
1690
1691 2016-06-29  Richard Biener  <rguenther@suse.de>
1692
1693         PR rtl-optimization/68961
1694         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1695
1696 2016-06-29  Richard Biener  <rguenther@suse.de>
1697
1698         PR middle-end/71002
1699         * alias.c (component_uses_parent_alias_set_from): Handle
1700         type punning through union accesses by using the union alias set.
1701         * gimple.c (gimple_get_alias_set): Remove union type punning case.
1702
1703 2016-07-29  Richard Biener  <rguenther@suse.de>
1704
1705         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1706         precision not matching mode precision.
1707
1708 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
1709
1710         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1711         pa_output_arg_descriptor.
1712         (call_val_symref_64bit_post_reload): Likewise.
1713         (call_val_powf_64bit_post_reload): Likewise.
1714         (sibcall_internal_symref_64bit): Likewise.
1715         (sibcall_value_internal_symref_64bit): Likewise.
1716
1717 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1718
1719         PR middle-end/71626
1720         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1721         a constant, force its SUBREG_REG into memory or register instead
1722         of whole op1.
1723
1724 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1725
1726         PR target/58655
1727         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1728         * doc/invoke.texi (AVR Options): Document it.
1729
1730 2016-06-28  Walter Lee  <walt@tilera.com>
1731
1732         * config/tilegx/linux.h: Do not include arch/icache.h
1733         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1734         * config/tilepro/linux.h: Do not include arch/icache.h
1735         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1736
1737 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1738
1739         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1740         for big-endian BIT_FIELD_REF.
1741
1742 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
1743
1744         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1745         ('size' attribute): Add '128'.
1746         Include power9.md.
1747         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1748         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1749         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1750         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1751         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1752         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1753         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1754         *trunc<mode>df2_odd): Set size attribute to '128'.
1755         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1756         * config/rs6000/power6.md (power6-fp): Include dfp type.
1757         * config/rs6000/power7.md (power7-fp): Likewise.
1758         * config/rs6000/power8.md (power8-fp): Likewise.
1759         * config/rs6000/power9.md: New file.
1760         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1761         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1762         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1763         htmsimple.
1764         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1765         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1766         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1767         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1768         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1769         dfp_dscri_<mode>): Change type attribute to dfp.
1770         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1771         attribute to vecsimple.
1772         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1773         and prefetch streams.
1774         (rs6000_option_override_internal): Remove temporary code setting
1775         tuning to power8.  Don't set rs6000_sched_groups for power9.
1776         (last_scheduled_insn): Change to rtx_insn *.
1777         (divide_cnt, vec_load_pendulum): New variables.
1778         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
1779         (rs6000_issue_rate): Set issue rate for Power9.
1780         (is_power9_pairable_vec_type): New.
1781         (power9_sched_reorder2): New.
1782         (rs6000_sched_reorder2): Call new function for Power9 specific
1783         reordering.
1784         (insn_must_be_first_in_group): Remove Power9.
1785         (insn_must_be_last_in_group): Likewise.
1786         (force_new_group): Likewise.
1787         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
1788         Initialize divide_cnt/vec_load_pendulum.
1789         (_rs6000_sched_context, rs6000_init_sched_context,
1790         rs6000_set_sched_context): Handle context save/restore of new
1791         variables.
1792
1793 2016-06-28  Richard Biener  <rguenther@suse.de>
1794
1795         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1796         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
1797         COMPONENT_REF operand.
1798         (nonoverlapping_component_refs_p): Likewise.
1799         * stor-layout.c (start_bitfield_representative): Mark
1800         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
1801
1802 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1803
1804         * Makefile.in: Don't cat ../stage_current if it does not exist.
1805
1806         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
1807         last argument is a bit-field.
1808
1809         PR rtl-optimization/71673
1810         * internal-fn.c (expand_arith_overflow_result_store): Use
1811         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
1812         expand_simple_binop.
1813
1814         PR middle-end/66867
1815         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
1816         expand_ifn_atomic_compare_exchange): New functions.
1817         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1818         * tree.h (build_call_expr_internal_loc): Rename to ...
1819         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1820         last argument.
1821         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1822         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1823         ATOMIC_COMPARE_EXCHANGE result.
1824         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1825         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1826         fold_builtin_atomic_compare_exchange): New prototypes.
1827         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1828         fold_builtin_atomic_compare_exchange): New functions..
1829         * tree-ssa.c (execute_update_addresses_taken): If
1830         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1831         of call when finding addressable vars, and if such var becomes
1832         non-addressable, call fold_builtin_atomic_compare_exchange.
1833
1834 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1835
1836         PR target/71670
1837         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1838         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1839
1840 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1841
1842         * config/rs6000/rs6000.md ('type' attribute): Add
1843         veclogical,veccmpfx,vecexts,vecmove insn types.
1844         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1845         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1846         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1847         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1848         *nabs<mode>2_hw): Change type to vecmove.
1849         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1850         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1851         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1852         *ieee_128bit_vsx_abs<mode>2_internal,
1853         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1854         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1855         *ieee128_mtvsrd_32bit): Change type to veclogical.
1856         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1857         *movdi_internal32, *movdi_internal64): Update insn types.
1858         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1859         vsx_extract_<mode>): Change type to veclogical.
1860         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1861         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1862         *vsx_sign_extend_si_v2di): Change type to vecexts.
1863         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1864         type to veclogical.
1865         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1866         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1867         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1868         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1869         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1870         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1871         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1872         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1873         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1874         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1875         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1876         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1877         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1878         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1879         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1880         (ppc7450-vecsimple): Add veclogical, vecmove.
1881         (ppc7450-veccmp): Add veccmpfx.
1882         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1883         vecmove.
1884         (ppc8540_vector_compare): Add veccmpfx.
1885         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1886         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1887         (cell-vecsimple): Add veclogical, vecmove.
1888         (cell-veccmp): Add veccmpfx.
1889         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1890         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1891         veccmpfx.
1892         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1893         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1894         (power4-vecsimple): Add veclogical, vecmove.
1895         (power4-veccmp): Add veccmpfx.
1896         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1897         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1898         (power6-vecsimple): Add veclogical, vecmove.
1899         (power6-veccmp): Add veccmpfx.
1900         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1901         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1902         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1903         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1904         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1905         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1906         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1907         fpsimple.
1908         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1909
1910 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1911
1912         PR target/71656
1913         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1914         OPTION_MASK_P9_DFORM_VECTOR.
1915         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1916         disable -mpower9-dform-vector when using reload.
1917         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1918         New 'strict' argument.  Update all callers.  Add strict addressing
1919         support.
1920         (rs6000_legitimate_offset_address_p): Remove call to
1921         virtual_stack_registers_memory_p.
1922         (rs6000_legitimize_reload_address): Add quad address support.
1923         (rs6000_legitimate_address_p): Move call to quad_address_p above
1924         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1925         to account for new strict usage.
1926         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1927         for new strict usage.
1928         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1929
1930 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1931
1932         PR target/70902
1933         PR target/71453
1934         PR target/71555
1935         PR target/71596
1936         PR target/71657
1937         * config/i386/i386.c (ix86_spill_class): Disable condition to
1938         always return NO_REGS.
1939
1940 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1941
1942         * predict.c: Include gimple-pretty-print.h
1943         (predicted_by_loop_heuristics_p): Check also
1944         PRED_LOOP_EXIT_WITH_RECURSION
1945         (predict_loops): Find self recursive calls and use special purpose
1946         predictors for them; dump log about decisions.
1947         (pass_profile::execute): Dump info about #of iterations.
1948         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1949         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1950
1951 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1952
1953         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1954         output_asm_insn calls and shorten long lines.  Output .CALL
1955         argument descriptor using pa_output_arg_descriptor.  Add various
1956         inline $$dyncall and other optimizations.
1957         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1958
1959 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
1960
1961         PR tree-optimization/71643
1962         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
1963         EH preds.
1964
1965         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
1966         leak a bitmap if dep_bb is NULL.
1967
1968         PR tree-optimization/71631
1969         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
1970         to rewrite_expr_tree even if negate_result, move new_lhs var
1971         declaration and initialization earlier, for powi_result set afterwards
1972         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
1973         if new_lhs != lhs, and don't shadow gsi var.
1974
1975 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1976
1977         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
1978         Add in_loop parameter.
1979         (predict_loops): Add loop guard heuristics.
1980         * predict.def (PRED_LOOP_GUARD): New heuristics.
1981
1982 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1983
1984         * predict.c: Include ipa-utils.h
1985         (tree_bb_level_prediction): Predict recursive calls.
1986         (tree_estimate_probability_bb): Skip inexpensive calls for call
1987         predictor.
1988         * predict.def (PRED_RECURSIVE_CALL): New.
1989
1990 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1991
1992         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
1993         (BU_FLOAT128_1): Likewise.
1994         (FABSQ): Likewise.
1995         (COPYSIGNQ): Likewise.
1996         (RS6000_BUILTIN_NANQ): Likewise.
1997         (RS6000_BUILTIN_NANSQ): Likewise.
1998         (RS6000_BUILTIN_INFQ): Likewise.
1999         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2000         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2001         (TARGET_FOLD_BUILTIN): New #define.
2002         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2003         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2004         (rs6000_fold_builtin): New target hook implementation, handling
2005         folding of 128-bit NaNs and infinities.
2006         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2007         entries are filled in to avoid problems during bootstrap
2008         self-test; define builtins for 128-bit NaNs and infinities.
2009         (rs6000_opt_mask): Add entry for float128.
2010         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2011         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2012         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2013         (const_str_type_node): New #define.
2014         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2015         to a define_expand that dispatches to either copysign<mode>3_soft
2016         or copysign<mode>3_hard.
2017         (copysign<mode>3_hard): Rename from copysign<mode>3.
2018         (copysign<mode>3_soft): New define_insn.
2019         * doc/extend.texi: Document new builtins.
2020
2021 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2022
2023         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2024         PRIu64 instead of lu.
2025
2026 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2027
2028         PR debug/71642
2029         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2030         copy the type name.
2031
2032 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2033
2034         PR tree-optimization/71647
2035         * omp-low.c (lower_rec_input_clauses): Convert
2036         omp_clause_aligned_alignment (c) to size_type_node for the
2037         last argument of __builtin_assume_aligned.
2038
2039 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2040
2041         * configure.ac (calling ___tls_get_addr via GOT): New
2042         assembler/linker check.
2043         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
2044         assembler and linker supports calling ___tls_get_addr via GOT.
2045         Otherise, defined to 0.
2046         * config.in: Regenerated.
2047         * configure: Likewise.
2048         * config/i386/constraints.md (Yb): New constraint.
2049         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2050         (REG_CLASS_NAMES): Likewise.
2051         (REG_CLASS_CONTENTS): Likewise.
2052         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2053         the b constraint with the Yb constraint.  Call ___tls_get_addr
2054         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2055         is 1.
2056         (*tls_local_dynamic_base_32_gnu): Likewise.
2057         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2058         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2059         (*tls_local_dynamic_base_64_<mode>): Likewise.
2060
2061 2016-06-24  Martin Liska  <mliska@suse.cz>
2062
2063         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2064         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2065         few functions.
2066         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2067         argument to true if the expected number of iterations is
2068         loop-based.
2069
2070 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
2071
2072         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2073         assemble for 32bit target.
2074         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2075         and $ld_ix86_gld_32_opt to link for 32bit target.
2076         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2077         * configure: Regenerate.
2078
2079 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2080
2081         * config/arm/arm.c (int_log2): Delete definition and prototype.
2082         (shift_op): Use exact_log2 instead of int_log2.
2083         (vfp3_const_double_for_fract_bits): Likewise.
2084
2085 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2086
2087         * internal-fn.c (expand_arith_set_overflow): New function.
2088         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2089         Use it.
2090         (expand_arith_overflow_result_store): Likewise.  Handle precision
2091         smaller than mode precision.
2092         * tree-vrp.c (extract_range_basic): For imag part, handle
2093         properly signed 1-bit precision result.
2094         * doc/extend.texi (__builtin_add_overflow): Document that last
2095         argument can't be pointer to enumerated or boolean type.
2096         (__builtin_add_overflow_p): Document that last argument can't
2097         have enumerated or boolean type.
2098
2099 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2100             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2101
2102         * config/rs6000/predicates.md (splat_input_operand): Rework.
2103         Don't allow constants, since the insns that use this predicate
2104         don't support constants.  Constants are handled by other insns
2105         that are created via combine.  During and after register
2106         allocation, only allow indexed or indirect addresses, and not
2107         general addresses.  Only allow modes supported by the hardware.
2108         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2109         comment.  Move check for using VSPLTIS<x> to a common location,
2110         instead of doing it in two different places.
2111
2112 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
2113
2114         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2115         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2116         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2117         signature_CENTAUR_ebx.
2118
2119 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2120
2121         PR target/66232
2122         PR target/67400
2123         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2124         (as_ix86_gas_32_opt): This.
2125         (ld_ix86_tls_ldm_opt): Renamed to ...
2126         (ld_ix86_gld_32_opt): This.
2127         (R_386_TLS_LDM reloc): Updated.
2128         (R_386_GOT32X reloc): New assembler/linker check.
2129         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
2130         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
2131         defined to 0.
2132         * config.in: Regenerated.
2133         * configure: Likewise.
2134         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2135         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2136         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2137         if ix86_force_load_from_GOT_p returns true.
2138         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2139         ix86_force_load_from_GOT_p returns true.
2140         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2141         the external function address via the GOT slot.
2142         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2143         HAVE_AS_IX86_GOT32X before returning false.
2144         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2145         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2146
2147 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
2148
2149         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2150
2151 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2152
2153         * Makefile.in: Regenerate.
2154         * doc/install.texi: Document autoprofiledbootstrap.
2155
2156 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2157
2158         * config/i386/gcc-auto-profile: New file.
2159
2160 2016-06-23  Martin Liska  <mliska@suse.cz>
2161
2162         PR middle-end/71619
2163         * predict.c (predict_loops): Revert the hunk that was removed
2164         in r237103.
2165
2166 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
2167
2168         * config.gcc: Add support for arm*-*-phoenix* targets.
2169         * config/arm/t-phoenix: New.
2170         * config/phoenix.h: New.
2171
2172 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
2173             H.J. Lu  <hongjiu.lu@intel.com>
2174
2175         PR target/67400
2176         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2177         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2178         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2179         ix86_force_load_from_GOT_p returns true.
2180         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2181         ix86_force_load_from_GOT_p returns true.
2182         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2183         ix86_force_load_from_GOT_p returns true.
2184         (ix86_expand_move): Load the external function address via the
2185         GOT slot if ix86_force_load_from_GOT_p returns true.
2186         * config/i386/predicates.md (x86_64_immediate_operand): Return
2187         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2188         (x86_64_zext_immediate_operand): Ditto.
2189
2190 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
2191
2192         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2193
2194 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2195
2196         PR c/70339
2197         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2198         * diagnostic.c (pedwarn_at_rich_loc): New function.
2199         * spellcheck.h (best_match::best_match): Add a
2200         "best_distance_so_far" optional parameter.
2201         (best_match::set_best_so_far): New method.
2202         (best_match::get_best_distance): New accessor.
2203         (best_match::get_best_candidate_length): New accessor.
2204
2205 2016-06-22  Nick Clifton  <nickc@redhat.com>
2206
2207         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2208         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2209         modes are accepted as well.
2210         (ucompare_loc_descriptor): Likewise.
2211         (minmax_loc_descriptor): Likewise.
2212         (clz_loc_descriptor): Likewise.
2213         (popcount_loc_descriptor): Likewise.
2214         (bswap_loc_descriptor): Likewise.
2215         (rotate_loc_descriptor): Likewise.
2216         (mem_loc_descriptor): Likewise.
2217         (loc_descriptor): Likewise.
2218
2219 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2220
2221         * common.opt (fdiagnostics-parseable-fixits): New option.
2222         * diagnostic.c: Include "selftest.h".
2223         (print_escaped_string): New function.
2224         (print_parseable_fixits): New function.
2225         (diagnostic_report_diagnostic): Call print_parseable_fixits.
2226         (selftest::assert_print_escaped_string): New function.
2227         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2228         (selftest::test_print_escaped_string): New function.
2229         (selftest::test_print_parseable_fixits_none): New function.
2230         (selftest::test_print_parseable_fixits_insert): New function.
2231         (selftest::test_print_parseable_fixits_remove): New function.
2232         (selftest::test_print_parseable_fixits_replace): New function.
2233         (selftest::diagnostic_c_tests): New function.
2234         * diagnostic.h (struct diagnostic_context): Add field
2235         "parseable_fixits_p".
2236         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2237         -fdiagnostics-parseable-fixits.
2238         (-fdiagnostics-parseable-fixits): New option.
2239         * opts.c (common_handle_option): Handle
2240         -fdiagnostics-parseable-fixits.
2241         * selftest-run-tests.c (selftest::run_tests): Call
2242         selftest::diagnostic_c_tests.
2243         * selftest.h (selftest::diagnostic_c_tests): New prototype.
2244
2245 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
2246
2247         PR tree-optimization/71488
2248         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2249         comparison of boolean vectors.
2250         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2251         of boolean vectors using bitwise operations.
2252
2253 2016-06-22  Andreas Schwab  <schwab@suse.de>
2254
2255         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2256         Remove declaration.
2257
2258 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2259
2260         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2261
2262 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2263
2264         * config/i386/i386.c (print_reg): Emit an error message on attempt to
2265         print FLAGS_REG.
2266
2267 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2268
2269         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
2270         * config/arm/arm-cores.def (cortex-a73): New entry.
2271         (cortex-a73.cortex-a35): Likewise.
2272         (cortex-a73.cortex-a53): Likewise.
2273         * config/arm/arm-tables.opt: Regenerate.
2274         * config/arm/arm-tune.md: Likewise.
2275         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
2276         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2277         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
2278         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2279         * doc/invoke.texi (ARM Options): Document cortex-a73,
2280         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
2281
2282 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2283
2284         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
2285         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
2286         (cortex-a73.cortex-a35): Likewise.
2287         (cortex-a73.cortex-a53): Likewise.
2288         * config/aarch64/aarch64-tune.md: Regenerate.
2289         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
2290         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
2291         -mcpu and -mtune.
2292
2293 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2294
2295         * configure.ac (gcc_cv_as_compress_debug): Remove
2296         --compress-debug-sections as extra as switch.
2297         Handle gas --compress-debug-sections=type.
2298         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
2299         Handle gld --compress-debug-sections=type.
2300         * configure: Regenerate.
2301
2302 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2303
2304         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
2305
2306 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2307
2308         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
2309         (do_rewrite): likewise.
2310
2311 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2312
2313         * common/config/mep/mep-common.c: Remove.
2314         * config.gcc: Remove mep-* support.
2315         * config/mep/constraints.md: Remove.
2316         * config/mep/default.h: Remove.
2317         * config/mep/intrinsics.h: Remove.
2318         * config/mep/intrinsics.md: Remove.
2319         * config/mep/ivc2-template.h: Remove.
2320         * config/mep/mep-c5.cpu: Remove.
2321         * config/mep/mep-core.cpu: Remove.
2322         * config/mep/mep-default.cpu: Remove.
2323         * config/mep/mep-ext-cop.cpu: Remove.
2324         * config/mep/mep-intrin.h: Remove.
2325         * config/mep/mep-ivc2.cpu: Remove.
2326         * config/mep/mep-pragma.c: Remove.
2327         * config/mep/mep-protos.h: Remove.
2328         * config/mep/mep.c: Remove.
2329         * config/mep/mep.cpu: Remove.
2330         * config/mep/mep.h: Remove.
2331         * config/mep/mep.md: Remove.
2332         * config/mep/mep.opt: Remove.
2333         * config/mep/predicates.md: Remove.
2334         * config/mep/t-mep: Remove.
2335         * doc/install.texi: Remove mep-* documentation.
2336         * doc/md.texi: Likewise.
2337
2338 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2339
2340         * config.gcc: Remove support for avr-rtems.
2341         * config/avr/gen-avr-mmcu-specs.c: Likewise.
2342         * config/avr/rtems.h: Remove.
2343         * config/avr/t-rtems: Remove.
2344
2345 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2346
2347         * config.gcc: Remove m32r-rtems support.
2348         * config/m32r/rtems.h: Remove.
2349
2350 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2351
2352         * config.gcc: Remove h8300-rtems support.
2353         * config/h8300/rtems.h: Remove.
2354         * config/h8300/t-rtems: Remove.
2355
2356 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2357
2358         * config.gcc: Remove support for knetbsd.
2359         * configure.ac: Likewise.
2360         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
2361         * config/knetbsd-gnu.h: Remove.
2362         * configure: Regenerate.
2363
2364 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2365
2366         * config.gcc: Remove support for openbsd 2 and 3.
2367         * config/openbsd-oldgas.h: Remove.
2368
2369 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2370
2371         * config.gcc: Remove interix support.
2372         * config/i386/i386-interix.h: Remove.
2373         * config/i386/interix.opt: Remove.
2374         * config/i386/t-interix: Remove.
2375         * configure: Regenerate.
2376         * configure.ac: Remove interix support.
2377         * doc/install.texi: Remove interix documentation.
2378
2379 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2380
2381         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2382         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2383         not defined.
2384
2385 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2386
2387         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
2388         they are both PLACEHOLDER_EXPRs.
2389
2390 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2391
2392         * stor-layout.c (layout_type): Move setting complex MODE to
2393         layout_type, instead of setting it ahead of time by the caller.
2394         * tree.c (build_complex_type): Likewise.
2395
2396 2016-06-21  Martin Liska  <mliska@suse.cz>
2397
2398         * predict.c (force_edge_cold): Replace imposisble with
2399         impossible.
2400
2401 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2402
2403         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
2404         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
2405
2406 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2407
2408         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
2409
2410 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2411             Ilya Enkovich  <ilya.enkovich@intel.com>
2412
2413         PR target/71549
2414         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2415         New member function to convert V1TImode register to SUBREG
2416         TImode in debug insn.
2417         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
2418         after changing register mode to V1TImode.
2419
2420 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
2421
2422         * config/aarch64/aarch64-cores.def (vulcan): New core.
2423         * config/aarch64/aarch64-tune.md: Regenerate.
2424         * doc/invoke.texi: Document vulcan as an available option.
2425
2426 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2427
2428         * cse.c (canon_asm_operands): New function extracted from...
2429         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
2430         either standalone or member of a PARALLEL.
2431
2432 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2433
2434         PR target/30417
2435         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
2436         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
2437         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
2438
2439 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2440
2441         PR target/71103
2442         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
2443         constant addresses if can_create_pseudo_p.
2444
2445 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
2446
2447         PR tree-optimization/71588
2448         * tree-ssa-strlen.c (valid_builtin_call): New function.
2449         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
2450         it.
2451
2452 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2453
2454         PR middle-end/71581
2455         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
2456         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
2457         for conversion of scalar user var to complex type and use the
2458         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
2459         punt.
2460
2461         PR rtl-optimization/71591
2462         * toplev.c (toplev::run_self_tests): If no_backend, complain and
2463         don't run any tests.
2464
2465 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
2466
2467         PR target/71571
2468         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
2469         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
2470         space for PIC with non-v32 and the common non-PIC "jump".
2471
2472 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2473
2474         PR target/71559
2475         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2476         returned values and add UN*/LTGT/*ORDERED cases with values matching
2477         D operand modifier on vcmp for AVX.
2478
2479 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2480
2481         * config/aarch64/aarch64.opt
2482         (mpc-relative-literal-loads): Rename internal option name.
2483         * config/aarch64/aarch64.c
2484         (aarch64_nopcrelative_literal_loads): Rename to
2485         aarch64_pcrelative_literal_loads.
2486         (aarch64_expand_mov_immediate): Likewise.
2487         (aarch64_secondary_reload): Likewise.
2488         (aarch64_can_use_per_function_literal_pools_p): Likewise.
2489         (aarch64_override_options_after_change_1): Rename and simplify logic.
2490         (aarch64_classify_symbol): Merge large model checks into switch,
2491         remove pc-relative load check.
2492
2493 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2494
2495         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
2496         costs relative to the cost of a register move.
2497
2498 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2499
2500         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
2501         (vcvt_n_f64_u64): Likewise.
2502         (vcvt_n_s64_f64): Likewise.
2503         (vcvt_n_u64_f64): Likewise.
2504         (vcvt_f64_s64): Likewise.
2505         (vrecpe_f64): Likewise.
2506         (vcvt_f64_u64): Likewise.
2507         (vrecps_f64): Likewise.
2508
2509 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2510
2511         * config/aarch64/aarch64.md
2512         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
2513         iterators.
2514         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
2515         attributes.
2516         * config/aarch64/aarch64-builtins.c
2517         (aarch64_types_binop_uss_qualifiers): Delete.
2518         (TYPES_BINOP_USS): Likewise.
2519         (aarch64_types_binop_sus_qualifiers): Likewise.
2520         (TYPES_BINOP_SUS): Likewise.
2521         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
2522         (TYPES_FCVTIMM_SUS): Likewise.
2523         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
2524         rather than BINOP.
2525         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
2526         (fcvtzs): Use SHIFTIMM rather than BINOP.
2527         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
2528
2529 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2530
2531         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
2532         costs relative to the cost of a register move.
2533
2534 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2535
2536         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
2537         Allow scalar/single vector modes to be tieable.
2538
2539 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2540
2541         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
2542
2543 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2544
2545         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
2546         "alignement".
2547         * tree.h (TYPE_ALIGN): Likewise.
2548
2549 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2550
2551         PR target/71103
2552         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
2553
2554 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2555
2556         * config/avr/avr.c (avr_print_operand): Fix "format not a string
2557         literal" build warnings.
2558         (avr_print_operand_address): Dito.
2559
2560 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
2561
2562         PR target/71375
2563         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
2564         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
2565
2566 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
2567
2568         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
2569
2570 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2571
2572         PR bootstrap/71435
2573         * reload1.c (reload): Pass 0 to finish_spills when called because
2574         update_eliminables_and_spill returns true and remove did_spill.
2575         (finish_spills): Adjust comment and document GLOBAL parameter.
2576
2577 2016-06-17  DJ Delorie  <dj@redhat.com>
2578
2579         PR target/71338
2580         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2581         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2582         (umulqihi3_virt): Likewise.
2583         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2584         (umulqihi3_real): Likewise.
2585
2586 2016-06-17  Martin Liska  <mliska@suse.cz>
2587
2588         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2589
2590 2016-06-17  Martin Liska  <mliska@suse.cz>
2591
2592         * predict.def: PRED_LOOP_EXIT from 92 to 85.
2593
2594 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
2595
2596         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
2597         __FAST_MATH__.
2598         (vaddq_f32): Likewise.
2599         (vmul_f32): Likewise.
2600         (vmulq_f32): Likewise.
2601         (vsub_f32): Likewise.
2602         (vsubq_f32): Likewise.
2603
2604 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2605
2606         PR tree-optimization/71347
2607         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
2608         cost for all uses in group.
2609
2610 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
2611
2612         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
2613         insert gimple seq if it's not empty.
2614
2615 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2616
2617         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
2618         member OFFSET.
2619         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
2620         rather than OFFSET.
2621         (comp_dr_with_seg_len_pair): Ditto.
2622         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
2623         struct dr_with_seg_len_pair against DR_OFFSET.
2624         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
2625         DR_OFFSET directly.
2626
2627 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2628
2629         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
2630
2631 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
2632
2633         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
2634         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
2635         (pa_output_millicode_call): Likewise.
2636         (pa_output_call): Likewise.
2637         (pa_output_indirect_call): Likewise.
2638         (pa_asm_output_mi_thunk): Likewise.
2639
2640 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2641
2642         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
2643
2644 2016-06-16  Martin Liska  <mliska@suse.cz>
2645
2646         * predict.c (combine_predictions_for_insn): When we find a first
2647         match predictor, we should consider just predictors with
2648         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
2649         DS theory predictor.
2650         (combine_predictions_for_bb): Likewise.
2651
2652 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2653
2654         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2655         with base of reference to struct.
2656
2657 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2658
2659         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
2660
2661 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2662
2663         PR target/71151
2664         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2665         progmem_swtable_section.
2666         (progmem_swtable_section): Remove.
2667         (avr_asm_function_rodata_section): Remove.
2668         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2669         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2670
2671 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
2672
2673         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2674         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2675         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2676         signature_CENTAUR_ebx.
2677         * config/i386/i386.c (ix86_option_override_internal): Add
2678         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2679         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2680         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2681
2682 2016-06-16  Martin Liska  <mliska@suse.cz>
2683
2684         * predict.def: Add fortran loop preheader predictor.
2685         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2686         fold IFN_BUILTIN_EXPECT with a known constant argument.
2687
2688 2016-06-16  Martin Liska  <mliska@suse.cz>
2689
2690         * predict.def: Add 'Fortran' to display text of all
2691         PRED_FORTRAN_* predictors.
2692
2693 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2694
2695         PR target/71242
2696         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2697         [IA64_BUILTIN_NANSQ]: Ditto.
2698         (ia64_fold_builtin): New function.
2699         (TARGET_FOLD_BUILTIN): New define.
2700         (ia64_init_builtins) Declare const_string_type node.
2701         Add __builtin_nanq and __builtin_nansq builtin functions.
2702         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2703
2704 2016-06-16  Nick Clifton  <nickc@redhat.com>
2705
2706         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2707         MSP430_HWMULT_ prefix to enum values.
2708         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2709         * config/msp430/msp430.c: Update use of enum values.
2710         * config/msp430/msp430.md: Likewise.
2711         * config/msp430/msp430.opt: Likewise.
2712
2713 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
2714
2715         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2716         of comparsions in the last iteration.
2717
2718 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2719             Joern Rennecke  <joern.rennecke@embecosm.com>
2720
2721         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2722         addresses.
2723         (arc_needs_pcl_p): Add GOTOFFPC.
2724         (arc_legitimate_pic_addr_p): Likewise.
2725         (arc_output_pic_addr_const): Likewise.
2726         (arc_legitimize_pic_address): Generate a pc-relative address using
2727         GOTOFFPC.
2728         (arc_output_libcall): Use @pcl syntax.
2729         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2730         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2731         (*movsi_insn): Use @pcl syntax.
2732         (doloop_begin_i): Likewise.
2733
2734 2016-06-16  Martin Liska  <mliska@suse.cz>
2735
2736         * predict.def: Define a new predictor.
2737
2738 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2739
2740         * config/arc/arc.opt (mtp-regno): Update text.
2741
2742 2016-06-16  Renlin Li  <renlin.li@arm.com>
2743
2744         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2745
2746 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2747
2748         PR target/71554
2749         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2750         (setcc + and peephole2): Likewise.
2751
2752         PR rtl-optimization/71532
2753         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2754         memory slots.
2755
2756 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2757
2758         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2759         DImode constants with XXSPLTIB in vector registers.
2760         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2761         vsx_extract_<mode>_internal{1,2} into a single insn that handles
2762         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2763         extraction of the element at the top of the register as a scalar
2764         value.
2765         (vsx_extract_<mode>_internal1): Likewise.
2766         (vsx_extract_<mode>_internal2): Likewise.
2767         * config/rs6000/constraints.md (wi constraint): Remove a comment
2768         about DImode not being allowed in Altivec registers.
2769         (wB constraint): New constraint for constants that can be
2770         generated in Altivec registers with VSPLTISW/VUPKHSW.
2771         * config/rs6000/predicates.md (xxspltib_constant_split): Update
2772         comments.
2773         (xxspltib_constant_nosplit): Likewise.
2774         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2775         support for -mupper-regs-di to enable DImode to go into Altivec
2776         registers.
2777         (POWERPC_MASKS): Likewise.
2778         (power7 cpu): Likewise.
2779         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
2780         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
2781         for DImode being allowed in Altivec registers.  Update wi/wj
2782         constraints.  Set scalar_in_vmx_p flag.
2783         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
2784         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
2785         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
2786         (rs6000_opt_masks): Add -mupper-regs-di.
2787         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
2788         direct move to use wi and not wj.
2789         (lfiwzx): Likewise.
2790         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
2791         alternative.
2792         (floatunssi<mode>2_lfiwzx_mem): Likewise.
2793         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
2794         any VSX register, instead of just Altivec registers, to allow
2795         either operand to be an Altivec register or both.
2796         (fixuns_trunc<mode>di2_fctiduz): Likewise.
2797         (movdi_internal32): Add support for -mupper-regs-di.  Add support
2798         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
2799         the alternatives and attributes to be lined up to be easier to
2800         read.
2801         (movdi_internal64): Likewise.
2802         (64-bit DImode splitters): Change predicates to only split loading
2803         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
2804         load constants in ISA 3.0 or ISA 2.07 respectively.
2805         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2806         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
2807         mention -mcpu=power9 sets these options.
2808         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
2809         wB constraint.
2810
2811 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2812
2813         PR target/67353
2814         * config/avr/avr.c (avr_set_current_function): Warn misspelled
2815         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
2816         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2817         by default to warn misspelled interrupt/ signal handler.
2818         * doc/invoke.texi (AVR Options): Document it. Update description
2819         for -nodevicelib option.
2820
2821 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2822
2823         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2824         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2825         (aarch64_<sur>shll2_n<mode>): Likewise.
2826
2827 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2828
2829         PR middle-end/71529
2830         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2831         DECL_CONTEXT for copied arguments.
2832
2833 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2834
2835         PR tree-optimization/71483
2836         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2837         for slp
2838
2839 2016-06-15  Martin Liska  <mliska@suse.cz>
2840
2841         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2842         instead of predict_edge w/o a probability.
2843
2844 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2845
2846         PR tree-optimization/71439
2847         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2848         live PHIs.
2849
2850 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2851
2852         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2853         register subregs in SET_SRC.
2854
2855 2016-06-15  Richard Biener  <rguenther@suse.de>
2856
2857         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2858         store restrictions.
2859
2860 2016-06-15  Richard Biener  <rguenther@suse.de>
2861
2862         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2863         not consider dependences between accesses that belong to the
2864         same group.
2865         (vect_analyze_data_ref_dependences): Do not analyze read-read
2866         or self-dependences.
2867
2868 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2869
2870         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2871         spellcheck.h.
2872         (find_closest_identifier): Reimplement in terms of
2873         best_match<tree,tree>.
2874         * spellcheck-tree.h: New file.
2875         * spellcheck.c (struct edit_distance_traits<const char *>): New
2876         struct.
2877         (find_closest_string): Reimplement in terms of
2878         best_match<const char *, const char *>.
2879         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2880         overload to spellcheck-tree.h.
2881         (find_closest_identifier): Likewise.
2882         (struct edit_distance_traits<T>): New template.
2883         (class best_match): New class.
2884
2885 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2886
2887         * selftest-run-tests.c (selftest::run_tests): Call
2888         selftest::spellcheck_tree_c_tests.
2889         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2890         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2891         (selftest::test_find_closest_identifier): New function.
2892         (selftest::spellcheck_tree_c_tests): New function.
2893         * spellcheck.c (selftest::test_find_closest_string): Verify that
2894         the order of the vec does not affect the results for this case.
2895         (selftest::test_data): New array.
2896         (selftest::test_metric_conditions): New function.
2897         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2898         Call selftest::test_metric_conditions.
2899
2900 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2901
2902         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2903         (BU_P9_MISC_1): Likewise.
2904         (BU_P9_64BIT_MISC_0): Likewise.
2905         (BU_P9_MISC_0): Likewise.
2906
2907 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2908
2909         * gcc-rich-location.c
2910         (gcc_rich_location::add_fixit_misspelled_id): New method.
2911         * gcc-rich-location.h
2912         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2913
2914 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2915
2916         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2917         FreeBSD 11 and above.
2918
2919 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2920
2921         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2922
2923 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2924
2925         * expmed.h: Close parenthesis in "at your option" in copyright
2926         boilerplate.
2927         * lower-subreg.h: Likewise.
2928
2929 2016-06-14  Richard Biener  <rguenther@suse.de>
2930
2931         PR middle-end/71526
2932         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2933         if available.
2934
2935 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2936
2937         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2938         New function.
2939         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2940         mask+shift version.
2941         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2942         New prototype.
2943         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2944         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2945
2946 2016-06-14  Richard Biener  <rguenther@suse.de>
2947
2948         PR tree-optimization/71522
2949         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2950         copying into float copying.
2951
2952 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2953
2954         PR tree-optimization/71520
2955         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2956         (replace_block_by): Move user labels from bb1 to bb2.
2957
2958 2016-06-14  Richard Biener  <rguenther@suse.de>
2959
2960         PR middle-end/71310
2961         PR bootstrap/71510
2962         * expr.h (get_bit_range): Declare.
2963         * expr.c (get_bit_range): Export.
2964         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
2965         word_mode again to constrain the bitfield access.
2966
2967 2016-06-14  Richard Biener  <rguenther@suse.de>
2968
2969         PR tree-optimization/71521
2970         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2971         division int_const_binop against zero divisor.
2972
2973 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2974
2975         * config/i386/i386.md (signbittf2): New expander.
2976         * config/i386/sse.md (ptesttf2): New insn pattern.
2977
2978 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2979
2980         PR bootstrap/71481
2981         * input.c (selftest::test_reading_source_line): Avoid reading from
2982         __FILE__ by creating a tempfile with known content and reading
2983         from that instead.
2984
2985 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2986
2987         * pretty-print.c (assert_pp_format_colored): Skip the test if
2988         GCC_COLORS is set.
2989         (test_pp_format): Remove comment about GCC_COLORS.
2990
2991 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2992
2993         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
2994         * pretty-print.c (assert_pp_format_va): Add location param and use
2995         it with ASSERT_STREQ_AT.
2996         (assert_pp_format): Add location param and pass it to
2997         assert_pp_format_va.
2998         (assert_pp_format_colored): Likewise.
2999         (ASSERT_PP_FORMAT_1): New.
3000         (ASSERT_PP_FORMAT_2): New.
3001         (ASSERT_PP_FORMAT_3): New.
3002         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3003         explicitly, or implicitly via the above macros.
3004         * selftest.c (selftest::pass): Use a selftest::location rather
3005         than file and line.
3006         (selftest::fail): Likewise.  Print the function name.
3007         (selftest::fail_formatted): Likewise.
3008         (selftest::assert_streq): Use a selftest::location rather than
3009         file and line.
3010         * selftest.h (selftest::location): New struct.
3011         (SELFTEST_LOCATION): New macro.
3012         (selftest::pass): Accept a const location & rather than file
3013         and line.
3014         (selftest::fail): Likewise.
3015         (selftest::fail_formatted): Likewise.
3016         (selftest::assert_streq): Likewise.
3017         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3018         (ASSERT_FALSE): Likewise.
3019         (ASSERT_EQ): Likewise.
3020         (ASSERT_NE): Likewise.
3021         (ASSERT_STREQ): Likewise.
3022         (ASSERT_PRED1): Likewise.
3023         (ASSERT_STREQ_AT): New macro.
3024
3025 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3026
3027         * selftest.c (selftest::fail_formatted): New function.
3028         (selftest::assert_streq): New function.
3029         * selftest.h (selftests::fail_formatted): New decl.
3030         (selftest::assert_streq): New decl.
3031         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3032
3033 2016-06-13  Jeff Law  <law@redhat.com>
3034
3035         PR tree-optimization/71403
3036         * tree-ssa-threadbackward.c
3037         (convert_and_register_jump_thread_path): No longer accept reference
3038         to path.  Do not pop items off the path anymore.
3039         (fsm_find_control_statement_thread_paths): Do not allow threading
3040         to a deeper loop nest.  Pop the last item off the path here rather
3041         than in convert_and_register_jump_thread_path.
3042
3043 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3044             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
3045
3046         [AArch64] Emit division using the Newton series
3047
3048         * config/aarch64/aarch64-protos.h
3049         (cpu_approx_modes): Add new member "division".
3050         (aarch64_emit_approx_div): Declare new function.
3051         * config/aarch64/aarch64.c
3052         (generic_approx_modes): New member "division".
3053         (exynosm1_approx_modes): Likewise.
3054         (xgene1_approx_modes): Likewise.
3055         (aarch64_emit_approx_div): Define new function.
3056         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3057         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3058         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3059         * doc/invoke.texi (-mlow-precision-div): Describe new option.
3060
3061 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3062             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3063
3064         [AArch64] Emit square root using the Newton series
3065
3066         * config/aarch64/aarch64-protos.h
3067         (aarch64_emit_approx_rsqrt): Replace with new function
3068         "aarch64_emit_approx_sqrt".
3069         (cpu_approx_modes): New member "sqrt".
3070         * config/aarch64/aarch64.c
3071         (generic_approx_modes): New member "sqrt".
3072         (exynosm1_approx_modes): Likewise.
3073         (xgene1_approx_modes): Likewise.
3074         (aarch64_emit_approx_rsqrt): Replace with new function
3075         "aarch64_emit_approx_sqrt".
3076         (aarch64_override_options_after_change_1): Handle new option.
3077         * config/aarch64/aarch64-simd.md
3078         (rsqrt<mode>2): Use new function instead.
3079         (sqrt<mode>2): New expansion and insn definitions.
3080         * config/aarch64/aarch64.md: Likewise.
3081         * config/aarch64/aarch64.opt
3082         (mlow-precision-sqrt): Add new option description.
3083         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3084
3085 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3086
3087         [AArch64] Add more choices for the reciprocal square root approximation
3088
3089         Allow a target to prefer such operation depending on the operation mode.
3090
3091         * config/aarch64/aarch64-protos.h
3092         (AARCH64_APPROX_MODE): New macro.
3093         (AARCH64_APPROX_{NONE,ALL}): Likewise.
3094         (cpu_approx_modes): New structure.
3095         (tune_params): New member "approx_modes".
3096         * config/aarch64/aarch64-tuning-flags.def
3097         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3098         * config/aarch64/aarch64.c
3099         (generic_approx_modes): New core "cpu_approx_modes" structure.
3100         (exynosm1_approx_modes): Likewise.
3101         (xgene1_approx_modes): Likewise.
3102         (generic_tunings): New member "approx_modes".
3103         (cortexa35_tunings): Likewise.
3104         (cortexa53_tunings): Likewise.
3105         (cortexa57_tunings): Likewise.
3106         (cortexa72_tunings): Likewise.
3107         (exynosm1_tunings): Likewise.
3108         (thunderx_tunings): Likewise.
3109         (xgene1_tunings): Likewise.
3110         (use_rsqrt_p): New argument for the mode and use new member from
3111         "tune_params".
3112         (aarch64_builtin_reciprocal): Devise mode from builtin.
3113         (aarch64_optab_supported_p): New argument for the mode.
3114         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3115
3116 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3117
3118         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3119         RS6000_BTM_MODULO flag into the set of flags that are considered
3120         to be part of the common configuration.
3121
3122 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3123
3124         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3125         difference unsigned.
3126         (vec_absdb): New macro for vector absolute difference unsigned
3127         byte.
3128         (vec_absdh): New macro for vector absolute difference unsigned
3129         half-word.
3130         (vec_absdw): New macro for vector absolute difference unsigned word.
3131         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3132         (vadu<mode>3): New insn.
3133         (*p9_vadu<mode>3): New insn.
3134         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3135         definition.
3136         (vaduh): New built-in definition.
3137         (vaduw): New built-in definition.
3138         (vadu): New overloaded built-in definition.
3139         (vadub): New overloaded built-in definition.
3140         (vaduh): New overloaded built-in definition.
3141         (vaduw): New overloaded built-in definition.
3142         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3143         overloaded vector absolute difference unsigned functions.
3144         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3145         the ISA 3.0 vector absolute difference unsigned built-in functions.
3146
3147 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3148
3149         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3150         update shared_lookup_references only once after changing operands.
3151
3152 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
3153
3154         PR middle-end/71373
3155         * tree-nested.c (convert_nonlocal_omp_clauses)
3156         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3157
3158         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3159         * tree.def (CASE_LABEL_EXPR): Likewise.
3160
3161 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3162
3163         PR bootstrap/71481
3164         * input.c (test_builtins): Fix an assertion.
3165
3166 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3167
3168         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3169         (paritysi2): Ditto.
3170         (isinfxf2): Ditto.
3171         (isinf<mode>2): Ditto.
3172
3173 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3174
3175         * ggc-tests.c (test_finalization): Only test need_finalization_p
3176         for GCC_VERSION >= 4003.
3177
3178 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3179
3180         * config/s390/vecintrin.h: Fix file description in comment.
3181
3182 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3183
3184         * config/s390/s390-builtin-types.def: Change builtin type naming
3185         scheme to match builtin-types.def.
3186
3187 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
3188
3189         * fold-const.c (optimize_minmax_comparison): Remove.
3190         (fold_comparison): Remove call to the above.
3191         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3192         New transformations.
3193
3194 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
3195
3196         PR tree-optimization/71416
3197         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3198         multiple entries
3199
3200 2016-06-13  Martin Liska  <mliska@suse.cz>
3201
3202         * predict.c (enum predictor_reason): Prefix enum with REASON_.
3203         (combine_predictions_for_insn): Likewise.
3204         (prune_predictions_for_bb): Likewise.
3205         (combine_predictions_for_bb): Likewise.
3206
3207 2016-06-13  Richard Biener  <rguenther@suse.de>
3208
3209         PR tree-optimization/71505
3210         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3211         assert match comment.
3212
3213 2016-06-13  Marek Polacek  <polacek@redhat.com>
3214
3215         PR middle-end/71476
3216         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3217         gimplify_switch_expr.
3218         (warn_switch_unreachable_r): New function.
3219
3220 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3221
3222         PR target/71379
3223         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3224         one.
3225
3226 2016-06-13  Richard Biener  <rguenther@suse.de>
3227
3228         PR middle-end/64516
3229         * fold-const.c (fold_unary_loc): Preserve alignment when
3230         folding a VIEW_CONVERT_EXPR into a MEM_REF.
3231
3232 2016-06-13  Martin Liska  <mliska@suse.cz>
3233
3234         PR sanitizer/71458
3235         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3236         w/ -fsanitize=bounds.
3237
3238 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3239
3240         * config/i386/i386.c (ix86_init_builtins): Calculate
3241         FLOAT128_FTYPE_CONST_STRING function type only once.
3242         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3243         built-in functions are available for x86-32 and x86-64 targets.
3244
3245 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3246
3247         PR target/71241
3248         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3249         New primitive type.
3250         (FLOAT128_FTYPE_CONST_STRING): New function type.
3251         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3252         [IX86_BUILTIN_NANSQ]: Ditto.
3253         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3254         (ix86_init_builtin_types): Declare const_string_type_node.
3255         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
3256         builtin functions.
3257         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3258         * doc/extend.texi (x86 Built-in Functions): Document
3259         __builtin_nanq and __builtin_nansq.
3260
3261 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
3262
3263         PR target/71061
3264         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
3265         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
3266         length for pop patterns.
3267         (arm_attr_length_push_multi): Update comments.
3268         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
3269         attribute.
3270         (*pop_multiple_with_writeback_and_return): Likewise.
3271         (*pop_multiple_with_return): Likewise.
3272
3273 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
3274
3275         PR middle-end/71310
3276         * fold-const.c (optimize_bit_field_compare): Don't try to use
3277         word_mode unconditionally for reading the bit field, look at
3278         DECL_BIT_FIELD_REPRESENTATIVE instead.
3279
3280 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
3281
3282         PR middle-end/71478
3283         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
3284         vector integer type.
3285
3286 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3287
3288         PR middle-end/71494
3289         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3290         without LABEL_DECL, set *handled_ops_p to false instead of true.
3291
3292 2016-06-10  Martin Sebor  <msebor@redhat.com>
3293
3294         PR c/71392
3295         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
3296         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
3297         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
3298         them.
3299         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
3300         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
3301         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
3302         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
3303         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
3304         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
3305         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
3306         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
3307
3308 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3309
3310         * config/arm/arm.h (pool_vector_label,
3311         return_used_this_function): Remove.
3312
3313 2016-06-10  Jeff Law  <law@redhat.com>
3314
3315         PR tree-optimization/71335
3316         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
3317         zero length paths here.
3318         (convert_and_register_jump_thread_path): Remove hacks related to
3319         duplicated blocks in the jump thread path.
3320         (fsm_find_control_statement_thread_paths): Avoid putting the same
3321         block on the thread path twice, but ensure the thread path is
3322         unchanged from the caller's point of view.
3323
3324 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3325
3326         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
3327         * predict.def (PRED_LOOP_BRANCH): Remove.
3328
3329 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
3330
3331         * Makefile.in (OBJS): Add ggc-tests.o.
3332         (GTFILES): Add ggc-tests.c.
3333         * ggc-tests.c: New file.
3334         * selftest-run-tests.c (selftest::run_tests): Call
3335         selftest::ggc_tests_c_tests.
3336         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
3337
3338 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
3339
3340         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
3341
3342 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3343
3344         PR sanitizer/71480
3345         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3346         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3347
3348 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3349
3350         * profile.c: Include cfgloop.h.
3351         (branch_prob): Compute estimated number of iterations.
3352         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
3353         recompute estimate number of iterations from profile.
3354
3355 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3356
3357         PR inline-asm/68843
3358         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
3359         must be grouped on top of stack.  Don't force early clobber
3360         on ordinary reg outputs.
3361
3362 2016-06-10  Richard Biener  <rguenther@suse.de>
3363
3364         * targhooks.c (default_builtin_vectorization_cost): Adjust
3365         vec_construct cost.
3366
3367 2016-06-10  Richard Biener  <rguenther@suse.de>
3368
3369         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
3370         to fold the RHS to a constant if possible.
3371
3372 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3373
3374         PR middle-end/71373
3375         * tree-nested.c (convert_nonlocal_omp_clauses)
3376         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3377         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3378         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3379
3380         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3381         OMP_CLAUSE_TILE.
3382         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3383
3384         * omp-low.c (scan_sharing_clauses): Don't expect
3385         OMP_CLAUSE__CACHE_.
3386
3387 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
3388
3389         PR tree-optimization/71407
3390         PR tree-optimization/71416
3391         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
3392         BIT_FIELD_REF type.
3393
3394 2016-06-10  Richard Biener  <rguenther@suse.de>
3395
3396         PR middle-end/71477
3397         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
3398
3399 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3400
3401         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3402
3403 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
3404             Jiong Wang  <jiong.wang@arm.com>
3405
3406         PR rtl-optimization/70751
3407         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
3408         spilled into memory.
3409
3410 2016-06-09  Jonathan Yong  <10walls@gmail.com>
3411
3412         Revert:
3413         2015-09-21  Jonathan Yong  <10walls@gmail.com>
3414
3415         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3416         sysroot/usr/lib/32api for additional win32 libraries,
3417         fixes failing Cygwin bootstrapping.
3418
3419 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
3420
3421         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
3422         Delete.
3423
3424 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
3425
3426         PR bootstrap/71471
3427         * pretty-print.c (pp_indent): Specify that %p is printed in a
3428         host-dependent manner.
3429         (test_pp_format): Remove the test for %p.
3430
3431 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
3432
3433         * config/mips/mips.c (mips_output_jump): Fix formatting.
3434
3435 2016-06-09  Richard Biener  <rguenther@suse.de>
3436
3437         PR tree-optimization/71462
3438         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
3439         removed blocks.
3440
3441 2016-06-09  Martin Liska  <mliska@suse.cz>
3442
3443         * predict.c (dump_prediction): Add new argument.
3444         (enum predictor_reason): New enum.
3445         (struct predictor_hash): New struct.
3446         (predictor_hash::hash): New function.
3447         (predictor_hash::equal): Likewise.
3448         (not_removed_prediction_p): New function.
3449         (prune_predictions_for_bb): Likewise.
3450         (combine_predictions_for_bb): Prune predictions.
3451
3452 2016-06-09  Martin Liska  <mliska@suse.cz>
3453
3454         * predict.c (filter_predictions): New function.
3455         (remove_predictions_associated_with_edge): Use the filter
3456         function.
3457         (equal_edge_p): New function.
3458
3459 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
3460
3461         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
3462         Correct usage of @samp vs @option, add @samp where appropriate.
3463         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
3464         Add armv6s-m and document it, as it is no official ARM name.
3465
3466 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3467
3468         * ifcvt.c (struct noce_if_info): Add transform_name field.
3469         (noce_try_move): Set if_info->transform_name to the function name.
3470         (noce_try_ifelse_collapse): Likewise.
3471         (noce_try_store_flag): Likewise.
3472         (noce_try_inverse_constants): Likewise.
3473         (noce_try_store_flag_constants): Likewise.
3474         (noce_try_addcc): Likewise.
3475         (noce_try_store_flag_mask): Likewise.
3476         (noce_try_cmove): Likewise.
3477         (noce_try_cmove_arith): Likewise.
3478         (noce_try_minmax): Likewise.
3479         (noce_try_abs): Likewise.
3480         (noce_try_sign_mask): Likewise.
3481         (noce_try_bitop): Likewise.
3482         (noce_convert_multiple_sets): Likewise.
3483         (noce_process_if_block): Print if_info->transform_name to
3484         dump_file if transformation succeeded.
3485
3486 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3487
3488         * config/arm/cortex-a57.md (cortex_a57_alu):
3489         Handle csel type.
3490
3491 2016-06-08  Martin Sebor  <msebor@redhat.com>
3492             Jakub Jelinek  <jakub@redhat.com>
3493
3494         PR c++/70507
3495         PR c/68120
3496         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
3497         BUILT_IN_MUL_OVERFLOW_P): New builtins.
3498         * builtins.c: Include gimple-fold.h.
3499         (fold_builtin_arith_overflow): Handle
3500         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3501         (fold_builtin_3): Likewise.
3502         * doc/extend.texi (Integer Overflow Builtins): Document
3503         __builtin_{add,sub,mul}_overflow_p.
3504
3505 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3506
3507         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3508         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3509
3510 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
3511
3512         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
3513         Rewrite, looking one level down for records and arrays.
3514
3515 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
3516
3517         * pretty-print.c: Include "selftest.h".
3518         (pp_format): Fix comment.
3519         (identifier_to_locale): Likewise.
3520         (selftest::test_basic_printing): New function.
3521         (selftest::assert_pp_format): New function.
3522         (selftest::test_pp_format): New function.
3523         (selftest::pretty_print_c_tests): New function.
3524         * selftest-run-tests.c (selftest::run_tests): Call
3525         selftest::pretty_print_c_tests.
3526         * selftest.h (pretty_print_c_tests): New declaration.
3527
3528 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3529
3530         * invoke.texi (max-loop-headers-insns): Document.
3531         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
3532         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
3533         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
3534
3535 2016-06-08  Richard Biener  <rguenther@suse.de>
3536
3537         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
3538         on strided SLP loads and fall back to scalar loads in case
3539         we can't chunk them.
3540
3541 2016-06-08  Richard Biener  <rguenther@suse.de>
3542
3543         PR tree-optimization/71452
3544         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
3545         type used for the SSA rewrite has enough precision to cover
3546         the dynamic type of the location.
3547
3548 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3549             Richard Biener  <rguenther@suse.de>
3550
3551         PR c++/71448
3552         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3553         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3554         in one further place.
3555
3556 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
3557
3558         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
3559         to one word if the field is known to overlap other words.
3560         (extract_bit_field_1): Likewise.
3561         (store_split_bit_field): Remove compensating code.
3562         (extract_split_bit_field): Likewise.
3563
3564 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
3565
3566         PR debug/71432
3567         PR ada/71413
3568         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
3569
3570 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3571
3572         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
3573         VDQF.
3574         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
3575         (arch64_addpv4sf): Delete.
3576         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
3577         "gen_aarch64_addpv4sf".
3578         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
3579         builtin.
3580         (vpadds_f32): Likewise.
3581         (vpaddq_f32): Likewise.
3582         (vpaddq_f64): Likewise.
3583
3584 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3585
3586         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
3587         VALLF.
3588         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
3589         to VALLF.  Rename to "fabd<mode>3".
3590         "*fabd_scalar<mode>3): Delete.
3591         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
3592         Use builtin.
3593         (vabdd_f64): Likewise.
3594         (vabd_f32): Likewise.
3595         (vabd_f64): Likewise.
3596         (vabdq_f32): Likewise.
3597         (vabdq_f64): Likewise.
3598
3599 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3600
3601         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
3602         VALLF.
3603         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
3604         "aarch64_rsqrts<mode>".
3605         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
3606         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
3607         builtin.
3608         (vrsqrtsd_f64): Likewise.
3609         (vrsqrts_f32): Likewise.
3610         (vrsqrts_f64): Likewise.
3611         (vrsqrtsq_f32): Likewise.
3612         (vrsqrtsq_f64): Likewise.
3613
3614 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3615
3616         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
3617         VALLF.
3618         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
3619         "aarch64_rsqrte<mode>".
3620         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
3621         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
3622         builtin.
3623         (vrsqrted_f64): Likewise.
3624         (vrsqrte_f32): Likewise.
3625         (vrsqrte_f64): Likewise.
3626         (vrsqrteq_f32): Likewise.
3627         (vrsqrteq_f64): Likewise.
3628
3629 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3630
3631         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
3632         (ucvtf): Likewise.
3633         (fcvtzs): Likewise.
3634         (fcvtzu): Likewise.
3635         * config/aarch64/aarch64-simd.md
3636         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
3637         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
3638         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
3639         Use builtin.
3640         (vcvt_n_f32_u32): Likewise.
3641         (vcvt_n_s32_f32): Likewise.
3642         (vcvt_n_u32_f32): Likewise.
3643         (vcvtq_n_f32_s32): Likewise.
3644         (vcvtq_n_f32_u32): Likewise.
3645         (vcvtq_n_f64_s64): Likewise.
3646         (vcvtq_n_f64_u64): Likewise.
3647         (vcvtq_n_s32_f32): Likewise.
3648         (vcvtq_n_s64_f64): Likewise.
3649         (vcvtq_n_u32_f32): Likewise.
3650         (vcvtq_n_u64_f64): Likewise.
3651         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
3652         (VSDQ_SDI): Likewise.
3653         (fcvt_target): Support V4DI, V4SI and V2SI.
3654         (FCVT_TARGET): Likewise.
3655
3656 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3657
3658         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
3659         (TYPES_BINOP_SUS): Likewise.
3660         (aarch64_simd_builtin_data): Update include file name.
3661         (aarch64_builtins): Likewise.
3662         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
3663         for conversion between scalar float-point and fixed-point.
3664         (ucvtf): Likewise.
3665         (fcvtzs): Likewise.
3666         (fcvtzu): Likewise.
3667         * config/aarch64/aarch64.md
3668         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3669         pattern for conversion between scalar float to fixed-pointer.
3670         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3671         (UNSPEC_FCVTZS): New UNSPEC enumeration.
3672         (UNSPEC_FCVTZU): Likewise.
3673         (UNSPEC_SCVTF): Likewise.
3674         (UNSPEC_UCVTF): Likewise.
3675         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3676         Use builtin.
3677         (vcvtd_n_f64_u64): Likewise.
3678         (vcvtd_n_s64_f64): Likewise.
3679         (vcvtd_n_u64_f64): Likewise.
3680         (vcvtd_n_f32_s32): Likewise.
3681         (vcvts_n_f32_u32): Likewise.
3682         (vcvtd_n_s32_f32): Likewise.
3683         (vcvts_n_u32_f32): Likewise.
3684         * config/aarch64/iterators.md (fcvt_target): Support integer to float
3685         mapping.
3686         (FCVT_TARGET): Likewise.
3687         (FCVT_FIXED2F): New iterator.
3688         (FCVT_F2FIXED): Likewise.
3689         (fcvt_fixed_insn): New define_int_attr.
3690
3691 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3692
3693         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3694         some statements was removed.
3695
3696 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
3697
3698         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3699         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3700         (vect_can_advance_ivs_p): likewise.
3701         (vect_update_ivs_after_vectorizer): likewise.
3702         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3703         (vect_analyze_scalar_cycles_1): likewise.
3704         (vect_analyze_loop_operations): likewise.
3705         (report_vect_op): likewise.
3706         (vect_is_slp_reduction): likewise.
3707         (vect_is_simple_reduction): likewise.
3708         (get_initial_def_for_induction): likewise.
3709         (vect_transform_loop): likewise.
3710         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3711         (vect_recog_sad_pattern): likewise.
3712         (vect_recog_widen_sum_pattern): likewise.
3713         (vect_recog_widening_pattern): likewise.
3714         (vect_recog_divmod_pattern): likewise.
3715         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3716         (vect_analyze_slp_instance): likewise.
3717         (vect_transform_slp_perm_load): likewise.
3718         (vect_schedule_slp_instance): likewise.
3719
3720 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3721
3722         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3723         (return_prediction): PRED_CONST_RETURN predict return as not taken.
3724         * predict.def (PRED_CONTINUE): Change hitrate 50->67
3725         (PRED_LOOP_BRANCH): Document predictor as broken.
3726         (PRED_LOOP_EXIT): Change hitrate 91->92.
3727         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3728         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3729         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3730         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3731         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3732         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3733         (PRED_CALL): Chane hitrate 71->67.
3734         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3735         (PRED_GOTO): Document as unused right now.
3736         (PRED_CONST_RETURN): Change hitrate 67->69
3737         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3738         (PRED_NULL_RETURN): Change hitrate 91->90.
3739         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3740         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3741         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3742
3743 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
3744
3745         * config/rs6000/altivec.h: Add __builtin_vec_mul.
3746         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3747         special case Altivec builtin.
3748         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3749         VSX_BUILTIN_VEC_MUL (replaced with special case code).
3750         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3751         code for ALTIVEC_BUILTIN_VEC_MUL.
3752         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3753         for __builtin_vec_mul.
3754
3755 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3756
3757         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3758         -mno-htm.
3759
3760 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
3761
3762         * spellcheck.c (selftest::test_find_closest_string): New function.
3763         (spellcheck_c_tests): Call the above.
3764
3765 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3766
3767         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3768
3769 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
3770
3771         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3772         Yv=Yv,C alternatives.
3773
3774 2016-06-07  Richard Biener  <rguenther@suse.de>
3775
3776         PR c/61564
3777         * common.opt (ffast-math): Make Optimization.
3778
3779 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
3780             Prachi Godbole  <prachi.godbole@imgtec.com>
3781
3782         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
3783         `fabs' and `fneg' type attributes.
3784         (p5600_fpu_fabs): Add `fmove' to the comment.
3785
3786 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3787
3788         * gimple.c: Include builtins.h
3789         (gimple_inexpensive_call_p): New function.
3790         * gimple.h (gimple_inexpensive_call_p): Declare.
3791         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
3792         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
3793         fix formatting.
3794
3795 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
3796
3797         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
3798         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
3799         warning_at_rich_loc, warning_n, pedwarn, permerror,
3800         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
3801         sorry, fatal_error, internal_error, internal_error_no_backtrace):
3802         Use the above.
3803
3804 2016-06-07  Richard Biener  <rguenther@suse.de>
3805
3806         PR tree-optimization/71428
3807         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
3808         BIT_FIELD_REF op vs. load.
3809
3810 2016-06-07  Richard Biener  <rguenther@suse.de>
3811
3812         PR middle-end/71423
3813         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
3814         for signed ops.
3815
3816 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3817
3818         * config/pa/pa.md (call): Generate indirect long calls to non-local
3819         functions on TARGET_64BIT.
3820         (call_value): Likewise.
3821
3822 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3823
3824         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3825         pattern and subsequent splitters.
3826         (call_val_reg_64bit_post_reload): Likewise.
3827
3828 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3829
3830         PR middle-end/71408
3831         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3832         propagate_op_to_single_use.
3833
3834 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3835
3836         PR middle-end/71281
3837         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3838
3839 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3840
3841         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3842         (enum x86_dirflag_state): New enum.
3843         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3844         (machine_function): Remove needs_cld.
3845         (ix86_current_function_needs_cld): Remove.
3846         * config/i386/i386.c (ix86_set_func_type): Set
3847         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3848         (ix86_expand_prologue): Do not emit CLD here.
3849         (ix86_dirflag_mode_needed): New function.
3850         (ix86_dirflag_mode_entry): Ditto.
3851         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3852         (ix86_mode_after): Ditto.
3853         (ix86_mode_entry): Ditto.
3854         (ix86_mode_exit): Ditto.
3855         (ix86_emit_mode_set): Ditto.
3856         * config/i386/i386.md (strmov_singleop): Set
3857         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3858         Do not set ix86_current_function_needs_cld.
3859         (rep_mov): Ditto.
3860         (strset_singleop): Ditto.
3861         (rep_stos): Ditto.
3862         (cmpstrnqi_nz_1): Ditto.
3863         (cmpstrnqi_1): Ditto.
3864         (strlenqi_1): Ditto.
3865
3866 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3867
3868         PR tree-optimization/71259
3869         * tree-vect-slp.c (vect_get_constant_vectors): For
3870         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3871         one for constant op, and use COND_EXPR for non-constant.
3872
3873 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3874
3875         * Makefile.in (OBJS): Add function-tests.o,
3876         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3877         selftest-run-tests.o.
3878         (OBJS-libcommon): Add selftest.o.
3879         (OBJS-libcommon-target): Add selftest.o.
3880         (all.internal): Add "selftest".
3881         (all.cross): Likewise.
3882         (selftest): New phony target.
3883         (s-selftest): New target.
3884         (selftest-gdb): New phony target.
3885         (COLLECT2_OBJS): Add selftest.o.
3886         * bitmap.c: Include "selftest.h".
3887         (selftest::test_gc_alloc): New function.
3888         (selftest::test_set_range): New function.
3889         (selftest::test_clear_bit_in_middle): New function.
3890         (selftest::test_copying): New function.
3891         (selftest::test_bitmap_single_bit_set_p): New function.
3892         (selftest::bitmap_c_tests): New function.
3893         * common.opt (fself-test): New.
3894         * diagnostic-show-locus.c: Include "selftest.h".
3895         (make_range): New function.
3896         (test_range_contains_point_for_single_point): New function.
3897         (test_range_contains_point_for_single_line): New function.
3898         (test_range_contains_point_for_multiple_lines): New function.
3899         (assert_eq): New function.
3900         (test_get_line_width_without_trailing_whitespace): New function.
3901         (selftest::diagnostic_show_locus_c_tests): New function.
3902         * et-forest.c: Include "selftest.h".
3903         (selftest::test_single_node): New function.
3904         (selftest::test_simple_tree): New function.
3905         (selftest::test_disconnected_nodes): New function.
3906         (selftest::et_forest_c_tests): New function.
3907         * fold-const.c: Include "selftest.h".
3908         (selftest::assert_binop_folds_to_const): New function.
3909         (selftest::assert_binop_folds_to_nonlvalue): New function.
3910         (selftest::test_arithmetic_folding): New function.
3911         (selftest::fold_const_c_tests): New function.
3912         * function-tests.c: New file.
3913         * gimple.c: Include "selftest.h".
3914         Include "gimple-pretty-print.h".
3915         (selftest::verify_gimple_pp): New function.
3916         (selftest::test_assign_single): New function.
3917         (selftest::test_assign_binop): New function.
3918         (selftest::test_nop_stmt): New function.
3919         (selftest::test_return_stmt): New function.
3920         (selftest::test_return_without_value): New function.
3921         (selftest::gimple_c_tests): New function.
3922         * hash-map-tests.c: New file.
3923         * hash-set-tests.c: New file.
3924         * input.c: Include "selftest.h".
3925         (selftest::assert_loceq): New function.
3926         (selftest::test_accessing_ordinary_linemaps): New function.
3927         (selftest::test_unknown_location): New function.
3928         (selftest::test_builtins): New function.
3929         (selftest::test_reading_source_line): New function.
3930         (selftest::input_c_tests): New function.
3931         * rtl-tests.c: New file.
3932         * selftest-run-tests.c: New file.
3933         * selftest.c: New file.
3934         * selftest.h: New file.
3935         * spellcheck.c: Include "selftest.h".
3936         (selftest::levenshtein_distance_unit_test_oneway): New function,
3937         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3938         (selftest::levenshtein_distance_unit_test): Likewise.
3939         (selftest::spellcheck_c_tests): Likewise.
3940         * toplev.c: Include selftest.h.
3941         (toplev::run_self_tests): New.
3942         (toplev::main): Handle -fself-test.
3943         * toplev.h (toplev::run_self_tests): New.
3944         * tree.c: Include "selftest.h".
3945         (selftest::test_integer_constants): New function.
3946         (selftest::test_identifiers): New function.
3947         (selftest::test_labels): New function.
3948         (selftest::tree_c_tests): New function.
3949         * tree-cfg.c: Include "selftest.h".
3950         (selftest::push_fndecl): New function.
3951         (selftest::test_linear_chain): New function.
3952         (selftest::test_diamond): New function.
3953         (selftest::test_fully_connected): New function.
3954         (selftest::tree_cfg_c_tests): New function.
3955         * vec.c: Include "selftest.h".
3956         (selftest::safe_push_range): New function.
3957         (selftest::test_quick_push): New function.
3958         (selftest::test_safe_push): New function.
3959         (selftest::test_truncate): New function.
3960         (selftest::test_safe_grow_cleared): New function.
3961         (selftest::test_pop): New function.
3962         (selftest::test_safe_insert): New function.
3963         (selftest::test_ordered_remove): New function.
3964         (selftest::test_unordered_remove): New function.
3965         (selftest::test_block_remove): New function.
3966         (selftest::reverse_cmp): New function.
3967         (selftest::test_qsort): New function.
3968         (selftest::vec_c_tests): New function.c.
3969         * wide-int.cc: Include selftest.h and wide-int-print.h.
3970         (selftest::from_int <wide_int>): New function.
3971         (selftest::from_int <offset_int>): New function.
3972         (selftest::from_int <widest_int>): New function.
3973         (selftest::assert_deceq): New function.
3974         (selftest::assert_hexeq): New function.
3975         (selftest::test_printing <VALUE_TYPE>): New function template.
3976         (selftest::test_ops <VALUE_TYPE>): New function template.
3977         (selftest::test_comparisons <VALUE_TYPE>): New function template.
3978         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
3979         template.
3980         (selftest::wide_int_cc_tests): New function.
3981
3982 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3983
3984         PR middle-end/37780
3985         * ifcvt.c (noce_try_ifelse_collapse): New function.
3986         Declare prototype.
3987         (noce_process_if_block): Call noce_try_ifelse_collapse.
3988         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
3989         (simplify_ternary_operation): Use the above to simplify
3990         conditional CLZ/CTZ expressions.
3991
3992 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3993
3994         PR middle-end/37780
3995         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
3996         define_insn_and_split.
3997
3998 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3999
4000         PR middle-end/37780
4001         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4002
4003 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4004
4005         PR c/24414
4006         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4007         Implicitly clobber memory for basic asm with non-empty assembler
4008         string.  Use targetm.md_asm_adjust also here.
4009         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4010         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4011         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4012         non-empty assembler string.
4013         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4014         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4015         (decode_asm_operands): Handle basic asm in PARALLEL block.
4016         (extract_insn): Handle basic asm in PARALLEL block.
4017         * doc/extend.texi: Mention new behavior of basic asm.
4018         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4019         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4020         branch_needs_nop_p): Use asm_noperands.
4021
4022 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
4023
4024         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4025         Include the M7 SPARC DFA scheduler.
4026         New attribute v3pipe.
4027         Annotate insns with v3pipe where appropriate.
4028         Define cpu_feature vis4.
4029         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4030         Add (V8QI "8") to vbits.
4031         Add insns {add,sub}v8qi3
4032         Add insns ss{add,sub}v8qi3
4033         Add insns us{add,sub}{v8qi,v4hi}3
4034         Add insns {min,max}{v8qi,v4hi,v2si}3
4035         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4036         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4037         * config/sparc/niagara4.md: Add a comment explaining the
4038         discrepancy between the documented latenty numbers and the
4039         implemented ones.
4040         * config/sparc/niagara7.md: New file.
4041         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4042         supports SPARC5 and VIS 4.0 instructions.
4043         * configure: Regenerate.
4044         * config.in: Likewise.
4045         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4046         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4047         TARGET_CPU_niagara7.
4048         (ASM_CPU64_DEFAULT_SPEC): Likewise.
4049         (CPP_CPU_SPEC): Handle niagara7.
4050         (ASM_CPU_SPEC): Likewise.
4051         * config/sparc/sparc-opts.h (processor_type): Add
4052         PROCESSOR_NIAGARA7.
4053         (mvis4): New option.
4054         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4055         (AS_NIAGARA7_FLAG): Define.
4056         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4057         (CPP_CPU64_DEFAULT_SPEC): Likewise.
4058         (CPP_CPU_SPEC): Handle niagara7.
4059         (ASM_CPU_SPEC): Likewise.
4060         * config/sparc/sparc.c (niagara7_costs): Define.
4061         (sparc_option_override): Handle niagara7 and adjust cache-related
4062         parameters with better values for niagara cpus.  Also support VIS4.
4063         (sparc32_initialize_trampoline): Likewise.
4064         (sparc_use_sched_lookahead): Likewise.
4065         (sparc_issue_rate): Likewise.
4066         (sparc_register_move_cost): Likewise.
4067         (dump_target_flag_bits): Support VIS4.
4068         (sparc_vis_init_builtins): Likewise.
4069         (sparc_builtins): Likewise.
4070         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4071         VIS4 4.0.
4072         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4073         UltraSparc M7.
4074         * config/sparc/sparc.opt (sparc_processor_type): New value
4075         niagara7.
4076         * config/sparc/visintrin.h (__attribute__): Prototypes for the
4077         VIS4 builtins.
4078         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4079         -mvis4.
4080         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4081         VIS4 builtins.
4082
4083 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
4084
4085         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4086
4087 2016-06-06  Richard Biener  <rguenther@suse.de>
4088
4089         PR tree-optimization/71398
4090         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4091         remove edges.
4092
4093 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
4094
4095         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4096         ft32_expand_prolog, ft32_expand_epilogue):
4097         Handle pretend_args.
4098         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4099         * config/ft32/ft32.md: Add pretend_returner.
4100
4101 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
4102
4103         PR target/71389
4104         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4105         Copy op1 RTX to avoid invalid sharing.
4106         (ix86_expand_vector_move_misalign): Ditto.
4107
4108 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
4109
4110         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4111         ATTRIBUTE_UNUSED.
4112
4113 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4114
4115         * predict.c (predicted_by_loop_heuristics_p): New function.
4116         (predict_iv_comparison): Use it.
4117         (predict_loops): Walk from innermost loops; do not predict edges
4118         leaving multiple loops multiple times; implement
4119         PRED_LOOP_ITERATIONS_MAX heuristics.
4120         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4121
4122 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4123
4124         * cfg.c (check_bb_profile): Do not report mismatched profiles when
4125         only edges out of BB are EH edges.
4126
4127 2016-06-04  Martin Sebor  <msebor@redhat.com>
4128             Marcin Baczyński  <marbacz@gmail.com>
4129
4130         PR c/48116
4131         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4132         a void expression in a void function.
4133
4134 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4135
4136         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4137         aux; dump reasons of decisions.
4138         (should_duplicate_loop_header_p): Likewise.
4139         (do_while_loop_p): Likewise.
4140         (ch_base::copy_headers): Dump asi num insns duplicated.
4141
4142 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
4143
4144         PR tree-optimization/71405
4145         * tree-ssa.c (execute_update_addresses_taken): For clobber with
4146         incompatible type, build a new clobber with the right type instead
4147         of building a VIEW_CONVERT_EXPR around it.
4148
4149 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4150
4151         PR tree-optimization/52171
4152         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4153         by_pieces_ninsns instead of move_by_pieces_ninsns.
4154
4155 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4156
4157         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4158         for reg+reg addressing mode.
4159
4160 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4161
4162         * rs6000-c.c (c/c-tree.h): Add #include.
4163         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4164         in C++ when found in the base position of vec_ld or vec_st.
4165
4166 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4167
4168         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4169         use of profile unless profile status is PROFILE_READ.
4170         * profile.c (compute_branch_probabilities): Set profile status
4171         only after reporting predictor hitrates.
4172
4173 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4174
4175         PR target/71276
4176         PR target/71277
4177         * common.opt (ffp-int-builtin-inexact): New option.
4178         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4179         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4180         (ceil@var{m}2): Document dependence on this option.
4181         * ipa-inline-transform.c (inline_call): Handle
4182         flag_fp_int_builtin_inexact.
4183         * ipa-inline.c (can_inline_edge_p): Likewise.
4184         * config/i386/i386.md (rintxf2): Do not test
4185         flag_unsafe_math_optimizations.
4186         (rint<mode>2_frndint): New define_insn.
4187         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4188         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
4189         for 387 instead of extending and truncating.
4190         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4191         !flag_trapping_math instead of flag_unsafe_math_optimizations.
4192         Change to frndint<mode>2_<rounding>.
4193         (frndintxf2_<rounding>_i387): Likewise.  Change to
4194         frndint<mode>2_<rounding>_i387.
4195         (<rounding_insn>xf2): Likewise.
4196         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4197         !flag_trapping_math instead of flag_unsafe_math_optimizations for
4198         x87.  Test TARGET_ROUND || !flag_trapping_math ||
4199         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4200         SSE.  Use ROUND_NO_EXC in constant operand of
4201         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
4202         for 387 instead of extending and truncating.
4203
4204 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4205             Julia Koval  <julia.koval@intel.com>
4206
4207         PR target/66960
4208         PR target/67630
4209         PR target/67634
4210         PR target/67841
4211         PR target/68037
4212         PR target/68618
4213         PR target/68661
4214         PR target/69575
4215         PR target/69596
4216         PR target/69734
4217         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4218         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4219         all registers, except for function return registers if there are
4220         no caller-saved registers.
4221         (ix86_set_func_type): New function.
4222         (ix86_set_current_function): Call ix86_set_func_type to set
4223         no_caller_saved_registers and func_type.  Call reinit_regs if
4224         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
4225         nor x87 instructions in interrupt handler nor function with
4226         no_caller_saved_registers attribute.
4227         (ix86_function_ok_for_sibcall): Return false if there are no
4228         caller-saved registers.
4229         (type_natural_mode): Don't warn ABI change for MMX in interrupt
4230         handler.
4231         (ix86_function_arg_advance): Skip for callee in interrupt handler.
4232         (ix86_function_arg): Return special arguments in interrupt handler.
4233         (ix86_promote_function_mode): Promote pointer to word_mode only
4234         for normal functions.
4235         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4236         interrupt handler.
4237         (ix86_epilogue_uses): New function.
4238         (ix86_hard_regno_scratch_ok): Likewise.
4239         (ix86_save_reg): Preserve all registers in interrupt handler
4240         after reload.  Preserve all registers, except for function return
4241         registers, if there are no caller-saved registers after reload.
4242         (find_drap_reg): Always use callee-saved register if there are
4243         no caller-saved registers.
4244         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4245         for interrupt handler.
4246         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4247         Emit cld instruction if stringops are used in interrupt handler
4248         or interrupt handler isn't a leaf function.
4249         (ix86_expand_epilogue): Generate interrupt return for interrupt
4250         handler and pop the 'ERROR_CODE' off the stack before interrupt
4251         return in exception handler.
4252         (ix86_expand_call): Disallow calling interrupt handler directly.
4253         If there are no caller-saved registers, mark all registers that
4254         are clobbered by the call which returns as clobbered.
4255         (ix86_handle_no_caller_saved_registers_attribute): New function.
4256         (ix86_handle_interrupt_attribute): Likewise.
4257         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
4258         attributes.
4259         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
4260         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
4261         accumulation in interrupt function if stack may be realigned to
4262         avoid DRAP.
4263         (EPILOGUE_USES): New.
4264         (function_type): New enum.
4265         (machine_function): Add func_type and no_caller_saved_registers.
4266         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
4267         (interrupt_return): New pattern.
4268         * doc/extend.texi: Document x86 interrupt and
4269         no_caller_saved_registers attributes.
4270
4271 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
4272
4273         PR tree-optimization/52171
4274         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
4275         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
4276         Look for constant strings.  Move some code to emit_block_cmp_hints
4277         and use it.
4278         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
4279         * defaults.h (COMPARE_MAX_PIECES): New macro.
4280         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
4281         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
4282         (clear_by_pieces_1): Don't declare.  Move definition before use.
4283         (can_do_by_pieces): New static function.
4284         (can_move_by_pieces): Use it.  Return bool.
4285         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
4286         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
4287         (class pieces_addr); New.
4288         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
4289         pieces_addr::adjust, pieces_addr::increment_address,
4290         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
4291         functions for it.
4292         (class op_by_pieces_d): New.
4293         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
4294         functions for it.
4295         (class move_by_pieces_d, class compare_by_pieces_d,
4296         class store_by_pieces_d): New subclasses of op_by_pieces_d.
4297         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
4298         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
4299         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
4300         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
4301         compare_by_pieces_d::finish_mode): New member functions.
4302         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
4303         functions.
4304         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
4305         (emit_block_cmp_hints): New function.
4306         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
4307         use the newly defined classes.
4308         * expr.h (by_pieces_constfn): New typedef.
4309         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
4310         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
4311         (move_by_pieces_ninsns): Don't declare.
4312         (can_move_by_pieces): Change return value to bool.
4313         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
4314         (compare_by_pieces_branch_ratio): New hook.
4315         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
4316         (by_pieces_ninsns): Declare.
4317         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
4318         COMPARE_BY_PIECES.
4319         (default_compare_by_pieces_branch_ratio): New function.
4320         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
4321         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
4322         * doc/tm.texi: Regenerate.
4323         * tree-ssa-strlen.c: Include "builtins.h".
4324         (handle_builtin_memcmp): New static function.
4325         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
4326         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
4327
4328 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4329
4330         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
4331         relevant stmts which are simple and invariant.
4332         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
4333         instead of simple and invariant
4334
4335 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4336
4337         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
4338         (vectorizable_reduction): Check for new relevant state.
4339         (vectorizable_live_operation): vectorize live stmts using
4340         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
4341         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
4342         (vect_stmt_relevant_p): Check for stmts which are only used live.
4343         (process_use): Use of a stmt does not inherit it's live value.
4344         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
4345         (vect_analyze_stmt): Check for new relevant state.
4346         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
4347         outside the loop, but not inside it.
4348
4349 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4350
4351         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
4352         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
4353         (vect_get_vec_def_for_operand): Split out code.
4354
4355 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
4356
4357         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
4358
4359 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4360
4361         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
4362
4363 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4364
4365         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
4366
4367 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
4368
4369         PR middle-end/71387
4370         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
4371         to noreturn e->callee->decl that has void return type and void
4372         arguments, adjust gimple_call_fntype and remove lhs even if it had
4373         previously addressable type.
4374
4375 2016-06-02  Jeff Law  <law@redhat.com>
4376
4377         PR tree-optimization/71328
4378         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
4379         error when checking for a jump back onto the copied path.
4380
4381 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
4382
4383         * config/microblaze/microblaze.c (get_branch_target): Add return
4384         NULL_RTX for the non-CALL_P case.
4385         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
4386         (insert_wic): Remove unused local "j".
4387
4388 2016-06-02  Martin Liska  <mliska@suse.cz>
4389
4390         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
4391
4392 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
4393             Julia Koval  <julia.koval@intel.com>
4394
4395         * function.c (assign_parm_setup_stack): Force source into a
4396         register if needed.
4397         * target.def (function_incoming_arg): Update documentation to
4398         allow arbitrary address computation based on hard register.
4399         * doc/tm.texi: Regenerated.
4400
4401 2016-06-02  Martin Liska  <mliska@suse.cz>
4402
4403         * predict.c (combine_predictions_for_bb): Fix first match in
4404         cases where a first predictor contains more than one occurence
4405         in list of predictors.  Take the best value in such case.
4406
4407 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4408
4409         PR rtl-optimization/71295
4410         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
4411         offset would go over the size of the inner mode reject it.
4412
4413 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
4414
4415         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
4416         x=x,x and v=v,m instead of x=x,m.
4417
4418         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
4419         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
4420         alternative to v=rm,C.
4421
4422         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
4423         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
4424         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
4425         instead of vex for the last two above mentioned alternatives.
4426
4427 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4428
4429         PR target/70830
4430         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
4431
4432 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
4433
4434         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
4435
4436 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
4437
4438         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
4439         from int to unsigned.
4440
4441 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4442
4443         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
4444         alternatives, eliminating preferred register class.  Add support
4445         for the MTVSRDD instruction in ISA 3.0.
4446         (vsx_splat_v4si_internal): Use splat_input_operand instead of
4447         reg_or_indexed_operand.
4448         (vsx_splat_v4sf_internal): Likewise.
4449
4450 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4451
4452         PR target/71186
4453         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
4454         for loading up all 0's or all 1's.
4455
4456 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4457
4458         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
4459
4460 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
4461
4462         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
4463         extension.
4464         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
4465         * gcc.c (set_source_date_epoch_envvar): New function, sets
4466         the SOURCE_DATE_EPOCH environment variable to the current time.
4467
4468 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4469
4470         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
4471         the factor for live Phi nodes.
4472
4473 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
4474
4475         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
4476         * tree-parloops.c (parallelize_loops): likewise.
4477         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
4478         tree_unswitch_outer_loop): likewise.
4479
4480 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
4481
4482         PR middle-end/71371
4483         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
4484         around creation of the temporary.
4485
4486 2016-06-01  Richard Biener  <rguenther@suse.de>
4487
4488         PR tree-optimization/71366
4489         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
4490         (unloop_loops): Move removing edges here ...
4491         (try_unroll_loop_completely): ... from here.
4492         (try_peel_loop): ... and here.
4493         (tree_unroll_loops_completely_1): Track parent loops via
4494         bitmap of header BBs.
4495         (tree_unroll_loops_completely): Adjust for that.
4496
4497 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4498
4499         * config/rs6000/altivec.h (vec_slv): New macro.
4500         (vec_srv): New macro.
4501         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
4502         (UNSPEC_VSRV): New value.
4503         (vslv): New insn.
4504         (vsrv): New insn.
4505         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
4506         (vsrv): New builtin definition.
4507         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
4508         define argument types for new builtin.
4509         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
4510         new builtin.
4511         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
4512         functions.
4513
4514 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
4515             Jocelyn Mayer  <l_indien@magic.fr>
4516
4517         PR target/67310
4518         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
4519         detect processor family for signature_CENTAUR_ebx.
4520         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
4521         signature_CENTAUR_ebx.
4522         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
4523         <default>: Pass x86-64 for has_longmode.
4524
4525 2016-06-01  Nathan Sidwell  <nathan@acm.org>
4526
4527         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
4528         undefined weak.
4529
4530 2016-06-01  Richard Biener  <rguenther@suse.de>
4531
4532         PR tree-optimization/71261
4533         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
4534         of stmts successfully put in the bool pattern.  Remove
4535         single-use restriction.
4536         (adjust_bool_pattern_cast): Add cast at the use site via the
4537         pattern def sequence.
4538         (adjust_bool_pattern): Remove recursion, maintain a hash-map
4539         of patterned defs.  Use the pattern def seqence instead of
4540         multiple independent patterns.
4541         (sort_after_uid): New qsort compare function.
4542         (adjust_bool_stmts): New function to process stmts in the bool
4543         pattern in IL order.
4544         (vect_recog_bool_pattern): Adjust.
4545         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
4546         (ifcvt_walk_pattern_tree): Likewise.
4547         (stmt_is_root_of_bool_pattern): Likewise.
4548         (ifcvt_repair_bool_pattern): Likewise.
4549         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
4550
4551 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
4552
4553         * loop-unroll.c (decide_unroll_constant_iterations,
4554         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
4555         likely upper bounds.
4556         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
4557
4558 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
4559
4560         * tree-core.h (enum omp_clause_code): Remove
4561         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
4562
4563 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4564
4565         * config/arm/sync.md (arm_store_exclusive<mode>):
4566         Use 'H' output modifier on operands[2] rather than creating a new
4567         entry in out-of-bounds memory of the operands array.
4568         (arm_store_release_exclusivedi): Likewise.
4569
4570 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4571
4572         * config/arm/arm.c (arm_fusion_enabled_p): New function.
4573         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
4574         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
4575         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4576
4577 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4578
4579         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
4580         into account live statements for mask producers.
4581
4582 2016-06-01  Richard Biener  <rguenther@suse.de>
4583
4584         PR tree-optimization/71311
4585         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
4586         restrict to non-INTEGER_CST @0.
4587
4588 2016-06-01  Richard Biener  <rguenther@suse.de>
4589
4590         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
4591         (relational patterns): Use :c to avoid pattern duplications.
4592
4593 2016-06-01  Richard Biener  <rguenther@suse.de>
4594
4595         * genmatch.c (comparison_code_p): New predicate.
4596         (swap_tree_comparison): New function.
4597         (commutate): Add for_vec parameter to append new for entries.
4598         Support commutating relational operators by swapping it alongside
4599         operands.
4600         (lower_commutative): Adjust.
4601         (dt_simplify::gen): Do not pass artificial operators to gen
4602         functions.
4603         (decision_tree::gen): Do not add artificial operators as parameters.
4604         (parser::parse_expr): Verify operator commutativity when :c is
4605         applied.  Allow :C to override this.
4606         * match.pd: Adjust patterns to use :C instead of :c where required.
4607
4608 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
4609
4610         PR tree-optimization/71077
4611         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
4612         the combining step, use boolean_false_node and boolean_true_node
4613         as the designated false/true return values.
4614
4615 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4616
4617         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
4618         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
4619         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
4620         PRED_LOOP_EXIT.
4621
4622 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4623
4624         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
4625         of flags impliying the register renaming.
4626         * toplev.c (process_options): Do not imply flag_rename_registers with
4627         loop peeling.
4628
4629 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4630
4631         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
4632         default implementation.
4633
4634 2016-05-31  Nathan Sidwell  <nathan@acm.org>
4635
4636         * dwarf2out.c (cur_line_info_table): Add GTY marker.
4637
4638 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4639
4640         * config/sh/constraints.md (b): Remove constraint.
4641         * config/sh/predicates.md (arith_reg_operand): Remove
4642         TARGET_REGISTER_P.
4643         * config/sh/sh-modes.def (PDI): Remove.
4644         * config/sh/sh.c (sh_target_reg_class,
4645         sh_optimize_target_register_callee_saved): Remove functions.
4646         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
4647         (sh_expand_epilogue): Update comment.
4648         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
4649         sh_secondary_reload): Remove TARGET_REGS related code.
4650         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
4651         TARGET_REGISTER_P): Remove macros.
4652         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
4653         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
4654         TR1_REG, TR2_REG): Remove constants.
4655         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
4656
4657 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4658
4659         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
4660         define_expand patterns.
4661         (adddi3_compact): Rename to adddi3.
4662         (subdi3_compact): Rename to subdi3.
4663         (*negdi2): Rename to negdi2.
4664         (*abs<mode>2): Rename to abs<mode>2.
4665
4666 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4667
4668         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4669         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4670         (atomic_sub_fetchsi): ... this new pattern.
4671         (mvtc): Add CC_REG clobber.
4672
4673 2016-05-31  Marek Polacek  <polacek@redhat.com>
4674
4675         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4676
4677 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4678
4679         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4680         aarch64_fusion_enabled_p to check for fusion capabilities.
4681
4682 2016-05-31  Richard Biener  <rguenther@suse.de>
4683
4684         PR tree-optimization/71352
4685         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4686         minus one and a negate.
4687
4688 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4689
4690         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4691         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4692         Delete prototype.
4693         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4694         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4695         Remove use of aarch64_simd_attr_length_move, set length attribute
4696         directly.
4697         (*aarch64_be_movoi): Likewise.
4698         (*aarch64_be_movci): Likewise.
4699         (*aarch64_be_movxi): Likewise.
4700
4701 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4702
4703         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4704         It no longer does that.
4705         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4706
4707 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
4708
4709         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4710         attribute __unused__.
4711
4712 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4713
4714         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4715         * config/arm/arm.c (arm_arch_thumb1): Define.
4716         (arm_option_override): Initialize arm_arch_thumb1.
4717         * config/arm/arm.h (arm_arch_thumb1): Declare.
4718         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4719         support Thumb-1 ISA.
4720
4721 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4722
4723         PR target/71346
4724         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4725         `Yv' for scalar operand.
4726
4727 2016-05-31  Tom de Vries  <tom@codesourcery.com>
4728
4729         PR tree-optimization/69068
4730         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4731         phis with more than two args.
4732
4733 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
4734
4735         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4736         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4737         target.
4738
4739 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
4740
4741         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4742         tune_64.
4743         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4744         support on SPARC.
4745         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4746         cpu_32, cpu_64, tune_32 and tune_64.
4747         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4748
4749 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
4750
4751         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4752
4753 2016-05-30  Andi Kleen  <ak@linux.intel.com>
4754
4755         * auto-profile.c (read_profile): Replace asserts with errors
4756         when file does not exist.
4757         * gcov-io.c (gcov_read_words): Dito.
4758
4759 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4760
4761         * tree-cfg.c (print_loop): Print likely upper bounds.
4762
4763 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4764
4765         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4766         * opts.c (default_options): Enable peel loops at -O3.
4767         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4768         (try_peel_loop): Do not re-peel already peeled loops;
4769         use likely upper bounds; fix profile updating.
4770         (pass_complete_unroll::execute): Initialize peeled_loops.
4771
4772 2016-05-30  Martin Liska  <mliska@suse.cz>
4773
4774         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4775         computed costs by frequency of BB they belong to.
4776         (get_scaled_computation_cost_at): New function.
4777
4778 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
4779             Marc Glisse  <marc.glisse@inria.fr>
4780
4781         PR tree-optimization/71289
4782         * match.pd (-1 / B < A, A > -1 / B): New transformations.
4783
4784 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4785
4786         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
4787
4788 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4789
4790         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
4791         for peeled copies; avoid underflow when updating estimates; correctly
4792         scale loop profile.
4793
4794 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4795
4796         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
4797         r236875. Corrected oe3 to oe2 as obvious.
4798
4799 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4800
4801         PR middle-end/71269
4802         PR middle-end/71252
4803         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
4804         that inserted stmt will not dominate stmts that defines its operand.
4805         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
4806         (rewrite_expr_tree_parallel): Likewise.
4807
4808 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4809
4810         PR middle-end/71252
4811         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
4812         all fields including stmt_to_insert are swapped.
4813
4814 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4815
4816         * predict.h (force_edge_cold): Declare.
4817         * predict.c (force_edge_cold): New function.
4818         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4819         updating.
4820         (canonicalize_loop_induction_variables): Fix formating.
4821
4822 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4823
4824         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4825         (visium_expand_copysign): Use gen_int_mode directly.
4826         (visium_compute_frame_size): Minor tweaks.
4827
4828 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4829
4830         * tree-vect-loop.c (vect_analyze_loop_2): Use
4831         likely_max_stmt_executions_int.
4832
4833 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4834
4835         PR tree-optimization/69067
4836         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4837
4838 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4839
4840         PR target/71245
4841         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4842         New peepholes to remove unneeded fild/fistp pairs.
4843         (define_peephole2 atomic_loaddi_fpu): Ditto.
4844
4845 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4846
4847         * predict.c (maybe_hot_frequency_p): Avoid division.
4848
4849 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4850
4851         * doc/install.texi: Use https for shop.fsf.org.
4852
4853 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4854
4855         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4856         likely_max_stmt_executions_int.
4857
4858 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4859
4860         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4861         likely_max_stmt_executions_int.
4862
4863 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4864
4865         * profile.c (compute_branch_probabilities): Do not report hitrates
4866         here.
4867         (branch_prob): Report hitrates here.
4868         * predict.c (gimple_predict_edge): Do not assert profile status;
4869         fix formatting issues.
4870
4871 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4872
4873         * predict.c (edge_predicted_by_p): New function.
4874         (predict_paths_for_bb): Do not put multiple predictions of the same type
4875         on one edge.
4876
4877 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4878
4879         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4880         commit.
4881
4882 2016-05-28  Alan Modra  <amodra@gmail.com>
4883
4884         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4885
4886 2016-05-28  Alan Modra  <amodra@gmail.com>
4887
4888         PR rtl-optimization/71275
4889         * ira.c (ira): Free dominance info.
4890
4891 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4892
4893         * doc/sourcebuild.texi: New address for upstream Go repository.
4894
4895 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4896
4897         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4898         (TARGET_ARM_V7M): Likewise.
4899
4900 2016-05-26  Jeff Law  <law@redhat.com>
4901
4902         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4903         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4904         * passes.def: Add jump threading passes before DOM/VRP.
4905         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4906         argument to a basic block from an edge.  Remove tests which are
4907         handled elsewhere.
4908         (pass_data_thread_jumps, class pass_thread_jumps): New.
4909         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4910         (make_pass_thread_jumps): Likewise.
4911         * tree-pass.h (make_pass_thread_jumps): Declare.
4912
4913 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4914
4915         * config/visium/visium-protos.h (split_double_move): Rename into...
4916         (visium_split_double_move): ...this.
4917         (visium_split_double_add): Declare.
4918         * config/visium/visium.c (split_double_move): Rename into...
4919         (visium_split_double_move): ...this.
4920         (visium_split_double_add): New function.
4921         (visium_expand_copysign): Renumber operands for consistency.
4922         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4923         (DFmode move splitter): Likewise.
4924         (*addi3_insn): Split by means of visium_split_double_add.
4925         (*adddi3_insn_flags): Delete.
4926         (*plus_plus_sltu<subst_arith>): New insn.
4927         (*subdi3_insn): Split by means of visium_split_double_add.
4928         (subdi3_insn_flags): Delete.
4929         (*minus_minus_sltu<subst_arith>): New insn.
4930         (*negdi2_insn): Split by means of visium_split_double_add.
4931         (*negdi2_insn_flags): Delete.
4932
4933 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4934
4935         * configure.ac: Treat a --with-headers option without argument
4936         the same as the default (i.e. consult sys-include directory).
4937         * configure: Regenerate.
4938
4939 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4940
4941         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4942         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4943         prototype.
4944         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4945         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4946
4947 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4948
4949         PR target/63596
4950         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4951         tree-stdarg analysis results.
4952         (aarch64_setup_incoming_varargs): Likewise.
4953
4954 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4955
4956         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4957         va_list_gpr_counter_field and va_list_fpr_counter_field.
4958
4959 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
4960
4961         PR67609
4962         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
4963         * config/aarch64/aarch64.c
4964         (aarch64_cannot_change_mode_class): Remove function.
4965         * config/aarch64/aarch64-protos.h
4966         (aarch64_cannot_change_mode_class): Remove.
4967
4968 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4969
4970         * cfgloop.c (record_niter_bound): Record likely upper bounds.
4971         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
4972         get_likely_max_loop_iterations_int): New.
4973         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
4974         any_likely_upper_bound.
4975         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
4976         Declare.
4977         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
4978         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
4979         upper bound.
4980         (unroll_loop_constant_iterations): Likewise.
4981         (unroll_loop_runtime_iterations): Likewise.
4982         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
4983         * lto-streamer-out.c (output_cfg): Likewise.
4984         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
4985         bounds.
4986         (canonicalize_loop_induction_variables): Dump likely upper bounds.
4987         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
4988         (likely_max_loop_iterations): New.
4989         (likely_max_loop_iterations_int): New.
4990         (likely_max_stmt_executions): New.
4991         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
4992         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
4993         likely_max_stmt_executions): Declare.
4994
4995 2016-05-27  Marek Polacek  <polacek@redhat.com>
4996
4997         PR middle-end/71308
4998         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
4999
5000 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5001
5002         * config/s390/s390.md (2x risbg splitters): Use
5003         reg_overlap_mentioned_p instead of rtx_equal_p.
5004
5005 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5006
5007         * combine.c (make_compound_operation): Take known zero bits into
5008         account when checking for possible zero_extend.
5009
5010 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5011
5012         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5013         Use const_int_operand for operand 2 predicate.  Simplify expand code
5014         as a result.
5015
5016 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5017
5018         PR middle-end/71279
5019         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5020         into comparison.
5021
5022 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5023
5024         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5025         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5026         that returns CC_SESWPmode and CC_ZESWPmode.
5027         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5028         and CC_SESWPmode.
5029         (aarch64_rtx_costs): Likewise.
5030
5031 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5032
5033         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5034         for ISA 3.0 min/max support.
5035         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5036         conditional move support.
5037         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5038         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5039         available.
5040         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5041         conditional moves where the comparison type is different from move
5042         type.
5043         (fp_minmax): New code iterator for smin/smax.
5044         (minmax): New code attributes for min/max.
5045         (SMINMAX): Likewise.
5046         (smax<mode>3): Combine min, max insns into one insn using the
5047         fp_minmax code iterator.  Add support for ISA 3.0 min/max
5048         instructions that don't need -ffast-math.
5049         (s<minmax><mode>3): Likewise.
5050         (smax<mode>3_vsx): Likewise.
5051         (smin<mode>3): Likewise.
5052         (s<minmax><mode>3_vsx): Likewise.
5053         (smin<mode>3_vsx): Likewise.
5054         (pre-VSX min/max splitters): Likewise.
5055         (s<minmax><mode>3_fpr): Likewise.
5056         (movsfcc): Rewrite floating point conditional moves to combine
5057         SFmode/DFmode into a single insn.
5058         (mov<mode>cc): Likewise.
5059         (movdfcc): Likewise.
5060         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5061         SFDF2 iterators to handle all combinations.
5062         (fseldfsf4): Likewise.
5063         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5064         (fseldfdf4): Likewise.
5065         (fselsfdf4): Likewise.
5066         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5067         comparison instructions that set a 0/-1 mask, and use it for
5068         floating point conditional move via XXSEL.
5069         (fpmask<mode>): Likewise.
5070         (xxsel<mode>): Likewise.
5071         * config/rs6000/predicates.md (min_max_operator): Delete, no
5072         longer used.
5073         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5074         instructions that generate a 0/-1 mask for use with XXSEL.
5075         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5076         say whether floating point min/max is available, either through
5077         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5078         (TARGET_MINMAX_DF): Likewise.
5079
5080 2016-05-27  Alan Modra  <amodra@gmail.com>
5081
5082         PR rtl-optimization/71275
5083         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5084         for update_equiv_regs and combine_and_move_insns.
5085
5086 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
5087
5088         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5089         if_then_else or cond RTXes to calculate attribute value.
5090         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5091         <attr "length_immediate>: Ditto.
5092         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5093         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5094         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5095         <attr "type">: Ditto.
5096         <attr "prefix_data16">: Ditto.
5097         <attr "prefix_extra">: Ditto.
5098         <attr "length_immediate">: Ditto.
5099         <attr "prefix">: Ditto.
5100         (vec_set<mode>_0) <attr "isa">: Ditto.
5101         <attr "prefix_extra">: Ditto.
5102         <attr "length_immediate">: Ditto.
5103         <attr "prefix">: Ditto.
5104         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5105         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5106         (sse2_storelpd) <attr "prefix_data16">: Ditto.
5107         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5108         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5109         <attr "length_immediate">: Ditto.
5110         <attr "prefix">: Ditto.
5111         (sse2_movsd) <attr "length_immediate">: Ditto.
5112         <attr "prefix">: Ditto.
5113         (vec_concatv2df)  <attr "isa">: Ditto.
5114         <attr "prefix">: Ditto.
5115         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5116         (*vec_extractv2di_1) <attr "isa">: Ditto.
5117         <attr "type">: Ditto.
5118         <attr "length_immediate">: Ditto.
5119         <attr "prefix_rex">: Ditto.
5120         <attr "prefix_extra">: Ditto.
5121         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5122         <attr "prefix_extra">: Ditto.
5123         <attr "length_immediate">: Ditto.
5124         (vec_concatv2di) <attr "isa">: Ditto.
5125         <attr "prefix_extra">: Ditto.
5126         <attr "length_immediate">: Ditto.
5127         <attr "prefix">: Ditto.
5128
5129 2016-05-26  Martin Liska  <mliska@suse.cz>
5130
5131         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5132         function.
5133         (operator+): Likewise.
5134         (operator-): Likewise.
5135         (comp_cost::operator+=): Likewise.
5136         (comp_cost::operator-=): Likewise.
5137         (comp_cost::operator/=): Likewise.
5138         (comp_cost::operator*=): Likewise.
5139         (operator<): Likewise.
5140         (operator==): Likewise.
5141         (operator<=): Likewise.
5142         (new_cost): Remove.
5143         (infinite_cost_p): Likewise.
5144         (add_costs): Likewise.
5145         (sub_costs): Likewise.
5146         (compare_costs): Likewise.
5147         (set_group_iv_cost): Use the newly introduced functions.
5148         (get_address_cost): Likewise.
5149         (get_shiftadd_cost): Likewise.
5150         (force_expr_to_var_cost): Likewise.
5151         (split_address_cost): Likewise.
5152         (ptr_difference_cost): Likewise.
5153         (difference_cost): Likewise.
5154         (get_computation_cost_at): Likewise.
5155         (determine_group_iv_cost_generic): Likewise.
5156         (determine_group_iv_cost_address): Likewise.
5157         (determine_group_iv_cost_cond): Likewise.
5158         (autoinc_possible_for_pair): Likewise.
5159         (determine_group_iv_costs): Likewise.
5160         (cheaper_cost_pair): Likewise.
5161         (iv_ca_recount_cost): Likewise.
5162         (iv_ca_set_no_cp): Likewise.
5163         (iv_ca_set_cp): Likewise.
5164         (iv_ca_cost): Likewise.
5165         (iv_ca_new): Likewise.
5166         (iv_ca_dump): Likewise.
5167         (iv_ca_narrow): Likewise.
5168         (iv_ca_prune): Likewise.
5169         (iv_ca_replace): Likewise.
5170         (try_add_cand_for): Likewise.
5171         (try_improve_iv_set): Likewise.
5172         (find_optimal_iv_set): Likewise.
5173
5174 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5175
5176         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5177         that internal functions will clobber all caller-saved registers.
5178
5179 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5180
5181         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5182         Return a better case_values_threshold when optimizing.
5183
5184 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5185
5186         * config/aarch64/aarch64-simd.md (aarch64_combinez):
5187         Add ? to integer variant.
5188         (aarch64_combinez_be): Likewise.
5189
5190 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5191
5192         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5193         instead of x constraint.
5194         (vcvtps2ph256<mask_name>): Likewise.
5195
5196         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5197         alternative.  Formatting fix.
5198
5199         * config/i386/sse.md
5200         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5201         to ...
5202         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5203         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
5204         maybe_evex prefix instead of vex.
5205         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
5206         EXT_REX_SSE_REG_P (op0) case in the splitter.
5207
5208 2016-05-25  Jeff Law  <law@redhat.com>
5209
5210         PR tree-optimization/71272
5211         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5212         Update comments.  Add test for empty path.
5213
5214 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5215
5216         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5217         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5218         special case builtin.
5219         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5220         code for ALTIVEC_BUILTIN_VEC_CMPNE.
5221         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5222         for __builtin_vec_cmpne.
5223
5224 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5225
5226         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5227         redundant test and bail out if the type of the new operand is not
5228         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5229
5230 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5231
5232         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5233         (x_ix86_target_flags_explicit): Remove.
5234         * config/i386/i386.c (ix86_function_specific_save): Do not copy
5235         x_ix86_target_flags_explicit.
5236         (ix86_function_specific_restore): Ditto.
5237
5238 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5239             H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         PR target/70738
5242         * common/config/i386/i386-common.c
5243         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5244         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5245         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5246         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5247         (-mgeneral-regs-only): Add new option.
5248         * config/i386/i386.c (ix86_option_override_internal): Don't enable
5249         x87 instructions if only general registers are allowed.
5250         (ix86_target_string): Add ix86_flags argument. Handle additional
5251         flags options through ix86_flags argument.  Update all callers.
5252         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5253
5254 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5255
5256         PR rtl-optimization/66940
5257         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
5258         decrementing desired_val will not overflow before performing these
5259         operations.
5260
5261 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
5262
5263         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
5264         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
5265         * config/i386/i386.c (enum ix86_builtins): Add
5266         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
5267         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
5268         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
5269         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
5270         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
5271         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
5272         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
5273         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
5274         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
5275         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
5276         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
5277         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
5278         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
5279         __builtin_ia32_cvtps2dq512_mask.
5280         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
5281         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
5282         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
5283         * config/i386/sse.md
5284         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
5285         Rename to ...
5286         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
5287         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
5288         to ...
5289         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
5290         (avx512f_vec_pack_sfix_v8df): New define_expand.
5291         (avx512f_roundpd512): Rename to ...
5292         (avx512f_round<castmode>512): ... this.  Change iterator.
5293         (avx512f_roundps512_sfix): New define_expand.
5294         (round<mode>2_sfix): Change iterator.
5295
5296 2016-05-25  Nick Clifton  <nickc@redhat.com>
5297
5298         * config/msp430/msp430.c (msp430_attr): Produce an error if a
5299         static interrupt handler is detected.
5300         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
5301         default linker script.
5302         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
5303         the low part of a symbolic pointer.
5304
5305 2016-05-25  Richard Biener  <rguenther@suse.de>
5306
5307         PR tree-optimization/71261
5308         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
5309         interesting stmt instead of immediate uses when looking
5310         for the use operand to replace.
5311
5312 2016-05-25  Martin Liska  <mliska@suse.cz>
5313
5314         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
5315
5316 2016-05-25  Richard Biener  <rguenther@suse.de>
5317
5318         PR tree-optimization/71264
5319         * tree-vect-stmts.c (vect_init_vector): Properly deal with
5320         vector type val.
5321
5322 2016-05-25  Martin Liska  <mliska@suse.cz>
5323
5324         PR tree-optimization/71239
5325         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
5326         if DECL_SIZE is NULL.
5327
5328 2016-05-25  Richard Biener  <rguenther@suse.de>
5329
5330         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
5331         * tree-if-conv.c (pass_data_if_conversion): Use it.
5332
5333 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5334
5335         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
5336         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
5337         * varpool.c (varpool_node::get_availability): Likewise.
5338
5339 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5340
5341         * config/rs6000/altivec.md (VNEG iterator): New iterator for
5342         VNEGW/VNEGD instructions.
5343         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
5344         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
5345         support for ISA 3.0 VNEGW/VNEGD instructions.
5346
5347 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5348
5349         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
5350         pointers inside OACC_DATA regions.
5351         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
5352         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
5353         (gimplify_adjust_omp_clauses): Fix typo in comment.
5354
5355 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5356
5357         * config/rs6000/altivec.md (VParity): New mode iterator for vector
5358         parity built-in functions.
5359         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
5360         zeros.
5361         (p9v_parity<mode>2): Likewise.
5362         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
5363         parity.
5364         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
5365         (parity<mode>2): ISA 3.0 expander for vector parity.
5366         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
5367         power9 built-ins.
5368         (BU_P9_64BIT_MISC_0): Likewise.
5369         (BU_P9_MISC_0): Likewise.
5370         (BU_P9V_AV_1): Likewise.
5371         (BU_P9V_AV_2): Likewise.
5372         (BU_P9V_AV_3): Likewise.
5373         (BU_P9V_AV_P): Likewise.
5374         (BU_P9V_VSX_1): Likewise.
5375         (BU_P9V_OVERLOAD_1): Likewise.
5376         (BU_P9V_OVERLOAD_2): Likewise.
5377         (BU_P9V_OVERLOAD_3): Likewise.
5378         (VCTZB): Add vector count trailing zeros support.
5379         (VCTZH): Likewise.
5380         (VCTZW): Likewise.
5381         (VCTZD): Likewise.
5382         (VPRTYBD): Add vector parity support.
5383         (VPRTYBQ): Likewise.
5384         (VPRTYBW): Likewise.
5385         (VCTZ): Add overloaded vector count trailing zeros support.
5386         (VPRTYB): Add overloaded vector parity support.
5387         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5388         overloaded vector count trailing zeros and parity instructions.
5389         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
5390         vector parity support.
5391         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
5392         trailing zeros support.
5393         (vec_cntlz): Likewise.
5394         (vec_vctzb): Likewise.
5395         (vec_vctzd): Likewise.
5396         (vec_vctzh): Likewise.
5397         (vec_vctzw): Likewise.
5398         (vec_vprtyb): Add ISA 3.0 vector parity support.
5399         (vec_vprtybd): Likewise.
5400         (vec_vprtybw): Likewise.
5401         (vec_vprtybq): Likewise.
5402         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5403         the ISA 3.0 vector count trailing zeros and vector parity built-in
5404         functions.
5405
5406 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5407
5408         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
5409         when there is stmt_to_insert.
5410
5411 2016-05-24  Martin Sebor  <msebor@redhat.com>
5412
5413         PR c++/71147
5414         * tree.h (complete_or_array_type_p): New inline function.
5415
5416 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
5417
5418         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
5419         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
5420         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
5421
5422         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
5423         Limit 1st alternative to noavx isa, split 2nd alternative into one
5424         noavx and one avx alternative, use *x and Bm in the former and
5425         x and m in the latter.
5426
5427         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
5428         of sse4 for the first alternative, drop %v from the template
5429         and d operand modifier.  Split second alternative into one sse4_noavx
5430         and one avx alternative, use *x instead of *v in the former and v
5431         instead of *v in the latter.
5432         (*sse4_1_extractps): Use noavx isa instead of * for the first
5433         alternative, drop %v from the template.  Split second alternative into
5434         one noavx and one avx alternative, use *x instead of *v in the
5435         former and v instead of *v in the latter.
5436         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
5437         with noavx and the last one with avx.
5438         (sse4_1_phminposuw): Guard first alternative with noavx isa,
5439         split the second one into one noavx and one avx alternative,
5440         use *x and Bm in the former and x and m in the latter one.
5441         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
5442         alternatives.
5443
5444         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
5445         first two alternatives to noavx, use *x instead of *v in the second
5446         one, add avx alternative without *.
5447         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
5448         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
5449         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
5450
5451 2016-05-24  Jeff Law  <law@redhat.com>
5452
5453         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
5454         New function, extracted from...
5455         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
5456         Allow simple copies and constant initializations in the SSA chain.
5457
5458 2016-05-24  Marek Polacek  <polacek@redhat.com>
5459
5460         PR c/71249
5461         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
5462         scope.
5463
5464 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
5465
5466         PR c++/71257
5467         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5468         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5469         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
5470         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
5471         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
5472
5473 2016-05-24  Richard Biener  <rguenther@suse.de>
5474
5475         PR tree-optimization/71240
5476         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
5477         has integral type.
5478
5479 2016-05-24  Richard Biener  <rguenther@suse.de>
5480
5481         PR tree-optimization/71230
5482         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
5483
5484 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5485
5486         * tree-vectorizer.h (vectorizable_comparison): Delete.
5487         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
5488         PURE_SLP_STMT check.
5489         * tree-vect-stmts.c (vectorizable_call): Likewise.
5490         (vectorizable_simd_clone_call): Likewise.
5491         (vectorizable_conversion): Likewise.
5492         (vectorizable_assignment): Likewise.
5493         (vectorizable_shift): Likewise.
5494         (vectorizable_operation): Likewise.
5495         (vectorizable_load): Likewise.
5496         (vectorizable_condition): Likewise.
5497         (vectorizable_store): Likewise.  Assert that we don't have
5498         hybrid SLP.
5499         (vectorizable_comparison): Make static.  Remove redundant
5500         PURE_SLP_STMT check.
5501         (vect_transform_stmt): Assert that we always have an slp_node
5502         if PURE_SLP_STMT.
5503
5504 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5505
5506         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
5507         operands[2] against 1 with comparison against CONST1_RTX.
5508         (<shift>di3_neon): Likewise.
5509         * config/arm/predicates.md (const0_operand): Replace with comparison
5510         against CONST0_RTX.
5511
5512 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5513
5514         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
5515         operands[2] against 1 with comparison against CONST1_RTX.
5516         (ashrdi3): Likewise.
5517         (lshrdi3): Likewise.
5518         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
5519         UINTVAL.
5520         (ashrsi3): Likewise.
5521         (lshrsi3): Likewise.
5522         (rotrsi3): Likewise.
5523         (define_split above *compareqi_eq0): Likewise.
5524         (define_split above "prologue"): Likewise.
5525         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
5526         * config/arm/predicates.md (shift_operator): Likewise.
5527         (shift_nomul_operator): Likewise.
5528         (sat_shift_operator): Likewise.
5529         (thumb1_cmp_operand): Likewise.
5530         (const_neon_scalar_shift_amount_operand): Replace manual range
5531         check with IN_RANGE.
5532         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
5533         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
5534
5535 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5536
5537         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
5538         with HOST_WIDE_INT_1.
5539         (insv): Likewise.
5540         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
5541         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
5542         (arm_canonicalize_comparison): Likewise.
5543         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
5544         HOST_WIDE_INT_1.
5545         (thumb1_size_rtx_costs): Likewise.
5546         (vfp_const_double_index): Replace cast of 1 to unsigned
5547         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5548         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
5549         HOST_WIDE_INT_1.
5550         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
5551         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5552         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
5553         HOST_WIDE_INT with HOST_WIDE_INT_1.
5554
5555 2016-05-24  Marek Polacek  <polacek@redhat.com>
5556
5557         * tree-cfg.h (should_remove_lhs_p): New predicate.
5558         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5559         * gimplify.c (gimplify_modify_expr): Likewise.
5560         * tree-cfg.c (verify_gimple_call): Likewise.
5561         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5562         * gimple-fold.c: Include "tree-cfg.h".
5563         (gimple_fold_call): Use should_remove_lhs_p.
5564
5565 2016-05-24  Richard Biener  <rguenther@suse.de>
5566
5567         PR tree-optimization/71253
5568         * cfganal.h (control_dependences): Make robust against edge
5569         and BB removal.
5570         (control_dependences::control_dependences): Remove edge_list argument.
5571         (control_dependences::get_edge): Remove.
5572         (control_dependences::get_edge_src): Add.
5573         (control_dependences::get_edge_dest): Likewise.
5574         (control_dependences::m_el): Make a vector of edge src/dest index.
5575         * cfganal.c (control_dependences::find_control_dependence): Adjust.
5576         (control_dependences::control_dependences): Likewise.
5577         (control_dependences::~control_dependence): Likewise.
5578         (control_dependences::get_edge): Remove.
5579         (control_dependences::get_edge_src): Add.
5580         (control_dependences::get_edge_dest): Likewise.
5581         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
5582         get_edge_src.
5583         (perform_tree_ssa_dce): Adjust.
5584         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
5585         get_edge_src.
5586         (pass_loop_distribution::execute): Adjust.  Do loop destroying
5587         conditional on changed.
5588
5589 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5590
5591         PR target/69857
5592         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
5593         return.  Reindent transformation comment and mention the ARM state
5594         behavior.
5595
5596 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5597
5598         PR middle-end/71252
5599         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
5600         after build_and_add_sum creates new use stmt.
5601
5602 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5603
5604         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
5605         load_lanes/grouped_load classification comes first.  Don't check
5606         whether the vectorization factor is a multiple of the group size
5607         for load_lanes.
5608
5609 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5610
5611         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
5612         GROUP_GAP for single-element interleaving.
5613         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
5614         variable.
5615
5616 2016-05-24  Richard Biener  <rguenther@suse.de>
5617
5618         PR middle-end/70434
5619         PR c/69504
5620         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
5621         bases which are accessed with non-invariant indices.
5622         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
5623         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
5624
5625 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5626
5627         PR middle-end/71170
5628         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
5629         (add_to_ops_vec): Add stmt_to_insert.
5630         (add_repeat_to_ops_vec): Init stmt_to_insert.
5631         (insert_stmt_before_use): New.
5632         (transform_add_to_multiply): Remove mult_stmt insertion and add it
5633         to ops vector.
5634         (get_ops): Init stmt_to_insert.
5635         (maybe_optimize_range_tests): Likewise.
5636         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
5637         (rewrite_expr_tree_parallel): Likewise.
5638         (reassociate_bb): Likewise.
5639
5640 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5641
5642         PR target/71201
5643         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5644         ISA 3.0 xxperm fusion alternative.
5645         (altivec_vperm_v8hiv16qi): Likewise.
5646         (altivec_vperm_<mode>_uns_internal): Likewise.
5647         (vperm_v8hiv4si): Likewise.
5648         (vperm_v16qiv8hi): Likewise.
5649
5650 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5651             Kelvin Nilsen  <kelvin@gcc.gnu.org>
5652
5653         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5654         vpermr/xxpermr on ISA 3.0.
5655         (altivec_expand_vec_perm_le): Likewise.
5656         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5657         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5658         ISA 3.0.
5659
5660 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
5661
5662         * config/i386/i386.h (IS_STACK_MODE): Enable for
5663         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
5664         SSE_FLOAT_MODE_P macros.
5665         * config/i386/i386.c (ix86_preferred_reload_class): Use
5666         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5667         Cleanup regclass processing for CONST_DOUBLE_P.
5668         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5669         (ix86_rtx_costs): Remove redundant TARGET_80387 check
5670         with IS_STACK_MODE macro.
5671         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5672         with TARGET_SSE2.
5673         (*movdf_internal): Use IS_STACK_MODE macro.
5674         (*movsf_internal): Ditto.
5675
5676 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
5677
5678         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5679         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5680
5681 2016-05-23  Jeff Law  <law@redhat.com>
5682
5683         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5684         extracted from ...
5685         (fsm_find_control_statement_thread_paths): Call it.
5686
5687 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5688
5689         PR ipa/71234
5690         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5691         from_global_constant if t is not NULL.
5692
5693 2016-05-23  Marek Polacek  <polacek@redhat.com>
5694
5695         PR c/49859
5696         * common.opt (Wswitch-unreachable): New option.
5697         * doc/invoke.texi: Document -Wswitch-unreachable.
5698         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5699         warning.
5700
5701 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
5702
5703         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5704         TMR_INDEX is non-NULL.
5705
5706 2016-05-23  Richard Biener  <rguenther@suse.de>
5707
5708         PR tree-optimization/71230
5709         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5710         (try_special_add_to_ops): ... here.  Always test for single-use.
5711
5712 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5713
5714         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5715         default block if a PHI node in the original one would be resized.
5716
5717 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5718
5719         PR tree-optimization/58135
5720         * tree-vect-slp.c: When group size is not multiple
5721         of vector size, allow splitting of store group at
5722         vector boundary.
5723
5724 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
5725
5726         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5727
5728 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
5729
5730         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5731         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5732         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
5733         of 64x2.
5734
5735         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5736         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5737         v constraint instead of x and vinserti32x4 insn.
5738
5739         * config/i386/sse.md (i128vldq): New mode iterator.
5740         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5741         avx512dq and avx512vl alternatives.
5742
5743         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5744         constraint, use maybe_evex prefix instead of vex.
5745         (vec_dupv4sf): Use v constraint instead of x for output
5746         operand except for noavx alternative, use Yv constraint
5747         instead of x for input.  Use maybe_evex prefix instead of vex.
5748         (*vec_dupv4si): Likewise.
5749         (*vec_dupv2di): Likewise.
5750
5751 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5752
5753         PR middle-end/40921
5754         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5755         (linearize_expr_tree): Call try_special_add_to_ops.
5756         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5757
5758 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5759
5760         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5761         to computed stack_usage.
5762
5763 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5764
5765         PR target/71103
5766         * config/avr/avr.md (define_expand "mov<mode>"): If the source
5767         operand is subreg (symbol_ref) then move the symbol ref to register.
5768
5769 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
5770
5771         * tree.c (array_at_struct_end_p): Look through MEM_REF.
5772
5773 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5774
5775         PR middle-end/71179
5776         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
5777         VECTOR type.
5778
5779 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5780
5781         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
5782         ranges by calling get_single_symbol and tidy up.  Look more closely
5783         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
5784
5785 2016-05-20  Jeff Law  <law@redhat.com>
5786
5787         * bitmap.c (bitmap_find_bit): Remove useless test.
5788
5789 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5790
5791         * function.c (thread_prologue_and_epilogue_insns): Commit the
5792         insertion of the epilogue.
5793
5794 2016-05-20  Martin Jambor  <mjambor@suse.cz>
5795
5796         PR tree-optimization/70884
5797         * tree-sra.c (initialize_constant_pool_replacements): Do not check
5798         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5799         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5800         of constant pool data as a reason for scalarization.
5801
5802 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5803
5804         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5805         for naked functions.
5806         (thumb1_expand_prologue): Likewise.
5807
5808 2016-05-20  Nathan Sidwell  <nathan@acm.org>
5809
5810         * config/nvptx/nptx.c (nvptx_option_override): Only set
5811         flag_toplevel_reorder, if not explicitly specified.  Set
5812         flag_no_common, unless explicitly specified.
5813
5814 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5815
5816         * calls.c (can_implement_as_sibling_call_p): Mark param
5817         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5818
5819 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5820
5821         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5822         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5823         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5824         constants.
5825         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5826         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5827         and CASE_CONST_ANY.
5828
5829 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5830
5831         * config/nvptx/nvptx.md (sincossf3): New pattern.
5832
5833 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5834
5835         * calls.c (maybe_complain_about_tail_call): New function.
5836         (initialize_argument_information): Call
5837         maybe_complain_about_tail_call when clearing *may_tailcall.
5838         (can_implement_as_sibling_call_p): Call
5839         maybe_complain_about_tail_call when returning false.
5840         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5841         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5842         if tail-call optimization fails.
5843         * cfgexpand.c (expand_call_stmt): Initialize
5844         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5845         * gimple-pretty-print.c (dump_gimple_call): Dump
5846         gimple_call_must_tail_p.
5847         * gimple.c (gimple_build_call_from_tree): Call
5848         gimple_call_set_must_tail with the value of
5849         CALL_EXPR_MUST_TAIL_CALL.
5850         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5851         (gimple_call_set_must_tail): New function.
5852         (gimple_call_must_tail_p): New function.
5853         * print-tree.c (print_node): Update printing of TREE_STATIC
5854         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5855         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5856         trailing comment listing applicable flags.
5857         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5858
5859 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5860
5861         * calls.c (expand_call): Move "Rest of purposes for tail call
5862         optimizations to fail" to...
5863         (can_implement_as_sibling_call_p): ...this new function, and
5864         split into multiple "if" statements.
5865
5866 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5867
5868         * cfgloop.h (expected_loop_iterations_unbounded,
5869         expected_loop_iterations): Unconstify.
5870         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5871         profile with known upper bound; return 3 when profile is absent.
5872         (expected_loop_iterations): Update.
5873
5874 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5875
5876         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5877         and get_max_loop_iterations_int.
5878
5879 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5880
5881         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5882         realistic upper bounds here.
5883
5884 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5885
5886         PR c++/71210
5887         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5888         calls if the LHS is variable length or has addressable type.
5889         If targets[0]->decl is a noreturn call with void return type and
5890         zero arguments, adjust fntype and remove lhs in that case.
5891
5892 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5893
5894         PR tree-optimization/71079
5895         PR tree-optimization/71206
5896         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5897
5898 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5899
5900         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5901         (get_vec_alignment_for_array_decl): Likewise.
5902         (get_vec_alignment_for_record_decl): Likewise.
5903         (increase_alignment::execute): Move code to find alignment to
5904         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5905         (type_align_map): New hash_map.
5906
5907 2016-05-20  Richard Guenther  <rguenther@suse.de>
5908
5909         PR tree-optimization/29756
5910         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5911         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5912         * fold-const.c (operand_equal_p): Likewise.
5913         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5914         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5915         * tree-inline.c (estimate_operator_cost): Likewise.
5916         * tree-pretty-print.c (dump_generic_node): Likewise.
5917         * tree-ssa-operands.c (get_expr_operands): Likewise.
5918         * cfgexpand.c (expand_debug_expr): Likewise.
5919         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5920         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5921         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5922         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5923         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5924         (execute_update_addresses_taken): Do it.
5925
5926 2016-05-20  Richard Biener  <rguenther@suse.de>
5927
5928         PR tree-optimization/71185
5929         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5930         register operations.
5931
5932 2016-05-20  Richard Biener  <rguenther@suse.de>
5933
5934         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5935         gimple_seq_add_seq_without_update.
5936         (release_bb_predicate): Assert we have no operands to free.
5937         (if_convertible_loop_p_1): Calculate post dominators later.
5938         Do not free BB predicates here.
5939         (combine_blocks): Do not recompute BB predicates.
5940         (version_loop_for_if_conversion): Save BB predicates around
5941         loop versioning.
5942
5943 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5944
5945         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5946         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5947         code.  Ignore sibcalls on EDGE_IGNORE edges.
5948         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5949         on edges for sibcalls that run without prologue.  The rest of the
5950         function is combined from...
5951         (fix_fake_fallthrough_edge): ... this, and ...
5952         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5953         function argument, make it a local variable.
5954
5955 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5956
5957         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5958         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5959         for 32-bit mode and SEH for 64-bit.
5960         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
5961         TARGET_64BIT_DEFAULT.
5962
5963 2016-05-19  Ryan Burn  <contact@rnburn.com>
5964
5965         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
5966         * gengtype.c (open_base_files): Add cilk.h to ifiles.
5967
5968 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
5969
5970         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5971         force pending loads from memory.
5972
5973 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5974
5975         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5976         (UNSPEC_DARN_32): New unspec constant.
5977         (UNSPEC_DARN_RAW): New unspec constant.
5978         (darn_32): New instruction.
5979         (darn_raw): New instruction.
5980         (darn): New instruction.
5981         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5982         support and documentation for this macro.
5983         (BU_P9_MISC_1): New macro definition.
5984         (BU_P9_64BIT_MISC_0): New macro definition.
5985         (BU_P9_MISC_0): New macro definition.
5986         (darn_32): New builtin definition.
5987         (darn_raw): New builtin definition.
5988         (darn): New builtin definition.
5989         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5990         RS6000_BUILTIN_0 directives to surround each occurrence of
5991         #include "rs6000-builtin.def".
5992         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5993         RS6000_BTM_64BIT flags to the returned mask, depending on
5994         configuration.
5995         (def_builtin): Correct an error in the assignments made to the
5996         debugging variable attr_string.
5997         (rs6000_expand_builtin): Add support for no-operand built-in
5998         functions.
5999         (builtin_function_type): Remove fatal_error assertion that is no
6000         longer valid.
6001         (rs6000_common_init_builtins): Add support for no-operand built-in
6002         functions.
6003         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6004         definition.
6005         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6006         definition.
6007         (RS6000_BTM_64BIT): New macro definition.
6008         * doc/extend.texi: Document __builtin_darn (void),
6009         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6010         functions.
6011
6012 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
6013
6014         * tree-vect-loop.c (vect_analyze_loop_2): Use also
6015         max_loop_iterations_int.
6016
6017 2016-05-19  Marek Polacek  <polacek@redhat.com>
6018
6019         PR tree-optimization/71031
6020         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6021         condition and adjust the code a bit.
6022
6023 2016-05-19  Martin Liska  <mliska@suse.cz>
6024
6025         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6026         auto_vec instead of vec.
6027
6028 2016-05-19  Martin Liska  <mliska@suse.cz>
6029
6030         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6031
6032 2016-05-19  Martin Liska  <mliska@suse.cz>
6033
6034         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6035
6036 2016-05-19  Martin Liska  <mliska@suse.cz>
6037
6038         * ipa-pure-const.c (set_function_state): Remove an existing
6039         funct_state.
6040         (remove_node_data): Do not free it as it's released
6041         in set_function_state.
6042
6043 2016-05-19  Martin Liska  <mliska@suse.cz>
6044
6045         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6046         bitmap.
6047
6048 2016-05-19  Martin Liska  <mliska@suse.cz>
6049
6050         * omp-simd-clone.c (simd_clone_adjust): Release vector.
6051
6052 2016-05-19  Martin Liska  <mliska@suse.cz>
6053
6054         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6055         an auto_vec instead of re-creating it.
6056
6057 2016-05-19  Martin Liska  <mliska@suse.cz>
6058
6059         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6060         auto_vec instead of vec.
6061
6062 2016-05-19  Martin Liska  <mliska@suse.cz>
6063
6064         * lto-section-in.c (lto_get_section_data): Call
6065         lto_check_version with additional argument.
6066         * lto-streamer.c (lto_check_version): Add new argument.
6067         * lto-streamer.h (lto_check_version): Likewise.
6068
6069 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6070
6071         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6072         Don't add cost of inner memory when handling sign-extended loads.
6073
6074 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6075
6076         PR rtl-optimization/71148
6077         * cse.c (cse_main): Free dominance info.
6078         (rest_of_handle_cse): Don't free dominance info.
6079         (rest_of_handle_cse2): Likewise.
6080         (rest_of_handle_cse_after_global_opts): Likewise.
6081
6082 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6083
6084         PR target/71056
6085         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6086         NULL_TREE early if NEON is not available.  Remove now redundant check
6087         in ARM_CHECK_BUILTIN_MODE.
6088
6089 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
6090
6091         PR sanitizer/64354
6092         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6093         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6094         * doc/cpp.texi: Document new macros.
6095
6096 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
6097
6098         PR tree-optimization/69848
6099         * tree-vect-loop.c (vectorizable_reduction): Don't factor
6100         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6101
6102 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6103
6104         * function.c (thread_prologue_and_epilogue_insn): Move the
6105         "goto epilogue_done" one block later.
6106
6107 2016-05-19  Richard Biener  <rguenther@suse.de>
6108
6109         PR tree-optimization/70729
6110         * passes.def: Move LIM pass before PRE.  Remove no longer
6111         required copyprop and move first DCE out of the loop pipeline.
6112
6113 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
6114
6115         PR driver/69265
6116         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6117         (OBJS-libcommon-target): ...here.
6118         * opts-common.c: Include spellcheck.h.
6119         (cmdline_handle_error): Build a vec of valid options and use it
6120         to suggest provide hints for misspelled arguments.
6121
6122 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6123
6124         PR c++/71100
6125         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6126         lhs if it has TREE_ADDRESSABLE type.
6127
6128 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
6129
6130         PR target/71145
6131         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6132         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6133
6134 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6135
6136         PR ipa/69708
6137         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6138         input for NOP_EXPR pass-through functions.
6139         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6140         aggregate global constant VAR_DECLs in constant jump functions.
6141
6142 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6143
6144         PR ipa/69708
6145         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6146         from TREE_READONLY parameters.
6147
6148 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6149
6150         PR ipa/69708
6151         * cgraph.h (cgraph_indirect_call_info): New field
6152         guaranteed_unmodified.
6153         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6154         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6155         appropriate.
6156         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6157         pass the parameter value to ipa_find_agg_cst_for_param.
6158         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6159         guaranteed_unmodified, store AA results there instead of bailing out
6160         if present.
6161         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6162         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6163         (find_constructor_constant_at_offset): New function.
6164         (ipa_find_agg_cst_from_init): Likewise.
6165         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6166         static initializers of contants, report back through a new paameter
6167         from_global_constant if that was the case.
6168         (try_make_edge_direct_simple_call): Also pass parameter value to
6169         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6170         appropriate.
6171         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6172         (ipa_read_indirect_edge_info): Likewise.
6173         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6174         (ipa_load_from_parm_agg): Likewise.
6175
6176 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
6177
6178         PR rtl-optimization/71150
6179         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6180         check.
6181
6182 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6183
6184         PR target/70915
6185         * config/rs6000/constraints.md (wE constraint): New constraint
6186         for a vector constant that can be loaded with XXSPLTIB.
6187         (wM constraint): New constraint for a vector constant of a 1's.
6188         (wS constraint): New constraint for a vector constant that can be
6189         loaded with XXSPLTIB and a vector sign extend instruction.
6190         * config/rs6000/predicates.md (xxspltib_constant_split): New
6191         predicates for wE/wS constraints.
6192         (xxspltib_constant_nosplit): Likewise.
6193         (easy_vector_constant): Add support for constants that can be
6194         loaded via XXSPLTIB.
6195         (all_ones_constant): New predicate for vector constant with all
6196         1's set.
6197         (splat_input_operand): Add support for ISA 3.0 word splat operations.
6198         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6199         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6200         instruction and possibly with a sign extension.
6201         (output_vec_const_move): Add support for XXSPLTIB. If we are
6202         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6203         instead of XXLXOR/XXLORC.
6204         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6205         operations.
6206         (rs6000_legitimize_reload_address): Likewise.
6207         (rs6000_output_move_128bit): Use output_vec_const_move to emit
6208         constants.
6209         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6210         combine VSX_M and VSX_M2 into one iterator.
6211         (VSX_M2): Likewise.
6212         (VSINT_84): New iterators for loading constants with XXSPLTIB.
6213         (VSINT_842): Likewise.
6214         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6215         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6216         XXSPLTIB instruction.
6217         (xxspltib_<mode>_nosplit): Likewise.
6218         (xxspltib_<mode>_split): New insn to load up constants with
6219         XXSPLTIB and a sign extend instruction.
6220         (vsx_mov<mode>): Replace single move that handled all vector types
6221         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
6222         moves (when -mvsx-timode is in effect) into the main vector
6223         moves.  Eliminate separate moves for <VSr> <VSa>, where the
6224         preferred register class (<VSr>) is listed first, and the
6225         secondary register class (<VSa>) is listed second with a '?' to
6226         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
6227         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6228         that if the register was involved in a slow operation, the
6229         clear/set operation does not wait for the slow operation to
6230         finish.  Adjust the length attributes for 32-bit mode.  Use
6231         rs6000_output_move_128bit and drop the use of the string
6232         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
6233         spacing so that the alternatives and attributes don't generate
6234         long lines, and put things in columns, so that it is easier to
6235         match up the operands and attributes with the insn alternatives.
6236         (vsx_mov<mode>_64bit): Likewise.
6237         (vsx_mov<mode>_32bit): Likewise.
6238         (vsx_movti_64bit): Fold movti into normal vector moves.
6239         (vsx_movti_32bit): Likewise.
6240         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6241         splat instructions.
6242         (vsx_splat_v4si_internal): Likewise.
6243         (vsx_splat_v4sf_internal): Likewise.
6244         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6245         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6246         extend vector elements.
6247         (vsx_sign_extend_hi_<mode>): Likewise.
6248         (vsx_sign_extend_si_v2di): Likewise.
6249         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6250         declaration.
6251         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6252         constraints.  Add trailing period to wL documentation.
6253
6254 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
6255
6256         PR middle-end/71020
6257         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
6258         * tree-dfa.c (replace_abnormal_ssa_names): New function.
6259         * tree-call-cdce.c: Include tree-dfa.h.
6260         (can_guard_call_p): New function, extracted from...
6261         (can_use_internal_fn): ...here.
6262         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
6263         and return void.
6264         (shrink_wrap_one_built_in_call): Likewise.
6265         (use_internal_fn): Likewise.
6266         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
6267         and return void.  Call replace_abnormal_ssa_names.
6268         (pass_call_cdce::execute): Check can_guard_call_p during the
6269         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
6270         will always change something.
6271
6272 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6273
6274         PR ipa/70646
6275         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
6276         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
6277
6278 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6279
6280         PR ipa/70646
6281         * ipa-inline.h (condition): New field size.
6282         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
6283         for comaprison and store it into the new condition.
6284         (evaluate_conditions_for_known_args): Use condition size to check
6285         access sizes for all but CHANGED conditions.
6286         (unmodified_parm_1): New parameter size_p, store access size into it.
6287         (unmodified_parm): Likewise.
6288         (unmodified_parm_or_parm_agg_item): Likewise.
6289         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
6290         (set_cond_stmt_execution_predicate): Extract access sizes and store
6291         them to conditions.
6292         (set_switch_stmt_execution_predicate): Likewise.
6293         (will_be_nonconstant_expr_predicate): Likewise.
6294         (will_be_nonconstant_predicate): Likewise.
6295         (inline_read_section): Stream condition size.
6296         (inline_write_summary): Likewise.
6297
6298 2016-05-18  Richard Biener  <rguenther@suse.de>
6299
6300         * tree-ssa-loop-im.c (determine_max_movement): Properly add
6301         condition cost to PHI cost instead of total_cost.
6302
6303 2016-05-18  Martin Liska  <mliska@suse.cz>
6304
6305         PR fortran/70856
6306         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
6307         merged variables.
6308
6309 2016-05-18  Richard Biener  <rguenther@suse.de>
6310
6311         * lto-streamer.h (LTO_major_version): Bump to 6.
6312
6313 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6314
6315         * function.c (make_split_prologue_seq, make_prologue_seq,
6316         make_epilogue_seq): New functions, factored out from...
6317         (thread_prologue_and_epilogue_insns): Here.
6318
6319 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6320
6321         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6322         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
6323         of before.  Add a comment.
6324
6325 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
6326
6327         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
6328         expression pointer, not pointer to the pointer.
6329
6330 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6331
6332         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
6333         (avx2_pbroadcast<mode>): Add another alternative with v instead
6334         of x constraints in it, using <pbroadcast_evex_isa> isa.
6335         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
6336
6337         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
6338         constraint x instead of v in second alternative, add avx512bw
6339         alternative.
6340
6341         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
6342         constraint x instead of v in second alternative, add avx512bw
6343         alternative.
6344
6345         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
6346         constraint x instead of v in second alternative, add avx512bw
6347         alternative.
6348
6349         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
6350         avx512bw alternative.
6351
6352 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6353
6354         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
6355         array to 128 chars.
6356         (define_insn "*andnottf3"): Ditto.
6357         (define_insn "*<code><mode>3"/any_logic): Ditto.
6358         (define_insn "*<code>tf3"/any_logic): Ditto.
6359         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
6360         operand to block AVX-512VL insn variant emit when it is not enabled.
6361
6362 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6363
6364         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
6365         constraint fot SF mode.
6366
6367 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
6368             Kirill Yukhin  <kirill.yukhin@intel.com>
6369
6370         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
6371         modifiers.
6372         (define_insn "rsqrt14<mode>"): Ditto.
6373         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6374         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6375         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
6376         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6377         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
6378         Ditto.
6379         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
6380         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
6381         * config/i386/i386.c (ix86_print_operand): Expand check for size
6382         override codes for Intel syntax.
6383
6384 2016-05-18  Richard Biener  <rguenther@suse.de>
6385
6386         PR tree-optimization/71168
6387         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
6388         initialization earlier.
6389
6390 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
6391
6392         * config/aarch64/aarch64-simd.md
6393         (aarch64_reduc_plus_internal<mode>): Rename to...
6394         (reduc_plus_scal): ...This, and remove previous implementation.
6395
6396 2016-05-18  Richard Biener  <rguenther@suse.de>
6397
6398         * passes.def: Put late dse and cd_dce in canonical order.
6399
6400 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
6401
6402         * ipa-inline-transform.c (preserve_function_body_p): Look for
6403         first non-thunk clone.
6404         (save_function_body): Save into first non-thunk.
6405         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
6406         up call stmt id.
6407         (lto_output_node): Inline thunks don't need body in every
6408         partition.
6409         * lto-streamer-in.c: Do not fixup thunk clones.
6410         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
6411         thunks.
6412         * tree-inline.c (copy_bb): Be prepared for target node to be new after
6413         folding suceeds.
6414
6415 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
6416
6417         PR middle-end/63586
6418         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
6419         (reassociate_bb): Call transform_add_to_multiply.
6420
6421 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
6422
6423         * config/aarch64/aarch64.c (all_extensions): Removed unused
6424         static variable.
6425
6426 2016-05-17  Nathan Sidwell  <nathan@acm.org>
6427
6428         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
6429         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
6430
6431 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
6432
6433         PR tree-optimization/54579
6434         PR middle-end/55299
6435         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
6436
6437 2016-05-17  Marek Polacek  <polacek@redhat.com>
6438
6439         PR ipa/71146
6440         * tree-inline.c (expand_call_inline): Call
6441         maybe_remove_unused_call_args.
6442
6443 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
6444
6445         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
6446         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
6447         * doc/md.texi (fmin@var{m}3): Likewise.
6448
6449 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6450
6451         * match.pd (X & C): New transformation.
6452
6453 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6454
6455         * match.pd (~X & Y): New transformation.
6456
6457 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6458
6459         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
6460         information for new SSA_NAME.
6461         (simplify_conversion_using_ranges): Get range through get_range_info
6462         instead of get_value_range.
6463
6464 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6465
6466         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
6467         Remove inline assembly.
6468         (vmvn_s16): Likewise.
6469         (vmvn_s32): Likewise.
6470         (vmvn_u8): Likewise.
6471         (vmvn_u16): Likewise.
6472         (vmvn_u32): Likewise.
6473         (vmvnq_s8): Likewise.
6474         (vmvnq_s16): Likewise.
6475         (vmvnq_s32): Likewise.
6476         (vmvnq_u8): Likewise.
6477         (vmvnq_u16): Likewise.
6478         (vmvnq_u32): Likewise.
6479         (vmvn_p8): Likewise.
6480         (vmvnq_p16): Likewise.
6481
6482 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6483
6484         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
6485         Use builtin.
6486         (vmul_n_s16): Likewise.
6487         (vmul_n_s32): Likewise.
6488         (vmul_n_u16): Likewise.
6489         (vmul_n_u32): Likewise.
6490         (vmulq_n_f32): Likewise.
6491         (vmulq_n_f64): Likewise.
6492         (vmulq_n_s16): Likewise.
6493         (vmulq_n_s32): Likewise.
6494         (vmulq_n_u16): Likewise.
6495         (vmulq_n_u32): Likewise.
6496
6497 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6498
6499         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
6500         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
6501
6502 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6503
6504         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
6505         to *aarch64_fma4_elt_from_dup<mode>.
6506         (*aarch64_fnma4_elt_to_128df): Rename to
6507         *aarch64_fnma4_elt_from_dup<mode>.
6508         * config/aarch64/arm_neon.h (vfma_n_f64): New.
6509         (vfms_n_f32): Likewise.
6510         (vfms_n_f64): Likewise.
6511         (vfmsq_n_f32): Likewise.
6512         (vfmsq_n_f64): Likewise.
6513
6514 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
6515
6516         * wide-int.h: Change fixed_wide_int_storage from class to struct.
6517
6518 2016-05-17  Richard Biener  <rguenther@suse.de>
6519
6520         PR tree-optimization/71132
6521         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
6522         Only add control dependences for blocks in the loop.
6523         (build_rdg): Adjust.
6524         (generate_code_for_partition): Return whether loop should
6525         be destroyed and delay that.
6526         (distribute_loop): Likewise.
6527         (pass_loop_distribution::execute): Record loops to be destroyed
6528         and perform delayed destroying of loops.
6529
6530 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6531
6532         PR target/70809
6533         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
6534
6535 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6536
6537         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
6538
6539 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
6540
6541         PR target/71114
6542         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
6543         insertion point for instructions generated by validize_mem.
6544
6545 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6546
6547         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
6548         in brackets.
6549
6550 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6551
6552         * config/aarch64/aarch64.c
6553         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
6554         rather than a macro.
6555
6556 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6557
6558         * doc/invoke.texi (AArch64 Options): Various updates.
6559
6560 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6561
6562         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
6563         into instrumentation thunks.
6564         * cif-code.def (CIF_CHKP): New.
6565
6566 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
6567
6568         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
6569
6570 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6571
6572         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
6573         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
6574
6575 2016-05-16  Marek Polacek  <polacek@redhat.com>
6576
6577         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
6578         commentary.
6579
6580 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6581
6582         PR hsa/70857
6583         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
6584         the outlined kernel function.
6585
6586 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
6587
6588         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
6589         (ISA_HAS_DLSA): Ditto.
6590
6591 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6592
6593         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
6594
6595 2016-05-16  Nathan Sidwell  <nathan@acm.org>
6596
6597         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
6598         (nvptx_name_replacement): Restore.  Add comment.
6599         (write_fn_proto, write_fn_proto_from_insn,
6600         nvptx_output_call_insn): Restore
6601         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
6602
6603 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6604
6605         * config/aarch64/aarch64.md
6606         (add<mode>3_compareC_cconly_imm): Remove use of %w.
6607         (add<mode>3_compareC_imm): Likewise.
6608         (<optab>si3_uxtw): Split into register and immediate variants.
6609         (andsi3_compare0_uxtw): Likewise.
6610         (and<mode>3_compare0): Likewise.
6611         (and<mode>3nr_compare0): Likewise.
6612         (stack_protect_test_<mode>): Don't use %x for memory operands.
6613
6614 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6615
6616         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
6617
6618 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6619
6620         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6621         Split integer shifts into shift_reg and bfm.
6622         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6623         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6624         (ror<mode>3_insn): Likewise.
6625         (<optab>si3_insn_uxtw): Likewise.
6626         (<optab><mode>3_insn): Change to rotate_imm.
6627         (extr<mode>5_insn_alt): Likewise.
6628         (extrsi5_insn_uxtw): Likewise.
6629         (extrsi5_insn_uxtw_alt): Likewise.
6630
6631 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6632
6633         * doc/tm.texi: Regenerate.
6634         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
6635         (TARGET_INVALID_RETURN_TYPE): Remove.
6636         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
6637         TARGET_INVALID_RETURN_TYPE.
6638         * target.def (invalid_parameter_type): Remove.
6639         (invalid_return_type): Remove.
6640
6641 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6642
6643         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
6644         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
6645         calls from thunk.
6646         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
6647         gimple body.
6648         (preserve_function_body_p): No need to preserve function body
6649         * cif-codes.def (CIF_THUNK): Remove.
6650         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
6651
6652 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6653
6654         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
6655
6656 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6657
6658         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
6659         for thunks.
6660
6661 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6662
6663         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
6664         (inline_small_functions): Do not look for function symbol when
6665         resetting caches.
6666
6667 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6668
6669         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6670         of inline thunks
6671
6672 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6673             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6674             Jiong Wang  <jiong.wang@arm.com>
6675
6676         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6677         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6678         Define __ARM_FP16_ARGS when appropriate.
6679         * config/arm/arm.c (arm_invalid_parameter_type): Remove
6680         declaration.
6681         (arm_invalid_return_type): Likewise.
6682         (TARGET_INVALID_PARAMETER_TYPE): Remove.
6683         (TARGET_INVALID_RETURN_TYPE): Remove.
6684         (aapcs_vfp_sub_candidate): Allow HFmode.
6685         (aapcs_vfp_allocate): Add comment.  Support HFmode.
6686         (aapcs_vfp_allocate_return_reg): Likewise.
6687         (struct aapcs_cp_arg_layout): Slightly reword comments for
6688         is_return_candidate and allocate_return_reg.
6689         (output_mov_vfp): Update assert.
6690         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6691         condition.
6692         (arm_invalid_parameter_type): Remove.
6693         (amr_invalid_return_type): Remove.
6694         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6695         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6696         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6697
6698 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6699
6700         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6701         * config/aarch64/arch64-protos.h
6702         (aarch64_legitimize_reload_address): Remove.
6703         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6704         Remove.
6705
6706 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6707
6708         * configure.ac: Add ACX_NONCANONICAL_HOST.
6709         * configure: Regenerate.
6710         * Makefile.in: Set host_noncanonical.
6711
6712 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
6713
6714         PR target/71097
6715         * config/i386/i386.md (*movtf_internal): Before register allocation,
6716         do not allow FP constants for CM_MEDIUM memory model, allow only
6717         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6718         (*movxf_internal): Ditto.
6719         (*movdf_internal): Ditto.
6720         (*movsf_internal): Ditto.
6721
6722 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6723
6724         PR rtl-optimization/67483
6725         * combine.c (make_compound_operation): Don't call extract_left_shift
6726         with negative shift amounts.
6727
6728 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
6729
6730         PR bootstrap/71071
6731         * fold-const.c (fold_checksum_tree): Allow modification
6732         of TYPE_ALIAS_SET during folding.
6733
6734         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6735         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6736         (ix86_split_to_parts): Likewise.  Fix up formatting.
6737
6738 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6739
6740         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6741         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6742         printf format.
6743
6744 2016-05-13  Nathan Sidwell  <nathan@acm.org>
6745
6746         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6747         (nvptx_name_replacement): Delete.
6748         (write_fn_proto, write_fn_proto_from_insn,
6749         nvptx_output_call_insn): Remove nvptx_name_replacement call.
6750         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6751         * langhooks.c (add_builtin_funcction_common): Call
6752         targetm.mangle_decl_assembler_name.
6753
6754         * config/nvptx/nvptx.c (write_fn_proto): Handle
6755         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6756
6757 2016-05-13  Martin Liska  <mliska@suse.cz>
6758
6759         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6760         and PRIu64 in printf format.
6761
6762 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6763
6764         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6765         comment.
6766
6767 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6768
6769         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6770         Change --param max-completely-peeled-times to
6771         --param max-completely-peel-times in dump file printing.
6772
6773 2016-05-13  Richard Biener  <rguenther@suse.de>
6774
6775         PR tree-optimization/42587
6776         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
6777         (find_bswap_or_nop_1): Likewise.
6778         (bswap_replace): Likewise.
6779
6780 2016-05-13  Martin Liska  <mliska@suse.cz>
6781
6782         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
6783         Initialize a variable with default value.
6784
6785 2016-05-13  Martin Liska  <mliska@suse.cz>
6786
6787         * doc/invoke.texi: Enhance explanation of error recovery
6788         of sanitizers.
6789
6790 2016-05-13  Martin Liska  <mliska@suse.cz>
6791
6792         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
6793         (struct cost_pair): Change inv_expr_id (int) to inv_expr
6794         (iv_inv_expr_ent *).
6795         (struct iv_inv_expr_ent): Comment struct fields.
6796         (sort_iv_inv_expr_ent): New function.
6797         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
6798         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
6799         a hash_map between iv_inv_expr_ent and number of usages.
6800         (niter_for_exit): Fix coding style.
6801         (tree_ssa_iv_optimize_init): Use renamed variable.
6802         (determine_base_object): Fix coding style.
6803         (alloc_iv): Likewise.
6804         (find_interesting_uses_outside): Likewise.
6805         (add_candidate_1): Likewise.
6806         (add_standard_iv_candidates): Likewise.
6807         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
6808         (prepare_decl_rtl): Fix coding style.
6809         (get_address_cost): Likewise.
6810         (get_shiftadd_cost): Likewise.
6811         (force_expr_to_var_cost): Likewise.
6812         (compare_aff_trees): Likewise.
6813         (get_expr_id): Restructure the function.
6814         (get_loop_invariant_expr_id): Renamed to
6815         get_loop_invariant_expr.
6816         (get_computation_cost_at): Replace usage of inv_expr_id with
6817         inv_expr.
6818         (get_computation_cost): Likewise.
6819         (determine_group_iv_cost_generic): Likewise.
6820         (determine_group_iv_cost_address): Likewise.
6821         (iv_period): Fix coding style.
6822         (iv_elimination_compare_lt): Likewise.
6823         (may_eliminate_iv): Likewise.
6824         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6825         inv_expr.
6826         (determine_group_iv_costs): Dump invariant expressions.
6827         (iv_ca_recount_cost): Use the newly added hash_map.
6828         (iv_ca_set_remove_invariants): Fix coding style.
6829         (iv_ca_set_add_invariants): Fix coding style.
6830         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6831         invariants.
6832         (iv_ca_set_cp): Likewise.
6833         (iv_ca_new): Initialize the newly added hash_map and remove
6834         initialization of fields.
6835         (iv_ca_free): Delete the hash_map.
6836         (iv_ca_dump): Dump invariant expressions.
6837         (iv_ca_extend): Fix coding style.
6838         (try_add_cand_for): Likewise.
6839         (create_new_ivs): Dump information about # of avg iterations and
6840         # of used invariant expressions.
6841         (rewrite_use_compare): Fix coding style.
6842         (free_loop_data): Set default value for max_inv_expr_id.
6843
6844 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6845
6846         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6847         returned value cse_cfg_altered computation.
6848         (rest_of_handle_cse2): Likewise.
6849         (rest_of_handle_cse_after_global_opts): Likewise.
6850
6851 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6852
6853         PR target/53440
6854         * config/arm/arm.c (arm32_output_mi_thunk): New.
6855         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6856         to split Thumb1 vs TARGET_32BIT functionality.
6857         (arm_thumb1_mi_thunk): New.
6858
6859 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6860
6861         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6862         to true.
6863
6864 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6865
6866         PR target/71080
6867         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6868
6869 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6870
6871         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6872         (expand_builtin_trap): Emit a regular call.
6873         (set_builtin_user_assembler_name): Remove obsolete cases.
6874         * dse.c (scan_insn): Adjust.
6875         * except.c: Include calls.h.
6876         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6877         emit a regular call to setjmp.
6878         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6879         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6880         (emit_block_move_via_libcall): Delete.
6881         (block_move_fn): Delete.
6882         (init_block_move_fn): Likewise.
6883         (emit_block_move_libcall_fn): Likewise.
6884         (emit_block_op_via_libcall): New function.
6885         (set_storage_via_libcall): Tidy up and use memset builtin.
6886         (block_clear_fn): Delete.
6887         (init_block_clear_fn): Likewise.
6888         (clear_storage_libcall_fn): Likewise.
6889         (expand_assignment): Call emit_block_move_via_libcall.
6890         Do not include gt-expr.h.
6891         * expr.h (emit_block_op_via_libcall): Declare.
6892         (emit_block_copy_via_libcall): New inline function.
6893         (emit_block_move_via_libcall): Likewise.
6894         (emit_block_comp_via_libcall): Likewise.
6895         (block_clear_fn): Delete.
6896         (init_block_move_fn): Likewise.
6897         (init_block_clear_fn): Likewise.
6898         (emit_block_move_via_libcall): Likewise.
6899         (set_storage_via_libcall): Add default parameter value.
6900         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6901         (abort_libfunc): Delete.
6902         (memcpy_libfunc): Likewise.
6903         (memmove_libfunc): Likewise.
6904         (memcmp_libfunc): Likewise.
6905         (memset_libfunc): Likewise.
6906         (setbits_libfunc): Likewise.
6907         (setjmp_libfunc): Likewise.
6908         (longjmp_libfunc): Likewise.
6909         (profile_function_entry_libfunc): Likewise.
6910         (profile_function_exit_libfunc): Likewise.
6911         (gcov_flush_libfunc): Likewise.
6912         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6913         and DECL_VISIBILITY on the declaration.
6914         (init_optabs): Do not initialize obsolete libfuncs.
6915         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6916         * tree-core.h (ECF_RET1): Define.
6917         (ECF_TM_PURE): Adjust.
6918         (ECF_TM_BUILTIN): Likewise.
6919         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6920         (build_common_builtin_nodes): Initialize abort builtin.
6921         Add ECF_RET1 on memcpy, memmove and memset builtins.
6922         Pass final flags for alloca and alloca_with_align builtins.
6923         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6924         obsolete builtins.
6925         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6926         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6927         set_storage_via_libcall and call emit_block_copy_via_libcall.
6928
6929 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6930
6931         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6932         DImode before it is passed to ix86_output_call_operand.
6933         (*call_value_got_x32): Ditto for operand 1.
6934
6935 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6936
6937         PR rtl-optimization/70904
6938         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6939         reload for wide mode.
6940
6941 2016-05-12  Marek Polacek  <polacek@redhat.com>
6942
6943         PR c/70756
6944         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6945         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6946         * langhooks.h (incomplete_type_error): Likewise.
6947         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6948         parameter, pass it down to incomplete_type_error.
6949         * tree.h (size_in_bytes): New inline overload.
6950         (size_in_bytes_loc): Renamed from size_in_bytes.
6951
6952 2016-05-12  Richard Biener  <rguenther@suse.de>
6953
6954         PR tree-optimization/71059
6955         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6956         nary before looking up or entering the expression into the VN
6957         hashes.
6958         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6959         Make sure to re-use NARYs without result as inserted by
6960         phi-translation.
6961
6962 2016-05-12  Richard Biener  <rguenther@suse.de>
6963
6964         PR tree-optimization/71062
6965         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6966         field.
6967         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6968         vars_contains_restrict if the var is a restrict tag.
6969         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
6970         do not disambiguate pointers against it.
6971         (dump_points_to_solution): Re-structure and adjust for new
6972         vars_contains_restrict flag.
6973         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
6974
6975 2016-05-12  Martin Liska  <mliska@suse.cz>
6976
6977         * doc/invoke.texi: Explain connection between
6978         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
6979
6980 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6981
6982         PR tree-optimization/71006
6983         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6984         consider COND_EXPR as a mask producer.
6985
6986 2016-05-12  Marek Polacek  <polacek@redhat.com>
6987
6988         PR driver/71063
6989         * opts.c (common_handle_option): Detect missing argument for --help^.
6990
6991 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6992
6993         PR target/70830
6994         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
6995         when popping the PC and within an interrupt handler routine.
6996         Add missing tab to output of "ldmfd".
6997         (output_return_instruction): Output LDMFD with SP update rather
6998         than POP when returning from interrupt handler.
6999
7000 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
7001
7002         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7003         TARGET_64BIT && TARGET_AVX512DQ.
7004         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7005         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7006         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7007         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7008         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7009         (*vec_extractv4si_zext): Add avx512dq alternative.
7010         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7011         use v instead of x constraint in other alternatives where possible.
7012
7013         * config/i386/sse.md (sse2_loadld): Use v instead of x
7014         constraint in alternatives 0,1,4.
7015
7016         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7017         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7018         v constraints instead of x and <pinsr_evex_isa> isa attribute.
7019
7020         PR target/71019
7021         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7022         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7023         is not emitted unless TARGET_AVX512BW.
7024         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7025         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7026         for the result operand.
7027
7028         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7029         constraint instead of x in avx alternatives.  Use maybe_evex instead
7030         of vex prefix.
7031
7032         * config/i386/constraints.md (Yv): New constraint.
7033         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7034         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7035         * config/i386/i386.md (avx512fvecmode): New mode attr.
7036         (*pushtf): Use v constraint instead of x.
7037         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
7038         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7039         (*absneg<mode>2): Use Yv constraint instead of x constraint.
7040         (*absnegtf2_sse): Likewise.
7041         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7042         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7043         avx512f alternatives.
7044         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7045
7046 2016-05-12  Richard Biener  <rguenther@suse.de>
7047
7048         PR tree-optimization/71060
7049         * tree-data-ref.c (initialize_data_dependence_relation): Do not
7050         require exact match of DR_BASE_OBJECT but only matching address and
7051         type.
7052
7053 2016-05-12  Richard Biener  <rguenther@suse.de>
7054
7055         PR tree-optimization/70986
7056         * cfganal.c: Include cfgloop.h.
7057         (dfs_find_deadend): Prefer to take edges exiting loops.
7058
7059 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7060
7061         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7062         compile and run time.
7063
7064 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
7065
7066         PR c/43651
7067         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7068
7069 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
7070
7071         * config/i386/i386.c (legitimize_pic_address): Use
7072         copy_to_suggested_reg instead of gen_movsi.
7073
7074 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7075
7076         * config/rs6000/predicates.md (quad_memory_operand): Move most of
7077         the code into quad_address_p and call it to share code with
7078         vsx_quad_dform_memory_operand.
7079         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7080         d-form support.
7081         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7082         bit instead of being a separate word.  Split -mpower9-dform into
7083         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7084         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7085         for the register class supporting 128-bit quad word memory offsets.
7086         (mode_supports_vsx_dform_quad): Helper function to return if the
7087         register class uses quad word memory offsets.
7088         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7089         (rs6000_debug_reg_global): Always print if we are using LRA or not.
7090         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7091         instructions are enabled, set up the appropriate addr_masks for
7092         128-bit types.
7093         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7094         -mpower9-dform-scalar, instead of -mpower9-dform.
7095         (rs6000_option_override_internal): Split -mpower9-dform into two
7096         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
7097         -mpower9-dform switch sets or clears both.  If we are not using
7098         the LRA register allocator, do not enable -mpower9-dform-vector by
7099         default.  If we are using LRA, enable -mpower9-dform-vector and
7100         -mvsx-timode if it is appropriate.  Issue a warning if either
7101         -mpower9-dform-vector or -mvsx-timode are explicitly used without
7102         enabling LRA.
7103         (quad_address_offset_p): New helper function to return if the
7104         offset is legal for quad word memory instructions.
7105         (quad_address_p): New function to determin if GPR or vector
7106         register quad word memory addresses are legal.
7107         (mem_operand_gpr): Validate quad word address offsets.
7108         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7109         d-form (register + offset) instructions.
7110         (offsettable_ok_by_alignment): Likewise.
7111         (rs6000_legitimate_offset_address_p): Likewise.
7112         (legitimate_lo_sum_address_p): Likewise.
7113         (rs6000_legitimize_address): Likewise.
7114         (rs6000_legitimize_reload_address): Add more debug statements for
7115         -mdebug=addr.
7116         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7117         d-form instructions.
7118         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7119         d-form instructions.  Distinguish different cases in debug
7120         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7121         d-form instructions.
7122         (rs6000_preferred_reload_class): Likewise.
7123         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7124         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
7125         of the ISA 2.06 indexed memory instructions.
7126         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7127         use them to save/restore the saved vector registers instead of
7128         using Altivec instructions.
7129         (rs6000_emit_epilogue): Likewise.
7130         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7131         (rs6000_opt_masks): Split -mpower9-dform into
7132         -mpower9-dform-scalar and -mpower9-dform-vector.
7133         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7134         was not selected.
7135         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7136         ISA 3.0 vector indexed memory instructions, and fold the code into
7137         the normal mov<mode> patterns.
7138         (p9_vecstore_<mode>): Likewise.
7139         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7140         instructions.
7141         (vsx_movti_64bit): Likewise.
7142         (vsx_movti_32bit): Likewise.
7143         * config/rs6000/constraints.md (wO constraint): New constraint for
7144         ISA 3.0 vector d-form support.
7145         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7146         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
7147         include -mpower9-dform-vector until we switch over to LRA.
7148         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7149         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7150         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7151         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7152         for -mpower9-dform and -mlra.
7153         * doc/md.texi (wO constraint): Document wO constraint.
7154
7155 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
7156
7157         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7158         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7159         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7160         Move handling of non-insn arguments inline into the sole user:
7161         (output_trans_func): ...here.
7162         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7163         in emitted function prototype.
7164         (output_internal_insn_latency_func): Ditto.  Simplify.
7165         (output_internal_maximal_insn_latency_func): Ditto.  Delete
7166         always-unused argument.
7167         (output_insn_latency_func): Ditto.
7168         (output_maximal_insn_latency_func): Ditto.
7169
7170 2016-05-11  Richard Biener  <rguenther@suse.de>
7171
7172         PR tree-optimization/71055
7173         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7174         sth with precision not equal to access size verify we don't chop
7175         off bits.
7176
7177 2016-05-11  Richard Biener  <rguenther@suse.de>
7178
7179         PR debug/71057
7180         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7181         (dwarf2out_finish): Move retry_incomplete_types call ...
7182         (dwarf2out_early_finish): ... here.
7183
7184 2016-05-11  Richard Biener  <rguenther@suse.de>
7185
7186         PR middle-end/71002
7187         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7188         if the langhook insists on it.
7189         * fold-const.c (make_bit_field_ref): Add arg for the original
7190         reference and preserve its alias-set.
7191         (decode_field_reference): Take exp by reference and adjust it
7192         to the original memory reference.
7193         (optimize_bit_field_compare): Adjust callers.
7194         (fold_truth_andor_1): Likewise.
7195         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7196
7197 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
7198
7199         PR middle-end/70807
7200         * cfgrtl.h (delete_insn_and_edges): Now return bool.
7201         * cfgrtl.c (delete_insn_and_edges): Likewise.
7202         * config/i386/i386.c (convert_scalars_to_vector): Remove
7203         redundant code.
7204         * cse.c (cse_insn): Compute cse_cfg_altered.
7205         (delete_trivially_dead_insns): Likewise.
7206         (cse_cc_succs): Likewise.
7207         (rest_of_handle_cse): Free dominance info if required.
7208         (rest_of_handle_cse2): Likewise.
7209         (rest_of_handle_cse_after_global_opts): Likewise.
7210
7211 2016-05-11  Alan Modra  <amodra@gmail.com>
7212
7213         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7214         abi_v4_pass_in_fpr): New functions.
7215         (rs6000_function_arg_boundary): Exclude complex IBM long double
7216         from 64-bit alignment when ABI_V4.
7217         (rs6000_function_arg, rs6000_function_arg_advance_1,
7218         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7219
7220 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
7221
7222         PR rtl-optimization/71028
7223         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7224         jump with just a return in the fallthrough block if the branch
7225         block contains just a return as well.
7226
7227 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
7228
7229         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7230         * match.pd ((X & Y) ^ Y): ... this.
7231         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7232         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7233
7234 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7235
7236         * read-md.c (require_char_ws): New function.
7237         (read_string): Simplify using require_char_ws.
7238         (handle_constants): Likewise.
7239         (handle_enum): Likewise.
7240         (handle_file): Likewise.
7241         * read-md.h (require_char_ws): New declaration.
7242         * read-rtl.c (read_conditions): Simplify using require_char_ws.
7243         (read_mapping): Likewise.
7244         (read_rtx_code): Likewise.
7245         (read_nested_rtx): Likewise.
7246
7247 2016-05-10  James Norris  <jnorris@codesourcery.com>
7248
7249         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7250         if offloading is enabled and -fopenacc or -fopenmp is specified.
7251         (CRTOFFLOADEND): Likewise.
7252         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7253         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7254
7255 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
7256
7257         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
7258         gotoff_operand code paths.  Use copy_to_suggested_regs and
7259         expand_simple_binop where appropriate.  Cleanup.
7260
7261 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7262
7263         PR target/70799
7264         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
7265         integer constants.
7266         (dimode_scalar_chain::vector_const_cost): New.
7267         (dimode_scalar_chain::compute_convert_gain): Handle constants.
7268         (dimode_scalar_chain::convert_op): Likewise.
7269         (dimode_scalar_chain::convert_insn): Likewise.
7270
7271 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7272
7273         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
7274         unary operation, not a binary one.
7275
7276 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7277
7278         PR middle-end/70877
7279         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
7280         calls with type casted fndecl.
7281
7282 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7283
7284         PR tree-optimization/70786
7285         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
7286         * calls.c (initialize_argument_information): Bind bounds
7287         with corresponding args passed by reference.
7288
7289 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
7290
7291         PR target/70927
7292         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
7293         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
7294         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
7295         accordingly.
7296
7297 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7298
7299         PR target/70963
7300         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
7301         code for a zero scale factor.
7302         (vsx_xvcvdpuxds_scale): Likewise.
7303
7304 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7305
7306         * diagnostic-show-locus.c (layout::layout): Call show_ruler
7307         if show_ruler_p was set on the context.
7308         (layout::show_ruler): New method.
7309         * diagnostic.h (struct diagnostic_context): Add field
7310         "show_ruler_p".
7311
7312 2016-05-10  Richard Biener  <rguenther@suse.de>
7313
7314         PR tree-optimization/71039
7315         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
7316         (chk_uses): New function.
7317         (propagate_with_phi): Verify we can safely replicate the lhs of an
7318         aggregate assignment on all incoming edges.
7319
7320 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
7321
7322         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
7323         Forward declare.
7324         (rx_atomic_sequence): New class.
7325         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
7326         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
7327         non-inline.
7328         (rx_atomic_sequence::rx_atomic_sequence,
7329         rx_atomic_sequence::~rx_atomic_sequence): New functions.
7330         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
7331         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
7332         CTRLREG_INTB): New constants.
7333         (FETCHOP): New code iterator.
7334         (fethcop_name, fetchop_name2): New iterator code attributes.
7335         (QIHI): New mode iterator.
7336         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
7337         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
7338         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
7339
7340 2016-05-10  Martin Liska  <mliska@suse.cz>
7341
7342         * tree-inline.c (remap_dependence_clique): Do not remap
7343         debugging statements.
7344
7345 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7346
7347         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
7348         ("*fixuns_truncdfdi2_z13")
7349         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
7350         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
7351         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
7352
7353 2016-05-10  Richard Biener  <rguenther@suse.de>
7354
7355         PR tree-optimization/70497
7356         PR tree-optimization/28367
7357         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
7358         split out from ...
7359         (visit_reference_op_load): ... here.
7360         (vn_reference_lookup_3): Use it to handle subreg-like accesses
7361         with simplified BIT_FIELD_REFs.
7362         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
7363         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
7364         correctly.
7365
7366 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7367
7368         * dwarf2out.c (add_abstract_origin_attribute): Adjust
7369         documentation comment.  For BLOCK nodes, add a
7370         DW_AT_abstract_origin attribute that points to the DIE generated
7371         for the origin BLOCK.
7372         (gen_lexical_block_die): Call add_abstract_origin_attribute for
7373         blocks from inlined functions.
7374
7375 2016-05-10  Alan Modra  <amodra@gmail.com>
7376
7377         PR target/70947
7378         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
7379         regrename modifying insns saving lr before __morestack call.
7380         * config/rs6000/rs6000.md (split_stack_return): Similarly for
7381         insns restoring lr after __morestack call.
7382
7383 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
7384
7385         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
7386         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
7387         expanders.
7388         * config/i386/sse.md (vec_interleave_high<mode>,
7389         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
7390         <avx512>_vpermt2var<mode>3_maskz): Likewise.
7391
7392 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7393
7394         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
7395         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
7396         parallel reassociation for power8 and forward.
7397
7398 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
7399
7400         * config/i386/i386.md (absneg splitters with general regs): Use
7401         general_reg_operand predicate.
7402         (btsq peephole2): Use x86_64_immediate_operand to check if new
7403         value is suitable for immediate operand.  Generate emitted insn
7404         using RTL expressions.
7405         (btcq peephole2): Ditto.
7406         (btrq peephole2): Ditto.  Generate correct immediate operand
7407         for AND masking.
7408
7409 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
7410
7411         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
7412         bitpos.
7413
7414 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
7415
7416         * tree-affine.c (wide_int_constant_multiple_p): Add missing
7417         pointer dereference.
7418
7419 2016-05-09  Richard Biener  <rguenther@suse.de>
7420
7421         PR tree-optimization/70985
7422         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
7423         op0 isn't a gimple register.
7424
7425 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
7426
7427         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
7428         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
7429         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
7430         (i6400_fpu_mult): New cpu units.
7431         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
7432         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
7433         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
7434         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
7435         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
7436         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
7437         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
7438         (i6400_msa_long_float4, i6400_msa_long_float5)
7439         (i6400_msa_long_float8, i6400_msa_fdiv_df)
7440         (i6400_msa_fdiv_sf): New reservations.
7441         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
7442         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
7443         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
7444         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
7445         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
7446         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
7447         (msa_short_cmp, msa_short_float2, msa_short_logic3)
7448         (msa_short_store4, msa_long_load, msa_short_store)
7449         (msa_long_logic, msa_long_float2, msa_long_float4)
7450         (msa_long_float5, msa_long_float8, msa_long_mult)
7451         (msa_long_fdiv, msa_long_div): New reservations.
7452
7453 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
7454             Sameera Deshpande  <sameera.deshpande@imgtec.com>
7455             Matthew Fortune  <matthew.fortune@imgtec.com>
7456             Graham Stott  <graham.stott@imgtec.com>
7457             Chao-ying Fu  <chao-ying.fu@imgtec.com>
7458
7459         * config.gcc: Add MSA header file for mips*-*-* target.
7460         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
7461         (Ubv8i, Urv8):  New constraints.
7462         * config/mips/mips-ftypes.def: Add function types for MSA
7463         builtins.
7464         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
7465         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
7466         * config/mips/mips-msa.md: New file.
7467         * config/mips/mips-protos.h
7468         (mips_split_128bit_const_insns): New prototype.
7469         (mips_msa_idiv_insns): Likewise.
7470         (mips_split_128bit_move): Likewise.
7471         (mips_split_128bit_move_p): Likewise.
7472         (mips_split_msa_copy_d): Likewise.
7473         (mips_split_msa_insert_d): Likewise.
7474         (mips_split_msa_fill_d): Likewise.
7475         (mips_expand_msa_branch): Likewise.
7476         (mips_const_vector_same_val_p): Likewise.
7477         (mips_const_vector_same_bytes_p): Likewise.
7478         (mips_const_vector_same_int_p): Likewise.
7479         (mips_const_vector_shuffle_set_p): Likewise.
7480         (mips_const_vector_bitimm_set_p): Likewise.
7481         (mips_const_vector_bitimm_clr_p): Likewise.
7482         (mips_msa_vec_parallel_const_half): Likewise.
7483         (mips_msa_output_division): Likewise.
7484         (mips_ldst_scaled_shift): Likewise.
7485         (mips_expand_vec_cond_expr): Likewise.
7486         * config/mips/mips.c (enum mips_builtin_type): Add
7487         MIPS_BUILTIN_MSA_TEST_BRANCH.
7488         (mips_gen_const_int_vector_shuffle): New prototype.
7489         (mips_const_vector_bitimm_set_p): New function.
7490         (mips_const_vector_bitimm_clr_p): Likewise.
7491         (mips_const_vector_same_val_p): Likewise.
7492         (mips_const_vector_same_bytes_p): Likewise.
7493         (mips_const_vector_same_int_p): Likewise.
7494         (mips_const_vector_shuffle_set_p): Likewise.
7495         (mips_symbol_insns): Forbid loading symbols via immediate for
7496         MSA.
7497         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
7498         stores.
7499         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
7500         MSA.
7501         (mips_lx_address_p): Add support load indexed address for MSA.
7502         (mips_address_insns): Add calculation of instructions needed for
7503         stores and loads for MSA.
7504         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
7505         CONST_VECTOR for MSA and let it fall through.
7506         (mips_ldst_scaled_shift): New function.
7507         (mips_subword_at_byte): Likewise.
7508         (mips_msa_idiv_insns): Likewise.
7509         (mips_legitimize_move): Validate MSA moves.
7510         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
7511         calculation of costs for MSA division.
7512         (mips_split_move_p): Check if MSA moves need splitting.
7513         (mips_split_move): Split MSA moves if necessary.
7514         (mips_split_128bit_move_p): New function.
7515         (mips_split_128bit_move): Likewise.
7516         (mips_split_msa_copy_d): Likewise.
7517         (mips_split_msa_insert_d): Likewise.
7518         (mips_split_msa_fill_d): Likewise.
7519         (mips_output_move): Handle MSA moves.
7520         (mips_expand_msa_branch): New function.
7521         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
7522         Reinstate 'y' modifier.
7523         (mips_file_start): Add MSA .gnu_attribute.
7524         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
7525         FPRs.
7526         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
7527         (mips_class_max_nregs): Add register size for MSA supported mode.
7528         (mips_cannot_change_mode_class): Allow conversion between MSA
7529         vector modes and TImode.
7530         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
7531         instruction.
7532         (mips_secondary_reload_class): Force MSA loads/stores via memory.
7533         (mips_preferred_simd_mode): Add preffered modes for MSA.
7534         (mips_vector_mode_supported_p): Add MSA supported modes.
7535         (mips_autovectorize_vector_sizes): New function.
7536         (mips_msa_output_division): Likewise.
7537         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
7538         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
7539         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
7540         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
7541         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
7542         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
7543         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
7544         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
7545         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
7546         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
7547         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
7548         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
7549         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
7550         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
7551         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
7552         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
7553         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
7554         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
7555         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
7556         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
7557         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
7558         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
7559         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
7560         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
7561         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
7562         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
7563         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
7564         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
7565         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
7566         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
7567         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
7568         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
7569         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
7570         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
7571         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
7572         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
7573         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
7574         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
7575         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
7576         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
7577         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
7578         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
7579         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
7580         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
7581         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7582         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7583         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7584         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7585         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7586         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7587         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7588         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7589         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
7590         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
7591         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
7592         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
7593         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
7594         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
7595         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
7596         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
7597         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
7598         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
7599         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
7600         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
7601         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
7602         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
7603         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
7604         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
7605         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
7606         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
7607         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
7608         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
7609         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
7610         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
7611         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
7612         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
7613         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
7614         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
7615         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
7616         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
7617         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
7618         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
7619         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
7620         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
7621         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
7622         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
7623         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
7624         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
7625         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
7626         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
7627         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
7628         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
7629         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
7630         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
7631         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
7632         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
7633         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
7634         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
7635         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
7636         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
7637         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
7638         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
7639         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
7640         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
7641         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
7642         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
7643         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
7644         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
7645         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
7646         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
7647         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
7648         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
7649         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
7650         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
7651         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
7652         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
7653         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
7654         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
7655         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
7656         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
7657         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
7658         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
7659         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
7660         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
7661         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
7662         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
7663         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
7664         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
7665         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
7666         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7667         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7668         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7669         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7670         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7671         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7672         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7673         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7674         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7675         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7676         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7677         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7678         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7679         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7680         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7681         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7682         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7683         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7684         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7685         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7686         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7687         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7688         move_v builtins.
7689         (mips_get_builtin_decl_index): New array.
7690         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7691         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7692         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7693         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7694         (mips_init_builtins): Initialize mips_get_builtin_decl_index
7695         array.
7696         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7697         hook.
7698         (mips_expand_builtin_insn): Prepare operands for
7699         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7700         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7701         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7702         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7703         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7704         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7705         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7706         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7707         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7708         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7709         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7710         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7711         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7712         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7713         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7714         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7715         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7716         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7717         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7718         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7719         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7720         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7721         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7722         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7723         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7724         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7725         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7726         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7727         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7728         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7729         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7730         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7731         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7732         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7733         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7734         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7735         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7736         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7737         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7738         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7739         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7740         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7741         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7742         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7743         These are set implicitly and an error is reported if overridden.
7744         (mips_expand_builtin_msa_test_branch): New function.
7745         (mips_expand_msa_shuffle): Likewise.
7746         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7747         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7748         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7749         (mips_expand_vec_unpack): Add support for MSA.
7750         (mips_expand_vector_init): Likewise.
7751         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7752         instead of const0_rtx.
7753         (mips_msa_vec_parallel_const_half): New function.
7754         (mips_gen_const_int_vector): Likewise.
7755         (mips_gen_const_int_vector_shuffle): Likewise.
7756         (mips_expand_msa_cmp): Likewise.
7757         (mips_expand_vec_cond_expr): Likewise.
7758         * config/mips/mips.h
7759         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7760         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7761         specified.
7762         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7763         (ISA_HAS_MSA): New macro.
7764         (UNITS_PER_MSA_REG): Likewise.
7765         (BITS_PER_MSA_REG): Likewise.
7766         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7767         (MSA_REG_FIRST): New macro.
7768         (MSA_REG_LAST): Likewise.
7769         (MSA_REG_NUM): Likewise.
7770         (MSA_REG_P): Likewise.
7771         (MSA_REG_RTX_P): Likewise.
7772         (MSA_SUPPORTED_MODE_P): Likewise.
7773         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7774         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7775         * config/mips/mips.md: Include mips-msa.md.
7776         (alu_type): Add simd_add.
7777         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
7778         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
7779         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
7780         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
7781         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
7782         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
7783         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
7784         simd_move, simd_load, simd_store.  Choose "multi" for moves
7785         for "qword_mode".
7786         (qword_mode): New attribute.
7787         (insn_count): Add instruction count for quad moves.
7788         Increase the count for MIPS SIMD division.
7789         (UNITMODE): Add UNITMODEs for vector types.
7790         (addsub): New code iterator.
7791         * config/mips/mips.opt (mmsa): New option.
7792         * config/mips/msa.h: New file.
7793         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
7794         specified.
7795         * config/mips/mti-linux.h: Likewise.
7796         * config/mips/predicates.md
7797         (const_msa_branch_operand): New constraint.
7798         (const_uimm3_operand): Likewise.
7799         (const_uimm4_operand): Likewise.
7800         (const_uimm5_operand): Likewise.
7801         (const_uimm8_operand): Likewise.
7802         (const_imm5_operand): Likewise.
7803         (aq10b_operand): Likewise.
7804         (aq10h_operand): Likewise.
7805         (aq10w_operand): Likewise.
7806         (aq10d_operand): Likewise.
7807         (const_m1_operand): Likewise.
7808         (reg_or_m1_operand): Likewise.
7809         (const_exp_2_operand): Likewise.
7810         (const_exp_4_operand): Likewise.
7811         (const_exp_8_operand): Likewise.
7812         (const_exp_16_operand): Likewise.
7813         (const_vector_same_val_operand): Likewise.
7814         (const_vector_same_simm5_operand): Likewise.
7815         (const_vector_same_uimm5_operand): Likewise.
7816         (const_vector_same_uimm6_operand): Likewise.
7817         (const_vector_same_uimm8_operand): Likewise.
7818         (par_const_vector_shf_set_operand): Likewise.
7819         (reg_or_vector_same_val_operand): Likewise.
7820         (reg_or_vector_same_simm5_operand): Likewise.
7821         (reg_or_vector_same_uimm6_operand): Likewise.
7822         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7823         section.
7824         * doc/invoke.texi (-mmsa): Document new option.
7825
7826 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7827
7828         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7829         * configure: Regenerate.
7830         * config.in: Regenerate.
7831         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7832         on -fvtable-verify.
7833         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7834         (ENDFILE_VTV_SPEC): Define.
7835
7836 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7837
7838         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7839         registers in all interrupt handlers if necessary.
7840         (rl78_option_override): Add warning.
7841         (MUST_SAVE_MDUC_REGISTERS): New macro.
7842         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7843         * config/rl78/rl78.c (check_mduc_usage): New function.
7844         (mduc_regs): New structure to hold MDUC register data.
7845         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7846         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7847         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7848         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7849         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7850         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7851
7852 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7853
7854         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7855         (tree-ssa-loop-niter.h): Ditto.
7856         (idx_within_array_bound, ref_within_array_bound): New functions.
7857         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7858         Factor out check on writable base object to ...
7859         (base_object_writable): ... here.
7860
7861 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7862
7863         * config/arm/arm.md (probe_stack): Add modes to set source
7864         and destination.
7865
7866 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7867
7868         * regrename.c (base_reg_class_for_rename): New static function.
7869         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7870
7871 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7872
7873         * cgraph.c (thunk_adjust): Export.
7874         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7875         * cgraphunit.c (thunk_adjust): Export.
7876         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7877         thunks.
7878         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7879         inlinable.
7880         * tree-inline.c (expand_call_inline): Expand thunks inline.
7881
7882 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7883
7884         PR target/70998
7885         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7886         (*sse2_vd_cvtss2sd): Ditto.
7887         * config/i386/i386.md
7888         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7889         Generate *sse2_vd_cvtsd2ss pattern.
7890         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7891         Generate *sse2_vd_cvtss2sd pattern.
7892
7893 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7894
7895         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7896         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7897         users.
7898
7899 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7900
7901         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7902         * config/sh/sh.c: Define and declare variables on first use throughout
7903         the file.
7904         (current_function_interrupt): Change to bool type.
7905         (frame_insn): Rename to emit_frame_insn and update users.
7906         (push_regs): Use bool for 'interrupt_handler' argument.
7907         (save_schedule_s): Remove.
7908         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7909         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7910         targetm.asm_out.unaligned_op.di.
7911         (gen_far_branch): Remove redundant forward declaration.
7912         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7913         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7914         (sh_set_return_address, sh_function_ok_for_sibcall,
7915         scavenge_reg): Update comments.
7916         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7917         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7918         (sh_attr_renesas_p): Remove unnecessary parentheses.
7919         (branch_dest): Simplify.
7920         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7921         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7922         (CUMULATIVE_ARGS): Change macro to typedef.
7923         (current_function_interrupt): Change to bool type.
7924         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7925         Surround with __cplusplus ifdef.
7926         (sh_compare_op0, sh_compare_op1): Remove.
7927         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7928
7929 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7930
7931         * config/arm/arm.md: (arch): Add neon.
7932         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7933         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7934         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7935         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7936         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7937         (thumb2_movdf_vfp): Likewise.
7938
7939 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7942         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7943         (*andqi_1): Add preferred_for_speed attribute to disparage
7944         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7945         (*<code>qi_1): Ditto.
7946         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7947         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7948         (*ashlqi3_1): Ditto.
7949         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7950         Add preferred_for_size attribute to disparage alternative 0 and
7951         preferred_for_speed attribute to disparage alternative 1 for
7952         TARGET_PARTIAL_REG_STALL targets.
7953
7954 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7955
7956         PR tree-optimization/70956
7957         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7958         def.
7959
7960 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7961
7962         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
7963         * config/sh/sh.c (sh_cbranch_distance): Implement it.
7964         * config/sh/sh.md (branch_zero): Remove define_attr.
7965         (define_delay): Disable delay slot if branch distance is one insn.
7966
7967 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7968
7969         * config/i386/i386.md (LEAMODE): New mode attribute.
7970         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
7971         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
7972         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
7973         operand 2 predicate.
7974         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
7975         (*lea<mode>_general_3): Ditto.
7976         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
7977
7978 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * genmddump.c (main): Convert argv from char ** to const char **.
7981
7982 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7983
7984         * coretypes.h (OVERRIDE): New macro.
7985         (FINAL): New macro.
7986
7987 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7988
7989         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
7990         allow coalescing if the types are compatible.
7991
7992 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7993
7994         * pass_manager.h (pass_manager::register_pass_name): New method.
7995         (pass_manager::get_pass_by_name): New method.
7996         (pass_manager::create_pass_tab): New method.
7997         (pass_manager::m_name_to_pass_map): New field.
7998         * passes.c (name_to_pass_map): Delete global in favor of field
7999         "m_name_to_pass_map" of pass_manager.
8000         (register_pass_name): Rename from a function to...
8001         (pass_manager::register_pass_name): ...this method, updating
8002         for renaming of global "name_to_pass_map" to field
8003         "m_name_to_pass_map".
8004         (create_pass_tab): Rename from a function to...
8005         (pass_manager::create_pass_tab): ...this method, updating
8006         for renaming of global "name_to_pass_map" to field.
8007         (get_pass_by_name): Rename from a function to...
8008         (pass_manager::get_pass_by_name): ...this method.
8009         (enable_disable_pass): Convert use of get_pass_by_name to
8010         a method call, locating the pass_manager singleton.
8011
8012 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8013
8014         * genattr-common.c (main): Convert argv from char ** to const char **.
8015         * genattr.c (main): Likewise.
8016         * genattrtab.c (main): Likewise.
8017         * genautomata.c (initiate_automaton_gen): Likewise.
8018         (main): Likewise.
8019         * gencodes.c (main): Likewise.
8020         * genconditions.c (main): Likewise.
8021         * genconfig.c (main): Likewise.
8022         * genconstants.c (main): Likewise.
8023         * genemit.c (main): Likewise.
8024         * genenums.c (main): Likewise.
8025         * genextract.c (main): Likewise.
8026         * genflags.c (main): Likewise.
8027         * genmddeps.c (main): Likewise.
8028         * genopinit.c (main): Likewise.
8029         * genoutput.c (main): Likewise.
8030         * genpeep.c (main): Likewise.
8031         * genpreds.c (main): Likewise.
8032         * genrecog.c (main): Likewise.
8033         * gensupport.c (init_rtx_reader_args_cb): Likewise.
8034         (init_rtx_reader_args): Likewise.
8035         * gensupport.h (init_rtx_reader_args_cb): Likewise.
8036         (init_rtx_reader_args): Likewise.
8037         * gentarget-def.c (main): Likewise.
8038         * read-md.c (read_md_files): Likewise.
8039         * read-md.h (read_md_files): Likewise.
8040
8041 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8042
8043         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8044         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8045         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8046         Remove unused predicate.
8047         (register_and_not_fp_reg_operand): Ditto.
8048
8049 2016-05-06  Martin Liska  <mliska@suse.cz>
8050
8051         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8052         instead of vec as the vector is local to the function.
8053
8054 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8055
8056         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8057         avx512bw alternative.
8058
8059         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8060         before the ashr<mode>3 pattern.
8061
8062         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8063         v instead of x in vex or maybe_vex alternatives, use
8064         maybe_evex instead of vex in prefix.
8065
8066         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8067         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8068         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8069         in vex or maybe_vex alternatives, use maybe_evex instead of vex
8070         in prefix.
8071
8072         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8073         v instead of x in vex or maybe_vex alternatives, use
8074         maybe_evex instead of vex in prefix.
8075
8076         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8077         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8078         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8079         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8080         alternatives, use maybe_evex instead of vex in prefix.
8081
8082         * config/i386/sse.md (vec_interleave_lowv4sf,
8083         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8084         v instead of x in vex or maybe_vex alternatives, use
8085         maybe_evex instead of vex in prefix.
8086
8087         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8088         v instead of x in vex or maybe_vex alternatives, use
8089         maybe_evex instead of vex in prefix.
8090
8091         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8092         v constraint instead of x.
8093
8094 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
8095
8096         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8097         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8098         equality first.
8099
8100 2016-05-06  Richard Biener  <rguenther@suse.de>
8101
8102         PR tree-optimization/70948
8103         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8104         Properly clobber all fields of va_list for __builtin_va_start.
8105
8106 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8107
8108         PR debug/70935
8109         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8110         loop latch destination.
8111
8112 2016-05-06  Martin Liska  <mliska@suse.cz>
8113
8114         * tree-ssa-uninit.c: Apply manual changes
8115         to the GNU coding style.
8116         (prune_uninit_phi_opnds): Rename from
8117         prune_uninit_phi_opnds_in_unrealizable_paths.
8118
8119 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8120
8121         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8122         mspace): Remove deprecated options.
8123         * doc/invoke.texi (SH options): Remove -mspace.
8124
8125 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8126
8127         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8128
8129 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8130
8131         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8132         corresponding combine split pattern.
8133
8134 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8135
8136         PR target/58219
8137         * config/sh/predicates.md (long_displacement_mem_operand): New.
8138         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8139         Add movi20, movi20s alternatives.  Adjust length attribute for
8140         alternatives.
8141         (movsi_ie): Allow for any FPU.  Adjust length attribute for
8142         alternatives.
8143         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
8144         attribute for alternatives.
8145         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8146         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8147         length attribute for alternatives.
8148
8149 2016-05-06  Richard Biener  <rguenther@suse.de>
8150
8151         PR tree-optimization/70960
8152         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8153
8154 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8155
8156         PR target/52933
8157         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8158         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8159
8160 2016-05-06  Marek Polacek  <polacek@redhat.com>
8161
8162         PR sanitizer/70875
8163         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8164
8165 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8166
8167         PR target/54089
8168         * config/sh/sh.md (*rotcr): Add another variant.
8169
8170 2016-05-06  Richard Biener  <rguenther@suse.de>
8171
8172         PR middle-end/70931
8173         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8174
8175 2016-05-06  Richard Biener  <rguenther@suse.de>
8176
8177         PR middle-end/70941
8178         * fold-const.c (split_tree): Always convert to the original type
8179         before negating.
8180
8181 2016-05-06  Richard Biener  <rguenther@suse.de>
8182
8183         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8184         (fwprop_addr): Likewise.
8185
8186 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8187
8188         PR target/70873
8189         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8190         New prototype.
8191         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8192         * config/i386/i386.md (push mem splitter): Use find_constant_src in
8193         the splitter condition.
8194         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8195         the splitter condition.
8196         (FP float_extend load splitter): Ditto.
8197
8198 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
8199
8200         * config/i386/i386.md (peehole2 patterns): Change true_regnum
8201         to REGNO in all peephole2 patterns.
8202         (post-reload splitters): Change true_regnum to REGNO in
8203         post-reload splitters.
8204         (zero_extend splitters): Use general_reg_operand and
8205         nonimmediate_gr_operand predicates.
8206
8207 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
8208
8209         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8210         v constraint instead of x.
8211
8212 2016-05-05  Alan Modra  <amodra@gmail.com>
8213
8214         PR target/68662
8215         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8216         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
8217         TARGET_NO_FP_IN_TOC for -mrelocatable.
8218         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8219         TARGET_RELOCATABLE test.
8220         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8221         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8222         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8223         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8224         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8225         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8226         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8227         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8228         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8229         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8230         Likewise.
8231         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8232         (rs6000_stack_info): Likewise.
8233         (rs6000_elf_asm_out_constructor): Likewise.
8234         (rs6000_elf_asm_out_destructor): Likewise.
8235         (rs6000_elf_declare_function_name): Likewise.
8236         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8237         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8238         Don't define.
8239
8240 2016-05-05  Alan Modra  <amodra@gmail.com>
8241
8242         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8243
8244 2016-05-05  Alan Modra  <amodra@gmail.com>
8245
8246         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8247         out-of-line gpr restore for one or two regs if that would add
8248         a save of lr.
8249
8250 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
8251
8252         PR target/70873
8253         * config/i386/i386.md
8254         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8255         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
8256         as operand 0 predicate.
8257         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
8258         Ditto.
8259         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
8260         Ditto.  Emit the pattern using RTX.
8261
8262         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
8263         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
8264         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
8265         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
8266         Ditto.
8267         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
8268         sse_reg_operand as operand 0 predicate.
8269
8270         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
8271         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
8272         instead of gen_rtx_REG.
8273         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
8274         Ditto.
8275
8276 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8277
8278         * function.c (emit_use_return_register_into_block): Delete.
8279         (gen_return_pattern): Delete.
8280         (emit_return_into_block): Delete.
8281         (active_insn_between): Delete.
8282         (convert_jumps_to_returns): Delete.
8283         (emit_return_for_exit): Delete.
8284         (thread_prologue_and_epilogue_insns): Delete all code dealing with
8285         simple_return for shrink-wrapped blocks.
8286         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
8287         end of blocks that need one.
8288         (get_unconverted_simple_return): Delete.
8289         (convert_to_simple_return): Delete.
8290         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
8291         (convert_to_simple_return): Ditto.
8292
8293 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8294
8295         * cfgcleanup.c (bb_is_just_return): New function.
8296         (try_optimize_cfg): Simplify jumps to return, branches to return,
8297         and branches around return.
8298
8299 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8300
8301         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
8302         branch to a return.
8303
8304 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8305
8306         PR c++/70906
8307         PR c++/70933
8308         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
8309         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
8310         assert flags & OEP_HASH_CHECK, instead of asserting it
8311         never happens.  Handle TARGET_EXPR.
8312         * fold-const.c (operand_equal_p): For hash verification,
8313         or in OEP_HASH_CHECK into flags.
8314
8315 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8316
8317         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
8318         comment.
8319         (compute_samebase_partition_bases): Fix typo.
8320
8321 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8322
8323         * config/i386/sse.md (vec_interleave_highv8sf,
8324         vec_interleave_lowv8sf, vec_interleave_highv4df,
8325         vec_interleave_lowv4df): Remove constraints from expanders.
8326
8327         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
8328
8329 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8330
8331         * tree-inline.c (expand_call_inline): Fix path dealing with
8332         making lhs of call statement undefined.
8333
8334 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8335
8336         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8337         Check availability on NODE, too.
8338         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
8339         (cgraph_node::call_for_symbol_and_aliases): Likewise.
8340         (varpool_node::call_for_symbol_and_aliase): Likewise.
8341         * ipa-pure-const.c (add_new_function): Analyze all bodies.
8342         (propagate_pure_const): Propagate across interposable functions, too.
8343         (skip_function_for_local_pure_const): Do not skip interposable bodies
8344         with aliases.
8345         (pass_local_pure_const::execute): Update.
8346
8347 2016-05-04  Marek Polacek  <polacek@redhat.com>
8348
8349         * doc/invoke.texi: Document -Wdangling-else.
8350
8351 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8352
8353         * config.gcc: Error out when conflicting multilib is detected.  Do not
8354         loop over multilibs since no combination is legal.
8355
8356 2016-05-04  Alan Modra  <amodra@gmail.com>
8357
8358         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
8359         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
8360         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8361         Align .toc.
8362
8363 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
8364
8365         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
8366         Clean up p5600 comments.
8367
8368 2016-05-04  Richard Biener  <rguenther@suse.de>
8369
8370         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
8371         constructor simplifications.
8372         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
8373
8374 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
8375
8376         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
8377         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
8378         result.set_rtx is null instead of aborting.
8379         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
8380         Always enable.
8381         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
8382         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
8383         *mov<mode>_store_postinc): New patterns.
8384
8385 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
8386
8387         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
8388         as commutative.  Check both conversions are NOP.
8389         ((A & B) OP (C & B)): Remove.
8390
8391 2016-05-04  Alan Modra  <amodra@gmail.com>
8392
8393         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
8394
8395 2016-05-04  Alan Modra  <amodra@gmail.com>
8396
8397         PR target/70866
8398         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
8399         when cr2,3,4 are all fixed regs.
8400
8401 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
8402
8403         PR rtl-optimization/57193
8404         * opts.c (default_options_table): Revert OPT_frename_registers change.
8405         * doc/invoke.texi (-frename-registers, -O2): Likewise.
8406
8407 2016-05-03  Martin Sebor  <msebor@redhat.com>
8408
8409         PR c++/66561
8410         * builtins.c (fold_builtin_FILE): New function.
8411         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
8412         (fold_builtin_0): Call them.
8413         * gimplify.c (gimplify_call_expr): Remove the handling of
8414         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
8415
8416         PR c++/66561
8417         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
8418         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
8419         constants.
8420
8421         PR c++/66639
8422         * doc/extend.texi (Function Names as Strings): Update __func__,
8423         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
8424         constants.
8425
8426 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8427             Richard Biener  <rguenther@suse.de>
8428
8429         PR tree-optimization/70916
8430         * tree-if-conv.c: Include cfganal.h.
8431         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
8432         and remove_fake_exit_edges around the optimization pass.
8433
8434 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
8435
8436         * cgraph.c (symbol_table::create_edge): Set inline_failed.
8437         (cgraph_edge::make_direct): Likewise.
8438         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
8439         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
8440         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
8441         (CIF_THUNK): New code.
8442         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
8443         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
8444         (compute_inline_parameters): Set inline_failed for thunks.
8445         (inline_analyze_function): Cleanup.
8446         * ipa-inline.c (can_inline_edge_p): Do not deal with
8447         call_stmt_cannot_inline_p.
8448         (can_early_inline_edge_p): Likewise.
8449         (early_inliner): Initialize inline_failed.
8450         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
8451
8452 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
8453
8454         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
8455         from nonimm_ssenomem_operand.
8456         (nonimm_ssenomem_operand): New predicate.
8457         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
8458         as operand 0 predicate.
8459         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
8460         Disable unsupported alternatives using "enabled" attribute.
8461         Use register_ssemem_operand as operand 0 predicate.
8462         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
8463
8464 2016-05-03  Marek Polacek  <polacek@redhat.com>
8465
8466         PR c/70859
8467         * input.c (expansion_point_location): New function.
8468         * input.h (expansion_point_location): Declare.
8469
8470 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8471
8472         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
8473         occurence with frame_offset_ ones.
8474
8475 2016-05-03  Alan Modra  <amodra@gmail.com>
8476
8477         PR rtl-optimization/70890
8478         * ira.c (combine_and_move_insns): When moving def_insn, remove
8479         equivs on use_insn.
8480
8481 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8482
8483         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
8484         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
8485         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
8486         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
8487
8488 2016-05-03  Alan Modra  <amodra@gmail.com>
8489
8490         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
8491         for SAVE_MULTIPLE/STORE_MULTIPLE.
8492
8493 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8494
8495         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
8496         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
8497
8498 2016-05-03  Richard Biener  <rguenther@suse.de>
8499
8500         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
8501         default true.
8502         (gimplify_arg): Likewise.
8503         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
8504         re-writing the result to a decl if required.
8505         (internal_get_tmp_var): Add allow_ssa parameter
8506         and override into_ssa with it.
8507         (get_formal_tmp_var): Adjust.
8508         (get_initialized_tmp_var): Add allow_ssa parameter.
8509         (gimplify_arg): Add allow_ssa parameter and avoid generating
8510         SSA names for the result false.
8511         (gimplify_call_expr): If the call may return twice do not
8512         gimplify parameters into SSA.
8513         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
8514         (gimplify_modify_expr): Adjust assert.  For noreturn calls
8515         with a SSA name LHS adjust its def.
8516         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
8517         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
8518         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
8519         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
8520         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
8521         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
8522         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
8523         (optimize_target_teams): Do not allow SSA names for clause operands.
8524         (gimplify_expr): Likewise for where we mark the result addressable.
8525         * passes.def (pass_init_datastructures): Remove.
8526         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
8527         (rewrite_stmt): Likewise.
8528         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
8529         (replace_locals_op): Replace SSA names.
8530         (copy_gimple_seq_and_replace_locals): Init src_cfun.
8531         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
8532         * cgraph.c (release_function_body): Free CFG annotations only
8533         when we have a CFG.  Simplify.
8534         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8535         force_gimple_operand instead of get_initialized_tmp_var.
8536         * tree-pass.h (make_pass_init_datastructures): Remove.
8537         * tree-ssa.c (execute_init_datastructures): Remove.
8538         (pass_data_init_datastructures): Likewise.
8539         (class pass_init_datastructures): Likewise.
8540         (make_pass_init_datastructures): Likewise.
8541         * omp-low.c (create_omp_child_function): Init SSA data structures.
8542         (grid_expand_target_grid_body): Likewise.
8543         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
8544         name before adding it to names_to_release.
8545         (remove_bb): Always release SSA defs.
8546         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
8547         before dereferencing it.
8548         * cgraphunit.c (init_lowered_empty_function): Always
8549         int SSA data structures.
8550         * tree-ssanames.c (release_defs): Remove assert that we are in
8551         SSA form.
8552         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
8553
8554 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8555             Uros Bizjak  <ubizjak@gmail.com>
8556
8557         PR rtl-optimization/70467
8558         * config/i386/predicates.md (x86_64_hilo_int_operand,
8559         x86_64_hilo_general_operand): New predicates.
8560         * config/i386/constraints.md (Wd): New constraint.
8561         * config/i386/i386.md (mode attr di): Use Wd instead of e.
8562         (general_hilo_operand): New mode attr.
8563         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
8564         instead of <general_operand>.
8565         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
8566         x86_64_hilo_general_operand instead of <general_operand>.
8567
8568 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8569
8570         PR tree-optimization/70916
8571         * tree-if-conv.c (constant_or_ssa_name): Removed.
8572         (fold_build_cond_expr): Use is_gimple_val instead of
8573         constant_or_ssa_name.
8574
8575         PR tree-optimization/70916
8576         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
8577         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
8578
8579         PR target/49244
8580         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
8581         (optimize_atomic_bit_test_and): New function.
8582         (pass_fold_builtins::execute): Use it.
8583         * optabs.def (atomic_bit_test_and_set_optab,
8584         atomic_bit_test_and_complement_optab,
8585         atomic_bit_test_and_reset_optab): New optabs.
8586         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
8587         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
8588         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
8589         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
8590         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
8591         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
8592         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
8593         * doc/md.texi (atomic_bit_test_and_set@var{mode},
8594         atomic_bit_test_and_complement@var{mode},
8595         atomic_bit_test_and_reset@var{mode}): Document.
8596         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
8597         atomic_bit_test_and_complement<mode>,
8598         atomic_bit_test_and_reset<mode>): New expanders.
8599         (atomic_bit_test_and_set<mode>_1,
8600         atomic_bit_test_and_complement<mode>_1,
8601         atomic_bit_test_and_reset<mode>_1): New insns.
8602
8603 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
8604
8605         PR rtl-optimization/70687
8606         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
8607         instead of unsigned HOST_WIDE_INT.
8608
8609 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
8610
8611         PR rtl-optimization/44281
8612         * hard-reg-set.h (struct target_hard_regs): New field
8613         x_fixed_nonglobal_reg_set.
8614         (fixed_nonglobal_reg_set): New macro.
8615         * reginfo.c (init_reg_sets_1): Initialize it.
8616         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
8617         of fixed_reg_set.
8618         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
8619
8620 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8621
8622         PR tree-optimization/56541
8623         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
8624         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
8625         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
8626         (any_complicated_phi): new static variable.
8627         (aggressive_if_conv): delete.
8628         (if_convertible_phi_p): support phis with more than two arguments.
8629         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
8630         critical pred edges.
8631         (ifcvt_split_critical_edges): support phis with more than two
8632         arguments by checking new parameter.  only split critical edges
8633         if needed.
8634         (tree_if_conversion): handle simd pragma marked loop using new
8635         local variable aggressive_if_conv.  check any_complicated_phi.
8636
8637 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8638
8639         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
8640         before using it.
8641
8642 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8643
8644         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
8645         cbase.
8646
8647 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
8648
8649         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
8650         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
8651         define_insn_and_split.
8652         (mulsi3_i): New define_insn_and_split.
8653         (mulsi3_call): Convert to define_insn.
8654         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
8655         Remove constraints.
8656
8657 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8658
8659         * machmode.h (mode_complex): Add support to give the complex mode
8660         for a given mode.
8661         (GET_MODE_COMPLEX_MODE): Likewise.
8662         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
8663         stored by build_complex_type and gfc_build_complex_type instead of
8664         trying to figure out the appropriate mode based on the size. Raise
8665         an assertion error, if the type was not set.
8666         * genmodes.c (struct mode_data): Add field for the complex type of
8667         the given type.
8668         (blank_mode): Likewise.
8669         (make_complex_modes): Remember the complex mode created in the
8670         base type.
8671         (emit_mode_complex): Write out the mode_complex array to map a
8672         type mode to the complex version.
8673         (emit_insn_modes_c): Likewise.
8674         * tree.c (build_complex_type): Set the complex type to use before
8675         calling layout_type.
8676         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8677         support for __float128 complex datatypes.
8678         (rs6000_hard_regno_mode_ok): Likewise.
8679         (rs6000_setup_reg_addr_masks): Likewise.
8680         (rs6000_complex_function_value): Likewise.
8681         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8682         __float128 and __ibm128 complex.
8683         (FLOAT128_IBM_P): Likewise.
8684         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8685         * doc/extend.texi (Additional Floating Types): Document that
8686         -mfloat128 must be used to enable __float128.  Document complex
8687         __float128 and __ibm128 support.
8688
8689 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8690
8691         PR target/49244
8692         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8693         char/short arguments promoted to int because of promote_prototypes.
8694
8695 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8696
8697         * config/i386/predicates.md (register_ssemem_operand): New predicate.
8698         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8699         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8700         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
8701         alternatives using "enabled" attribute.  Use register_ssemem_operand
8702         as operand 1 predicate.
8703         (*cmpi<unord>xf_i387): Split XFmode pattern from
8704         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8705         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8706         *absneg<mode>2_i387.  Disable unsupported alternatives using
8707         "enabled" attribute.
8708         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8709
8710 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8711
8712         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8713         marker.
8714         (oacc_loop_process): Check mask for loop termination.
8715
8716 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8717
8718         * cif-code.def (CIF_THUNK): Add.
8719         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8720         accidental change.
8721
8722 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8723
8724         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8725         (dump_inline_summary): Dump it.
8726         (fp_expression_p): New predicate.
8727         (estimate_function_body_sizes): Use it.
8728         (inline_merge_summary): Merge fp_expressions.
8729         (inline_read_section): Read fp_expressions.
8730         (inline_write_summary): Write fp_expressions.
8731         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8732         codegen boundary if either caller or callee is !fp_expressions.
8733         * ipa-inline.h (inline_summary): Add fp_expressions.
8734         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8735         to fp_expressions be sure the fp generation flags are updated.
8736
8737 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8738
8739         PR rtl-optimization/70467
8740         * cse.c (cse_insn): Handle no-op MEM moves after folding.
8741
8742         PR rtl-optimization/70467
8743         * ipa-pure-const.c (check_call): Handle internal calls even in
8744         ipa mode like in local mode.
8745
8746 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8747
8748         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8749
8750 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8751
8752         * match.pd (X u< X, X u> X): New transformations.
8753
8754 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8755
8756         * flag-types.h (enum warn_strict_overflow_code): Move ...
8757         * coretypes.h: ... here.
8758         * fold-const.h (fold_overflow_warning): Declare.
8759         * fold-const.c (fold_overflow_warning): Make non-static.
8760         (fold_comparison): Move the transformation of X +- C1 CMP C2
8761         into X CMP C2 -+ C1 ...
8762         * match.pd: ... here.
8763         * gimple-fold.c (fold_stmt_1): Protect with
8764         fold_defer_overflow_warnings.
8765
8766 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8767
8768         * omp-low.c (struct oacc_loop): Add 'inner' field.
8769         (new_oacc_loop_raw): Initialize it to zero.
8770         (oacc_loop_fixed_partitions): Initialize it.
8771         (oacc_loop_auto_partitions): Partition outermost loop to outermost
8772         available partitioning.
8773
8774 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8775
8776         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
8777         register_operand.
8778         (umulsidi3): Likewise.
8779         (indirect_jump): Fix jump instruction assembly patterns.
8780
8781 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
8782
8783         PR target/70860
8784         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
8785         (nvptx_function_value): Assert non-NULL cfun.
8786
8787 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8788
8789         PR rtl-optimization/70886
8790         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
8791
8792         * cselib.h (rtx_equal_for_cselib_1): Declare.
8793         (rtx_equal_for_cselib_p: New inline function.
8794         * cselib.c (rtx_equal_for_cselib_p): Delete.
8795         (rtx_equal_for_cselib_1): Make public.
8796
8797 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8798
8799         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
8800         (register_mixssei387nonimm_operand): Remove predicate.
8801         * config/i386/i386.md (*fop_<mode>_comm): Merge from
8802         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
8803         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
8804         for TARGET_MIX_SSE_I387 alternatives.
8805         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
8806         Disable unsupported alternatives using "enabled" attribute.  Use
8807         nonimm_ssenomem_operand as operand 1 predicate.  Also check
8808         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
8809
8810 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8811
8812         * tree.c (cst_and_fits_in_hwi): Simplify.
8813
8814 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8815
8816         * tree.h (wi::to_wide): New function.
8817         * expr.c (expand_expr_real_1): Use wi::to_wide.
8818         * fold-const.c (int_const_binop_1): Likewise.
8819         (extract_muldiv_1): Likewise.
8820
8821 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8822
8823         * wide-int.h: Update offset_int and widest_int documentation.
8824         (WI_SIGNED_SHIFT_RESULT): New macro.
8825         (wi::binary_shift): Define signed_shift_result_type for
8826         shifts on offset_int- and widest_int-like types.
8827         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8828         * tree.h (int_bit_position): Use shift operators instead of wi::
8829          shifts.
8830         * alias.c (adjust_offset_for_component_ref): Likewise.
8831         * expr.c (get_inner_reference): Likewise.
8832         * fold-const.c (fold_comparison): Likewise.
8833         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8834         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8835         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8836         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8837         (stmt_kills_ref_p): Likewise.
8838         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8839         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8840         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8841         (ao_ref_init_from_vn_reference): Likewise.
8842
8843 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8844
8845         * wide-int.h: Update offset_int and widest_int documentation.
8846         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8847         (wi::binary_traits): Allow ordered comparisons between offset_int and
8848         offset_int, between widest_int and widest_int, and between either
8849         of these types and basic C types.
8850         (operator <, <=, >, >=): Define for the same combinations.
8851         * tree.h (tree_int_cst_lt): Use comparison operators instead
8852         of wi:: comparisons.
8853         (tree_int_cst_le): Likewise.
8854         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8855         (fold_nonarray_ctor_reference): Likewise.
8856         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8857         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8858         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8859         * tree-sra.c (completely_scalarize): Likewise.
8860         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8861         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8862         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8863         (check_for_binary_op_overflow): Likewise.
8864         (search_for_addr_array): Likewise.
8865         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8866
8867 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8868
8869         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8870         (arc_save_restore): Likewise.
8871         (arc_dwarf_register_span): Likewise.
8872         (arc_output_pic_addr_const): Initialize suffix variable.
8873
8874 2016-05-02  Martin Liska  <mliska@suse.cz>
8875
8876         * symbol-summary.h (function_summary::function_summary):
8877         Remove checking assert for all cgraph nodes.
8878         (function_summary::get): Check summary_uid.
8879         (symtab_insertion): Check summary_uid.
8880
8881 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8882
8883         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8884         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8885         bmaskn instruction.
8886         (arc_dwarf_register_span): Remove enum keyword.
8887         (compact_memory_operand_p): New function.
8888         * config/arc/arc.h (reg_class): Add code density register classes.
8889         (REG_CLASS_NAMES): Likewise.
8890         (REG_CLASS_CONTENTS): Likewise.
8891         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8892         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8893         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8894         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8895         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8896         constraints.
8897         (h, Rcd, Rsd, Rzd): New register constraints.
8898         (T): Use compact_memory_operand_p function.
8899         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8900
8901 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8902
8903         * config/sh/sh.md (*negnegt, *movtt): Remove.
8904
8905 2016-05-02  Marek Polacek  <polacek@redhat.com>
8906             Tom de Vries  <tom@codesourcery.com>
8907
8908         PR tree-optimization/70700
8909         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8910         bigger than FIRST_REF_NODE.
8911
8912 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8913
8914         PR target/52898
8915         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8916         TARGET_CMPEQDI_T.
8917         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8918         function is used when pseudos can be created.
8919         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8920         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8921         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8922         define_expand.  Allow it only when pseudos can be created.
8923         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8924
8925 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8926
8927         * config/i386/constraints.md (BC): Only allow -1 operands.
8928         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8929         Add "enabled" attribute.  Update XI mode attribute calculation.
8930         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8931         (*movoi_internal_avx): Update XI mode attribute calculation.
8932         (*movti_internal): Ditto.
8933
8934 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8935
8936         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8937         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8938
8939 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8940
8941         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8942         statement on instruction code.  Remove trailing spaces.
8943         (altivec_expand_stv_builtin): Likewise.
8944
8945 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8946
8947         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8948         (TARGET_FPU_DOUBLE): Simplify.
8949         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8950         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8951         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8952         with 'TARGET_FPU_DOUBLE'.
8953         * config/sh/sh.md: Likewise.
8954
8955 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8956
8957         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8958         SH_DIV_STR_FOR_SIZE): Remove.
8959         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
8960         SH_DIV_STR_FOR_SIZE): Remove.
8961
8962 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8963
8964         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
8965         logical_reg_operand): Delete.
8966         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
8967         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
8968         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
8969         match_operand and match_test.
8970         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
8971         variables on their first use.  Return bool values.
8972         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
8973         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
8974         arith_reg_operand for input operand.  Remove empty constraints.
8975         (xorsi3): Delete.
8976         (*xorsi3_compact): Rename to xorsi3.
8977         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
8978         (*zero_extend<mode>si2_disp_mem): Update comment.
8979         (mov_nop): Delete.
8980
8981 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8982
8983         * config/sh/t-sh: Remove SH5 support.
8984         * config.gcc: Likewise.
8985         * configure: Likewise.
8986
8987 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8988
8989         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
8990
8991 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8992
8993         * config/sh/sh.c (register_sh_passes, sh_option_override,
8994         sh_print_operand, prepare_move_operands,
8995         sh_can_follow_jump): Remove TARGET_SH1 checks.
8996         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
8997         PROMOTE_MODE): Likewise.
8998         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
8999         movdi): Likewise.
9000
9001 2016-04-30  Alan Modra  <amodra@gmail.com>
9002
9003         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9004         restoring when fixed_reg_p, but allow out-of-line or stmw save.
9005         Check for user regs later to avoid unnecessary looping over regs.
9006         Merge user reg check with non-saved reg check.  Don't force
9007         inline VR restore when static chain used.
9008         (rs6000_frame_related): Omit eh_frame info for user regs when
9009         saving.
9010         (fixed_regs_p): Delete.
9011
9012 2016-04-30  Alan Modra  <amodra@gmail.com>
9013
9014         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9015         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
9016         Update all uses.
9017
9018 2016-04-30  Alan Modra  <amodra@gmail.com>
9019
9020         PR target/69645
9021         * config/rs6000/rs6000.c (fixed_reg_p): New function.
9022         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
9023         Update all uses.
9024
9025 2016-04-30  Alan Modra  <amodra@gmail.com>
9026
9027         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9028         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
9029         flag_pic test for Darwin.
9030
9031 2016-04-30  Alan Modra  <amodra@gmail.com>
9032
9033         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9034         throw_calls_crossed.
9035         (REG_FREQ_CALLS_CROSSED): Delete.
9036         (REG_N_THROWING_CALLS_CROSSED): Delete.
9037         * regstat.c (regstat_bb_compute_ri): Don't calculate
9038         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9039         (dump_reg_info): Don't print call cross frequency.
9040         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9041         and REG_N_THROWING_CALLS_CROSSED.
9042
9043 2016-04-30  Alan Modra  <amodra@gmail.com>
9044
9045         * regs.h (struct reg_info_t): Delete live_length.
9046         (REG_LIVE_LENGTH): Delete macro.
9047         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9048         local_live, local_processed and local_live_last_luid params.
9049         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
9050         Formatting fixes.
9051         (regstat_compute_ri): Adjust for above.  Don't set
9052         REG_LIVE_LENGTH.
9053         (dump_reg_info): Don't print live length.
9054         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9055         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
9056         Localize loop_depth var.
9057
9058 2016-04-30  Alan Modra  <amodra@gmail.com>
9059
9060         * ira.c (enum valid_equiv): New.
9061         (validate_equiv_mem): Return enum.
9062         (update_equiv_mem): Create replacement in more cases.
9063         (add_store_equivs): Update validate_equiv_mem call.
9064
9065 2016-04-30  Alan Modra  <amodra@gmail.com>
9066
9067         * ira.c (combine_and_move_insns): Rather than scanning insns,
9068         use DF infrastucture to find use and def insns.
9069
9070 2016-04-30  Alan Modra  <amodra@gmail.com>
9071
9072         ira.c (combine_and_move_insns): Move invariant conditions..
9073         (ira.c): ..to here.  Call combine_and_move_insns before
9074         add_store_equivs.  Call grow_reg_equivs later.  Allocate
9075         req_equiv later using max_reg_num() rather than global max_regno.
9076         (contains_replace_regs): Delete.
9077         (add_store_equivs): Remove contains_replace_regs test.
9078
9079 2016-04-30  Alan Modra  <amodra@gmail.com>
9080
9081         * ira.c (struct equiv_mem_data): New.
9082         (equiv_mem, equiv_mem_modified): Delete static vars.
9083         (validate_equiv_mem_from_store): Use "data" param to communicate..
9084         (validate_equiv_mem): ..from here.
9085
9086 2016-04-30  Alan Modra  <amodra@gmail.com>
9087
9088         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9089         split out from..
9090         (update_reg_equivs): ..here.  Move allocation and freeing of
9091         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9092         end_alias_analysis to..
9093         (ira): ..here.
9094
9095 2016-04-30  Alan Modra  <amodra@gmail.com>
9096
9097         * ira.c (pdx_subregs): Delete.
9098         (struct equivalence): Add pdx_subregs field.
9099         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
9100         pdx_subregs access.
9101         (update_equiv_regs): Don't create or free pdx_subregs.  Update
9102         pdx_subregs access.
9103
9104 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9105
9106         * config/rs6000/altivec.h: Change definitions of vec_xl and
9107         vec_xst.
9108         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9109         (LD_ELEMREV_V2DI): New.
9110         (LD_ELEMREV_V4SF): New.
9111         (LD_ELEMREV_V4SI): New.
9112         (LD_ELEMREV_V8HI): New.
9113         (LD_ELEMREV_V16QI): New.
9114         (ST_ELEMREV_V2DF): New.
9115         (ST_ELEMREV_V2DI): New.
9116         (ST_ELEMREV_V4SF): New.
9117         (ST_ELEMREV_V4SI): New.
9118         (ST_ELEMREV_V8HI): New.
9119         (ST_ELEMREV_V16QI): New.
9120         (XL): New.
9121         (XST): New.
9122         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9123         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9124         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9125         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9126         (altivec_expand_builtin): Add handling for
9127         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9128         (rs6000_invalid_builtin): Add error-checking for
9129         RS6000_BTM_P9_VECTOR.
9130         (altivec_init_builtins): Define builtins used to implement vec_xl
9131         and vec_xst.
9132         (rs6000_builtin_mask_names): Define power9-vector.
9133         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9134         (RS6000_BTM_P9_VECTOR): Define.
9135         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9136         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9137         (vsx_ld_elemrev_v2df): Likewise.
9138         (vsx_ld_elemrev_v4sf): Likewise.
9139         (vsx_ld_elemrev_v4si): Likewise.
9140         (vsx_ld_elemrev_v8hi): Likewise.
9141         (vsx_ld_elemrev_v16qi): Likewise.
9142         (vsx_st_elemrev_v2df): Likewise.
9143         (vsx_st_elemrev_v2di): Likewise.
9144         (vsx_st_elemrev_v4sf): Likewise.
9145         (vsx_st_elemrev_v4si): Likewise.
9146         (vsx_st_elemrev_v8hi): Likewise.
9147         (vsx_st_elemrev_v16qi): Likewise.
9148         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
9149         grammar.
9150
9151 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
9152
9153         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9154         out into ...
9155         (simplify_control_stmt_condition_1): ... here.  Recurse into
9156         BIT_AND_EXPRs and BIT_IOR_EXPRs.
9157
9158 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
9159
9160         PR target/69810
9161         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9162         (zero_extendqi<mode>2_dot): Revert earlier conversion from
9163         define_insn_and_split to define_insn.
9164         (zero_extendqi<mode>2_dot2): Same.
9165         (extendqi<mode>2_dot): Same.
9166         (extendqi<mode>2_dot2): Same.
9167
9168 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9169
9170         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9171         (probe_stack): New expander.
9172         (probe_stack_<mode>): New insn pattern.
9173
9174 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9175
9176         * config/i386/i386.md
9177         (operations with memory inputs setting flags peephole2):
9178         Remove uneeded REG_P checks.  Cleanup pattern generation.
9179
9180 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9181
9182         * tree-vect-loop.c (vect_transform_loop): Fix
9183         nb_iterations_upper_bound computation for vectorized loop.
9184
9185 2016-04-29  Marek Polacek  <polacek@redhat.com>
9186             Jakub Jelinek  <jakub@redhat.com>
9187
9188         PR sanitizer/70342
9189         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9190         TARGET_EXPR_SLOT as a base.
9191
9192 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
9193
9194         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9195         with 'rCm2' constraints to limit possible immediate size.
9196         (*load_zeroextendqisi_update): Likewise.
9197         (*load_signextendqisi_update): Likewise.
9198         (*loadhi_update): Likewise.
9199         (*load_zeroextendhisi_update): Likewise.
9200         (*load_signextendhisi_update): Likewise.
9201         (*loadsi_update): Likewise.
9202         (*loadsf_update): Likewise.
9203
9204 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9205
9206         * config/i386/predicates.md (constm1_operand): Fix comparison.
9207
9208 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9209
9210         * testsuite/gcc.target/arc/ieee_eq.c: New test.
9211
9212 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
9213
9214         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9215         remaining SH5 related settings.
9216         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9217         shmedia_prepare_call_address): Delete.
9218         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9219         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9220         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9221         UNSUPPORTED_SH2A): Remove m5 checks.
9222         (sh_divide_strategy_e): Remove SH5 division strategies.
9223         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9224         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9225
9226 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9227
9228         * config/s390/s390.c (s390_rtx_costs): Update documentation.
9229
9230 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9231
9232         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9233         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9234         Change lder to ldr.
9235         * config/s390/vector.md ("mov<mode>"): Likewise.
9236
9237 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
9238
9239         * config/s390/constraints.md ("U", "W"): Invoke
9240         s390_mem_constraint with "ZR" and "ZT".
9241         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9242         addresses when using LRA.  Accept also short displacements for S
9243         and T constraints.  Do not check for long displacement target for
9244         S and T constraints.
9245         (s390_mem_constraint): Remove handling of U and W constraints.
9246         * config/s390/s390.md (various patterns): Remove the short
9247         displacement constraints (Q and R) if a long displacement
9248         constraint is present.  Add longdisp as required CPU capability.
9249         * config/s390/vector.md: Likewise.
9250         * config/s390/vx-builtins.md: Likewise.
9251
9252 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9253
9254         PR target/60040
9255         * reload1.c (reload): Call finish_spills before
9256         restarting reload loop. Skip select_reload_regs
9257         if update_eliminables_and_spill returns true.
9258
9259 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9260
9261         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
9262         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
9263         (umulhisi3_imm): Update predicates and constraint letters.
9264         (umulhisi3_reg): Declare instruction as commutative.
9265         * config/arc/constraints.md (J12, J16): New constraints.
9266         * config/arc/predicates.md (short_unsigned_const_operand): New
9267         predicate.
9268         (arc_short_operand): Likewise.
9269         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
9270
9271 2016-04-29  Richard Biener  <rguenther@suse.de>
9272
9273         PR tree-optimization/13962
9274         PR tree-optimization/65686
9275         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
9276         * tree-ssa-alias.c (ptrs_compare_unequal): New function
9277         using PTA to compare pointers.
9278         * match.pd: Add pattern for pointer equality compare simplification
9279         using ptrs_compare_unequal.
9280
9281 2016-04-29  Richard Biener  <rguenther@suse.de>
9282
9283         * stor-layout.c (layout_type): Do not build a pointer-to-element
9284         type for arrays.
9285
9286 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9287
9288         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
9289         Use SWI mode iterator.  Use general_reg_operand predicate.
9290         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
9291         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
9292         predicates.
9293
9294 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
9295
9296         PR middle-end/70843
9297         * fold-const.c (operand_equal_p): Don't verify hash value equality
9298         if arg0 == arg1.
9299         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
9300         and OMP_CLAUSE.
9301
9302 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9303
9304         PR target/70858
9305         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
9306         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
9307         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
9308         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
9309         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
9310
9311 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9312
9313         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
9314         to info.  Don't initialize separate fields to 0.  Clean up
9315         formatting a bit.
9316
9317 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9318
9319         * config/i386/i386.md (peephole2s for operations with memory inputs):
9320         Use SWI mode iterator.
9321         (peephole2s for operations with memory outputs): Ditto.
9322         Do not check for stack checking probe.
9323
9324         (probe_stack): Remove expander.
9325
9326 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9327             Andrew Burgess  <andrew.burgess@embecosm.com>
9328
9329         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
9330         operands as 32-bits.
9331
9332 2016-04-28  Jason Merrill  <jason@redhat.com>
9333
9334         * gdbinit.in: Skip line-map.h.
9335
9336 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9337             Andrew Burgess  <andrew.burgess@embecosm.com>
9338
9339         * config/arc/arc.c (arc_conditional_register_usage): Take
9340         TARGET_RRQ_CLASS into account.
9341         (arc_print_operand): Support printing 'p' and 's' operands.
9342         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
9343         as 0.
9344         (TARGET_RRQ_CLASS): Define.
9345         (IS_POWEROF2_OR_0_P): Define.
9346         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
9347         alternatives.
9348         (*tst_movb): New define_insn.
9349         (*tst): Avoid recognition if it could prevent '*tst_movb'
9350         combination; replace c/CnL with c/Chs alternative.
9351         (*tst_bitfield_tst): New define_insn.
9352         (*tst_bitfield_asr): New define_insn.
9353         (*tst_bitfield): New define_insn.
9354         (andsi3_i): Add Rrq variant.
9355         (extzv): New define_expand.
9356         (insv): New define_expand.
9357         (*insv_i): New define_insn.
9358         (*movb): New define_insn.
9359         (*movb_signed): New define_insn.
9360         (*movb_high): New define_insn.
9361         (*movb_high_signed): New define_insn.
9362         (*movb_high_signed + 1): New define_split pattern.
9363         (*mrgb): New define_insn.
9364         (*mrgb + 1): New define_peephole2 pattern.
9365         (*mrgb + 2): New define_peephole2 pattern.
9366         * config/arc/arc.opt (mbitops): New option for nps400, uses
9367         TARGET_NPS_BITOPS_DEFAULT.
9368         * config/arc/constraints.md (q): Make register class conditional.
9369         (Rrq): New register constraint.
9370         (Chs): New constraint.
9371         (Clo): New constraint.
9372         (Chi): New constraint.
9373         (Cbf): New constraint.
9374         (Cbn): New constraint.
9375         (C18): New constraint.
9376         (Cbi): New constraint.
9377
9378 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9379
9380         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
9381         dst->popcount.
9382         (bitmap_intersection_of_preds): Ditto.
9383         (bitmap_union_of_succs): Ditto.
9384         (bitmap_union_of_preds): Ditto.
9385         * sbitmap.c (do_popcount): Delete.
9386         (BITMAP_DEBUGGING): Delete.
9387         (sbitmap_verify_popcount): Delete.
9388         (sbitmap_alloc): Don't initialize the popcount field.
9389         (sbitmap_alloc_with_popcount): Delete.
9390         (sbitmap_resize): Don't resize the popcount array.
9391         (sbitmap_vector_alloc): Don't initialize the popcount field.
9392         (bitmap_copy): Don't copy the popcount array.
9393         (bitmap_clear): Don't clear the popcount array.
9394         (bitmap_clear): Delete the popcount array handling.
9395         (bitmap_ior_and_compl): Delete the popcount assert.
9396         (bitmap_not): Ditto.
9397         (bitmap_and_compl): Ditto.
9398         (bitmap_and): Delete the popcount array handling.
9399         (bitmap_xor): Ditto.
9400         (bitmap_ior): Ditto.
9401         (bitmap_or_and): Delete the popcount assert.
9402         (bitmap_and_or): Ditto.
9403         (popcount_table): Delete.
9404         (sbitmap_elt_popcount): Delete.
9405         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
9406         (bitmap_set_bit): Delete the popcount assert.
9407         (bitmap_clear_bit): Ditto.
9408         (sbitmap_free): Don't free the popcount array.
9409         (sbitmap_alloc_with_popcount): Delete declaration.
9410         (sbitmap_popcount): Ditto.
9411
9412 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9413             Andrew Burgess  <andrew.burgess@embecosm.com>
9414
9415         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
9416         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
9417         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
9418         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
9419         * config/arc/arc.opt (mcmem): New option.
9420         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
9421         supply length for r/m alternative.
9422         (*extendqisi2_ac): Likewise.
9423         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
9424         r/Uex alternative.
9425         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
9426         (movhi_insn): Likewise.
9427         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
9428         (*zero_extendqihi2_i): Add r/Ucm alternative.
9429         (*zero_extendqisi2_ac): Likewise.
9430         (*zero_extendhisi2_i): Likewise.
9431         * config/arc/constraints.md (Uex): New memory constraint.
9432         (Ucm): New define_constraint.
9433         * config/arc/predicates.md (long_immediate_loadstore_operand):
9434         Return 0 for MEM with cmem_address address.
9435         (cmem_address_0): New predicates.
9436         (cmem_address_1): Likewise.
9437         (cmem_address_2): Likewise.
9438         (cmem_address): Likewise.
9439
9440 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9441
9442         * config/rs6000/rs6000.c (machine_function): Rename
9443         insn_chain_scanned_p to spe_insn_chain_scanned_p.
9444         (rs6000_stack_info): Adjust.
9445
9446 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9447             Andrew Burgess  <andrew.burgess@embecosm.com>
9448
9449         * config/arc/constraints.md (Usd): Convert to define_constraint.
9450         (Us<): Likewise.
9451         (Us>): Likewise.
9452
9453 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9454
9455         PR target/70821
9456         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
9457         Add new peephole2 where the first insn is *mov<mode>_or instead of
9458         *mov<mode>_internal.
9459
9460 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
9461
9462         * tracer.c (bb_seen): Make static.
9463
9464 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
9465
9466         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
9467         support, setup defaults.
9468         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
9469         * config/arc/arc.c (arc_init): Add NPS400 support.
9470         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
9471         (TARGET_ARC700): NPS400 is also an ARC700.
9472         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
9473
9474 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9475
9476         PR target/70668
9477         * config/nds32/nds32.md (casesi): Don't access the operands array
9478         out of bounds.
9479
9480 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9481
9482         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
9483         (or $-1,reg peephole2): Ditto.
9484         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
9485
9486 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
9487
9488         * doc/extend.texi (Common Function Attributes) [optimize]:
9489         Discourage use of the optimize attribute.
9490
9491 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
9492
9493         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
9494         special case builtin.
9495         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9496         ALTIVEC_BUILTIN_VEC_ADDE.
9497         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9498         support for ALTIVEC_BUILTIN_VEC_ADDE.
9499         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9500         for __builtin_vec_adde.
9501
9502 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9503
9504         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
9505         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
9506
9507 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9508
9509         PR testsuite/70595
9510         * doc/sourcebuild.texi (Effective-Target Keywords, Other
9511         attributes): Document cilkplus_runtime.
9512
9513 2016-04-28  Martin Jambor  <mjambor@suse.cz>
9514
9515         * tree-cfg.c (verify_expr): Verify that local declarations belong to
9516         this function.  Call verify_expr on MEM_REFs and bases of other
9517         handled_components.
9518
9519 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9520
9521         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
9522         for WORD_REGISTER_OPERATIONS to runtime check.
9523
9524 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9525
9526         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
9527
9528 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9529
9530         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
9531         big-endian compilation.
9532         * config/arc/arc.md (addf3): Likewise.
9533         (subdf3): Likewise.
9534         (muldf3): Likewise.
9535
9536 2016-04-28  Richard Biener  <rguenther@suse.de>
9537
9538         PR tree-optimization/70840
9539         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
9540         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
9541         Mark x * pow(x,c) -> pow(x,c+1) commutative.
9542         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
9543
9544 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9545
9546         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
9547         and explain why in a comment.
9548
9549 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9550
9551         * config/arc/arc.md (cpu_facility): Add fpx variant.
9552         (subdf3): Prohibit use reverse sub when assist operations option
9553         is enabled.
9554         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
9555         instructions only when FPX is enabled.
9556         * testsuite/gcc.target/arc/trsub.c: New test.
9557
9558 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9559
9560         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
9561         mult_operator when calculating "type" attribute.
9562         (*fop_<mode>_1_i387): Ditto.
9563         (*fop_xf_1_i387): Ditto.
9564         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
9565         Use std::swap to swap operands.  Use RTL expressions to generate
9566         converted pattern.
9567
9568 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9569             Joern Rennecke  <joern.rennecke@embecosm.com>
9570
9571         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
9572         declaration.
9573         (emit_pic_move): Remove.
9574         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
9575         * config/arc/arc.c (emit_pic_move): Removed.
9576         (TARGET_HAVE_TLS): Define.
9577         (arc_conditional_register_usage): Test for arc_tp_regno.
9578         (arc_print_operand, arc_print_operand_address): Handle TLS
9579         unspecs.
9580         (arc_needs_pcl_p): New function.
9581         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
9582         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
9583         (arc_raw_symbolic_reference_mentioned_p): Likewise.
9584         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
9585         (arc_legitimize_tls_address): Likewise.
9586         (DTPOFF_ZERO_SYM): Define.
9587         (arc_legitimize_pic_address): Make it static, handle TLS cases.
9588         (arc_output_pic_addr_const): Print TLS unspecs.
9589         (prepare_pic_move): New function, replaces emit_pic_move.
9590         (arc_legitimate_constant_p): Handle TLS unspecs.
9591         (arc_legitimate_address_p): Likewise.
9592         (arc_rewrite_small_data_p): Use assert for TLS constants.
9593         (prepare_move_operands): Use prepare_pic_move.
9594         (arc_legitimize_address): Legitimize tls addresses.
9595         (arc_epilogue_uses): Check for arc_tp_regno.
9596         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
9597         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
9598         Define.
9599         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
9600         Likewise.
9601         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
9602         %(arc_tls_extra_start_spec).
9603         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
9604         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
9605         (EH_USES): Define.
9606         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
9607         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
9608         (UNSPEC_TLS_OFF): Add.
9609         (R10_REG): Define.
9610         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
9611         (get_thread_pointersi): New patterns.
9612         * config/arc/arc.opt (mtp-regno): New option.
9613         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
9614         (move_dest_operand): Likewise.
9615         * configure: Regenerate.
9616         * configure.ac: Add arc*-*-* case to test for tls.
9617         * doc/invoke.texi (ARC options): Document mtp-regno.
9618
9619 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9620
9621         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
9622         the new ARC HS SIMD instructions.
9623         (arc_preferred_simd_mode): New function.
9624         (arc_autovectorize_vector_sizes): Likewise.
9625         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9626         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9627         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
9628         (arc_init_builtins): Add new SIMD builtin types.
9629         (arc_split_move): Handle 64 bit vector moves.
9630         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
9631         (TARGET_PLUS_QMACW): Define.
9632         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
9633         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
9634         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
9635         (VSUBADD4H): New builtins.
9636         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
9637         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
9638
9639 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
9640             Matthias Klose  <doko@debian.org>
9641
9642         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
9643
9644 2016-04-28  Richard Biener  <rguenther@suse.de>
9645
9646         PR middle-end/70777
9647         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
9648         canonicalization.
9649
9650 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
9651
9652         * common/config/sh/sh-common.c: Remove SH5 support.
9653         * config/sh/constraints.md: Likewise.
9654         * config/sh/config/sh/elf.h: Likewise.
9655         * config/sh/linux.h: Likewise.
9656         * config/sh/netbsd-elf.h: Likewise.
9657         * config/sh/predicates.md: Likewise.
9658         * config/sh/sh-c.c: Likewise.
9659         * config/sh/sh-protos.h: Likewise.
9660         * config/sh/sh.c: Likewise.
9661         * config/sh/sh.h: Likewise.
9662         * config/sh/sh.md: Likewise.
9663         * config/sh/sh.opt: Likewise.
9664         * config/sh/sync.md: Likewise.
9665         * config/sh/sh64.h: Delete.
9666         * config/sh/shmedia.h: Likewise.
9667         * config/sh/shmedia.md: Likewise.
9668         * config/sh/sshmedia.h: Likewise.
9669         * config/sh/t-netbsd-sh5-64: Likewise.
9670         * config/sh/t-sh64: Likewise.
9671         * config/sh/ushmedia.h: Likewise.
9672
9673 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9674
9675         * config/i386/i386.md (sign_extend to memory peephole2s): Use
9676         general_reg_operand instead of register_operand predicate.
9677
9678 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9679
9680         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9681
9682 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
9683
9684         * match.pd (A - B > A, A + B < A): New transformations.
9685
9686 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
9687
9688         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9689         which defaults to true.  Emit an outer pair of parentheses only if
9690         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
9691         don't emit parentheses for the right-hand operand.
9692
9693 2016-04-27  Jeff Law  <law@redhat.com>
9694
9695         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9696
9697 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9698
9699         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9700         (altivec_lvx_<mode>_internal): Document.
9701         (altivec_lvx_<mode>_2op): New define_insn.
9702         (altivec_lvx_<mode>_1op): Likewise.
9703         (altivec_lvx_<mode>_2op_si): Likewise.
9704         (altivec_lvx_<mode>_1op_si): Likewise.
9705         (altivec_stvx_<mode>): Remove.
9706         (altivec_stvx_<mode>_internal): Document.
9707         (altivec_stvx_<mode>_2op): New define_insn.
9708         (altivec_stvx_<mode>_1op): Likewise.
9709         (altivec_stvx_<mode>_2op_si): Likewise.
9710         (altivec_stvx_<mode>_1op_si): Likewise.
9711         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9712         Expand vec_ld and vec_st during parsing.
9713         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9714         changes.
9715         (altivec_expand_stvx_be): Likewise.
9716         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9717         address-masking behavior in RTL.
9718         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9719         address-masking behavior in RTL.
9720         (altivec_expand_builtin): Change builtin code arguments for calls
9721         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9722         (insn_is_swappable_p): Avoid incorrect swap optimization in the
9723         presence of lvx/stvx patterns.
9724         (alignment_with_canonical_addr): New function.
9725         (alignment_mask): Likewise.
9726         (find_alignment_op): Likewise.
9727         (recombine_lvx_pattern): Likewise.
9728         (recombine_stvx_pattern): Likewise.
9729         (recombine_lvx_stvx_patterns): Likewise.
9730         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9731         stvx patterns from expand.
9732         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9733         expansions.
9734         (vector_altivec_store_<mode>): Likewise.
9735
9736 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
9737
9738         * config/aarch64/aarch64.md
9739         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9740         remove the "fp" attributes.
9741         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9742         add the "simd" attributes.
9743         (*movdf_aarch64): Likewise.
9744         (*movtf_aarch64): Remove the "fp" attributes.
9745         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9746         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9747
9748 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9749
9750         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9751         rtx to rtx_code_label *.
9752         * rtl.h (maybe_set_first_label_num): Likewise.
9753
9754 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9755
9756         * df-core.c (df_add_problem): Make the problem param be const.
9757         (df_remove_problem): Make local "problem" be const.
9758         * df-problems.c (problem_RD): Make const.
9759         (problem_LR): Likewise.
9760         (problem_LIVE): Likewise.
9761         (problem_MIR): Likewise.
9762         (problem_CHAIN): Likewise.
9763         (problem_WORD_LR): Likewise.
9764         (problem_NOTE): Likewise.
9765         (problem_MD): Likewise.
9766         * df-scan.c (problem_SCAN): Likewise.
9767         * df.h (struct df_problem): Make field "dependent_problem" be
9768         const.
9769         (struct dataflow): Likewise for field "problem".
9770         (df_add_problem): Make param const.
9771
9772 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9773
9774         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9775         inter-unit moves to/from vector registers are enabled.  Do not disable
9776         for TARGET_MMX.
9777
9778 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9779
9780         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
9781         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
9782         #define to...
9783         (enum df_problem_id): ...this new enum.
9784         (struct df_problem): Convert field "id" from "int" to
9785         enum df_problem_id.
9786
9787 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9788
9789         * rtl.def: Update comment for "things in the instruction chain" to
9790         reflect the removal of the leading "i" field for INSN_UID in
9791         r210360.  Fix bogus apostrophe.
9792
9793 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9794
9795         * config/i386/i386.md
9796         (lea arith with mem operand + setcc peephole2): Set operator mode.
9797
9798 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9799
9800         PR target/70155
9801         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
9802         (dimode_scalar_to_vector_candidate_p): This.
9803         (timode_scalar_to_vector_candidate_p): New function.
9804         (scalar_to_vector_candidate_p): Likewise.
9805         (timode_check_non_convertible_regs): Likewise.
9806         (timode_remove_non_convertible_regs): Likewise.
9807         (remove_non_convertible_regs): Likewise.
9808         (remove_non_convertible_regs): Renamed to ...
9809         (dimode_remove_non_convertible_regs): This.
9810         (scalar_chain::~scalar_chain): Make it virtual.
9811         (scalar_chain::compute_convert_gain): Make it pure virtual.
9812         (scalar_chain::mark_dual_mode_def): Likewise.
9813         (scalar_chain::convert_insn): Likewise.
9814         (scalar_chain::convert_registers): Likewise.
9815         (scalar_chain::add_to_queue): Make it protected.
9816         (scalar_chain::emit_conversion_insns): Likewise.
9817         (scalar_chain::replace_with_subreg): Likewise.
9818         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9819         (scalar_chain::convert_op): Likewise.
9820         (scalar_chain::convert_reg): Likewise.
9821         (scalar_chain::make_vector_copies): Likewise.
9822         (scalar_chain::convert_registers): New pure virtual function.
9823         (class dimode_scalar_chain): New class.
9824         (class timode_scalar_chain): Likewise.
9825         (scalar_chain::mark_dual_mode_def): Renamed to ...
9826         (dimode_scalar_chain::mark_dual_mode_def): This.
9827         (timode_scalar_chain::mark_dual_mode_def): New function.
9828         (timode_scalar_chain::convert_insn): Likewise.
9829         (dimode_scalar_chain::convert_registers): Likewise.
9830         (scalar_chain::compute_convert_gain): Renamed to ...
9831         (dimode_scalar_chain::compute_convert_gain): This.
9832         (scalar_chain::replace_with_subreg): Renamed to ...
9833         (dimode_scalar_chain::replace_with_subreg): This.
9834         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9835         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9836         (scalar_chain::make_vector_copies): Renamed to ...
9837         (dimode_scalar_chain::make_vector_copies): This.
9838         (scalar_chain::convert_reg): Renamed to ...
9839         (dimode_scalar_chain::convert_reg ): This.
9840         (scalar_chain::convert_op): Renamed to ...
9841         (dimode_scalar_chain::convert_op): This.
9842         (scalar_chain::convert_insn): Renamed to ...
9843         (dimode_scalar_chain::convert_insn): This.
9844         (scalar_chain::convert): Call convert_registers.
9845         (convert_scalars_to_vector): Change to scalar_chain pointer to
9846         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9847         in 32-bit mode.  Delete scalar_chain pointer.  Call
9848         free_dominance_info in 64-bit mode.
9849         (pass_stv::gate): Remove TARGET_64BIT check.
9850         (ix86_option_override): Put the 64-bit STV pass before the CSE
9851         pass.
9852
9853 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9854
9855         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9856         dw_loc_frame_offset field.
9857         * dwarf2out.c (new_loc_descr): Likewise.
9858         (resolve_args_picking_1): Turn the VISITED hash set into a
9859         FRAME_OFFSET hash map. Use it to associate a frame offset to
9860         visited nodes. Remove uses of the CHECKING_P macro.
9861         (resolve_args_picking): Update call to resolve_args_picking_1.
9862
9863 2016-04-27  Martin Liska  <mliska@suse.cz>
9864
9865         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9866         (free_loop_data): Release vuses of groups.
9867
9868 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9869
9870         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9871         instead of redundant use_id and boolean have_use_for.
9872         (struct iv_use): Change sub_id into group_id.  Remove field next.
9873         Move fields: related_cands, n_map_members, cost_map and selected
9874         to ...
9875         (struct iv_group): ... here.  New structure.
9876         (struct iv_common_cand): Use structure declaration directly.
9877         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9878         (MAX_CONSIDERED_USES): Rename macro to ...
9879         (MAX_CONSIDERED_GROUPS): ... here.
9880         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9881         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9882         (dump_uses): Rename to ...
9883         (dump_groups): ... here.  Update all uses.
9884         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9885         (find_induction_variables): Refactor format of dump information.
9886         (record_sub_use): Delete.
9887         (record_use): Update all uses.
9888         (record_group): New function.
9889         (record_group_use, find_interesting_uses_op): Call above functions.
9890         Update all uses.
9891         (find_interesting_uses_cond): Ditto.
9892         (group_compare_offset): New function.
9893         (split_all_small_groups): Rename to ...
9894         (split_small_address_groups_p): ... here.  Update all uses.
9895         (split_address_groups):  Update all uses.
9896         (find_interesting_uses): Refactor format of dump information.
9897         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9898         base and step.
9899         (add_candidate, record_common_cand): Remove redundant assert.
9900         (add_iv_candidate_for_biv): Update use.
9901         (add_iv_candidate_derived_from_uses): Update all uses.
9902         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9903         (alloc_use_cost_map): Ditto.
9904         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9905         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9906         (determine_use_iv_cost_generic): Ditto.
9907         (determine_group_iv_cost_generic): Ditto.
9908         (determine_use_iv_cost_address): Ditto.
9909         (determine_group_iv_cost_address): Ditto.
9910         (determine_use_iv_cost_condition): Ditto.
9911         (determine_group_iv_cost_cond): Ditto.
9912         (determine_use_iv_cost): Ditto.
9913         (determine_group_iv_cost): Ditto.
9914         (set_autoinc_for_original_candidates): Update all uses.
9915         (find_iv_candidates): Update all uses.  Refactor dump information.
9916         (determine_use_iv_costs): Ditto.
9917         (determine_iv_costs): Ditto.
9918         (iv_ca_cand_for_use): Rename to ...
9919         (iv_ca_cand_for_group): ... here.  Update all uses.
9920         (iv_ca_add_use, iv_ca_add_group): Ditto.
9921         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9922         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9923         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9924         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9925         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9926         (create_new_iv, adjust_iv_update_pos): Ditto.
9927         (rewrite_use_address): Delete.
9928         (rewrite_use_address_1): Rename to ...
9929         (rewrite_use_address): ... here.
9930         (rewrite_use_compare): Update all uses.
9931         (rewrite_use): Delete.
9932         (rewrite_uses): Rename to ...
9933         (rewrite_groups): ... here.  Update all uses.
9934         (remove_unused_ivs, free_loop_data): Update all uses.
9935         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9936
9937 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9938
9939         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9940         for WORD_REGISTER_OPERATIONS to runtime check.
9941
9942 2016-04-27  Richard Biener  <rguenther@suse.de>
9943
9944         PR ipa/70760
9945         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9946         aggregate_value_p to determine if a function result is
9947         returned by reference.
9948         (ipa_pta_execute): Functions having their address taken are
9949         not automatically nonlocal.
9950
9951 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9952
9953         PR sanitizer/70683
9954         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9955         * fold-const.c (operand_equal_p): If flag_checking and
9956         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9957         and if it returns non-zero, assert iterative_hash_expr on both
9958         args is the same.
9959
9960 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9961
9962         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
9963
9964 2016-04-27  Nick Clifton  <nickc@redhat.com>
9965
9966         PR middle-end/49889
9967         * varasm.c (merge_weak): Generate an error if an attempt is made
9968         to convert a non-weak static function into a weak, public function.
9969
9970 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9971
9972         * params.def (MAX_PARTITION_SIZE): New param.
9973         * doc/invoke.texi: Document lto-max-partition.
9974
9975 2016-04-27  Richard Biener  <rguenther@suse.de>
9976
9977         PR ipa/70785
9978         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
9979         function cummulating used_from_other_partition, externally_visible
9980         and force_output from aliases.
9981         (refered_from_nonlocal_var): Likewise.
9982         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
9983         node flags properly.
9984
9985 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9986
9987         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
9988         (-Wmemset-elt-size): New item.
9989
9990 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9991
9992         PR ada/70759
9993         * stor-layout.h (internal_reference_types): Delete.
9994         * stor-layout.c (reference_types_internal): Likewise.
9995         (internal_reference_types): Likewise.
9996         (layout_type) <REFERENCE_TYPE>: Adjust.
9997
9998 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9999
10000         PR sanitizer/70683
10001         * tree.h (inchash::add_expr): Add FLAGS argument.
10002         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
10003         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
10004         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10005         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
10006         if swap_tree_comparison (code) is smaller than code, hash that
10007         and arguments in the other order.  Hash CONVERT_EXPR the same
10008         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10009         of ADDR_EXPR of decl as the decl itself.  Add or remove
10010         OEP_ADDRESS_OF from recursive flags as needed.  For
10011         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10012         operands commutatively and only the third one normally.
10013         For internal CALL_EXPR hash in CALL_EXPR_IFN.
10014
10015 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10016
10017         * config/rtems.h (LIB_SPEC): Add -latomic.
10018
10019 2016-04-27  Joel Sherrill  <joel@rtems.org>
10020
10021         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10022         xilink.ld and flags not relevant to RTEMS.
10023
10024 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10025
10026         * toplev.c (backend_init_target): Avoid calling init_reload when using
10027         LRA.
10028
10029 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10030
10031         * reorg.c (try_merge_delay_insns): Declare i and j inside the
10032         for loops rather than one for the whole function.
10033
10034 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10035
10036         * match.pd (X + CST CMP X): New transformation.
10037
10038 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10039
10040         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10041         * fold-const.c (fold_binary_loc): Remove 2 transformations
10042         superseded by match.pd.
10043         * match.pd (x+x -> x*2): Generalize to integers.
10044
10045 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
10046
10047         * config/i386/i386.md (operation on memory peephole): Duplicate an
10048         existing peephole and adapt it to match lea rather than an operation
10049         that clobbers CC.
10050
10051         PR rtl-optimization/57193
10052         * opts.c (default_options_table): Add OPT_frename_registers at -O2
10053         and above.
10054         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10055
10056 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10057
10058         * tree-if-conv.c (any_pred_load_store): New static variable.
10059         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
10060         any_pred_load_store instead of and_mask_load_store.
10061         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10062         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10063         (combine_blocks, tree_if_conversion): Ditto.
10064
10065 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10066
10067         PR tree-optimization/70771
10068         PR tree-optimization/70775
10069         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10070         virtual PHI nodes.  Delete parameter.
10071         (if_convertible_loop_p_1): Delete argument to above function.
10072         (predicate_all_scalar_phis): Delete code handling single-argument
10073         PHIs.
10074         (tree_if_conversion): Mark and update virtual SSA.
10075
10076 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10077
10078         PR target/61821
10079         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10080         (x86_elf_aligned_common): Rename to ...
10081         (x86_elf_aligned_decl_common): ... this.
10082         Add decl arg.  Switch to .lbss for largecomm object.  Use
10083         LARGECOMM_SECTION_ASM_OP.
10084         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10085         renaming.
10086         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10087         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10088         Pass new decl arg.
10089         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10090         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10091
10092 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10093
10094         PR target/59407
10095         * config/i386/i386.c (SECTION_LARGE): Define.
10096         (x86_64_elf_select_section): Set it for large data/bss sections.
10097         Only clear SECTION_WRITE for .lrodata.
10098         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10099         data/bss sections.
10100         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10101         * varasm.c (default_elf_asm_named_section): Grow flagchars.
10102         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10103         SECTION_MACH_DEP.
10104         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10105         * doc/tm.texi: Regenerate.
10106
10107 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10108
10109         PR bootstrap/70704
10110         * configure.ac (--enable-checking): Document extra flag, for
10111         non-release builds default to --enable-checking=yes,extra.
10112         If misc checking and extra checking, define CHECKING_P to 2 instead
10113         of 1.
10114         * common.opt (fchecking=): Add.
10115         * doc/invoke.texi (-fchecking=): Document.
10116         * doc/install.texi: Document --enable-checking changes.
10117         * configure: Regenerated.
10118         * config.in: Regenerated.
10119
10120 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10121
10122         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10123         attribute instead of which_alternative.
10124         * config/i386/sse.md (*mov<mode>_internal): Ditto.
10125         Use EXT_REX_SSE_REG_P where appropriate.
10126
10127 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10128
10129         * config/i386/predicates.md (const0_operand): Do not match
10130         const_wide_int code.
10131         (const1_operand): Ditto.
10132
10133 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10134
10135         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10136         for SSE constm1 operands and TARGET_AVX512VL.
10137         (*movti_internal): Ditto.
10138         (*mov<mode>_or): Use constm1_operand predicate.
10139         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10140         for SSE vector_all_ones operands and TARGET_AVX512VL.
10141         * config/i386/predicates.md (constm1_operand): New predicate.
10142         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10143         emission of constant -1 load.
10144
10145 2016-04-25  Jason Merrill  <jason@redhat.com>
10146
10147         * gdbinit.in: Skip is-a.h.
10148
10149         * attribs.c (register_scoped_attributes): Fix logic.
10150         * attribs.h: Declare register_scoped_attributes.
10151
10152 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10153
10154         * config/rs6000/rs6000-builtin.def: Correct pasto error for
10155         stxvd2x and stxvw4x built-in functions.
10156
10157 2016-04-25  DJ Delorie  <dj@redhat.com>
10158
10159         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10160         (ashrhi3): Likewise.
10161         (lshrhi3): Likewise.
10162
10163 2016-04-25  Richard Biener  <rguenther@suse.de>
10164
10165         PR tree-optimization/70780
10166         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10167         wasn't visited yet.
10168         (compute_antic): Mark blocks with abnormal preds as visited as
10169         they have a final empty antic-in solution already.
10170
10171 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10172
10173         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10174
10175 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10176
10177         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10178         mode is VQI to improve mixed mode vectorization.
10179         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10180         define_insn to match low half of signed vaddw.
10181         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10182         define_insn to match high half of signed vaddw.
10183         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10184         define_insn to match low half of unsigned vaddw.
10185         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10186         define_insn to match high half of unsigned vaddw.
10187         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10188         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10189         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10190         for new function.
10191         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10192         * config/arm/predicates.md (vect_par_constant_high): Support
10193         big endian and simplify by calling
10194         arm_simd_check_vect_par_cnst_half
10195         (vect_par_constant_low): Likewise.
10196
10197 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10198
10199         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10200         predicate for operand 2.
10201
10202 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
10203             H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * config/i386/i386-protos.h (standard_sse_constant_p): Add
10206         machine_mode argument.
10207         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10208         constm1_rtx operands.  For VOIDmode constants, get mode from
10209         pred_mode.  Check mode size if the mode is supported by ABI.
10210         (standard_sse_constant_opcode): Do not use standard_constant_p.
10211         Strictly check ABI support for all-ones operands.
10212         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10213         immediates. Update calls to standard_sse_constant_p.
10214         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10215         (ix86_rtx_costs): Ditto.
10216         * config/i386/i386.md (*movxi_internal_avx512f): Use
10217         nonimmediate_or_sse_const_operand instead of vector_move_operand.
10218         Use (v,BC) alternative instead of (v,C). Use register_operand
10219         checks instead of MEM_P.
10220         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10221         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
10222         isa attribute.  Use register_operand checks instead of MEM_P.
10223         (*movti_internal): Use nonimmediate_or_sse_const_operand for
10224         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
10225         alternative and corresponding sse2 isa attribute.
10226         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10227         to standard_sse_constant_p.
10228         (FP constant splitters): Ditto.
10229         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10230         (C): Ditto.
10231         * config/i386/predicates.md (constm1_operand): Remove.
10232         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10233         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10234         vector_all_ones_operand instead of constm1_operand.
10235
10236 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10237
10238         * print-rtl.c (print_rtx_insn_vec): New function.
10239         * print-rtl.h: New prototype.
10240         * store-motion.c (struct st_expr): Make avail_stores a vector.
10241         (st_expr_entry): Adjust.
10242         (free_st_expr_entry): Likewise.
10243         (print_store_motion_mems): Likewise.
10244         (find_moveable_store): Likewise.
10245         (compute_store_table): Likewise.
10246         (delete_store): Likewise.
10247         (build_store_vectors): Likewise.
10248
10249 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10250
10251         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10252
10253 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10254
10255         * vec.h (vec_safe_contains): New function.
10256         (vec::contains): Likewise.
10257         (vec::begin): Likewise.
10258         (vec::end): Likewise.
10259
10260 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
10261
10262         PR sanitizer/70712
10263         * cfgexpand.c (expand_stack_vars): Fix typo.
10264
10265 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10266
10267         * system.h (list, map, set, vector): Include conditionally.
10268         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
10269         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
10270         * ipa-icf.c (INCLUDE_LIST): Define.
10271         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
10272         * config/sh/sh.c (INCLUDE_VECTOR): Define.
10273         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
10274         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
10275         * cp/logic.cc (INCLUDE_LIST): Define.
10276         * fortran/trans-common.c (INCLUDE_MAP): Define.
10277
10278 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10279
10280         * auto-profile.c: Remove <string.h> include.
10281         * ipa-icf-gimple.c: Remove <list> include.
10282         * diagnostic.c: Remove <new> include.
10283         * genmatch.c: Likewise.
10284         * pretty-print.c: Likewise.
10285         * toplev.c: Likewise
10286         * c/c-objc-common.c: Likewise.
10287         * cp/error.c: Likewise.
10288         * fortran/error.c: Likewise.
10289
10290 2016-04-22  Richard Biener  <rguenther@suse.de>
10291
10292         * lto-streamer-in.c (input_ssa_names): Do not allocate
10293         GIMPLE_NOP for all SSA names.
10294         * lto-streamer-out.c (output_ssa_names): Do not output
10295         SSA names that should have been released.
10296
10297 2016-04-22  Richard Biener  <rguenther@suse.de>
10298
10299         PR tree-optimization/70740
10300         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
10301         VDEF.
10302
10303 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
10304
10305         PR target/70750
10306         * config/i386/predicates.md (call_insn_operand): Replace
10307         sibcall_memory_operand with memory_operand.
10308
10309 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
10310
10311         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
10312         has_single_use() tests.
10313         (register_edge_assert_for_1): Likewise.
10314         (find_assert_locations_1): Check the liveness bitmap instead of
10315         checking has_single_use().
10316
10317 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10318
10319         PR target/70728
10320         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
10321         Extract AVX-512BW constraint from AVX.
10322
10323 2016-04-21  Richard Biener  <rguenther@suse.de>
10324
10325         PR tree-optimization/70725
10326         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
10327         for phi_convertible_by_degenerating_args.
10328         (predicate_all_scalar_phis): Handle single-argument PHIs.
10329
10330 2016-04-21  Richard Biener  <rguenther@suse.de>
10331
10332         PR middle-end/70747
10333         * fold-const.c (fold_comparison): Return properly typed
10334         constant boolean.
10335
10336 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
10337
10338         PR tree-optimization/70715
10339         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
10340         after expanding BASE using expand_simple_operations.
10341
10342 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10343
10344         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
10345         New transformations.
10346
10347 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10348
10349         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
10350
10351 2016-04-20  Jan Hubicka  <jh@suse.cz>
10352
10353         * ipa-inline.c (can_inline_edge_p): Pass caller info to
10354         ultiimate_alias_target.
10355         (update_callee_keys): Likewise.
10356         (lookup_recursive_calls): Likewise.
10357         (speculation_useful_p): Likewise.
10358
10359 2016-04-20  Jan Hubicka  <jh@suse.cz>
10360
10361         PR ipa/70018
10362         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
10363         (set_nothrow_flag_1): ... this; handle interposition correctly;
10364         recurse on aliases and thunks.
10365         (cgraph_node::set_nothrow_flag): New.
10366         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
10367         functions compiled with non-call exceptions that binds to current
10368         def.
10369         (propagate_nothrow): Be safe WRT interposition.
10370         * cgraph.h (set_nothrow_flag): Update prototype.
10371
10372 2016-04-18  Jan Hubicka  <jh@suse.cz>
10373
10374         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10375         max_loop_iterations_int.
10376         (tree_unswitch_outer_loop): Likewise.
10377
10378 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10379
10380         PR tree-optimization/69489
10381         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
10382         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
10383         Revise dump message.
10384         (if_convertible_bb_p): Remove check on edge count of basic block's
10385         predecessors.
10386
10387 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10388
10389         PR tree-optimization/56625
10390         PR tree-optimization/69489
10391         * tree-data-ref.h (DR_INNERMOST): New macro.
10392         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
10393         hashing struct innermost_loop_behavior.
10394         (ref_DR_map): Remove.
10395         (innermost_DR_map): New map.
10396         (baseref_DR_map): Revise comment.
10397         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
10398         to innermost_DR_map accroding to its innermost loop behavior.
10399         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
10400         to its innermost loop behavior.
10401         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
10402         Add initialization for innermost_DR_map.  Record memory reference
10403         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
10404         have innermost loop behavior.
10405         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
10406         innermost_DR_map.
10407
10408 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
10409
10410         * config/i386/i386.md (*lea<mode>_general_1): Rename from
10411         *lea_general_1.  Use explicit SWI12 mode interator.
10412         (*lea<mode>_general_2): Rename from *lea_general_2.
10413         Use explicit SWI12 mode interator.
10414         (*lea<mode>_general_3): Rename from *lea_general_3.
10415         Use explicit SWI12 mode interator.
10416         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
10417         Use explicit SWI12 mode interator.
10418         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
10419         Use explicit SWI48 mode interator.
10420
10421 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10422
10423         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10424         Short-cut unaligned load and store cases.  Handle all integer
10425         vector modes.
10426         (ix86_expand_vector_move_misalign): Short-cut unaligned load
10427         and store cases.  Call ix86_avx256_split_vector_move_misalign
10428         directly without checking mode class.
10429
10430 2016-04-20  Andrew Pinski  <apinski@cavium.com>
10431             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10432
10433         PR target/64971
10434         * config/aarch64/aarch64.md (sibcall): Force call
10435         address to be DImode for ILP32.
10436         (sibcall_value): Likewise.
10437
10438 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
10441
10442 2016-04-20  Richard Biener  <rguenther@suse.de>
10443
10444         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
10445         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
10446         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
10447         (maybe_push_res_to_seq): Adjust.
10448         * gimple-fold.c (maybe_build_generic_op): Likewise.
10449
10450 2016-04-20  Marek Polacek  <polacek@redhat.com>
10451
10452         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
10453         rather than true.
10454
10455 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
10456
10457         * config/i386/sse.md (vec_unpacks_lo_hi): Always
10458         use kmovw to support AVX512F target.
10459
10460 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10461
10462         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
10463
10464 2016-04-20  Marek Polacek  <polacek@redhat.com>
10465
10466         PR tree-optimization/70725
10467         * tree-if-conv.c (is_false_predicate): New function.
10468         (predicate_mem_writes): Use it.
10469
10470 2016-04-20  Richard Biener  <rguenther@suse.de>
10471
10472         PR tree-optimization/70726
10473         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
10474         shift amounts from a pattern stmt operand.
10475
10476 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10477
10478         PR target/70674
10479         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
10480         stack_restore_from_fpr pattern when restoring r15.
10481         (s390_optimize_prologue): Strip away the memory barrier in the
10482         parallel when trying to get rid of restore insns.
10483         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
10484         definition for loading the stack pointer from an FPR.  Compared to
10485         the normal move insn this pattern includes a full memory barrier.
10486
10487 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
10488
10489         PR middle-end/70680
10490         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
10491         implicitly linear or lastprivate iterator on the outer context.
10492
10493 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
10494
10495         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
10496         alignment check.
10497         * config/i386/i386.md (ssememalign): Removed.
10498         * config/i386/sse.md: Remove ssememalign attribute from patterns.
10499
10500 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
10501
10502         PR target/69201
10503         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
10504         const short * to __builtin_ia32_loaddquhi512_mask.
10505         (_mm512_maskz_loadu_epi16): Likewise.
10506         (_mm512_mask_storeu_epi16): Pass short * to
10507         __builtin_ia32_storedquhi512_mask.
10508         (_mm512_mask_loadu_epi8): Pass const char * to
10509         __builtin_ia32_loaddquqi512_mask.
10510         (_mm512_maskz_loadu_epi8): Likewise.
10511         (_mm512_mask_storeu_epi8): Pass char * to
10512         __builtin_ia32_storedquqi512_mask.
10513         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
10514         const double * to __builtin_ia32_loadupd512_mask.
10515         (_mm512_mask_loadu_pd): Likewise.
10516         (_mm512_maskz_loadu_pd): Likewise.
10517         (_mm512_storeu_pd): Pass double * to
10518         __builtin_ia32_storeupd512_mask.
10519         (_mm512_mask_storeu_pd): Likewise.
10520         (_mm512_loadu_ps): Pass const float * to
10521         __builtin_ia32_loadups512_mask.
10522         (_mm512_mask_loadu_ps): Likewise.
10523         (_mm512_maskz_loadu_ps): Likewise.
10524         (_mm512_storeu_ps): Pass float * to
10525         __builtin_ia32_storeups512_mask.
10526         (_mm512_mask_storeu_ps): Likewise.
10527         (_mm512_mask_loadu_epi64): Pass const long long * to
10528         __builtin_ia32_loaddqudi512_mask.
10529         (_mm512_maskz_loadu_epi64): Likewise.
10530         (_mm512_mask_storeu_epi64): Pass long long *
10531         to __builtin_ia32_storedqudi512_mask.
10532         (_mm512_loadu_si512): Pass const int * to
10533         __builtin_ia32_loaddqusi512_mask.
10534         (_mm512_mask_loadu_epi32): Likewise.
10535         (_mm512_maskz_loadu_epi32): Likewise.
10536         (_mm512_storeu_si512): Pass int * to
10537         __builtin_ia32_storedqusi512_mask.
10538         (_mm512_mask_storeu_epi32): Likewise.
10539         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
10540         char * to __builtin_ia32_storedquqi256_mask.
10541         (_mm_mask_storeu_epi8): Likewise.
10542         (_mm256_mask_loadu_epi16): Pass const short * to
10543         __builtin_ia32_loaddquhi256_mask.
10544         (_mm256_maskz_loadu_epi16): Likewise.
10545         (_mm_mask_loadu_epi16): Pass const short * to
10546         __builtin_ia32_loaddquhi128_mask.
10547         (_mm_maskz_loadu_epi16): Likewise.
10548         (_mm256_mask_loadu_epi8): Pass const char * to
10549         __builtin_ia32_loaddquqi256_mask.
10550         (_mm256_maskz_loadu_epi8): Likewise.
10551         (_mm_mask_loadu_epi8): Pass const char * to
10552         __builtin_ia32_loaddquqi128_mask.
10553         (_mm_maskz_loadu_epi8): Likewise.
10554         (_mm256_mask_storeu_epi16): Pass short * to.
10555         __builtin_ia32_storedquhi256_mask.
10556         (_mm_mask_storeu_epi16): Pass short * to.
10557         __builtin_ia32_storedquhi128_mask.
10558         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
10559         const double * to __builtin_ia32_loadupd256_mask.
10560         (_mm256_maskz_loadu_pd): Likewise.
10561         (_mm_mask_loadu_pd): Pass onst double * to
10562         __builtin_ia32_loadupd128_mask.
10563         (_mm_maskz_loadu_pd): Likewise.
10564         (_mm256_mask_storeu_pd): Pass double * to
10565         __builtin_ia32_storeupd256_mask.
10566         (_mm_mask_storeu_pd): Pass double * to
10567         __builtin_ia32_storeupd128_mask.
10568         (_mm256_mask_loadu_ps): Pass const float * to
10569         __builtin_ia32_loadups256_mask.
10570         (_mm256_maskz_loadu_ps): Likewise.
10571         (_mm_mask_loadu_ps): Pass const float * to
10572         __builtin_ia32_loadups128_mask.
10573         (_mm_maskz_loadu_ps): Likewise.
10574         (_mm256_mask_storeu_ps): Pass float * to
10575         __builtin_ia32_storeups256_mask.
10576         (_mm_mask_storeu_ps): ass float * to
10577         __builtin_ia32_storeups128_mask.
10578         (_mm256_mask_loadu_epi64): Pass const long long * to
10579         __builtin_ia32_loaddqudi256_mask.
10580         (_mm256_maskz_loadu_epi64): Likewise.
10581         (_mm_mask_loadu_epi64): Pass const long long * to
10582         __builtin_ia32_loaddqudi128_mask.
10583         (_mm_maskz_loadu_epi64): Likewise.
10584         (_mm256_mask_storeu_epi64): Pass long long * to
10585         __builtin_ia32_storedqudi256_mask.
10586         (_mm_mask_storeu_epi64): Pass long long * to
10587         __builtin_ia32_storedqudi128_mask.
10588         (_mm256_mask_loadu_epi32): Pass const int * to
10589         __builtin_ia32_loaddqusi256_mask.
10590         (_mm256_maskz_loadu_epi32): Likewise.
10591         (_mm_mask_loadu_epi32): Pass const int * to
10592         __builtin_ia32_loaddqusi128_mask.
10593         (_mm_maskz_loadu_epi32): Likewise.
10594         (_mm256_mask_storeu_epi32): Pass int * to
10595         __builtin_ia32_storedqusi256_mask.
10596         (_mm_mask_storeu_epi32): Pass int * to
10597         __builtin_ia32_storedqusi128_mask.
10598         * config/i386/i386-builtin-types.def (PCSHORT): New.
10599         (PINT64): Likewise.
10600         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
10601         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
10602         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
10603         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
10604         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
10605         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
10606         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
10607         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
10608         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
10609         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
10610         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
10611         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
10612         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
10613         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
10614         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
10615         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
10616         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
10617         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
10618         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
10619         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
10620         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
10621         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
10622         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
10623         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
10624         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
10625         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
10626         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
10627         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
10628         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
10629         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
10630         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
10631         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
10632         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
10633         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
10634         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
10635         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
10636         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
10637         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
10638         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
10639         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
10640         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
10641         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
10642         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
10643         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
10644         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
10645         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
10646         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
10647         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
10648         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
10649         use UNSPEC_STOREU.
10650         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
10651         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
10652         load nor store.
10653         (ix86_expand_vector_move_misalign): Likewise.
10654         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
10655         to scalar function prototype for unaligned load/store builtins.
10656         (ix86_expand_special_args_builtin): Updated.
10657         * config/i386/sse.md (UNSPEC_LOADU): Removed.
10658         (UNSPEC_STOREU): Likewise.
10659         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
10660         (VI_ULOADSTORE_F_AVX512VL): Likewise.
10661         (ssescalarsize): Handle V4TI, V2TI and V1TI.
10662         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10663         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10664         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
10665         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
10666         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10667         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10668         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10669         (<avx512>_storedqu<mode>_mask): Likewise.
10670         (*sse4_2_pcmpestr_unaligned): Likewise.
10671         (*sse4_2_pcmpistr_unaligned): Likewise.
10672         (*mov<mode>_internal): Renamed to ...
10673         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
10674         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10675         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10676         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10677
10678 2016-04-19  Richard Biener  <rguenther@suse.de>
10679
10680         PR tree-optimization/70171
10681         * tree-ssa-phiprop.c: Include stor-layout.h.
10682         (phiprop_insert_phi): Handle the aggregate copy case.
10683         (propagate_with_phi): Likewise.
10684
10685 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
10686
10687         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10688         instead of simplify_gen_subreg (... , 0).
10689         (ix86_delegitimize_address): Ditto.
10690         (ix86_split_divmod): Ditto.
10691         (ix86_split_copysign_const): Ditto.
10692         (ix86_split_copysign_var): Ditto.
10693         (ix86_expand_args_builtin): Ditto.
10694         (ix86_expand_round_builtin): Ditto.
10695         (ix86_expand_special_args_builtin): Ditto.
10696         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10697         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10698         (udivmodqi4): Ditto.
10699         (absneg splitters): Ditto.
10700         (*jcc_bt<mode>_1): Ditto.
10701
10702 2016-04-19  Richard Biener  <rguenther@suse.de>
10703
10704         PR tree-optimization/70724
10705         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10706         restoring out from ...
10707         (free_scc_vn): ... here.
10708         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10709         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10710         tail merging.
10711         (pass_fre::execute): Restore SSA info.
10712
10713 2016-04-19  Richard Biener  <rguenther@suse.de>
10714
10715         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10716         * gimple-walk.c (walk_gimple_op): Initialize it.
10717         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10718         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10719         remapping SSA names of defs.
10720         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10721         adjustment.
10722
10723 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
10724
10725         PR middle-end/70689
10726         * lra-constraints.c (equiv_substition_p): New.
10727         (process_alt_operands): Use it.
10728         (swap_operands): Swap it.
10729         (curr_insn_transform): Update it.
10730
10731 2016-04-18  Michael Matz  <matz@suse.de>
10732
10733         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10734         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10735         * tree-core.h (tree_type_common.align): Use bit-field.
10736         (tree_type_common.spare): New.
10737         (tree_decl_common.off_align): Make smaller.
10738         (tree_decl_common.align): Use bit-field.
10739
10740         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10741         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10742         (scan_sharing_clauses): Ditto.
10743         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10744         (omp_finish_file): Ditto.
10745         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10746         (layout_decl): Ditto.
10747         (relayout_decl): Ditto.
10748         (finalize_record_size): Use SET_TYPE_ALIGN.
10749         (finalize_type_size): Ditto.
10750         (finish_builtin_struct): Ditto.
10751         (layout_type): Ditto.
10752         (initialize_sizetypes): Ditto.
10753         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10754         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10755         (lookup_field_for_decl): Use SET_DECL_ALIGN.
10756         (get_chain_field): Ditto.
10757         (get_trampoline_type): Ditto.
10758         (get_nl_goto_field): Ditto.
10759         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10760         SET_DECL_ALIGN.
10761         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10762         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10763         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10764         (build_qualified_type): Use SET_TYPE_ALIGN.
10765         (build_aligned_type, build_range_type_1): Ditto.
10766         (build_atomic_base): Ditto.
10767         (build_common_tree_nodes): Ditto.
10768         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10769         (expand_one_stack_var_at): Ditto.
10770         * coverage.c (build_var): Use SET_DECL_ALIGN.
10771         * except.c (init_eh): Ditto.
10772         * function.c (assign_parm_setup_block): Ditto.
10773         * symtab.c (increase_alignment_1): Ditto.
10774         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10775         * tree-vect-stmts.c (ensure_base_align): Ditto.
10776         * varasm.c (align_variable): Ditto.
10777         (assemble_variable): Ditto.
10778         (build_constant_desc): Ditto.
10779         (output_constant_def_contents): Ditto.
10780
10781         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
10782         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
10783         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
10784         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
10785         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
10786
10787 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
10788
10789         PR target/70708
10790         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
10791         replace %vmovsd with "%vmovq".
10792         (vec_concatv2df): Likewise.
10793
10794 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
10795
10796         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
10797         (*vec_extractv2si_0): Ditto.
10798         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
10799         (zero_extended_scalar_load_operand splitters): Ditto.
10800         (vec_extract splitters): Ditto.
10801         (*vec_extractv4si_0_zext): Ditto.
10802         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
10803         and lowpart_subreg.
10804         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
10805         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
10806         (*sse4_1_extractps): Use lowpart_subreg.
10807         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
10808
10809 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10810
10811         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
10812         gld requirements.
10813         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
10814         Mention Solaris 11 packaging changes.
10815         Update gas and gld requirements.
10816         Remove reference to pre-Solaris 10 bug.
10817         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10818         systems and bugs.
10819         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10820         with cc.
10821
10822 2016-04-17  Jan Hubicka  <jh@suse.cz>
10823
10824         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10825         max_loop_iterations_int.
10826
10827 2016-04-18  Richard Biener  <rguenther@suse.de>
10828
10829         PR tree-optimization/43434
10830         * tree-ssa-structalias.c (struct vls_data): New.
10831         (visit_loadstore): Handle all pointer-based accesses.
10832         (compute_dependence_clique): Compute a bitmap of restrict tags
10833         assigned bases and pass it to visit_loadstore.
10834
10835 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10836
10837         PR target/70711
10838         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10839         armv8.1-a and armv8.1-a+crc.
10840
10841 2016-04-18  Richard Biener  <rguenther@suse.de>
10842
10843         PR tree-optimization/70701
10844         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10845         references after translating through a memcpy.
10846
10847 2016-04-18  Richard Biener  <rguenther@suse.de>
10848
10849         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10850         (compute_antic): ... here.  For partial antic use regular
10851         postorder and scrap iteration.
10852         (compute_partial_antic_aux): Remove unused return value.
10853         (init_pre): Do not allocate postorder.
10854         (fini_pre): Do not free postorder.
10855
10856 2016-04-18  Richard Biener  <rguenther@suse.de>
10857
10858         PR middle-end/37870
10859         * expmed.c (extract_bit_field_1): Remove broken case
10860         using a wider MODE_INT mode.
10861
10862 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10863
10864         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10865         unless compiling with at least GCC-4.8.
10866
10867 2016-04-17  Jan Hubicka  <jh@suse.cz>
10868
10869         PR bootstrap/70706
10870         * graphite.c (graphite_finalize): Update call to
10871         tree_estimate_probability.
10872         * predict.h (tree_estimate_probability): Update prototype.
10873
10874 2016-04-17  Jan Hubicka  <jh@suse.cz>
10875
10876         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10877         (tree_estimate_probability): Likewise.
10878         (pass_profile::execute): Update.
10879         (report_predictor_hitrates): New function.
10880         * profile.c (compute_branch_probabilities): Use it.
10881         * predict.h (report_predictor_hitrates): Declare.
10882
10883 2016-04-17  Jan Hubicka  <jh@suse.cz>
10884
10885         PR ipa/70018
10886         * cgraph.h (cgraph_node::set_const_flag,
10887         cgraph_node::set_pure_flag): Update prototype to return bool;
10888         update comment.
10889         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10890         of interposable symbol are interposable, too.
10891         (cgraph_set_const_flag_1): Rename to ...
10892         (set_const_flag_1): ... this one; change to self recursive function
10893         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10894         clearnig the flag in all variants and also virtual thunks of const
10895         functions are pure; track if any change was done.
10896         (cgraph_node::set_const_flag): Update.
10897         (struct set_pure_flag_info): New struct.
10898         (cgraph_set_pure_flag_1): Rename to ...
10899         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10900         rather than pointer encoded flags; track if any changes was done;
10901         handle correctly clearning flag and setting flag of aliases already
10902         declared const.
10903         (cgraph_node::set_pure_flag): Update.
10904         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10905
10906 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10907
10908         PR other/70433
10909         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10910         backslash in label.
10911
10912 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10913
10914         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10915         '{}<> ' as escape-for-record.
10916
10917 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10918
10919         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10920         structure.
10921
10922 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10923
10924         PR other/70185
10925         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10926         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10927         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10928         * passes.c (finish_optimization_passes): Only call
10929         finish_graph_dump_file if dfi->graph_dump_initialized.
10930         (execute_function_dump, pass_init_dump_file): Use
10931         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10932
10933 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10934
10935         PR tree-optimization/70256
10936         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10937         (debug_varmap): New function.
10938
10939 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10940
10941         PR other/70183
10942         * passes.c (pass_manager::register_pass): Propagate pflags.
10943
10944 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10945
10946         PR other/68875
10947         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10948         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10949         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10950         check if it's equal to p_start.
10951         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10952
10953 2016-04-15  Jan Hubicka  <jh@suse.cz>
10954
10955         PR ipa/70018
10956         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10957         function does not bind to current def.
10958         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10959         handle conservatively calls to functions that does not need to bind
10960         to current def.
10961         (check_call): Update call of worse_state.
10962         (ignore_edge_for_nothrow): Update.
10963         (ignore_edge_for_pure_const): Likewise.
10964         (propagate_pure_const): Update calls to worse_state.
10965         (skip_function_for_local_pure_const): Reformat comments.
10966
10967 2016-04-15  Jan Hubicka  <jh@suse.cz>
10968
10969         PR ipa/70018
10970         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
10971         (cgraph_node::function_symbol): Likewise.
10972         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10973         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
10974         (symtab_node::ultimate_alias_target): Add REF parameter.
10975         (symtab_node::binds_to_current_def_p): Declare.
10976         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
10977         (cgraph_node::function_symbol): Likewise.
10978         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10979         (cgraph_node::get_availability): Likewise.
10980         (cgraph_edge::binds_to_current_def_p): New inline function.
10981         (varpool_node::get_availability): Add REF parameter.
10982         (varpool_node::ultimate_alias_target): Likewise.
10983         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
10984         (symtab_node::binds_to_current_def_p): Likewise.
10985         * varpool.c (varpool_node::get_availability): Likewise.
10986
10987 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10988
10989         PR target/70662
10990         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
10991         Fix mode size check.
10992
10993 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10994
10995         * BASE-VER: Set to 7.0.0.
10996
10997 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
10998
10999         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11000
11001 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11002
11003         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11004         architecture revisions.
11005
11006 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
11007
11008         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11009         * config/i386/i386.c (ix86_using_red_zone): No longer static.
11010         * config/i386/i386.md (stack decrement to push peepholes): Guard
11011         with !x86_using_red_zone ().
11012
11013 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11014
11015         PR c++/70675
11016         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11017         to dump_generic_node.
11018         (NIY): Pass also flags to do_niy.
11019
11020 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11021
11022         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11023         (simd_clone_vector_of_formal_parm_types)
11024         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11025         (simd_clone_mangle, simd_clone_create)
11026         (simd_clone_adjust_return_type, create_tmp_simd_array)
11027         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11028         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11029         (ipa_simd_modify_function_body, simd_clone_linear_addend)
11030         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11031         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11032         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11033         * omp-simd-clone.c: ... this new file.
11034         (simd_clone_vector_of_formal_parm_types): Make it static.
11035         * Makefile.in (OBJS): Add omp-simd-clone.o.
11036
11037 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11038
11039         PR target/70662
11040         * config/i386/sse.md: Use proper memory operand modifiers.
11041
11042
11043 2016-04-15  Richard Biener  <rguenther@suse.de>
11044         Alan Modra  <amodra@gmail.com>
11045
11046         PR tree-optimization/70130
11047         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11048         when alignment stays not the same and no not use the realign
11049         scheme then.
11050
11051 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11052
11053         PR target/70669
11054         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11055         direct move handlers for KFmode. Change TFmode handlers test from
11056         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11057
11058 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
11059
11060         PR c++/70594
11061         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11062         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11063         (inlined_polymorphic_ctor_dtor_block_p): Use it.
11064         * tree-ssa-live.c (remove_unused_scope_block_p): When
11065         in_ctor_dtor_block, avoid discarding not just BLOCKs with
11066         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11067         block_ultimate_origin is FUNCTION_DECL.
11068         (remove_unused_locals): If current_function_decl is
11069         polymorphic_ctor_dtor_p, pass initial true to
11070         remove_unused_scope_block_p' is_ctor_dtor_block.
11071
11072 2016-04-14  Martin Sebor  <msebor@redhat.com>
11073
11074         PR c++/69517
11075         PR c++/70019
11076         PR c++/70588
11077         * doc/extend.texi (Variable Length): Revert.
11078
11079 2016-04-14  Marek Polacek  <polacek@redhat.com>
11080             Jan Hubicka  <hubicka@ucw.cz>
11081
11082         PR c++/70029
11083         * tree.c (verify_type): Disable the canonical type of main variant
11084         check.
11085
11086 2016-04-14  Jason Merrill  <jason@redhat.com>
11087
11088         * cfgexpand.c, expr.c: Revert previous change.
11089
11090 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11091
11092         PR middle-end/70643
11093         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11094         when building a mem ref for the incoming reduction variable.
11095
11096 2016-04-14  Richard Biener  <rguenther@suse.de>
11097
11098         PR tree-optimization/70614
11099         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11100         loop if the evolution dropped to chrec_dont_know.
11101         (interpret_condition_phi): Likewise.
11102
11103 2016-04-14  Richard Biener  <rguenther@suse.de>
11104
11105         PR tree-optimization/70623
11106         * tree-ssa-pre.c (changed_blocks): Make global ...
11107         (compute_antic): ... local here.  Move and fix worklist
11108         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11109         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
11110         worklist handling, dump when ANTIC_IN changed.
11111         (compute_partial_antic_aux): Remove worklist handling.
11112         (init_pre): Do not compute post dominators.  Add a comment about
11113         the CFG order chosen.
11114         (fini_pre): Do not free post dominators.
11115
11116 2016-04-13  Martin Sebor  <msebor@redhat.com>
11117
11118         PR c++/69517
11119         PR c++/70019
11120         PR c++/70588
11121         * doc/extend.texi (Variable Length): Document C++ specifics.
11122
11123 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11124
11125         PR c++/70641
11126         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11127         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
11128         eh edges have been purged.
11129
11130         PR c++/70594
11131         * tree-sra.c (create_access_replacement,
11132         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11133         gets fancy name.
11134         * tree-pretty-print.c (dump_fancy_name): New function.
11135         (dump_decl_name, dump_generic_node): Use it.
11136
11137 2016-04-13  Jason Merrill  <jason@redhat.com>
11138
11139         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11140         * expr.c (expand_expr_real_1): Likewise.
11141
11142 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11143
11144         * config/i386/i386.md (kunpckhi): Swap operands.
11145         (kunpcksi): Likewise.
11146         (kunpckdi): Likewise.
11147         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11148         (vec_pack_trunc_<mode>): Likewise.
11149
11150 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11151
11152         PR debug/70628
11153         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11154
11155         PR middle-end/70633
11156         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11157         gimplification turns some element into non-constant.
11158
11159         PR debug/70628
11160         * rtl.h (convert_memory_address_addr_space_1): New prototype.
11161         * explow.c (convert_memory_address_addr_space_1): No longer static,
11162         add NO_EMIT argument and don't call convert_modes if true, pass
11163         it down recursively, remove break after return.
11164         (convert_memory_address_addr_space): Adjust caller.
11165         * simplify-rtx.c (simplify_unary_operation_1): Call
11166         convert_memory_address_addr_space_1 instead of convert_memory_address,
11167         if it returns NULL, don't simplify.
11168
11169 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11170
11171         PR target/70630
11172         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11173
11174 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11175
11176         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11177         Bump the upper SIMDLEN limits, so that if the return type or
11178         characteristic type if the return type is void can be passed in
11179         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11180         allowed.
11181
11182 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11183
11184         PR target/70640
11185         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11186         Do not use "=" constraint on an input constraint.
11187         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11188         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11189         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11190         generates (neg (abs ...)) instead of (abs ...).
11191
11192 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11193
11194         PR rtl-optimization/70596
11195         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11196         just invalidate LRA data and reset them.  Adjust dump wording.
11197
11198 2016-04-12  Martin Liska  <mliska@suse.cz>
11199
11200         Revert
11201         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11202
11203         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11204         estimates here.
11205         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11206         max_loop_iterations_int.
11207         (tree_unswitch_outer_loop): Likewise.
11208         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11209         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11210
11211 2016-04-12  Tom de Vries  <tom@codesourcery.com>
11212
11213         PR tree-optimization/68756
11214         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11215         instead of new_name.
11216
11217 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11218
11219         PR tree-optimization/70602
11220         * tree-sra.c (generate_subtree_copies): Don't write anything into
11221         constant pool decls.
11222
11223         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11224         regardless whether there are depend clauses or not.
11225
11226 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11227
11228         PR target/70381
11229         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11230         target attribute and pragma from changing the -mfloat128
11231         and -mfloat128-hardware options.
11232
11233         * doc/extend.texi (Additional Floating Types): Document PowerPC
11234         __float128 restrictions.
11235
11236 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11237
11238         PR target/70133
11239         * config/aarch64/driver-aarch64.c
11240         (aarch64_get_extension_string_for_isa_flags): New.
11241         (arch_extension): Rename to...
11242         (aarch64_arch_extension): ...This.
11243         (ext_to_feat_string): Rename to...
11244         (aarch64_extensions): ...This.
11245         (aarch64_core_data): Keep track of architecture extension flags.
11246         (cpu_data): Rename to...
11247         (aarch64_cpu_data): ...This.
11248         (aarch64_arch_driver_info): Keep track of architecture extension
11249         flags.
11250         (get_arch_name_from_id): Rename to...
11251         (get_arch_from_id): ...This, change return type.
11252         (host_detect_local_cpu): Update and reformat for renames, handle
11253         extensions through common infrastructure.
11254
11255 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11256
11257         PR target/70133
11258         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
11259         track of a canonical flag name.
11260         (all_extensions): Likewise.
11261         (arch_to_arch_name): Also track extension flags enabled by the arch.
11262         (all_architectures): Likewise.
11263         (aarch64_parse_extension): Move to here.
11264         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
11265         rework.
11266         (aarch64_rewrite_selected_cpu): Update for above change.
11267         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
11268         are handled, such that the single explicit value enabled by an
11269         extension is kept seperate from the implicit values it also enables.
11270         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
11271         to here.
11272         (aarch64_parse_extension): New.
11273         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
11274         here to config/aarch64/aarch64-protos.h.
11275         (aarch64_parse_extension): Move from here to
11276         common/config/aarch64/aarch64-common.c.
11277         (aarch64_option_print): Update.
11278         (aarch64_declare_function_name): Likewise.
11279         (aarch64_start_file): Likewise.
11280         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
11281         the canonical flag for extensions.
11282         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
11283         flags.
11284
11285 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11286
11287         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
11288         AARCH64_FL_CRC.
11289
11290 2016-04-09  Tom de Vries  <tom@codesourcery.com>
11291
11292         PR tree-optimization/68953
11293         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
11294         first to last subscript.
11295
11296 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
11297
11298         PR tree-optimization/70586
11299         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
11300         for any calls.
11301
11302 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
11303
11304         PR lto/70289
11305         PR ipa/70348
11306         PR tree-optimization/70373
11307         PR middle-end/70533
11308         PR middle-end/70534
11309         PR middle-end/70535
11310         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
11311         clauses for acc parallel reductions as necessary.  Error on those
11312         that are private.
11313         * omp-low.c (scan_sharing_clauses): Don't install variables which
11314         are used in acc parallel reductions.
11315         (lower_rec_input_clauses): Remove dead code.
11316         (lower_oacc_reductions): Add support for reference reductions.
11317         (lower_reduction_clauses): Remove dead code.
11318         (lower_omp_target): Don't remap variables appearing in acc parallel
11319         reductions.
11320         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
11321
11322 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
11323
11324         PR middle-end/70593
11325         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
11326         with multiple SSA_NAME defs, force the outputs other than first
11327         to be live before calling live_track_process_def on each output.
11328
11329         PR rtl-optimization/70574
11330         * fwprop.c (forward_propagate_and_simplify): Don't add
11331         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
11332         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
11333         paradoxical subregs within *loc.
11334
11335 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
11336
11337         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
11338         -ftree-parallelize-loops={0,1}.
11339         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11340         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11341         * config/ia64/hpux.h (LIB_SPEC): Likewise.
11342         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11343         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11344
11345 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
11346
11347         PR sanitizer/70541
11348         * asan.c (instrument_derefs): If we get unknown location, extract it
11349         with EXPR_LOCATION.
11350         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
11351
11352 2016-04-08  Tom de Vries  <tom@codesourcery.com>
11353
11354         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
11355         implicit firstprivate clause.
11356
11357 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11358
11359         PR target/70566
11360         * config/arm/thumb2.md (tst + branch-> lsls + branch
11361         peephole below *orsi_not_shiftsi_si): Require that condition
11362         register is dead after the peephole.
11363         (second peephole after the above): Likewise.
11364
11365 2016-04-08  Alan Modra  <amodra@gmail.com>
11366
11367         PR target/70117
11368         * builtins.c (fold_builtin_classify): For IBM extended precision,
11369         look at just the high-order double to test for NaN.
11370         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
11371         test just the high double for Inf but both doubles for subnormal
11372         limit.
11373
11374 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
11375
11376         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
11377         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
11378         node->simdclone->mask_mode != VOIDmode masks.
11379         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
11380         earlier, use it instead of node->simdclone.
11381         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11382         Set clonei->mask_mode.
11383
11384 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11385
11386         PR c/70436
11387         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
11388         Pass it through to cp_parser_already_scoped_statement.
11389         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
11390         it through to cp_parser_statement.
11391         (cp_parser_statement): Pass IF_P through to
11392         cp_parser_iteration_statement.
11393         (cp_parser_pragma): Adjust call to
11394         cp_parser_iteration_statement.
11395
11396 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11397
11398         PR c/70436
11399         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
11400         resolve a future -Wparentheses warning.
11401         * omp-low.c (scan_sharing_clauses): Likewise.
11402         * tree-parloops.c (eliminate_local_variables): Likewise.
11403
11404 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
11405
11406         PR rtl-optimization/70398
11407         * lra-constraints.c (process_address_1): Check zero scale and code
11408         for reloading with zero scale.
11409
11410 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
11411
11412         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
11413         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
11414
11415 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
11416
11417         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11418         Add support for AVX512F clones, include them by default for
11419         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
11420         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
11421         up to 128.
11422
11423         PR middle-end/70550
11424         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
11425         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
11426         firstprivate clauses.
11427         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
11428         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
11429         (lower_omp_target): Set TREE_NO_WARNING for
11430         non-addressable possibly uninitialized vars which are copied into
11431         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
11432
11433 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
11434
11435         * config/pa/predicates.md (integer_store_memory_operand): Accept
11436         REG+D operands with a large offset when reload_in_progress is true.
11437         (floating_point_store_memory_operand): Likewise.
11438
11439 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11440
11441         PR c++/70336
11442         * match.pd (nested int casts): Limit to GIMPLE.
11443
11444 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
11445
11446         PR ipa/66223
11447         * ipa-devirt.c (maybe_record_node): Fix comment; use
11448         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
11449
11450 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR rtl-optimization/70542
11453         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
11454         if there are any uses other than insn or debug insns.
11455
11456 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
11457             Jakub Jelinek  <jakub@redhat.com>
11458
11459         PR tree-optimization/70509
11460         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
11461         Shift HOST_WIDE_INT_1U instead of 1.
11462
11463 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
11464
11465         PR tree-optimization/70509
11466         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
11467         of the vector base type for index.
11468
11469 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
11470
11471         PR target/70510
11472         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
11473
11474 2016-04-05  Richard Biener  <rguenther@suse.de>
11475
11476         PR tree-optimization/70526
11477         * tree-sra.c (build_ref_for_offset): Use prev_base to
11478         extract the alias pointer type.
11479
11480 2016-04-05  Richard Biener  <rguenther@suse.de>
11481
11482         * dse.c (struct store_info): Remove alias_set member.
11483         (struct read_info_type): Likewise.
11484         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
11485         spill_deleted, clear_alias_set_lookup): Remove.
11486         (get_group_info): Remove dead base == NULL_RTX case.
11487         (dse_step0): Remove initialization of removed variables.
11488         (delete_dead_store_insn): Reomve alias set dumping.
11489         (free_read_records): Remove alias_set handling.
11490         (canon_address): Remove alias_set_out parameter.
11491         (record_store): Remove spill_alias_set, it's always zero.
11492         (check_mem_read_rtx): Likewise.
11493         (dse_step2): Rename from ...
11494         (dse_step2_nospill): ... this.  Adjust.
11495         (scan_stores): Rename from ...
11496         (scan_stores_nospill): ... this.
11497         (scan_reads): Rename from ...
11498         (scan_reads_nospill): ... this.
11499         (scan_stores_spill, scan_reads_spill): Remove.
11500         (dse_step3_scan): Remove for_spills argument which is always false.
11501         (dse_step3): Likewise.
11502         (dse_step5): Rename from ...
11503         (dse_step5_nospill): ... this.  Remove alias_set handling.
11504         (rest_of_handle_dse): Adjust.
11505
11506 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR target/70525
11509         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
11510         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
11511         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
11512         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
11513
11514 2016-04-05  Richard Biener  <rguenther@suse.de>
11515
11516         PR middle-end/70499
11517         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
11518         non-register type temporaries into SSA.
11519
11520 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
11521
11522         PR ipa/66223
11523         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
11524         calls when sanitizing.
11525         (possible_polymorphic_call_target_p): Fix formatting.
11526
11527 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11528             Jakub Jelinek <jakub@redhat.com>
11529
11530         PR middle-end/70457
11531         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
11532         to ensure a call statement is compatible with a built-in's
11533         prototype.
11534         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
11535         Likewise.
11536
11537 2016-04-04  Richard Biener  <rguenther@suse.de>
11538
11539         PR rtl-optimization/70484
11540         * rtl.h (canon_output_dependence): Declare.
11541         * alias.c (canon_output_dependence): New function.
11542         * dse.c (record_store): Use canon_output_dependence rather
11543         than canon_true_dependence.
11544
11545 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11546
11547         PR ipa/68881
11548         * cgraph.h (symtab_node::copy_visibility_from): New function.
11549         * symtab.c (symtab_node::copy_visibility_from): New function.
11550         * ipa-visibility.c (optimize_weakref): New function.
11551         (function_and_variable_visibility): Use it.
11552
11553 2016-04-04  Martin Liska  <mliska@suse.cz>
11554
11555         PR hsa/70402
11556         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
11557         value that is really in range handled by SBR instruction.
11558         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
11559         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
11560         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
11561
11562 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
11563
11564         PR target/70416
11565         PR target/67391
11566         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
11567         set, but not for SP_REG operands.
11568
11569 2016-04-02  Martin Sebor  <msebor@redhat.com>
11570
11571         PR c++/67376
11572         * fold-const.c (maybe_nonzero_address): New function.
11573         (fold_comparison): Call it.  Fold equality and relational
11574         expressions involving null pointers.
11575         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
11576
11577 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
11578
11579         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
11580         the "Y" constraint (scalar FP 0.0 immediate).
11581
11582         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
11583         Add the "const_double" to the list of operand constraints.
11584
11585 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
11586
11587         PR rtl-optimization/70467
11588         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
11589         If low word of the last operand is 0, just emit addition/subtraction
11590         for the high word.
11591
11592 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11593
11594         PR target/70404
11595         * config/s390/s390.c (s390_expand_insv): Check for everything
11596         constant instead of just VOIDmode stuff.
11597
11598 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11599
11600         PR target/70496
11601         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
11602
11603 2016-04-01  Nathan Sidwell  <nathan@acm.org>
11604
11605         * tree.def (TRY_CATCH_EXPR): Correct documentation.
11606
11607 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11608
11609         PR rtl-optimization/70461
11610         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
11611         is necessary.
11612
11613 2016-03-31  Martin Liska  <mliska@suse.cz>
11614
11615         PR hsa/70399
11616         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
11617         a tree value or an immediate integer value to a buffer
11618         that is eventually copied to a BRIG section.
11619         (emit_immediate_operand): Call the function here.
11620         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
11621         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
11622         of class' fields that are removed.
11623         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
11624         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
11625         m_brig_repr_size fields.
11626
11627 2016-03-31  Martin Liska  <mliska@suse.cz>
11628
11629         PR hsa/70391
11630         * hsa-gen.c (hsa_function_representation::update_dominance): New
11631         function.
11632         (convert_addr_to_flat_segment): Likewise.
11633         (gen_hsa_memory_set): New alignment argument.
11634         (gen_hsa_ctor_assignment): Likewise.
11635         (gen_hsa_insns_for_single_assignment): Provide alignment
11636         to gen_hsa_ctor_assignment.
11637         (gen_hsa_insns_for_direct_call): Add new argument.
11638         (expand_lhs_of_string_op): New function.
11639         (expand_string_operation_builtin): Likewise.
11640         (expand_memory_copy): New function.
11641         (expand_memory_set): New function.
11642         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
11643         (convert_switch_statements): Change signature.
11644         (generate_hsa): Use a return value of the function.
11645         (pass_gen_hsail::execute): Do not call
11646         convert_switch_statements here.
11647         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
11648         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
11649         (hsa_function_representation::update_dominance): New function.
11650
11651 2016-03-31  Martin Liska  <mliska@suse.cz>
11652
11653         PR hsa/70391
11654         * hsa-brig.c (emit_directive_variable): Emit alignment
11655         according to hsa_symbol::m_align.
11656         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
11657         (dump_hsa_symbol): Dump alignment of HSA symbols.
11658         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
11659         (gen_hsa_addr_with_align): New function.
11660         (hsa_bitmemref_alignment): Use newly added function.
11661         (gen_hsa_insns_for_load): Likewise.
11662         (gen_hsa_insns_for_store): Likewise.
11663         (gen_hsa_memory_copy): New argument added.
11664         (gen_hsa_insns_for_single_assignment): Respect
11665         alignment for assignments processed via gen_hsa_memory_copy.
11666         (gen_hsa_insns_for_direct_call): Likewise.
11667         (gen_hsa_insns_for_return): Likewise.
11668         (gen_function_def_parameters): Set default alignment.
11669         * hsa.c (hsa_object_alignment): New function.
11670         (hsa_byte_alignment): Pasted function.
11671         * hsa.h (hsa_symbol::m_align): New field.
11672
11673 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11674
11675         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11676         scratch field for goto case.
11677
11678 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
11679
11680         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11681
11682 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
11683
11684         PR target/70442
11685         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11686         (scalar_chain::convert_insn): Call convert_op for reg
11687         moves to handle undefined registers.
11688
11689 2016-03-31  Nathan Sidwell  <nathan@acm.org>
11690
11691         PR c++/70393
11692         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11693         Assert we don't want to move backwards.
11694
11695 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11696
11697         PR target/70453
11698         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11699
11700 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
11701
11702         PR rtl-optimization/70460
11703         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11704         with operand from REG_LABEL_OPERAND, instead substitute
11705         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11706         Don't do anything for REG_NON_LOCAL_GOTO jumps.
11707
11708 2016-03-31  Martin Liska  <mliska@suse.cz>
11709
11710         * passes.c (execute_one_pass): Do not call
11711         todo_after for a discarded function.
11712
11713 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11714
11715         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11716         (no_cost, infinite_cost): Initialize the new field.
11717         (get_computation_cost_at): Record setup cost.
11718         (determine_use_iv_cost_address): Skip cost computation for sub
11719         uses if we can estimate it without losing accuracy.
11720
11721 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11722
11723         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11724         estimates here.
11725         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11726         max_loop_iterations_int.
11727         (tree_unswitch_outer_loop): Likewise.
11728         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11729         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11730
11731 2016-03-30  Richard Biener  <rguenther@suse.de>
11732
11733         PR middle-end/70450
11734         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11735
11736 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
11737
11738         PR target/70421
11739         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11740         in gen_blendm expander.
11741
11742 2016-03-30  Nick Clifton  <nickc@redhat.com>
11743
11744         PR target/62254
11745         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11746         case where we are already provided with an SImode SUBREG.
11747
11748 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11749
11750         PR target/70439
11751         * config/i386/i386.c (ix86_expand_epilogue): Properly check
11752         conflict between DRAP register and __builtin_eh_return.
11753
11754 2016-03-30  Michael Matz  <matz@suse.de>
11755             Richard Biener  <rguenther@suse.de>
11756
11757         PR ipa/12392
11758         * ipa-polymorphic-call.c (struct type_change_info): Change
11759         speculative to an unsigned allowing to limit the work we do.
11760         (csftc_abort_walking_p): New inline function..
11761         (check_stmt_for_type_change): Limit the number of may-defs
11762         skipped for speculative devirtualization to
11763         max-speculative-devirt-maydefs.
11764         * params.def (max-speculative-devirt-maydefs): New param.
11765         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11766
11767 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
11768
11769         PR target/63890
11770         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11771         and TARGET_MACHO.
11772
11773 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
11774
11775         PR tree-optimization/59124
11776         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
11777         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
11778
11779 2016-03-29  Jeff Law  <law@redhat.com>
11780
11781         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
11782
11783 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11784
11785         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
11786         to HOST_WIDE_INT.
11787
11788 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11789
11790         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
11791         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
11792         gcrt0.o if linking dynamically.
11793
11794 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11795
11796         PR ipa/70283
11797         * ipa-devirt.c (methods_equal_p): New function.
11798         (compare_virtual_tables): Use it.
11799         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
11800         * cgraphclones.c (clone_function_name_1): Use
11801         symbol_table::symbol_suffix_separator.
11802         * coverage.c (build_var): Likewise.
11803         * symtab.c (symbol_table::symbol_suffix_separator): New.
11804
11805 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
11806
11807         PR rtl-optimization/70429
11808         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
11809         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
11810         mode != result_mode.
11811
11812         PR c++/70353
11813         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
11814
11815         PR tree-optimization/70405
11816         * ssa-iterators.h (num_imm_uses): Add missing braces.
11817
11818 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11819
11820         PR rtl-optimization/68695
11821         * ira-color.c (allocno_copy_cost_saving): New.
11822         (improve_allocation): Use it.
11823
11824 2016-03-29  Richard Henderson  <rth@redhat.com>
11825
11826         PR middle-end/70355
11827         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11828
11829 2016-03-29  Richard Biener  <rguenther@suse.de>
11830
11831         PR middle-end/70424
11832         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11833         use alignment returned by get_pointer_alignment_1 if it is
11834         bigger than BITS_PER_UNIT.
11835         * builtins.c (get_pointer_alignment_1): Do not return true
11836         for alignment extracted from SSA info.
11837
11838 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11839
11840         * config/ft32/ft32.opt (mnodiv): New.
11841         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11842         * doc/invoke.texi (FT32 Options -mnodiv): New.
11843
11844 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11845
11846         PR target/70406
11847         * config/i386/i386.md (define_split, andn): Fix modes.
11848
11849 2016-03-26  Richard Biener  <rguenther@suse.de>
11850             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11851
11852         PR ipa/70366
11853         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11854         instead of
11855         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11856         as 2nd argument to cl_optimization_restore().
11857
11858 2016-03-25  Richard Henderson  <rth@redhat.com>
11859
11860         PR target/70120
11861         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11862         * config/aarch64/aarch64-protos.h: Declare it.
11863         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11864
11865 2016-03-25  Alan Modra  <amodra@gmail.com>
11866
11867         PR target/70052
11868         * config/rs6000/constraints.md (j): Simplify.
11869         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11870         decimal float 0.D.
11871         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11872         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11873          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11874         in all constraint alternatives.
11875         (movtd_64bit_nodm): Delete "j" constraint alternative.
11876
11877 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11878
11879         * tree-ssa-propagate.c: Enhance docs for
11880         SSA_PROP_NOT_INTERESTING.
11881
11882 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11883
11884         * doc/extend.texi: Fix typo in documentation to pure attribute.
11885
11886 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11887
11888         PR target/70319
11889         * config/pa/pa.md (bswapdi2): Use a scratch register.
11890
11891 2016-03-24  Richard Henderson  <rth@redhat.com>
11892
11893         PR middle-end/69845
11894         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11895         overflow.
11896
11897 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11898
11899         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11900         using ix86_expand_binary_operator instead of gen_andsi3.
11901
11902 2016-03-24  Richard Biener  <rguenther@suse.de>
11903
11904         PR tree-optimization/70396
11905         * tree-vect-stmts.c (vectorizable_comparison): Use
11906         get_vectype_for_scalar_type.
11907
11908 2016-03-24  Richard Biener  <rguenther@suse.de>
11909
11910         PR middle-end/70370
11911         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11912         with register bases.
11913
11914 2016-03-24  Richard Biener  <rguenther@suse.de>
11915
11916         PR tree-optimization/70372
11917         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11918         build_all_ones_cst to also handle vector types correctly.
11919
11920 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11921
11922         PR target/70381
11923         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11924         -mfloat128 here.
11925
11926 2016-03-23  Marek Polacek  <polacek@redhat.com>
11927
11928         PR c++/69884
11929         * doc/invoke.texi: Document -Wignored-attributes.
11930
11931 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11932
11933         PR tree-optimization/69042
11934         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11935         parameter from 30 to 40.
11936
11937 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11938
11939         PR tree-optimization/69042
11940         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11941         for use with constant offset stripped in base.
11942
11943 2016-03-23  Richard Biener  <rguenther@suse.de>
11944
11945         PR middle-end/70251
11946         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11947         mode compatibility check.
11948         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11949
11950 2016-03-23  Jeff Law  <law@redhat.com>
11951
11952         PR tree-optimization/64058
11953         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11954         CONFLICT_COUNT.
11955         (struct ssa_conflicts): Move up earlier in the file.
11956         (conflicts_, var_map_): New static variables.
11957         (initialize_conflict_count): New function to initialize the
11958         CONFLICT_COUNT field for each conflict pair.
11959         (compare_pairs): Lazily initialize the conflict count and use it
11960         as the first tie-breaker.
11961         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
11962         and wipe conflicts_ and map_ around the call to qsort.  Remove
11963         special case for 2 coalesce pairs.
11964         * bitmap.c (bitmap_count_unique_bits): New function.
11965         (bitmap_count_bits_in_word): New function, extracted from
11966         bitmap_count_bits.
11967         (bitmap_count_bits): Use bitmap_count_bits_in_word.
11968         * bitmap.h (bitmap_count_unique_bits): Declare it.
11969
11970 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
11971
11972         PR target/69917
11973         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
11974         transparent alias chain for decl assembler name.
11975         * config/sol2.c (solaris_assemble_visibility): Likewise.
11976
11977 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11978
11979         * config/arm/arm1020e.md (1020call_op): Reduce reservation
11980         duration.
11981         (v10_fdivs): Likewise.
11982         (v10_fdivd): Likewise.
11983
11984 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11985
11986         PR driver/70132
11987         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
11988         to not call fclose twice on file.
11989
11990 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11991
11992         PR tree-optimization/70354
11993         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11994         oprnd0 is wider than oprnd1 and there is a cast from the wider
11995         type to oprnd1, mask it with the mask of the narrower type.
11996
11997         PR target/70321
11998         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
11999         Optimize TARGET_STV splitters, if high or low word of last argument
12000         is 0 or -1.
12001
12002 2016-03-22  Jeff Law  <law@redhat.com>
12003
12004         PR target/70232
12005         tree-ssa-threadbackward.c
12006         (fsm_find_control_statement_thread_paths): Correctly distinguish
12007         between old style jump threads vs FSM jump threads.
12008
12009 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
12010
12011         PR target/70302
12012         * config/i386/i386.c (scalar_chain::convert_op): Support
12013         uninitialized register usage case.
12014
12015 2016-03-22  Richard Biener  <rguenther@suse.de>
12016
12017         PR middle-end/70251
12018         * genmatch.c (gen_transform): Adjust last parameter to a three-state
12019         int...
12020         (capture::gen_transform): ... to change behavior when substituting
12021         a condition into cond or not-cond expr context.
12022         (dt_simplify::gen_1): Adjust.
12023         * gimple-match-head.c: Include gimplify.h for unshare_expr.
12024         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12025         last change and instead change to
12026         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12027         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12028
12029 2016-03-22  Anthony Green  <green@moxielogic.com>
12030
12031         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
12032         issue for moxiebox targets.
12033         (CC1PLUS_SPEC): Ditto.
12034
12035 2016-03-22  Richard Biener  <rguenther@suse.de>
12036
12037         PR middle-end/70333
12038         * fold-const.c (extract_muldiv_1): Properly perform multiplication
12039         in the wide type.
12040
12041 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12042
12043         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12044
12045 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12046
12047         PR target/70325
12048         * config/i386/i386.c (def_builtin): Handle
12049         OPTION_MASK_ISA_AVX512VL to be and-ed with other
12050         bits.
12051         (const struct builtin_description bdesc_special_args[]):
12052         Remove duplicate ISA bits.
12053
12054 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
12055
12056         PR target/70329
12057         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12058         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
12059         in a way that works also for AVX512BW.
12060
12061         PR target/70300
12062         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12063         instead of source if operands[1] is xmm16 and above and
12064         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
12065         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12066
12067         PR c++/70295
12068         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12069         on assign if (*from_p) is a comparison, set it to
12070         TREE_NO_WARNING (*from_p).
12071
12072 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12073
12074         PR middle-end/70326
12075         * lra.c (restore_scratches): Ignore deleted insns.
12076
12077 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
12078             Jakub Jelinek  <jakub@redhat.com>
12079
12080         PR tree-optimization/70317
12081         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12082         to HONOR_NANS.
12083
12084 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
12085
12086         PR target/70327
12087         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12088         of ix86_expand_move.
12089         (movoi): Ditto.
12090         (movti): Use general_operand for operand 1 predicate.
12091
12092 2016-03-21  Martin Liska  <mliska@suse.cz>
12093
12094         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12095         insns.
12096         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12097
12098 2016-03-21  Martin Liska  <mliska@suse.cz>
12099
12100         PR ipa/70306
12101         * ipa-icf.c (sem_function::parse): Skip static
12102         constructors and destructors.
12103
12104 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12105
12106         PR target/70296
12107         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12108         function-like macro, peek following token(s) if it is followed
12109         by CPP_OPEN_PAREN token with optional padding in between, and
12110         if not, don't treat it like a macro.
12111
12112 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12113             Alexander Monakov  <amonakov@ispras.ru>
12114
12115         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12116         for the stabs debug format.
12117
12118 2016-03-21  Richard Biener  <rguenther@suse.de>
12119
12120         PR tree-optimization/70310
12121         * tree-vect-generic.c (expand_vector_condition): Fold the built
12122         condition.
12123
12124 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
12125
12126         PR target/70293
12127         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12128         Block third alternative for AVX-512VL target,
12129
12130 2016-03-21  Martin Liska  <mliska@suse.cz>
12131
12132         PR hsa/70234
12133         * hsa-brig.c (emit_function_directives): Mark unemitted
12134         global variables for emission.
12135         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12136         (get_symbol_for_decl): Likewise.
12137         * hsa.h (struct hsa_symbol): New flag.
12138
12139 2016-03-21  Richard Biener  <rguenther@suse.de>
12140
12141         PR tree-optimization/70288
12142         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12143         we do not estimate unsimplified all-constant conditionals or
12144         switches as optimized away.
12145
12146 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
12147
12148         PR rtl-optimization/69102
12149         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12150         when we have a readonly dependency context.
12151
12152 2016-03-18  Jeff Law  <law@redhat.com>
12153
12154         PR rtl-optimization/70263
12155         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12156         (update_equiv_regs): When trying to move a store to after the insn
12157         that sets the source of the store, make sure the store occurs after
12158         the insn that sets the source of the store.  When successful note
12159         the REG_EQUIV note created in the dump file.
12160
12161 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
12162             Bernd Schmidt  <bschmidt@redhat.com>
12163
12164         * doc/extend.texi: Document more potential problems with basic asms.
12165
12166 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
12167
12168         PR rtl-optimization/70278
12169         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12170         VOIDmode.
12171
12172 2016-03-18  Jason Merrill  <jason@redhat.com>
12173
12174         * calls.c (load_register_parameters): Fix zero size sibcall logic.
12175
12176 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12177
12178         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12179         values to 128b regs.
12180
12181 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12182
12183         PR tree-optimization/70252
12184         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12185         boolean vector has a proper number of elements.
12186         (supportable_narrowing_operation): Likewise.
12187
12188 2016-03-18  Tom de Vries  <tom@codesourcery.com>
12189
12190         PR ipa/70269
12191         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12192
12193 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
12194
12195         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12196         instead of replace_rtx for DEBUG_INSNs.
12197
12198 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12199
12200         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12201         load type reservations.
12202
12203 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
12204
12205         PR target/70188
12206         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
12207         define_constraint for "Q" and "T" constraints.
12208
12209 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
12210
12211         Tweak the pipeline model for Exynos M1
12212
12213         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
12214         model.
12215
12216 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
12217
12218         PR c/70264
12219         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12220         where one or both locations aren't within a line_map.
12221
12222 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12223
12224         PR driver/70192
12225         * opts.c (finish_options): Don't set flag_pie to the default if
12226         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
12227         if it is -1.
12228
12229 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12230
12231         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12232         true as ALL_REGS argument to replace_rtx.
12233
12234 2016-03-17  Richard Biener  <rguenther@suse.de>
12235
12236         PR debug/70271
12237         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12238         last.
12239
12240 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12241
12242         PR target/70245
12243         * rtl.h (replace_rtx): Add ALL_REGS argument.
12244         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
12245         equality and assert mode is the same, instead of just rtx pointer
12246         equality.
12247         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12248         true as ALL_REGS argument to replace_rtx.
12249
12250 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
12251
12252         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12253         for boolean vector with vector mode only.
12254         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12255
12256 2016-03-17  Nick Clifton  <nickc@redhat.com>
12257
12258         PR target/70162
12259         * config/rx/rx.c (rx_print_integer): Print negative constants in
12260         decimal.
12261
12262 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12263
12264         PR target/70261
12265         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
12266
12267 2016-03-16  Richard Henderson  <rth@redhat.com>
12268             Richard Biener  <rguenth@suse.de>
12269
12270         PR middle-end/70240
12271         PR middle-end/68215
12272         PR tree-opt/68714
12273         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
12274         first operand as is_gimple_condexpr.
12275
12276         PR middle-end/70240
12277         PR middle-end/68215
12278         Revert r231575
12279         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
12280         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
12281         Do not gimplify the result.
12282         (do_unop): Adjust call to tree_vec_extract.
12283         (do_binop): Likewise.
12284         (do_compare): Likewise.
12285         (do_plus_minus): Likewise.
12286         (do_negate): Likewise.
12287         (expand_vector_condition): Likewise.
12288         (do_cond): Likewise.
12289
12290 2016-03-16  Richard Henderson  <rth@redhat.com>
12291
12292         PR target/70048
12293         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
12294         (aarch64_classify_address): Use it.
12295         (aarch64_legitimize_address): Force all subexpressions of PLUS
12296         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
12297
12298 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
12299             Richard Biener  <rguenth@suse.de>
12300
12301         PR target/70245
12302         * rtlanal.c (replace_rtx): For REG, if from is a REG,
12303         return to even if only REGNO is equal, and assert
12304         mode is the same.
12305
12306 2016-03-11  Jeff Law  <law@redhat.com>
12307
12308         PR rtl-optimization/70224
12309         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
12310
12311 2016-03-16  Richard Henderson  <rth@redhat.com>
12312
12313         PR middle-end/70199
12314         * function.h (struct function): Add has_forced_label_in_static.
12315         * gimplify.c (force_labels_r): Set it.
12316         * lto-streamer-in.c (input_struct_function_base): Read it.
12317         * lto-streamer-out.c (output_struct_function_base): Write it.
12318         * tree-inline.c (has_label_address_in_static_1): Remove.
12319         (copy_forbidden): Remove fndecl parameter; test
12320         has_forced_label_in_static.
12321         (inline_forbidden_p): Update call to copy_forbidden.
12322         (tree_versionable_function_p): Likewise.
12323         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
12324         (chkp_versioning): Likewise.
12325         * tree-inline.h (copy_forbidden): Update decl.
12326
12327 2016-03-16  Marek Polacek  <polacek@redhat.com>
12328
12329         PR c/70093
12330         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
12331         function being thunked if the result type doesn't have fixed size.
12332         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
12333         doesn't have fixed size.
12334
12335 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
12336
12337         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
12338         reporting malformed loop nest.
12339
12340 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12341
12342         PR lto/70187
12343         * ipa-devirt.c (possible_polymorphic_call_targets): Move
12344         nodes.length () == 1 test to before first nodes[0] access.
12345
12346 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12347
12348         PR tree-optimization/68715
12349         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
12350         single_pred_p test.
12351
12352 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12353
12354         PR tree-optimization/68809
12355         * graphite-scop-detection.c (same_close_phi_node): Test if result types
12356         are the same.
12357
12358 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
12359             Sandra Loosemore  <sandra@codesourcery.com>
12360
12361         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
12362         on leaf attribute. Mention ELF interposition problems.
12363
12364 2016-03-16  Alan Modra  <amodra@gmail.com>
12365
12366         PR rtl-optimization/69195
12367         PR rtl-optimization/47992
12368         * ira.c (indirect_jump_optimize): Ignore artificial defs.
12369         Add comments.
12370
12371 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
12372
12373         PR bootstrap/69513
12374         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
12375
12376 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12377
12378         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
12379
12380 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
12381
12382         PR rtl-optimization/70222
12383         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
12384         optimization if mode is different from result_mode, queue up masking
12385         of the result in outer_op.  Formatting fix.
12386
12387         PR middle-end/70239
12388         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
12389         of safe_grow.
12390
12391 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12392
12393         PR rtl-optimization/69032
12394         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
12395         looping backwards over basic block insns.
12396
12397 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12398
12399         PR target/66660
12400         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
12401         to non-speculative when propagating trap bits.
12402
12403 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12404
12405         PR rtl-optimization/63384
12406         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
12407         DEBUG_INSN_P insns.
12408
12409 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12410
12411         PR target/64411
12412         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
12413         factored out from ...
12414         (sched_analyze_insn): ... here.
12415         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
12416         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
12417         get_implicit_reg_pending_clobbers in it.
12418         (setup_id_reg_sets): Use setup_id_implicit_regs.
12419         (deps_init_id): Ditto.
12420
12421 2016-03-15  Tom de Vries  <tom@codesourcery.com>
12422
12423         PR ipa/70161
12424         * cgraph.c (cgraph_node::get_body): Save, reset and restore
12425         dump_file_name.
12426         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
12427         execute_function_dump.
12428         (execute_one_pass): Don't dump function if it will be dumped after ipa
12429         transform.
12430
12431 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
12432
12433         * genrecog.c (match_pattern_2): If pred is NULL don't call
12434         safe_predicate_mode on it.
12435
12436 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
12437
12438         PR middle-end/70219
12439         * lra-constraints.c (delete_move_and_clobber): Change assertion
12440         to also allow dregno == 0.
12441
12442 2016-03-14  Richard Henderson  <rth@redhat.com>
12443
12444         PR tree-opt/68714
12445         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
12446         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
12447         (reassociate_bb): Use optimize_vec_cond_expr; avoid
12448         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
12449         on vectors.
12450
12451 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
12452
12453         PR target/70083
12454         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
12455         regs.
12456         (lra_create_live_ranges_1): initialize hard register biggest_mode to
12457         VOIDmode.
12458         * lra-constraints.c (split_reg): For hard regs, try to find the
12459         biggest single-register mode used in the function.
12460
12461 2016-03-14  Richard Biener  <rguenther@suse.de>
12462
12463         PR tree-optimization/56365
12464         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
12465         constants to compare against.
12466
12467 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
12468
12469         PR target/70098
12470         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
12471         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
12472         (define_split for the GPR case): Use int_reg_operand instead of
12473         gpc_reg_operand for the output.
12474
12475 2016-03-14  Tom de Vries  <tom@codesourcery.com>
12476
12477         PR tree-optimization/70045
12478         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
12479         create_empty_if_region_on_edge argument.
12480
12481 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
12482
12483         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
12484         (STACK_CHECK_PROTECT): Likewise.
12485         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12486         (STACK_CHECK_PROTECT): Likewise.
12487         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12488         (STACK_CHECK_PROTECT): Likewise.
12489         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
12490         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12491         (STACK_CHECK_PROTECT): Likewise.
12492
12493 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
12494
12495         PR rtl-optimization/69307
12496         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
12497         registers in modes that span more than one register.
12498
12499 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
12500
12501         PR target/69614
12502         * lra-constraints.c (delete_move_and_clobber): New.
12503         (remove_inheritance_pseudos): Use it.
12504
12505 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
12506
12507         PR ada/70017
12508         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
12509         the libcall is LCT_THROW.
12510         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
12511         for the checking routine.
12512
12513 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12514
12515         PR target/70131
12516         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
12517         optimization if we have direct move.
12518         (roundu32<mode>2_fprs): Likewise.
12519
12520 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
12521
12522         PR target/70123
12523         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
12524         be rematerialized.
12525         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
12526         Arguments swapped.  All callers changed.  Take reg_renumber into
12527         account, and Calculate and compare register ranges for hard regs.
12528
12529 2016-03-11  Jeff Law  <law@redhat.com>
12530
12531         PR tree-optimization/70190
12532         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12533         Handle cases where we can not extract the taken edge, even though we
12534         found a constant value.
12535
12536         PR tree-optimization/64058
12537         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
12538         (num_coalesce_pairs): Move up earlier in file.
12539         (find_coalesce_pair): Initialize the INDEX field for each pair
12540         discovered.
12541         (compare_pairs): No longer sort on the elements in each pair.
12542         Instead break ties with the index of the coalesce pair.
12543
12544 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12545
12546         PR target/70002
12547         * config/aarch64/aarch64-protos.h
12548         (aarch64_save_restore_target_globals): New prototype.
12549         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
12550         Call the above when popping pragma.
12551         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
12552         New function.
12553         (aarch64_set_current_function): Rewrite using the above.
12554
12555 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12556
12557         PR tree-optimization/70177
12558         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
12559         (extract_ops_from_tree): ... this.  In the 2 argument
12560         overload remove _1 suffix.
12561         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
12562         (extract_ops_from_tree): ... this.
12563         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
12564         Adjust callers.
12565         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12566         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
12567         extract_ops_from_tree instead of 2 operand one.
12568
12569 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
12570
12571         PR tree-optimization/70013
12572         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
12573         for constant-pool entries.
12574
12575 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12576
12577         PR rtl-optimization/70174
12578         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
12579         followed by gen_lowpart on force_reg instead of just gen_lowpart.
12580
12581         PR tree-optimization/70169
12582         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
12583         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
12584         for unknown codes.
12585
12586 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
12587             Jakub Jelinek  <jakub@redhat.com>
12588
12589         PR target/70160
12590         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
12591         of uninitialized values.
12592
12593 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12594
12595         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
12596         define_expand.
12597         ("*trunctddd2"): New pattern definition.
12598         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
12599         TD->DD truncation.
12600
12601 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12602
12603         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
12604         definitions for BFP and DFP rounding modes.
12605         ("fixuns_truncdddi2", "fixuns_trunctddi2")
12606         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
12607         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
12608         ("fix_trunctf<mode>2"): Use the new constants instead of magic
12609         numbers.
12610
12611 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12612
12613         * config/s390/constraints.md: Adjust comment.
12614         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
12615         s390_decompose_addrstyle_without_index.
12616         * config/s390/predicates.md (shift_count_or_setmem_operand):
12617         Rename to setmem_operand.
12618         * config/s390/s390-protos.h
12619         (s390_decompose_shift_count): Rename to
12620         s390_decompose_addrstyle_without_index.
12621         * config/s390/s390.c (s390_decompose_shift_count)
12622         (s390_mem_constraint, print_shift_count_operand)
12623         (print_operand_address, print_operand): Rename
12624         s390_decompose_shift_count to
12625         s390_decompose_addrstyle_without_index and rename
12626         print_shift_count_operand to print_addrstyle_operand troughout the
12627         file.
12628         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
12629         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
12630         Rename shift_count_or_setmem_operand to setmem_operand.
12631         * config/s390/vx-builtins.md ("vec_insert<mode>")
12632         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
12633         nonmemory_operand.
12634
12635 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12636
12637         PR target/70168
12638         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12639         Handle overlapping retval and newval.
12640
12641 2016-03-10  Nick Clifton  <nickc@redhat.com>
12642
12643         PR target/7044
12644         * config/aarch64/aarch64.c
12645         (aarch64_override_options_after_change_1): When forcing
12646         flag_omit_frame_pointer to be true, use a special value that can
12647         be detected if this function is called again, thus preventing
12648         flag_omit_leaf_frame_pointer from being forced to be false.
12649
12650 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12651
12652         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12653         Set x_flag_omit_leaf_frame_pointer when handling
12654         -momit-leaf-frame-pointer.
12655
12656 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12657
12658         PR lto/69589
12659         * cgraph.c (cgraph_node::dump): Dump split_part and
12660         indirect_call_target.
12661         * cgraph.h (cgraph_node): Add indirect_call_target flag.
12662         * ipa.c (has_addr_references_p): Cleanup.
12663         (is_indirect_call_target_p): New.
12664         (walk_polymorphic_call_targets): Do not mark virtuals that may be
12665         called indirectly as local.
12666         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12667
12668 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12669
12670         PR ipa/69630
12671         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12672         on cxa_pure_virtual.
12673
12674 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12675
12676         PR lto/69589
12677         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12678
12679 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12680
12681         PR lto/69589
12682         * tree.c (need_assembler_name_p): Only record main variant type names.
12683
12684 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12685
12686         PR target/70113.
12687         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12688         Always define to 0 or 1.
12689         (TARGET_FIX_ERR_A53_843419): New macro.
12690         * config/aarch64/aarch64-elf-raw.h
12691         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12692         * config/aarch64/aarch64-linux.h: Likewise.
12693         * config/aarch64/aarch64.c
12694         (aarch64_override_options_after_change_1): Do not default
12695         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12696         843419 is on.
12697         (aarch64_attributes): Handle fix-cortex-a53-843419.
12698         (aarch64_can_inline_p): Likewise.
12699         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12700
12701 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
12702         Jakub Jelinek <jakub@redhat.com>
12703
12704         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12705         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12706         DECL_COMMONS if flag_unconstrained_commons is set.
12707         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12708         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12709         (funconstrained-commons): Document.
12710
12711 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12712
12713         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12714         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12715
12716 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
12717
12718         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12719         has a proper number of elements.
12720
12721 2016-03-10  Alan Modra  <amodra@gmail.com>
12722
12723         PR rtl-optimization/69195
12724         PR rtl-optimization/47992
12725         * ira.c (recorded_label_ref): Delete.
12726         (update_equiv_regs): Return void.
12727         (indirect_jump_optimize): New function.
12728         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12729         before regstat_compute_ri.  Don't rebuild_jump_labels here.
12730         Delete update_regstat.
12731
12732 2016-03-10  Richard Biener  <rguenther@suse.de>
12733
12734         PR tree-optimization/70128
12735         * tree-ssa-structalias.c (set_uids_in_ptset): Set
12736         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12737
12738 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12739
12740         PR tree-optimization/70152
12741         * tree-sra.c (replace_removed_params_ssa_names): Copy over
12742         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12743
12744         PR target/70086
12745         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12746         instead of gen_sse2_loadlpd.
12747         * config/i386/sse.md (*vec_concatv2df): Rename to...
12748         (vec_concatv2df): ... this.
12749
12750         PR tree-optimization/70127
12751         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12752
12753 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12754
12755         PR c/68473
12756         PR c++/70105
12757         * diagnostic-show-locus.c (compatible_locations_p): New function.
12758         (layout::layout): Sanitize ranges using compatible_locations_p.
12759
12760 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12761
12762         PR c/68473
12763         PR c++/70105
12764         * diagnostic-show-locus.c (layout_range::layout_range): Replace
12765         location_range param with three const expanded_locations * and a
12766         bool.
12767         (layout::layout): Replace call to
12768         rich_location::lazily_expand_location with get_expanded_location.
12769         Extract the range and perform location expansion here, passing
12770         the results to the layout_range ctor.
12771         * diagnostic.c (source_range::debug): Delete.
12772         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12773         of rich_location::get_expanded_location.
12774         * gcc-rich-location.c (get_range_for_expr): Delete.
12775         (gcc_rich_location::add_expr): Reimplement to avoid the
12776         rich_location::add_range overload that took a location_range,
12777         passing a location_t instead.
12778
12779 2016-03-09  Richard Biener  <rguenther@suse.de>
12780         Jakub Jelinek  <jakub@redhat.com>
12781
12782         PR tree-optimization/70138
12783         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12784         Also skip vect_double_reduction_def.
12785
12786 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12787
12788         PR target/70049
12789         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
12790         if the operand is "m".
12791
12792 2016-03-09  Nathan Sidwell  <nathan@acm.org>
12793
12794         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
12795
12796 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12797
12798         * config/i386/i386.c (processor_target_table): Fix cost table
12799         intialization order for znver1.
12800
12801 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12802
12803         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
12804         - becuase -> because.
12805         * ipa-reference.c (ignore_module_statics): Likewise.
12806         * cgraph.c (cgraph_node::get_body): Likewise.
12807         * ipa-inline.c (early_inliner): Likewise.
12808         * ipa-devirt.c (types_same_for_odr): Likewise.
12809         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
12810         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
12811
12812 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12813
12814         * tree-ssa-math-opts.c: Fix typo in comment.
12815
12816 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12817
12818         PR target/70110
12819         * config/i386/i386.c (scalar_chain::make_vector_copies,
12820         scalar_chain::convert_reg): Call end_sequence in between
12821         get_insns and emit_conversion_insns rather than after both
12822         calls.
12823
12824 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12825
12826         PR target/70064
12827         * config/i386/i386.h (machine_function): Add
12828         pc_thunk_call_expanded flag.
12829         (ix86_pc_thunk_call_expanded): New define.
12830         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12831         (*set_got): Rename insn pattern from set_got.
12832         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12833         * config/i386/i386.c (ix86_compute_frame_layout): Use
12834         ix86_pc_thunk_call_expanded to prevent red-zone.
12835
12836 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12837
12838         * hsa.h (hsa_get_ctor_statements): Declare.
12839         (hsa_get_dtor_statements): Likewise.
12840         (hsa_get_kernel_dispatch_type): Likewise.
12841         * hsa.c (hsa_get_ctor_statements): New function.
12842         (hsa_get_dtor_statements): Likewise.
12843         (hsa_get_kernel_dispatch_type): Likewise.
12844         * hsa-brig.c (hsa_cdtor_statements): Removed.
12845         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12846         hsa_get_dtor_statements.
12847         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12848         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12849
12850 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12851
12852         * config/arm/arm-cores.def (cortex-r8): New.
12853         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12854         * config/arm/arm-tune.md: Likewise.
12855         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12856
12857 2016-03-07  Martin Sebor  <msebor@redhat.com>
12858
12859         PR rtl-optimization/19705
12860         * doc/invoke.texi (Options That Control Optimization): Clarify
12861         -fno-branch-count-reg.
12862
12863 2016-02-26  Richard Biener  <rguenther@suse.de>
12864             Jeff Law  <law@redhat.com>
12865
12866         PR tree-optimization/69740
12867         * cfghooks.c (remove_edge): Request loop fixups if we delete
12868         an edge that might turn an irreducible loop into a natural
12869         loop.
12870         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12871         Move after definition of loops_state_clear.
12872
12873 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12874
12875         PR rtl-optimization/69052
12876         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12877         to CONST_WIDE_INT.
12878
12879 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12880
12881         PR tree-optimization/70116
12882         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12883         is_tm_ending stmts and ubsan/asan internal functions.
12884         (find_duplicate): Use it.  Don't test is_tm_ending here.
12885
12886 2016-03-07  Richard Biener  <rguenther@suse.de>
12887
12888         PR tree-optimization/70115
12889         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12890         (propagate_constants_for_unrolling): Use replace_uses_by.
12891
12892 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12893
12894         PR middle-end/69916
12895         * omp-low.c (struct oacc_loop): Add ifns.
12896         (new_oacc_loop_raw): Initialize it.
12897         (finish_oacc_loop): Clear mask & flags if no ifns.
12898         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12899         (oacc_loop_xform_loop): Add ifns arg & adjust.
12900         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12901
12902 2016-03-07  Richard Henderson  <rth@redhat.com>
12903
12904         PR rtl-opt/70061
12905         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12906         (insert_value_copy_on_edge): Likewise.
12907
12908 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12909
12910         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12911
12912 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12913
12914         PR target/62281
12915         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12916
12917 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12918
12919         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12920
12921 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12922
12923         Fix sseimul type attribute.
12924         * config/i386/znver1.md
12925         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12926         znver1_sseimul_avx256_load) : Fix the type attribute.
12927         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12928         pipe usage and latency.
12929
12930 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12931
12932         PR c++/70084
12933         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12934         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12935         to the right type.
12936
12937 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12938
12939         PR c/69973
12940         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12941
12942         PR rtl-optimization/69941
12943         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12944         the reg share its mode.
12945
12946 2016-03-04  Jeff Law  <law@redhat.com>
12947
12948         PR tree-optimization/69196
12949         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12950         If the both SSA_NAMEs are anonymous, then consider them unassociated
12951         and include the PHI in the statement count.
12952
12953 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12954
12955         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12956         construct in oacc routine.  Check for oacc region in oacc routine.
12957
12958 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12959
12960         PR target/70062
12961         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
12962         2016-02-22 changes, instead don't recurse if RECUR is already true.
12963         Don't change *dynamic_check if RECUR.  Adjust recursive caller
12964         to pass true to the new argument.
12965         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
12966
12967         PR target/70059
12968         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12969         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
12970         fixes.
12971         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
12972
12973 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12974
12975         PR rtl-optimization/57676
12976         * lra-assigns.c (lra_assign): Guard test for maximum iterations
12977         with flag_checking.
12978
12979 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
12980
12981         * tree-vect-patterns.c (search_type_for_mask): Handle
12982         comparison of booleans.
12983
12984 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12985
12986         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
12987         Fix @xref usage.
12988
12989         PR debug/69947
12990         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
12991         all other ops that have dw_val_class_die_ref operands,
12992         and DW_OP_GNU_entry_value.
12993
12994 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12995
12996         PR rtl-optimization/69904
12997         * config/arm/arm.c (arm_cannot_copy_insn_p):
12998         Return true for load-exclusive instructions.
12999
13000 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
13001
13002         PR target/70021
13003         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13004         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13005         the pattern no matter if it is used just by non-pattern, pattern
13006         or mix thereof.
13007         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13008         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13009         oprnd1 def_stmt is in pattern, don't look through it.
13010
13011 2016-03-03  Marek Polacek  <polacek@redhat.com>
13012
13013         PR middle-end/70050
13014         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13015
13016 2016-03-03  Martin Liska  <mliska@suse.cz>
13017
13018         PR tree-optimization/70043
13019         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13020         previous statement if we see a debug statement.
13021
13022 2016-03-03  Richard Biener  <rguenther@suse.de>
13023
13024         PR tree-optimization/55936
13025         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13026         parameter and guard unsafe equivalence use.
13027         (vrp_evaluate_conditional_warnv_with_ops): Always use
13028         safe equivalences but not via the quadratic compare_names
13029         helper.
13030
13031 2016-03-03  Michael Collison  <michael.collison@linaro.org>
13032
13033         PR target/70014
13034         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13035         for operand 1 to s_register_operand. Change predicate for operand
13036         2 to arm_not_immediate_operand.
13037
13038 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
13039
13040         * doc/tm.texi: Regenerated.
13041
13042 2016-03-02  Richard Henderson  <rth@redhat.com>
13043
13044         PR rtl-opt/67145
13045         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13046         simplification when all args are positive non-fixed registers.
13047
13048 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13049
13050         * target.def (lra_p): Specify that new ports should use LRA.
13051
13052 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13053
13054         PR libgomp/69555
13055         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13056         gimplify_type_sizes the type they refer to.
13057         (omp_notice_variable): Handle reference vars to VLAs.
13058         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13059         reference to VLA decls in the second pass instead of first pass.
13060
13061 2016-03-02  Tom de Vries  <tom@codesourcery.com>
13062
13063         PR tree-optimization/68659
13064         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13065         new_expr == NULL_TREE.
13066         (get_new_name): Handle ADDR_EXPR.
13067
13068 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
13069
13070         PR rtl-optimization/69052
13071         * loop-invariant.c (canonicalize_address): New function.
13072         (inv_can_prop_to_addr_use): Check validity of address expression
13073         which is canonicalized by above function.
13074
13075 2016-03-02  Alan Modra  <amodra@gmail.com>
13076
13077         PR ipa/69990
13078         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13079         larger alignment.
13080
13081 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13082
13083         PR target/70028
13084         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13085         (*movhi_internal): Put mask moves from and to memory separately
13086         from moves from/to GPRs.
13087
13088 2016-03-02  Richard Biener  <rguenther@suse.de>
13089
13090         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13091         GENERIC expressions in GIMPLE.
13092
13093 2016-03-02  Richard Biener  <rguenther@suse.de>
13094
13095         * config/i386/i386.c (type_natural_mode): Fix typo.
13096
13097 2016-03-02  Nick Clifton  <nickc@redhat.com>
13098
13099         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13100
13101 2016-03-02  Richard Biener  <rguenther@suse.de>
13102             Uros Bizjak  <ubizjak@gmail.com>
13103
13104         PR target/67278
13105         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13106
13107 2016-03-02  Richard Biener  <rguenther@suse.de>
13108
13109         PR middle-end/67278
13110         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13111
13112 2016-03-02  Marek Polacek  <polacek@redhat.com>
13113
13114         PR c/67854
13115         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13116         "is promoted to" warning.
13117
13118 2016-03-01  DJ Delorie  <dj@redhat.com>
13119
13120         * config.gcc: Deprecate mep-*.
13121
13122 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
13123
13124         PR middle-end/70025
13125         * lra-constraints.c (regno_val_use_in): New.
13126         (match_reload): Use it instead of regno_use_in.
13127
13128 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13129
13130         PR rtl-optimization/70007
13131         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13132         references present in REG_EQUAL notes attached to non-SET patterns.
13133
13134 2016-03-01  Jeff Law  <law@redhat.com>
13135
13136         PR tree-optimization/69196
13137         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13138         Appropriately clamp the number of statements to copy when the
13139         thread path does not traverse a loop backedge.
13140
13141         PR tree-optimization/69196
13142         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13143         Do count some PHIs in the thread path against the insn count.  Decrease
13144         final statement count by one as the control statement in the last
13145         block will get removed.  Remove special cased code for handling PHIs
13146         in the last block.
13147
13148 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
13149
13150         PR target/70027
13151         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13152         asm dialect alternatives to explicit GOTPCREL calls.
13153
13154 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13155
13156         PR ada/70017
13157         * ira.c (do_reload): Issue warning for generic stack checking here...
13158         * reload1.c (reload): ...instead of here and streamline it.
13159
13160 2016-03-01  Nick Clifton  <nickc@redhat.com>
13161
13162         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13163
13164 2016-03-01  Richard Biener  <rguenther@suse.de>
13165
13166         PR tree-optimization/69983
13167         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13168         types and fall back to operand_equal_p.
13169
13170 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13171
13172         Revert
13173         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13174
13175         * config/s390/constraints.md ("jm8"): New constraint.
13176         * config/s390/predicates.md ("const_int_8bitset_operand"): New
13177         predicate.
13178         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13179         into ...
13180         ("*setmem_long<setmem_and>"): New pattern.
13181         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13182         into ...
13183         ("*setmem_long_31z<setmem_and>"): New pattern.
13184         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13185         New substitution rules with the required attributes.
13186
13187
13188 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13189
13190         Revert
13191         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13192
13193         * gensupport.c (process_substs_on_one_elem): Split loop to
13194         complete mark_operands_used_in_match_dup on all expressions in the
13195         vector first.
13196         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13197         and remove function.
13198
13199 2016-03-01  Richard Biener  <rguenther@suse.de>
13200
13201         PR middle-end/70022
13202         * fold-const.c (fold_indirect_ref_1): Fix range checking for
13203         vector BIT_FIELD_REF extract.
13204
13205 2016-03-01  Richard Biener  <rguenther@suse.de>
13206
13207         PR tree-optimization/69994
13208         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13209
13210 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13211
13212         PR tree-optimization/69956
13213         * tree-vect-stmts.c (supportable_widening_operation): Support
13214         multi-step conversion of boolean vectors.
13215         (supportable_narrowing_operation): Likewise.
13216
13217 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13218
13219         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13220         anymore.
13221
13222 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13223
13224         * config/s390/subst.md (DSI_VI): New mode iterator.
13225         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13226         * config/s390/vector.md ("vec_set<mode>"): Move expander before
13227         the insn definition.
13228         ("*vec_set<mode>"): Change predicate and add alternative to
13229         support only either register or const_int operands as element
13230         selector.
13231         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13232         operands.
13233         ("vec_extract<mode>"): New expander.
13234         ("*vec_extract<mode>"): New insn definition supporting reg and
13235         const_int element selectors.
13236         ("*vec_extract<mode>_plus"): New insn definition supporting
13237         reg+const_int element selectors.
13238         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13239         following expander+insn definition.
13240         ("<vec_shifts_name><mode>3"): New expander.
13241         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13242
13243 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13244
13245         * config/s390/s390.md ("*tabort_1"): Change predicate to
13246         nonmemory_operand.  Add a second alternative to cover
13247         register as well as const int operands.
13248         ("*tabort_1_plus"): New pattern definition.
13249
13250 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13251
13252         * config/s390/s390.md ("*ashrdi3_cc_31")
13253         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13254         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13255         Merge insn definitions into ...
13256         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13257         New pattern definition.
13258         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
13259         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
13260         ("*ashr<mode>3_and"): Merge insn definitions into ...
13261         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13262         New pattern definition.
13263         * config/s390/subst.md ("addr_style_op_cc_subst")
13264         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
13265         substitutions patterns plus attributes.
13266         Add ashiftrt to SUBST iterator.
13267
13268 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13269
13270         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
13271         op2 to nonmemory_operand.
13272         ("*<shift>di3_31", "*<shift>di3_31_and"):
13273         Merge into single pattern definition ...
13274         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
13275         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
13276         pattern definition ...
13277         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
13278         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
13279         iterator.
13280
13281 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13282
13283         * config/s390/predicates.md (const_int_6bitset_operand): New
13284         predicate.
13285         * config/s390/s390.md: Include subst.md.
13286         ("rotl<mode>3"): New expander.
13287         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
13288         ...
13289         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
13290         * config/s390/subst.md: New file.
13291
13292 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13293
13294         * config/s390/s390.md ("op_type", "atype", "length" attributes):
13295         Remove RRR type.  It doesn't really exist.
13296         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
13297         attributes.
13298         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
13299         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
13300         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
13301         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
13302         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
13303         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
13304         `enabled' attribute.
13305
13306 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13307
13308         * gensupport.c (process_substs_on_one_elem): Split loop to
13309         complete mark_operands_used_in_match_dup on all expressions in the
13310         vector first.
13311         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13312         and remove function.
13313
13314 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13315
13316         PR target/69706
13317         * config/sparc/sparc.c (NWORDS_UP): Rename to...
13318         (CEIL_NWORDS): ...this.  Use CEIL macro.
13319         (compute_fp_layout): Adjust to above renaming.
13320         (function_arg_union_value): Likewise.
13321         (sparc_arg_partial_bytes): Likewise.
13322         (sparc_function_arg_advance): Likewise.
13323
13324 2016-02-29  Jeff Law  <law@redhat.com>
13325
13326         PR tree-optimization/70005
13327         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
13328         where an object with a boolean range is compared against a value
13329         outside [0..1].
13330
13331         PR tree-optimization/69999
13332         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
13333         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
13334         loop cleanups.
13335
13336 2016-02-29  Richard Biener  <rguenther@suse.de>
13337
13338         PR tree-optimization/69994
13339         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
13340         (get_unary_op): Look through nop conversions.
13341         (ops_equal_values_p): New function, look for equality diregarding
13342         nop conversions.
13343         (eliminate_plus_minus_pair): Use ops_equal_values_p
13344         (repropagate_negates): Do not use get_unary_op here.
13345
13346 2016-02-29  Martin Liska  <mliska@suse.cz>
13347
13348         * system.h: Poison ENABLE_CHECKING macro.
13349
13350 2016-02-29  Martin Liska  <mliska@suse.cz>
13351
13352         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
13353         is presented in dump flags.
13354         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13355         (hsa_regalloc): Likewise.
13356
13357 2016-02-19  Richard Biener  <rguenther@suse.de>
13358
13359         PR tree-optimization/69980
13360         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
13361         permutation of those we need to keep.
13362
13363 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13364
13365         PR target/69706
13366         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
13367         (NWORDS_UP): ...this
13368         (init_cumulative_args): Minor tweaks.
13369         (sparc_promote_function_mode): Likewise.
13370         (scan_record_type): Delete.
13371         (traverse_record_type): New function template.
13372         (classify_data_t): New structure type.
13373         (classify_registers): New inline function.
13374         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
13375         exhausted.  Instantiate traverse_record_type on classify_registers and
13376         deal with the case of a structure passed in slot #15 with no FP field
13377         in the first word.
13378         (assign_data_t): New structure type.
13379         (compute_int_layout): New static function.
13380         (compute_fp_layout): Likewise.
13381         (count_registers): New inline function.
13382         (assign_int_registers): New static function.
13383         (assign_fp_registers): Likewise.
13384         (assign_registers): New inline function.
13385         (function_arg_record_value_1): Delete.
13386         (function_arg_record_value_2): Likewise.
13387         (function_arg_record_value_3): Likewise.
13388         (function_arg_record_value): Adjust to above changes.  Instantiate
13389         traverse_record_type on count_registers to first count the number of
13390         registers to be used and then on assign_registers to assign them.
13391         (function_arg_union_value): Adjust to above renaming.
13392         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
13393         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
13394         case of a structure passed in slot #15
13395         (sparc_function_arg_advance): Likewise.
13396         (function_arg_padding): Minor tweak.
13397
13398 2016-02-29  Richard Biener  <rguenther@suse.de>
13399
13400         PR tree-optimization/69720
13401         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
13402         the adjustment_def path for possibly vectorized defs.
13403         (vect_create_epilog_for_reduction): Handle vectorized initial
13404         defs properly.
13405
13406 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
13407
13408         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
13409
13410 2016-02-27  Jeff Law  <law@redhat.com>
13411
13412         Revert
13413         2016-02-26  Richard Biener  <rguenther@suse.de>
13414                     Jeff Law  <law@redhat.com>
13415
13416         PR tree-optimization/69740
13417         * cfghooks.c (remove_edge): Request loop fixups if we delete
13418         an edge that might turn an irreducible loop into a natural
13419         loop.
13420
13421 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
13422
13423         PR rtl-optimization/69896
13424         * tree-vect-generic.c (get_compute_type): Avoid single element
13425         vector types.
13426
13427 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
13428
13429         Rename the AArch64 tuning option and related functions to enable the
13430         Newton series for the reciprocal square root to reflect its
13431         approximative characteristic.
13432
13433         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
13434         function to "aarch64_emit_approx_rsqrt".
13435         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
13436         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
13437         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
13438         (xgene1_tunings): Likewise.
13439         (use_rsqrt_p): Likewise.
13440         (aarch64_emit_swrsqrt): Use new function name.
13441         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
13442         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
13443         text explaining this option.
13444         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
13445
13446 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
13447
13448         PR target/69969
13449         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13450         complain about -mallow-movmisalign without -mvsx if
13451         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
13452
13453 2016-02-26  Joel Sherrill  <joel@rtems.org>
13454
13455         * config.gcc: Add x86_64-*-rtems*.
13456         * config/i386/rtems-64.h: New file.
13457
13458 2016-02-26  Joel Sherrill  <joel@rtems.org>
13459
13460         * config.gcc: Add aarch64-*-rtems*.
13461         * config/aarch64/rtems.h: New file.
13462
13463 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
13464
13465         PR target/69946
13466         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
13467         shift amount using %h.  Add comment.
13468
13469 2016-02-26  Richard Biener  <rguenther@suse.de>
13470             Jeff Law  <law@redhat.com>
13471
13472         PR tree-optimization/69740
13473         * cfghooks.c (remove_edge): Request loop fixups if we delete
13474         an edge that might turn an irreducible loop into a natural
13475         loop.
13476
13477 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13478
13479         PR middle-end/69920
13480         * tree-sra.c (sra_modify_assign): Do not remove loads of
13481         uninitialized aggregates to SSA_NAMEs.
13482
13483 2016-02-26  Richard Henderson  <rth@redhat.com>
13484
13485         PR target/69709
13486         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
13487         pseudo in case the target rtx matches the source of the left
13488         shift.
13489
13490 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13491
13492         PR hsa/69568
13493         * hsa.h (hsa_type_packed_p): Declare.
13494         * hsa.c (hsa_type_packed_p): New function.
13495         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
13496         loads.
13497         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
13498         * hsa-brig.c (emit_basic_insn): Likewise.
13499
13500 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13501
13502         pr hsa/69674
13503         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
13504         pointers.
13505         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
13506
13507 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13508
13509         * hsa.h (is_a_helper): New overload for hsa_op_immed for
13510         hsa_op_with_type operands.
13511         (hsa_unsigned_type_for_type): Declare.
13512         * hsa.c (hsa_unsigned_type_for_type): New function.
13513         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
13514         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
13515         the finalizer.  Do not emit extra move.
13516
13517 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13518
13519         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
13520         atomic operations in private segment.
13521
13522 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13523
13524         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
13525         statements to wi->info.  Also disallow omp simd constructs.
13526         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
13527         for not gridifying.  Dump special string for omp_for.
13528
13529 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13530
13531         PR target/69245
13532         * config/aarch64/aarch64.c (aarch64_set_current_function):
13533         Save/restore target globals when switching to
13534         target_option_default_node.
13535
13536 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13537
13538         PR target/69613
13539         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
13540         Return 0 if !SHIFT_COUNT_TRUNCATED.
13541
13542 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
13543             Eric Botcazou  <ebotcazou@adacore.com>
13544
13545         PR rtl-optimization/69891
13546         * dse.c (scan_insn): If we can't figure out memset arguments
13547         or they are non-constant, call clear_rhs_from_active_local_stores.
13548
13549 2016-02-26  Martin Liska  <mliska@suse.cz>
13550
13551         * doc/extend.texi: Mention clog10, clog10f an clog10l
13552         in Builtins section.
13553
13554 2016-02-26  Martin Liska  <mliska@suse.cz>
13555
13556         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
13557         CHECKING_P.
13558         (resolve_args_picking_1): Likewise.
13559         * dwarf2out.h (struct GTY): Likewise.
13560
13561 2016-02-26  Martin Liska  <mliska@suse.cz>
13562
13563         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
13564         with flag_checking.
13565         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13566
13567 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13568             Martin Liska  <mliska@suse.cz>
13569
13570         * doc/install.texi: Mention --enable-valgrind-annotations.
13571
13572 2016-02-26  Richard Biener  <rguenther@suse.de>
13573
13574         PR tree-optimization/69551
13575         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
13576         looking through aliases adjust DECL_PT_UID to refer to the
13577         ultimate alias target.
13578
13579 2016-02-25  Martin Liska  <mliska@suse.cz>
13580
13581         PR middle-end/69919
13582         * alloc-pool.c (after_memory_report): New variable.
13583         * alloc-pool.h (base_pool_allocator ::release): Do not use
13584         the infrastructure if after_memory_report.
13585         * toplev.c (toplev::main): Mark after memory report.
13586
13587 2016-02-25  Richard Biener  <rguenther@suse.de>
13588
13589         PR tree-optimization/48795
13590         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
13591
13592 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13593
13594         PR driver/68463
13595         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
13596         offloading is enabled and -fopenacc or -fopenmp is specified.
13597         (CRTOFFLOADEND): Likewise.
13598         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
13599         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
13600         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
13601         (offload_objects_file_name): New static var.
13602         (tool_cleanup): Remove offload_objects_file_name file.
13603         (find_offloadbeginend): Replace with ...
13604         (find_crtoffloadtable): ... this.
13605         (run_gcc): Remove offload_argc and offload_argv.
13606         Get offload_objects_file_name from -foffload-objects=... option.
13607         Read names of object files with offload from this file, pass them to
13608         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
13609         don't pass offloadbegin and offloadend to the linker.  Don't pass
13610         offload non-LTO files to the linker, because now they're not claimed.
13611
13612 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
13613
13614         PR ipa/69630
13615         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13616         on builtin_unreachable.
13617
13618 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
13619
13620         PR rtl-optimization/69896
13621         * regcprop.c: Include cfgrtl.h.
13622         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
13623         than remembered mode, either delete it (if noop_move_p), or
13624         treat like copy_p but not noop_p instruction.
13625
13626 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13627
13628         PR debug/69705
13629         * dwarf2out.c (gen_variable_die): Work around buggy LTO
13630         - allow NULL decl for Fortran DW_TAG_common_block variables.
13631
13632 2016-02-24  Jason Merrill  <jason@redhat.com>
13633
13634         * common.opt (flifetime-dse): Add -flifetime-dse=1.
13635
13636 2016-02-24  Richard Biener  <rguenther@suse.de>
13637             Jakub Jelinek  <jakub@redhat.com>
13638
13639         PR middle-end/69760
13640         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
13641         conditionally executed ops to well-defined overflow behavior.
13642
13643 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13644
13645         PR middle-end/69915
13646         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
13647         elements.
13648
13649 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13650
13651         PR rtl-optimization/69886
13652         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
13653         argument.  Use it when checking validity of set instructions.
13654         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
13655         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
13656         callsite.
13657         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
13658         * store-motion.c (find_moveable_store): Update
13659         can_assign_to_reg_without_clobbers_p callsite.
13660
13661 2016-02-24  Richard Biener  <rguenther@suse.de>
13662
13663         PR middle-end/68963
13664         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
13665         bogus check.
13666         (record_nonwrapping_iv): Do not fall back to the low/high bound
13667         for non-constant IV bases if the stmt is not always executed.
13668
13669 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13670
13671         * config/arm/arm-cores.def (cortex-a32): New entry.
13672         * config/arm/arm-tables.opt: Regenerate.
13673         * config/arm/arm-tune.md: Regenerate.
13674         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13675         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13676         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13677         for -mcpu and -mtune.
13678
13679 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13680
13681         PR target/69875
13682         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13683         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13684         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13685         (atomic_loaddi_1): Delete.
13686         (atomic_loaddi): Rewrite expander using the above changes.
13687
13688 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13689
13690         PR c/69918
13691         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13692         2 to 3.
13693
13694 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13695             Richard Biener  <rguenth@suse.de>
13696
13697         PR middle-end/69909
13698         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13699         set_mem_attributes if tem is SSA_NAME which got expanded
13700         as a MEM.
13701
13702 2016-02-24  Richard Biener  <rguenther@suse.de>
13703
13704         PR tree-optimization/69907
13705         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13706         end of permutations for BB vectorization.
13707
13708 2016-02-24  Christian Bruel  <christian.bruel@st.com>
13709
13710         * config/arm/arm-c.c (arm_option_override): Initialize
13711         target_option_current_node.
13712         * config/arm/arm.c (arm_pragma_target_parse): Replace
13713         build_target_option_node call by target_option_current_node.
13714         Set target_option_current_node.
13715         Fix comments.
13716
13717 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
13718
13719         PR target/69810
13720         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13721         define_insn_and_split to define_insn.
13722         (zero_extendqi<mode>2_dot2): Same.
13723         (extendqi<mode>2_dot): Same.
13724         (extendqi<mode>2_dot2): Same.
13725
13726 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13727
13728         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13729         and add bypass for AES{D,E} and AESMC pairs.
13730         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13731         and AESMC pairs.
13732
13733 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13734
13735         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13736         series for reciprocal square root in Exynos M1.
13737
13738 2016-02-23  Martin Sebor  <msebor@redhat.com>
13739
13740         PR c/69759
13741         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13742         __builtin_alloca_with_align.
13743
13744 2016-02-23  Richard Henderson  <rth@redhat.com>
13745
13746         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13747         (ix86_register_pragmas): Remove __seg_tls.
13748         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13749         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13750         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13751         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13752         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13753         * doc/extend.texi (__seg_tls): Remove item.
13754
13755 2016-02-23  Richard Biener  <rguenther@suse.de>
13756
13757         * alloc-pool.h (struct allocation_object): Make id member
13758         conditional on CHECKING_P again.
13759         (get_instance): Adjust.
13760         (base_pool_allocator): Likewise.
13761
13762 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13763
13764         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13765         (parallelize_loops): In OpenACC kernels mode, set n_threads to
13766         zero.
13767         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13768         flag_openacc.
13769         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13770
13771 2016-02-23  Richard Biener  <rguenther@suse.de>
13772
13773         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13774         * bitmap.h (struct bitmap_usage): Likewise.
13775         (bitmap_move): Declare.
13776         * bitmap.c (register_overhead): Take size_t argument.
13777         (bitmap_move): New function.
13778         * df-problems.c (df_rd_transfer_function): Use bitmap_move
13779         to properly account overhead.
13780         * tree.c (free_node): Use tree_size.
13781
13782 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
13783
13784         PR c++/69902
13785         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
13786         when inverting comparison.
13787
13788         PR c/69900
13789         * common.opt (Wunreachable-code): Add Warning flag.
13790
13791 2016-02-23  Mark Wielaard  <mjw@redhat.com>
13792             Jakub Jelinek  <jakub@redhat.com>
13793
13794         PR c/69911
13795         * cgraphunit.c (check_global_declaration): Check main_input_filename
13796         and DECL_SOURCE_FILE are not NULL.
13797
13798 2016-02-23  Martin Jambor  <mjambor@suse.cz>
13799
13800         PR tree-optimization/69666
13801         * tree-sra.c (sra_modify_assign): Do not attempt to create
13802         default_def replacements for unscalarizable regions.
13803
13804 2016-02-20  Mark Wielaard  <mjw@redhat.com>
13805
13806         PR c/28901
13807         * cgraphunit.c (check_global_declaration): Check level of
13808         warn_unused_const_variable and main_input_filename.
13809         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
13810         (-Wunused-variable): For C implies -Wunused-const-variable=1.
13811         (-Wunused-const-variable): Explain levels 1 and 2.
13812
13813 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13814
13815         PR target/69888
13816         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13817         identical arguments.  Formatting and spelling fixes.
13818
13819         PR target/69885
13820         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13821         be specified.
13822
13823         PR target/69894
13824         PR target/69895
13825         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13826         and m68k-devices.def.
13827         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13828         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13829
13830 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13831
13832         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13833         and HImode registers.
13834
13835 2016-02-22  Richard Biener  <rguenther@suse.de>
13836
13837         PR tree-optimization/69882
13838         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13839         preserve permutations present because of gaps.
13840         (vect_supported_load_permutation_p): Always continue checking
13841         permutations after vect_attempt_slp_rearrange_stmts.
13842
13843 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13844
13845         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13846         min_profitable_estimate, rather than min_profitable_iters.
13847
13848 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13849
13850         PR target/69885
13851         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13852         SImode for last match_operand.
13853
13854 2016-02-22  Martin Liska  <mliska@suse.cz>
13855
13856         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13857         return bitsize - 1 as the return value.
13858
13859 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13860
13861         PR target/69806
13862         PR target/54089
13863         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13864         Handle negative shift counts.
13865         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13866         force_reg on the shift constant.
13867         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13868         (lshrsi3_d): Handle negative shift counts.
13869
13870 2016-02-22  Richard Biener  <rguenther@suse.de>
13871             Tom de Vries  <tom@codesourcery.com>
13872
13873         * graph.c: Include dumpfile.h.
13874         (print_graph_cfg): Split into three overloads.
13875         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13876
13877 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13878
13879         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13880         dump-fn.
13881
13882 2016-02-22  Richard Biener  <rguenther@suse.de>
13883
13884         PR ipa/37448
13885         * ipa-inline-transform.c (inline_call): When not updating
13886         overall summaries adjust self size by the growth estimate.
13887         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13888         hash-set, do not update overall summaries here.  Renamed from ...
13889         (inline_to_all_callers): ... this which is now wrapping the
13890         above and performing delayed overall summary update.
13891         (early_inline_small_functions): Delay updating of the overall
13892         summary.
13893
13894 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13895
13896         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13897         variable.
13898
13899 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13900
13901         PR driver/69805
13902         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13903         :%* in %:gt() argument.
13904         (greater_than_spec_func): Adjust for expecting only numbers,
13905         if there are more than two numbers, compare the last two.
13906
13907 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13908
13909         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13910         -Wnarrowing with -std.
13911
13912 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13913
13914         PR c++/69851
13915         * expr.c (store_field): Don't use bit-field path if exp is
13916         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13917         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13918         and the assignment can be performed by bitwise copy.  Formatting
13919         fix.
13920
13921         PR middle-end/69838
13922         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13923         call copy_reg_eh_region_note_forward on before and/or after sequences
13924         and remove note from insn if it no longer can throw.
13925
13926         PR target/69820
13927         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13928         if TARGET_AVX512BW.
13929
13930 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13931
13932         * config/s390/vector.md: Add missing commutative operand markers
13933         to the patterns which qualify for one.
13934         * config/s390/vx-builtins.md: Likewise.
13935
13936 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13937
13938         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13939         types to mode iterators.
13940         (vec_double): ... and mode attribute.
13941         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13942
13943 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13944
13945         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13946         Change the predicate of op2 from nonimmediate to general and let
13947         reload fix it if necessary.
13948
13949 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13950
13951         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13952
13953 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13954
13955         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13956         mode.
13957
13958 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13959
13960         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
13961         * config/s390/s390.c (s390_expand_vec_movstr): New function.
13962         * config/s390/s390.md ("movstr<P:mode>"): Call
13963         s390_expand_vec_movstr.
13964
13965 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13966
13967         * config/s390/s390.md: Add missing output modifier for operand 1
13968         to print it as address properly.
13969
13970 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13971
13972         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
13973         * config/s390/2964.md: New file.
13974         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
13975         of insn grouping attributes depending on the CPU level.
13976         (s390_get_unit_mask): New function.
13977         (s390_sched_score): Remove the OOO from the scheduling macros.
13978         Add loop to calculate a score for the instruction mix.
13979         (s390_sched_reorder): Likewise plus improve debug output.
13980         (s390_sched_variable_issue): Rename macros as above.  Calculate
13981         the unit distances after actually scheduling an insn.  Improve
13982         debug output.
13983         (s390_sched_init): Clear last_scheduled_unit_distance array.
13984         * config/s390/s390.md: Include 2964.md.
13985
13986 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13987
13988         PR target/69671
13989         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
13990         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
13991         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
13992         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
13993         *avx512f_<code>v8div16qi2_mask_1): New insns.
13994
13995 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13996
13997         PR target/68404
13998         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
13999         2016-02-09 change.
14000
14001         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14002         earlyclobber from target.  Use wF constraint for fused memory
14003         address.
14004         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14005
14006 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14007             Martin Liska  <mliska@suse.cz>
14008
14009         PR sanitizer/69863
14010         * cfgexpand.c (asan_sanitize_stack_p): New function.
14011         (partition_stack_vars): Use the function.
14012         (expand_stack_vars): Likewise.
14013         (defer_stack_allocation): Likewise.
14014         (expand_used_vars): Likewise.
14015
14016 2016-02-18  Richard Biener  <rguenther@suse.de>
14017
14018         PR middle-end/69553
14019         * fold-const.c (operand_equal_p): Properly compare offsets for
14020         IMAGPART_EXPR and ARRAY_REF.
14021
14022 2016-02-18  Nick Clifton  <nickc@redhat.com>
14023
14024         PR target/62254
14025         PR target/69610
14026         * config/arm/arm.c (arm_option_override_internal): Disable
14027         interworking if the target does not support thumb instructions.
14028         (arm_reload_in_hi): Handle the case where a register to register
14029         move needs reloading because there is no simple pattern to handle
14030         it.
14031         (arm_reload_out_hi): Likewise.
14032
14033 2016-02-18  Richard Biener  <rguenther@suse.de>
14034
14035         PR middle-end/69854
14036         * match.pd: Don't use fold_binary or fold_unary for folding
14037         constants.
14038
14039 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
14040
14041         PR c++/69850
14042         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14043         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14044         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14045         warn on gimple_no_warning_p statements.
14046
14047 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
14048
14049         * doc/extend.texi (C++ Attributes): Correct description of
14050         warn_unused type attribute.
14051
14052 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14053
14054         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14055         correct instruction.
14056
14057 2016-02-17  Richard Biener  <rguenther@suse.de>
14058
14059         PR rtl-optimization/69609
14060         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14061         (find_traces_1_round): When ending a trace update cached priority
14062         of successors.
14063         (bb_to_key): Use cached priority when available.
14064         (copy_bb): Initialize cached priority.
14065         (reorder_basic_blocks_software_trace_cache): Likewise.
14066
14067 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14068
14069         PR target/69161
14070         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14071         New predicate.
14072         (aarch64_comparison_operator): Break overly long line into two.
14073         (aarch64_comparison_operation): Likewise.
14074         * config/aarch64/aarch64.md (cstorecc4): Use
14075         aarch64_comparison_operator_mode instead of
14076         aarch64_comparison_operator.
14077         (cstore<mode>4): Likewise.
14078         (aarch64_cstore<mode>): Likewise.
14079         (*cstoresi_insn_uxtw): Likewise.
14080         (cstore<mode>_neg): Likewise.
14081         (*cstoresi_neg_uxtw): Likewise.
14082
14083 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14084
14085         PR target/69161
14086         * config/arm/predicates.md (arm_comparison_operator_mode):
14087         New predicate.
14088         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14089         instead of arm_comparison_operator.
14090         (*mov_negscc): Likewise.
14091         (*mov_notscc): Likewise.
14092         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14093         (*thumb2_mov_negscc): Likewise.
14094         (*thumb2_mov_negscc_strict_it): Likewise.
14095         (*thumb2_mov_notscc): Likewise.
14096         (*thumb2_mov_notscc_strict_it): Likewise.
14097
14098 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
14099
14100         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14101         Add missing return.
14102
14103 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
14104
14105         * config/visium/visium.c (machine_libfunc_index): New enum.
14106         (machine_libfuncs): New structure.
14107         (visium_libfuncs): New static variable.
14108         (TARGET_INIT_LIBFUNCS): Define to...
14109         (visium_init_libfuncs): ...this.  New function.
14110         (expand_block_move_4): Use the appropriate libfunc.
14111         (expand_block_move_2): Likewise.
14112         (expand_block_move_1): Likewise.
14113         (expand_block_set_4): Likewise.
14114         (expand_block_set_2): Likewise.
14115         (expand_block_set_1): Likewise.
14116         (visium_trampoline_init): Likewise.
14117
14118 2016-02-17  Nick Clifton  <nickc@redhat.com>
14119
14120         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14121         TI's devices.csv file as of March 2016.
14122
14123 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14124
14125         PR Target/48344
14126         * opts-global.c (handle_common_deferred_options): Introduce and
14127         initialize two global variables to remember command-line options
14128         specifying a stack-limiting register.
14129         * opts.h: Add extern declarations of the two new global variables.
14130         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14131         variable based on the values of the two new global variables.
14132
14133 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14134
14135         PR c/69835
14136         * common.opt (Wnonnull-compare): New warning.
14137         * doc/invoke.texi (-Wnonnull): Remove text about comparison
14138         of arguments against NULL.
14139         (-Wnonnull-compare): Document.
14140         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14141         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14142         * passes.def (pass_warn_nonnull_compare): Add.
14143         * gimple-ssa-nonnull-compare.c: New file.
14144
14145 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14146
14147         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14148         AARCH64_EXTRA_TUNE_RECIP_SQRT.
14149
14150 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14151
14152         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14153         reciprocal sqrt for -mlow-precision-recip-sqrt.
14154
14155 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14156             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14157
14158         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14159         always use lane loads to construct non-constant vectors.
14160
14161 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14162
14163         * config/aarch64/aarch64.md
14164         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14165         constraints for operand 3.
14166         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14167
14168 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14169             Richard Biener  <rguenther@suse.de>
14170
14171         PR tree-optimization/69820
14172         * tree-vect-patterns.c (type_conversion_p): Return false if
14173         *orig_type is unsigned single precision or boolean.
14174         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14175         Formatting fix.
14176
14177 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14178
14179         PR rtl-optimization/69764
14180         PR rtl-optimization/69771
14181         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14182         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14183
14184 2016-02-16  Richard Biener  <rguenther@suse.de>
14185
14186         PR tree-optimization/69776
14187         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14188         sets from caller.
14189         (indirect_refs_may_alias_p): Likewise.
14190         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14191         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14192         according to tbaa_p.
14193         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14194         (optimize_stmt): For redundant store discovery do not allow tbaa.
14195
14196 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
14197
14198         PR tree-optimization/69714
14199         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14200         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14201
14202 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
14203
14204         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14205         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14206         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14207         * config/arc/arc.c (arc_init): Check FPU options.
14208         (get_arc_condition_code): Handle new CC_FPU* modes.
14209         (arc_select_cc_mode): Likewise.
14210         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14211         register pair only. Allow access for ARCv2 accumulator.
14212         (gen_compare_reg): Whenever we have FPU support use FPU compare
14213         instructions.
14214         (arc_reorg): Don't generate brcc insns when FPU compare
14215         instructions are involved.
14216         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14217         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14218         floating point emulation.
14219         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14220         (REVERSE_CONDITION): Add new CC_FPU* modes.
14221         (TARGET_FP_SP_BASE): Define.
14222         (TARGET_FP_DP_BASE): Likewise.
14223         (TARGET_FP_SP_FUSED): Likewise.
14224         (TARGET_FP_DP_FUSED): Likewise.
14225         (TARGET_FP_SP_CONV): Likewise.
14226         (TARGET_FP_DP_CONV): Likewise.
14227         (TARGET_FP_SP_SQRT): Likewise.
14228         (TARGET_FP_DP_SQRT): Likewise.
14229         (TARGET_FP_DP_AX): Likewise.
14230         * config/arc/arc.md (ARCV2_ACC): New constant.
14231         (type): New fpu type attribute.
14232         (SDF): Conditional iterator.
14233         (cstore<mode>, cbranch<mode>): Change expand condition.
14234         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14235         handles FPU/FPX cases as well.
14236         * config/arc/arc.opt (mfpu): New option.
14237         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14238         Renamed.
14239         (adddf3, muldf3, subdf3): Removed.
14240         * config/arc/predicates.md (proper_comparison_operator): Recognize
14241         CC_FPU* modes.
14242         * config/arc/fpu.md: New file.
14243         * doc/invoke.texi (ARC Options): Document mfpu option.
14244
14245 2016-02-16  Richard Biener  <rguenther@suse.de>
14246
14247         PR rtl-optimization/69291
14248         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14249         noce_operand_ok check.
14250
14251 2016-02-16  Tom de Vries  <tom@codesourcery.com>
14252
14253         PR lto/67709
14254         * omp-low.c (simd_clone_create): Remove call to
14255         symtab->call_cgraph_insertion_hooks.
14256
14257 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14258
14259         PR tree-optimization/69802
14260         * tree-ssa-reassoc.c (update_range_test): If op is
14261         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
14262         op == 1 test of precision 1 integral op, otherwise handle
14263         that case as op itself.  Fix up formatting.
14264         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
14265         up formatting.
14266
14267 2016-02-16  Richard Biener  <rguenther@suse.de>
14268
14269         PR tree-optimization/69586
14270         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
14271         types for conversion sources.
14272
14273 2016-02-16  Richard Biener  <rguenther@suse.de>
14274
14275         PR middle-end/69801
14276         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
14277         mask OEP_ADDRESS_OF.
14278
14279 2016-02-16  Alan Modra  <amodra@gmail.com>
14280
14281         PR target/68973
14282         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
14283         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
14284         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
14285         (p8_mtvsrwz): New.
14286         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
14287         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
14288         (p8_fmrgow_<mode>): Likewise.
14289         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
14290         changes.
14291         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
14292         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
14293         to use movdi_internal64.  Remove op0_di.
14294         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
14295
14296 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
14297
14298         Add support for the FCCMP insn types
14299
14300         * config/aarch64/aarch64.md (fccmp): Change insn type.
14301         (fccmpe): Likewise.
14302         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
14303         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
14304         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
14305         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
14306         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
14307         * config/arm/types.md (fccmps): Add new insn type.
14308         (fccmpd): Likewise.
14309
14310 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14311
14312         * alias.c (get_alias_set): Fix a typo in comment.
14313
14314 2016-02-15  Richard Biener  <rguenther@suse.de>
14315
14316         PR tree-optimization/69595
14317         * match.pd: Complete range test simplification to true.
14318
14319 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
14320
14321         PR rtl-optimization/69648
14322         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
14323         pic_offset_table_rtx.
14324
14325         PR rtl-optimization/69752
14326         * ira.c (update_equiv_regs): When looking for more than a single SET,
14327         also take other side effects into account.
14328
14329 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14330
14331         * config/s390/s390.c (s390_function_profiler): Add a new sequence
14332         for z900+ CPUs in 31-bit mode.
14333
14334 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14335
14336         * common/config/s390/s390-common.c (s390_supports_split_stack):
14337         New function.
14338         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
14339         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
14340         * config/s390/s390.c (struct machine_function): New field
14341         split_stack_varargs_pointer.
14342         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
14343         in s390_emit_prologue.
14344         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
14345         vararg pointer.
14346         (morestack_ref): New global.
14347         (SPLIT_STACK_AVAILABLE): New macro.
14348         (s390_expand_split_stack_prologue): New function.
14349         (s390_live_on_entry): New function.
14350         (s390_va_start): Use split-stack vararg pointer if appropriate.
14351         (s390_asm_file_end): Emit the split-stack note sections.
14352         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
14353         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
14354         (UNSPECV_SPLIT_STACK_CALL): New unspec.
14355         (UNSPECV_SPLIT_STACK_DATA): New unspec.
14356         (split_stack_prologue): New expand.
14357         (split_stack_space_check): New expand.
14358         (split_stack_data): New insn.
14359         (split_stack_call): New expand.
14360         (split_stack_call_*): New insn.
14361         (split_stack_cond_call): New expand.
14362         (split_stack_cond_call_*): New insn.
14363
14364 2016-02-15  Richard Biener  <rguenther@suse.de>
14365
14366         PR tree-optimization/69783
14367         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14368         Add trivially correct cases.
14369
14370 2016-02-15  Tom de Vries  <tom@codesourcery.com>
14371
14372         PR lto/69655
14373         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
14374         do_force_output.
14375         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
14376
14377 2016-02-15  Richard Biener  <rguenther@suse.de>
14378
14379         PR tree-optimization/69776
14380         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
14381         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
14382         indicate whether we can use TBAA to disambiguate against stores.
14383         Use alias-set zero if not.
14384         (visit_reference_op_store): Do not use TBAA when looking up
14385         redundant stores.
14386         * tree-ssa-pre.c (compute_avail): Use TBAA here.
14387         (eliminate_dom_walker::before_dom_children): But not when looking
14388         up redundant stores.
14389
14390 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
14391
14392         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
14393
14394 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14395
14396         *  config/i386/znver1.md
14397         (znver1_pop, znver1_pop_mem,
14398         znver1_load_imov_double_store,
14399         znver1_load_imov_direct_store,
14400         znver1_load_imov_direct_load,
14401         znver1_load_imov_double_load): Add new.
14402         (znver1_insn, znver1_insn_load): Add icmov type.
14403         (znver1_sseavx_fma,
14404         znver1_sseavx_fma_load,
14405         znver1_avx256_fma,
14406         znver1_avx256_fma_load): Fix pipe usage.
14407
14408 2016-02-14  Alan Modra  <amodra@gmail.com>
14409
14410         PR target/68973
14411         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
14412         with an invalid hard reg, reload just the reg not the entire
14413         pre/post-inc/dec address expression.
14414
14415 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
14416
14417         PR target/67260
14418         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
14419         fixed R1_REG scratch reg.
14420         (sibcall_value_pcrel_fdpic): Likewise.
14421
14422 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
14423
14424         PR target/67636
14425         PR target/64345
14426         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
14427
14428 2016-02-12  Walter Lee  <walt@tilera.com>
14429
14430         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
14431         * config/tilegx/t-tilegx: Likewise.
14432
14433 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14434
14435         PR other/69554
14436         * diagnostic-show-locus.c (struct line_span): New struct.
14437         (layout::get_first_line): Delete.
14438         (layout::get_last_line): Delete.
14439         (layout::get_num_line_spans): New member function.
14440         (layout::get_line_span): Likewise.
14441         (layout::print_heading_for_line_span_index_p): Likewise.
14442         (layout::get_expanded_location): Likewise.
14443         (layout::calculate_line_spans): Likewise.
14444         (layout::m_first_line): Delete.
14445         (layout::m_last_line): Delete.
14446         (layout::m_line_spans): New field.
14447         (layout::layout): Update comment.  Replace m_first_line and
14448         m_last_line with m_line_spans, replacing their initialization
14449         with a call to calculate_line_spans.
14450         (diagnostic_show_locus): When printing source lines and
14451         annotations, rather than looping over a single span
14452         of lines, instead loop over each line_span within
14453         the layout, with an inner loop over the lines within them.
14454         Call the context's start_span callback when changing line spans.
14455         * diagnostic.c (diagnostic_initialize): Initialize start_span.
14456         (diagnostic_build_prefix): Break out the building of the location
14457         part of the string into...
14458         (diagnostic_get_location_text): ...this new function, rewriting
14459         it from nested ternary expressions to a sequence of "if"
14460         statements.
14461         (default_diagnostic_start_span_fn): New function.
14462         * diagnostic.h (diagnostic_start_span_fn): New typedef.
14463         (diagnostic_context::start_span): New field.
14464         (default_diagnostic_start_span_fn): New prototype.
14465
14466 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14467
14468         PR driver/69779
14469         * gcc.c (driver::finalize): Fix cleanup of "specs".
14470
14471 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14472
14473         PR driver/69265
14474         PR driver/69453
14475         * gcc.c (driver::driver): Initialize m_option_suggestions.
14476         (driver::~driver): Clean up m_option_suggestions.
14477         (suggest_option): Convert to...
14478         (driver::suggest_option): ...this, and split out into
14479         driver::build_option_suggestions and find_closest_string.
14480         (driver::build_option_suggestions): New function, from
14481         first half of suggest_option.  Special-case
14482         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
14483         the sanitizer_opts array.  For options of enum types, add the
14484         various enum values to the candidate strings.
14485         (driver::handle_unrecognized_options): Remove "const".
14486         * gcc.h (driver::handle_unrecognized_options): Likewise.
14487         (driver::build_option_suggestions): New decl.
14488         (driver::suggest_option): New decl.
14489         (driver::m_option_suggestions): New field.
14490         * opts-common.c (add_misspelling_candidates): New function.
14491         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
14492         and make non-static.
14493         * opts.h (sanitizer_opts): New array decl.
14494         (add_misspelling_candidates): New function decl.
14495         * spellcheck.c (find_closest_string): New function.
14496         * spellcheck.h (find_closest_string): New function decl.
14497
14498 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14499
14500         PR rtl-optimization/69764
14501         PR rtl-optimization/69771
14502         * optabs.c (expand_binop_directly): For shift_optab_p, force
14503         convert_modes with VOIDmode if xop1 has VOIDmode.
14504
14505 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
14506
14507         PR target/69729
14508         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
14509         to correctly determine instrumentation thunks.
14510
14511 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14512
14513         PR ipa/69241
14514         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
14515         type by reference, force lhs on the call.
14516
14517         PR ipa/68672
14518         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
14519         Compute retval and retbnd early in all cases if split_part_return_p
14520         and return_bb is not EXIT.  Remove all clobber stmts and reset
14521         all debug stmts that refer to SSA_NAMEs defined in split part,
14522         except if it is retval, in that case replace the old retval with the
14523         lhs of the call to the split part.
14524
14525 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14526
14527         revert:
14528         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14529
14530         PR middle-end/66726
14531         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14532         whose result is used in PHI.
14533         (maybe_optimize_range_tests): Likewise.
14534         (final_range_test_p): Likweise.
14535
14536 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14537
14538         PR middle-end/66726
14539         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14540         whose result is used in PHI.
14541         (maybe_optimize_range_tests): Likewise.
14542         (final_range_test_p): Likweise.
14543
14544 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14545
14546         * cgraph.c: Spelling fixes - behaviour -> behavior and
14547         neighbour -> neighbor.
14548         * target.def: Likewise.
14549         * sel-sched.c: Likewise.
14550         * config/mips/mips.c: Likewise.
14551         * config/arc/arc.md: Likewise.
14552         * config/arm/cortex-a57.md: Likewise.
14553         * config/arm/arm.c: Likewise.
14554         * config/arm/neon.md: Likewise.
14555         * config/arm/arm-c.c: Likewise.
14556         * config/vms/vms-c.c: Likewise.
14557         * config/s390/s390.c: Likewise.
14558         * config/i386/znver1.md: Likewise.
14559         * config/i386/i386.c: Likewise.
14560         * config/ia64/hpux-unix2003.h: Likewise.
14561         * config/msp430/msp430.md: Likewise.
14562         * config/rx/rx.c: Likewise.
14563         * config/rx/rx.md: Likewise.
14564         * config/aarch64/aarch64-simd.md: Likewise.
14565         * config/aarch64/aarch64.c: Likewise.
14566         * config/nvptx/nvptx.c: Likewise.
14567         * config/bfin/bfin.c: Likewise.
14568         * config/cris/cris.opt: Likewise.
14569         * config/rs6000/rs6000.c: Likewise.
14570         * target.h: Likewise.
14571         * spellcheck.c: Likewise.
14572         * ira-build.c: Likewise.
14573         * tree-inline.c: Likewise.
14574         * builtins.c: Likewise.
14575         * lra-constraints.c: Likewise.
14576         * explow.c: Likewise.
14577         * hwint.h: Likewise.
14578         * targhooks.c: Likewise.
14579         * tree-vect-data-refs.c: Likewise.
14580         * expr.c: Likewise.
14581         * doc/tm.texi: Likewise.
14582         * doc/extend.texi: Likewise.
14583         * doc/install.texi: Likewise.
14584         * doc/md.texi: Likewise.
14585         * tree-ssa-tail-merge.c: Likewise.
14586         * sched-int.h: Likewise.
14587         * match.pd: Likewise.
14588         * sched-ebb.c: Likewise.
14589         * target.def (omit_struct_return_reg): Likewise.
14590         * gimple-ssa-isolate-paths.c: Likewise.
14591         (find_implicit_erroneous_behaviour): Renamed to...
14592         (find_implicit_erroneous_behavior): ... this.
14593         (find_explicit_erroneous_behaviour): Renamed to...
14594         (find_explicit_erroneous_behavior): ... this.
14595         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
14596
14597 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
14598
14599         PR rtl-optimization/64682
14600         PR rtl-optimization/69567
14601         PR rtl-optimization/69737
14602         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
14603         in I2 as well, just lose it.
14604
14605 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14606
14607         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
14608         New variable.
14609         (aarch64_last_printed_tune_string): Likewise.
14610         (aarch64_declare_function_name): Only output .arch assembler
14611         directive if it will be different from the previously output
14612         directive.  Same for .tune comment but only if -dA is set.
14613         (aarch64_start_file): New function.
14614         (TARGET_ASM_FILE_START): Define.
14615
14616 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
14617
14618         PR plugins/69758
14619         * Makefile.in (PLUGIN_HEADERS): Add params.list.
14620
14621 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
14622
14623         PR target/65313
14624         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
14625         -Wmaybe-uninitialized warning.
14626
14627 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
14628
14629         PR target/69713
14630         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
14631
14632 2016-02-11  Richard Biener  <rguenther@suse.de>
14633
14634         PR rtl-optimization/69291
14635         * ifcvt.c (noce_try_store_flag_constants): Do not allow
14636         subexpressions affected by changing the result.
14637
14638 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
14639
14640         PR target/69148
14641         * lra-constraints.c (curr_insn_transform): Find in/out operands
14642         for secondary memory moves.  Update dups.
14643
14644 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
14645
14646         PR tree-optimization/69652
14647         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
14648         to nested loop, did source re-formatting, skip debug statements,
14649         add check on statement with volatile operand, remove dead scalar
14650         statements.
14651
14652 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
14653             Patrick Palka  <ppalka@gcc.gnu.org>
14654
14655         PR ipa/69241
14656         PR c++/69649
14657         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
14658         calls if the return type is TREE_ADDRESSABLE.
14659         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
14660         * ipa-split.c (split_function): Fix doubled "we" in comment.
14661         Use void return type for the split part even if
14662         !split_point->split_part_set_retval.
14663
14664 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
14665
14666         PR tree-optimization/68021
14667         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14668         when computing the value of biv cand by itself.
14669
14670 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14671
14672         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14673         (cortexa57_tunings): Likewise.
14674         (cortexa72_tunings): Likewise.
14675         (arch_macro_fusion_pair_p): Add support for AES fusion.
14676         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14677         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14678         Allow virtual registers before reload so early scheduling works.
14679         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14680         correct latency and pipeline.
14681         (cortex_a57_crypto_complex): Likewise.
14682         (cortex_a57_crypto_xor): Likewise.
14683         (define_bypass): Add AES bypass.
14684
14685 2016-02-10  Richard Biener  <rguenther@suse.de>
14686
14687         PR tree-optimization/69726
14688         * passes.def: Add DCE pass before late uninit.
14689         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14690         really fixup if-conversions job.
14691
14692 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14693
14694         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14695         (arm_cortex_a57_tune): Likewise.
14696         (aarch_macro_fusion_pair_p): Add support for AES fusion.
14697         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14698
14699 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14700
14701         * timevar.def (TV_PHASE_DBGINFO): Delete.
14702         (TV_PHASE_CHECK_DBGINFO): Likewise.
14703         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14704
14705 2016-02-10  Richard Biener  <rguenther@suse.de>
14706
14707         PR tree-optimization/69719
14708         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14709         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14710
14711 2016-02-09  Andrew Pinski  <apinski@cavium.com>
14712
14713         PR tree-opt/69282
14714         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14715         get_vcond_mask_icode returns false.
14716
14717 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
14718
14719         PR target/68404
14720         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14721         an ADDIS that adds a pointer to a large constant that sets the
14722         upper16 bits with a load operation.
14723
14724 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14725
14726         PR target/68532
14727         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14728         order.
14729         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14730         endian.
14731         (vzipq_s16): Likewise.
14732         (vzipq_s32): Likewise.
14733         (vzipq_f32): Likewise.
14734         (vzipq_u8): Likewise.
14735         (vzipq_u16): Likewise.
14736         (vzipq_u32): Likewise.
14737         (vzipq_p8): Likewise.
14738         (vzipq_p16): Likewise.
14739
14740 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14741
14742         PR target/68532
14743         * config/arm/arm.c (neon_endian_lane_map): New function.
14744         (neon_vector_pair_endian_lane_map): New function.
14745         (arm_evpc_neon_vuzp): Allow for big endian lane order.
14746         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14747         endian.
14748         (vuzpq_s16): Likewise.
14749         (vuzpq_s32): Likewise.
14750         (vuzpq_f32): Likewise.
14751         (vuzpq_u8): Likewise.
14752         (vuzpq_u16): Likewise.
14753         (vuzpq_u32): Likewise.
14754         (vuzpq_p8): Likewise.
14755         (vuzpq_p16): Likewise.
14756
14757 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
14758
14759         PR target/69634
14760         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14761         debug insns.
14762
14763 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
14764
14765         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14766         truncate const_int operand 1 to QImode.
14767
14768 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14769
14770         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14771         corresponding to an abnormal edge.
14772
14773 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14774
14775         PR tree-optimization/69599
14776         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
14777         function.
14778         (find_func_aliases_for_builtin_call, find_func_clobbers)
14779         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
14780         partition.
14781
14782 2016-02-09  Richard Biener  <rguenther@suse.de>
14783
14784         PR tree-optimization/69715
14785         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
14786         LHS on calls as non-rewritable.
14787
14788 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14789
14790         PR lto/69707
14791         * lto-wrapper.c (append_diag_options): New function.
14792         (compile_offload_image): Call append_diag_options.
14793
14794 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
14795
14796         PR other/69722
14797         * doc/extend.texi (Flag Output Operands): Correct sectioning.
14798         Minor copy-edit to fix verb tenses.
14799
14800 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
14801
14802         PR tree-optimization/69209
14803         * ipa-split.c (split_function): If split part is not
14804         returning retval, retval has gimple type but is not
14805         gimple value, force it into a SSA_NAME first.
14806
14807 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
14808
14809         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
14810         outdated section.
14811
14812 2016-02-08  Jason Merrill  <jason@redhat.com>
14813
14814         PR c++/69631
14815         * convert.c (convert_to_integer_1): Check dofold on truncation
14816         distribution.
14817         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14818         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14819         Rename from *_nofold.
14820         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14821         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14822
14823 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14824
14825         PR target/60410
14826         * tree.c (build_common_tree_nodes): Remove short_double argument.
14827         All callers changed.
14828         * tree.h (build_common_tree_nodes): Adjust declaration.
14829         * doc/invoke.texi (-fshort-double): Remove documentation.
14830         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14831         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14832         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14833         (append_linker_options): Don't handle OPT_fshort_double.
14834
14835         PR rtl-optimization/68730
14836         * lra-remat.c (insn_to_cand_activation): New static variable.
14837         (lra_remat): Allocate and free it.
14838         (create_cand): New arg activation. Initialize a field in
14839         insn_to_cand_activation if it is nonnull.
14840         (create_cands): Pass the activation insn to create_cand when making
14841         a candidate involving an output reload.  Reorganize code a little.
14842         (do_remat): Keep track of active status of candidates in a separate
14843         bitmap.
14844
14845 2016-02-08  Richard Biener  <rguenther@suse.de>
14846
14847         PR tree-optimization/69719
14848         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14849         Properly use absolute of the difference of the two offsets to
14850         compare or adjust the segment length.
14851
14852 2016-02-08  Richard Biener  <rguenther@suse.de>
14853             Jeff Law  <law@redhat.com>
14854
14855         PR target/68273
14856         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14857         types for anonymous SSA names.
14858
14859 2016-02-08   Richard Biener  <rguenther@suse.de>
14860
14861         PR rtl-optimization/69274
14862         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14863
14864 2016-02-08  Jeff Law  <law@redhat.com>
14865
14866         PR tree-optimization/65917
14867         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14868         equivalences from if (x == y) style conditionals.
14869         (loop_depth_of_name): Remove.
14870         (record_equality): Remove loop depth check.
14871         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14872         (const_and_copies::record_const_or_copy_raw): New member function.
14873         * tree-ssa-scopedtables.c
14874         (const_and_copies::record_const_or_copy_raw): New, factored out of
14875         (const_and_copies::record_const_or_copy): Call new member function.
14876
14877 2016-02-05  Jeff Law  <law@redhat.com>
14878
14879         PR tree-optimization/68541
14880         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14881         (count_stmts_in_block): New function.
14882         (poor_ifcvt_candidate_code): Likewise.
14883         (is_feasible_trace): Add some heuristics to determine when path
14884         splitting is profitable.
14885         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14886         is a diamond with a single exit.
14887
14888 2016-02-05  Martin Sebor  <msebor@redhat.com>
14889
14890         PR c++/69662
14891         * doc/invoke.texi: Update -Wplacement-new to take an optional
14892         argument.
14893
14894 2016-02-06  Richard Henderson  <rth@redhat.com>
14895
14896         PR c/69643
14897         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14898         out of non-standard address spaces.
14899
14900 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14901
14902         PR rtl-optimization/69691
14903         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14904
14905 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14906
14907         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14908         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14909         (*ieee128_mfvsrd_64bit): Likewise.
14910         (*ieee128_mfvsrd_32bit): Likewise.
14911
14912 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14913
14914         PR target/69369
14915         Revert r232560:
14916         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14917
14918         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14919         instrumented_version.
14920
14921 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14922
14923         * doc/invoke.texi (Optimize Options): In table of --param options
14924         rename second occurrence of tracer-min-branch-ratio to
14925         tracer-min-branch-probability, rename
14926         tracer-min-branch-ratio-feedback to
14927         tracer-min-branch-probability-feedback and clarify description,
14928         rename sched-spec-state-edge-prob-cutoff to
14929         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14930         to selsched-insns-to-rename, rename lto-minpartition to
14931         lto-min-partition, delete reorder-blocks-duplicate and
14932         reorder-blocks-duplicate-feedback.
14933
14934 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14935
14936         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14937         superfluous loops.
14938
14939 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14940
14941         * doc/extend.texi: S/390: Correct some typos.
14942
14943 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14944
14945         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14946
14947 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14948
14949         PR target/69625
14950         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14951         (s390_register_info_gprtofpr): Use new macros above.
14952         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14953         its name.
14954         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14955         its name.  Adjust restore and save gpr ranges.
14956         (s390_register_info_set_ranges): New function.
14957         (s390_register_info): Use new macros above.  Call
14958         s390_register_info_set_ranges.
14959         (s390_optimize_register_info): Likewise.
14960         (s390_hard_regno_rename_ok): Use new macros.
14961         (s390_hard_regno_scratch_ok): Likewise.
14962         (s390_emit_epilogue): Likewise.
14963         (s390_can_use_return_insn): Likewise.
14964         (s390_optimize_prologue): Likewise.
14965         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
14966
14967 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14968
14969         PR bootstrap/69677
14970         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
14971         alignment fixes.
14972         (ix86_option_override_internal): Disable TARGET_STV even for
14973         -m{incoming,preferred}-stack-boundary=3.
14974
14975 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14976
14977         * config.gcc: Mark deprecated rtems targets as obsolete.
14978
14979 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
14980
14981         PR rtl-optimization/64682
14982         PR rtl-optimization/69567
14983         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
14984         before I2 only if the register is both used and set in I2.
14985
14986 2016-02-04  DJ Delorie  <dj@redhat.com>
14987
14988         * config/msp430/msp430.c (msp430_start_function): Add function type.
14989
14990 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14991
14992         PR fortran/69368
14993         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
14994
14995 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
14996
14997         PR rtl-optimization/69577
14998         Revert:
14999         2015-10-29  Richard Henderson  <rth@redhat.com>
15000
15001         PR target/68124
15002         PR rtl-opt/67609
15003         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15004         sse check to the exact conditions of PR 67609.
15005
15006 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15007
15008         PR target/69667
15009         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15010         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15011         not allowed into the traditional Altivec registers.
15012         (movtd_64bit_nodm): Likewise.
15013         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15014
15015 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
15016
15017         * config/aarch64/cortex-a57-fma-steering.c
15018         (aarch64_register_fma_steering): Remove "static" from arguments
15019         to register_pass.
15020
15021 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
15022
15023         PR target/69619
15024         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15025         twice when complex.
15026
15027 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
15028
15029         * doc/invoke.texi: Delete -mno-fma4.
15030
15031 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
15032
15033         PR rtl-optimization/69577
15034         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15035         (find_subregs_of_mode): Update accordingly.  Iterate over partial
15036         definitions.
15037
15038 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
15039
15040         * config/arm/arm-protos.h (neon_reinterpret): Remove.
15041         * config/arm/arm.c (neon_reinterpret): Remove.
15042         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15043         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15044         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15045         vreinterpretti): Remove.
15046         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15047         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15048         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15049         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15050         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15051         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15052         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15053         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15054         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15055         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15056         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15057         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15058         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15059         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15060         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15061         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15062         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15063         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15064         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15065         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15066         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15067         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15068         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15069         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15070         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15071         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15072         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15073         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15074         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15075         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15076         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15077         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15078         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15079         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15080         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15081         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15082         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15083         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15084         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15085         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15086         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15087         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15088         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15089         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15090         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15091         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15092         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15093         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15094         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15095         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15096         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15097         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15098         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15099         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15100         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15101         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15102         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15103         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15104         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15105         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15106         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15107         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15108         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15109         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15110         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15111         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15112         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15113         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15114         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15115         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15116         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15117         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15118         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15119         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15120         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15121         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15122         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15123         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15124         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15125         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15126         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15127         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15128         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15129         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15130         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15131         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15132         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15133         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15134         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15135         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15136         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15137         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15138         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15139         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15140         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15141         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15142         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15143         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15144         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15145         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15146         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15147         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15148         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15149
15150 2016-02-04  Martin Liska  <mliska@suse.cz>
15151
15152         PR sanitizer/69276
15153         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15154         that are gimple_store_p.
15155         (maybe_instrument_call): Likewise.
15156
15157 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
15158
15159         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15160         register scaling out of memory reference and comment why.
15161
15162 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15163
15164         PR target/65932
15165         PR target/67714
15166         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15167         folding the source of a SET.
15168
15169 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15170
15171         PR target/65932
15172         PR target/67714
15173         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15174         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15175
15176 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
15177
15178         PR target/65932
15179         PR target/67714
15180         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15181         HImode.
15182
15183 2016-02-04  Christian Bruel  <christian.bruel@st.com>
15184
15185         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15186         * config/arm/arm.c (arm_set_current_function): Likewise.
15187
15188 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15189             Ilya Enkovich  <enkovich.gnu@gmail.com>
15190             H.J. Lu  <hongjiu.lu@intel.com>
15191
15192         PR target/69454
15193         * config/i386/i386.c (convert_scalars_to_vector): Remove
15194         stack alignment fixes.
15195         (ix86_option_override_internal): Disable TARGET_STV if stack
15196         might not be aligned enough.
15197         (ix86_minimum_alignment): Assert that TARGET_STV is false.
15198
15199 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
15200
15201         * config/i386/x86-tune.def: Disable default prefetching
15202         for -march=znver1.
15203
15204 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15205             Vladimir Makarov  <vmakarov@redhat.com>
15206
15207         PR target/69461
15208         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15209         in validating fused toc addresses.
15210
15211 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
15212
15213         PR c/69627
15214         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15215         range->m_caret fields if range->m_show_caret_p is false.
15216
15217         PR target/69644
15218         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15219         Force oldval into register if it does not satisfy reg_or_short_operand
15220         predicate.  Fix up formatting.
15221
15222 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
15223             Alexandre Oliva  <aoliva@redhat.com>
15224
15225         PR target/69461
15226         * lra-constraints.c (simplify_operand_subreg): Check additionally
15227         address validity after potential reloading.
15228         (process_address_1): Check insns validity.  In case of failure do
15229         nothing.
15230
15231 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
15232
15233         PR target/69118
15234         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15235         Fix target.
15236
15237 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
15238
15239         * wide-int.cc (canonize_uhwi): New function.
15240         (wi::divmod_internal): Use it.
15241
15242 2016-02-02  James Norris  <jnorris@codesourcery.com
15243
15244         * gimplify.c (omp_notice_variable): Add usage check.
15245
15246 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
15247
15248         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15249         like LE, GE, LT, GT when emitting relational operator.
15250
15251 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15252
15253         * ira-costs.c (find_costs_and_classes): Add extra argument.
15254         * target.def (ira_change_pseudo_allocno_class): Add parameter.
15255         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15256         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
15257         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
15258         Add best_class parameter, and return it if not ALL_REGS.
15259         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
15260         Add parameter.
15261         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
15262         Update target hook.
15263
15264 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15265
15266         * config/aarch64/aarch64.c
15267         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
15268         (aarch64_ira_change_pseudo_allocno_class): New function.
15269
15270 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
15271
15272         PR target/67032
15273         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
15274
15275 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15276
15277         * config/avr/avr.c (avr_option_override): Set
15278         PARAM_ALLOW_STORE_DATA_RACES to 1.
15279
15280 2016-02-02  Richard Biener  <rguenther@suse.de>
15281
15282         PR tree-optimization/69595
15283         * match.pd: Add range test simplifications to true/false.
15284
15285 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
15286
15287         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
15288         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
15289         instead.
15290
15291 2016-02-02  Richard Biener  <rguenther@suse.de>
15292
15293         PR tree-optimization/69606
15294         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
15295         info on the result before moving a stmt.
15296
15297 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
15298
15299         PR middle-end/68542
15300         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
15301         branch with vector comparison.
15302         * config/i386/sse.md (VI48_AVX): New mode iterator.
15303         (define_expand "cbranch<mode>4): Add support for conditional branch
15304         with vector comparison.
15305         * tree-vect-loop.c (optimize_mask_stores): New function.
15306         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
15307         has_mask_store field of vect_info.
15308         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
15309         vectorized loops having masked stores after vec_info destroy.
15310         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
15311         correspondent macros.
15312         (optimize_mask_stores): Add prototype.
15313
15314 2016-02-02  Alan Modra  <amodra@gmail.com>
15315
15316         PR target/69548
15317         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
15318         allow subregs.
15319
15320 2016-02-02  Alan Modra  <amodra@gmail.com>
15321
15322         PR target/68662
15323         * config/rs6000/rs6000.c (need_toc_init): New var, set it
15324         whenever toc_label_name used.
15325         (rs6000_file_start): Don't set up toc section here,
15326         (rs6000_output_function_epilogue): do so here instead,
15327         (rs6000_xcoff_file_start): and here.
15328         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
15329         (load_toc_aix_di): Likewise.
15330
15331 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15332
15333         PR rtl-optimization/69592
15334         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
15335         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
15336         (num_sign_bit_copies_binary_arith_p): New inline function.
15337         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
15338
15339 2016-02-01  Jeff Law  <law@redhat.com>
15340
15341         PR tree-optimization/69580
15342         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
15343         * tree-ssa-threadbackward.c
15344         (fsm_find_control_statement_thread_paths): Do not try to walk
15345         through large PHI nodes.
15346
15347 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15348
15349         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
15350         when count is incremented above limit, don't analyze further
15351         insns afterwards.
15352
15353         * omp-low.c (oacc_parse_default_dims): Avoid
15354         -Wsign-compare warning, make sure value fits into int
15355         rather than just unsigned int.
15356
15357 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
15358
15359         PR tree-optimization/67921
15360         * fold-const.c (split_tree): New parameters.  Convert pointer
15361         type variable part to proper type before negating.
15362         (fold_binary_loc): Pass new arguments to split_tree.
15363
15364 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
15365
15366         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
15367         (nvptx_goacc_validate_dims): Extend to handle global defaults.
15368         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
15369         * doc/tm.texti: Rebuilt.
15370         * doc/invoke.texi (fopenacc-dim): Document.
15371         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
15372         (append_compiler_options): Likewise.
15373         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
15374         (oacc_parse_default_dims): New.
15375         (oacc_validate_dims): Add USED arg.  Select non-unity default when
15376         possible.
15377         (oacc_loop_fixed_partitions): Return mask of used partitions.
15378         (oacc_loop_auto_partitions): Emit dump info.
15379         (oacc_loop_partition): Return mask of used partitions.
15380         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
15381         loop partitioning and validation calls.
15382
15383 2016-02-01  Richard Biener  <rguenther@suse.de>
15384
15385         PR middle-end/69556
15386         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
15387
15388 2016-02-01  Richard Biener  <rguenther@suse.de>
15389
15390         PR tree-optimization/69574
15391         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
15392         of asserting return chrec_dont_know.
15393
15394 2016-02-01  Martin Liska  <mliska@suse.cz>
15395
15396         * mem-stats-traits.h: Add copyright header.
15397         * mem-stats.h: Likewise.
15398
15399 2016-02-01  Richard Biener  <rguenther@suse.de>
15400
15401         PR tree-optimization/69579
15402         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
15403         Do not propagate through abnormal PHI results.
15404
15405 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
15406
15407         * postreload.c (reload_cse_simplify): Remove dead code.
15408
15409 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15410
15411         PR rtl-optimization/69570
15412         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
15413         if there is more than one set, not if there is a single set.
15414
15415 2016-02-01  Richard Henderson  <rth@redhat.com>
15416
15417         PR rtl-opt/69535
15418         * combine.c (make_compound_operation): When looking through a
15419         subreg, make sure to re-extend to the width of the outer mode.
15420
15421 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
15422
15423         PR tree-optimization/69546
15424         * wide-int.cc (wi::divmod_internal): For unsigned division
15425         where both operands fit into uhwi, if o1 is 1 and o0 has
15426         msb set, if divident_prec is larger than bits per hwi,
15427         clear another quotient word and return 2 instead of 1.
15428         Similarly for remainder with msb in HWI set, if dividend_prec
15429         is larger than bits per hwi.
15430
15431 2016-01-29  Martin Jambor  <mjambor@suse.cz>
15432
15433         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
15434         Use short lowercase names.
15435         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
15436         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
15437         acq_rel one.  Protect warning agains segfaults if
15438         get_memory_order_name returns NULL.
15439         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
15440         with release semantics.  Do not warn if get_memory_order already did.
15441         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
15442         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
15443         if get_memory_order already did.
15444
15445 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
15446
15447         * doc/install.texi: Document that isl-0.16 is supported.
15448
15449 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
15450
15451         PR target/69299
15452         * config/i386/constraints.md (Bm): Describe as special memory
15453         constraint.
15454         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
15455         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15456         * genpreds.c (struct constraint_data): Add is_special_memory.
15457         (have_special_memory_constraints, special_memory_start): New
15458         static vars.
15459         (special_memory_end): Ditto.
15460         (add_constraint): Add new arg is_special_memory.  Add code to
15461         process its true value.  Update have_special_memory_constraints.
15462         (process_define_constraint): Pass the new arg.
15463         (process_define_register_constraint): Ditto.
15464         (choose_enum_order): Process special memory.
15465         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
15466         function insn_extra_special_memory_constraint.
15467         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15468         * gensupport.c (process_rtx): Process
15469         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15470         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
15471         * ira-lives.c (single_reg_class): Use
15472         insn_extra_special_memory_constraint.
15473         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
15474         * lra-constraints.c (process_alt_operands): Ditto.
15475         (curr_insn_transform): Use insn_extra_special_memory_constraint.
15476         * recog.c (asm_operand_ok, preprocess_constraints): Process
15477         CT_SPECIAL_MEMORY.
15478         * reload.c (find_reloads): Ditto.
15479         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
15480         * stmt.c (parse_input_constraint): Use
15481         insn_extra_special_memory_constraint.
15482
15483 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
15484
15485         PR target/69530
15486         * lra-splill.c (lra_final_code_change): Revert r229087 by
15487         removing all sub-registers.
15488
15489 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
15490
15491         PR target/65604
15492         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
15493
15494 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
15495
15496         PR target/69551
15497         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
15498         SSE1, copy target into the temporary reg first before recursing
15499         on it.
15500
15501 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
15502
15503         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
15504         with vm.
15505
15506 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
15507
15508         * ginclude/stdarg.h: Test __cplusplus instead of
15509         __GXX_EXPERIMENTAL_CXX0X__.
15510
15511 2016-01-29  Richard Biener  <rguenther@suse.de>
15512
15513         PR tree-optimization/69547
15514         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
15515         Do not mark clobbers necessary.
15516         (mark_all_reaching_defs_necessary_1): Likewise.
15517
15518 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15519
15520         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
15521         declaration name with %qs and print it in both error messages.
15522         Also fix indentation.
15523
15524 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15525
15526         PR other/69006
15527         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
15528         trailing blank line from error message.
15529
15530 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
15531
15532         PR c++/69462
15533         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
15534         for C++-11.
15535
15536 2016-01-29  Richard Biener  <rguenther@suse.de>
15537
15538         PR middle-end/69537
15539         * match.pd: Allow all integral types when simplifying a
15540         widening or sign-changing conversion.
15541
15542 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15543
15544         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
15545         back to setting codegen_error to fail codegen.
15546
15547 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
15548
15549         PR target/69459
15550         * config/i386/constraints.md (C): Only accept constant zero operand.
15551         (BC): New constraint.
15552         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
15553         instead of C constraint.
15554         * doc/md.texi (Machine Constraints): Update description
15555         of C constraint.
15556
15557 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
15558
15559         PR target/68400
15560         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
15561
15562 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
15563
15564         PR middle-end/69542
15565         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
15566         non-debug insns.
15567
15568 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
15569
15570         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
15571         branches if using guessed profile.
15572
15573 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
15574
15575         * graphite-optimize-isl.c (optimize_isl): Fix dump.
15576
15577 2016-01-28  Richard Henderson  <rth@redhat.com>
15578
15579         PR target/69305
15580         * config/aarch64/aarch64-modes.def (CC_Cmode): New
15581         * config/aarch64/aarch64-protos.h: Update.
15582         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
15583         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
15584         (aarch64_get_condition_code_1): Handle CC_Cmode.
15585         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
15586         (*add<mode>3_compareC_cconly_imm): New.
15587         (*add<mode>3_compareC_cconly): New.
15588         (*add<mode>3_compareC_imm): New.
15589         (add<mode>3_compareC): New.
15590         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
15591         to be first.  Use aarch64_carry_operation.
15592         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
15593         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
15594         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
15595         (subti3): Use subdi3_compare1.
15596         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
15597         (sub<mode>3_compare1): New.
15598         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
15599         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
15600         (*subsi3_carryin_uxtw): Likewise.
15601         (*ngc<mode>, *ngcsi_uxtw): Likewise.
15602         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
15603         * config/aarch64/iterators.md (DWI): New.
15604         * config/aarch64/predicates.md (aarch64_carry_operation): New.
15605         (aarch64_borrow_operation): New.
15606
15607 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15608
15609         * graphite-optimize-isl.c (optimize_isl): Print a different debug
15610         message when isl does not return a valid schedule.
15611
15612 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15613
15614         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
15615         Remove comments from class declarations: they are already in the code
15616         close by the defs.
15617
15618 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15619
15620         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
15621         codegen_error_p.
15622         (ternary_op_to_tree): Same.
15623         (unary_op_to_tree): Same.
15624         (nary_op_to_tree): Same.
15625         (gcc_expression_from_isl_expr_op): Same.
15626         (gcc_expression_from_isl_expression): Same.
15627         (graphite_create_new_loop): Same.
15628         (graphite_create_new_loop_guard): Same.
15629         (build_iv_mapping): Same.
15630         (graphite_create_new_guard): Same.
15631         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
15632         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
15633
15634 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15635
15636         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
15637         instead of setting codegen_error to fail codegen.
15638
15639 2016-01-28  Jason Merrill  <jason@redhat.com>
15640
15641         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
15642
15643 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15644
15645         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15646         Remove CONST_INT_P check in CCMP cost calculation.
15647
15648 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15649
15650         * config/aarch64/aarch64.c (generic_vector_cost):
15651         Set vec_permute_cost.
15652         (cortexa57_vector_cost): Likewise.
15653         (exynosm1_vector_cost): Likewise.
15654         (xgene1_vector_cost): Likewise.
15655         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
15656         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
15657         Add vec_permute_cost entry.
15658
15659 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15660
15661         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
15662         immediate as %1.
15663         (add<mode>3_compare0): Likewise.
15664         (addsi3_compare0_uxtw): Likewise.
15665         (add<mode>3nr_compare0): Likewise.
15666         (compare_neg<mode>): Likewise.
15667         (<optab><mode>3): Likewise.
15668
15669 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
15670
15671         * tree-vect-stmts.c (vectorizable_comparison): Add
15672         NULL check for vectype.
15673
15674 2016-01-28  Richard Biener  <rguenther@suse.de>
15675
15676         PR tree-optimization/69466
15677         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15678         Account for PHIs we couldn't duplicate.
15679
15680 2016-01-28  Martin Liska  <mliska@suse.cz>
15681
15682         PR pch/68758
15683         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15684         instead of ENABLE_VALGRIND_CHECKING.
15685
15686 2016-01-27  Richard Henderson  <rth@redhat.com>
15687
15688         PR rtl-opt/69447
15689         * lra-remat.c (subreg_regs): New.
15690         (dump_candidates_and_remat_bb_data): Dump it.
15691         (operand_to_remat): Reject if operand in subreg_regs.
15692         (set_bb_regs): Collect subreg_regs.
15693         (lra_remat): Init and free subreg_regs.  Compute
15694         calculate_local_reg_remat_bb_data before create_cands.
15695
15696 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15697
15698         PR target/68986
15699         * config/i386/i386.c (ix86_update_stack_boundary): Don't
15700         change stack_alignment_needed for __tls_get_addr call.
15701
15702 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
15703
15704         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15705
15706 2016-01-27  Jeff Law  <law@redhat.com>
15707
15708         PR tree-optimization/68398
15709         PR tree-optimization/69196
15710         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15711         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15712         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15713         Only count PHIs in the last block in the path.  The others will
15714         const/copy propagate away.  Add heuristic to allow more irreducible
15715         subloops to be created when it is likely profitable to do so.
15716
15717         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15718         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
15719         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
15720
15721 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15722
15723         PR lto/69254
15724         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15725         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15726         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15727         * tree-streamer-in.c: Include asan.h.
15728         (streamer_get_builtin_tree): For builtins in sanitizer
15729         range call initialize_sanitizer_builtins and retry.
15730
15731 2016-01-27  Ian Lance Taylor  <iant@google.com>
15732
15733         * common.opt (fkeep-gc-roots-live): New undocumented option.
15734         * tree-ssa-loop-ivopts.c (add_candidate_1): If
15735         -fkeep-gc-roots-live, skip pointers.
15736         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15737         NULL.
15738
15739 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
15740
15741         PR target/69512
15742         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15743         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15744
15745 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
15746
15747         PR target/68380
15748         * configure.ac: NetBSD provides SSP in its C library.
15749         * configure: Updated.
15750
15751 2016-01-27  Richard Biener  <rguenther@suse.de>
15752
15753         PR tree-optimization/69166
15754         * tree-vect-loop.c (vect_is_simple_reduction): Always check
15755         reduction code for commutativity / associativity.
15756
15757 2016-01-27  Martin Jambor  <mjambor@suse.cz>
15758
15759         PR tree-optimization/69355
15760         * tree-sra.c (analyze_access_subtree): Correct hole detection when
15761         total_scalarization fails.
15762
15763 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
15764
15765         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15766         power9.
15767
15768 2016-01-27  Christian Bruel  <christian.bruel@st.com>
15769
15770         PR target/69245
15771         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15772         Move arm_reset_previous_fndecl and set_target_option_current_node in
15773         the conditional part.  Call save_restore_target_globals.
15774         * config/arm/arm.c (arm_set_current_function):
15775         Refactor to better support #pragma target and attribute mix.
15776         Call save_restore_target_globals.
15777         * config/arm/arm-protos.h (save_restore_target_globals): New function.
15778
15779 2016-01-27  Martin Liska  <mliska@suse.cz>
15780
15781         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
15782         reference for an HSA kernel and its host function.
15783
15784 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15785
15786         PR tree-optimization/69399
15787         * wide-int.h (wi::lrshift): For larger precisions, only
15788         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
15789
15790 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
15791
15792         * config/arc/predicates.md (proper_comparison_operator): Reject
15793         constant-constant comparison.
15794
15795 2016-01-26  Tom de Vries  <tom@codesourcery.com>
15796
15797         PR tree-optimization/69110
15798         * tree-data-ref.c (initialize_data_dependence_relation): Handle
15799         DR_NUM_DIMENSIONS == 0.
15800
15801 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15802             Sebastian Pop  <s.pop@samsung.com>
15803
15804         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
15805         isl_ast_op_cond and isl_ast_op_select.
15806         (gcc_expression_from_isl_expr_op): Same.
15807
15808 2016-01-26  Jason Merrill  <jason@redhat.com>
15809
15810         PR c++/68782
15811         * tree.c (recompute_constructor_flags): Split out from
15812         build_constructor.
15813         (verify_constructor_flags): New.
15814         * tree.h: Declare them.
15815
15816 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15817
15818         PR rtl-optimization/69217
15819         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15820         are no TYPE_FIELDS set for the record type.
15821
15822 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15823
15824         PR target/68662
15825         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15826         toc_label_name unconditionally.
15827         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15828         SYMBOL_REF string.  Use toc_label_name instead of constructing
15829         LCTOC1.
15830         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15831         constructing LCTOC1.
15832
15833 2016-01-26  Martin Sebor  <msebor@redhat.com>
15834
15835         PR other/69477
15836         * doc/extend.texi (Common Type Attributes): Move text that talks about
15837         attribute packed from attribute aligned to the section discussing
15838         the former attribute for clarity.
15839
15840 2016-01-26  Richard Henderson  <rth@redhat.com>
15841
15842         PR middle-end/60908
15843         * trans-mem.c (tm_region_init): Mark entry block as visited.
15844
15845 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15846
15847         PR other/69006
15848         * diagnostic-show-locus.c (layout::print_source_line): Replace
15849         call to pp_newline with call to layout::print_newline.
15850         (layout::print_annotation_line): Likewise.
15851         (layout::move_to_column): Likewise.
15852         (layout::print_any_fixits): After printing any fixits, print a
15853         trailing newline, if necessary.
15854         (layout::print_newline): New method, resetting any colorization
15855         before a newline.
15856         (diagnostic_show_locus): Move the pp_newline to before the
15857         early bailout.  Remove dummy block enclosing the layout instance.
15858         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15859         of pp_newline_and_flush with pp_flush.
15860         (diagnostic_append_note): Delete use of pp_newline.
15861         (diagnostic_append_note_at_rich_loc): Delete.
15862         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15863         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15864         when newline characters are added to the buffer.
15865
15866 2016-01-26  Michael Matz  <matz@suse.de>
15867
15868         * configure.ac (ac_cv_std_swap_in_utility): New test.
15869         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15870         * configure: Regenerate.
15871         * config.in: Regenerate.
15872
15873 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15874
15875         * config/arc/arc.md (cstoresi4): Force operand into register.
15876         (arcset<code>): Fix predicate.
15877         (arcsetltu): Likewise.
15878         (arcsetgeu): Likewise.
15879         (arcsethi): Likewise.
15880         (arcsetls): Likewise.
15881
15882 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15883
15884         PR tree-optimization/69483
15885         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15886         if base has error_mark_node type.
15887
15888 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15889
15890         PR target/68620
15891         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15892         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15893         New helper macros.
15894         (vget_lane_f16): Handle big-endian.
15895         (vgetq_lane_f16): Likewise.
15896         (vset_lane_f16): Likewise.
15897         (vsetq_lane_f16): Likewise.
15898         * config/arm/iterators.md (VQXMOV): Add V8HF.
15899         (VDQ): Add V4HF and V8HF.
15900         (V_reg): Handle V4HF and V8HF.
15901         (Is_float_mode): Likewise.
15902         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15903         neon_vdup_nv8hf): New patterns.
15904         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15905         Use VD_LANE iterator.
15906         (neon_vld1_dup<mode>): Use VQ2 iterator.
15907
15908 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15909
15910         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15911         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15912         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15913         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15914         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15915         (oacc_validate_dims): Add LEVEL arg, don't return level.
15916         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15917         oacc_validate_dims.
15918         (execute_oacc_device_lower): Adjust, add more dump output.
15919         * tree-ssa-loop.c (gate_oacc_kernels): Use
15920         oacc_fn_attrib_kernels_p.
15921         * tree-parloops.c (create_parallel_loop): Adjust
15922         set_oacc_fn_attrib call.
15923
15924 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15925
15926         PR lto/69254
15927         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15928         (append_compiler_options): Handle -fcilkplus.
15929         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15930
15931 2016-01-26  Nick Clifton  <nickc@redhat.com>
15932
15933         PR target/66655
15934         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15935         been marked as DECL_ONE_ONLY but we do not the means to make it
15936         so, then do not allow it to bind locally.
15937
15938 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15939
15940         PR lto/69254
15941         * opts.h (parse_sanitizer_options): New prototype.
15942         * opts.c (sanitizer_opts): New array.
15943         (parse_sanitizer_options): New function.
15944         (common_handle_option): Use parse_sanitizer_options.
15945
15946 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15947
15948         PR target/68986
15949         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15950         alignment adjustment to ...
15951         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15952         __tls_get_addr.
15953         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15954         if __tls_get_addr is called.
15955
15956 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15957
15958         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15959
15960 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15961
15962         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
15963
15964 2016-01-26  Richard Biener  <rguenther@suse.de>
15965
15966         PR middle-end/69467
15967         * match.pd: Guard X * CST CMP 0 pattern with single_use.
15968
15969 2016-01-26  Richard Biener  <rguenther@suse.de>
15970
15971         PR tree-optimization/69452
15972         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
15973         (move_computations_dom_walker::before_dom_children): Rename
15974         to ...
15975         (move_computations_worker): This.
15976         (move_computations): Perform an RPO rather than a DOM walk.
15977
15978 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15979
15980         PR target/69442
15981         * combine.c (combine_instructions): For REG_EQUAL note with
15982         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
15983         to the underlying register.
15984         * doc/rtl.texi (REG_EQUAL): Document the behavior of
15985         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
15986
15987 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
15988
15989         PR target/67896
15990         * config/aarch64/aarch64-builtins.c
15991         (aarch64_init_simd_builtin_types): Do not set structural
15992         equality to __Poly{8,16,64,128}_t types.
15993
15994 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
15995
15996         PR tree-optimization/69400
15997         * wide-int.cc (wi_pack): Take the precision as argument and
15998         perform canonicalization here rather than in the callers.
15999         Use the main loop to handle all full-width HWIs.  Add a
16000         zero HWI if in_len isn't a full result.
16001         (wi::divmod_internal): Update accordingly.
16002         (wi::mul_internal): Likewise.  Simplify.
16003
16004 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16005             Sebastian Pop  <s.pop@samsung.com>
16006
16007         * graphite-poly.c (apply_poly_transforms): Simplify.
16008         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16009         (print_isl_map): Same.
16010         (print_isl_union_map): Same.
16011         (print_isl_schedule): New.
16012         (debug_isl_schedule): New.
16013         * graphite-dependences.c (scop_get_reads): Do not call
16014         isl_union_map_add_map that is undocumented isl functionality.
16015         (scop_get_must_writes): Same.
16016         (scop_get_may_writes): Same.
16017         (scop_get_original_schedule): Remove.
16018         (scop_get_dependences): Do not call isl_union_map_compute_flow that
16019         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
16020         (compute_deps): Remove.
16021         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16022         (debug_schedule_ast): New.
16023         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16024         set_separate_option.
16025         (graphite_regenerate_ast_isl): Add dump.
16026         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16027         from scop->transformed_schedule.
16028         (graphite_regenerate_ast_isl): Add more dump.
16029         * graphite-optimize-isl.c (optimize_isl): Set
16030         scop->transformed_schedule.  Check whether schedules are equal.
16031         (apply_poly_transforms): Move here.
16032         * graphite-poly.c (apply_poly_transforms): ... from here.
16033         (free_poly_bb): Static.
16034         (free_scop): Static.
16035         (pbb_number_of_iterations_at_time): Remove.
16036         (print_isl_ast): New.
16037         (debug_isl_ast): New.
16038         (debug_scop_pbb): New.
16039         * graphite-scop-detection.c (print_edge): Move.
16040         (print_sese): Move.
16041         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16042         (build_scop_scattering): Remove.
16043         (create_pw_aff_from_tree): Assert instead of bailing out.
16044         (add_condition_to_pbb): Remove unused code, do not fail.
16045         (add_conditions_to_domain): Same.
16046         (add_conditions_to_constraints): Remove.
16047         (build_scop_context): New.
16048         (add_iter_domain_dimension): New.
16049         (build_iteration_domains): Initialize pbb->iterators.
16050         Call add_conditions_to_domain.
16051         (nested_in): New.
16052         (loop_at): New.
16053         (index_outermost_in_loop): New.
16054         (index_pbb_in_loop): New.
16055         (outermost_pbb_in): New.
16056         (add_in_sequence): New.
16057         (add_outer_projection): New.
16058         (outer_projection_mupa): New.
16059         (add_loop_schedule): New.
16060         (build_schedule_pbb): New.
16061         (build_schedule_loop): New.
16062         (embed_in_surrounding_loops): New.
16063         (build_schedule_loop_nest): New.
16064         (build_original_schedule): New.
16065         (build_poly_scop): Call build_original_schedule.
16066         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16067         (free_poly_dr): Remove.
16068         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
16069         (free_poly_bb): Remove.
16070         (debug_loop_vec): Remove.
16071         (print_isl_ast): Declare.
16072         (debug_isl_ast): Declare.
16073         (scop_do_interchange): Remove.
16074         (scop_do_strip_mine): Remove.
16075         (scop_do_block): Remove.
16076         (flatten_all_loops): Remove.
16077         (optimize_isl): Remove.
16078         (pbb_number_of_iterations_at_time): Remove.
16079         (debug_scop_pbb): Declare.
16080         (print_schedule_ast): Declare.
16081         (debug_schedule_ast): Declare.
16082         (struct scop): Remove schedule.  Add original_schedule,
16083         transformed_schedule.
16084         (free_gimple_poly_bb): Remove.
16085         (print_generated_program): Remove.
16086         (debug_generated_program): Remove.
16087         (unify_scattering_dimensions): Remove.
16088         * sese.c (print_edge): ... here.
16089         (print_sese): ... here.
16090         (debug_edge): ... here.
16091         (debug_sese): ... here.
16092         * sese.h (print_edge): Declare.
16093         (print_sese): Declare.
16094         (dump_edge): Declare.
16095         (dump_sese): Declare.
16096
16097 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16098             Sebastian Pop  <s.pop@samsung.com>
16099
16100         * Makefile.in: Set ISLVER in site.exp.
16101
16102 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
16103
16104         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16105         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
16106         through DECL_VALUE_EXPR for expansion.
16107
16108 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16109
16110         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16111         the frame info after reload completed.
16112
16113 2016-01-25  Jeff Law  <law@redhat.com>
16114
16115         PR tree-optimization/69196
16116         PR tree-optimization/68398
16117         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16118         tree-ssa-threadupdate.c.
16119         (determine_bb_domination_status): Prototype
16120         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16121         (determine_bb_domination_status): No longer static.
16122         (valid_jump_thread_path): Remove code to detect characteristics
16123         of the jump thread path not associated with correctness.
16124         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16125         Correct test for thread path length.  Count PHIs for real operands as
16126         statements that need to be copied.  Do not count ASSERT_EXPRs.
16127         Look at all the blocks in the thread path.  Compute and selectively
16128         filter thread paths based on threading through the latch, threading
16129         a multiway branch or crossing a multiway branch.
16130
16131 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16132
16133         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
16134         decl with __attribute__ ((unused)) annotation.
16135
16136 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
16137
16138         PR target/69421
16139         * tree-vect-stmts.c (vectorizable_condition): Check vectype
16140         of operands is compatible with a statement vectype.
16141
16142 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
16143
16144         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16145         improve wording for mixed storage order support.
16146
16147 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
16148
16149         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16150         (vcvt_u64_f64): Likewise.
16151         (vcvta_s64_f64): Likewise.
16152         (vcvta_u64_f64): Likewise.
16153         (vcvtm_s64_f64): Likewise.
16154         (vcvtm_u64_f64): Likewise.
16155         (vcvtn_s64_f64): Likewise.
16156         (vcvtn_u64_f64): Likewise.
16157         (vcvtp_s64_f64): Likewise.
16158         (vcvtp_u64_f64): Likewise.
16159
16160 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
16161
16162         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16163         (arc_init): Check validity mll64 option.
16164         (arc_save_restore): Use double load/store instruction.
16165         (arc_expand_movmem): Likewise.
16166         (arc_split_move): Don't split if we have double load/store
16167         instructions. Returns a boolean.
16168         (arc_process_double_reg_moves): Change function to return boolean
16169         instead of a sequence of instructions.
16170         (arc_dwarf_register_span): New function.
16171         * config/arc/arc-protos.h (arc_split_move): Change prototype.
16172         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16173         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16174         (*movdf_insn): Likewise.
16175         * config/arc/arc.opt (mll64): New option.
16176         * config/arc/predicates.md (even_register_operand): New predicate.
16177         * doc/invoke.texi (ARC Options): Add mll64 documentation.
16178
16179 2016-01-25  Richard Biener  <rguenther@suse.de>
16180
16181         PR lto/69393
16182         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16183         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16184         DECL_NAMELESS.
16185         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16186
16187 2016-01-25  Richard Biener  <rguenther@suse.de>
16188
16189         PR tree-optimization/69376
16190         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16191         flag.
16192         (VN_INFO_ANTI_RANGE_P): New inline.
16193         (VN_INFO_RANGE_TYPE): Likewise.
16194         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16195         SSA_NAME_ANTI_RANGE_P.
16196         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16197         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16198         Properly query VN_INFO_RANGE_TYPE.
16199
16200 2016-01-25  Nick Clifton  <nickc@redhat.com>
16201
16202         PR target/66655
16203         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16204
16205 2016-01-23  Tom de Vries  <tom@codesourcery.com>
16206
16207         PR tree-optimization/69426
16208         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16209         removed clobber.
16210
16211 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
16212
16213         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16214         "the the" with "the" in the comments.
16215         * ipa-devirt.c (build_type_inheritance_graph,
16216         update_type_inheritance_graph): Likewise.
16217         * tree.c (build_function_type_list_1): Likewise.
16218         * cfgloopmanip.c (scale_loop_profile): Likewise.
16219         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16220         * gimple-ssa-split-paths.c
16221         (find_block_to_duplicate_for_splitting_paths): Likewise.
16222         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16223         * expr.c (convert_move): Likewise.
16224         * var-tracking.c (vt_stack_adjustments): Likewise.
16225         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16226         * tree-vrp.c (test_for_singularity): Likewise.
16227
16228         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16229         directly instead of building a temporary tree.
16230
16231         PR bootstrap/69434
16232         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16233         remove <algorithm> include.
16234
16235 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16236
16237         PR target/69432
16238         * config/i386/i386.c: Include dojump.h.
16239         (expand_small_movmem_or_setmem,
16240         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16241         fixes.
16242         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16243         if dynamic_check != -1.
16244
16245 2016-01-21  Jeff Law  <law@redhat.com>
16246
16247         PR middle-end/69347
16248         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16249         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
16250         into dominated_by_p.
16251         (cprop_into_successor_phis): Avoid unnecessary tests.
16252
16253 2016-01-22  Richard Henderson  <rth@redhat.com>
16254
16255         PR target/69416
16256         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
16257         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
16258
16259 2016-01-22  Michael Matz  <matz@suse.de>
16260
16261         * system.h (string, algorithm): Include only conditionally.
16262         (new): Include always under C++.
16263         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
16264         * final.c (toplevel): Ditto.
16265         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
16266         * genconditions.c (write_header): Make gencondmd.c define
16267         INCLUDE_STRING.
16268         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
16269
16270         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
16271         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
16272
16273 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16274
16275         PR target/68674
16276         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
16277
16278 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16279
16280         PR target/69403
16281         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
16282         define_insn_and_split.  Ensure operands[1] and operands[0] do not
16283         get assigned the same register.
16284
16285 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16286
16287         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
16288
16289 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16290
16291         * config/arm/arm-c.c (arm_pragma_target_parse):
16292         Remove warn_builtin_macro_redefined overwrite.
16293
16294 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16295
16296         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
16297         flag_non_call_exceptions compatibility.
16298
16299 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16300
16301         PR debug/66668
16302         * dwarf2out.c (add_child_die_after): New function.
16303         (dwarf_qual_info_t): New type.
16304         (dwarf_qual_info): New variable.
16305         (qualified_die_p): New function.
16306         (modified_type_die): For -fdebug-types-section, ensure
16307         canonical order of qualifiers.  Put qualified DIEs adjacent
16308         to the corresponding non-qualified type DIE and search there
16309         for existing qualified DIEs.
16310
16311 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16312
16313         * doc/extend.texi (scalar_storage_order type attribute): Document
16314         restriction on type punning and aliasing, and remove future tense.
16315
16316 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
16317
16318         PR target/69252
16319         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
16320         first stage.
16321
16322 2016-01-21  Jeff Law  <law@redhat.com>
16323
16324         PR middle-end/69347
16325         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
16326         useless call to record_temporary_equivalences.
16327         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
16328         allocate 10 slots in the bb_path vector and let it grow as needed.
16329         (fsm_find_control_statement_thread_paths): Similarly for the next_path
16330         vector.
16331
16332 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16333
16334         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
16335         Detangle.
16336         * configure: Regenerate.
16337
16338 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
16339
16340         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
16341         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
16342
16343 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
16344
16345         PR middle-end/66178
16346         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
16347         drop EXPAND_INITIALIZER.
16348         * rtl.h (contains_symbolic_reference_p): Declare.
16349         * rtlanal.c (contains_symbolic_reference_p): New function.
16350         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
16351         a subtraction into a NOT if symbolic constants are involved.
16352
16353 2016-01-21  Anton Blanchard  <anton@samba.org>
16354             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16355
16356         PR target/63354
16357         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
16358         #define.
16359         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
16360         function.
16361
16362 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16363
16364         * config/microblaze/microblaze.c
16365         (get_branch_target): New.
16366         (insert_wic_for_ilb_runout): New.
16367         (insert_wic): New.
16368         (microblaze_machine_dependent_reorg): New.
16369         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
16370         * config/microblaze/microblaze.md
16371         (UNSPEC_IPREFETCH): Define.
16372         (iprefetch): New pattern
16373         * config/microblaze/microblaze.opt
16374         (mxl-prefetch): New flag.
16375
16376 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16377
16378         * config/microblaze/microblaze.h
16379         (FIXED_REGISTERS): Update in macro.
16380         (CALL_USED_REGISTERS): Update in macro.
16381
16382 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
16383
16384         PR rtl-optimization/68920
16385         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
16386         moves.
16387
16388 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
16389
16390         PR rtl-optimization/68990
16391         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
16392         pseudo instead of inheritance ones.
16393
16394 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16395             Nick Clifton  <nickc@redhat.com>
16396
16397         PR target/69129
16398         PR target/69012
16399         * config/mips/mips.c (mips_compute_frame_info): Initialise
16400         args_size and hard_frame_pointer_offset fields of the frame
16401         structure before calling mips_global_pointer.
16402
16403 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16404
16405         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
16406         label reference.
16407         * configure: Regenerate.
16408
16409 2016-01-21  Richard Biener  <rguenther@suse.de>
16410
16411         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
16412
16413 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
16414
16415         * config/s390/s390.c (s390_asm_declare_function_size): Add code
16416         to actually emit the .size directive.
16417
16418 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
16419              Jakub Jelinek  <jakub@redhat.com>
16420
16421         PR target/69187
16422         PR target/65624
16423         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
16424         args array size by one to avoid buffer overflow.
16425
16426 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
16427
16428         * config/s390/s390.md (pool_section_start): Use switch_to_section
16429         to select proper read-only data section instead of hardcoding
16430         .rodata.
16431         (pool_section_end): Use switch_to_section to match the above.
16432
16433 2016-01-21  Richard Biener  <rguenther@suse.de>
16434
16435         PR tree-optimization/69378
16436         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
16437         (set_ssa_val_to): Use it for dominance checks taking into
16438         account not executable edges.
16439
16440 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16441
16442         PR c++/69355
16443         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
16444         for bitsize instead of GET_MODE_PRECISION (mode).
16445
16446 2016-01-20  Martin Sebor  <msebor@redhat.com>
16447
16448         PR c/52291
16449         * extend.texi (__sync Builtins): Clarify the semantics of
16450         __sync_fetch_and_OP built-ins on pointers.
16451         (__atomic Builtins): Same.
16452
16453 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16454             Sebastian Pop  <s.pop@samsung.com>
16455
16456         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
16457         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
16458         (is_valid_rename): Same.
16459         (translate_isl_ast_to_gimple::get_rename): Same.
16460         (translate_isl_ast_to_gimple::rename_all_uses): Same.
16461         (translate_isl_ast_to_gimple::rename_uses): Same.
16462         (get_new_name): Check for close_phi nodes.
16463         (copy_loop_phi_args): Use phi_node_kind.
16464         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
16465         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
16466
16467 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16468             Sebastian Pop  <s.pop@samsung.com>
16469
16470         Revert commit r229783.
16471         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16472         Remove use of parameter_rename_map.
16473         (copy_def): Remove.
16474         (copy_internal_parameters): Remove.
16475         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
16476         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
16477         (free_sese_info): Do not free parameter_rename_map.
16478         (set_rename): Do not use parameter_rename_map.
16479         (rename_uses): Update call to set_rename.
16480         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
16481         * sese.h (parameter_rename_map_t): Remove.
16482         (struct sese_info_t): Remove field parameter_rename_map.
16483
16484 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16485             Sebastian Pop  <s.pop@samsung.com>
16486
16487         * graphite-isl-ast-to-gimple.c: Fix comment.
16488         * graphite-scop-detection.c (defined_in_loop_p): New.
16489         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
16490         names defined in loop.
16491
16492 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16493             Sebastian Pop  <s.pop@samsung.com>
16494
16495         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
16496         Discard unstructured if-then-else regions.
16497
16498 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16499             Sebastian Pop  <s.pop@samsung.com>
16500
16501         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
16502         (cleanup_loop_iter_dom): Remove.
16503         (build_loop_iteration_domains): Remove.
16504         (build_scop_context): Remove.
16505         (build_scop_iteration_domain): Remove.
16506         (add_loop_constraints): New.
16507         (build_iteration_domains): New.
16508         (build_poly_scop): Call build_iteration_domains.
16509
16510 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16511             Sebastian Pop  <s.pop@samsung.com>
16512
16513         * graphite-scop-detection.c
16514         (scop_detection::harmful_loop_in_region): Free dom and loops.
16515         (scop_detection::loop_body_is_valid_scop): Free bbs.
16516
16517 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16518             Sebastian Pop  <s.pop@samsung.com>
16519
16520         * graphite-scop-detection.c (record_loop_in_sese): New.
16521         (gather_bbs::before_dom_children): Call record_loop_in_sese.
16522         (build_scops): Remove call to build_sese_loop_nests.
16523         * sese.c (sese_record_loop): Remove.
16524         (build_sese_loop_nests): Remove.
16525         (new_sese_info): Remove region->loops.
16526         (free_sese_info): Same.
16527         * sese.h (sese_contains_loop): Same.
16528         (build_sese_loop_nests): Remove.
16529         (sese_contains_loop): Remove.
16530
16531 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16532             Sebastian Pop  <s.pop@samsung.com>
16533
16534         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
16535         loop_is_valid_in_scop.
16536         (scop_detection::harmful_stmt_in_region): Renamed
16537         harmful_loop_in_region.
16538         Call loop_is_valid_in_scop.
16539
16540 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16541             Sebastian Pop  <s.pop@samsung.com>
16542
16543         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
16544         isl_ast_node_mark.
16545
16546 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16547             Sebastian Pop  <s.pop@samsung.com>
16548
16549         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
16550         * graphite.h (struct poly_bb): Remove field is_reduction.
16551         (PBB_IS_REDUCTION): Remove.
16552
16553 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16554             Sebastian Pop  <s.pop@samsung.com>
16555
16556         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
16557         (add_pdr_constraints): Same.
16558         (scop_get_reads): Same.
16559         (scop_get_must_writes): Same.
16560         (scop_get_may_writes): Same.
16561         (scop_get_original_schedule): Same.
16562         (extend_schedule): Same.
16563         (apply_schedule_on_deps): Same.
16564         (carries_deps): Same.
16565         (compute_deps): Same.
16566         (scop_get_dependences): Same.
16567         * graphite-isl-ast-to-gimple.c
16568         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
16569         * graphite-optimize-isl.c (get_schedule_for_band): Same.
16570         (get_schedule_for_band_list): Same.
16571         (get_schedule_map): Same.
16572         (apply_schedule_map_to_scop): Same.
16573         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16574         (build_loop_iteration_domains): Same.
16575         (add_condition_to_pbb): Same.
16576         (add_param_constraints): Same.
16577         (pdr_add_memory_accesses): Same.
16578         (pdr_add_data_dimensions): Same.
16579
16580 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16581
16582         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
16583         requirements.
16584
16585 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16586
16587         * common.opt (feliminate-dwarf2-dups): Replace references to
16588         "DWARF 2" with just "DWARF".
16589         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
16590         * doc/extend.texi: Likewise.
16591         * doc/cpp.texi: Likewise.
16592         * doc/invoke.texi: Likewise.
16593         (Option Summary): Add -gdwarf to list of Debugging Options.
16594         (Debugging Options): Document -gdwarf.
16595         * doc/contrib.texi: Spell "DWARF" like that.
16596
16597 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16598
16599         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
16600         warning.  Fix up formatting.
16601
16602         PR middle-end/67653
16603         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
16604         attempt to mark memory input operand addressable and
16605         call prepare_gimple_addressable in that case.  Don't adjust
16606         input_location for diagnostics, use error_at instead.
16607
16608 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
16609
16610         * config/rs6000/ppc-auxv.h: New file.
16611         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
16612         (cpu_is): Likewise.
16613         (cpu_supports): Likewise.
16614         * config/rs6000/rs6000.c: include "ppc-auxv.h".
16615         (cpu_is_info): New variable.
16616         (cpu_supports_info): Likewise.
16617         (tcb_verification_symbol): Likewise.
16618         (cpu_builtin_p): Likewise.
16619         (cpu_expand_builtin): New function.
16620         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
16621         (rs6000_init_builtins): Likewise.
16622         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
16623         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
16624         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
16625         * configure: Regenerate.
16626         * config.in: Likewise.
16627         * doc/extend.texi (PowerPC Built-in Functions): Document
16628         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
16629
16630 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
16631
16632         PR target/68609
16633         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
16634         domain check.
16635         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
16636         for V4SFmode.
16637
16638 2016-01-20  Richard Henderson  <rth@redhat.com>
16639
16640         PR bootstrap/69343
16641         PR bootstrap/69339
16642         PR tree-opt/68964
16643         Revert:
16644         * tree.c (tm_define_builtin): New.
16645         (find_tm_vector_type): New.
16646         (build_tm_vector_builtins): New.
16647         (build_common_builtin_nodes): Call it.
16648
16649 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
16650
16651         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
16652         (arm_fp_ok): Likewise.
16653         (arm_fp): Likewise.
16654         (arm_crypto): Likewise.
16655
16656 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16657             Richard Biener  <rguenther@suse.de>
16658
16659         PR tree-optimization/69328
16660         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
16661         vectors have same number of elements.
16662         (vectorizable_condition): Fix masked version recognition.
16663
16664 2016-01-20  Richard Biener  <rguenther@suse.de>
16665
16666         PR tree-optimization/69345
16667         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16668         (VN_INFO_PTR_INFO): Likewise.
16669         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16670         info when it is equal between non-dominating SSA names.
16671         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16672         Make sure to look at original SSA infos.
16673
16674 2016-01-20  Jeff Law  <law@redhat.com>
16675
16676         PR target/25114
16677         * config/m68k/predicates.md (pow2_m1_operand): New predicate
16678         extracted from ...
16679         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16680         (pc_or_label_operand): New predicate.
16681         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16682         tests for small integers that are 2^n - 1.
16683
16684 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
16685
16686         * doc/invoke.texi (Options Summary): Add '.' after @xref.
16687
16688 2016-01-19  Jeff Law  <law@redhat.com>
16689
16690         PR middle-end/69347
16691         * tree-ssa-threadbackwards.c
16692         (fsm_find_control_statement_thread_paths): Do not try to lookup
16693         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16694
16695 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16696
16697         * doc/lto.texi: Remove text that says only Gold has linker plugin
16698         support.
16699
16700 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
16701
16702         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16703         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16704         the DIE accordingly.
16705         (modified_type_die): Add REVERSE parameter and pass it recursively,
16706         as well as to base_type_die.  Adjust presence check accordingly.
16707         (base_type_for_mode): Adjust call to modified_type_die.
16708         (add_type_attribute): Add REVERSE parameter and pass it to
16709         modified_type_die.
16710         (generic_parameter_die): Adjust call to add_type_attribute.
16711         (add_scalar_info): Likewise.
16712         (add_subscript_info): Likewise.
16713         (gen_array_type_die): Likewise.
16714         (gen_descr_array_type_die): Likewise.
16715         (gen_entry_point_die): Likewise.
16716         (gen_enumeration_type_die): Likewise.
16717         (gen_formal_parameter_die): Likewise.
16718         (gen_subprogram_die): Likewise.
16719         (gen_variable_die ): Likewise.
16720         (gen_const_die): Likewise.
16721         (gen_field_die): Likewise.
16722         (gen_pointer_type_die): Likewise.
16723         (gen_reference_type_die): Likewise.
16724         (gen_ptr_to_mbr_type_die): Likewise.
16725         (gen_inheritance_die): Likewise.
16726         (gen_subroutine_type_die): Likewise.
16727         (gen_typedef_die): Likewise.
16728         (force_type_die): Adjust call to modified_type_die.
16729
16730 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
16731
16732         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16733         flow throughout the file.  Fix broken link to Objective-C 2.0
16734         documentation.
16735         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16736         errors.
16737
16738 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16739
16740         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16741
16742 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16743
16744         PR ipa/66223
16745         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16746         (maybe_record_node): Record cxa_pure_virtual as the only possible
16747         target if there are not ohter candidates.
16748         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16749
16750 2016-01-19  Richard Biener  <rguenther@suse.de>
16751
16752         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16753         (get_memory_order): Likewise.
16754
16755 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16756
16757         * tree-vect-stmts.c (vectorizable_store): Check
16758         rhs vectype.
16759
16760 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
16761
16762         PR jit/68446
16763         * gcc.c (driver::decode_argv): Add call to
16764         init_opts_obstack before init_options_struct.
16765         * opts.c (init_opts_obstack): Remove idempotency.
16766         (init_options_struct): Replace call to init_opts_obstack
16767         with a gcc_assert to verify that it has already been called.
16768         * toplev.c (toplev::main): Add call to init_opts_obstack before
16769         calls to init_options_struct.
16770         (toplev::finalize): Move cleanup of opts_obstack next to
16771         cleanup of save_decoded_options, clearing the latter, and
16772         save_decoded_options_count.
16773
16774 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16775
16776         PR target/69135
16777         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
16778         attribute to unconditional.  Remove %? from output template.
16779
16780 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16781             Jiong Wang  <jiong.wang@arm.com>
16782
16783         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
16784         generated from different expand order.
16785
16786 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16787
16788         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16789         Add support for CCMP costing.
16790
16791 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16792
16793         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
16794         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
16795         (fccmpe<mode>): Likewise.
16796         (fcmp): Rename to fcmp and globalize pattern.
16797         (fcmpe): Likewise.
16798         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
16799         (aarch64_gen_ccmp_next): Add FP support.
16800
16801 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16802
16803         * target.def (gen_ccmp_first): Update documentation.
16804         (gen_ccmp_next): Likewise.
16805         * doc/tm.texi (gen_ccmp_first): Update documentation.
16806         (gen_ccmp_next): Likewise.
16807         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
16808         expand_ccmp_expr_1.  Improve comments.
16809         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
16810         (ccmp_ior<mode>): Remove pattern.
16811         (cmp<mode>): Remove expand.
16812         (cmp): Globalize pattern.
16813         (cstorecc4): Use cc_register.
16814         (mov<mode>cc): Remove ccmp_cc_register check.
16815         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
16816         Simplify after removal of CC_DNE/* modes.
16817         (aarch64_ccmp_mode_to_code): Remove.
16818         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16819         In 'k' case use integer as condition.
16820         (aarch64_nzcv_codes): Remove inverted cases.
16821         (aarch64_code_to_ccmode): Remove.
16822         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16823         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16824         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16825         pattern.  Return the comparison with CC register.  Invert conditions
16826         when bitcode is OR.
16827         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16828         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16829
16830 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16831
16832         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16833         instrumented_version.
16834
16835 2016-01-19  Richard Biener  <rguenther@suse.de>
16836
16837         PR tree-optimization/69336
16838         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16839         handled components with get_ref_base_and_extent.
16840         (equal_mem_array_ref_p): Adjust.
16841
16842 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16843
16844         PR debug/65779
16845         * shrink-wrap.c: Include valtrack.h.
16846         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16847         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16848         in between insn and where it will be moved to.  Call
16849         dead_debug_insert_temp.
16850         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16851         first and dead_debug_local_finish at the end.
16852         For uses and defs bitmap, handle all regs in between REGNO and
16853         END_REGNO, not just the first one.
16854
16855 2016-01-19  Richard Biener  <rguenther@suse.de>
16856
16857         PR tree-optimization/69352
16858         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16859         (equal_mem_array_ref_p): Constrain size and max size properly.
16860         Compare the reverse flag.
16861
16862 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16863
16864         * ira.c (ira): Update regstat data if we deleted insns.
16865
16866 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16867
16868         PR rtl-optimization/68955
16869         PR rtl-optimization/64557
16870         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16871         here.  Fix up formatting.
16872         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16873
16874 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16875
16876         PR lto/69133
16877         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16878         assume that the node has body.
16879         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16880         check.
16881
16882 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16883
16884         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16885         thunks.
16886
16887 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16888
16889         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16890         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16891
16892 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16893             Martin Liska  <mliska@suse.cz>
16894             Michael Matz  <matz@suse.de>
16895
16896         * Makefile.in (OBJS): Add new source files.
16897         (GTFILES): Add hsa.c.
16898         * common.opt (disable_hsa): New variable.
16899         (-Whsa): New warning.
16900         * config.in (ENABLE_HSA): New.
16901         * configure.ac: Treat hsa differently from other accelerators.
16902         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16903         $enable_offloading.
16904         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16905         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16906         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16907         --with-hsa-kmt-lib.
16908         * doc/invoke.texi (-Whsa): Document.
16909         (hsa-gen-debug-stores): Likewise.
16910         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16911         to invoke offload compiler for hsa acclerator.
16912         * opts.c (common_handle_option): Determine whether HSA offloading
16913         should be performed.
16914         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16915         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16916         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16917         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16918         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16919         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16920         GF_OMP_FOR_KIND_GRID_LOOP.
16921         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16922         (pp_gimple_stmt_1): Likewise.
16923         * gimple-walk.c (walk_gimple_stmt): Likewise.
16924         * gimple.c (gimple_build_omp_grid_body): New function.
16925         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16926         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16927         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16928         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16929         GF_OMP_TEAMS_GRID_PHONY.
16930         (gimple_statement_omp_single_layout): Updated comments.
16931         (gimple_build_omp_grid_body): New function.
16932         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16933         (gimple_omp_for_grid_phony): New function.
16934         (gimple_omp_for_set_grid_phony): Likewise.
16935         (gimple_omp_parallel_grid_phony): Likewise.
16936         (gimple_omp_parallel_set_grid_phony): Likewise.
16937         (gimple_omp_teams_grid_phony): Likewise.
16938         (gimple_omp_teams_set_grid_phony): Likewise.
16939         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16940         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16941         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16942         (BUILT_IN_GOMP_TARGET): Updated type.
16943         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16944         (adjust_for_condition): New function.
16945         (get_omp_for_step_from_incr): Likewise.
16946         (extract_omp_for_data): Moved parts to adjust_for_condition and
16947         get_omp_for_step_from_incr.
16948         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16949         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16950         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16951         (scan_omp_parallel): Do not create child functions for phony
16952         constructs.
16953         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16954         (scan_omp_1_op): Checking assert we are not remapping to
16955         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16956         (parallel_needs_hsa_kernel_p): New function.
16957         (expand_parallel_call): Register apprpriate parallel child
16958         functions as HSA kernels.
16959         (grid_launch_attributes_trees): New type.
16960         (grid_attr_trees): New variable.
16961         (grid_create_kernel_launch_attr_types): New function.
16962         (grid_insert_store_range_dim): Likewise.
16963         (grid_get_kernel_launch_attributes): Likewise.
16964         (get_target_argument_identifier_1): Likewise.
16965         (get_target_argument_identifier): Likewise.
16966         (get_target_argument_value): Likewise.
16967         (push_target_argument_according_to_value): Likewise.
16968         (get_target_arguments): Likewise.
16969         (expand_omp_target): Call get_target_arguments instead of looking
16970         up for teams and thread limit.
16971         (grid_expand_omp_for_loop): New function.
16972         (grid_arg_decl_map): New type.
16973         (grid_remap_kernel_arg_accesses): New function.
16974         (grid_expand_target_kernel_body): New function.
16975         (expand_omp): Call it.
16976         (lower_omp_for): Do not emit phony constructs.
16977         (lower_omp_taskreg): Do not emit phony constructs but create for them
16978         a temporary variable receiver_decl.
16979         (lower_omp_taskreg): Do not emit phony constructs.
16980         (lower_omp_teams): Likewise.
16981         (lower_omp_grid_body): New function.
16982         (lower_omp_1): Call it.
16983         (grid_reg_assignment_to_local_var_p): New function.
16984         (grid_seq_only_contains_local_assignments): Likewise.
16985         (grid_find_single_omp_among_assignments_1): Likewise.
16986         (grid_find_single_omp_among_assignments): Likewise.
16987         (grid_find_ungridifiable_statement): Likewise.
16988         (grid_target_follows_gridifiable_pattern): Likewise.
16989         (grid_remap_prebody_decls): Likewise.
16990         (grid_copy_leading_local_assignments): Likewise.
16991         (grid_process_kernel_body_copy): Likewise.
16992         (grid_attempt_target_gridification): Likewise.
16993         (grid_gridify_all_targets_stmt): Likewise.
16994         (grid_gridify_all_targets): Likewise.
16995         (execute_lower_omp): Call grid_gridify_all_targets.
16996         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
16997         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
16998         (tree_omp_clause): Added union field dimension.
16999         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17000         * tree.c (omp_clause_num_ops): Added number of arguments of
17001         OMP_CLAUSE__GRIDDIM_.
17002         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17003         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17004         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17005         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17006         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17007         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17008         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17009         * tree-pass.h (make_pass_gen_hsail): Declare.
17010         (make_pass_ipa_hsa): Likewise.
17011         * ipa-hsa.c: New file.
17012         * lto-section-in.c (lto_section_name): Add hsa section name.
17013         * lto-streamer.h (lto_section_type): Add hsa section.
17014         * timevar.def (TV_IPA_HSA): New.
17015         * hsa-brig-format.h: New file.
17016         * hsa-brig.c: New file.
17017         * hsa-dump.c: Likewise.
17018         * hsa-gen.c: Likewise.
17019         * hsa.c: Likewise.
17020         * hsa.h: Likewise.
17021         * toplev.c (compile_file): Call hsa_output_brig.
17022         * hsa-regalloc.c: New file.
17023
17024 2016-01-18  Jeff Law  <law@redhat.com>
17025
17026         PR tree-optimization/69320
17027         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17028         ranged object, do nothing if the RHS constant is not [0..1].
17029         (optimize_stmt): Comparing a boolean ranged object against a
17030         constant outside [0..1] results in a compile-time constant.
17031
17032         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17033         test.
17034
17035 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
17036
17037         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17038         (Option Summary): Update to reflect new section and moved options.
17039         (C++ Dialect Options): Move -fstats to new section.
17040         (Debugging Options): Move all dump, statistics, and other GCC
17041         developer options to new section.  Rewrite section introduction
17042         and re-order remaining options to put the more basic ones first.
17043         (Optimization Options): Move -fira-verbose and -flto-report* to
17044         new section.
17045         (Developer Options): New section incorporating moved options.
17046         * doc/cppopts.texi (-dM): Update cross-reference.
17047
17048 2016-01-18  Richard Henderson  <rth@redhat.com>
17049
17050         PR target/69176
17051         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17052         operands to pseudo only if CSE is expected.  Split long immediate
17053         operands only after reload, and for the stack pointer.
17054         (*add<GPI>3_pluslong): Remove.
17055         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17056         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
17057         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17058         (*add<GPI>3 peepholes): New.
17059         (*add<GPI>3 splitters): New.
17060         * config/aarch64/constraints.md (Upl): New.
17061         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17062
17063 2016-01-18  Richard Biener  <rguenther@suse.de>
17064
17065         PR tree-optimization/69297
17066         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17067         stmt at most once.
17068         (vect_bb_vectorization_profitable_p): Clear visited flag again.
17069
17070 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17071
17072         PR middle-end/68542
17073         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17074         of mixind vector and scalar types.
17075         (fold_relational_const): Add handling of vector
17076         comparison with boolean result.
17077         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17078         comparison of vector operands with boolean result for EQ/NE only.
17079         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17080         (verify_gimple_cond): Likewise.
17081         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17082         valid type of VAL.
17083
17084 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
17085
17086         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17087         !TARGET_OCTEON.
17088
17089 2016-01-18  Richard Biener  <rguenther@suse.de>
17090
17091         PR middle-end/69308
17092         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17093
17094 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17095
17096         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17097
17098 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17099
17100         * omp-low.c (set_oacc_fn_attrib): Make extern.
17101         * omp-low.h (set_oacc_fn_attrib): Declare.
17102         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17103         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17104         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17105         Add and handle function parameter oacc_kernels_p.
17106         (find_reduc_addr, get_omp_data_i_param): New function.
17107         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17108         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17109         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17110         Calculate dominance info.  Skip loops that are not in a kernels region
17111         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
17112         (pass_parallelize_loops::execute): Call parallelize_loops with
17113         oacc_kernels_p argument.
17114         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17115         New member function.
17116         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17117         * passes.def: Add argument to pass_parallelize_loops instantation.
17118
17119 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17120
17121         * tree-parloops.c (pass_parallelize_loops::execute): Allow
17122         pass_parallelize_loops to be run outside the loop pipeline.
17123
17124 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17125
17126         * tree-scalar-evolution.c (follow_copies_to_constant): New.
17127         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17128
17129 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17130
17131         PR target/63679
17132         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17133         using get_ref_base_and_extent.
17134         (equal_mem_array_ref_p): New.
17135         (hashable_expr_equal_p): Add call to previous.
17136
17137 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17138
17139         PR target/63679
17140         * tree-sra.c (disqualified_constants, constant_decl_p): New.
17141         (sra_initialize): Allocate disqualified_constants.
17142         (sra_deinitialize): Free disqualified_constants.
17143         (disqualify_candidate): Update disqualified_constants when appropriate.
17144         (create_access): Scan for constant-pool entries as we go along.
17145         (scalarizable_type_p): Add check against type_contains_placeholder_p.
17146         (maybe_add_sra_candidate): Allow constant-pool entries.
17147         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17148         (initialize_constant_pool_replacements): New.
17149         (sra_modify_assign): Avoid mangling assignments created by previous,
17150         and don't generate writes into constant pool.
17151         (sra_modify_function_body): Call initialize_constant_pool_replacements.
17152
17153 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
17154
17155         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17156         andnot instruction.
17157         (scalar_chain::convert_op): Likewise.
17158         * config/i386/i386.md (*andndi3_doubleword): New.
17159
17160 2016-01-18  Richard Biener  <rguenther@suse.de>
17161
17162         PR tree-optimization/69170
17163         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17164         building a vector from scalar results of a pattern stmt.
17165
17166 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
17167
17168         * haifa-sched.c (autopref_multipass_init): Work around
17169         -Wmaybe-uninitialized warning.
17170
17171 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17172
17173         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17174         against the constant 0.
17175
17176 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17177
17178         PR tree-optimization/68799
17179         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17180         look up phi candidates in the statement-candidate map.
17181         (phi_add_costs): Likewise.
17182         (record_phi_increments): Likewise.
17183         (phi_incr_cost): Likewise.
17184         (ncd_with_phi): Likewise.
17185         (all_phi_incrs_profitable): Likewise.
17186
17187 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
17188
17189         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17190         -Wmaybe-uninitialized warning.
17191
17192 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
17193
17194         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17195         (Option Summary): Update to reflect new section and moved options.
17196         (C++ Dialect Options): Move -fvtable-verify and related options.
17197         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17198         and profiling-related options.
17199         (Optimization Options): Move profile generation options and
17200         -fstack-protector and related options.
17201         (Instrumentation Options): New section incorporating moved options.
17202         (Code Generation Options): Move -finstrument-functions and
17203         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17204
17205 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17206
17207         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17208
17209 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17210
17211         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
17212
17213 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
17214
17215         * hash-table.h (hash_table::empty): Turn into an inline wrapper
17216         that checks whether the table is already empty.  Rename the
17217         original implementation to...
17218         (hash_table::empty_slot): ...this new private function.
17219
17220 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
17221
17222         PR diagnostic/68899
17223         * diagnostic-show-locus.c (layout::print_source_line): Move x
17224         offset of line until after call to
17225         get_line_width_without_trailing_whitespace.
17226
17227 2016-01-15  Jeff Law  <law@redhat.com>
17228
17229         PR tree-optimization/69270
17230         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17231         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
17232         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17233         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17234         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17235         ssa_name_has_boolean_range and constant_boolean_node.
17236
17237 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17238
17239         PR rtl-optimization/69030
17240         * lra-spills.c (remove_pseudos): Check nrefs and make the function
17241         returning bool.
17242         (spill_pseudos): Delete debug insn for dead pseudo.
17243         (lra_spill): Initiate spill_hard_reg and slots memory separately.
17244
17245 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
17246
17247         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17248         New.
17249         (TYPES_UNOPUS): Likewise.
17250         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17251         builtin type, from UNOP to UNOPUS.
17252         (lbtruncuv4sf): Likewise.
17253         (lbtruncuv2df): Likewise.
17254         (lrounduv2sf): Likewise.
17255         (lrounduv4sf): Likewise.
17256         (lrounduv2df): Likewise.
17257         (lroundusf): Likewise.
17258         (lroundusf): Likewise.
17259         (lceiluv2sf): Likewise.
17260         (lceiluv4sf): Likewise.
17261         (lceiluv2df): Likewise.
17262         (lceilusf): Likewise.
17263         (lceiludf): Likewise.
17264         (lflooruv2sf): Likewise.
17265         (lflooruv4sf): Likewise.
17266         (lflooruv2df): Likewise.
17267         (lfloorusf): Likewise.
17268         (lfloorudf): Likewise.
17269         (lfrintnuv2sf): Likewise.
17270         (lfrintnuv4sf): Likewise.
17271         (lfrintnuv2df): Likewise.
17272         (lfrintnusf): Likewise.
17273         (lfrintnudf): Likewise.
17274         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
17275         conversion.
17276         (vcvtq_u32_f32): Likewise.
17277         (vcvtq_u64_f64): Likewise.
17278         (vcvta_u32_f32): Likewise.
17279         (vcvtaq_u32_f32): Likewise.
17280         (vcvtaq_u64_f64): Likewise.
17281         (vcvtm_u32_f32): Likewise.
17282         (vcvtmq_u32_f32): Likewise.
17283         (vcvtmq_u64_f64): Likewise.
17284         (vcvtn_u32_f32): Likwise.
17285         (vcvtnq_u32_f32): Likewise.
17286         (vcvtnq_u64_f64): Likewise.
17287         (vcvtp_u32_f32): Likewise.
17288         (vcvtpq_u32_f32): Likewise.
17289         (vcvtpq_u64_f64): Likewise.
17290         (vcvtmd_u64_f64): Likewise.
17291         (vcvtms_u32_f32): Likewise.
17292         (vcvtad_u64_f64): Likewise.
17293         (vcvtas_u32_f32): Likewise.
17294         (vcvtnd_u64_f64): Likewise.
17295         (vcvtns_u32_f32): Likewise.
17296         (vcvtpd_u64_f64): Likewise.
17297         (vcvtps_u32_f32): Likewise.
17298
17299 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17300
17301         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
17302         CSEL of zero_extended registers.
17303
17304 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17305
17306         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17307         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
17308
17309 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17310
17311         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
17312         false when argument string is not found in the attributes table
17313         at all.
17314
17315 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
17316
17317         PR target/68609
17318         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
17319         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
17320         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
17321         precision estimate.
17322
17323 2016-01-15  Richard Biener  <rguenther@suse.de>
17324
17325         PR tree-optimization/66856
17326         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
17327         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
17328         (vect_create_new_slp_node): Increment stmt reference count.
17329         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
17330         an SLP tree before swapping operands.
17331         (vect_build_slp_tree): Likewise.
17332         (destroy_bb_vec_info): Free stmt info after SLP instances.
17333         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
17334         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
17335         (STMT_VINFO_NUM_SLP_USES): New macro.
17336
17337 2016-01-15  Richard Biener  <rguenther@suse.de>
17338
17339         PR debug/69137
17340         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
17341         (add_linkage_name): ... here.
17342         (gen_typedef_die): Use add_linkage_name_raw instead of
17343         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
17344         if necessary.
17345
17346 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
17347
17348         * gimplify.c (oacc_default_clause): Decode reference and pointer
17349         types for both kernels and parallel regions.
17350
17351 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17352
17353         PR middle-end/69246
17354         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
17355
17356 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17357
17358         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
17359         (convert_scalars_to_vector): Likewise.
17360
17361 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
17362
17363         * doc/extend.texi (Type Traits): Fix grammar.
17364
17365 2016-01-15  Martin Jambor  <mjambor@suse.cz>
17366
17367         * tree-inline.c (remap_decl): Use existing dclarations if
17368         remapping a type and prevent_decl_creation_for_types.
17369         (replace_locals_stmt): Do an initial remapping of non-VLA typed
17370         decls first.  Do real remapping with
17371         prevent_decl_creation_for_types set.
17372         * tree-inline.h (copy_body_data): New field
17373         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
17374         padding.
17375
17376 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17377
17378         * config/s390/s390.opt (mmvcle): More verbose help text.
17379
17380 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17381
17382         * config/s390/s390.opt: Add period to -mzvector option text.
17383
17384 2016-01-15  Richard Biener  <rguenther@suse.de>
17385
17386         PR tree-optimization/68961
17387         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
17388         of invariants in stores again.
17389
17390 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17391
17392         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
17393
17394 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17395
17396         * config/i386/i386.c (ix86_expand_branch): Don't split
17397         DI mode xor instruction to SI mode.
17398
17399 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17400
17401         PR ipa/68148
17402         * ipa-icf.c (sem_function::merge): Virtual functions may become
17403         reachable even if they address is not taken and there are no
17404         idrect calls.
17405
17406 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17407
17408         * lto-streamer-out.c (subtract_estimated_size): New function.
17409         (get_symbol_initial_value): Use it.
17410
17411 2016-01-15  Christian Bruel  <christian.bruel@st.com>
17412
17413         PR target/65837
17414         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
17415         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
17416         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
17417         use add_builtin_function_ext_scope instead of add_builtin_function.
17418         (neon_set_p, neon_crypto_set_p): Remove.
17419         (arm_init_builtins): Always call arm_init_neon_builtins and
17420         arm_init_crypto_builtins.
17421         (arm_expand_builtin): Check that builtins are allowed for the arch.
17422         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
17423         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
17424         arm_init_neon_builtins call.
17425
17426 2016-01-15  Richard Biener  <rguenther@suse.de>
17427
17428         PR tree-optimization/69117
17429         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
17430         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
17431         of the leader conservatively.
17432         (free_scc_vn): Restore original SSA name infos.
17433
17434 2016-01-14  Jeff Law  <law@redhat.com>
17435
17436         PR tree-optimization/69270
17437         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
17438         single bit of precision, verify it's also unsigned.
17439         (record_edge_info): Use constant_boolean_node rather than fold_convert
17440         to convert boolean_true/boolean_false to the right type.
17441
17442 2016-01-14  Richard Henderson  <rth@redhat.com>
17443
17444         PR rtl-opt/69014
17445         * loop-doloop.c (record_reg_sets): New.
17446         (doloop_optimize): Reject the transform if the sequence
17447         clobbers registers live at the end of the loop block.
17448         (doloop_optimize_loops): Enable df_live if needed.
17449
17450 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17451
17452         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
17453         * config/rs6000/rs6000.c: Likewise.
17454         * config/rs6000/rs6000.h: Likewise.
17455         * config/rs6000/rs6000.md: Likewise.
17456         * doc/extend.texi: Likewsie.
17457
17458 2016-01-14  Jeff Law  <law@redhat.com>
17459
17460         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
17461         typo.
17462
17463 2016-01-14  Richard Henderson  <rth@redhat.com>
17464
17465         PR c/69272
17466         PR tree-opt/68964
17467         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
17468         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
17469         instead of builtin_decl_declared_p to test for declaration.
17470
17471 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
17472
17473         * doc/loop.texi (Loop Analysis and Representation): Document
17474         loop_depth function.
17475
17476 2016-01-14  Tom de Vries  <tom@codesourcery.com>
17477
17478         PR tree-optimization/68773
17479         * omp-low.c (expand_omp_target): Don't set force_output.
17480         * varpool.c (varpool_node::get_create): Same.
17481         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
17482         offload_funcs with force_output.
17483
17484 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17485
17486         PR debug/69244
17487         * lra-eliminations.c (move_plus_up): Don't change anything if either
17488         the outer or inner subreg mode is not MODE_INT.
17489         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
17490         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
17491
17492 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
17493
17494         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
17495         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
17496         reduc_uplus_@var{m}): Remove.
17497         * expr.c (expand_expr_real_2): Remove expansion path for
17498         reduc_[us](min|max|plus) optabs.
17499         * optabs-tree.c (scalar_reduc_to_vector): Remove.
17500         * optabs-tree.h (scalar_reduc_to_vector): Remove.
17501         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
17502         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
17503         * tree-vect-loop.c (vectorizable_reduction): Remove test for
17504         reduc_[us](min|max|plus) optabs.
17505
17506 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
17507
17508         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
17509         (reduc_plus_scal_v2sf): New.
17510         (reduc_smax_v2sf): Rename to...
17511         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
17512         (reduc_smin_v2sf): Rename to...
17513         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
17514
17515 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
17516
17517         * alias.c (compare_base_symbol_refs): New function.
17518         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
17519         it.
17520
17521 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17522
17523         PR middle-end/68146
17524         PR tree-optimization/69155
17525         * tree-complex.c: Include cfganal.h.
17526         (phis_to_revisit): New variable.
17527         (extract_component): Add phiarg_p argument.  Assert that returned
17528         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
17529         (update_phi_components): Partly rewrite to use loop over real/imag
17530         components instead of code duplication.  If extract_component returns
17531         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
17532         create_tmp_reg into the PHI node instead, and mention the phi triplet
17533         in phis_to_revisit.
17534         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
17535         in phis_to_revisit at the end.
17536
17537 2016-01-14  Richard Biener  <rguenther@suse.de>
17538
17539         PR tree-optimization/68060
17540         * tree-vect-loop.c (vect_is_simple_reduction): Check the
17541         outer loop reduction is only used in the inner loop before
17542         detecting a double reduction.
17543
17544 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17545
17546         PR target/68269
17547         * combine.c (expand_field_assignment): Punt if compute_mode is
17548         unsupported scalar mode.
17549
17550 2016-01-14  Richard Biener  <rguenther@suse.de>
17551
17552         PR tree-optimization/66856
17553         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
17554         SLP node only if it built successfully.
17555         (vect_analyze_slp_instance): Adjust.
17556
17557 2016-01-14  Jeff Law  <law@redhat.com>
17558
17559         PR tree-optimization/69270
17560         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
17561         (record_edge_info): Use it.  Convert boolean_{true,false}_node
17562         to the type of op0.
17563
17564 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
17565
17566         PR ipa/66487
17567         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
17568         use block_ultimate_origin
17569         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
17570
17571 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17572
17573         * doc/invoke.texi (Submodel Options): Rename section to
17574         "Machine-Dependent Options" to better reflect its content.
17575         Rewrite introductory text to remove archaic CPU names.
17576         Update references.
17577
17578 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17579
17580         * doc/invoke.texi (Code Gen Options): Move section up in file,
17581         before target-specific options.  Update menu and option summary
17582         to reflect the new section ordering.
17583
17584 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17585
17586         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
17587         (C++ Dialect Options): Add cross-reference to -std option.
17588         * doc/standards.texi (C++ Language): Document C++14 support.
17589
17590 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17591
17592         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
17593         for pack/unpack functions for __ibm128.
17594         (PACK_IF): Likewise.
17595         (UNPACK_IF): Likewise.
17596
17597         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17598         support for __ibm128 pack/unpack functions.
17599         (rs6000_invalid_builtin): Likewise.
17600         (rs6000_init_builtins): Likewise.
17601         (rs6000_opt_masks): Likewise.
17602
17603         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
17604         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
17605         functions
17606         (RS6000_BTM_COMMON): Likewise.
17607
17608         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
17609         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
17610         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
17611         128-bit floating point.  Add support for the double values to be
17612         in Altivec registers for TF/IF packing and unpacking, but restrict
17613         TD packing sub-fields to be FPR registers.  Don't allow overlapped
17614         register support for packing.  Allow pack inputs to be memory
17615         locations.  Don't build generator functions for unpack<mode>_dm
17616         and unpack<mode>_nodm.
17617         (unpack<mode>_dm): Likewise.
17618         (unpack<mode>_nodm): Likewise.
17619         (pack<mode>): Likewise.
17620
17621         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
17622         built-in functions to pack/unpack explicit __ibm128 values.
17623         (__builtin_unpack_ibm128): Likewise.
17624
17625         * doc/extend.texi (PowerPC Built-in Functions): Document
17626         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
17627
17628 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
17629
17630         PR c/66208
17631         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
17632         Add new arg loc and pass it down as context.
17633         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
17634         to the location to use for the warning.
17635         (check_function_arguments): New arg loc.  All callers changed.  Pass
17636         it to check_function_nonnull.
17637         * c-common.h (check_function_arguments): Adjust declaration.
17638
17639 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
17640
17641         PR tree-optimization/69156
17642         * gimple.c (validate_type): Removed.
17643         (gimple_builtin_call_types_compatible_p): Use
17644         useless_type_conversion_p instead of validate_type.
17645         * value-prof.c (gimple_stringop_fixed_value): Fold
17646         icall_size to correct type.
17647
17648 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17649
17650         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
17651         effects.
17652
17653 2016-01-13  Richard Henderson  <rth@redhat.com>
17654
17655         PR tree-opt/68964
17656         * target.def (builtin_tm_load, builtin_tm_store): Remove.
17657         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
17658         (ix86_builtin_tm_store): Remove.
17659         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17660         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17661         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17662         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17663         * doc/tm.texi: Rebuild.
17664
17665         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
17666         (BUILT_IN_TM_MEMCPY_RTWN): New.
17667         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17668         fallback from vector to integer helpers.
17669         (build_tm_load): Handle vector types directly, instead of
17670         via target hook.
17671         (build_tm_store): Likewise.
17672         (expand_assign_tm): Prepare for register types not handled by
17673         the above.  Copy them to memory and use memcpy.
17674         * tree.c (tm_define_builtin): New.
17675         (find_tm_vector_type): New.
17676         (build_tm_vector_builtins): New.
17677         (build_common_builtin_nodes): Call it.
17678
17679 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
17680
17681         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17682         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
17683
17684 2016-01-13  Tom de Vries  <tom@codesourcery.com>
17685
17686         PR tree-optimization/69169
17687         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17688         handled_struct_type param.
17689         (create_variable_info_for, intra_create_variable_infos): Call
17690         create_variable_info_for_1 with extra arg.
17691
17692 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
17693
17694         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17695         and "armv8.1-a+crc" entries.
17696
17697 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
17698
17699         PR target/69228
17700         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17701         Change first operand predicate from register_or_constm1_operand
17702         to register_operand.
17703         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17704         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17705         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17706         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17707         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17708         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17709         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17710         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17711         comparison with constm1_rtx from vec_prefetch_gen part.
17712
17713 2016-01-13  Richard Biener  <rguenther@suse.de>
17714
17715         PR tree-optimization/69013
17716         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17717         Exchange assert for a test.
17718
17719 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17720
17721         PR target/69247
17722         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17723
17724 2016-01-13  Richard Biener  <rguenther@suse.de>
17725
17726         PR tree-optimization/69242
17727         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17728         assert with a check.
17729
17730 2016-01-13  Richard Biener  <rguenther@suse.de>
17731
17732         PR tree-optimization/69186
17733         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17734         Properly guard vect_update_misalignment_for_peel call.
17735
17736 2016-01-12  Jeff Law  <law@redhat.com>
17737
17738         PR tree-optimization/pr67755
17739         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17740         "need_profile_correction".
17741         (thread_block_1): Initialize new field to false by default.  If we
17742         have multiple thread paths through a common joiner to different
17743         final targets, then set new field to true.
17744         (compute_path_counts): Only do count adjustment when it's really
17745         needed.
17746
17747 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17748
17749         * doc/invoke.texi (Spec Files): Move section down in file, past
17750         all command-line option descriptions.
17751
17752 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17753
17754         PR middle-end/54809
17755         * doc/gty.texi: Remove documentation of mark_hook.
17756         * gengtype.c (struct write_types_data): Remove code to support
17757         mark_hook attribute.
17758         (walk_type): Likewise.
17759         (write_func_for_structure): Likewise.
17760
17761 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17762
17763         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17764         Directory Options, and -specs= to Overall Options.
17765         (Overall Options): Adjust similarly.  Reorder to group related
17766         options together.  Make -specs= cross-reference the spec file details.
17767         (Directory Options): Adjust similarly.
17768
17769 2016-01-12  Jeff Law  <law@redhat.com>
17770
17771         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17772
17773 2016-01-12  Olivier Hainque  <hainque@adacore.com>
17774
17775         * gcc.c (spec_undefvar_allowed): New global.
17776         (process_command): Set to true when running for --version or --help,
17777         alone or together.
17778         (getenv_spec_function): When the variable is not defined, use the
17779         variable name as the variable value if we're allowed not to issue
17780         a fatal error.
17781
17782 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
17783
17784         PR tree-optimization/68911
17785         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
17786         information computed for expression "init + nit * step".
17787
17788 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17789
17790         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
17791         about name of GCC executable.  Remove deleted node from menu.
17792         (Directory Options) <-B>: Remove cross-reference to deleted node.
17793         (Target Options): Delete section.
17794
17795 2016-01-12  Christian Bruel  <christian.bruel@st.com>
17796
17797         PR target/69180
17798         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
17799         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
17800
17801 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
17802
17803         PR target/69198
17804         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
17805         aligned_mem is properly set for AVX512-VL floating point masked
17806         stores.
17807
17808         PR target/69175
17809         * ifcvt.c (cond_exec_process_if_block): When removing the last
17810         insn from then_bb, remove also any possible barriers that follow it.
17811
17812 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17813
17814         PR target/68456
17815         PR target/69226
17816         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17817         (PTRDIFF_TYPE): Likewise.
17818         (WCHAR_TYPE): Likewise.
17819         (WCHAR_TYPE_SIZE): Likewise.
17820         (STDINT_LONG32): Likewise.
17821
17822 2016-01-12  Richard Biener  <rguenther@suse.de>
17823
17824         PR tree-optimization/69053
17825         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17826         convert initial value for cond reductions.
17827
17828 2016-01-12  Richard Biener  <rguenther@suse.de>
17829
17830         PR tree-optimization/69007
17831         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17832         widen_sum after dot_prod and sad.
17833
17834 2016-01-12  Richard Biener  <rguenther@suse.de>
17835
17836         PR tree-optimization/69168
17837         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17838         pattern stmt SLP type.
17839         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17840         end up unused so cope with that case.
17841
17842 2016-01-12  Richard Biener  <rguenther@suse.de>
17843
17844         PR tree-optimization/69157
17845         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17846         stmts def type only during analyze phase.
17847         (vectorizable_call): Likewise.
17848         (vectorizable_simd_clone_call): Likewise.
17849         (vectorizable_conversion): Likewise.
17850         (vectorizable_assignment): Likewise.
17851         (vectorizable_shift): Likewise.
17852         (vectorizable_operation): Likewise.
17853         (vectorizable_store): Likewise.
17854         (vectorizable_load): Likewise.
17855
17856 2016-01-12  Richard Biener  <rguenther@suse.de>
17857
17858         PR tree-optimization/69174
17859         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17860         space.
17861         (vectorizable_load): Properly compute the number of loads needed
17862         for permuted strided SLP loads and do not spuriously assign
17863         to SLP_TREE_VEC_STMTS.
17864
17865 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17866
17867         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17868         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17869         (MD_EXEC_PREFIX): Remove.
17870         (MD_STARTFILE_PREFIX) Removee.
17871         (FILE_NAME_ABSOLUTE_P): Remove.
17872         (CPP_SPEC): Do not read macros from sys/version.h.
17873         (LINK_COMMAND_SPEC): Remove.
17874         (LOCAL_INCLUDE_DIR): Remove.
17875         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17876         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17877         (POST_LINK_SPEC): Define to invoke stubify after linker
17878         (LIBSTDCXX): Remove define
17879         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17880         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17881         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17882         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17883         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17884         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17885         (i386_djgpp_asm_named_section): Add propotype of new procedure
17886
17887         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17888         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17889         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17890         in config/i386/djgpp.h).
17891         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17892         STANDARD_STARTFILE_PREFIX_1.
17893         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17894         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17895         installation errors.
17896         (MAX_OFILE_ALIGNMENT): Define to 128.
17897         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17898
17899         * config/i386/djgpp.c: New file. Add implementation of
17900         i386_djgpp_asm_named_section.
17901
17902         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17903
17904         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17905         Add rule for building djgpp.o.
17906
17907 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17908
17909         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17910         (rtx_is_swappable_p): Reductions are swappable.
17911         (insn_is_swappable_p): V2DF reductions are swappable.
17912
17913 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17914
17915         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17916         reloads for other unsupported memory operands.
17917
17918 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17919             Jim Wilson  <jim.wilson@linaro.org>
17920
17921         PR target/69194
17922         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17923         copy_to_mode_reg instead of force_reg.
17924
17925 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17926
17927         PR target/69225
17928         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17929         TARGET_80387 is true.
17930
17931 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17932
17933         PR target/69071
17934         * lra-eliminations.c (move_plus_up): Only move plus up
17935         if subreg of the constant can be simplified into constant
17936         and use the simplified subreg of the constant instead of
17937         the original constant.
17938
17939         * fold-const.c (fold_convertible_p): Don't return true
17940         for conversion of VECTOR_TYPE to same sized integral type.
17941         (fold_convert_loc): Fix up formatting.  Fold conversion of
17942         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17943         instead of NOP_EXPR.
17944
17945         PR tree-optimization/69214
17946         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17947         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17948         Formatting fix.
17949
17950         PR tree-optimization/69207
17951         * tree-vect-slp.c (vect_get_constant_vectors): For
17952         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17953         fold_convertible_p to vector_type's element type, and always
17954         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17955
17956 2016-01-11  Richard Biener  <rguenther@suse.de>
17957
17958         PR tree-optimization/69173
17959         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
17960         fixup the cycle if all stmts are in a pattern.
17961
17962 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
17963
17964         PR middle-end/68999
17965         * alias.c (base_alias_check): Move check for addresses with
17966         alignment ANDs before the call for compare_base_decls.
17967         (memrefs_conflict_p): Return -1 for different decls
17968         that went through alignment adjustments.
17969
17970 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17971
17972         PR rtl-optimization/68796
17973         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
17974         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
17975         and QImode comparisons against zero with CC_NZmode.
17976         * config/aarch64/iterators.md (short_mask): New mode_attr.
17977
17978 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17979
17980         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
17981         (<avx512>_store<mode>_mask): Likewise.
17982
17983 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
17984             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17985
17986         PR rtl-optimization/68841
17987         * ifcvt.c (struct noce_if_info): Add orig_x field.
17988         (bbs_ok_for_cmove_arith): Add to_rename parameter.
17989         Don't record conflicts on to_rename if it's present.
17990         Allow memory destinations in sets.
17991         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
17992         blocks, passing orig_x to the checks.
17993         (noce_process_if_block): Set if_info->orig_x appropriately.
17994
17995 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17996
17997         PR tree-optimization/69069
17998         * tree-parloops.c (create_parallel_loop): Add missing phi args.
17999
18000 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18001
18002         PR rtl-optimization/68920
18003         * config/i386/i386.c (ix86_option_override_internal): Restrict number
18004         of conditional moves for  RTL if-conversion to 1 for
18005         TARGET_ONE_IF_CONV_INSN.
18006         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18007         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18008         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18009         parameter to restirct number of conditional moves for
18010         RTL if-conversion.
18011         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18012         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18013         conditionl moves.
18014
18015 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
18016
18017         PR bootstrap/69123
18018         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18019         onepart vars.  Fix typo in comment.  Fix reversed condition in
18020         unshare test.
18021         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18022
18023         PR bootstrap/69123
18024         * var-tracking.c (dump_onepart_variable_differences): New.
18025         (dataflow_set_different): If a detailed dump is requested,
18026         delay early returns and dump differences between onepart
18027         variables present before and after, and added variables.
18028
18029 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18030
18031         PR target/69010
18032         * expr.c (expand_expr_real_1): For boolean vector constants
18033         with a scalar mode use const_scalar_mask_from_tree.
18034         (const_scalar_mask_from_tree): New.
18035         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18036         assigned to a mask type to handle constants.
18037
18038 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18039
18040         PR ipa/69044
18041         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18042         useless parameters if we cannot change function signature.
18043
18044 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18045
18046         PR ipa/66616
18047         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18048         flag.
18049
18050 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18051
18052         PR tree-optimization/69109
18053         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18054         latch with phi.
18055
18056 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18057
18058         PR tree-optimization/69108
18059         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18060         res is not used in a phi.
18061
18062 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
18063
18064         PR 67425
18065         * common.opt (frandom-seed): Fix parameter name.
18066         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18067
18068 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18069
18070         PR tree-optimization/69058
18071         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18072         not supported.
18073
18074 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
18075
18076         * config/arc/arc.opt (mdiv-rem): Add period to the end.
18077         (mcode-density): Likewise.
18078
18079 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18080
18081         PR tree-optimization/69062
18082         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18083         (parallelize_loops): Don't paralelize loop that has phi with address
18084         arg.
18085
18086 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18087
18088         PR tree-optimization/69039
18089         * tree-parloops.c (try_create_reduction_list): Only allow single exit
18090         phi for reduction.
18091
18092 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
18093
18094         PR middle-end/68743
18095         * match.pd: Require target has function_c99_misc before doing
18096         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18097
18098 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
18099
18100         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18101         use GMPINC.
18102         * configure: Regenerate.
18103
18104 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
18105
18106         PR middle-end/50865
18107         PR tree-optimization/69097
18108         * fold-const.h (expr_not_equal_to): New prototype.
18109         * fold-const.c: Include stringpool.h and tree-ssanames.h.
18110         (expr_not_equal_to): New function.
18111         * match.pd (X % -Y is the same as X % Y): Don't optimize
18112         unless X is known not to be equal to minimum or Y is known
18113         not to be equal to -1.
18114         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18115         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18116         (simplify_stmt_using_ranges): Adjust caller.
18117         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18118         substitute_and_fold.
18119
18120 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
18121
18122         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18123         w/o DECL_NAME.
18124
18125 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18126
18127         PR tree-optimization/69167
18128         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18129         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18130         ops[0] comparison.
18131         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18132
18133 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18134             Richard Biener  <rguenther@suse.de>
18135
18136         PR tree-optimization/68707
18137         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18138         instances that can be handled via vect_load_lanes.
18139
18140 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
18141
18142         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18143         if we can't determine address equivalence.
18144         * alias.c (compare_base_decl): Update for changed return value of
18145         symtab_node::equal_address_to.
18146
18147 2016-01-08  Jason Merrill  <jason@redhat.com>
18148
18149         PR c++/68983
18150         PR c++/67557
18151         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18152         * expr.c (store_field): Not here.
18153         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18154         call with TREE_ADDRESSABLE type.
18155         * tree-cfg.c (verify_gimple_call): Adjust.
18156
18157 2016-01-08  Olivier Hainque  <hainque@adacore.com>
18158
18159         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18160         libc_internal.
18161
18162 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18163
18164         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18165         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18166         (reduc_smin_v2sf): Rename to...
18167         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18168         (reduc_splus_v2sf): Rename to...
18169         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18170
18171 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18172
18173         PR tree-optimization/69162
18174         * gimplify.c (gimplify_va_arg_expr): Encode original type of
18175         valist argument in another argument.
18176         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
18177         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18178         to determine the va_list type, build a MEM_REF instead of
18179         build_fold_indirect_ref.
18180
18181         PR tree-optimization/69172
18182         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18183         gimple_build.
18184
18185 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18186
18187         PR tree-optimization/67781
18188         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18189         and cmpnop in two steps: first the ones not accessed in original
18190         gimple expression in a endian independent way and then the ones not
18191         accessed in the final result in an endian-specific way.
18192
18193 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18194
18195         PR tree-optimization/69083
18196         * tree-vect-slp.c (vect_get_constant_vectors): For
18197         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18198         element type.  If op is fold_convertible_p to vector_type's element
18199         type, use NOP_EXPR instead of VCE.
18200
18201 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
18202
18203         PR rtl-optimization/67778
18204         PR rtl-optimization/68634
18205         PR rtl-optimization/68909
18206         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
18207         block from the stack until done with it.  Remove a superfluous
18208         bitmap set.  Remove a superfluous bitmap test.
18209
18210 2016-01-07  Martin Sebor  <msebor@redhat.com>
18211
18212         PR c/68966
18213         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18214         constraint on the type of arguments.
18215
18216 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
18217
18218         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18219         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18220         unaligned_access on the gcc_options set.
18221         * config/arm/arm.c (arm_option_override_internal): Use
18222         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18223
18224 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18225
18226         PR target/69140
18227         * config/i386/i386.c (ix86_frame_pointer_required): Enable
18228         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18229
18230 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18231
18232         Revert
18233         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18234
18235         PR target/69140
18236         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18237         depending on frame_pointer_needed before remaining integer and SSE
18238         registers are saved.
18239
18240 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18241
18242         PR 1078
18243         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18244
18245 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
18246
18247         PR target/69171
18248         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18249         Use the "xBm" constraint.
18250         (float<sseintvecmodelower><mode>2<mask_name><round_name):
18251         Likewise.
18252         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18253         (sse_cvtsi2ssq<round_name>): Likewise.
18254         (sse_cvtss2si<round_name>): Likewise.
18255         (sse_cvtss2siq<round_name>): Likewise.
18256         (sse2_cvtsi2sdq<round_name>): Likewise.
18257         (sse2_cvtsd2si<round_name>): Likewise.
18258         (sse2_cvtsd2siq<round_name>): Likewise.
18259         * config/i386/subst.md (round_nimm_scalar_predicate): New
18260         predicate.
18261
18262 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
18263
18264         PR middle-end/67639
18265         * varasm.c (make_decl_rtl): Mark invalid register vars as
18266         DECL_EXTERNAL.
18267
18268         PR rtl-optimization/66206
18269         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
18270         All callers changed.
18271
18272 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
18273
18274         PR tree-optimization/69141
18275         * tree-ssa-pre.c: Include langhooks.h.
18276         (eliminate_dom_walker::before_dom_children): Use
18277         lang_hooks.decl_printable_name instead of
18278         cgraph_node::get ()->name ().
18279
18280         PR middle-end/68960
18281         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
18282         it and DECL_ALIGN too.
18283
18284 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
18285
18286         * config/mips/mips-ftypes.def: Sort to lexicographical order.
18287
18288 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18289
18290         PR target/69140
18291         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18292         depending on frame_pointer_needed before remaining integer and SSE
18293         registers are saved.
18294
18295 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18296
18297         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
18298         mode iterator with VSX_M2.
18299         (*p9_vecstore_<mode>): Likewise.
18300         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
18301         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
18302         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
18303         (define_split for VSX_LE128 stores): Likewise.
18304         (define_peephole2 for TImode LE swaps): Likewise.
18305         (define_split for VSX_LE128 post-reload stores): Likewise.
18306
18307 2016-01-06  Marek Polacek  <polacek@redhat.com>
18308
18309         PR sanitizer/69099
18310         * convert.c (convert_to_integer_1): Adjust call to
18311         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
18312         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
18313         EXPR instead of ARG.
18314         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
18315
18316 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18317
18318         PR 1078
18319         * doc/extend.texi (RL78 Variable Attributes): New section.
18320
18321 2016-01-05  Marek Polacek  <polacek@redhat.com>
18322
18323         PR c/69104
18324         * builtins.c (get_memmodel): Use expansion point location rather than
18325         the input location.  Call warning_at rather than warning.
18326         (expand_builtin_atomic_compare_exchange): Likewise.
18327         (expand_builtin_atomic_load): Likewise.
18328         (expand_builtin_atomic_store): Likewise.
18329         (expand_builtin_atomic_clear): Likewise.
18330
18331 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18332
18333         PR target/68991
18334         * config/i386/i386.c (ix86_expand_vector_logical_operator):
18335         Replace nonimmediate_operand with vector_operand.
18336         * config/i386/predicates.md (vector_operand): New predicate.
18337         (general_vector_operand): Replace nonimmediate_operand with
18338         vector_operand.
18339         * config/i386/sse.md: Replace nonimmediate_operand with
18340         vector_operand and m constraint with Bm constraint on SSE
18341         patterns with 16-byte memory operand.
18342         * config/i386/subst.md (round_nimm_predicate): Replace
18343         nonimmediate_operand with vector_operand.
18344         (round_saeonly_nimm_predicate): Likewise.
18345         (round_saeonly_nimm_scalar_predicate): New.
18346
18347 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18348
18349         PR target/68991
18350         * config/i386/constraints.md (Bm): New constraint.
18351         * config/i386/predicates.md (vector_memory_operand): New
18352         predicate.
18353         * config/i386/sse.md: Replace xm with xBm in plusminus and
18354         any_logic patterns.
18355
18356 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18357
18358         PR 1078
18359         * doc/extend.texi (V850 Function Attributes): New section.
18360         (V850 Variable Attributes): New section.
18361
18362 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18363
18364         PR 1078
18365         * doc/extend.texi (MicroBlaze Function Attributes): Document
18366         interrupt_handler and fast_interrupt attributes.
18367
18368 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
18369
18370         PR other/60465
18371         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
18372         for local symbolic operands.
18373         * config/ia64/predicates.md (local_symbolic_operand64): New
18374         predicate.
18375
18376 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18377
18378         PR rtl-optimization/68651
18379         * combine.c (combine_simplify_rtx): Canonicalize x + x into
18380         x << 1.
18381
18382 2016-01-05  Nathan Sidwell  <nathan@acm.org>
18383
18384         * alias.c (compare_base_decls): Use symtab_node::get.
18385
18386 2016-01-05  Nick Clifton  <nickc@redhat.com>
18387
18388         PR target/68770
18389         * ira-costs.c (copy_cost): Initialise the t_icode field of the
18390         secondary_reload_info structure.
18391
18392         PR target/66655
18393         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
18394         decls if weak support is available.
18395
18396 2016-01-04  Martin Sebor  <msebor@redhat.com>
18397
18398         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
18399
18400 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
18401
18402         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18403         OPTION_MASK_P9_DFORM.
18404
18405         * config/rs6000/constraints.md (wo constraint): New constraint for
18406         ISA 3.0 (power9).
18407
18408         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
18409         for wo constraint.
18410         (rs6000_init_hard_regno_mode_ok): Likewise.
18411
18412         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
18413         wo constraint.
18414
18415         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
18416         expanders not to have constraints.  Add support for ISA 3.0 xxperm
18417         instruction.  Add support for fusing xxlor with xxperm.
18418         (altivec_vperm_<mode>_internal): Likewise.
18419         (altivec_vperm_v8hiv16qi): Likewise.
18420         (altivec_vperm_<mode>v16q): Likewise.
18421         (altivec_vperm_<mode>_uns): Likewise.
18422         (vperm_v8hiv4si): Likewise.
18423         (vperm_v16qiv8hi): Likewise.
18424
18425         * doc/md.texi (RS/6000 constraints): Document wo constraint.
18426
18427 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
18428
18429         Update copyright years.
18430
18431         * gcc.c (process_command): Update copyright notice dates.
18432         * gcov-dump.c (print_version): Ditto.
18433         * gcov.c (print_version): Ditto.
18434         * gcov-tool.c (print_version): Ditto.
18435         * gengtype.c (create_file): Ditto.
18436         * doc/cpp.texi: Bump @copying's copyright year.
18437         * doc/cppinternals.texi: Ditto.
18438         * doc/gcc.texi: Ditto.
18439         * doc/gccint.texi: Ditto.
18440         * doc/gcov.texi: Ditto.
18441         * doc/install.texi: Ditto.
18442         * doc/invoke.texi: Ditto.
18443
18444 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18445
18446         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
18447         modes larger than TImode as TImode if NEON is not enabled.
18448
18449 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18450
18451         PR target/69100
18452         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
18453         mode for %f0-%f31 only if TARGET_FPU.
18454
18455 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18456
18457         PR target/69072
18458         * config/sparc/sparc.c (scan_record_type): Take into account subfields
18459         to compute the PACKED_P predicate.
18460         (function_arg_record_value): Minor tweaks.
18461
18462 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18463
18464         * doc/install.texi (--with-multilib-list): Describe the meaning of the
18465         option for arm*-*-* targets.
18466
18467 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18468
18469         * doc/extend.texi (Common Function Attributes): Move docs for
18470         MSP430-specific attributes to....
18471         (MSP430 Function Attributes): ...here.  Delete the redundant
18472         entries and copy-edit the remaining text.
18473         (MSP430 Variable Attributes): Use uniform format for index
18474         entries and add a cross-reference to the corresponding function
18475         attribute docs.
18476
18477 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
18478
18479         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
18480         -finite-math typo.
18481         (x86 Options): Likewise.
18482
18483 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
18484
18485         PR 1078
18486
18487         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
18488         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
18489         to corresponding attribute.
18490
18491 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
18492
18493         * doc/extend.texi (Common Function Attributes) <noplt>: Move
18494         to correct alphabetization of table.  Copy-edit and correct
18495         markup.
18496         <stack_protect>: Likewise.
18497         <target_clones>: Likewise.
18498         <simd>: Likewise.
18499         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
18500         Correct punctuation.
18501         (Code Gen Options) <-fno-plt>: Copy-edit.
18502
18503 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18504
18505         PR target/68917
18506         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
18507         SI values.  Explicitly convert SI to DI and vice-versa.
18508
18509 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
18510
18511         PR tree-optimization/69070
18512         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
18513         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
18514
18515         PR sanitizer/69055
18516         * ubsan.c (ubsan_instrument_float_cast): Call
18517         initialize_sanitizer_builtins.
18518
18519         PR target/69015
18520         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
18521 \f
18522 Copyright (C) 2016 Free Software Foundation, Inc.
18523
18524 Copying and distribution of this file, with or without modification,
18525 are permitted in any medium without royalty provided the copyright
18526 notice and this notice are preserved.