tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New Parameter.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
2
3         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
4         Parameter.
5         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6         Parameter.
7         (number_of_iterations_exit): Warn missed loop optimization for
8         possible infinite loops.
9
10 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
11
12         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13         when to emit a ".machine" pseudo-op.
14
15 2016-07-22  Martin Liska  <mliska@suse.cz>
16
17         PR gcov-profile/69028
18         PR gcov-profile/62047
19         * coverage.c (coverage_compute_lineno_checksum): Do not
20         calculate checksum for fns w/o xloc.file.
21         (coverage_compute_profile_id): Likewise.
22
23 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
24
25         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
26         (avr_secondary_reload): ...and implementation.
27         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
28         * config/avr/avr.md (reload_in<mode>): Remove insns.
29         (adjust_len) [lpm]: Remove insn attribute value.
30         * config/avr/predicates.md (flash_operand): Remove insn predicate.
31
32 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33
34         PR middle-end/71876
35         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
36         attribute.
37         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
38         * calls.c (special_function_p): Remove the special handling of the
39         "__builtin_" prefix.
40
41 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42
43         PR middle-end/71876
44         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
45         if STMT may be an alloca call.
46         (gimple_alloca_call_p, alloca_call_p): Return only true for the
47         builtin alloca call.
48         * calls.h (gimple_maybe_alloca_call_p): New function.
49         * tree-inline.c (inline_forbidden_p_stmt): Use
50         gimple_maybe_alloca_call_p here.
51
52 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
53
54         * spellcheck-tree.c (best_macro_match::best_macro_match):
55         Explictly specify the template arguments when invoking the base
56         class constructor, to help older C++ compilers.
57
58 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
59
60         PR sanitizer/71953
61         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
62         before builtin_decl_implicit.
63
64 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
65
66         * optabs.c (emit_condiitonal_move): Short circuit for identical
67         sources.
68
69 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
70
71         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
72         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
73         (noce_conversion_profitable_p): New.
74         (noce_try_store_flag_constants): Use it.
75         (noce_try_addcc): Likewise.
76         (noce_try_store_flag_mask): Likewise.
77         (noce_try_cmove): Likewise.
78         (noce_try_cmove_arith): Likewise.
79         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
80         overwriting it.
81         (noce_convert_multiple_sets): Move cost model to here, from...
82         (bb_ok_for_noce_convert_multiple_sets) ...here.
83         (noce_process_if_block): Update calls for above changes.
84         (noce_find_if_block): Record new noce_if_info parameters.
85
86 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
87
88         * target.def (max_noce_ifcvt_seq_cost): New.
89         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
90         * doc/tm.texi: Regenerate.
91         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
92         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
93         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
94         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
95         * doc/invoke.texi: Document new params.
96
97 2016-07-21  Richard Biener  <rguenther@suse.de>
98
99         PR tree-optimization/71947
100         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
101         ranges have useful limit_vr information.
102
103 2016-07-21  Richard Biener  <rguenther@suse.de>
104
105         * function-tests.c (build_trivial_generic_function): Set
106         BLOCK_SUPERCONTEXT of DECL_INITIAL.
107         * omp-low.c (create_omp_child_function): Likewise.
108         (grid_expand_target_grid_body): Likewise.
109         * cgraphunit.c (init_lowered_empty_function): Likewise.
110         (cgraph_node::expand_thunk): Likewise.
111         * tree-parloops.c (create_loop_fn): Likewise.
112         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
113
114 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
115
116         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
117         in comment.
118
119 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
120
121         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
122         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
123         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
124         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
125         values for insn attribute.
126         * config/avr/avr.c (avr_out_insert_notbit): New function.
127         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
128         ADJUST_LEN_INSV_NOTBIT_0/_7.
129         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
130
131 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
132
133         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
134         (chrec_convert_1, chrec_convert): Ditto.
135         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
136         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
137         * tree-vrp.c (adjust_range_with_scev): Ditto.
138         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
139         (scev_var_range_cant_overflow): New function.
140         (scev_probably_wraps_p): New parameter.  Call above function.
141         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
142
143 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
144
145         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
146         by removing computation of may_be_zero.
147
148 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
149
150         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
151
152 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
153
154         Improving concepts performance and diagnostics.
155         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
156         for constraint satisfaction and subsumption.
157         * timevar.h (auto_timevar): New constructor that matches the push/pop
158         pattern of usage in pt.c.
159
160 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
161
162         * hwint.h (HOST_WIDE_INT_0): New define.
163         (HOST_WIDE_INT_0U): Ditto.
164         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
165         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
166         * simplify-rtx.c: Ditto.
167         * tree-object-size.c: Ditto.
168
169 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
170
171         * config/s390/s390.c (s390_encode_section_info): Remove mode size
172         check.
173
174 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
175
176         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
177         * combine.c: Use HOST_WIDE_INT_M1U instead of
178         ~(unsigned HOST_WIDE_INT) 0.
179         * double-int.h: Ditto.
180         * dse.c: Ditto.
181         * dwarf2asm.c:Ditto.
182         * expmed.c: Ditto.
183         * genmodes.c: Ditto.
184         * match.pd: Ditto.
185         * read-rtl.c: Ditto.
186         * tree-ssa-loop-ivopts.c: Ditto.
187         * tree-ssa-loop-prefetch.c: Ditto.
188         * tree-vect-generic.c: Ditto.
189         * tree-vect-patterns.c: Ditto.
190         * tree.c: Ditto.
191
192 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
193
194         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
195         constant addresses outside [0,0xc0] into a register.
196         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
197         cases where the base address register is unused after.
198         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
199         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
200         (avr_out_store_psi_reg_disp_tiny): Same.
201
202 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
203
204         Implement attribute progmem on reduced Tiny cores by adding
205         flash offset 0x4000 to respective symbols.
206
207         PR target/71948
208         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
209         documentation how it works on reduced Tiny cores.
210         (AVR Named Address Spaces): No support for reduced Tiny.
211         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
212         (avr_address_tiny_pm_p): New static function.
213         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
214         if the address is in progmem.
215         (avr_assemble_integer): Same.
216         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
217         for symbol_ref in progmem.
218         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
219         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
220         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
221
222 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
223
224         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
225         * configure: Regenerate.
226         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
227         (USE_THIN_ARCHIVES): New variable.
228         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
229         this archive as a thin archive.
230
231 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
232
233         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
234         same location as last time, don't skip if we have fix-it hints.
235         Clarify the skipping logic by converting it from one "if" clause
236         to repeated "if" clauses.
237         * spellcheck-tree.c: Include "cpplib.h".
238         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
239         (best_macro_match::best_macro_match): New constructor.
240         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
241         Move here from c/c-decl.c.
242         (class best_macro_match): Move here from c/c-decl.c, converting
243         from a typedef to a subclass, gaining a ctor.
244
245 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
246
247         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
248         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
249         define...
250         (avr_addr_space_diagnose_usage): ...and implementation.
251         (avr_addr_space_supported_p): New function.
252         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
253         report bad address space usage if that space is supported.
254         (avr_insert_attributes): Same.  No more complain about unsupported
255         address spaces.
256         * config/avr/avr-c.c (tm_p.h): Include it.
257         (avr_cpu_cpp_builtins): Only define addr-space related built-in
258         macro if avr_addr_space_supported_p.
259
260 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
261
262         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
263         flag_toplevel_reorder.
264
265 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
266
267         * gcc-rich-location.c
268         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
269         a const char *.
270         * gcc-rich-location.h
271         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
272
273 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
274
275         * target.def (addr_space): Add new diagnose_usage to hook vector.
276         * targhooks.c (default_addr_space_diagnose_usage): Add default
277         implementation and...
278         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
279         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
280         is some address space, call targetm.addr_space.diagnose_usage.
281         * doc/tm.texi.in (Named Address Spaces): Add anchor for
282         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
283         * doc/tm.texi: Regenerate.
284
285 2016-07-20  Martin Liska  <mliska@suse.cz>
286
287         PR middle-end/71898
288         * graphite-isl-ast-to-gimple.c (later_of_the_two):
289         Properly handly PHI stmts.
290
291 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
292
293         PR tree-optimization/71503
294         PR tree-optimization/71683
295         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
296         and break.
297
298 2016-07-20  Martin Liska  <mliska@suse.cz>
299
300         * doc/invoke.texi (-fipa-ra): Document when the option is
301         disabled. Fix a typo.
302
303 2016-07-20  Martin Liska  <mliska@suse.cz>
304
305         * Makefile.in: Include fibonacci_heap.c
306         * fibonacci_heap.c: New file.
307         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
308         (fibonacci_heap::union_with): Fix deletion of the second heap.
309         * selftest-run-tests.c (selftest::run_tests): Incorporate
310         fibonacci heap tests.
311         * selftest.h: Declare fibonacci_heap_c_tests.
312
313 2016-07-20  Martin Liska  <mliska@suse.cz>
314
315         * selftest-run-tests.c (selftest::run_tests): New function.
316         * selftest.h (sreal_c_tests): Declare.
317         * sreal.c (sreal_verify_basics): New function.
318         (verify_aritmetics): Likewise.
319         (sreal_verify_arithmetics): Likewise.
320         (verify_shifting): Likewise.
321         (sreal_verify_shifting): Likewise.
322         (void sreal_c_tests): Likewise.
323
324 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
325
326         PR rtl-optimization/71916
327         * cfgrtl.c (contains_no_active_insn_p): Return false also for
328         bb which have a single succ fake edge.
329
330 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
331
332         PR debug/71855
333         * dwarf2out.c (gen_subprogram_die): Only call
334         gen_unspecified_parameters_die while dumping early dwarf.
335
336 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
337
338         PR middle-end/71874
339         * gimple-fold.c (fold_builtin_memory_op): Use
340         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
341
342 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
343
344         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
345         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
346         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
347         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
348         * combine.c: Ditto.
349         * cse.c: Ditto.
350         * dojump.c: Ditto.
351         * double-int.c: Ditto.
352         * dse.c: Ditto.
353         * dwarf2out.c: Ditto.
354         * expmed.c: Ditto.
355         * expr.c: Ditto.
356         * fold-const.c: Ditto.
357         * function.c: Ditto.
358         * fwprop.c: Ditto.
359         * genmodes.c: Ditto.
360         * hwint.c: Ditto.
361         * hwint.h: Ditto.
362         * ifcvt.c: Ditto.
363         * loop-doloop.c: Ditto.
364         * loop-invariant.c: Ditto.
365         * loop-iv.c: Ditto.
366         * match.pd: Ditto.
367         * optabs.c: Ditto.
368         * real.c: Ditto.
369         * reload.c: Ditto.
370         * rtlanal.c: Ditto.
371         * simplify-rtx.c: Ditto.
372         * stor-layout.c: Ditto.
373         * toplev.c: Ditto.
374         * tree-ssa-loop-ivopts.c: Ditto.
375         * tree-vect-generic.c: Ditto.
376         * tree-vect-patterns.c: Ditto.
377         * tree.c: Ditto.
378         * tree.h: Ditto.
379         * ubsan.c: Ditto.
380         * varasm.c: Ditto.
381         * wide-int-print.cc: Ditto.
382         * wide-int.cc: Ditto.
383         * wide-int.h: Ditto.
384
385 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
386
387         * selftest.c (selftest::assert_streq): Handle NULL values of
388         val_actual and val_expected.
389
390 2016-07-19  Martin Jambor  <mjambor@suse.cz>
391
392         PR fortran/71688
393         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
394         rather than cgraph_create_node to get a call graph node.
395
396 2016-07-19  Richard Biener  <rguenther@suse.de>
397
398         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
399         handle all tcc_constant bases and valueize SSA names.
400         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
401         tcc_constant bases.
402
403 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
404
405         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
406         the flags of the exit block and bb2, not just the entry block.
407
408 2016-07-19  Richard Biener  <rguenther@suse.de>
409
410         PR tree-optimization/71901
411         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
412         align member, group stuff with the bitfield.
413         (vn_ref_op_align_unit): New inline.
414         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
415         record element alignment and operand 3 unchanged.
416         (ao_ref_init_from_vn_reference): Adjust.
417         (valueize_refs_1): Likewise.
418         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
419
420 2016-07-19  Richard Biener  <rguenther@suse.de>
421
422         PR tree-optimization/71908
423         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
424         symbolic constants in a more reliable way.
425
426 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
427
428         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
429         comment.
430         (vect_update_inits_of_drs): Likewise.
431         (vect_create_cond_for_alias_checks): Likewise.
432         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
433
434 2016-07-19  Richard Biener  <rguenther@suse.de>
435
436         PR lto/71907
437         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
438         with an abstract origin that is not an inlined function outer
439         scope add a self-reference as abstract origin.
440         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
441
442 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
443
444         PR target/71493
445         * config/rs6000/rs6000.c (rs6000_function_value): Fix
446         unintentional System V.4 structure return breakage for structures
447         with a single floating point element.
448
449 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
450
451         PR tree-optimization/71734
452         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
453         contains REF, use it to check safelen, assume that safelen value
454         must be greater 1, fix style.
455         (ref_indep_loop_p_2): Add REF_LOOP argument.
456         (ref_indep_loop_p): Pass LOOP as additional argument to
457         ref_indep_loop_p_2.
458
459 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
460
461         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
462         allocation in the prologue.
463         * explow.c (get_dynamic_stack_base): New function to return an address
464         expression for the dynamic stack base.
465         (get_dynamic_stack_size): New function to do the required dynamic stack
466         space size calculations.
467         (allocate_dynamic_stack_space): Use new functions.
468         (align_dynamic_address): Move some code from
469         allocate_dynamic_stack_space to new function.
470         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
471
472 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
473
474         * config/s390/s390.c (s390_encode_section_info): Always set
475         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
476         found.
477
478 2016-07-18  Richard Biener  <rguenther@suse.de>
479
480         PR tree-optimization/71893
481         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
482         for sizetype cast added by array_ref_element_size.
483         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
484
485 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
486
487         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
488         register parameters.  Remove code to initialize argument pointer
489         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
490         using a pc-relative branch.  Cleanup conditional code.
491         * config/pa/pa.md (call_mcount): New expander.
492         (call_mcount_nonpic): New insn.
493         (call_mcount_pic): New insn and split.
494         (call_mcount_pic_post_reload): New insn.
495         (call_mcount_64bit): New insn and split.
496         (call_mcount_64bit_post_reload): New insn.
497
498 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
499
500         * config/avr/predicates.md (const_m255_to_m1_operand): New.
501         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
502         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
503         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
504         (*usum_widenqihi3, *udiff_widenqihi3)
505         (*addhi3_zero_extend.const): New combiner insns.
506         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
507         just 1 bit is affected.
508         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
509         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
510
511 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
512
513         * omp-low.c (lower_omp_target): Mark data clauses with
514         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
515         zero-length subarrays.
516
517 2016-07-15  Richard Biener  <rguenther@suse.de>
518
519         PR tree-optimization/71881
520         * tree-loop-distribution.c (destroy_loop): Remove blocks in
521         reverse DOM order to make debug temp generation happy.
522
523 2016-07-15  Richard Biener  <rguenther@suse.de>
524
525         PR tree-optimization/71887
526         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
527         verify it is not zero for division / modulo handling.
528         (value_replacement): Adjust.
529
530 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
531             Julian Brown  <julian@codesourcery.com>
532
533         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
534         * config/aarch64/aarch64-cost-tables.h
535         (vulcan_extra_costs): New variable.
536         * config/aarch64/aarch64.c
537         (vulcan_addrcost_table): Likewise.
538         (vulcan_regmove_cost): Likewise.
539         (vulcan_vector_cost): Likewise.
540         (vulcan_branch_cost): Likewise.
541         (vulcan_tunings): Likewise.
542
543 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
544
545         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
546         (output_in_order): Loop over undefined variables too.  Output them
547         via assemble_undefined_decl.  Skip variables that correspond to hard
548         registers or have value-exprs.
549         * varpool.c (symbol_table::output_variables): Handle undefined
550         variables together with defined ones.
551
552 2016-07-15  Richard Biener  <rguenther@suse.de>
553
554         * tree-ssa-pre.c (get_representative_for): Make sure to return
555         the value number of SSA names.
556         (phi_translate_1): get_representative_for cannot return NULL.
557         (do_pre_regular_insertion): Remove redundant call to
558         fully_constant_expression.
559         (do_pre_partial_partial_insertion): Likewise.
560
561 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
562
563         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
564         (derive_simple_iv_with_niters): New function.
565         (simple_iv): Rewrite using simple_iv_with_niters.
566         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
567         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
568         function.
569         (number_of_iterations_exit): Rewrite using above function.
570         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
571         Decl.
572
573 2016-07-15  Richard Biener  <rguenther@suse.de>
574
575         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
576         vec_construct cost.
577
578 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
579
580         PR tree-optimization/71872
581         * tree-data-ref.c (get_references_in_stmt): Ignore references
582         with is_gimple_constant get_base_address.
583
584 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
585
586         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
587         (TARGET_HAVE_LDACQD): New macro.
588         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
589         than TARGET_HAVE_LDACQ.
590         (arm_load_acquire_exclusivedi): Likewise.
591         (arm_store_release_exclusivedi): Likewise.
592
593 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
594
595         PR rtl-optimization/71878
596         * lra-constraints.c (match_reload): Pass information about other
597         output operands.  Create new unique register value if matching input
598         operand shares same register value as output operand being considered.
599         (curr_insn_transform): Record output operands already processed.
600
601 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
602
603         PR target/65951
604         PR tree-optimization/70923
605         * tree-vect-patterns.c: Include mult-synthesis.h.
606         (target_supports_mult_synth_alg): New function.
607         (synth_lshift_by_additions): Likewise.
608         (apply_binop_and_append_stmt): Likewise.
609         (vect_synth_mult_by_constant): Likewise.
610         (target_has_vecop_for_code): Likewise.
611         (vect_recog_mult_pattern): Use above functions to synthesize vector
612         multiplication by integer constants.
613
614 2016-07-14  Alan Modra  <amodra@gmail.com>
615
616         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
617         gpr alternatives.  Correct '*' placement on Y,r alternative.
618         Add '*' on operand 1 of r,r alternative.
619
620 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
621
622         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
623         * expmed.h: ... Here.
624
625 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
626
627         * gimple.h (stmt_can_terminate_bb_p): New function.
628         * tree-cfg.c (need_fake_edge_p): Rename to ...
629         (stmt_can_terminate_bb_p): ... this; return true if stmt can
630         throw external; handle const and pure calls.
631         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
632
633 2016-07-14  Richard Biener  <rguenther@suse.de>
634
635         PR tree-optimization/71866
636         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
637         (do_hoist_insertion): Avoid endless recursion when we
638         didn't insert anything because we managed to simplify
639         things down to a constant or SSA name.
640         (fully_constant_expression): Re-write in terms of ...
641         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
642         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
643         vn_nary_build_or_lookup_1.
644         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
645         (vn_nary_build_or_lookup): ... this which now wraps it.
646
647 2016-07-14  Alan Modra  <amodra@gmail.com>
648
649         PR target/71733
650         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
651         with p9_vector override before power9-dform override.
652
653 2016-07-13  Andi Kleen  <ak@linux.intel.com>
654
655         * value-prof.c (gimple_value_profile_transformations): Don't run
656         when auto_profile is on.
657
658 2016-07-13  Andi Kleen  <ak@linux.intel.com>
659
660         * auto-profile.c (update_inlined_ind_target,
661         afdo_indirect_call): Print information to dump file.
662
663 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
664
665         * genrecog.c (special_predicate_operand_p): New function.
666         (predicate_name): Move function.
667         (validate_pattern): Don't warn about missing mode for all
668         define_special_predicate predicates.
669
670 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
671
672         * tree-vect-data-refs.c (vect_no_alias_p): New function.
673         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
674         resolve alias checks which are known at compilation time.
675         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
676         alias checks are resolved.  Move dump info for too many runtime
677         alias checks to here...
678         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
679
680 2016-07-13  Richard Biener  <rguenther@suse.de>
681
682         PR tree-optimization/24574
683         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
684         position and add shift, rotate, divison and modulo support
685         for left zero.
686         (value_replacement): Pass in argument position to absorbing_element_p.
687
688 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
689
690         PR ipa/71633
691         * ipa-inline-transform.c (inline_call): Support
692         instrumented thunks.
693
694 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
695
696         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
697         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
698         divide feature.
699         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
700         Baseline.  Make initial alternative TARGET_32BIT only.
701         (udivsi3): Likewise.
702         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
703         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
704         target.
705
706 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
707
708         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
709         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
710         availability with TARGET_HAVE_MOVT.
711         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
712         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
713         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
714         UINTVAL.
715         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
716         extra instruction if MOVW is available.  Use a cost variable
717         incremented by COSTS_N_INSNS (1) when the condition match rather than
718         returning an arithmetic expression based on COSTS_N_INSNS.  Make
719         constant with bottom half word zero cost 2 instruction if MOVW is
720         available.
721         * config/arm/arm.md (define_attr "arch"): Add v8mb.
722         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
723         target is ARMv8-M Baseline.
724         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
725         (arm_movtas_ze): Likewise.
726         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
727         alternative for constants satisfying j constraint.
728         (thumb1_movsi_insn): Likewise.
729         (movsi splitter for K alternative): Tighten condition to not trigger
730         if movt is available and j constraint is satisfied.
731         (Pe immediate splitter): Likewise.
732         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
733         constant fitting in an halfword to use MOVW.
734         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
735         effective target.
736
737 2016-07-13  Richard Biener  <rguenther@suse.de>
738
739         PR middle-end/71104
740         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
741         gimplifying the LHS.  Make sure to gimplify a returning twice
742         call LHS without using SSA names.
743
744 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
745
746         * tree-data-ref.c (find_data_references_in_stmt): Remove
747         unnecessary call to vec::release.
748         (graphite_find_data_references_in_stmt): Likewise.
749         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
750         * tree-vect-stmts.c (vectorizable_condition): Likewise.
751
752 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
753
754         * cfgexpand.c (expand_used_vars): Make the type of a local
755         variable auto_vec.
756         * genmatch.c (lower_for): Likewise.
757         * haifa-sched.c (haifa_sched_init): Likewise.
758         (add_to_speculative_block): Likewise.
759         (create_check_block_twin): Likewise.
760         * predict.c (handle_missing_profiles): Likewise.
761         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
762         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
763         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
764         Likewise.
765         (maybe_lower_iteration_bound): Likewise.
766         * tree-ssa-sccvn.c (DFS): Likewise.
767         * tree-stdarg.c (reachable_at_most_once): Likewise.
768         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
769         (vectorizable_store): Likewise.
770
771 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
772
773         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
774         (sccvn_dom_walker): make cond_stack an auto_vec.
775
776 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
777
778         * ree.c (struct ext_state): Make type of members auto_vec.
779         (find_and_remove_re): Adjust.
780
781 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
782
783         * cfgexpand.c (struct stack_vars_data): Make type of fields
784         auto_vec.
785         (expand_used_vars): Adjust.
786
787 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
788
789         * ipa.c (record_cdtor_fn): Adjust.
790         (build_cdtor_fns): Likewise.
791         (ipa_cdtor_merge): Make static_ctors and static_dtors local
792         variables.
793
794 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
795
796         * genextract.c (struct accum_extract): Add constructor and make
797         members auto_vec.
798         (gen_insn): Adjust.
799
800 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
801
802         * tree.c (struct free_lang_data_d): Add constructor and change
803         types of members to ones that automatically manage resources.
804         (fld_worklist_push): Adjust.
805         (find_decls_types): Likewise.
806         (find_decls_types_in_eh_region): Likewise.
807         (free_lang_data_in_cgraph): Stop manually creating and
808         destroying members of free_lang_data_d.
809
810 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
811
812         PR rtl-optimization/68961
813         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
814         peephole variant.  Use sse_reg_operand predicates.
815
816 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
817
818         * config/i386/predicates.md (x86_64_immediate_operand)
819         <case CONST_INT>: Remove unneeded truncation to DImode.
820         <case CONST>: Ditto.
821         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
822
823 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
824
825         PR target/71805
826         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
827         The xxperm and xxpermr instructions require that the 2nd input
828         operand overlap with the output operand, and not the 1st.
829         (altivec_vperm_v8hiv16qi): Likewise.
830         (altivec_vperm_<mode>_uns_internal): Likewise.
831         (altivec_vpermr_<mode>_internal): Likewise.
832         (vperm_v8hiv4si): Likewise.
833         (vperm_v16qiv8hi): Likewise.
834
835 2016-07-12  Martin Liska  <mliska@suse.cz>
836
837         * params.def: Add avg-loop niter.
838         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
839         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
840         * doc/invoke.texi: Document the new parameter.
841
842 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
843
844         PR middle-end/71700
845         * expr.c (store_constructor): Mask sign-extended bits when widening
846         sub-word constructor element at the start of a word.
847
848 2016-07-12  Martin Liska  <mliska@suse.cz>
849
850         * Makefile.in: Append rule for params-options.h.
851         * params-options.h: New file.
852
853 2016-07-12  Martin Liska  <mliska@suse.cz>
854
855         * ira-build.c (mark_loops_for_removal): Properly iterate
856         loops.
857
858 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
859             Richard Biener  <rguenther@suse.de>
860
861         PR tree-optimization/23286
862         PR tree-optimization/70159
863         * doc/invoke.texi: Document -fcode-hoisting.
864         * common.opt (fcode-hoisting): New flag.
865         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
866         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
867         (do_regular_insertion): Rename to ...
868         (do_pre_regular_insertion): ... this and amend general comments
869         on insertion strathegy.
870         (do_partial_partial_insertion): Rename to ...
871         (do_pre_partial_partial_insertion): ... this.
872         (do_hoist_insertion): New function.
873         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
874         and call do_hoist_insertion properly.
875         (insert): Adjust.
876         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
877         (pass_pre::execute): Register hoist_insert stats.
878
879 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
880
881         PR middle-end/71716
882         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
883         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
884         is different from mode's bitsize.  Small cleanup.
885
886 2016-07-12  Richard Biener  <rguenther@suse.de>
887
888         PR rtl-optimization/68961
889         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
890         to simplify to a non-constant.
891
892 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
893
894         PR middle-end/71758
895         * omp-low.c (expand_omp_target): Gimplify device.
896
897         PR tree-optimization/71823
898         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
899         to get vec_oprnds2 from op2.
900
901 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
902
903         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
904         Hoist common subexpressions.
905         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
906
907 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
908
909         PR target/71800
910         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
911         prevent generation of 'stxsiwx' on pre Power8 hardware.
912
913 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
914
915         * input.c: Include cpplib.h.
916         (selftest::temp_source_file): New class.
917         (selftest::temp_source_file::temp_source_file): New ctor.
918         (selftest::temp_source_file::~temp_source_file): New dtor.
919         (selftest::should_have_column_data_p): New function.
920         (selftest::test_should_have_column_data_p): New function.
921         (selftest::temp_line_table): New class.
922         (selftest::temp_line_table::temp_line_table): New ctor.
923         (selftest::temp_line_table::~temp_line_table): New dtor.
924         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
925         it to create a temp_line_table.
926         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
927         locations that are known to have column data.
928         (selftest::line_table_case): New struct.
929         (selftest::test_reading_source_line): Move tempfile handling
930         to class temp_source_file.
931         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
932         (selftest::assert_token_loc_eq): New function.
933         (ASSERT_TOKEN_LOC_EQ): New macro.
934         (selftest::test_lexer): New function.
935         (selftest::boundary_locations): New array.
936         (selftest::input_c_tests): Call test_should_have_column_data_p.
937         Loop over a test matrix of interesting values of location and
938         default_range_bits, calling test_lexer on each case in the matrix.
939         Move call to test_accessing_ordinary_linemaps into the matrix.
940         * selftest.h (ASSERT_EQ): Reimplement in terms of...
941         (ASSERT_EQ_AT): New macro.
942
943 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
944
945         PR target/71801
946         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
947         Don't convert TImode in debug insn.
948
949 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
950
951         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
952         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
953         (tree_type_common::lang_flag_7): New.
954         (tree_type_common::spare): Reduce size.
955         * tree.h (TYPE_ALIGN_OK): Remove.
956         (TYPE_LANG_FLAG_7): New.
957         (get_inner_reference): Adjust header.
958         * print-tree.c (print_node): Adjust.
959         * expr.c (get_inner_reference): Remove parameter keep_aligning.
960         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
961         calls to get_inner_reference.
962         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
963         handling of TYPE_ALIGN_OK.
964         * builtins.c (get_object_alignment_2): Adjust call to
965         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
966         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
967         TYPE_ALIGN_OK.
968         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
969         * cfgexpand.c (expand_debug_expr): Likewise.
970         * dbxout.c (dbxout_expand_expr): Likewise.
971         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
972         loc_list_from_tree, fortran_common): Likewise.
973         * fold-const.c (optimize_bit_field_compare,
974         decode_field_reference, fold_unary_loc, fold_comparison,
975         split_address_to_core_and_offset): Likewise.
976         * gimple-laddress.c (execute): Likewise.
977         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
978         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
979         * hsa-gen.c (gen_hsa_addr): Likewise.
980         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
981         * tsan.c (instrument_expr): Likewise.
982         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
983         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
984         * tree-affine.c (tree_to_aff_combination,
985         get_inner_reference_aff): Adjust calls to get_inner_reference.
986         * tree-data-ref.c (split_constant_offset_1,
987         dr_analyze_innermost): Likewise.
988         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
989         * tree-sra.c (ipa_sra_check_caller): Likewise.
990         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
991         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
992         bswap_replace): Likewise.
993         * tree-vect-data-refs.c (vect_check_gather,
994         vect_analyze_data_refs): Likewise.
995         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
996         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
997         TYPE_ALIGN_OK.
998
999 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1000
1001         * Makefile.in (selftest-valgrind): New phony target.
1002         * function-tests.c (selftest::build_cfg): Delete pass instances
1003         created by the test.
1004         (selftest::convert_to_ssa): Likewise.
1005         (selftest::test_expansion_to_rtl): Likewise.
1006         * tree-cfg.c (selftest::test_linear_chain): Release dominator
1007         vectors.
1008         (selftest::test_diamond): Likewise.
1009
1010 2016-07-11  Richard Biener  <rguenther@suse.de>
1011
1012         PR tree-optimization/71816
1013         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1014         than replacing all of its operands.
1015
1016 2016-07-11  Alan Modra  <amodra@gmail.com>
1017
1018         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1019         (ctr<mode>): Add unspec.
1020         (ctr<mode>_internal*): Likewise.
1021
1022 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
1023
1024         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1025         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1026
1027 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
1028
1029         PR rtl-optimization/71621
1030         * lra-constraints.c (process_alt_operands): Check combination of
1031         reg class and mode.
1032
1033 2016-07-08  Jason Merrill  <jason@redhat.com>
1034             Richard Biener  <rguenther@suse.de>
1035
1036         P0145: Refining Expression Order for C++.
1037         * gimplify.c (initial_rhs_predicate_for): New.
1038         (gimplfy_modify_expr): Gimplify RHS before LHS.
1039
1040 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1041
1042         PR target/71297
1043         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1044         Allow standard error handling to take over when a wrong number
1045         of arguments is presented to __builtin_vec_ld () or
1046         __builtin_vec_st ().
1047
1048 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1049
1050         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1051         variants.
1052         (smin): Likewise.
1053         (fmax): New entry.
1054         (fmin): Likewise.
1055         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1056         __builtin_aarch64_fmaxv2sf.
1057         (vmaxnmq_f32): Likewise.
1058         (vmaxnmq_f64): Likewise.
1059         (vminnm_f32): Likewise.
1060         (vminnmq_f32): Likewise.
1061         (vminnmq_f64): Likewise.
1062
1063 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1064
1065         PR target/71806
1066         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1067         enable -mfloat128-hardware by default.
1068         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1069         that IEEE 128-bit hardware support needs.
1070         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1071         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1072         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1073         floating point requires.
1074         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1075         -mfloat128 and -mfloat128-hardware changes.
1076
1077 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
1078
1079         PR tree-optimization/71667
1080         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1081
1082 2016-07-08  Martin Liska  <mliska@suse.cz>
1083
1084         PR middle-end/71606
1085         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1086         folding produces SAVE_EXPRs, thus return false for the type.
1087
1088 2016-07-07  Martin Liska  <mliska@suse.cz>
1089
1090         * file-find.c (remove_prefix): New function.
1091         * file-find.h (remove_prefix): Declare the function.
1092         * gcc-ar.c (main): Skip a folder of the wrapper if
1093         a wrapped binary would point to the same file.
1094
1095 2016-07-07  Jan Hubicka  <jh@suse.cz>
1096
1097         * tree-scalar-evolution.c (iv_can_overflow_p): export.
1098         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1099         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1100
1101 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1102
1103         PR ipa/71624
1104         * ipa-inline-analysis.c (compute_inline_parameters): Set
1105         local.can_change_signature to false for intrumentation
1106         thunk callees.
1107
1108 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1109
1110         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1111         with TARGET_HAVE_MOVT.
1112         (TARGET_HAVE_MOVT): Define.
1113         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1114         availability with TARGET_HAVE_MOVT.
1115         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1116         availability.
1117         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1118         TARGET_THUMB2.
1119         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1120         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1121         * config/arm/constraints.md (define_constraint "j"): Use
1122         TARGET_HAVE_MOVT to check MOVT availability.
1123
1124 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1125
1126         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1127
1128 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1129
1130         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1131         (armv8-m.main): Likewise.
1132         (armv8-m.main+dsp): Likewise.
1133         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1134         (FL_FOR_ARCH8M_MAIN): Likewise.
1135         * config/arm/arm-tables.opt: Regenerate.
1136         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1137         armv8-m.main+dsp to BE8_LINK_SPEC.
1138         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1139         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1140         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1141         Baseline and Mainline.
1142         (arm_option_override_internal): Also disable arm_restrict_it when
1143         !arm_arch_notm.  Update comment for -munaligned-access to also cover
1144         ARMv8-M Baseline.
1145         (arm_file_start): Increase buffer size for printing architecture name.
1146         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1147         and armv8-m.main+dsp.
1148         (mno-unaligned-access): Clarify that this is disabled by default for
1149         ARMv8-M Baseline architectures as well.
1150
1151 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1152
1153         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1154         decide whether to prevent some libgcc routines being included for some
1155         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1156         link between this condition and the one in
1157         libgcc/config/arm/lib1func.S.
1158
1159 2016-07-07  Richard Biener  <rguenther@suse.de>
1160
1161         * tree-ssa-pre.c: Include alias.h.
1162         (compute_avail): If we have multiple VN_REFERENCEs with the
1163         same hashtable entry adjust that to make it a valid replacement
1164         for all of them with respect to alignment and aliasing
1165         when doing insertion.
1166         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1167         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1168
1169 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
1170
1171         PR target/70098
1172         PR target/71763
1173         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1174         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1175         constraint.
1176
1177 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1178
1179         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1180         (adjust_mems): Adjust.
1181         (adjust_insn): Likewise.
1182         (prepare_call_arguments): Likewise.
1183
1184 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1185
1186         * gcse.c (struct ls_expr): Make stores field a vector.
1187         (ldst_entry): Adjust.
1188         (free_ldst_entry): Likewise.
1189         (print_ldst_list): Likewise.
1190         (compute_ld_motion_mems): Likewise.
1191         (update_ld_motion_stores): Likewise.
1192
1193 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1194
1195         * gcse.c (struct ls_expr): Remove loads field.
1196         (ldst_entry): Adjust.
1197         (free_ldst_entry): Likewise.
1198         (print_ldst_list): Likewise.
1199         (compute_ld_motion_mems): Likewise.
1200
1201 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1202
1203         * store-motion.c (struct st_expr): Make antic_stores a vector.
1204         (st_expr_entry): Adjust.
1205         (free_st_expr_entry): Likewise.
1206         (print_store_motion_mems): Likewise.
1207         (find_moveable_store): Likewise.
1208         (compute_store_table): Likewise.
1209         (remove_reachable_equiv_notes): Likewise.
1210         (replace_store_insn): Likewise.
1211         (build_store_vectors): Likewise.
1212
1213 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1214
1215         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1216         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1217
1218 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1219
1220         PR tree-optimization/71518
1221         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1222         misalign also for outer loops with negative step.
1223
1224 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
1225
1226         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1227         (cortex_a53_shift): Add mov_shift.
1228         (cortex_a53_shift_reg): Add new reservation for register shifts.
1229         (cortex_a53_alu): Remove bfm.
1230         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1231         (cortex_a53_alu_extr): Add new reservation for EXTR.
1232         (bypasses): Improve bypass modelling.
1233
1234 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1235
1236         PR target/50739
1237         * config/avr/avr.c (avr_asm_select_section): Strip off
1238         SECTION_DECLARED from flags when calling get_section.
1239
1240 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1241
1242         * tree-vectorizer.h (vect_memory_access_type): Add
1243         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1244         * tree-vect-stmts.c (compare_step_with_zero): New function.
1245         (perm_mask_for_reverse): Move further up file.
1246         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1247         step is negative.
1248         (get_negative_load_store_type): New function.
1249         (get_load_store_type): Call it.  Add an ncopies argument.
1250         (vectorizable_mask_load_store): Update call accordingly and
1251         remove tests for negative steps.
1252         (vectorizable_store, vectorizable_load): Likewise.  Handle new
1253         memory_access_types.
1254
1255 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1256
1257         * tree-vectorizer.h (vect_memory_access_type): New enum.
1258         (_stmt_vec_info): Add a memory_access_type field.
1259         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1260         (vect_model_store_cost): Take an access type instead of a boolean.
1261         (vect_model_load_cost): Likewise.
1262         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1263         vect_model_store_cost and vect_model_load_cost.
1264         * tree-vect-stmts.c (vec_load_store_type): New enum.
1265         (vect_model_store_cost): Take an access type instead of a
1266         store_lanes_p boolean.  Simplify tests.
1267         (vect_model_load_cost): Likewise, but for load_lanes_p.
1268         (get_group_load_store_type, get_load_store_type): New functions.
1269         (vectorizable_store): Use get_load_store_type.  Record the access
1270         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1271         (vectorizable_load): Likewise.
1272         (vectorizable_mask_load_store): Likewise.  Replace is_store
1273         variable with vls_type.
1274
1275 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1276
1277         * tree-vectorizer.h (vect_grouped_load_supported): Add a
1278         single_element_p parameter.
1279         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1280         Check the PR65518 case here rather than in vectorizable_load.
1281         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1282         * tree-vect-stmts.c (vectorizable_load): Likewise.
1283
1284 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1285
1286         * tree-vectorizer.h (gather_scatter_info): New structure.
1287         (vect_check_gather_scatter): Return a bool rather than a decl.
1288         Replace return-by-pointer arguments with a single
1289         gather_scatter_info *.
1290         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1291         (vect_analyze_data_refs): Update call accordingly.
1292         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1293         (vectorizable_mask_load_store): Likewise.  Also record the
1294         offset dt and vectype in the gather_scatter_info.
1295         (vectorizable_store): Likewise.
1296         (vectorizable_load): Likewise.
1297
1298 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1299
1300         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
1301         strided groups, use the cost of N scalar accesses instead
1302         of ncopies vector accesses.
1303         (vect_model_load_cost): Likewise.
1304
1305 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1306
1307         * tree-vect-stmts.c (vect_cost_group_size): Delete.
1308         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
1309         variable to indicate when once-per-group costs are being used.
1310         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
1311
1312 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1313
1314         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
1315         peeling-for-gaps condition.
1316
1317 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1318
1319         * config/s390/s390.c (s390_expand_vec_init): Force initializer
1320         element to register if it doesn't match general_operand.
1321
1322 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1323             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1324
1325         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1326         prototype.
1327         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1328         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1329         (SIGNBIT): New mode iterator.
1330         (Fsignbit): New mode attribute.
1331         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1332         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1333         when direct moves are available.
1334         (signbit<mode>2_dm): New define_insn_and_split).
1335         (signbit<mode>2_dm2): New define_insn.
1336
1337 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1338
1339         PR rtl-optimization/71594
1340         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
1341         into subregs of appropriate mode before trying to emit a conditional
1342         move.
1343
1344 2016-07-05  Jan Hubicka  <jh@suse.cz>
1345
1346         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
1347         (simple_iv): Use it.
1348
1349 2016-07-05  Jan Hubicka  <jh@suse.cz>
1350
1351         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
1352
1353 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
1354
1355         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
1356         "offmemok".
1357
1358 2016-07-05  Jan Hubicka  <jh@suse.cz>
1359
1360         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
1361         IV can overflow.
1362
1363 2016-07-05  Richard Biener  <rguenther@suse.de>
1364
1365         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
1366         Handle empty else block.
1367         (is_feasible_trace): Likewise.
1368         (split_paths): Likewise.
1369
1370 2016-07-05  Richard Biener  <rguenther@suse.de>
1371
1372         * tree-loop-distribution.c (distribute_loop): Fix issue with
1373         the cost model loop.
1374
1375 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
1376
1377         * config/arm/neon-testgen.ml: Delete.
1378         * config/arm/neon.ml: Delete.
1379
1380 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
1381
1382         PR c++/71739
1383         * tree.c (attribute_value_equal): Use get_attribute_name instead of
1384         directly using TREE_PURPOSE.
1385
1386 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
1387
1388         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
1389         * config/aarch64/aarch64_neon.h: Likewise.
1390         * config/aarch64/arm_neon.h: Likewise.
1391         * config/aarch64/atomics.md: Likewise.
1392         * config/aarch64/aarch64-simd-builtins.def: Likewise.
1393         * doc/invoke.texi: Likewise.
1394
1395 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1396
1397         * config/s390/s390.md: Add "z13" cpu_facility.
1398         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
1399         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
1400         condition" type instructions.
1401
1402 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1403             Jeff Law  <law@redhat.com>
1404
1405         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
1406         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
1407
1408 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
1409
1410         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
1411         permutation for TARGET_AVX512F.
1412         (ix86_expand_vec_one_operand_perm_avx512): New function.
1413         (expand_vec_perm_1): Invoke introduced function.
1414         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1415         it may be not valid after vectorization.
1416
1417 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1418
1419         PR target/63874
1420         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
1421         typo in comment.  Only force to memory if it is a weak
1422         external reference.
1423
1424 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
1425             Jiong Wang  <jiong.wang@arm.com>
1426
1427         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
1428         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
1429         (AARCH64_FL_F16): New.
1430         (AARCH64_FL_FOR_ARCH8_2): New.
1431         (AARCH64_ISA_8_2): New.
1432         (AARCH64_ISA_F16): New.
1433         (TARGET_FP_F16INST): New.
1434         (TARGET_SIMD_F16INST): New.
1435         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
1436         ("fp"): Disabling "fp" also disables "fp16".
1437         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
1438         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
1439         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
1440         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
1441
1442 2016-07-04  Jan Beulich  <jbeulich@suse.com>
1443
1444         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
1445
1446 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1447
1448         PR target/71720
1449         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
1450         the insns, use an insn form that does not adjust the offset on
1451         little endian systems.
1452
1453 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1454
1455         * varasm.c (get_variable_section): Validate initializer in
1456         named .bss-like sections.
1457
1458 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1459
1460         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
1461         Exchange the order of the second and third operands in the vpermr
1462         instruction tmeplate.
1463
1464 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
1465
1466         PR target/71698
1467         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
1468         Disallow TDmode values.
1469
1470 2016-07-01  Alan Modra  <amodra@gmail.com>
1471
1472         PR rtl-optimization/71709
1473         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1474         being set, not referenced.
1475
1476 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1477
1478         PR tree-optimization/70729
1479         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
1480         of loop since it can be not valid after transformation.
1481
1482 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1483
1484         * config/arm/arm.c (thumb_reload_in_hi): Delete.
1485         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
1486
1487 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
1488
1489         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
1490         for NULL decl.
1491
1492 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1493
1494         PR target/71677
1495         * config/rs6000/constraints.md (wY constraint): New constraint to
1496         match the requirements for the LXSD and STXSD instructions.
1497         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
1498         predicate to match the requirements for the LXSD and STXSD
1499         instructions.
1500         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
1501         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
1502         to make sure that the bottom 2 bits of offset are 0, the address
1503         form is offsettable, and no updating is done in the address mode.
1504         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
1505         (movdi_internal32): Likewise
1506         (movdi_internal64): Likewise.
1507
1508 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1509
1510         PR tree-optimization/71707
1511         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
1512         strinfo even for ADDR_EXPR ptr.
1513
1514 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1515
1516         * config/rs6000/altivec.md (darn_32): Change the condition to
1517         TARGET_P9_MISC instead of TARGET_MODULO.
1518         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
1519         condition expression.
1520         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
1521         condition expression.
1522         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
1523         (DFP_TEST): New code iterator.
1524         (dfptstsfi_<code>_mode>): New define_expand.
1525         (*dfp_sgnfcnc_<mode>): New define_insn.
1526         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
1527         definition next to BU_P9_MISC_1 definition and change the MASK
1528         value to RS6000_BTM_P9_MISC.
1529         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
1530         (BU_P9_64BIT_MISC_0): Likewise.
1531         (BU_P9_DFP_MISC_0): New macro definition.
1532         (BU_P9_DFP_MISC_1): New macro definition.
1533         (BU_P9_DFP_MISC_2): New macro definition.
1534         (BU_P9_DFP_OVERLOAD_1): New macro definition.
1535         (BU_P9_DFP_OVERLOAD_2): New macro definition.
1536         (BU_P9_DFP_OVERLOAD_3): New macro definition.
1537         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
1538         (TSTSFI_LT_TD): Likewise.
1539         (TSTSFI_EQ_DD): Likewise.
1540         (TSTSFI_EQ_TD): Likewise.
1541         (TSTSFI_GT_DD): Likewise.
1542         (TSTSFI_GT_TD): Likewise.
1543         (TSTSFI_OV_DD): Likewise.
1544         (TSTSFI_OV_TD): Likewise.
1545         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
1546         (TSTSFI_LT_DD): Likewise.
1547         (TSTSFI_LT_TD): Likewise.
1548         (TSTSFI_EQ): Likewise.
1549         (TSTSFI_EQ_DD): Likewise.
1550         (TSTSFI_EQ_TD): Likewise.
1551         (TSTSFI_GT): Likewise.
1552         (TSTSFI_GT_DD): Likewise.
1553         (TSTSFI_GT_TD): Likewise.
1554         (TSTSFI_OV): Likewise.
1555         (TSTSFI_OV_DD): Likewise.
1556         (TSTSFI_OV_TD): Likewise.
1557         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1558         overloaded test significance functions.
1559         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1560         OPTION_MASK_P9_MISC into the representation of this mask.
1561         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
1562         of this mask.
1563         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
1564         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
1565         non-zero.
1566         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
1567         argument is a 6-bit unsigned literal value if the icode argument
1568         represents a DFP test significance built-in call.
1569         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
1570         flag used independently and in combination with the
1571         RS6000_BTM_64BIT flag.
1572         (rs6000_opt_masks): Add entry for power9-misc command-line option.
1573         (rs6000_builtin_mask_names): Add entry for power9-misc
1574         command-line option.
1575         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
1576         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
1577         RS6000_BTM_P9_MISC macros.
1578         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
1579         option and change the description of the -mpower9-vector option to
1580         enable only vector instructions, removing its erroneously claimed
1581         support for scalar instructions.
1582         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1583         the ISA 3.0 digital floating point test significance built-in
1584         functions.
1585
1586 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
1587
1588         * config/aarch64/aarch64.c (cortexa35_tunings):
1589         Enable AES fusion.  Use cortexa57_branch_cost.
1590         (cortexa53_tunings): Use cortexa57_branch_cost.
1591         (cortexa72_tunings): Use cortexa57_branch_cost.
1592         Use AUTOPREFETCHER_WEAK.
1593         (cortexa73_tunings): Use cortexa57_branch_cost.
1594
1595 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1596             James Greenhalgh  <james.greenhalgh@arm.com>
1597
1598         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
1599         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
1600         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
1601         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
1602         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
1603         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
1604         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
1605         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
1606         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
1607         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
1608         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
1609         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
1610         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
1611         New intrinsics.
1612
1613 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
1614             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1615
1616         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1617         New define_insn.
1618         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
1619
1620 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
1621
1622         PR driver/71651
1623         * gcc.c (driver::build_option_suggestions): Pass "option" to
1624         add_misspelling_candidates.
1625         * opts-common.c (add_misspelling_candidates): Add "option" param;
1626         use it to avoid adding negated forms for options marked with
1627         RejectNegative.
1628         * opts.h (add_misspelling_candidates): Add "option" param.
1629
1630 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
1631
1632         PR middle-end/71693
1633         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1634         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1635         first when permuting bitwise operation with rotate.  Cast
1636         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1637
1638 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
1639
1640         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
1641         for misspelled param names.
1642         * params.c: Include spellcheck.h.
1643         (find_param_fuzzy): New function.
1644         * params.h (find_param_fuzzy): New prototype.
1645         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
1646         * spellcheck.h (struct edit_distance_traits<const char *>):
1647         ...here.
1648
1649 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1650
1651         * config/rs6000/predicates.md (const_0_to_7_operand): New
1652         predicate, recognize 0..7.
1653         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1654         support for doing extracts from V16QImode, V8HImode, V4SImode
1655         under ISA 3.0.
1656         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
1657         vector extract support.
1658         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
1659         for ISA 3.0 vector extract.
1660         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
1661         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
1662         extracts of a constant element number from small integer vectors
1663         on 64-bit ISA 3.0 systems.
1664         (vsx_extract_<mode>_di): Likewise.
1665         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
1666         say when we can do ISA 3.0 vector extracts.
1667         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
1668         registers, using the stxsiwx instruction.
1669
1670 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
1671
1672         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
1673         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
1674         qdf24xx_regmove_cost, qdf24xx_tunings): New.
1675         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
1676         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
1677         * config/arm/arm.c (arm_qdf24xx_tune): New.
1678
1679 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
1680
1681         * config/aarch64/aarch64.c (cortexa53_tunings):
1682         Increase loop alignment to 8.  Set function alignment to 16.
1683         (cortexa35_tunings): Likewise.
1684         (cortexa57_tunings): Increase loop alignment to 8.
1685         (cortexa72_tunings): Likewise.
1686         (cortexa73_tunings): Likewise.
1687
1688 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1689
1690         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
1691         for arm_fp16_ok and arm_fp16_hw.
1692         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
1693         arm_fp16_alternative.
1694
1695 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1696
1697         PR tree-optimization/71655
1698         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
1699         types when swapping operands.
1700
1701 2016-06-29  Martin Liska  <mliska@suse.cz>
1702
1703         PR middle-end/71585
1704         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
1705         * ipa-inline-transform.c (inline_call): Remove unnecessary call
1706         of build_optimization_node.
1707
1708 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1709
1710         PR tree-optimization/70729
1711         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1712         independent in loops having positive safelen value.
1713         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1714         it may be not valid after vectorization.
1715
1716 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
1717
1718         PR tree-optimization/71625
1719         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
1720         is sorted by ascending list->offset.  If PTR is non-NULL and there is
1721         previous strinfo, call get_stridx_plus_constant.
1722         (get_stridx): Pass exp as second argument to get_addr_stridx.
1723         (addr_stridxptr): Add missing list = list->next, so that there can be
1724         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
1725         the list is sorted by ascending list->offset.
1726         (get_stridx_plus_constant): Adjust so that it can be also called with
1727         ADDR_EXPR instead of SSA_NAME as PTR.
1728         (handle_char_store): Pass NULL_TREE as second argument to
1729         get_addr_stridx.
1730
1731 2016-06-29  Richard Biener  <rguenther@suse.de>
1732
1733         PR rtl-optimization/68961
1734         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1735
1736 2016-06-29  Richard Biener  <rguenther@suse.de>
1737
1738         PR middle-end/71002
1739         * alias.c (component_uses_parent_alias_set_from): Handle
1740         type punning through union accesses by using the union alias set.
1741         * gimple.c (gimple_get_alias_set): Remove union type punning case.
1742
1743 2016-07-29  Richard Biener  <rguenther@suse.de>
1744
1745         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1746         precision not matching mode precision.
1747
1748 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
1749
1750         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1751         pa_output_arg_descriptor.
1752         (call_val_symref_64bit_post_reload): Likewise.
1753         (call_val_powf_64bit_post_reload): Likewise.
1754         (sibcall_internal_symref_64bit): Likewise.
1755         (sibcall_value_internal_symref_64bit): Likewise.
1756
1757 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1758
1759         PR middle-end/71626
1760         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1761         a constant, force its SUBREG_REG into memory or register instead
1762         of whole op1.
1763
1764 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1765
1766         PR target/58655
1767         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1768         * doc/invoke.texi (AVR Options): Document it.
1769
1770 2016-06-28  Walter Lee  <walt@tilera.com>
1771
1772         * config/tilegx/linux.h: Do not include arch/icache.h
1773         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1774         * config/tilepro/linux.h: Do not include arch/icache.h
1775         (CLEAR_INSN_CACHE): Provide inlined definition directly.
1776
1777 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
1778
1779         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1780         for big-endian BIT_FIELD_REF.
1781
1782 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
1783
1784         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1785         ('size' attribute): Add '128'.
1786         Include power9.md.
1787         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1788         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1789         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1790         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1791         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1792         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1793         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1794         *trunc<mode>df2_odd): Set size attribute to '128'.
1795         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1796         * config/rs6000/power6.md (power6-fp): Include dfp type.
1797         * config/rs6000/power7.md (power7-fp): Likewise.
1798         * config/rs6000/power8.md (power8-fp): Likewise.
1799         * config/rs6000/power9.md: New file.
1800         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1801         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1802         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1803         htmsimple.
1804         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1805         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1806         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1807         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1808         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1809         dfp_dscri_<mode>): Change type attribute to dfp.
1810         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1811         attribute to vecsimple.
1812         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1813         and prefetch streams.
1814         (rs6000_option_override_internal): Remove temporary code setting
1815         tuning to power8.  Don't set rs6000_sched_groups for power9.
1816         (last_scheduled_insn): Change to rtx_insn *.
1817         (divide_cnt, vec_load_pendulum): New variables.
1818         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
1819         (rs6000_issue_rate): Set issue rate for Power9.
1820         (is_power9_pairable_vec_type): New.
1821         (power9_sched_reorder2): New.
1822         (rs6000_sched_reorder2): Call new function for Power9 specific
1823         reordering.
1824         (insn_must_be_first_in_group): Remove Power9.
1825         (insn_must_be_last_in_group): Likewise.
1826         (force_new_group): Likewise.
1827         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
1828         Initialize divide_cnt/vec_load_pendulum.
1829         (_rs6000_sched_context, rs6000_init_sched_context,
1830         rs6000_set_sched_context): Handle context save/restore of new
1831         variables.
1832
1833 2016-06-28  Richard Biener  <rguenther@suse.de>
1834
1835         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1836         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
1837         COMPONENT_REF operand.
1838         (nonoverlapping_component_refs_p): Likewise.
1839         * stor-layout.c (start_bitfield_representative): Mark
1840         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
1841
1842 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
1843
1844         * Makefile.in: Don't cat ../stage_current if it does not exist.
1845
1846         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
1847         last argument is a bit-field.
1848
1849         PR rtl-optimization/71673
1850         * internal-fn.c (expand_arith_overflow_result_store): Use
1851         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
1852         expand_simple_binop.
1853
1854         PR middle-end/66867
1855         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
1856         expand_ifn_atomic_compare_exchange): New functions.
1857         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1858         * tree.h (build_call_expr_internal_loc): Rename to ...
1859         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1860         last argument.
1861         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1862         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1863         ATOMIC_COMPARE_EXCHANGE result.
1864         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1865         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1866         fold_builtin_atomic_compare_exchange): New prototypes.
1867         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1868         fold_builtin_atomic_compare_exchange): New functions..
1869         * tree-ssa.c (execute_update_addresses_taken): If
1870         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1871         of call when finding addressable vars, and if such var becomes
1872         non-addressable, call fold_builtin_atomic_compare_exchange.
1873
1874 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1875
1876         PR target/71670
1877         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1878         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1879
1880 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1881
1882         * config/rs6000/rs6000.md ('type' attribute): Add
1883         veclogical,veccmpfx,vecexts,vecmove insn types.
1884         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1885         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1886         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1887         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1888         *nabs<mode>2_hw): Change type to vecmove.
1889         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1890         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1891         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1892         *ieee_128bit_vsx_abs<mode>2_internal,
1893         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1894         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1895         *ieee128_mtvsrd_32bit): Change type to veclogical.
1896         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1897         *movdi_internal32, *movdi_internal64): Update insn types.
1898         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1899         vsx_extract_<mode>): Change type to veclogical.
1900         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1901         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1902         *vsx_sign_extend_si_v2di): Change type to vecexts.
1903         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1904         type to veclogical.
1905         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1906         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1907         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1908         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1909         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1910         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1911         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1912         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1913         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1914         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1915         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1916         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1917         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1918         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1919         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1920         (ppc7450-vecsimple): Add veclogical, vecmove.
1921         (ppc7450-veccmp): Add veccmpfx.
1922         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1923         vecmove.
1924         (ppc8540_vector_compare): Add veccmpfx.
1925         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1926         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1927         (cell-vecsimple): Add veclogical, vecmove.
1928         (cell-veccmp): Add veccmpfx.
1929         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1930         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1931         veccmpfx.
1932         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1933         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1934         (power4-vecsimple): Add veclogical, vecmove.
1935         (power4-veccmp): Add veccmpfx.
1936         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1937         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1938         (power6-vecsimple): Add veclogical, vecmove.
1939         (power6-veccmp): Add veccmpfx.
1940         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1941         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1942         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1943         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1944         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1945         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1946         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1947         fpsimple.
1948         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1949
1950 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1951
1952         PR target/71656
1953         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1954         OPTION_MASK_P9_DFORM_VECTOR.
1955         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1956         disable -mpower9-dform-vector when using reload.
1957         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1958         New 'strict' argument.  Update all callers.  Add strict addressing
1959         support.
1960         (rs6000_legitimate_offset_address_p): Remove call to
1961         virtual_stack_registers_memory_p.
1962         (rs6000_legitimize_reload_address): Add quad address support.
1963         (rs6000_legitimate_address_p): Move call to quad_address_p above
1964         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1965         to account for new strict usage.
1966         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1967         for new strict usage.
1968         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1969
1970 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1971
1972         PR target/70902
1973         PR target/71453
1974         PR target/71555
1975         PR target/71596
1976         PR target/71657
1977         * config/i386/i386.c (ix86_spill_class): Disable condition to
1978         always return NO_REGS.
1979
1980 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1981
1982         * predict.c: Include gimple-pretty-print.h
1983         (predicted_by_loop_heuristics_p): Check also
1984         PRED_LOOP_EXIT_WITH_RECURSION
1985         (predict_loops): Find self recursive calls and use special purpose
1986         predictors for them; dump log about decisions.
1987         (pass_profile::execute): Dump info about #of iterations.
1988         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1989         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1990
1991 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1992
1993         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1994         output_asm_insn calls and shorten long lines.  Output .CALL
1995         argument descriptor using pa_output_arg_descriptor.  Add various
1996         inline $$dyncall and other optimizations.
1997         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1998
1999 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
2000
2001         PR tree-optimization/71643
2002         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2003         EH preds.
2004
2005         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2006         leak a bitmap if dep_bb is NULL.
2007
2008         PR tree-optimization/71631
2009         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2010         to rewrite_expr_tree even if negate_result, move new_lhs var
2011         declaration and initialization earlier, for powi_result set afterwards
2012         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
2013         if new_lhs != lhs, and don't shadow gsi var.
2014
2015 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2016
2017         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2018         Add in_loop parameter.
2019         (predict_loops): Add loop guard heuristics.
2020         * predict.def (PRED_LOOP_GUARD): New heuristics.
2021
2022 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2023
2024         * predict.c: Include ipa-utils.h
2025         (tree_bb_level_prediction): Predict recursive calls.
2026         (tree_estimate_probability_bb): Skip inexpensive calls for call
2027         predictor.
2028         * predict.def (PRED_RECURSIVE_CALL): New.
2029
2030 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2031
2032         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2033         (BU_FLOAT128_1): Likewise.
2034         (FABSQ): Likewise.
2035         (COPYSIGNQ): Likewise.
2036         (RS6000_BUILTIN_NANQ): Likewise.
2037         (RS6000_BUILTIN_NANSQ): Likewise.
2038         (RS6000_BUILTIN_INFQ): Likewise.
2039         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2040         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2041         (TARGET_FOLD_BUILTIN): New #define.
2042         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2043         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2044         (rs6000_fold_builtin): New target hook implementation, handling
2045         folding of 128-bit NaNs and infinities.
2046         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2047         entries are filled in to avoid problems during bootstrap
2048         self-test; define builtins for 128-bit NaNs and infinities.
2049         (rs6000_opt_mask): Add entry for float128.
2050         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2051         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2052         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2053         (const_str_type_node): New #define.
2054         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2055         to a define_expand that dispatches to either copysign<mode>3_soft
2056         or copysign<mode>3_hard.
2057         (copysign<mode>3_hard): Rename from copysign<mode>3.
2058         (copysign<mode>3_soft): New define_insn.
2059         * doc/extend.texi: Document new builtins.
2060
2061 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2062
2063         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2064         PRIu64 instead of lu.
2065
2066 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2067
2068         PR debug/71642
2069         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2070         copy the type name.
2071
2072 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2073
2074         PR tree-optimization/71647
2075         * omp-low.c (lower_rec_input_clauses): Convert
2076         omp_clause_aligned_alignment (c) to size_type_node for the
2077         last argument of __builtin_assume_aligned.
2078
2079 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2080
2081         * configure.ac (calling ___tls_get_addr via GOT): New
2082         assembler/linker check.
2083         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
2084         assembler and linker supports calling ___tls_get_addr via GOT.
2085         Otherise, defined to 0.
2086         * config.in: Regenerated.
2087         * configure: Likewise.
2088         * config/i386/constraints.md (Yb): New constraint.
2089         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2090         (REG_CLASS_NAMES): Likewise.
2091         (REG_CLASS_CONTENTS): Likewise.
2092         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2093         the b constraint with the Yb constraint.  Call ___tls_get_addr
2094         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2095         is 1.
2096         (*tls_local_dynamic_base_32_gnu): Likewise.
2097         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2098         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2099         (*tls_local_dynamic_base_64_<mode>): Likewise.
2100
2101 2016-06-24  Martin Liska  <mliska@suse.cz>
2102
2103         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2104         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2105         few functions.
2106         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2107         argument to true if the expected number of iterations is
2108         loop-based.
2109
2110 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
2111
2112         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2113         assemble for 32bit target.
2114         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2115         and $ld_ix86_gld_32_opt to link for 32bit target.
2116         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2117         * configure: Regenerate.
2118
2119 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2120
2121         * config/arm/arm.c (int_log2): Delete definition and prototype.
2122         (shift_op): Use exact_log2 instead of int_log2.
2123         (vfp3_const_double_for_fract_bits): Likewise.
2124
2125 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2126
2127         * internal-fn.c (expand_arith_set_overflow): New function.
2128         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2129         Use it.
2130         (expand_arith_overflow_result_store): Likewise.  Handle precision
2131         smaller than mode precision.
2132         * tree-vrp.c (extract_range_basic): For imag part, handle
2133         properly signed 1-bit precision result.
2134         * doc/extend.texi (__builtin_add_overflow): Document that last
2135         argument can't be pointer to enumerated or boolean type.
2136         (__builtin_add_overflow_p): Document that last argument can't
2137         have enumerated or boolean type.
2138
2139 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2140             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2141
2142         * config/rs6000/predicates.md (splat_input_operand): Rework.
2143         Don't allow constants, since the insns that use this predicate
2144         don't support constants.  Constants are handled by other insns
2145         that are created via combine.  During and after register
2146         allocation, only allow indexed or indirect addresses, and not
2147         general addresses.  Only allow modes supported by the hardware.
2148         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2149         comment.  Move check for using VSPLTIS<x> to a common location,
2150         instead of doing it in two different places.
2151
2152 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
2153
2154         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2155         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2156         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2157         signature_CENTAUR_ebx.
2158
2159 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2160
2161         PR target/66232
2162         PR target/67400
2163         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2164         (as_ix86_gas_32_opt): This.
2165         (ld_ix86_tls_ldm_opt): Renamed to ...
2166         (ld_ix86_gld_32_opt): This.
2167         (R_386_TLS_LDM reloc): Updated.
2168         (R_386_GOT32X reloc): New assembler/linker check.
2169         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
2170         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
2171         defined to 0.
2172         * config.in: Regenerated.
2173         * configure: Likewise.
2174         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2175         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2176         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2177         if ix86_force_load_from_GOT_p returns true.
2178         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2179         ix86_force_load_from_GOT_p returns true.
2180         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2181         the external function address via the GOT slot.
2182         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2183         HAVE_AS_IX86_GOT32X before returning false.
2184         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2185         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2186
2187 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
2188
2189         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2190
2191 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2192
2193         * Makefile.in: Regenerate.
2194         * doc/install.texi: Document autoprofiledbootstrap.
2195
2196 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2197
2198         * config/i386/gcc-auto-profile: New file.
2199
2200 2016-06-23  Martin Liska  <mliska@suse.cz>
2201
2202         PR middle-end/71619
2203         * predict.c (predict_loops): Revert the hunk that was removed
2204         in r237103.
2205
2206 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
2207
2208         * config.gcc: Add support for arm*-*-phoenix* targets.
2209         * config/arm/t-phoenix: New.
2210         * config/phoenix.h: New.
2211
2212 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
2213             H.J. Lu  <hongjiu.lu@intel.com>
2214
2215         PR target/67400
2216         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2217         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2218         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2219         ix86_force_load_from_GOT_p returns true.
2220         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2221         ix86_force_load_from_GOT_p returns true.
2222         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2223         ix86_force_load_from_GOT_p returns true.
2224         (ix86_expand_move): Load the external function address via the
2225         GOT slot if ix86_force_load_from_GOT_p returns true.
2226         * config/i386/predicates.md (x86_64_immediate_operand): Return
2227         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2228         (x86_64_zext_immediate_operand): Ditto.
2229
2230 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
2231
2232         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2233
2234 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2235
2236         PR c/70339
2237         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2238         * diagnostic.c (pedwarn_at_rich_loc): New function.
2239         * spellcheck.h (best_match::best_match): Add a
2240         "best_distance_so_far" optional parameter.
2241         (best_match::set_best_so_far): New method.
2242         (best_match::get_best_distance): New accessor.
2243         (best_match::get_best_candidate_length): New accessor.
2244
2245 2016-06-22  Nick Clifton  <nickc@redhat.com>
2246
2247         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2248         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2249         modes are accepted as well.
2250         (ucompare_loc_descriptor): Likewise.
2251         (minmax_loc_descriptor): Likewise.
2252         (clz_loc_descriptor): Likewise.
2253         (popcount_loc_descriptor): Likewise.
2254         (bswap_loc_descriptor): Likewise.
2255         (rotate_loc_descriptor): Likewise.
2256         (mem_loc_descriptor): Likewise.
2257         (loc_descriptor): Likewise.
2258
2259 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2260
2261         * common.opt (fdiagnostics-parseable-fixits): New option.
2262         * diagnostic.c: Include "selftest.h".
2263         (print_escaped_string): New function.
2264         (print_parseable_fixits): New function.
2265         (diagnostic_report_diagnostic): Call print_parseable_fixits.
2266         (selftest::assert_print_escaped_string): New function.
2267         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2268         (selftest::test_print_escaped_string): New function.
2269         (selftest::test_print_parseable_fixits_none): New function.
2270         (selftest::test_print_parseable_fixits_insert): New function.
2271         (selftest::test_print_parseable_fixits_remove): New function.
2272         (selftest::test_print_parseable_fixits_replace): New function.
2273         (selftest::diagnostic_c_tests): New function.
2274         * diagnostic.h (struct diagnostic_context): Add field
2275         "parseable_fixits_p".
2276         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2277         -fdiagnostics-parseable-fixits.
2278         (-fdiagnostics-parseable-fixits): New option.
2279         * opts.c (common_handle_option): Handle
2280         -fdiagnostics-parseable-fixits.
2281         * selftest-run-tests.c (selftest::run_tests): Call
2282         selftest::diagnostic_c_tests.
2283         * selftest.h (selftest::diagnostic_c_tests): New prototype.
2284
2285 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
2286
2287         PR tree-optimization/71488
2288         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2289         comparison of boolean vectors.
2290         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2291         of boolean vectors using bitwise operations.
2292
2293 2016-06-22  Andreas Schwab  <schwab@suse.de>
2294
2295         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2296         Remove declaration.
2297
2298 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2299
2300         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2301
2302 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2303
2304         * config/i386/i386.c (print_reg): Emit an error message on attempt to
2305         print FLAGS_REG.
2306
2307 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2308
2309         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
2310         * config/arm/arm-cores.def (cortex-a73): New entry.
2311         (cortex-a73.cortex-a35): Likewise.
2312         (cortex-a73.cortex-a53): Likewise.
2313         * config/arm/arm-tables.opt: Regenerate.
2314         * config/arm/arm-tune.md: Likewise.
2315         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
2316         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2317         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
2318         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2319         * doc/invoke.texi (ARM Options): Document cortex-a73,
2320         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
2321
2322 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2323
2324         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
2325         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
2326         (cortex-a73.cortex-a35): Likewise.
2327         (cortex-a73.cortex-a53): Likewise.
2328         * config/aarch64/aarch64-tune.md: Regenerate.
2329         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
2330         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
2331         -mcpu and -mtune.
2332
2333 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2334
2335         * configure.ac (gcc_cv_as_compress_debug): Remove
2336         --compress-debug-sections as extra as switch.
2337         Handle gas --compress-debug-sections=type.
2338         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
2339         Handle gld --compress-debug-sections=type.
2340         * configure: Regenerate.
2341
2342 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2343
2344         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
2345
2346 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2347
2348         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
2349         (do_rewrite): likewise.
2350
2351 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2352
2353         * common/config/mep/mep-common.c: Remove.
2354         * config.gcc: Remove mep-* support.
2355         * config/mep/constraints.md: Remove.
2356         * config/mep/default.h: Remove.
2357         * config/mep/intrinsics.h: Remove.
2358         * config/mep/intrinsics.md: Remove.
2359         * config/mep/ivc2-template.h: Remove.
2360         * config/mep/mep-c5.cpu: Remove.
2361         * config/mep/mep-core.cpu: Remove.
2362         * config/mep/mep-default.cpu: Remove.
2363         * config/mep/mep-ext-cop.cpu: Remove.
2364         * config/mep/mep-intrin.h: Remove.
2365         * config/mep/mep-ivc2.cpu: Remove.
2366         * config/mep/mep-pragma.c: Remove.
2367         * config/mep/mep-protos.h: Remove.
2368         * config/mep/mep.c: Remove.
2369         * config/mep/mep.cpu: Remove.
2370         * config/mep/mep.h: Remove.
2371         * config/mep/mep.md: Remove.
2372         * config/mep/mep.opt: Remove.
2373         * config/mep/predicates.md: Remove.
2374         * config/mep/t-mep: Remove.
2375         * doc/install.texi: Remove mep-* documentation.
2376         * doc/md.texi: Likewise.
2377
2378 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2379
2380         * config.gcc: Remove support for avr-rtems.
2381         * config/avr/gen-avr-mmcu-specs.c: Likewise.
2382         * config/avr/rtems.h: Remove.
2383         * config/avr/t-rtems: Remove.
2384
2385 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2386
2387         * config.gcc: Remove m32r-rtems support.
2388         * config/m32r/rtems.h: Remove.
2389
2390 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2391
2392         * config.gcc: Remove h8300-rtems support.
2393         * config/h8300/rtems.h: Remove.
2394         * config/h8300/t-rtems: Remove.
2395
2396 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2397
2398         * config.gcc: Remove support for knetbsd.
2399         * configure.ac: Likewise.
2400         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
2401         * config/knetbsd-gnu.h: Remove.
2402         * configure: Regenerate.
2403
2404 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2405
2406         * config.gcc: Remove support for openbsd 2 and 3.
2407         * config/openbsd-oldgas.h: Remove.
2408
2409 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2410
2411         * config.gcc: Remove interix support.
2412         * config/i386/i386-interix.h: Remove.
2413         * config/i386/interix.opt: Remove.
2414         * config/i386/t-interix: Remove.
2415         * configure: Regenerate.
2416         * configure.ac: Remove interix support.
2417         * doc/install.texi: Remove interix documentation.
2418
2419 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2420
2421         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2422         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2423         not defined.
2424
2425 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2426
2427         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
2428         they are both PLACEHOLDER_EXPRs.
2429
2430 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2431
2432         * stor-layout.c (layout_type): Move setting complex MODE to
2433         layout_type, instead of setting it ahead of time by the caller.
2434         * tree.c (build_complex_type): Likewise.
2435
2436 2016-06-21  Martin Liska  <mliska@suse.cz>
2437
2438         * predict.c (force_edge_cold): Replace imposisble with
2439         impossible.
2440
2441 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2442
2443         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
2444         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
2445
2446 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2447
2448         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
2449
2450 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2451             Ilya Enkovich  <ilya.enkovich@intel.com>
2452
2453         PR target/71549
2454         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2455         New member function to convert V1TImode register to SUBREG
2456         TImode in debug insn.
2457         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
2458         after changing register mode to V1TImode.
2459
2460 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
2461
2462         * config/aarch64/aarch64-cores.def (vulcan): New core.
2463         * config/aarch64/aarch64-tune.md: Regenerate.
2464         * doc/invoke.texi: Document vulcan as an available option.
2465
2466 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2467
2468         * cse.c (canon_asm_operands): New function extracted from...
2469         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
2470         either standalone or member of a PARALLEL.
2471
2472 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2473
2474         PR target/30417
2475         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
2476         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
2477         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
2478
2479 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
2480
2481         PR target/71103
2482         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
2483         constant addresses if can_create_pseudo_p.
2484
2485 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
2486
2487         PR tree-optimization/71588
2488         * tree-ssa-strlen.c (valid_builtin_call): New function.
2489         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
2490         it.
2491
2492 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2493
2494         PR middle-end/71581
2495         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
2496         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
2497         for conversion of scalar user var to complex type and use the
2498         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
2499         punt.
2500
2501         PR rtl-optimization/71591
2502         * toplev.c (toplev::run_self_tests): If no_backend, complain and
2503         don't run any tests.
2504
2505 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
2506
2507         PR target/71571
2508         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
2509         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
2510         space for PIC with non-v32 and the common non-PIC "jump".
2511
2512 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2513
2514         PR target/71559
2515         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2516         returned values and add UN*/LTGT/*ORDERED cases with values matching
2517         D operand modifier on vcmp for AVX.
2518
2519 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2520
2521         * config/aarch64/aarch64.opt
2522         (mpc-relative-literal-loads): Rename internal option name.
2523         * config/aarch64/aarch64.c
2524         (aarch64_nopcrelative_literal_loads): Rename to
2525         aarch64_pcrelative_literal_loads.
2526         (aarch64_expand_mov_immediate): Likewise.
2527         (aarch64_secondary_reload): Likewise.
2528         (aarch64_can_use_per_function_literal_pools_p): Likewise.
2529         (aarch64_override_options_after_change_1): Rename and simplify logic.
2530         (aarch64_classify_symbol): Merge large model checks into switch,
2531         remove pc-relative load check.
2532
2533 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2534
2535         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
2536         costs relative to the cost of a register move.
2537
2538 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2539
2540         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
2541         (vcvt_n_f64_u64): Likewise.
2542         (vcvt_n_s64_f64): Likewise.
2543         (vcvt_n_u64_f64): Likewise.
2544         (vcvt_f64_s64): Likewise.
2545         (vrecpe_f64): Likewise.
2546         (vcvt_f64_u64): Likewise.
2547         (vrecps_f64): Likewise.
2548
2549 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2550
2551         * config/aarch64/aarch64.md
2552         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
2553         iterators.
2554         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
2555         attributes.
2556         * config/aarch64/aarch64-builtins.c
2557         (aarch64_types_binop_uss_qualifiers): Delete.
2558         (TYPES_BINOP_USS): Likewise.
2559         (aarch64_types_binop_sus_qualifiers): Likewise.
2560         (TYPES_BINOP_SUS): Likewise.
2561         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
2562         (TYPES_FCVTIMM_SUS): Likewise.
2563         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
2564         rather than BINOP.
2565         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
2566         (fcvtzs): Use SHIFTIMM rather than BINOP.
2567         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
2568
2569 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
2570
2571         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
2572         costs relative to the cost of a register move.
2573
2574 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2575
2576         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
2577         Allow scalar/single vector modes to be tieable.
2578
2579 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
2580
2581         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
2582
2583 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2584
2585         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
2586         "alignement".
2587         * tree.h (TYPE_ALIGN): Likewise.
2588
2589 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2590
2591         PR target/71103
2592         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
2593
2594 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
2595
2596         * config/avr/avr.c (avr_print_operand): Fix "format not a string
2597         literal" build warnings.
2598         (avr_print_operand_address): Dito.
2599
2600 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
2601
2602         PR target/71375
2603         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
2604         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
2605
2606 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
2607
2608         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
2609
2610 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2611
2612         PR bootstrap/71435
2613         * reload1.c (reload): Pass 0 to finish_spills when called because
2614         update_eliminables_and_spill returns true and remove did_spill.
2615         (finish_spills): Adjust comment and document GLOBAL parameter.
2616
2617 2016-06-17  DJ Delorie  <dj@redhat.com>
2618
2619         PR target/71338
2620         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2621         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2622         (umulqihi3_virt): Likewise.
2623         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2624         (umulqihi3_real): Likewise.
2625
2626 2016-06-17  Martin Liska  <mliska@suse.cz>
2627
2628         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2629
2630 2016-06-17  Martin Liska  <mliska@suse.cz>
2631
2632         * predict.def: PRED_LOOP_EXIT from 92 to 85.
2633
2634 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
2635
2636         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
2637         __FAST_MATH__.
2638         (vaddq_f32): Likewise.
2639         (vmul_f32): Likewise.
2640         (vmulq_f32): Likewise.
2641         (vsub_f32): Likewise.
2642         (vsubq_f32): Likewise.
2643
2644 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2645
2646         PR tree-optimization/71347
2647         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
2648         cost for all uses in group.
2649
2650 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
2651
2652         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
2653         insert gimple seq if it's not empty.
2654
2655 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
2656
2657         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
2658         member OFFSET.
2659         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
2660         rather than OFFSET.
2661         (comp_dr_with_seg_len_pair): Ditto.
2662         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
2663         struct dr_with_seg_len_pair against DR_OFFSET.
2664         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
2665         DR_OFFSET directly.
2666
2667 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2668
2669         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
2670
2671 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
2672
2673         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
2674         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
2675         (pa_output_millicode_call): Likewise.
2676         (pa_output_call): Likewise.
2677         (pa_output_indirect_call): Likewise.
2678         (pa_asm_output_mi_thunk): Likewise.
2679
2680 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2681
2682         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
2683
2684 2016-06-16  Martin Liska  <mliska@suse.cz>
2685
2686         * predict.c (combine_predictions_for_insn): When we find a first
2687         match predictor, we should consider just predictors with
2688         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
2689         DS theory predictor.
2690         (combine_predictions_for_bb): Likewise.
2691
2692 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2693
2694         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2695         with base of reference to struct.
2696
2697 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2698
2699         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
2700
2701 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2702
2703         PR target/71151
2704         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2705         progmem_swtable_section.
2706         (progmem_swtable_section): Remove.
2707         (avr_asm_function_rodata_section): Remove.
2708         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2709         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2710
2711 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
2712
2713         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2714         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2715         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2716         signature_CENTAUR_ebx.
2717         * config/i386/i386.c (ix86_option_override_internal): Add
2718         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2719         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2720         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2721
2722 2016-06-16  Martin Liska  <mliska@suse.cz>
2723
2724         * predict.def: Add fortran loop preheader predictor.
2725         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2726         fold IFN_BUILTIN_EXPECT with a known constant argument.
2727
2728 2016-06-16  Martin Liska  <mliska@suse.cz>
2729
2730         * predict.def: Add 'Fortran' to display text of all
2731         PRED_FORTRAN_* predictors.
2732
2733 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
2734
2735         PR target/71242
2736         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2737         [IA64_BUILTIN_NANSQ]: Ditto.
2738         (ia64_fold_builtin): New function.
2739         (TARGET_FOLD_BUILTIN): New define.
2740         (ia64_init_builtins) Declare const_string_type node.
2741         Add __builtin_nanq and __builtin_nansq builtin functions.
2742         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2743
2744 2016-06-16  Nick Clifton  <nickc@redhat.com>
2745
2746         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2747         MSP430_HWMULT_ prefix to enum values.
2748         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2749         * config/msp430/msp430.c: Update use of enum values.
2750         * config/msp430/msp430.md: Likewise.
2751         * config/msp430/msp430.opt: Likewise.
2752
2753 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
2754
2755         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2756         of comparsions in the last iteration.
2757
2758 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2759             Joern Rennecke  <joern.rennecke@embecosm.com>
2760
2761         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2762         addresses.
2763         (arc_needs_pcl_p): Add GOTOFFPC.
2764         (arc_legitimate_pic_addr_p): Likewise.
2765         (arc_output_pic_addr_const): Likewise.
2766         (arc_legitimize_pic_address): Generate a pc-relative address using
2767         GOTOFFPC.
2768         (arc_output_libcall): Use @pcl syntax.
2769         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2770         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2771         (*movsi_insn): Use @pcl syntax.
2772         (doloop_begin_i): Likewise.
2773
2774 2016-06-16  Martin Liska  <mliska@suse.cz>
2775
2776         * predict.def: Define a new predictor.
2777
2778 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
2779
2780         * config/arc/arc.opt (mtp-regno): Update text.
2781
2782 2016-06-16  Renlin Li  <renlin.li@arm.com>
2783
2784         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2785
2786 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
2787
2788         PR target/71554
2789         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2790         (setcc + and peephole2): Likewise.
2791
2792         PR rtl-optimization/71532
2793         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2794         memory slots.
2795
2796 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2797
2798         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2799         DImode constants with XXSPLTIB in vector registers.
2800         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2801         vsx_extract_<mode>_internal{1,2} into a single insn that handles
2802         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2803         extraction of the element at the top of the register as a scalar
2804         value.
2805         (vsx_extract_<mode>_internal1): Likewise.
2806         (vsx_extract_<mode>_internal2): Likewise.
2807         * config/rs6000/constraints.md (wi constraint): Remove a comment
2808         about DImode not being allowed in Altivec registers.
2809         (wB constraint): New constraint for constants that can be
2810         generated in Altivec registers with VSPLTISW/VUPKHSW.
2811         * config/rs6000/predicates.md (xxspltib_constant_split): Update
2812         comments.
2813         (xxspltib_constant_nosplit): Likewise.
2814         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2815         support for -mupper-regs-di to enable DImode to go into Altivec
2816         registers.
2817         (POWERPC_MASKS): Likewise.
2818         (power7 cpu): Likewise.
2819         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
2820         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
2821         for DImode being allowed in Altivec registers.  Update wi/wj
2822         constraints.  Set scalar_in_vmx_p flag.
2823         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
2824         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
2825         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
2826         (rs6000_opt_masks): Add -mupper-regs-di.
2827         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
2828         direct move to use wi and not wj.
2829         (lfiwzx): Likewise.
2830         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
2831         alternative.
2832         (floatunssi<mode>2_lfiwzx_mem): Likewise.
2833         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
2834         any VSX register, instead of just Altivec registers, to allow
2835         either operand to be an Altivec register or both.
2836         (fixuns_trunc<mode>di2_fctiduz): Likewise.
2837         (movdi_internal32): Add support for -mupper-regs-di.  Add support
2838         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
2839         the alternatives and attributes to be lined up to be easier to
2840         read.
2841         (movdi_internal64): Likewise.
2842         (64-bit DImode splitters): Change predicates to only split loading
2843         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
2844         load constants in ISA 3.0 or ISA 2.07 respectively.
2845         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2846         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
2847         mention -mcpu=power9 sets these options.
2848         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
2849         wB constraint.
2850
2851 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2852
2853         PR target/67353
2854         * config/avr/avr.c (avr_set_current_function): Warn misspelled
2855         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
2856         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2857         by default to warn misspelled interrupt/ signal handler.
2858         * doc/invoke.texi (AVR Options): Document it. Update description
2859         for -nodevicelib option.
2860
2861 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2862
2863         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2864         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2865         (aarch64_<sur>shll2_n<mode>): Likewise.
2866
2867 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2868
2869         PR middle-end/71529
2870         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2871         DECL_CONTEXT for copied arguments.
2872
2873 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2874
2875         PR tree-optimization/71483
2876         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2877         for slp
2878
2879 2016-06-15  Martin Liska  <mliska@suse.cz>
2880
2881         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2882         instead of predict_edge w/o a probability.
2883
2884 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2885
2886         PR tree-optimization/71439
2887         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2888         live PHIs.
2889
2890 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2891
2892         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2893         register subregs in SET_SRC.
2894
2895 2016-06-15  Richard Biener  <rguenther@suse.de>
2896
2897         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2898         store restrictions.
2899
2900 2016-06-15  Richard Biener  <rguenther@suse.de>
2901
2902         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2903         not consider dependences between accesses that belong to the
2904         same group.
2905         (vect_analyze_data_ref_dependences): Do not analyze read-read
2906         or self-dependences.
2907
2908 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2909
2910         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2911         spellcheck.h.
2912         (find_closest_identifier): Reimplement in terms of
2913         best_match<tree,tree>.
2914         * spellcheck-tree.h: New file.
2915         * spellcheck.c (struct edit_distance_traits<const char *>): New
2916         struct.
2917         (find_closest_string): Reimplement in terms of
2918         best_match<const char *, const char *>.
2919         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2920         overload to spellcheck-tree.h.
2921         (find_closest_identifier): Likewise.
2922         (struct edit_distance_traits<T>): New template.
2923         (class best_match): New class.
2924
2925 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2926
2927         * selftest-run-tests.c (selftest::run_tests): Call
2928         selftest::spellcheck_tree_c_tests.
2929         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2930         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2931         (selftest::test_find_closest_identifier): New function.
2932         (selftest::spellcheck_tree_c_tests): New function.
2933         * spellcheck.c (selftest::test_find_closest_string): Verify that
2934         the order of the vec does not affect the results for this case.
2935         (selftest::test_data): New array.
2936         (selftest::test_metric_conditions): New function.
2937         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2938         Call selftest::test_metric_conditions.
2939
2940 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2941
2942         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2943         (BU_P9_MISC_1): Likewise.
2944         (BU_P9_64BIT_MISC_0): Likewise.
2945         (BU_P9_MISC_0): Likewise.
2946
2947 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2948
2949         * gcc-rich-location.c
2950         (gcc_rich_location::add_fixit_misspelled_id): New method.
2951         * gcc-rich-location.h
2952         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2953
2954 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2955
2956         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2957         FreeBSD 11 and above.
2958
2959 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2960
2961         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2962
2963 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2964
2965         * expmed.h: Close parenthesis in "at your option" in copyright
2966         boilerplate.
2967         * lower-subreg.h: Likewise.
2968
2969 2016-06-14  Richard Biener  <rguenther@suse.de>
2970
2971         PR middle-end/71526
2972         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2973         if available.
2974
2975 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2976
2977         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2978         New function.
2979         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2980         mask+shift version.
2981         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2982         New prototype.
2983         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2984         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2985
2986 2016-06-14  Richard Biener  <rguenther@suse.de>
2987
2988         PR tree-optimization/71522
2989         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2990         copying into float copying.
2991
2992 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2993
2994         PR tree-optimization/71520
2995         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2996         (replace_block_by): Move user labels from bb1 to bb2.
2997
2998 2016-06-14  Richard Biener  <rguenther@suse.de>
2999
3000         PR middle-end/71310
3001         PR bootstrap/71510
3002         * expr.h (get_bit_range): Declare.
3003         * expr.c (get_bit_range): Export.
3004         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3005         word_mode again to constrain the bitfield access.
3006
3007 2016-06-14  Richard Biener  <rguenther@suse.de>
3008
3009         PR tree-optimization/71521
3010         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3011         division int_const_binop against zero divisor.
3012
3013 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3014
3015         * config/i386/i386.md (signbittf2): New expander.
3016         * config/i386/sse.md (ptesttf2): New insn pattern.
3017
3018 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3019
3020         PR bootstrap/71481
3021         * input.c (selftest::test_reading_source_line): Avoid reading from
3022         __FILE__ by creating a tempfile with known content and reading
3023         from that instead.
3024
3025 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3026
3027         * pretty-print.c (assert_pp_format_colored): Skip the test if
3028         GCC_COLORS is set.
3029         (test_pp_format): Remove comment about GCC_COLORS.
3030
3031 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3032
3033         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3034         * pretty-print.c (assert_pp_format_va): Add location param and use
3035         it with ASSERT_STREQ_AT.
3036         (assert_pp_format): Add location param and pass it to
3037         assert_pp_format_va.
3038         (assert_pp_format_colored): Likewise.
3039         (ASSERT_PP_FORMAT_1): New.
3040         (ASSERT_PP_FORMAT_2): New.
3041         (ASSERT_PP_FORMAT_3): New.
3042         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3043         explicitly, or implicitly via the above macros.
3044         * selftest.c (selftest::pass): Use a selftest::location rather
3045         than file and line.
3046         (selftest::fail): Likewise.  Print the function name.
3047         (selftest::fail_formatted): Likewise.
3048         (selftest::assert_streq): Use a selftest::location rather than
3049         file and line.
3050         * selftest.h (selftest::location): New struct.
3051         (SELFTEST_LOCATION): New macro.
3052         (selftest::pass): Accept a const location & rather than file
3053         and line.
3054         (selftest::fail): Likewise.
3055         (selftest::fail_formatted): Likewise.
3056         (selftest::assert_streq): Likewise.
3057         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3058         (ASSERT_FALSE): Likewise.
3059         (ASSERT_EQ): Likewise.
3060         (ASSERT_NE): Likewise.
3061         (ASSERT_STREQ): Likewise.
3062         (ASSERT_PRED1): Likewise.
3063         (ASSERT_STREQ_AT): New macro.
3064
3065 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3066
3067         * selftest.c (selftest::fail_formatted): New function.
3068         (selftest::assert_streq): New function.
3069         * selftest.h (selftests::fail_formatted): New decl.
3070         (selftest::assert_streq): New decl.
3071         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3072
3073 2016-06-13  Jeff Law  <law@redhat.com>
3074
3075         PR tree-optimization/71403
3076         * tree-ssa-threadbackward.c
3077         (convert_and_register_jump_thread_path): No longer accept reference
3078         to path.  Do not pop items off the path anymore.
3079         (fsm_find_control_statement_thread_paths): Do not allow threading
3080         to a deeper loop nest.  Pop the last item off the path here rather
3081         than in convert_and_register_jump_thread_path.
3082
3083 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3084             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
3085
3086         [AArch64] Emit division using the Newton series
3087
3088         * config/aarch64/aarch64-protos.h
3089         (cpu_approx_modes): Add new member "division".
3090         (aarch64_emit_approx_div): Declare new function.
3091         * config/aarch64/aarch64.c
3092         (generic_approx_modes): New member "division".
3093         (exynosm1_approx_modes): Likewise.
3094         (xgene1_approx_modes): Likewise.
3095         (aarch64_emit_approx_div): Define new function.
3096         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3097         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3098         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3099         * doc/invoke.texi (-mlow-precision-div): Describe new option.
3100
3101 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3102             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3103
3104         [AArch64] Emit square root using the Newton series
3105
3106         * config/aarch64/aarch64-protos.h
3107         (aarch64_emit_approx_rsqrt): Replace with new function
3108         "aarch64_emit_approx_sqrt".
3109         (cpu_approx_modes): New member "sqrt".
3110         * config/aarch64/aarch64.c
3111         (generic_approx_modes): New member "sqrt".
3112         (exynosm1_approx_modes): Likewise.
3113         (xgene1_approx_modes): Likewise.
3114         (aarch64_emit_approx_rsqrt): Replace with new function
3115         "aarch64_emit_approx_sqrt".
3116         (aarch64_override_options_after_change_1): Handle new option.
3117         * config/aarch64/aarch64-simd.md
3118         (rsqrt<mode>2): Use new function instead.
3119         (sqrt<mode>2): New expansion and insn definitions.
3120         * config/aarch64/aarch64.md: Likewise.
3121         * config/aarch64/aarch64.opt
3122         (mlow-precision-sqrt): Add new option description.
3123         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3124
3125 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3126
3127         [AArch64] Add more choices for the reciprocal square root approximation
3128
3129         Allow a target to prefer such operation depending on the operation mode.
3130
3131         * config/aarch64/aarch64-protos.h
3132         (AARCH64_APPROX_MODE): New macro.
3133         (AARCH64_APPROX_{NONE,ALL}): Likewise.
3134         (cpu_approx_modes): New structure.
3135         (tune_params): New member "approx_modes".
3136         * config/aarch64/aarch64-tuning-flags.def
3137         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3138         * config/aarch64/aarch64.c
3139         (generic_approx_modes): New core "cpu_approx_modes" structure.
3140         (exynosm1_approx_modes): Likewise.
3141         (xgene1_approx_modes): Likewise.
3142         (generic_tunings): New member "approx_modes".
3143         (cortexa35_tunings): Likewise.
3144         (cortexa53_tunings): Likewise.
3145         (cortexa57_tunings): Likewise.
3146         (cortexa72_tunings): Likewise.
3147         (exynosm1_tunings): Likewise.
3148         (thunderx_tunings): Likewise.
3149         (xgene1_tunings): Likewise.
3150         (use_rsqrt_p): New argument for the mode and use new member from
3151         "tune_params".
3152         (aarch64_builtin_reciprocal): Devise mode from builtin.
3153         (aarch64_optab_supported_p): New argument for the mode.
3154         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3155
3156 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3157
3158         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3159         RS6000_BTM_MODULO flag into the set of flags that are considered
3160         to be part of the common configuration.
3161
3162 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3163
3164         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3165         difference unsigned.
3166         (vec_absdb): New macro for vector absolute difference unsigned
3167         byte.
3168         (vec_absdh): New macro for vector absolute difference unsigned
3169         half-word.
3170         (vec_absdw): New macro for vector absolute difference unsigned word.
3171         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3172         (vadu<mode>3): New insn.
3173         (*p9_vadu<mode>3): New insn.
3174         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3175         definition.
3176         (vaduh): New built-in definition.
3177         (vaduw): New built-in definition.
3178         (vadu): New overloaded built-in definition.
3179         (vadub): New overloaded built-in definition.
3180         (vaduh): New overloaded built-in definition.
3181         (vaduw): New overloaded built-in definition.
3182         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3183         overloaded vector absolute difference unsigned functions.
3184         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3185         the ISA 3.0 vector absolute difference unsigned built-in functions.
3186
3187 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3188
3189         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3190         update shared_lookup_references only once after changing operands.
3191
3192 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
3193
3194         PR middle-end/71373
3195         * tree-nested.c (convert_nonlocal_omp_clauses)
3196         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3197
3198         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3199         * tree.def (CASE_LABEL_EXPR): Likewise.
3200
3201 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3202
3203         PR bootstrap/71481
3204         * input.c (test_builtins): Fix an assertion.
3205
3206 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3207
3208         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3209         (paritysi2): Ditto.
3210         (isinfxf2): Ditto.
3211         (isinf<mode>2): Ditto.
3212
3213 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3214
3215         * ggc-tests.c (test_finalization): Only test need_finalization_p
3216         for GCC_VERSION >= 4003.
3217
3218 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3219
3220         * config/s390/vecintrin.h: Fix file description in comment.
3221
3222 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3223
3224         * config/s390/s390-builtin-types.def: Change builtin type naming
3225         scheme to match builtin-types.def.
3226
3227 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
3228
3229         * fold-const.c (optimize_minmax_comparison): Remove.
3230         (fold_comparison): Remove call to the above.
3231         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3232         New transformations.
3233
3234 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
3235
3236         PR tree-optimization/71416
3237         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3238         multiple entries
3239
3240 2016-06-13  Martin Liska  <mliska@suse.cz>
3241
3242         * predict.c (enum predictor_reason): Prefix enum with REASON_.
3243         (combine_predictions_for_insn): Likewise.
3244         (prune_predictions_for_bb): Likewise.
3245         (combine_predictions_for_bb): Likewise.
3246
3247 2016-06-13  Richard Biener  <rguenther@suse.de>
3248
3249         PR tree-optimization/71505
3250         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3251         assert match comment.
3252
3253 2016-06-13  Marek Polacek  <polacek@redhat.com>
3254
3255         PR middle-end/71476
3256         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3257         gimplify_switch_expr.
3258         (warn_switch_unreachable_r): New function.
3259
3260 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3261
3262         PR target/71379
3263         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3264         one.
3265
3266 2016-06-13  Richard Biener  <rguenther@suse.de>
3267
3268         PR middle-end/64516
3269         * fold-const.c (fold_unary_loc): Preserve alignment when
3270         folding a VIEW_CONVERT_EXPR into a MEM_REF.
3271
3272 2016-06-13  Martin Liska  <mliska@suse.cz>
3273
3274         PR sanitizer/71458
3275         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3276         w/ -fsanitize=bounds.
3277
3278 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3279
3280         * config/i386/i386.c (ix86_init_builtins): Calculate
3281         FLOAT128_FTYPE_CONST_STRING function type only once.
3282         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3283         built-in functions are available for x86-32 and x86-64 targets.
3284
3285 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3286
3287         PR target/71241
3288         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3289         New primitive type.
3290         (FLOAT128_FTYPE_CONST_STRING): New function type.
3291         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3292         [IX86_BUILTIN_NANSQ]: Ditto.
3293         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3294         (ix86_init_builtin_types): Declare const_string_type_node.
3295         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
3296         builtin functions.
3297         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3298         * doc/extend.texi (x86 Built-in Functions): Document
3299         __builtin_nanq and __builtin_nansq.
3300
3301 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
3302
3303         PR target/71061
3304         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
3305         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
3306         length for pop patterns.
3307         (arm_attr_length_push_multi): Update comments.
3308         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
3309         attribute.
3310         (*pop_multiple_with_writeback_and_return): Likewise.
3311         (*pop_multiple_with_return): Likewise.
3312
3313 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
3314
3315         PR middle-end/71310
3316         * fold-const.c (optimize_bit_field_compare): Don't try to use
3317         word_mode unconditionally for reading the bit field, look at
3318         DECL_BIT_FIELD_REPRESENTATIVE instead.
3319
3320 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
3321
3322         PR middle-end/71478
3323         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
3324         vector integer type.
3325
3326 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3327
3328         PR middle-end/71494
3329         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3330         without LABEL_DECL, set *handled_ops_p to false instead of true.
3331
3332 2016-06-10  Martin Sebor  <msebor@redhat.com>
3333
3334         PR c/71392
3335         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
3336         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
3337         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
3338         them.
3339         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
3340         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
3341         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
3342         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
3343         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
3344         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
3345         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
3346         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
3347
3348 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3349
3350         * config/arm/arm.h (pool_vector_label,
3351         return_used_this_function): Remove.
3352
3353 2016-06-10  Jeff Law  <law@redhat.com>
3354
3355         PR tree-optimization/71335
3356         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
3357         zero length paths here.
3358         (convert_and_register_jump_thread_path): Remove hacks related to
3359         duplicated blocks in the jump thread path.
3360         (fsm_find_control_statement_thread_paths): Avoid putting the same
3361         block on the thread path twice, but ensure the thread path is
3362         unchanged from the caller's point of view.
3363
3364 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3365
3366         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
3367         * predict.def (PRED_LOOP_BRANCH): Remove.
3368
3369 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
3370
3371         * Makefile.in (OBJS): Add ggc-tests.o.
3372         (GTFILES): Add ggc-tests.c.
3373         * ggc-tests.c: New file.
3374         * selftest-run-tests.c (selftest::run_tests): Call
3375         selftest::ggc_tests_c_tests.
3376         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
3377
3378 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
3379
3380         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
3381
3382 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3383
3384         PR sanitizer/71480
3385         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3386         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3387
3388 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3389
3390         * profile.c: Include cfgloop.h.
3391         (branch_prob): Compute estimated number of iterations.
3392         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
3393         recompute estimate number of iterations from profile.
3394
3395 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3396
3397         PR inline-asm/68843
3398         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
3399         must be grouped on top of stack.  Don't force early clobber
3400         on ordinary reg outputs.
3401
3402 2016-06-10  Richard Biener  <rguenther@suse.de>
3403
3404         * targhooks.c (default_builtin_vectorization_cost): Adjust
3405         vec_construct cost.
3406
3407 2016-06-10  Richard Biener  <rguenther@suse.de>
3408
3409         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
3410         to fold the RHS to a constant if possible.
3411
3412 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3413
3414         PR middle-end/71373
3415         * tree-nested.c (convert_nonlocal_omp_clauses)
3416         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3417         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3418         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3419
3420         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3421         OMP_CLAUSE_TILE.
3422         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3423
3424         * omp-low.c (scan_sharing_clauses): Don't expect
3425         OMP_CLAUSE__CACHE_.
3426
3427 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
3428
3429         PR tree-optimization/71407
3430         PR tree-optimization/71416
3431         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
3432         BIT_FIELD_REF type.
3433
3434 2016-06-10  Richard Biener  <rguenther@suse.de>
3435
3436         PR middle-end/71477
3437         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
3438
3439 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3440
3441         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3442
3443 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
3444             Jiong Wang  <jiong.wang@arm.com>
3445
3446         PR rtl-optimization/70751
3447         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
3448         spilled into memory.
3449
3450 2016-06-09  Jonathan Yong  <10walls@gmail.com>
3451
3452         Revert:
3453         2015-09-21  Jonathan Yong  <10walls@gmail.com>
3454
3455         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3456         sysroot/usr/lib/32api for additional win32 libraries,
3457         fixes failing Cygwin bootstrapping.
3458
3459 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
3460
3461         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
3462         Delete.
3463
3464 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
3465
3466         PR bootstrap/71471
3467         * pretty-print.c (pp_indent): Specify that %p is printed in a
3468         host-dependent manner.
3469         (test_pp_format): Remove the test for %p.
3470
3471 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
3472
3473         * config/mips/mips.c (mips_output_jump): Fix formatting.
3474
3475 2016-06-09  Richard Biener  <rguenther@suse.de>
3476
3477         PR tree-optimization/71462
3478         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
3479         removed blocks.
3480
3481 2016-06-09  Martin Liska  <mliska@suse.cz>
3482
3483         * predict.c (dump_prediction): Add new argument.
3484         (enum predictor_reason): New enum.
3485         (struct predictor_hash): New struct.
3486         (predictor_hash::hash): New function.
3487         (predictor_hash::equal): Likewise.
3488         (not_removed_prediction_p): New function.
3489         (prune_predictions_for_bb): Likewise.
3490         (combine_predictions_for_bb): Prune predictions.
3491
3492 2016-06-09  Martin Liska  <mliska@suse.cz>
3493
3494         * predict.c (filter_predictions): New function.
3495         (remove_predictions_associated_with_edge): Use the filter
3496         function.
3497         (equal_edge_p): New function.
3498
3499 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
3500
3501         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
3502         Correct usage of @samp vs @option, add @samp where appropriate.
3503         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
3504         Add armv6s-m and document it, as it is no official ARM name.
3505
3506 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3507
3508         * ifcvt.c (struct noce_if_info): Add transform_name field.
3509         (noce_try_move): Set if_info->transform_name to the function name.
3510         (noce_try_ifelse_collapse): Likewise.
3511         (noce_try_store_flag): Likewise.
3512         (noce_try_inverse_constants): Likewise.
3513         (noce_try_store_flag_constants): Likewise.
3514         (noce_try_addcc): Likewise.
3515         (noce_try_store_flag_mask): Likewise.
3516         (noce_try_cmove): Likewise.
3517         (noce_try_cmove_arith): Likewise.
3518         (noce_try_minmax): Likewise.
3519         (noce_try_abs): Likewise.
3520         (noce_try_sign_mask): Likewise.
3521         (noce_try_bitop): Likewise.
3522         (noce_convert_multiple_sets): Likewise.
3523         (noce_process_if_block): Print if_info->transform_name to
3524         dump_file if transformation succeeded.
3525
3526 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3527
3528         * config/arm/cortex-a57.md (cortex_a57_alu):
3529         Handle csel type.
3530
3531 2016-06-08  Martin Sebor  <msebor@redhat.com>
3532             Jakub Jelinek  <jakub@redhat.com>
3533
3534         PR c++/70507
3535         PR c/68120
3536         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
3537         BUILT_IN_MUL_OVERFLOW_P): New builtins.
3538         * builtins.c: Include gimple-fold.h.
3539         (fold_builtin_arith_overflow): Handle
3540         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3541         (fold_builtin_3): Likewise.
3542         * doc/extend.texi (Integer Overflow Builtins): Document
3543         __builtin_{add,sub,mul}_overflow_p.
3544
3545 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3546
3547         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3548         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3549
3550 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
3551
3552         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
3553         Rewrite, looking one level down for records and arrays.
3554
3555 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
3556
3557         * pretty-print.c: Include "selftest.h".
3558         (pp_format): Fix comment.
3559         (identifier_to_locale): Likewise.
3560         (selftest::test_basic_printing): New function.
3561         (selftest::assert_pp_format): New function.
3562         (selftest::test_pp_format): New function.
3563         (selftest::pretty_print_c_tests): New function.
3564         * selftest-run-tests.c (selftest::run_tests): Call
3565         selftest::pretty_print_c_tests.
3566         * selftest.h (pretty_print_c_tests): New declaration.
3567
3568 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3569
3570         * invoke.texi (max-loop-headers-insns): Document.
3571         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
3572         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
3573         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
3574
3575 2016-06-08  Richard Biener  <rguenther@suse.de>
3576
3577         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
3578         on strided SLP loads and fall back to scalar loads in case
3579         we can't chunk them.
3580
3581 2016-06-08  Richard Biener  <rguenther@suse.de>
3582
3583         PR tree-optimization/71452
3584         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
3585         type used for the SSA rewrite has enough precision to cover
3586         the dynamic type of the location.
3587
3588 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3589             Richard Biener  <rguenther@suse.de>
3590
3591         PR c++/71448
3592         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3593         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3594         in one further place.
3595
3596 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
3597
3598         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
3599         to one word if the field is known to overlap other words.
3600         (extract_bit_field_1): Likewise.
3601         (store_split_bit_field): Remove compensating code.
3602         (extract_split_bit_field): Likewise.
3603
3604 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
3605
3606         PR debug/71432
3607         PR ada/71413
3608         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
3609
3610 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3611
3612         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
3613         VDQF.
3614         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
3615         (arch64_addpv4sf): Delete.
3616         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
3617         "gen_aarch64_addpv4sf".
3618         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
3619         builtin.
3620         (vpadds_f32): Likewise.
3621         (vpaddq_f32): Likewise.
3622         (vpaddq_f64): Likewise.
3623
3624 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3625
3626         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
3627         VALLF.
3628         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
3629         to VALLF.  Rename to "fabd<mode>3".
3630         "*fabd_scalar<mode>3): Delete.
3631         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
3632         Use builtin.
3633         (vabdd_f64): Likewise.
3634         (vabd_f32): Likewise.
3635         (vabd_f64): Likewise.
3636         (vabdq_f32): Likewise.
3637         (vabdq_f64): Likewise.
3638
3639 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3640
3641         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
3642         VALLF.
3643         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
3644         "aarch64_rsqrts<mode>".
3645         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
3646         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
3647         builtin.
3648         (vrsqrtsd_f64): Likewise.
3649         (vrsqrts_f32): Likewise.
3650         (vrsqrts_f64): Likewise.
3651         (vrsqrtsq_f32): Likewise.
3652         (vrsqrtsq_f64): Likewise.
3653
3654 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3655
3656         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
3657         VALLF.
3658         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
3659         "aarch64_rsqrte<mode>".
3660         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
3661         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
3662         builtin.
3663         (vrsqrted_f64): Likewise.
3664         (vrsqrte_f32): Likewise.
3665         (vrsqrte_f64): Likewise.
3666         (vrsqrteq_f32): Likewise.
3667         (vrsqrteq_f64): Likewise.
3668
3669 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3670
3671         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
3672         (ucvtf): Likewise.
3673         (fcvtzs): Likewise.
3674         (fcvtzu): Likewise.
3675         * config/aarch64/aarch64-simd.md
3676         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
3677         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
3678         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
3679         Use builtin.
3680         (vcvt_n_f32_u32): Likewise.
3681         (vcvt_n_s32_f32): Likewise.
3682         (vcvt_n_u32_f32): Likewise.
3683         (vcvtq_n_f32_s32): Likewise.
3684         (vcvtq_n_f32_u32): Likewise.
3685         (vcvtq_n_f64_s64): Likewise.
3686         (vcvtq_n_f64_u64): Likewise.
3687         (vcvtq_n_s32_f32): Likewise.
3688         (vcvtq_n_s64_f64): Likewise.
3689         (vcvtq_n_u32_f32): Likewise.
3690         (vcvtq_n_u64_f64): Likewise.
3691         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
3692         (VSDQ_SDI): Likewise.
3693         (fcvt_target): Support V4DI, V4SI and V2SI.
3694         (FCVT_TARGET): Likewise.
3695
3696 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
3697
3698         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
3699         (TYPES_BINOP_SUS): Likewise.
3700         (aarch64_simd_builtin_data): Update include file name.
3701         (aarch64_builtins): Likewise.
3702         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
3703         for conversion between scalar float-point and fixed-point.
3704         (ucvtf): Likewise.
3705         (fcvtzs): Likewise.
3706         (fcvtzu): Likewise.
3707         * config/aarch64/aarch64.md
3708         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3709         pattern for conversion between scalar float to fixed-pointer.
3710         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3711         (UNSPEC_FCVTZS): New UNSPEC enumeration.
3712         (UNSPEC_FCVTZU): Likewise.
3713         (UNSPEC_SCVTF): Likewise.
3714         (UNSPEC_UCVTF): Likewise.
3715         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3716         Use builtin.
3717         (vcvtd_n_f64_u64): Likewise.
3718         (vcvtd_n_s64_f64): Likewise.
3719         (vcvtd_n_u64_f64): Likewise.
3720         (vcvtd_n_f32_s32): Likewise.
3721         (vcvts_n_f32_u32): Likewise.
3722         (vcvtd_n_s32_f32): Likewise.
3723         (vcvts_n_u32_f32): Likewise.
3724         * config/aarch64/iterators.md (fcvt_target): Support integer to float
3725         mapping.
3726         (FCVT_TARGET): Likewise.
3727         (FCVT_FIXED2F): New iterator.
3728         (FCVT_F2FIXED): Likewise.
3729         (fcvt_fixed_insn): New define_int_attr.
3730
3731 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3732
3733         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3734         some statements was removed.
3735
3736 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
3737
3738         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3739         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3740         (vect_can_advance_ivs_p): likewise.
3741         (vect_update_ivs_after_vectorizer): likewise.
3742         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3743         (vect_analyze_scalar_cycles_1): likewise.
3744         (vect_analyze_loop_operations): likewise.
3745         (report_vect_op): likewise.
3746         (vect_is_slp_reduction): likewise.
3747         (vect_is_simple_reduction): likewise.
3748         (get_initial_def_for_induction): likewise.
3749         (vect_transform_loop): likewise.
3750         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3751         (vect_recog_sad_pattern): likewise.
3752         (vect_recog_widen_sum_pattern): likewise.
3753         (vect_recog_widening_pattern): likewise.
3754         (vect_recog_divmod_pattern): likewise.
3755         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3756         (vect_analyze_slp_instance): likewise.
3757         (vect_transform_slp_perm_load): likewise.
3758         (vect_schedule_slp_instance): likewise.
3759
3760 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3761
3762         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3763         (return_prediction): PRED_CONST_RETURN predict return as not taken.
3764         * predict.def (PRED_CONTINUE): Change hitrate 50->67
3765         (PRED_LOOP_BRANCH): Document predictor as broken.
3766         (PRED_LOOP_EXIT): Change hitrate 91->92.
3767         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3768         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3769         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3770         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3771         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3772         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3773         (PRED_CALL): Chane hitrate 71->67.
3774         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3775         (PRED_GOTO): Document as unused right now.
3776         (PRED_CONST_RETURN): Change hitrate 67->69
3777         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3778         (PRED_NULL_RETURN): Change hitrate 91->90.
3779         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3780         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3781         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3782
3783 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
3784
3785         * config/rs6000/altivec.h: Add __builtin_vec_mul.
3786         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3787         special case Altivec builtin.
3788         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3789         VSX_BUILTIN_VEC_MUL (replaced with special case code).
3790         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3791         code for ALTIVEC_BUILTIN_VEC_MUL.
3792         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3793         for __builtin_vec_mul.
3794
3795 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3796
3797         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3798         -mno-htm.
3799
3800 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
3801
3802         * spellcheck.c (selftest::test_find_closest_string): New function.
3803         (spellcheck_c_tests): Call the above.
3804
3805 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3806
3807         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3808
3809 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
3810
3811         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3812         Yv=Yv,C alternatives.
3813
3814 2016-06-07  Richard Biener  <rguenther@suse.de>
3815
3816         PR c/61564
3817         * common.opt (ffast-math): Make Optimization.
3818
3819 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
3820             Prachi Godbole  <prachi.godbole@imgtec.com>
3821
3822         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
3823         `fabs' and `fneg' type attributes.
3824         (p5600_fpu_fabs): Add `fmove' to the comment.
3825
3826 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
3827
3828         * gimple.c: Include builtins.h
3829         (gimple_inexpensive_call_p): New function.
3830         * gimple.h (gimple_inexpensive_call_p): Declare.
3831         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
3832         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
3833         fix formatting.
3834
3835 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
3836
3837         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
3838         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
3839         warning_at_rich_loc, warning_n, pedwarn, permerror,
3840         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
3841         sorry, fatal_error, internal_error, internal_error_no_backtrace):
3842         Use the above.
3843
3844 2016-06-07  Richard Biener  <rguenther@suse.de>
3845
3846         PR tree-optimization/71428
3847         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
3848         BIT_FIELD_REF op vs. load.
3849
3850 2016-06-07  Richard Biener  <rguenther@suse.de>
3851
3852         PR middle-end/71423
3853         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
3854         for signed ops.
3855
3856 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3857
3858         * config/pa/pa.md (call): Generate indirect long calls to non-local
3859         functions on TARGET_64BIT.
3860         (call_value): Likewise.
3861
3862 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3863
3864         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3865         pattern and subsequent splitters.
3866         (call_val_reg_64bit_post_reload): Likewise.
3867
3868 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3869
3870         PR middle-end/71408
3871         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3872         propagate_op_to_single_use.
3873
3874 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3875
3876         PR middle-end/71281
3877         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3878
3879 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3880
3881         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3882         (enum x86_dirflag_state): New enum.
3883         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3884         (machine_function): Remove needs_cld.
3885         (ix86_current_function_needs_cld): Remove.
3886         * config/i386/i386.c (ix86_set_func_type): Set
3887         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3888         (ix86_expand_prologue): Do not emit CLD here.
3889         (ix86_dirflag_mode_needed): New function.
3890         (ix86_dirflag_mode_entry): Ditto.
3891         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3892         (ix86_mode_after): Ditto.
3893         (ix86_mode_entry): Ditto.
3894         (ix86_mode_exit): Ditto.
3895         (ix86_emit_mode_set): Ditto.
3896         * config/i386/i386.md (strmov_singleop): Set
3897         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3898         Do not set ix86_current_function_needs_cld.
3899         (rep_mov): Ditto.
3900         (strset_singleop): Ditto.
3901         (rep_stos): Ditto.
3902         (cmpstrnqi_nz_1): Ditto.
3903         (cmpstrnqi_1): Ditto.
3904         (strlenqi_1): Ditto.
3905
3906 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3907
3908         PR tree-optimization/71259
3909         * tree-vect-slp.c (vect_get_constant_vectors): For
3910         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3911         one for constant op, and use COND_EXPR for non-constant.
3912
3913 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3914
3915         * Makefile.in (OBJS): Add function-tests.o,
3916         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3917         selftest-run-tests.o.
3918         (OBJS-libcommon): Add selftest.o.
3919         (OBJS-libcommon-target): Add selftest.o.
3920         (all.internal): Add "selftest".
3921         (all.cross): Likewise.
3922         (selftest): New phony target.
3923         (s-selftest): New target.
3924         (selftest-gdb): New phony target.
3925         (COLLECT2_OBJS): Add selftest.o.
3926         * bitmap.c: Include "selftest.h".
3927         (selftest::test_gc_alloc): New function.
3928         (selftest::test_set_range): New function.
3929         (selftest::test_clear_bit_in_middle): New function.
3930         (selftest::test_copying): New function.
3931         (selftest::test_bitmap_single_bit_set_p): New function.
3932         (selftest::bitmap_c_tests): New function.
3933         * common.opt (fself-test): New.
3934         * diagnostic-show-locus.c: Include "selftest.h".
3935         (make_range): New function.
3936         (test_range_contains_point_for_single_point): New function.
3937         (test_range_contains_point_for_single_line): New function.
3938         (test_range_contains_point_for_multiple_lines): New function.
3939         (assert_eq): New function.
3940         (test_get_line_width_without_trailing_whitespace): New function.
3941         (selftest::diagnostic_show_locus_c_tests): New function.
3942         * et-forest.c: Include "selftest.h".
3943         (selftest::test_single_node): New function.
3944         (selftest::test_simple_tree): New function.
3945         (selftest::test_disconnected_nodes): New function.
3946         (selftest::et_forest_c_tests): New function.
3947         * fold-const.c: Include "selftest.h".
3948         (selftest::assert_binop_folds_to_const): New function.
3949         (selftest::assert_binop_folds_to_nonlvalue): New function.
3950         (selftest::test_arithmetic_folding): New function.
3951         (selftest::fold_const_c_tests): New function.
3952         * function-tests.c: New file.
3953         * gimple.c: Include "selftest.h".
3954         Include "gimple-pretty-print.h".
3955         (selftest::verify_gimple_pp): New function.
3956         (selftest::test_assign_single): New function.
3957         (selftest::test_assign_binop): New function.
3958         (selftest::test_nop_stmt): New function.
3959         (selftest::test_return_stmt): New function.
3960         (selftest::test_return_without_value): New function.
3961         (selftest::gimple_c_tests): New function.
3962         * hash-map-tests.c: New file.
3963         * hash-set-tests.c: New file.
3964         * input.c: Include "selftest.h".
3965         (selftest::assert_loceq): New function.
3966         (selftest::test_accessing_ordinary_linemaps): New function.
3967         (selftest::test_unknown_location): New function.
3968         (selftest::test_builtins): New function.
3969         (selftest::test_reading_source_line): New function.
3970         (selftest::input_c_tests): New function.
3971         * rtl-tests.c: New file.
3972         * selftest-run-tests.c: New file.
3973         * selftest.c: New file.
3974         * selftest.h: New file.
3975         * spellcheck.c: Include "selftest.h".
3976         (selftest::levenshtein_distance_unit_test_oneway): New function,
3977         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3978         (selftest::levenshtein_distance_unit_test): Likewise.
3979         (selftest::spellcheck_c_tests): Likewise.
3980         * toplev.c: Include selftest.h.
3981         (toplev::run_self_tests): New.
3982         (toplev::main): Handle -fself-test.
3983         * toplev.h (toplev::run_self_tests): New.
3984         * tree.c: Include "selftest.h".
3985         (selftest::test_integer_constants): New function.
3986         (selftest::test_identifiers): New function.
3987         (selftest::test_labels): New function.
3988         (selftest::tree_c_tests): New function.
3989         * tree-cfg.c: Include "selftest.h".
3990         (selftest::push_fndecl): New function.
3991         (selftest::test_linear_chain): New function.
3992         (selftest::test_diamond): New function.
3993         (selftest::test_fully_connected): New function.
3994         (selftest::tree_cfg_c_tests): New function.
3995         * vec.c: Include "selftest.h".
3996         (selftest::safe_push_range): New function.
3997         (selftest::test_quick_push): New function.
3998         (selftest::test_safe_push): New function.
3999         (selftest::test_truncate): New function.
4000         (selftest::test_safe_grow_cleared): New function.
4001         (selftest::test_pop): New function.
4002         (selftest::test_safe_insert): New function.
4003         (selftest::test_ordered_remove): New function.
4004         (selftest::test_unordered_remove): New function.
4005         (selftest::test_block_remove): New function.
4006         (selftest::reverse_cmp): New function.
4007         (selftest::test_qsort): New function.
4008         (selftest::vec_c_tests): New function.c.
4009         * wide-int.cc: Include selftest.h and wide-int-print.h.
4010         (selftest::from_int <wide_int>): New function.
4011         (selftest::from_int <offset_int>): New function.
4012         (selftest::from_int <widest_int>): New function.
4013         (selftest::assert_deceq): New function.
4014         (selftest::assert_hexeq): New function.
4015         (selftest::test_printing <VALUE_TYPE>): New function template.
4016         (selftest::test_ops <VALUE_TYPE>): New function template.
4017         (selftest::test_comparisons <VALUE_TYPE>): New function template.
4018         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4019         template.
4020         (selftest::wide_int_cc_tests): New function.
4021
4022 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4023
4024         PR middle-end/37780
4025         * ifcvt.c (noce_try_ifelse_collapse): New function.
4026         Declare prototype.
4027         (noce_process_if_block): Call noce_try_ifelse_collapse.
4028         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4029         (simplify_ternary_operation): Use the above to simplify
4030         conditional CLZ/CTZ expressions.
4031
4032 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4033
4034         PR middle-end/37780
4035         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4036         define_insn_and_split.
4037
4038 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4039
4040         PR middle-end/37780
4041         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4042
4043 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4044
4045         PR c/24414
4046         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4047         Implicitly clobber memory for basic asm with non-empty assembler
4048         string.  Use targetm.md_asm_adjust also here.
4049         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4050         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4051         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4052         non-empty assembler string.
4053         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4054         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4055         (decode_asm_operands): Handle basic asm in PARALLEL block.
4056         (extract_insn): Handle basic asm in PARALLEL block.
4057         * doc/extend.texi: Mention new behavior of basic asm.
4058         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4059         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4060         branch_needs_nop_p): Use asm_noperands.
4061
4062 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
4063
4064         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4065         Include the M7 SPARC DFA scheduler.
4066         New attribute v3pipe.
4067         Annotate insns with v3pipe where appropriate.
4068         Define cpu_feature vis4.
4069         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4070         Add (V8QI "8") to vbits.
4071         Add insns {add,sub}v8qi3
4072         Add insns ss{add,sub}v8qi3
4073         Add insns us{add,sub}{v8qi,v4hi}3
4074         Add insns {min,max}{v8qi,v4hi,v2si}3
4075         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4076         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4077         * config/sparc/niagara4.md: Add a comment explaining the
4078         discrepancy between the documented latenty numbers and the
4079         implemented ones.
4080         * config/sparc/niagara7.md: New file.
4081         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4082         supports SPARC5 and VIS 4.0 instructions.
4083         * configure: Regenerate.
4084         * config.in: Likewise.
4085         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4086         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4087         TARGET_CPU_niagara7.
4088         (ASM_CPU64_DEFAULT_SPEC): Likewise.
4089         (CPP_CPU_SPEC): Handle niagara7.
4090         (ASM_CPU_SPEC): Likewise.
4091         * config/sparc/sparc-opts.h (processor_type): Add
4092         PROCESSOR_NIAGARA7.
4093         (mvis4): New option.
4094         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4095         (AS_NIAGARA7_FLAG): Define.
4096         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4097         (CPP_CPU64_DEFAULT_SPEC): Likewise.
4098         (CPP_CPU_SPEC): Handle niagara7.
4099         (ASM_CPU_SPEC): Likewise.
4100         * config/sparc/sparc.c (niagara7_costs): Define.
4101         (sparc_option_override): Handle niagara7 and adjust cache-related
4102         parameters with better values for niagara cpus.  Also support VIS4.
4103         (sparc32_initialize_trampoline): Likewise.
4104         (sparc_use_sched_lookahead): Likewise.
4105         (sparc_issue_rate): Likewise.
4106         (sparc_register_move_cost): Likewise.
4107         (dump_target_flag_bits): Support VIS4.
4108         (sparc_vis_init_builtins): Likewise.
4109         (sparc_builtins): Likewise.
4110         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4111         VIS4 4.0.
4112         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4113         UltraSparc M7.
4114         * config/sparc/sparc.opt (sparc_processor_type): New value
4115         niagara7.
4116         * config/sparc/visintrin.h (__attribute__): Prototypes for the
4117         VIS4 builtins.
4118         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4119         -mvis4.
4120         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4121         VIS4 builtins.
4122
4123 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
4124
4125         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4126
4127 2016-06-06  Richard Biener  <rguenther@suse.de>
4128
4129         PR tree-optimization/71398
4130         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4131         remove edges.
4132
4133 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
4134
4135         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4136         ft32_expand_prolog, ft32_expand_epilogue):
4137         Handle pretend_args.
4138         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4139         * config/ft32/ft32.md: Add pretend_returner.
4140
4141 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
4142
4143         PR target/71389
4144         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4145         Copy op1 RTX to avoid invalid sharing.
4146         (ix86_expand_vector_move_misalign): Ditto.
4147
4148 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
4149
4150         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4151         ATTRIBUTE_UNUSED.
4152
4153 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4154
4155         * predict.c (predicted_by_loop_heuristics_p): New function.
4156         (predict_iv_comparison): Use it.
4157         (predict_loops): Walk from innermost loops; do not predict edges
4158         leaving multiple loops multiple times; implement
4159         PRED_LOOP_ITERATIONS_MAX heuristics.
4160         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4161
4162 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4163
4164         * cfg.c (check_bb_profile): Do not report mismatched profiles when
4165         only edges out of BB are EH edges.
4166
4167 2016-06-04  Martin Sebor  <msebor@redhat.com>
4168             Marcin Baczyński  <marbacz@gmail.com>
4169
4170         PR c/48116
4171         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4172         a void expression in a void function.
4173
4174 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4175
4176         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4177         aux; dump reasons of decisions.
4178         (should_duplicate_loop_header_p): Likewise.
4179         (do_while_loop_p): Likewise.
4180         (ch_base::copy_headers): Dump asi num insns duplicated.
4181
4182 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
4183
4184         PR tree-optimization/71405
4185         * tree-ssa.c (execute_update_addresses_taken): For clobber with
4186         incompatible type, build a new clobber with the right type instead
4187         of building a VIEW_CONVERT_EXPR around it.
4188
4189 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4190
4191         PR tree-optimization/52171
4192         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4193         by_pieces_ninsns instead of move_by_pieces_ninsns.
4194
4195 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4196
4197         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4198         for reg+reg addressing mode.
4199
4200 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4201
4202         * rs6000-c.c (c/c-tree.h): Add #include.
4203         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4204         in C++ when found in the base position of vec_ld or vec_st.
4205
4206 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4207
4208         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4209         use of profile unless profile status is PROFILE_READ.
4210         * profile.c (compute_branch_probabilities): Set profile status
4211         only after reporting predictor hitrates.
4212
4213 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4214
4215         PR target/71276
4216         PR target/71277
4217         * common.opt (ffp-int-builtin-inexact): New option.
4218         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4219         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4220         (ceil@var{m}2): Document dependence on this option.
4221         * ipa-inline-transform.c (inline_call): Handle
4222         flag_fp_int_builtin_inexact.
4223         * ipa-inline.c (can_inline_edge_p): Likewise.
4224         * config/i386/i386.md (rintxf2): Do not test
4225         flag_unsafe_math_optimizations.
4226         (rint<mode>2_frndint): New define_insn.
4227         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4228         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
4229         for 387 instead of extending and truncating.
4230         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4231         !flag_trapping_math instead of flag_unsafe_math_optimizations.
4232         Change to frndint<mode>2_<rounding>.
4233         (frndintxf2_<rounding>_i387): Likewise.  Change to
4234         frndint<mode>2_<rounding>_i387.
4235         (<rounding_insn>xf2): Likewise.
4236         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4237         !flag_trapping_math instead of flag_unsafe_math_optimizations for
4238         x87.  Test TARGET_ROUND || !flag_trapping_math ||
4239         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4240         SSE.  Use ROUND_NO_EXC in constant operand of
4241         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
4242         for 387 instead of extending and truncating.
4243
4244 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4245             Julia Koval  <julia.koval@intel.com>
4246
4247         PR target/66960
4248         PR target/67630
4249         PR target/67634
4250         PR target/67841
4251         PR target/68037
4252         PR target/68618
4253         PR target/68661
4254         PR target/69575
4255         PR target/69596
4256         PR target/69734
4257         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4258         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4259         all registers, except for function return registers if there are
4260         no caller-saved registers.
4261         (ix86_set_func_type): New function.
4262         (ix86_set_current_function): Call ix86_set_func_type to set
4263         no_caller_saved_registers and func_type.  Call reinit_regs if
4264         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
4265         nor x87 instructions in interrupt handler nor function with
4266         no_caller_saved_registers attribute.
4267         (ix86_function_ok_for_sibcall): Return false if there are no
4268         caller-saved registers.
4269         (type_natural_mode): Don't warn ABI change for MMX in interrupt
4270         handler.
4271         (ix86_function_arg_advance): Skip for callee in interrupt handler.
4272         (ix86_function_arg): Return special arguments in interrupt handler.
4273         (ix86_promote_function_mode): Promote pointer to word_mode only
4274         for normal functions.
4275         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4276         interrupt handler.
4277         (ix86_epilogue_uses): New function.
4278         (ix86_hard_regno_scratch_ok): Likewise.
4279         (ix86_save_reg): Preserve all registers in interrupt handler
4280         after reload.  Preserve all registers, except for function return
4281         registers, if there are no caller-saved registers after reload.
4282         (find_drap_reg): Always use callee-saved register if there are
4283         no caller-saved registers.
4284         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4285         for interrupt handler.
4286         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4287         Emit cld instruction if stringops are used in interrupt handler
4288         or interrupt handler isn't a leaf function.
4289         (ix86_expand_epilogue): Generate interrupt return for interrupt
4290         handler and pop the 'ERROR_CODE' off the stack before interrupt
4291         return in exception handler.
4292         (ix86_expand_call): Disallow calling interrupt handler directly.
4293         If there are no caller-saved registers, mark all registers that
4294         are clobbered by the call which returns as clobbered.
4295         (ix86_handle_no_caller_saved_registers_attribute): New function.
4296         (ix86_handle_interrupt_attribute): Likewise.
4297         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
4298         attributes.
4299         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
4300         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
4301         accumulation in interrupt function if stack may be realigned to
4302         avoid DRAP.
4303         (EPILOGUE_USES): New.
4304         (function_type): New enum.
4305         (machine_function): Add func_type and no_caller_saved_registers.
4306         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
4307         (interrupt_return): New pattern.
4308         * doc/extend.texi: Document x86 interrupt and
4309         no_caller_saved_registers attributes.
4310
4311 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
4312
4313         PR tree-optimization/52171
4314         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
4315         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
4316         Look for constant strings.  Move some code to emit_block_cmp_hints
4317         and use it.
4318         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
4319         * defaults.h (COMPARE_MAX_PIECES): New macro.
4320         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
4321         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
4322         (clear_by_pieces_1): Don't declare.  Move definition before use.
4323         (can_do_by_pieces): New static function.
4324         (can_move_by_pieces): Use it.  Return bool.
4325         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
4326         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
4327         (class pieces_addr); New.
4328         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
4329         pieces_addr::adjust, pieces_addr::increment_address,
4330         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
4331         functions for it.
4332         (class op_by_pieces_d): New.
4333         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
4334         functions for it.
4335         (class move_by_pieces_d, class compare_by_pieces_d,
4336         class store_by_pieces_d): New subclasses of op_by_pieces_d.
4337         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
4338         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
4339         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
4340         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
4341         compare_by_pieces_d::finish_mode): New member functions.
4342         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
4343         functions.
4344         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
4345         (emit_block_cmp_hints): New function.
4346         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
4347         use the newly defined classes.
4348         * expr.h (by_pieces_constfn): New typedef.
4349         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
4350         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
4351         (move_by_pieces_ninsns): Don't declare.
4352         (can_move_by_pieces): Change return value to bool.
4353         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
4354         (compare_by_pieces_branch_ratio): New hook.
4355         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
4356         (by_pieces_ninsns): Declare.
4357         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
4358         COMPARE_BY_PIECES.
4359         (default_compare_by_pieces_branch_ratio): New function.
4360         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
4361         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
4362         * doc/tm.texi: Regenerate.
4363         * tree-ssa-strlen.c: Include "builtins.h".
4364         (handle_builtin_memcmp): New static function.
4365         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
4366         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
4367
4368 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4369
4370         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
4371         relevant stmts which are simple and invariant.
4372         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
4373         instead of simple and invariant
4374
4375 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4376
4377         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
4378         (vectorizable_reduction): Check for new relevant state.
4379         (vectorizable_live_operation): vectorize live stmts using
4380         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
4381         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
4382         (vect_stmt_relevant_p): Check for stmts which are only used live.
4383         (process_use): Use of a stmt does not inherit it's live value.
4384         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
4385         (vect_analyze_stmt): Check for new relevant state.
4386         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
4387         outside the loop, but not inside it.
4388
4389 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4390
4391         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
4392         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
4393         (vect_get_vec_def_for_operand): Split out code.
4394
4395 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
4396
4397         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
4398
4399 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4400
4401         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
4402
4403 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4404
4405         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
4406
4407 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
4408
4409         PR middle-end/71387
4410         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
4411         to noreturn e->callee->decl that has void return type and void
4412         arguments, adjust gimple_call_fntype and remove lhs even if it had
4413         previously addressable type.
4414
4415 2016-06-02  Jeff Law  <law@redhat.com>
4416
4417         PR tree-optimization/71328
4418         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
4419         error when checking for a jump back onto the copied path.
4420
4421 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
4422
4423         * config/microblaze/microblaze.c (get_branch_target): Add return
4424         NULL_RTX for the non-CALL_P case.
4425         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
4426         (insert_wic): Remove unused local "j".
4427
4428 2016-06-02  Martin Liska  <mliska@suse.cz>
4429
4430         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
4431
4432 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
4433             Julia Koval  <julia.koval@intel.com>
4434
4435         * function.c (assign_parm_setup_stack): Force source into a
4436         register if needed.
4437         * target.def (function_incoming_arg): Update documentation to
4438         allow arbitrary address computation based on hard register.
4439         * doc/tm.texi: Regenerated.
4440
4441 2016-06-02  Martin Liska  <mliska@suse.cz>
4442
4443         * predict.c (combine_predictions_for_bb): Fix first match in
4444         cases where a first predictor contains more than one occurence
4445         in list of predictors.  Take the best value in such case.
4446
4447 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4448
4449         PR rtl-optimization/71295
4450         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
4451         offset would go over the size of the inner mode reject it.
4452
4453 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
4454
4455         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
4456         x=x,x and v=v,m instead of x=x,m.
4457
4458         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
4459         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
4460         alternative to v=rm,C.
4461
4462         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
4463         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
4464         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
4465         instead of vex for the last two above mentioned alternatives.
4466
4467 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4468
4469         PR target/70830
4470         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
4471
4472 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
4473
4474         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
4475
4476 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
4477
4478         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
4479         from int to unsigned.
4480
4481 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4482
4483         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
4484         alternatives, eliminating preferred register class.  Add support
4485         for the MTVSRDD instruction in ISA 3.0.
4486         (vsx_splat_v4si_internal): Use splat_input_operand instead of
4487         reg_or_indexed_operand.
4488         (vsx_splat_v4sf_internal): Likewise.
4489
4490 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4491
4492         PR target/71186
4493         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
4494         for loading up all 0's or all 1's.
4495
4496 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4497
4498         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
4499
4500 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
4501
4502         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
4503         extension.
4504         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
4505         * gcc.c (set_source_date_epoch_envvar): New function, sets
4506         the SOURCE_DATE_EPOCH environment variable to the current time.
4507
4508 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4509
4510         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
4511         the factor for live Phi nodes.
4512
4513 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
4514
4515         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
4516         * tree-parloops.c (parallelize_loops): likewise.
4517         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
4518         tree_unswitch_outer_loop): likewise.
4519
4520 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
4521
4522         PR middle-end/71371
4523         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
4524         around creation of the temporary.
4525
4526 2016-06-01  Richard Biener  <rguenther@suse.de>
4527
4528         PR tree-optimization/71366
4529         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
4530         (unloop_loops): Move removing edges here ...
4531         (try_unroll_loop_completely): ... from here.
4532         (try_peel_loop): ... and here.
4533         (tree_unroll_loops_completely_1): Track parent loops via
4534         bitmap of header BBs.
4535         (tree_unroll_loops_completely): Adjust for that.
4536
4537 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4538
4539         * config/rs6000/altivec.h (vec_slv): New macro.
4540         (vec_srv): New macro.
4541         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
4542         (UNSPEC_VSRV): New value.
4543         (vslv): New insn.
4544         (vsrv): New insn.
4545         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
4546         (vsrv): New builtin definition.
4547         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
4548         define argument types for new builtin.
4549         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
4550         new builtin.
4551         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
4552         functions.
4553
4554 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
4555             Jocelyn Mayer  <l_indien@magic.fr>
4556
4557         PR target/67310
4558         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
4559         detect processor family for signature_CENTAUR_ebx.
4560         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
4561         signature_CENTAUR_ebx.
4562         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
4563         <default>: Pass x86-64 for has_longmode.
4564
4565 2016-06-01  Nathan Sidwell  <nathan@acm.org>
4566
4567         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
4568         undefined weak.
4569
4570 2016-06-01  Richard Biener  <rguenther@suse.de>
4571
4572         PR tree-optimization/71261
4573         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
4574         of stmts successfully put in the bool pattern.  Remove
4575         single-use restriction.
4576         (adjust_bool_pattern_cast): Add cast at the use site via the
4577         pattern def sequence.
4578         (adjust_bool_pattern): Remove recursion, maintain a hash-map
4579         of patterned defs.  Use the pattern def seqence instead of
4580         multiple independent patterns.
4581         (sort_after_uid): New qsort compare function.
4582         (adjust_bool_stmts): New function to process stmts in the bool
4583         pattern in IL order.
4584         (vect_recog_bool_pattern): Adjust.
4585         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
4586         (ifcvt_walk_pattern_tree): Likewise.
4587         (stmt_is_root_of_bool_pattern): Likewise.
4588         (ifcvt_repair_bool_pattern): Likewise.
4589         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
4590
4591 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
4592
4593         * loop-unroll.c (decide_unroll_constant_iterations,
4594         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
4595         likely upper bounds.
4596         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
4597
4598 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
4599
4600         * tree-core.h (enum omp_clause_code): Remove
4601         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
4602
4603 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4604
4605         * config/arm/sync.md (arm_store_exclusive<mode>):
4606         Use 'H' output modifier on operands[2] rather than creating a new
4607         entry in out-of-bounds memory of the operands array.
4608         (arm_store_release_exclusivedi): Likewise.
4609
4610 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4611
4612         * config/arm/arm.c (arm_fusion_enabled_p): New function.
4613         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
4614         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
4615         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4616
4617 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4618
4619         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
4620         into account live statements for mask producers.
4621
4622 2016-06-01  Richard Biener  <rguenther@suse.de>
4623
4624         PR tree-optimization/71311
4625         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
4626         restrict to non-INTEGER_CST @0.
4627
4628 2016-06-01  Richard Biener  <rguenther@suse.de>
4629
4630         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
4631         (relational patterns): Use :c to avoid pattern duplications.
4632
4633 2016-06-01  Richard Biener  <rguenther@suse.de>
4634
4635         * genmatch.c (comparison_code_p): New predicate.
4636         (swap_tree_comparison): New function.
4637         (commutate): Add for_vec parameter to append new for entries.
4638         Support commutating relational operators by swapping it alongside
4639         operands.
4640         (lower_commutative): Adjust.
4641         (dt_simplify::gen): Do not pass artificial operators to gen
4642         functions.
4643         (decision_tree::gen): Do not add artificial operators as parameters.
4644         (parser::parse_expr): Verify operator commutativity when :c is
4645         applied.  Allow :C to override this.
4646         * match.pd: Adjust patterns to use :C instead of :c where required.
4647
4648 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
4649
4650         PR tree-optimization/71077
4651         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
4652         the combining step, use boolean_false_node and boolean_true_node
4653         as the designated false/true return values.
4654
4655 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4656
4657         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
4658         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
4659         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
4660         PRED_LOOP_EXIT.
4661
4662 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4663
4664         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
4665         of flags impliying the register renaming.
4666         * toplev.c (process_options): Do not imply flag_rename_registers with
4667         loop peeling.
4668
4669 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4670
4671         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
4672         default implementation.
4673
4674 2016-05-31  Nathan Sidwell  <nathan@acm.org>
4675
4676         * dwarf2out.c (cur_line_info_table): Add GTY marker.
4677
4678 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4679
4680         * config/sh/constraints.md (b): Remove constraint.
4681         * config/sh/predicates.md (arith_reg_operand): Remove
4682         TARGET_REGISTER_P.
4683         * config/sh/sh-modes.def (PDI): Remove.
4684         * config/sh/sh.c (sh_target_reg_class,
4685         sh_optimize_target_register_callee_saved): Remove functions.
4686         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
4687         (sh_expand_epilogue): Update comment.
4688         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
4689         sh_secondary_reload): Remove TARGET_REGS related code.
4690         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
4691         TARGET_REGISTER_P): Remove macros.
4692         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
4693         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
4694         TR1_REG, TR2_REG): Remove constants.
4695         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
4696
4697 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4698
4699         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
4700         define_expand patterns.
4701         (adddi3_compact): Rename to adddi3.
4702         (subdi3_compact): Rename to subdi3.
4703         (*negdi2): Rename to negdi2.
4704         (*abs<mode>2): Rename to abs<mode>2.
4705
4706 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
4707
4708         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4709         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4710         (atomic_sub_fetchsi): ... this new pattern.
4711         (mvtc): Add CC_REG clobber.
4712
4713 2016-05-31  Marek Polacek  <polacek@redhat.com>
4714
4715         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4716
4717 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4718
4719         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4720         aarch64_fusion_enabled_p to check for fusion capabilities.
4721
4722 2016-05-31  Richard Biener  <rguenther@suse.de>
4723
4724         PR tree-optimization/71352
4725         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4726         minus one and a negate.
4727
4728 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4729
4730         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4731         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4732         Delete prototype.
4733         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4734         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4735         Remove use of aarch64_simd_attr_length_move, set length attribute
4736         directly.
4737         (*aarch64_be_movoi): Likewise.
4738         (*aarch64_be_movci): Likewise.
4739         (*aarch64_be_movxi): Likewise.
4740
4741 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
4742
4743         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4744         It no longer does that.
4745         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4746
4747 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
4748
4749         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4750         attribute __unused__.
4751
4752 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4753
4754         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4755         * config/arm/arm.c (arm_arch_thumb1): Define.
4756         (arm_option_override): Initialize arm_arch_thumb1.
4757         * config/arm/arm.h (arm_arch_thumb1): Declare.
4758         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4759         support Thumb-1 ISA.
4760
4761 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4762
4763         PR target/71346
4764         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4765         `Yv' for scalar operand.
4766
4767 2016-05-31  Tom de Vries  <tom@codesourcery.com>
4768
4769         PR tree-optimization/69068
4770         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4771         phis with more than two args.
4772
4773 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
4774
4775         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4776         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4777         target.
4778
4779 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
4780
4781         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4782         tune_64.
4783         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4784         support on SPARC.
4785         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4786         cpu_32, cpu_64, tune_32 and tune_64.
4787         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4788
4789 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
4790
4791         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4792
4793 2016-05-30  Andi Kleen  <ak@linux.intel.com>
4794
4795         * auto-profile.c (read_profile): Replace asserts with errors
4796         when file does not exist.
4797         * gcov-io.c (gcov_read_words): Dito.
4798
4799 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4800
4801         * tree-cfg.c (print_loop): Print likely upper bounds.
4802
4803 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4804
4805         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4806         * opts.c (default_options): Enable peel loops at -O3.
4807         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4808         (try_peel_loop): Do not re-peel already peeled loops;
4809         use likely upper bounds; fix profile updating.
4810         (pass_complete_unroll::execute): Initialize peeled_loops.
4811
4812 2016-05-30  Martin Liska  <mliska@suse.cz>
4813
4814         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4815         computed costs by frequency of BB they belong to.
4816         (get_scaled_computation_cost_at): New function.
4817
4818 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
4819             Marc Glisse  <marc.glisse@inria.fr>
4820
4821         PR tree-optimization/71289
4822         * match.pd (-1 / B < A, A > -1 / B): New transformations.
4823
4824 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4825
4826         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
4827
4828 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4829
4830         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
4831         for peeled copies; avoid underflow when updating estimates; correctly
4832         scale loop profile.
4833
4834 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4835
4836         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
4837         r236875. Corrected oe3 to oe2 as obvious.
4838
4839 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4840
4841         PR middle-end/71269
4842         PR middle-end/71252
4843         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
4844         that inserted stmt will not dominate stmts that defines its operand.
4845         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
4846         (rewrite_expr_tree_parallel): Likewise.
4847
4848 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
4849
4850         PR middle-end/71252
4851         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
4852         all fields including stmt_to_insert are swapped.
4853
4854 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4855
4856         * predict.h (force_edge_cold): Declare.
4857         * predict.c (force_edge_cold): New function.
4858         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4859         updating.
4860         (canonicalize_loop_induction_variables): Fix formating.
4861
4862 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4863
4864         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4865         (visium_expand_copysign): Use gen_int_mode directly.
4866         (visium_compute_frame_size): Minor tweaks.
4867
4868 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4869
4870         * tree-vect-loop.c (vect_analyze_loop_2): Use
4871         likely_max_stmt_executions_int.
4872
4873 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4874
4875         PR tree-optimization/69067
4876         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4877
4878 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4879
4880         PR target/71245
4881         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4882         New peepholes to remove unneeded fild/fistp pairs.
4883         (define_peephole2 atomic_loaddi_fpu): Ditto.
4884
4885 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4886
4887         * predict.c (maybe_hot_frequency_p): Avoid division.
4888
4889 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4890
4891         * doc/install.texi: Use https for shop.fsf.org.
4892
4893 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4894
4895         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4896         likely_max_stmt_executions_int.
4897
4898 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4899
4900         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4901         likely_max_stmt_executions_int.
4902
4903 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4904
4905         * profile.c (compute_branch_probabilities): Do not report hitrates
4906         here.
4907         (branch_prob): Report hitrates here.
4908         * predict.c (gimple_predict_edge): Do not assert profile status;
4909         fix formatting issues.
4910
4911 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4912
4913         * predict.c (edge_predicted_by_p): New function.
4914         (predict_paths_for_bb): Do not put multiple predictions of the same type
4915         on one edge.
4916
4917 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4918
4919         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4920         commit.
4921
4922 2016-05-28  Alan Modra  <amodra@gmail.com>
4923
4924         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4925
4926 2016-05-28  Alan Modra  <amodra@gmail.com>
4927
4928         PR rtl-optimization/71275
4929         * ira.c (ira): Free dominance info.
4930
4931 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4932
4933         * doc/sourcebuild.texi: New address for upstream Go repository.
4934
4935 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4936
4937         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4938         (TARGET_ARM_V7M): Likewise.
4939
4940 2016-05-26  Jeff Law  <law@redhat.com>
4941
4942         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4943         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4944         * passes.def: Add jump threading passes before DOM/VRP.
4945         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4946         argument to a basic block from an edge.  Remove tests which are
4947         handled elsewhere.
4948         (pass_data_thread_jumps, class pass_thread_jumps): New.
4949         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4950         (make_pass_thread_jumps): Likewise.
4951         * tree-pass.h (make_pass_thread_jumps): Declare.
4952
4953 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4954
4955         * config/visium/visium-protos.h (split_double_move): Rename into...
4956         (visium_split_double_move): ...this.
4957         (visium_split_double_add): Declare.
4958         * config/visium/visium.c (split_double_move): Rename into...
4959         (visium_split_double_move): ...this.
4960         (visium_split_double_add): New function.
4961         (visium_expand_copysign): Renumber operands for consistency.
4962         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4963         (DFmode move splitter): Likewise.
4964         (*addi3_insn): Split by means of visium_split_double_add.
4965         (*adddi3_insn_flags): Delete.
4966         (*plus_plus_sltu<subst_arith>): New insn.
4967         (*subdi3_insn): Split by means of visium_split_double_add.
4968         (subdi3_insn_flags): Delete.
4969         (*minus_minus_sltu<subst_arith>): New insn.
4970         (*negdi2_insn): Split by means of visium_split_double_add.
4971         (*negdi2_insn_flags): Delete.
4972
4973 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4974
4975         * configure.ac: Treat a --with-headers option without argument
4976         the same as the default (i.e. consult sys-include directory).
4977         * configure: Regenerate.
4978
4979 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4980
4981         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4982         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4983         prototype.
4984         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4985         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4986
4987 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4988
4989         PR target/63596
4990         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4991         tree-stdarg analysis results.
4992         (aarch64_setup_incoming_varargs): Likewise.
4993
4994 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4995
4996         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4997         va_list_gpr_counter_field and va_list_fpr_counter_field.
4998
4999 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
5000
5001         PR67609
5002         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5003         * config/aarch64/aarch64.c
5004         (aarch64_cannot_change_mode_class): Remove function.
5005         * config/aarch64/aarch64-protos.h
5006         (aarch64_cannot_change_mode_class): Remove.
5007
5008 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5009
5010         * cfgloop.c (record_niter_bound): Record likely upper bounds.
5011         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5012         get_likely_max_loop_iterations_int): New.
5013         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5014         any_likely_upper_bound.
5015         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5016         Declare.
5017         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5018         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5019         upper bound.
5020         (unroll_loop_constant_iterations): Likewise.
5021         (unroll_loop_runtime_iterations): Likewise.
5022         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5023         * lto-streamer-out.c (output_cfg): Likewise.
5024         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5025         bounds.
5026         (canonicalize_loop_induction_variables): Dump likely upper bounds.
5027         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5028         (likely_max_loop_iterations): New.
5029         (likely_max_loop_iterations_int): New.
5030         (likely_max_stmt_executions): New.
5031         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5032         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5033         likely_max_stmt_executions): Declare.
5034
5035 2016-05-27  Marek Polacek  <polacek@redhat.com>
5036
5037         PR middle-end/71308
5038         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5039
5040 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5041
5042         * config/s390/s390.md (2x risbg splitters): Use
5043         reg_overlap_mentioned_p instead of rtx_equal_p.
5044
5045 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5046
5047         * combine.c (make_compound_operation): Take known zero bits into
5048         account when checking for possible zero_extend.
5049
5050 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5051
5052         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5053         Use const_int_operand for operand 2 predicate.  Simplify expand code
5054         as a result.
5055
5056 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5057
5058         PR middle-end/71279
5059         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5060         into comparison.
5061
5062 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5063
5064         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5065         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5066         that returns CC_SESWPmode and CC_ZESWPmode.
5067         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5068         and CC_SESWPmode.
5069         (aarch64_rtx_costs): Likewise.
5070
5071 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5072
5073         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5074         for ISA 3.0 min/max support.
5075         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5076         conditional move support.
5077         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5078         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5079         available.
5080         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5081         conditional moves where the comparison type is different from move
5082         type.
5083         (fp_minmax): New code iterator for smin/smax.
5084         (minmax): New code attributes for min/max.
5085         (SMINMAX): Likewise.
5086         (smax<mode>3): Combine min, max insns into one insn using the
5087         fp_minmax code iterator.  Add support for ISA 3.0 min/max
5088         instructions that don't need -ffast-math.
5089         (s<minmax><mode>3): Likewise.
5090         (smax<mode>3_vsx): Likewise.
5091         (smin<mode>3): Likewise.
5092         (s<minmax><mode>3_vsx): Likewise.
5093         (smin<mode>3_vsx): Likewise.
5094         (pre-VSX min/max splitters): Likewise.
5095         (s<minmax><mode>3_fpr): Likewise.
5096         (movsfcc): Rewrite floating point conditional moves to combine
5097         SFmode/DFmode into a single insn.
5098         (mov<mode>cc): Likewise.
5099         (movdfcc): Likewise.
5100         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5101         SFDF2 iterators to handle all combinations.
5102         (fseldfsf4): Likewise.
5103         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5104         (fseldfdf4): Likewise.
5105         (fselsfdf4): Likewise.
5106         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5107         comparison instructions that set a 0/-1 mask, and use it for
5108         floating point conditional move via XXSEL.
5109         (fpmask<mode>): Likewise.
5110         (xxsel<mode>): Likewise.
5111         * config/rs6000/predicates.md (min_max_operator): Delete, no
5112         longer used.
5113         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5114         instructions that generate a 0/-1 mask for use with XXSEL.
5115         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5116         say whether floating point min/max is available, either through
5117         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5118         (TARGET_MINMAX_DF): Likewise.
5119
5120 2016-05-27  Alan Modra  <amodra@gmail.com>
5121
5122         PR rtl-optimization/71275
5123         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5124         for update_equiv_regs and combine_and_move_insns.
5125
5126 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
5127
5128         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5129         if_then_else or cond RTXes to calculate attribute value.
5130         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5131         <attr "length_immediate>: Ditto.
5132         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5133         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5134         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5135         <attr "type">: Ditto.
5136         <attr "prefix_data16">: Ditto.
5137         <attr "prefix_extra">: Ditto.
5138         <attr "length_immediate">: Ditto.
5139         <attr "prefix">: Ditto.
5140         (vec_set<mode>_0) <attr "isa">: Ditto.
5141         <attr "prefix_extra">: Ditto.
5142         <attr "length_immediate">: Ditto.
5143         <attr "prefix">: Ditto.
5144         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5145         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5146         (sse2_storelpd) <attr "prefix_data16">: Ditto.
5147         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5148         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5149         <attr "length_immediate">: Ditto.
5150         <attr "prefix">: Ditto.
5151         (sse2_movsd) <attr "length_immediate">: Ditto.
5152         <attr "prefix">: Ditto.
5153         (vec_concatv2df)  <attr "isa">: Ditto.
5154         <attr "prefix">: Ditto.
5155         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5156         (*vec_extractv2di_1) <attr "isa">: Ditto.
5157         <attr "type">: Ditto.
5158         <attr "length_immediate">: Ditto.
5159         <attr "prefix_rex">: Ditto.
5160         <attr "prefix_extra">: Ditto.
5161         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5162         <attr "prefix_extra">: Ditto.
5163         <attr "length_immediate">: Ditto.
5164         (vec_concatv2di) <attr "isa">: Ditto.
5165         <attr "prefix_extra">: Ditto.
5166         <attr "length_immediate">: Ditto.
5167         <attr "prefix">: Ditto.
5168
5169 2016-05-26  Martin Liska  <mliska@suse.cz>
5170
5171         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5172         function.
5173         (operator+): Likewise.
5174         (operator-): Likewise.
5175         (comp_cost::operator+=): Likewise.
5176         (comp_cost::operator-=): Likewise.
5177         (comp_cost::operator/=): Likewise.
5178         (comp_cost::operator*=): Likewise.
5179         (operator<): Likewise.
5180         (operator==): Likewise.
5181         (operator<=): Likewise.
5182         (new_cost): Remove.
5183         (infinite_cost_p): Likewise.
5184         (add_costs): Likewise.
5185         (sub_costs): Likewise.
5186         (compare_costs): Likewise.
5187         (set_group_iv_cost): Use the newly introduced functions.
5188         (get_address_cost): Likewise.
5189         (get_shiftadd_cost): Likewise.
5190         (force_expr_to_var_cost): Likewise.
5191         (split_address_cost): Likewise.
5192         (ptr_difference_cost): Likewise.
5193         (difference_cost): Likewise.
5194         (get_computation_cost_at): Likewise.
5195         (determine_group_iv_cost_generic): Likewise.
5196         (determine_group_iv_cost_address): Likewise.
5197         (determine_group_iv_cost_cond): Likewise.
5198         (autoinc_possible_for_pair): Likewise.
5199         (determine_group_iv_costs): Likewise.
5200         (cheaper_cost_pair): Likewise.
5201         (iv_ca_recount_cost): Likewise.
5202         (iv_ca_set_no_cp): Likewise.
5203         (iv_ca_set_cp): Likewise.
5204         (iv_ca_cost): Likewise.
5205         (iv_ca_new): Likewise.
5206         (iv_ca_dump): Likewise.
5207         (iv_ca_narrow): Likewise.
5208         (iv_ca_prune): Likewise.
5209         (iv_ca_replace): Likewise.
5210         (try_add_cand_for): Likewise.
5211         (try_improve_iv_set): Likewise.
5212         (find_optimal_iv_set): Likewise.
5213
5214 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5215
5216         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5217         that internal functions will clobber all caller-saved registers.
5218
5219 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5220
5221         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5222         Return a better case_values_threshold when optimizing.
5223
5224 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5225
5226         * config/aarch64/aarch64-simd.md (aarch64_combinez):
5227         Add ? to integer variant.
5228         (aarch64_combinez_be): Likewise.
5229
5230 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5231
5232         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5233         instead of x constraint.
5234         (vcvtps2ph256<mask_name>): Likewise.
5235
5236         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5237         alternative.  Formatting fix.
5238
5239         * config/i386/sse.md
5240         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5241         to ...
5242         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5243         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
5244         maybe_evex prefix instead of vex.
5245         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
5246         EXT_REX_SSE_REG_P (op0) case in the splitter.
5247
5248 2016-05-25  Jeff Law  <law@redhat.com>
5249
5250         PR tree-optimization/71272
5251         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5252         Update comments.  Add test for empty path.
5253
5254 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5255
5256         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5257         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5258         special case builtin.
5259         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5260         code for ALTIVEC_BUILTIN_VEC_CMPNE.
5261         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5262         for __builtin_vec_cmpne.
5263
5264 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5265
5266         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5267         redundant test and bail out if the type of the new operand is not
5268         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5269
5270 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5271
5272         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5273         (x_ix86_target_flags_explicit): Remove.
5274         * config/i386/i386.c (ix86_function_specific_save): Do not copy
5275         x_ix86_target_flags_explicit.
5276         (ix86_function_specific_restore): Ditto.
5277
5278 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5279             H.J. Lu  <hongjiu.lu@intel.com>
5280
5281         PR target/70738
5282         * common/config/i386/i386-common.c
5283         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5284         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5285         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5286         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5287         (-mgeneral-regs-only): Add new option.
5288         * config/i386/i386.c (ix86_option_override_internal): Don't enable
5289         x87 instructions if only general registers are allowed.
5290         (ix86_target_string): Add ix86_flags argument. Handle additional
5291         flags options through ix86_flags argument.  Update all callers.
5292         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5293
5294 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5295
5296         PR rtl-optimization/66940
5297         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
5298         decrementing desired_val will not overflow before performing these
5299         operations.
5300
5301 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
5302
5303         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
5304         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
5305         * config/i386/i386.c (enum ix86_builtins): Add
5306         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
5307         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
5308         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
5309         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
5310         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
5311         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
5312         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
5313         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
5314         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
5315         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
5316         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
5317         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
5318         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
5319         __builtin_ia32_cvtps2dq512_mask.
5320         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
5321         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
5322         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
5323         * config/i386/sse.md
5324         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
5325         Rename to ...
5326         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
5327         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
5328         to ...
5329         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
5330         (avx512f_vec_pack_sfix_v8df): New define_expand.
5331         (avx512f_roundpd512): Rename to ...
5332         (avx512f_round<castmode>512): ... this.  Change iterator.
5333         (avx512f_roundps512_sfix): New define_expand.
5334         (round<mode>2_sfix): Change iterator.
5335
5336 2016-05-25  Nick Clifton  <nickc@redhat.com>
5337
5338         * config/msp430/msp430.c (msp430_attr): Produce an error if a
5339         static interrupt handler is detected.
5340         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
5341         default linker script.
5342         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
5343         the low part of a symbolic pointer.
5344
5345 2016-05-25  Richard Biener  <rguenther@suse.de>
5346
5347         PR tree-optimization/71261
5348         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
5349         interesting stmt instead of immediate uses when looking
5350         for the use operand to replace.
5351
5352 2016-05-25  Martin Liska  <mliska@suse.cz>
5353
5354         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
5355
5356 2016-05-25  Richard Biener  <rguenther@suse.de>
5357
5358         PR tree-optimization/71264
5359         * tree-vect-stmts.c (vect_init_vector): Properly deal with
5360         vector type val.
5361
5362 2016-05-25  Martin Liska  <mliska@suse.cz>
5363
5364         PR tree-optimization/71239
5365         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
5366         if DECL_SIZE is NULL.
5367
5368 2016-05-25  Richard Biener  <rguenther@suse.de>
5369
5370         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
5371         * tree-if-conv.c (pass_data_if_conversion): Use it.
5372
5373 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5374
5375         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
5376         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
5377         * varpool.c (varpool_node::get_availability): Likewise.
5378
5379 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5380
5381         * config/rs6000/altivec.md (VNEG iterator): New iterator for
5382         VNEGW/VNEGD instructions.
5383         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
5384         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
5385         support for ISA 3.0 VNEGW/VNEGD instructions.
5386
5387 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5388
5389         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
5390         pointers inside OACC_DATA regions.
5391         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
5392         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
5393         (gimplify_adjust_omp_clauses): Fix typo in comment.
5394
5395 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5396
5397         * config/rs6000/altivec.md (VParity): New mode iterator for vector
5398         parity built-in functions.
5399         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
5400         zeros.
5401         (p9v_parity<mode>2): Likewise.
5402         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
5403         parity.
5404         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
5405         (parity<mode>2): ISA 3.0 expander for vector parity.
5406         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
5407         power9 built-ins.
5408         (BU_P9_64BIT_MISC_0): Likewise.
5409         (BU_P9_MISC_0): Likewise.
5410         (BU_P9V_AV_1): Likewise.
5411         (BU_P9V_AV_2): Likewise.
5412         (BU_P9V_AV_3): Likewise.
5413         (BU_P9V_AV_P): Likewise.
5414         (BU_P9V_VSX_1): Likewise.
5415         (BU_P9V_OVERLOAD_1): Likewise.
5416         (BU_P9V_OVERLOAD_2): Likewise.
5417         (BU_P9V_OVERLOAD_3): Likewise.
5418         (VCTZB): Add vector count trailing zeros support.
5419         (VCTZH): Likewise.
5420         (VCTZW): Likewise.
5421         (VCTZD): Likewise.
5422         (VPRTYBD): Add vector parity support.
5423         (VPRTYBQ): Likewise.
5424         (VPRTYBW): Likewise.
5425         (VCTZ): Add overloaded vector count trailing zeros support.
5426         (VPRTYB): Add overloaded vector parity support.
5427         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5428         overloaded vector count trailing zeros and parity instructions.
5429         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
5430         vector parity support.
5431         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
5432         trailing zeros support.
5433         (vec_cntlz): Likewise.
5434         (vec_vctzb): Likewise.
5435         (vec_vctzd): Likewise.
5436         (vec_vctzh): Likewise.
5437         (vec_vctzw): Likewise.
5438         (vec_vprtyb): Add ISA 3.0 vector parity support.
5439         (vec_vprtybd): Likewise.
5440         (vec_vprtybw): Likewise.
5441         (vec_vprtybq): Likewise.
5442         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5443         the ISA 3.0 vector count trailing zeros and vector parity built-in
5444         functions.
5445
5446 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5447
5448         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
5449         when there is stmt_to_insert.
5450
5451 2016-05-24  Martin Sebor  <msebor@redhat.com>
5452
5453         PR c++/71147
5454         * tree.h (complete_or_array_type_p): New inline function.
5455
5456 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
5457
5458         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
5459         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
5460         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
5461
5462         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
5463         Limit 1st alternative to noavx isa, split 2nd alternative into one
5464         noavx and one avx alternative, use *x and Bm in the former and
5465         x and m in the latter.
5466
5467         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
5468         of sse4 for the first alternative, drop %v from the template
5469         and d operand modifier.  Split second alternative into one sse4_noavx
5470         and one avx alternative, use *x instead of *v in the former and v
5471         instead of *v in the latter.
5472         (*sse4_1_extractps): Use noavx isa instead of * for the first
5473         alternative, drop %v from the template.  Split second alternative into
5474         one noavx and one avx alternative, use *x instead of *v in the
5475         former and v instead of *v in the latter.
5476         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
5477         with noavx and the last one with avx.
5478         (sse4_1_phminposuw): Guard first alternative with noavx isa,
5479         split the second one into one noavx and one avx alternative,
5480         use *x and Bm in the former and x and m in the latter one.
5481         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
5482         alternatives.
5483
5484         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
5485         first two alternatives to noavx, use *x instead of *v in the second
5486         one, add avx alternative without *.
5487         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
5488         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
5489         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
5490
5491 2016-05-24  Jeff Law  <law@redhat.com>
5492
5493         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
5494         New function, extracted from...
5495         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
5496         Allow simple copies and constant initializations in the SSA chain.
5497
5498 2016-05-24  Marek Polacek  <polacek@redhat.com>
5499
5500         PR c/71249
5501         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
5502         scope.
5503
5504 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
5505
5506         PR c++/71257
5507         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5508         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5509         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
5510         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
5511         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
5512
5513 2016-05-24  Richard Biener  <rguenther@suse.de>
5514
5515         PR tree-optimization/71240
5516         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
5517         has integral type.
5518
5519 2016-05-24  Richard Biener  <rguenther@suse.de>
5520
5521         PR tree-optimization/71230
5522         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
5523
5524 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5525
5526         * tree-vectorizer.h (vectorizable_comparison): Delete.
5527         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
5528         PURE_SLP_STMT check.
5529         * tree-vect-stmts.c (vectorizable_call): Likewise.
5530         (vectorizable_simd_clone_call): Likewise.
5531         (vectorizable_conversion): Likewise.
5532         (vectorizable_assignment): Likewise.
5533         (vectorizable_shift): Likewise.
5534         (vectorizable_operation): Likewise.
5535         (vectorizable_load): Likewise.
5536         (vectorizable_condition): Likewise.
5537         (vectorizable_store): Likewise.  Assert that we don't have
5538         hybrid SLP.
5539         (vectorizable_comparison): Make static.  Remove redundant
5540         PURE_SLP_STMT check.
5541         (vect_transform_stmt): Assert that we always have an slp_node
5542         if PURE_SLP_STMT.
5543
5544 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5545
5546         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
5547         operands[2] against 1 with comparison against CONST1_RTX.
5548         (<shift>di3_neon): Likewise.
5549         * config/arm/predicates.md (const0_operand): Replace with comparison
5550         against CONST0_RTX.
5551
5552 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5553
5554         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
5555         operands[2] against 1 with comparison against CONST1_RTX.
5556         (ashrdi3): Likewise.
5557         (lshrdi3): Likewise.
5558         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
5559         UINTVAL.
5560         (ashrsi3): Likewise.
5561         (lshrsi3): Likewise.
5562         (rotrsi3): Likewise.
5563         (define_split above *compareqi_eq0): Likewise.
5564         (define_split above "prologue"): Likewise.
5565         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
5566         * config/arm/predicates.md (shift_operator): Likewise.
5567         (shift_nomul_operator): Likewise.
5568         (sat_shift_operator): Likewise.
5569         (thumb1_cmp_operand): Likewise.
5570         (const_neon_scalar_shift_amount_operand): Replace manual range
5571         check with IN_RANGE.
5572         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
5573         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
5574
5575 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5576
5577         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
5578         with HOST_WIDE_INT_1.
5579         (insv): Likewise.
5580         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
5581         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
5582         (arm_canonicalize_comparison): Likewise.
5583         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
5584         HOST_WIDE_INT_1.
5585         (thumb1_size_rtx_costs): Likewise.
5586         (vfp_const_double_index): Replace cast of 1 to unsigned
5587         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5588         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
5589         HOST_WIDE_INT_1.
5590         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
5591         HOST_WIDE_INT with HOST_WIDE_INT_1U.
5592         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
5593         HOST_WIDE_INT with HOST_WIDE_INT_1.
5594
5595 2016-05-24  Marek Polacek  <polacek@redhat.com>
5596
5597         * tree-cfg.h (should_remove_lhs_p): New predicate.
5598         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5599         * gimplify.c (gimplify_modify_expr): Likewise.
5600         * tree-cfg.c (verify_gimple_call): Likewise.
5601         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5602         * gimple-fold.c: Include "tree-cfg.h".
5603         (gimple_fold_call): Use should_remove_lhs_p.
5604
5605 2016-05-24  Richard Biener  <rguenther@suse.de>
5606
5607         PR tree-optimization/71253
5608         * cfganal.h (control_dependences): Make robust against edge
5609         and BB removal.
5610         (control_dependences::control_dependences): Remove edge_list argument.
5611         (control_dependences::get_edge): Remove.
5612         (control_dependences::get_edge_src): Add.
5613         (control_dependences::get_edge_dest): Likewise.
5614         (control_dependences::m_el): Make a vector of edge src/dest index.
5615         * cfganal.c (control_dependences::find_control_dependence): Adjust.
5616         (control_dependences::control_dependences): Likewise.
5617         (control_dependences::~control_dependence): Likewise.
5618         (control_dependences::get_edge): Remove.
5619         (control_dependences::get_edge_src): Add.
5620         (control_dependences::get_edge_dest): Likewise.
5621         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
5622         get_edge_src.
5623         (perform_tree_ssa_dce): Adjust.
5624         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
5625         get_edge_src.
5626         (pass_loop_distribution::execute): Adjust.  Do loop destroying
5627         conditional on changed.
5628
5629 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5630
5631         PR target/69857
5632         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
5633         return.  Reindent transformation comment and mention the ARM state
5634         behavior.
5635
5636 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5637
5638         PR middle-end/71252
5639         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
5640         after build_and_add_sum creates new use stmt.
5641
5642 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5643
5644         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
5645         load_lanes/grouped_load classification comes first.  Don't check
5646         whether the vectorization factor is a multiple of the group size
5647         for load_lanes.
5648
5649 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
5650
5651         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
5652         GROUP_GAP for single-element interleaving.
5653         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
5654         variable.
5655
5656 2016-05-24  Richard Biener  <rguenther@suse.de>
5657
5658         PR middle-end/70434
5659         PR c/69504
5660         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
5661         bases which are accessed with non-invariant indices.
5662         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
5663         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
5664
5665 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5666
5667         PR middle-end/71170
5668         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
5669         (add_to_ops_vec): Add stmt_to_insert.
5670         (add_repeat_to_ops_vec): Init stmt_to_insert.
5671         (insert_stmt_before_use): New.
5672         (transform_add_to_multiply): Remove mult_stmt insertion and add it
5673         to ops vector.
5674         (get_ops): Init stmt_to_insert.
5675         (maybe_optimize_range_tests): Likewise.
5676         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
5677         (rewrite_expr_tree_parallel): Likewise.
5678         (reassociate_bb): Likewise.
5679
5680 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5681
5682         PR target/71201
5683         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5684         ISA 3.0 xxperm fusion alternative.
5685         (altivec_vperm_v8hiv16qi): Likewise.
5686         (altivec_vperm_<mode>_uns_internal): Likewise.
5687         (vperm_v8hiv4si): Likewise.
5688         (vperm_v16qiv8hi): Likewise.
5689
5690 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5691             Kelvin Nilsen  <kelvin@gcc.gnu.org>
5692
5693         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5694         vpermr/xxpermr on ISA 3.0.
5695         (altivec_expand_vec_perm_le): Likewise.
5696         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5697         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5698         ISA 3.0.
5699
5700 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
5701
5702         * config/i386/i386.h (IS_STACK_MODE): Enable for
5703         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
5704         SSE_FLOAT_MODE_P macros.
5705         * config/i386/i386.c (ix86_preferred_reload_class): Use
5706         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5707         Cleanup regclass processing for CONST_DOUBLE_P.
5708         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5709         (ix86_rtx_costs): Remove redundant TARGET_80387 check
5710         with IS_STACK_MODE macro.
5711         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5712         with TARGET_SSE2.
5713         (*movdf_internal): Use IS_STACK_MODE macro.
5714         (*movsf_internal): Ditto.
5715
5716 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
5717
5718         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5719         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5720
5721 2016-05-23  Jeff Law  <law@redhat.com>
5722
5723         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5724         extracted from ...
5725         (fsm_find_control_statement_thread_paths): Call it.
5726
5727 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5728
5729         PR ipa/71234
5730         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5731         from_global_constant if t is not NULL.
5732
5733 2016-05-23  Marek Polacek  <polacek@redhat.com>
5734
5735         PR c/49859
5736         * common.opt (Wswitch-unreachable): New option.
5737         * doc/invoke.texi: Document -Wswitch-unreachable.
5738         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5739         warning.
5740
5741 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
5742
5743         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5744         TMR_INDEX is non-NULL.
5745
5746 2016-05-23  Richard Biener  <rguenther@suse.de>
5747
5748         PR tree-optimization/71230
5749         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5750         (try_special_add_to_ops): ... here.  Always test for single-use.
5751
5752 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5753
5754         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5755         default block if a PHI node in the original one would be resized.
5756
5757 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5758
5759         PR tree-optimization/58135
5760         * tree-vect-slp.c: When group size is not multiple
5761         of vector size, allow splitting of store group at
5762         vector boundary.
5763
5764 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
5765
5766         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5767
5768 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
5769
5770         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5771         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5772         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
5773         of 64x2.
5774
5775         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5776         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5777         v constraint instead of x and vinserti32x4 insn.
5778
5779         * config/i386/sse.md (i128vldq): New mode iterator.
5780         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5781         avx512dq and avx512vl alternatives.
5782
5783         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5784         constraint, use maybe_evex prefix instead of vex.
5785         (vec_dupv4sf): Use v constraint instead of x for output
5786         operand except for noavx alternative, use Yv constraint
5787         instead of x for input.  Use maybe_evex prefix instead of vex.
5788         (*vec_dupv4si): Likewise.
5789         (*vec_dupv2di): Likewise.
5790
5791 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5792
5793         PR middle-end/40921
5794         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5795         (linearize_expr_tree): Call try_special_add_to_ops.
5796         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5797
5798 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5799
5800         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5801         to computed stack_usage.
5802
5803 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5804
5805         PR target/71103
5806         * config/avr/avr.md (define_expand "mov<mode>"): If the source
5807         operand is subreg (symbol_ref) then move the symbol ref to register.
5808
5809 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
5810
5811         * tree.c (array_at_struct_end_p): Look through MEM_REF.
5812
5813 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5814
5815         PR middle-end/71179
5816         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
5817         VECTOR type.
5818
5819 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5820
5821         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
5822         ranges by calling get_single_symbol and tidy up.  Look more closely
5823         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
5824
5825 2016-05-20  Jeff Law  <law@redhat.com>
5826
5827         * bitmap.c (bitmap_find_bit): Remove useless test.
5828
5829 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5830
5831         * function.c (thread_prologue_and_epilogue_insns): Commit the
5832         insertion of the epilogue.
5833
5834 2016-05-20  Martin Jambor  <mjambor@suse.cz>
5835
5836         PR tree-optimization/70884
5837         * tree-sra.c (initialize_constant_pool_replacements): Do not check
5838         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5839         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5840         of constant pool data as a reason for scalarization.
5841
5842 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5843
5844         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5845         for naked functions.
5846         (thumb1_expand_prologue): Likewise.
5847
5848 2016-05-20  Nathan Sidwell  <nathan@acm.org>
5849
5850         * config/nvptx/nptx.c (nvptx_option_override): Only set
5851         flag_toplevel_reorder, if not explicitly specified.  Set
5852         flag_no_common, unless explicitly specified.
5853
5854 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5855
5856         * calls.c (can_implement_as_sibling_call_p): Mark param
5857         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5858
5859 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5860
5861         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5862         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5863         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5864         constants.
5865         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5866         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5867         and CASE_CONST_ANY.
5868
5869 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5870
5871         * config/nvptx/nvptx.md (sincossf3): New pattern.
5872
5873 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5874
5875         * calls.c (maybe_complain_about_tail_call): New function.
5876         (initialize_argument_information): Call
5877         maybe_complain_about_tail_call when clearing *may_tailcall.
5878         (can_implement_as_sibling_call_p): Call
5879         maybe_complain_about_tail_call when returning false.
5880         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5881         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5882         if tail-call optimization fails.
5883         * cfgexpand.c (expand_call_stmt): Initialize
5884         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5885         * gimple-pretty-print.c (dump_gimple_call): Dump
5886         gimple_call_must_tail_p.
5887         * gimple.c (gimple_build_call_from_tree): Call
5888         gimple_call_set_must_tail with the value of
5889         CALL_EXPR_MUST_TAIL_CALL.
5890         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5891         (gimple_call_set_must_tail): New function.
5892         (gimple_call_must_tail_p): New function.
5893         * print-tree.c (print_node): Update printing of TREE_STATIC
5894         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5895         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5896         trailing comment listing applicable flags.
5897         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5898
5899 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5900
5901         * calls.c (expand_call): Move "Rest of purposes for tail call
5902         optimizations to fail" to...
5903         (can_implement_as_sibling_call_p): ...this new function, and
5904         split into multiple "if" statements.
5905
5906 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5907
5908         * cfgloop.h (expected_loop_iterations_unbounded,
5909         expected_loop_iterations): Unconstify.
5910         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5911         profile with known upper bound; return 3 when profile is absent.
5912         (expected_loop_iterations): Update.
5913
5914 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5915
5916         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5917         and get_max_loop_iterations_int.
5918
5919 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5920
5921         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5922         realistic upper bounds here.
5923
5924 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5925
5926         PR c++/71210
5927         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5928         calls if the LHS is variable length or has addressable type.
5929         If targets[0]->decl is a noreturn call with void return type and
5930         zero arguments, adjust fntype and remove lhs in that case.
5931
5932 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5933
5934         PR tree-optimization/71079
5935         PR tree-optimization/71206
5936         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5937
5938 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5939
5940         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5941         (get_vec_alignment_for_array_decl): Likewise.
5942         (get_vec_alignment_for_record_decl): Likewise.
5943         (increase_alignment::execute): Move code to find alignment to
5944         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5945         (type_align_map): New hash_map.
5946
5947 2016-05-20  Richard Guenther  <rguenther@suse.de>
5948
5949         PR tree-optimization/29756
5950         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5951         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5952         * fold-const.c (operand_equal_p): Likewise.
5953         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5954         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5955         * tree-inline.c (estimate_operator_cost): Likewise.
5956         * tree-pretty-print.c (dump_generic_node): Likewise.
5957         * tree-ssa-operands.c (get_expr_operands): Likewise.
5958         * cfgexpand.c (expand_debug_expr): Likewise.
5959         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5960         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5961         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5962         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5963         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5964         (execute_update_addresses_taken): Do it.
5965
5966 2016-05-20  Richard Biener  <rguenther@suse.de>
5967
5968         PR tree-optimization/71185
5969         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5970         register operations.
5971
5972 2016-05-20  Richard Biener  <rguenther@suse.de>
5973
5974         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5975         gimple_seq_add_seq_without_update.
5976         (release_bb_predicate): Assert we have no operands to free.
5977         (if_convertible_loop_p_1): Calculate post dominators later.
5978         Do not free BB predicates here.
5979         (combine_blocks): Do not recompute BB predicates.
5980         (version_loop_for_if_conversion): Save BB predicates around
5981         loop versioning.
5982
5983 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5984
5985         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5986         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5987         code.  Ignore sibcalls on EDGE_IGNORE edges.
5988         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5989         on edges for sibcalls that run without prologue.  The rest of the
5990         function is combined from...
5991         (fix_fake_fallthrough_edge): ... this, and ...
5992         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5993         function argument, make it a local variable.
5994
5995 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5996
5997         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5998         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5999         for 32-bit mode and SEH for 64-bit.
6000         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6001         TARGET_64BIT_DEFAULT.
6002
6003 2016-05-19  Ryan Burn  <contact@rnburn.com>
6004
6005         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6006         * gengtype.c (open_base_files): Add cilk.h to ifiles.
6007
6008 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
6009
6010         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6011         force pending loads from memory.
6012
6013 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6014
6015         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6016         (UNSPEC_DARN_32): New unspec constant.
6017         (UNSPEC_DARN_RAW): New unspec constant.
6018         (darn_32): New instruction.
6019         (darn_raw): New instruction.
6020         (darn): New instruction.
6021         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6022         support and documentation for this macro.
6023         (BU_P9_MISC_1): New macro definition.
6024         (BU_P9_64BIT_MISC_0): New macro definition.
6025         (BU_P9_MISC_0): New macro definition.
6026         (darn_32): New builtin definition.
6027         (darn_raw): New builtin definition.
6028         (darn): New builtin definition.
6029         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6030         RS6000_BUILTIN_0 directives to surround each occurrence of
6031         #include "rs6000-builtin.def".
6032         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6033         RS6000_BTM_64BIT flags to the returned mask, depending on
6034         configuration.
6035         (def_builtin): Correct an error in the assignments made to the
6036         debugging variable attr_string.
6037         (rs6000_expand_builtin): Add support for no-operand built-in
6038         functions.
6039         (builtin_function_type): Remove fatal_error assertion that is no
6040         longer valid.
6041         (rs6000_common_init_builtins): Add support for no-operand built-in
6042         functions.
6043         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6044         definition.
6045         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6046         definition.
6047         (RS6000_BTM_64BIT): New macro definition.
6048         * doc/extend.texi: Document __builtin_darn (void),
6049         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6050         functions.
6051
6052 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
6053
6054         * tree-vect-loop.c (vect_analyze_loop_2): Use also
6055         max_loop_iterations_int.
6056
6057 2016-05-19  Marek Polacek  <polacek@redhat.com>
6058
6059         PR tree-optimization/71031
6060         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6061         condition and adjust the code a bit.
6062
6063 2016-05-19  Martin Liska  <mliska@suse.cz>
6064
6065         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6066         auto_vec instead of vec.
6067
6068 2016-05-19  Martin Liska  <mliska@suse.cz>
6069
6070         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6071
6072 2016-05-19  Martin Liska  <mliska@suse.cz>
6073
6074         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6075
6076 2016-05-19  Martin Liska  <mliska@suse.cz>
6077
6078         * ipa-pure-const.c (set_function_state): Remove an existing
6079         funct_state.
6080         (remove_node_data): Do not free it as it's released
6081         in set_function_state.
6082
6083 2016-05-19  Martin Liska  <mliska@suse.cz>
6084
6085         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6086         bitmap.
6087
6088 2016-05-19  Martin Liska  <mliska@suse.cz>
6089
6090         * omp-simd-clone.c (simd_clone_adjust): Release vector.
6091
6092 2016-05-19  Martin Liska  <mliska@suse.cz>
6093
6094         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6095         an auto_vec instead of re-creating it.
6096
6097 2016-05-19  Martin Liska  <mliska@suse.cz>
6098
6099         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6100         auto_vec instead of vec.
6101
6102 2016-05-19  Martin Liska  <mliska@suse.cz>
6103
6104         * lto-section-in.c (lto_get_section_data): Call
6105         lto_check_version with additional argument.
6106         * lto-streamer.c (lto_check_version): Add new argument.
6107         * lto-streamer.h (lto_check_version): Likewise.
6108
6109 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6110
6111         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6112         Don't add cost of inner memory when handling sign-extended loads.
6113
6114 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6115
6116         PR rtl-optimization/71148
6117         * cse.c (cse_main): Free dominance info.
6118         (rest_of_handle_cse): Don't free dominance info.
6119         (rest_of_handle_cse2): Likewise.
6120         (rest_of_handle_cse_after_global_opts): Likewise.
6121
6122 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6123
6124         PR target/71056
6125         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6126         NULL_TREE early if NEON is not available.  Remove now redundant check
6127         in ARM_CHECK_BUILTIN_MODE.
6128
6129 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
6130
6131         PR sanitizer/64354
6132         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6133         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6134         * doc/cpp.texi: Document new macros.
6135
6136 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
6137
6138         PR tree-optimization/69848
6139         * tree-vect-loop.c (vectorizable_reduction): Don't factor
6140         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6141
6142 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6143
6144         * function.c (thread_prologue_and_epilogue_insn): Move the
6145         "goto epilogue_done" one block later.
6146
6147 2016-05-19  Richard Biener  <rguenther@suse.de>
6148
6149         PR tree-optimization/70729
6150         * passes.def: Move LIM pass before PRE.  Remove no longer
6151         required copyprop and move first DCE out of the loop pipeline.
6152
6153 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
6154
6155         PR driver/69265
6156         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6157         (OBJS-libcommon-target): ...here.
6158         * opts-common.c: Include spellcheck.h.
6159         (cmdline_handle_error): Build a vec of valid options and use it
6160         to suggest provide hints for misspelled arguments.
6161
6162 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6163
6164         PR c++/71100
6165         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6166         lhs if it has TREE_ADDRESSABLE type.
6167
6168 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
6169
6170         PR target/71145
6171         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6172         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6173
6174 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6175
6176         PR ipa/69708
6177         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6178         input for NOP_EXPR pass-through functions.
6179         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6180         aggregate global constant VAR_DECLs in constant jump functions.
6181
6182 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6183
6184         PR ipa/69708
6185         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6186         from TREE_READONLY parameters.
6187
6188 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6189
6190         PR ipa/69708
6191         * cgraph.h (cgraph_indirect_call_info): New field
6192         guaranteed_unmodified.
6193         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6194         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6195         appropriate.
6196         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6197         pass the parameter value to ipa_find_agg_cst_for_param.
6198         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6199         guaranteed_unmodified, store AA results there instead of bailing out
6200         if present.
6201         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6202         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6203         (find_constructor_constant_at_offset): New function.
6204         (ipa_find_agg_cst_from_init): Likewise.
6205         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6206         static initializers of contants, report back through a new paameter
6207         from_global_constant if that was the case.
6208         (try_make_edge_direct_simple_call): Also pass parameter value to
6209         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6210         appropriate.
6211         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6212         (ipa_read_indirect_edge_info): Likewise.
6213         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6214         (ipa_load_from_parm_agg): Likewise.
6215
6216 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
6217
6218         PR rtl-optimization/71150
6219         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6220         check.
6221
6222 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6223
6224         PR target/70915
6225         * config/rs6000/constraints.md (wE constraint): New constraint
6226         for a vector constant that can be loaded with XXSPLTIB.
6227         (wM constraint): New constraint for a vector constant of a 1's.
6228         (wS constraint): New constraint for a vector constant that can be
6229         loaded with XXSPLTIB and a vector sign extend instruction.
6230         * config/rs6000/predicates.md (xxspltib_constant_split): New
6231         predicates for wE/wS constraints.
6232         (xxspltib_constant_nosplit): Likewise.
6233         (easy_vector_constant): Add support for constants that can be
6234         loaded via XXSPLTIB.
6235         (all_ones_constant): New predicate for vector constant with all
6236         1's set.
6237         (splat_input_operand): Add support for ISA 3.0 word splat operations.
6238         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6239         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6240         instruction and possibly with a sign extension.
6241         (output_vec_const_move): Add support for XXSPLTIB. If we are
6242         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6243         instead of XXLXOR/XXLORC.
6244         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6245         operations.
6246         (rs6000_legitimize_reload_address): Likewise.
6247         (rs6000_output_move_128bit): Use output_vec_const_move to emit
6248         constants.
6249         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6250         combine VSX_M and VSX_M2 into one iterator.
6251         (VSX_M2): Likewise.
6252         (VSINT_84): New iterators for loading constants with XXSPLTIB.
6253         (VSINT_842): Likewise.
6254         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6255         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6256         XXSPLTIB instruction.
6257         (xxspltib_<mode>_nosplit): Likewise.
6258         (xxspltib_<mode>_split): New insn to load up constants with
6259         XXSPLTIB and a sign extend instruction.
6260         (vsx_mov<mode>): Replace single move that handled all vector types
6261         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
6262         moves (when -mvsx-timode is in effect) into the main vector
6263         moves.  Eliminate separate moves for <VSr> <VSa>, where the
6264         preferred register class (<VSr>) is listed first, and the
6265         secondary register class (<VSa>) is listed second with a '?' to
6266         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
6267         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6268         that if the register was involved in a slow operation, the
6269         clear/set operation does not wait for the slow operation to
6270         finish.  Adjust the length attributes for 32-bit mode.  Use
6271         rs6000_output_move_128bit and drop the use of the string
6272         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
6273         spacing so that the alternatives and attributes don't generate
6274         long lines, and put things in columns, so that it is easier to
6275         match up the operands and attributes with the insn alternatives.
6276         (vsx_mov<mode>_64bit): Likewise.
6277         (vsx_mov<mode>_32bit): Likewise.
6278         (vsx_movti_64bit): Fold movti into normal vector moves.
6279         (vsx_movti_32bit): Likewise.
6280         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6281         splat instructions.
6282         (vsx_splat_v4si_internal): Likewise.
6283         (vsx_splat_v4sf_internal): Likewise.
6284         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6285         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6286         extend vector elements.
6287         (vsx_sign_extend_hi_<mode>): Likewise.
6288         (vsx_sign_extend_si_v2di): Likewise.
6289         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6290         declaration.
6291         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6292         constraints.  Add trailing period to wL documentation.
6293
6294 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
6295
6296         PR middle-end/71020
6297         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
6298         * tree-dfa.c (replace_abnormal_ssa_names): New function.
6299         * tree-call-cdce.c: Include tree-dfa.h.
6300         (can_guard_call_p): New function, extracted from...
6301         (can_use_internal_fn): ...here.
6302         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
6303         and return void.
6304         (shrink_wrap_one_built_in_call): Likewise.
6305         (use_internal_fn): Likewise.
6306         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
6307         and return void.  Call replace_abnormal_ssa_names.
6308         (pass_call_cdce::execute): Check can_guard_call_p during the
6309         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
6310         will always change something.
6311
6312 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6313
6314         PR ipa/70646
6315         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
6316         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
6317
6318 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6319
6320         PR ipa/70646
6321         * ipa-inline.h (condition): New field size.
6322         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
6323         for comaprison and store it into the new condition.
6324         (evaluate_conditions_for_known_args): Use condition size to check
6325         access sizes for all but CHANGED conditions.
6326         (unmodified_parm_1): New parameter size_p, store access size into it.
6327         (unmodified_parm): Likewise.
6328         (unmodified_parm_or_parm_agg_item): Likewise.
6329         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
6330         (set_cond_stmt_execution_predicate): Extract access sizes and store
6331         them to conditions.
6332         (set_switch_stmt_execution_predicate): Likewise.
6333         (will_be_nonconstant_expr_predicate): Likewise.
6334         (will_be_nonconstant_predicate): Likewise.
6335         (inline_read_section): Stream condition size.
6336         (inline_write_summary): Likewise.
6337
6338 2016-05-18  Richard Biener  <rguenther@suse.de>
6339
6340         * tree-ssa-loop-im.c (determine_max_movement): Properly add
6341         condition cost to PHI cost instead of total_cost.
6342
6343 2016-05-18  Martin Liska  <mliska@suse.cz>
6344
6345         PR fortran/70856
6346         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
6347         merged variables.
6348
6349 2016-05-18  Richard Biener  <rguenther@suse.de>
6350
6351         * lto-streamer.h (LTO_major_version): Bump to 6.
6352
6353 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6354
6355         * function.c (make_split_prologue_seq, make_prologue_seq,
6356         make_epilogue_seq): New functions, factored out from...
6357         (thread_prologue_and_epilogue_insns): Here.
6358
6359 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6360
6361         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6362         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
6363         of before.  Add a comment.
6364
6365 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
6366
6367         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
6368         expression pointer, not pointer to the pointer.
6369
6370 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6371
6372         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
6373         (avx2_pbroadcast<mode>): Add another alternative with v instead
6374         of x constraints in it, using <pbroadcast_evex_isa> isa.
6375         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
6376
6377         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
6378         constraint x instead of v in second alternative, add avx512bw
6379         alternative.
6380
6381         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
6382         constraint x instead of v in second alternative, add avx512bw
6383         alternative.
6384
6385         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
6386         constraint x instead of v in second alternative, add avx512bw
6387         alternative.
6388
6389         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
6390         avx512bw alternative.
6391
6392 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6393
6394         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
6395         array to 128 chars.
6396         (define_insn "*andnottf3"): Ditto.
6397         (define_insn "*<code><mode>3"/any_logic): Ditto.
6398         (define_insn "*<code>tf3"/any_logic): Ditto.
6399         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
6400         operand to block AVX-512VL insn variant emit when it is not enabled.
6401
6402 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6403
6404         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
6405         constraint fot SF mode.
6406
6407 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
6408             Kirill Yukhin  <kirill.yukhin@intel.com>
6409
6410         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
6411         modifiers.
6412         (define_insn "rsqrt14<mode>"): Ditto.
6413         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6414         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6415         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
6416         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6417         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
6418         Ditto.
6419         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
6420         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
6421         * config/i386/i386.c (ix86_print_operand): Expand check for size
6422         override codes for Intel syntax.
6423
6424 2016-05-18  Richard Biener  <rguenther@suse.de>
6425
6426         PR tree-optimization/71168
6427         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
6428         initialization earlier.
6429
6430 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
6431
6432         * config/aarch64/aarch64-simd.md
6433         (aarch64_reduc_plus_internal<mode>): Rename to...
6434         (reduc_plus_scal): ...This, and remove previous implementation.
6435
6436 2016-05-18  Richard Biener  <rguenther@suse.de>
6437
6438         * passes.def: Put late dse and cd_dce in canonical order.
6439
6440 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
6441
6442         * ipa-inline-transform.c (preserve_function_body_p): Look for
6443         first non-thunk clone.
6444         (save_function_body): Save into first non-thunk.
6445         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
6446         up call stmt id.
6447         (lto_output_node): Inline thunks don't need body in every
6448         partition.
6449         * lto-streamer-in.c: Do not fixup thunk clones.
6450         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
6451         thunks.
6452         * tree-inline.c (copy_bb): Be prepared for target node to be new after
6453         folding suceeds.
6454
6455 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
6456
6457         PR middle-end/63586
6458         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
6459         (reassociate_bb): Call transform_add_to_multiply.
6460
6461 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
6462
6463         * config/aarch64/aarch64.c (all_extensions): Removed unused
6464         static variable.
6465
6466 2016-05-17  Nathan Sidwell  <nathan@acm.org>
6467
6468         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
6469         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
6470
6471 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
6472
6473         PR tree-optimization/54579
6474         PR middle-end/55299
6475         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
6476
6477 2016-05-17  Marek Polacek  <polacek@redhat.com>
6478
6479         PR ipa/71146
6480         * tree-inline.c (expand_call_inline): Call
6481         maybe_remove_unused_call_args.
6482
6483 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
6484
6485         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
6486         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
6487         * doc/md.texi (fmin@var{m}3): Likewise.
6488
6489 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6490
6491         * match.pd (X & C): New transformation.
6492
6493 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6494
6495         * match.pd (~X & Y): New transformation.
6496
6497 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
6498
6499         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
6500         information for new SSA_NAME.
6501         (simplify_conversion_using_ranges): Get range through get_range_info
6502         instead of get_value_range.
6503
6504 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6505
6506         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
6507         Remove inline assembly.
6508         (vmvn_s16): Likewise.
6509         (vmvn_s32): Likewise.
6510         (vmvn_u8): Likewise.
6511         (vmvn_u16): Likewise.
6512         (vmvn_u32): Likewise.
6513         (vmvnq_s8): Likewise.
6514         (vmvnq_s16): Likewise.
6515         (vmvnq_s32): Likewise.
6516         (vmvnq_u8): Likewise.
6517         (vmvnq_u16): Likewise.
6518         (vmvnq_u32): Likewise.
6519         (vmvn_p8): Likewise.
6520         (vmvnq_p16): Likewise.
6521
6522 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6523
6524         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
6525         Use builtin.
6526         (vmul_n_s16): Likewise.
6527         (vmul_n_s32): Likewise.
6528         (vmul_n_u16): Likewise.
6529         (vmul_n_u32): Likewise.
6530         (vmulq_n_f32): Likewise.
6531         (vmulq_n_f64): Likewise.
6532         (vmulq_n_s16): Likewise.
6533         (vmulq_n_s32): Likewise.
6534         (vmulq_n_u16): Likewise.
6535         (vmulq_n_u32): Likewise.
6536
6537 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6538
6539         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
6540         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
6541
6542 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
6543
6544         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
6545         to *aarch64_fma4_elt_from_dup<mode>.
6546         (*aarch64_fnma4_elt_to_128df): Rename to
6547         *aarch64_fnma4_elt_from_dup<mode>.
6548         * config/aarch64/arm_neon.h (vfma_n_f64): New.
6549         (vfms_n_f32): Likewise.
6550         (vfms_n_f64): Likewise.
6551         (vfmsq_n_f32): Likewise.
6552         (vfmsq_n_f64): Likewise.
6553
6554 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
6555
6556         * wide-int.h: Change fixed_wide_int_storage from class to struct.
6557
6558 2016-05-17  Richard Biener  <rguenther@suse.de>
6559
6560         PR tree-optimization/71132
6561         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
6562         Only add control dependences for blocks in the loop.
6563         (build_rdg): Adjust.
6564         (generate_code_for_partition): Return whether loop should
6565         be destroyed and delay that.
6566         (distribute_loop): Likewise.
6567         (pass_loop_distribution::execute): Record loops to be destroyed
6568         and perform delayed destroying of loops.
6569
6570 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6571
6572         PR target/70809
6573         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
6574
6575 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6576
6577         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
6578
6579 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
6580
6581         PR target/71114
6582         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
6583         insertion point for instructions generated by validize_mem.
6584
6585 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6586
6587         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
6588         in brackets.
6589
6590 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
6591
6592         * config/aarch64/aarch64.c
6593         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
6594         rather than a macro.
6595
6596 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6597
6598         * doc/invoke.texi (AArch64 Options): Various updates.
6599
6600 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6601
6602         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
6603         into instrumentation thunks.
6604         * cif-code.def (CIF_CHKP): New.
6605
6606 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
6607
6608         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
6609
6610 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6611
6612         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
6613         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
6614
6615 2016-05-16  Marek Polacek  <polacek@redhat.com>
6616
6617         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
6618         commentary.
6619
6620 2016-05-16  Martin Jambor  <mjambor@suse.cz>
6621
6622         PR hsa/70857
6623         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
6624         the outlined kernel function.
6625
6626 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
6627
6628         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
6629         (ISA_HAS_DLSA): Ditto.
6630
6631 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6632
6633         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
6634
6635 2016-05-16  Nathan Sidwell  <nathan@acm.org>
6636
6637         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
6638         (nvptx_name_replacement): Restore.  Add comment.
6639         (write_fn_proto, write_fn_proto_from_insn,
6640         nvptx_output_call_insn): Restore
6641         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
6642
6643 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6644
6645         * config/aarch64/aarch64.md
6646         (add<mode>3_compareC_cconly_imm): Remove use of %w.
6647         (add<mode>3_compareC_imm): Likewise.
6648         (<optab>si3_uxtw): Split into register and immediate variants.
6649         (andsi3_compare0_uxtw): Likewise.
6650         (and<mode>3_compare0): Likewise.
6651         (and<mode>3nr_compare0): Likewise.
6652         (stack_protect_test_<mode>): Don't use %x for memory operands.
6653
6654 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
6655
6656         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
6657
6658 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
6659
6660         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6661         Split integer shifts into shift_reg and bfm.
6662         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6663         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6664         (ror<mode>3_insn): Likewise.
6665         (<optab>si3_insn_uxtw): Likewise.
6666         (<optab><mode>3_insn): Change to rotate_imm.
6667         (extr<mode>5_insn_alt): Likewise.
6668         (extrsi5_insn_uxtw): Likewise.
6669         (extrsi5_insn_uxtw_alt): Likewise.
6670
6671 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6672
6673         * doc/tm.texi: Regenerate.
6674         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
6675         (TARGET_INVALID_RETURN_TYPE): Remove.
6676         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
6677         TARGET_INVALID_RETURN_TYPE.
6678         * target.def (invalid_parameter_type): Remove.
6679         (invalid_return_type): Remove.
6680
6681 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6682
6683         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
6684         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
6685         calls from thunk.
6686         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
6687         gimple body.
6688         (preserve_function_body_p): No need to preserve function body
6689         * cif-codes.def (CIF_THUNK): Remove.
6690         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
6691
6692 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6693
6694         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
6695
6696 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6697
6698         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
6699         for thunks.
6700
6701 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6702
6703         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
6704         (inline_small_functions): Do not look for function symbol when
6705         resetting caches.
6706
6707 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
6708
6709         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6710         of inline thunks
6711
6712 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6713             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6714             Jiong Wang  <jiong.wang@arm.com>
6715
6716         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6717         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6718         Define __ARM_FP16_ARGS when appropriate.
6719         * config/arm/arm.c (arm_invalid_parameter_type): Remove
6720         declaration.
6721         (arm_invalid_return_type): Likewise.
6722         (TARGET_INVALID_PARAMETER_TYPE): Remove.
6723         (TARGET_INVALID_RETURN_TYPE): Remove.
6724         (aapcs_vfp_sub_candidate): Allow HFmode.
6725         (aapcs_vfp_allocate): Add comment.  Support HFmode.
6726         (aapcs_vfp_allocate_return_reg): Likewise.
6727         (struct aapcs_cp_arg_layout): Slightly reword comments for
6728         is_return_candidate and allocate_return_reg.
6729         (output_mov_vfp): Update assert.
6730         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6731         condition.
6732         (arm_invalid_parameter_type): Remove.
6733         (amr_invalid_return_type): Remove.
6734         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6735         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6736         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6737
6738 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
6739
6740         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6741         * config/aarch64/arch64-protos.h
6742         (aarch64_legitimize_reload_address): Remove.
6743         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6744         Remove.
6745
6746 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6747
6748         * configure.ac: Add ACX_NONCANONICAL_HOST.
6749         * configure: Regenerate.
6750         * Makefile.in: Set host_noncanonical.
6751
6752 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
6753
6754         PR target/71097
6755         * config/i386/i386.md (*movtf_internal): Before register allocation,
6756         do not allow FP constants for CM_MEDIUM memory model, allow only
6757         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6758         (*movxf_internal): Ditto.
6759         (*movdf_internal): Ditto.
6760         (*movsf_internal): Ditto.
6761
6762 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6763
6764         PR rtl-optimization/67483
6765         * combine.c (make_compound_operation): Don't call extract_left_shift
6766         with negative shift amounts.
6767
6768 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
6769
6770         PR bootstrap/71071
6771         * fold-const.c (fold_checksum_tree): Allow modification
6772         of TYPE_ALIAS_SET during folding.
6773
6774         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6775         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6776         (ix86_split_to_parts): Likewise.  Fix up formatting.
6777
6778 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6779
6780         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6781         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6782         printf format.
6783
6784 2016-05-13  Nathan Sidwell  <nathan@acm.org>
6785
6786         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6787         (nvptx_name_replacement): Delete.
6788         (write_fn_proto, write_fn_proto_from_insn,
6789         nvptx_output_call_insn): Remove nvptx_name_replacement call.
6790         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6791         * langhooks.c (add_builtin_funcction_common): Call
6792         targetm.mangle_decl_assembler_name.
6793
6794         * config/nvptx/nvptx.c (write_fn_proto): Handle
6795         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6796
6797 2016-05-13  Martin Liska  <mliska@suse.cz>
6798
6799         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6800         and PRIu64 in printf format.
6801
6802 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6803
6804         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6805         comment.
6806
6807 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6808
6809         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6810         Change --param max-completely-peeled-times to
6811         --param max-completely-peel-times in dump file printing.
6812
6813 2016-05-13  Richard Biener  <rguenther@suse.de>
6814
6815         PR tree-optimization/42587
6816         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
6817         (find_bswap_or_nop_1): Likewise.
6818         (bswap_replace): Likewise.
6819
6820 2016-05-13  Martin Liska  <mliska@suse.cz>
6821
6822         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
6823         Initialize a variable with default value.
6824
6825 2016-05-13  Martin Liska  <mliska@suse.cz>
6826
6827         * doc/invoke.texi: Enhance explanation of error recovery
6828         of sanitizers.
6829
6830 2016-05-13  Martin Liska  <mliska@suse.cz>
6831
6832         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
6833         (struct cost_pair): Change inv_expr_id (int) to inv_expr
6834         (iv_inv_expr_ent *).
6835         (struct iv_inv_expr_ent): Comment struct fields.
6836         (sort_iv_inv_expr_ent): New function.
6837         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
6838         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
6839         a hash_map between iv_inv_expr_ent and number of usages.
6840         (niter_for_exit): Fix coding style.
6841         (tree_ssa_iv_optimize_init): Use renamed variable.
6842         (determine_base_object): Fix coding style.
6843         (alloc_iv): Likewise.
6844         (find_interesting_uses_outside): Likewise.
6845         (add_candidate_1): Likewise.
6846         (add_standard_iv_candidates): Likewise.
6847         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
6848         (prepare_decl_rtl): Fix coding style.
6849         (get_address_cost): Likewise.
6850         (get_shiftadd_cost): Likewise.
6851         (force_expr_to_var_cost): Likewise.
6852         (compare_aff_trees): Likewise.
6853         (get_expr_id): Restructure the function.
6854         (get_loop_invariant_expr_id): Renamed to
6855         get_loop_invariant_expr.
6856         (get_computation_cost_at): Replace usage of inv_expr_id with
6857         inv_expr.
6858         (get_computation_cost): Likewise.
6859         (determine_group_iv_cost_generic): Likewise.
6860         (determine_group_iv_cost_address): Likewise.
6861         (iv_period): Fix coding style.
6862         (iv_elimination_compare_lt): Likewise.
6863         (may_eliminate_iv): Likewise.
6864         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6865         inv_expr.
6866         (determine_group_iv_costs): Dump invariant expressions.
6867         (iv_ca_recount_cost): Use the newly added hash_map.
6868         (iv_ca_set_remove_invariants): Fix coding style.
6869         (iv_ca_set_add_invariants): Fix coding style.
6870         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6871         invariants.
6872         (iv_ca_set_cp): Likewise.
6873         (iv_ca_new): Initialize the newly added hash_map and remove
6874         initialization of fields.
6875         (iv_ca_free): Delete the hash_map.
6876         (iv_ca_dump): Dump invariant expressions.
6877         (iv_ca_extend): Fix coding style.
6878         (try_add_cand_for): Likewise.
6879         (create_new_ivs): Dump information about # of avg iterations and
6880         # of used invariant expressions.
6881         (rewrite_use_compare): Fix coding style.
6882         (free_loop_data): Set default value for max_inv_expr_id.
6883
6884 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6885
6886         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6887         returned value cse_cfg_altered computation.
6888         (rest_of_handle_cse2): Likewise.
6889         (rest_of_handle_cse_after_global_opts): Likewise.
6890
6891 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6892
6893         PR target/53440
6894         * config/arm/arm.c (arm32_output_mi_thunk): New.
6895         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6896         to split Thumb1 vs TARGET_32BIT functionality.
6897         (arm_thumb1_mi_thunk): New.
6898
6899 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6900
6901         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6902         to true.
6903
6904 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6905
6906         PR target/71080
6907         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6908
6909 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6910
6911         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6912         (expand_builtin_trap): Emit a regular call.
6913         (set_builtin_user_assembler_name): Remove obsolete cases.
6914         * dse.c (scan_insn): Adjust.
6915         * except.c: Include calls.h.
6916         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6917         emit a regular call to setjmp.
6918         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6919         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6920         (emit_block_move_via_libcall): Delete.
6921         (block_move_fn): Delete.
6922         (init_block_move_fn): Likewise.
6923         (emit_block_move_libcall_fn): Likewise.
6924         (emit_block_op_via_libcall): New function.
6925         (set_storage_via_libcall): Tidy up and use memset builtin.
6926         (block_clear_fn): Delete.
6927         (init_block_clear_fn): Likewise.
6928         (clear_storage_libcall_fn): Likewise.
6929         (expand_assignment): Call emit_block_move_via_libcall.
6930         Do not include gt-expr.h.
6931         * expr.h (emit_block_op_via_libcall): Declare.
6932         (emit_block_copy_via_libcall): New inline function.
6933         (emit_block_move_via_libcall): Likewise.
6934         (emit_block_comp_via_libcall): Likewise.
6935         (block_clear_fn): Delete.
6936         (init_block_move_fn): Likewise.
6937         (init_block_clear_fn): Likewise.
6938         (emit_block_move_via_libcall): Likewise.
6939         (set_storage_via_libcall): Add default parameter value.
6940         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6941         (abort_libfunc): Delete.
6942         (memcpy_libfunc): Likewise.
6943         (memmove_libfunc): Likewise.
6944         (memcmp_libfunc): Likewise.
6945         (memset_libfunc): Likewise.
6946         (setbits_libfunc): Likewise.
6947         (setjmp_libfunc): Likewise.
6948         (longjmp_libfunc): Likewise.
6949         (profile_function_entry_libfunc): Likewise.
6950         (profile_function_exit_libfunc): Likewise.
6951         (gcov_flush_libfunc): Likewise.
6952         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6953         and DECL_VISIBILITY on the declaration.
6954         (init_optabs): Do not initialize obsolete libfuncs.
6955         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6956         * tree-core.h (ECF_RET1): Define.
6957         (ECF_TM_PURE): Adjust.
6958         (ECF_TM_BUILTIN): Likewise.
6959         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6960         (build_common_builtin_nodes): Initialize abort builtin.
6961         Add ECF_RET1 on memcpy, memmove and memset builtins.
6962         Pass final flags for alloca and alloca_with_align builtins.
6963         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6964         obsolete builtins.
6965         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6966         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6967         set_storage_via_libcall and call emit_block_copy_via_libcall.
6968
6969 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6970
6971         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6972         DImode before it is passed to ix86_output_call_operand.
6973         (*call_value_got_x32): Ditto for operand 1.
6974
6975 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6976
6977         PR rtl-optimization/70904
6978         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6979         reload for wide mode.
6980
6981 2016-05-12  Marek Polacek  <polacek@redhat.com>
6982
6983         PR c/70756
6984         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6985         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6986         * langhooks.h (incomplete_type_error): Likewise.
6987         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6988         parameter, pass it down to incomplete_type_error.
6989         * tree.h (size_in_bytes): New inline overload.
6990         (size_in_bytes_loc): Renamed from size_in_bytes.
6991
6992 2016-05-12  Richard Biener  <rguenther@suse.de>
6993
6994         PR tree-optimization/71059
6995         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6996         nary before looking up or entering the expression into the VN
6997         hashes.
6998         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6999         Make sure to re-use NARYs without result as inserted by
7000         phi-translation.
7001
7002 2016-05-12  Richard Biener  <rguenther@suse.de>
7003
7004         PR tree-optimization/71062
7005         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7006         field.
7007         * tree-ssa-structalias.c (set_uids_in_ptset): Set
7008         vars_contains_restrict if the var is a restrict tag.
7009         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7010         do not disambiguate pointers against it.
7011         (dump_points_to_solution): Re-structure and adjust for new
7012         vars_contains_restrict flag.
7013         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7014
7015 2016-05-12  Martin Liska  <mliska@suse.cz>
7016
7017         * doc/invoke.texi: Explain connection between
7018         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7019
7020 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
7021
7022         PR tree-optimization/71006
7023         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7024         consider COND_EXPR as a mask producer.
7025
7026 2016-05-12  Marek Polacek  <polacek@redhat.com>
7027
7028         PR driver/71063
7029         * opts.c (common_handle_option): Detect missing argument for --help^.
7030
7031 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7032
7033         PR target/70830
7034         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7035         when popping the PC and within an interrupt handler routine.
7036         Add missing tab to output of "ldmfd".
7037         (output_return_instruction): Output LDMFD with SP update rather
7038         than POP when returning from interrupt handler.
7039
7040 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
7041
7042         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7043         TARGET_64BIT && TARGET_AVX512DQ.
7044         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7045         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7046         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7047         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7048         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7049         (*vec_extractv4si_zext): Add avx512dq alternative.
7050         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7051         use v instead of x constraint in other alternatives where possible.
7052
7053         * config/i386/sse.md (sse2_loadld): Use v instead of x
7054         constraint in alternatives 0,1,4.
7055
7056         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7057         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7058         v constraints instead of x and <pinsr_evex_isa> isa attribute.
7059
7060         PR target/71019
7061         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7062         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7063         is not emitted unless TARGET_AVX512BW.
7064         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7065         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7066         for the result operand.
7067
7068         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7069         constraint instead of x in avx alternatives.  Use maybe_evex instead
7070         of vex prefix.
7071
7072         * config/i386/constraints.md (Yv): New constraint.
7073         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7074         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7075         * config/i386/i386.md (avx512fvecmode): New mode attr.
7076         (*pushtf): Use v constraint instead of x.
7077         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
7078         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7079         (*absneg<mode>2): Use Yv constraint instead of x constraint.
7080         (*absnegtf2_sse): Likewise.
7081         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7082         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7083         avx512f alternatives.
7084         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7085
7086 2016-05-12  Richard Biener  <rguenther@suse.de>
7087
7088         PR tree-optimization/71060
7089         * tree-data-ref.c (initialize_data_dependence_relation): Do not
7090         require exact match of DR_BASE_OBJECT but only matching address and
7091         type.
7092
7093 2016-05-12  Richard Biener  <rguenther@suse.de>
7094
7095         PR tree-optimization/70986
7096         * cfganal.c: Include cfgloop.h.
7097         (dfs_find_deadend): Prefer to take edges exiting loops.
7098
7099 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7100
7101         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7102         compile and run time.
7103
7104 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
7105
7106         PR c/43651
7107         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7108
7109 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
7110
7111         * config/i386/i386.c (legitimize_pic_address): Use
7112         copy_to_suggested_reg instead of gen_movsi.
7113
7114 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7115
7116         * config/rs6000/predicates.md (quad_memory_operand): Move most of
7117         the code into quad_address_p and call it to share code with
7118         vsx_quad_dform_memory_operand.
7119         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7120         d-form support.
7121         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7122         bit instead of being a separate word.  Split -mpower9-dform into
7123         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7124         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7125         for the register class supporting 128-bit quad word memory offsets.
7126         (mode_supports_vsx_dform_quad): Helper function to return if the
7127         register class uses quad word memory offsets.
7128         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7129         (rs6000_debug_reg_global): Always print if we are using LRA or not.
7130         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7131         instructions are enabled, set up the appropriate addr_masks for
7132         128-bit types.
7133         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7134         -mpower9-dform-scalar, instead of -mpower9-dform.
7135         (rs6000_option_override_internal): Split -mpower9-dform into two
7136         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
7137         -mpower9-dform switch sets or clears both.  If we are not using
7138         the LRA register allocator, do not enable -mpower9-dform-vector by
7139         default.  If we are using LRA, enable -mpower9-dform-vector and
7140         -mvsx-timode if it is appropriate.  Issue a warning if either
7141         -mpower9-dform-vector or -mvsx-timode are explicitly used without
7142         enabling LRA.
7143         (quad_address_offset_p): New helper function to return if the
7144         offset is legal for quad word memory instructions.
7145         (quad_address_p): New function to determin if GPR or vector
7146         register quad word memory addresses are legal.
7147         (mem_operand_gpr): Validate quad word address offsets.
7148         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7149         d-form (register + offset) instructions.
7150         (offsettable_ok_by_alignment): Likewise.
7151         (rs6000_legitimate_offset_address_p): Likewise.
7152         (legitimate_lo_sum_address_p): Likewise.
7153         (rs6000_legitimize_address): Likewise.
7154         (rs6000_legitimize_reload_address): Add more debug statements for
7155         -mdebug=addr.
7156         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7157         d-form instructions.
7158         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7159         d-form instructions.  Distinguish different cases in debug
7160         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7161         d-form instructions.
7162         (rs6000_preferred_reload_class): Likewise.
7163         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7164         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
7165         of the ISA 2.06 indexed memory instructions.
7166         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7167         use them to save/restore the saved vector registers instead of
7168         using Altivec instructions.
7169         (rs6000_emit_epilogue): Likewise.
7170         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7171         (rs6000_opt_masks): Split -mpower9-dform into
7172         -mpower9-dform-scalar and -mpower9-dform-vector.
7173         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7174         was not selected.
7175         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7176         ISA 3.0 vector indexed memory instructions, and fold the code into
7177         the normal mov<mode> patterns.
7178         (p9_vecstore_<mode>): Likewise.
7179         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7180         instructions.
7181         (vsx_movti_64bit): Likewise.
7182         (vsx_movti_32bit): Likewise.
7183         * config/rs6000/constraints.md (wO constraint): New constraint for
7184         ISA 3.0 vector d-form support.
7185         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7186         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
7187         include -mpower9-dform-vector until we switch over to LRA.
7188         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7189         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7190         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7191         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7192         for -mpower9-dform and -mlra.
7193         * doc/md.texi (wO constraint): Document wO constraint.
7194
7195 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
7196
7197         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7198         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7199         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7200         Move handling of non-insn arguments inline into the sole user:
7201         (output_trans_func): ...here.
7202         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7203         in emitted function prototype.
7204         (output_internal_insn_latency_func): Ditto.  Simplify.
7205         (output_internal_maximal_insn_latency_func): Ditto.  Delete
7206         always-unused argument.
7207         (output_insn_latency_func): Ditto.
7208         (output_maximal_insn_latency_func): Ditto.
7209
7210 2016-05-11  Richard Biener  <rguenther@suse.de>
7211
7212         PR tree-optimization/71055
7213         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7214         sth with precision not equal to access size verify we don't chop
7215         off bits.
7216
7217 2016-05-11  Richard Biener  <rguenther@suse.de>
7218
7219         PR debug/71057
7220         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7221         (dwarf2out_finish): Move retry_incomplete_types call ...
7222         (dwarf2out_early_finish): ... here.
7223
7224 2016-05-11  Richard Biener  <rguenther@suse.de>
7225
7226         PR middle-end/71002
7227         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7228         if the langhook insists on it.
7229         * fold-const.c (make_bit_field_ref): Add arg for the original
7230         reference and preserve its alias-set.
7231         (decode_field_reference): Take exp by reference and adjust it
7232         to the original memory reference.
7233         (optimize_bit_field_compare): Adjust callers.
7234         (fold_truth_andor_1): Likewise.
7235         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7236
7237 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
7238
7239         PR middle-end/70807
7240         * cfgrtl.h (delete_insn_and_edges): Now return bool.
7241         * cfgrtl.c (delete_insn_and_edges): Likewise.
7242         * config/i386/i386.c (convert_scalars_to_vector): Remove
7243         redundant code.
7244         * cse.c (cse_insn): Compute cse_cfg_altered.
7245         (delete_trivially_dead_insns): Likewise.
7246         (cse_cc_succs): Likewise.
7247         (rest_of_handle_cse): Free dominance info if required.
7248         (rest_of_handle_cse2): Likewise.
7249         (rest_of_handle_cse_after_global_opts): Likewise.
7250
7251 2016-05-11  Alan Modra  <amodra@gmail.com>
7252
7253         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7254         abi_v4_pass_in_fpr): New functions.
7255         (rs6000_function_arg_boundary): Exclude complex IBM long double
7256         from 64-bit alignment when ABI_V4.
7257         (rs6000_function_arg, rs6000_function_arg_advance_1,
7258         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7259
7260 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
7261
7262         PR rtl-optimization/71028
7263         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7264         jump with just a return in the fallthrough block if the branch
7265         block contains just a return as well.
7266
7267 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
7268
7269         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7270         * match.pd ((X & Y) ^ Y): ... this.
7271         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7272         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7273
7274 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7275
7276         * read-md.c (require_char_ws): New function.
7277         (read_string): Simplify using require_char_ws.
7278         (handle_constants): Likewise.
7279         (handle_enum): Likewise.
7280         (handle_file): Likewise.
7281         * read-md.h (require_char_ws): New declaration.
7282         * read-rtl.c (read_conditions): Simplify using require_char_ws.
7283         (read_mapping): Likewise.
7284         (read_rtx_code): Likewise.
7285         (read_nested_rtx): Likewise.
7286
7287 2016-05-10  James Norris  <jnorris@codesourcery.com>
7288
7289         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7290         if offloading is enabled and -fopenacc or -fopenmp is specified.
7291         (CRTOFFLOADEND): Likewise.
7292         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7293         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7294
7295 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
7296
7297         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
7298         gotoff_operand code paths.  Use copy_to_suggested_regs and
7299         expand_simple_binop where appropriate.  Cleanup.
7300
7301 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7302
7303         PR target/70799
7304         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
7305         integer constants.
7306         (dimode_scalar_chain::vector_const_cost): New.
7307         (dimode_scalar_chain::compute_convert_gain): Handle constants.
7308         (dimode_scalar_chain::convert_op): Likewise.
7309         (dimode_scalar_chain::convert_insn): Likewise.
7310
7311 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7312
7313         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
7314         unary operation, not a binary one.
7315
7316 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7317
7318         PR middle-end/70877
7319         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
7320         calls with type casted fndecl.
7321
7322 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7323
7324         PR tree-optimization/70786
7325         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
7326         * calls.c (initialize_argument_information): Bind bounds
7327         with corresponding args passed by reference.
7328
7329 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
7330
7331         PR target/70927
7332         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
7333         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
7334         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
7335         accordingly.
7336
7337 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7338
7339         PR target/70963
7340         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
7341         code for a zero scale factor.
7342         (vsx_xvcvdpuxds_scale): Likewise.
7343
7344 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7345
7346         * diagnostic-show-locus.c (layout::layout): Call show_ruler
7347         if show_ruler_p was set on the context.
7348         (layout::show_ruler): New method.
7349         * diagnostic.h (struct diagnostic_context): Add field
7350         "show_ruler_p".
7351
7352 2016-05-10  Richard Biener  <rguenther@suse.de>
7353
7354         PR tree-optimization/71039
7355         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
7356         (chk_uses): New function.
7357         (propagate_with_phi): Verify we can safely replicate the lhs of an
7358         aggregate assignment on all incoming edges.
7359
7360 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
7361
7362         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
7363         Forward declare.
7364         (rx_atomic_sequence): New class.
7365         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
7366         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
7367         non-inline.
7368         (rx_atomic_sequence::rx_atomic_sequence,
7369         rx_atomic_sequence::~rx_atomic_sequence): New functions.
7370         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
7371         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
7372         CTRLREG_INTB): New constants.
7373         (FETCHOP): New code iterator.
7374         (fethcop_name, fetchop_name2): New iterator code attributes.
7375         (QIHI): New mode iterator.
7376         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
7377         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
7378         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
7379
7380 2016-05-10  Martin Liska  <mliska@suse.cz>
7381
7382         * tree-inline.c (remap_dependence_clique): Do not remap
7383         debugging statements.
7384
7385 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7386
7387         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
7388         ("*fixuns_truncdfdi2_z13")
7389         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
7390         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
7391         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
7392
7393 2016-05-10  Richard Biener  <rguenther@suse.de>
7394
7395         PR tree-optimization/70497
7396         PR tree-optimization/28367
7397         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
7398         split out from ...
7399         (visit_reference_op_load): ... here.
7400         (vn_reference_lookup_3): Use it to handle subreg-like accesses
7401         with simplified BIT_FIELD_REFs.
7402         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
7403         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
7404         correctly.
7405
7406 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7407
7408         * dwarf2out.c (add_abstract_origin_attribute): Adjust
7409         documentation comment.  For BLOCK nodes, add a
7410         DW_AT_abstract_origin attribute that points to the DIE generated
7411         for the origin BLOCK.
7412         (gen_lexical_block_die): Call add_abstract_origin_attribute for
7413         blocks from inlined functions.
7414
7415 2016-05-10  Alan Modra  <amodra@gmail.com>
7416
7417         PR target/70947
7418         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
7419         regrename modifying insns saving lr before __morestack call.
7420         * config/rs6000/rs6000.md (split_stack_return): Similarly for
7421         insns restoring lr after __morestack call.
7422
7423 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
7424
7425         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
7426         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
7427         expanders.
7428         * config/i386/sse.md (vec_interleave_high<mode>,
7429         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
7430         <avx512>_vpermt2var<mode>3_maskz): Likewise.
7431
7432 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7433
7434         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
7435         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
7436         parallel reassociation for power8 and forward.
7437
7438 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
7439
7440         * config/i386/i386.md (absneg splitters with general regs): Use
7441         general_reg_operand predicate.
7442         (btsq peephole2): Use x86_64_immediate_operand to check if new
7443         value is suitable for immediate operand.  Generate emitted insn
7444         using RTL expressions.
7445         (btcq peephole2): Ditto.
7446         (btrq peephole2): Ditto.  Generate correct immediate operand
7447         for AND masking.
7448
7449 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
7450
7451         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
7452         bitpos.
7453
7454 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
7455
7456         * tree-affine.c (wide_int_constant_multiple_p): Add missing
7457         pointer dereference.
7458
7459 2016-05-09  Richard Biener  <rguenther@suse.de>
7460
7461         PR tree-optimization/70985
7462         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
7463         op0 isn't a gimple register.
7464
7465 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
7466
7467         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
7468         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
7469         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
7470         (i6400_fpu_mult): New cpu units.
7471         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
7472         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
7473         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
7474         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
7475         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
7476         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
7477         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
7478         (i6400_msa_long_float4, i6400_msa_long_float5)
7479         (i6400_msa_long_float8, i6400_msa_fdiv_df)
7480         (i6400_msa_fdiv_sf): New reservations.
7481         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
7482         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
7483         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
7484         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
7485         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
7486         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
7487         (msa_short_cmp, msa_short_float2, msa_short_logic3)
7488         (msa_short_store4, msa_long_load, msa_short_store)
7489         (msa_long_logic, msa_long_float2, msa_long_float4)
7490         (msa_long_float5, msa_long_float8, msa_long_mult)
7491         (msa_long_fdiv, msa_long_div): New reservations.
7492
7493 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
7494             Sameera Deshpande  <sameera.deshpande@imgtec.com>
7495             Matthew Fortune  <matthew.fortune@imgtec.com>
7496             Graham Stott  <graham.stott@imgtec.com>
7497             Chao-ying Fu  <chao-ying.fu@imgtec.com>
7498
7499         * config.gcc: Add MSA header file for mips*-*-* target.
7500         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
7501         (Ubv8i, Urv8):  New constraints.
7502         * config/mips/mips-ftypes.def: Add function types for MSA
7503         builtins.
7504         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
7505         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
7506         * config/mips/mips-msa.md: New file.
7507         * config/mips/mips-protos.h
7508         (mips_split_128bit_const_insns): New prototype.
7509         (mips_msa_idiv_insns): Likewise.
7510         (mips_split_128bit_move): Likewise.
7511         (mips_split_128bit_move_p): Likewise.
7512         (mips_split_msa_copy_d): Likewise.
7513         (mips_split_msa_insert_d): Likewise.
7514         (mips_split_msa_fill_d): Likewise.
7515         (mips_expand_msa_branch): Likewise.
7516         (mips_const_vector_same_val_p): Likewise.
7517         (mips_const_vector_same_bytes_p): Likewise.
7518         (mips_const_vector_same_int_p): Likewise.
7519         (mips_const_vector_shuffle_set_p): Likewise.
7520         (mips_const_vector_bitimm_set_p): Likewise.
7521         (mips_const_vector_bitimm_clr_p): Likewise.
7522         (mips_msa_vec_parallel_const_half): Likewise.
7523         (mips_msa_output_division): Likewise.
7524         (mips_ldst_scaled_shift): Likewise.
7525         (mips_expand_vec_cond_expr): Likewise.
7526         * config/mips/mips.c (enum mips_builtin_type): Add
7527         MIPS_BUILTIN_MSA_TEST_BRANCH.
7528         (mips_gen_const_int_vector_shuffle): New prototype.
7529         (mips_const_vector_bitimm_set_p): New function.
7530         (mips_const_vector_bitimm_clr_p): Likewise.
7531         (mips_const_vector_same_val_p): Likewise.
7532         (mips_const_vector_same_bytes_p): Likewise.
7533         (mips_const_vector_same_int_p): Likewise.
7534         (mips_const_vector_shuffle_set_p): Likewise.
7535         (mips_symbol_insns): Forbid loading symbols via immediate for
7536         MSA.
7537         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
7538         stores.
7539         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
7540         MSA.
7541         (mips_lx_address_p): Add support load indexed address for MSA.
7542         (mips_address_insns): Add calculation of instructions needed for
7543         stores and loads for MSA.
7544         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
7545         CONST_VECTOR for MSA and let it fall through.
7546         (mips_ldst_scaled_shift): New function.
7547         (mips_subword_at_byte): Likewise.
7548         (mips_msa_idiv_insns): Likewise.
7549         (mips_legitimize_move): Validate MSA moves.
7550         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
7551         calculation of costs for MSA division.
7552         (mips_split_move_p): Check if MSA moves need splitting.
7553         (mips_split_move): Split MSA moves if necessary.
7554         (mips_split_128bit_move_p): New function.
7555         (mips_split_128bit_move): Likewise.
7556         (mips_split_msa_copy_d): Likewise.
7557         (mips_split_msa_insert_d): Likewise.
7558         (mips_split_msa_fill_d): Likewise.
7559         (mips_output_move): Handle MSA moves.
7560         (mips_expand_msa_branch): New function.
7561         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
7562         Reinstate 'y' modifier.
7563         (mips_file_start): Add MSA .gnu_attribute.
7564         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
7565         FPRs.
7566         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
7567         (mips_class_max_nregs): Add register size for MSA supported mode.
7568         (mips_cannot_change_mode_class): Allow conversion between MSA
7569         vector modes and TImode.
7570         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
7571         instruction.
7572         (mips_secondary_reload_class): Force MSA loads/stores via memory.
7573         (mips_preferred_simd_mode): Add preffered modes for MSA.
7574         (mips_vector_mode_supported_p): Add MSA supported modes.
7575         (mips_autovectorize_vector_sizes): New function.
7576         (mips_msa_output_division): Likewise.
7577         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
7578         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
7579         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
7580         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
7581         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
7582         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
7583         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
7584         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
7585         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
7586         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
7587         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
7588         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
7589         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
7590         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
7591         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
7592         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
7593         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
7594         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
7595         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
7596         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
7597         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
7598         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
7599         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
7600         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
7601         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
7602         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
7603         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
7604         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
7605         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
7606         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
7607         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
7608         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
7609         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
7610         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
7611         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
7612         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
7613         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
7614         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
7615         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
7616         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
7617         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
7618         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
7619         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
7620         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
7621         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7622         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7623         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7624         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7625         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7626         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7627         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7628         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7629         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
7630         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
7631         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
7632         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
7633         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
7634         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
7635         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
7636         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
7637         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
7638         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
7639         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
7640         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
7641         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
7642         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
7643         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
7644         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
7645         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
7646         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
7647         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
7648         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
7649         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
7650         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
7651         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
7652         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
7653         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
7654         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
7655         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
7656         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
7657         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
7658         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
7659         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
7660         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
7661         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
7662         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
7663         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
7664         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
7665         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
7666         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
7667         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
7668         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
7669         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
7670         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
7671         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
7672         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
7673         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
7674         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
7675         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
7676         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
7677         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
7678         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
7679         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
7680         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
7681         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
7682         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
7683         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
7684         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
7685         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
7686         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
7687         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
7688         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
7689         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
7690         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
7691         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
7692         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
7693         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
7694         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
7695         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
7696         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
7697         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
7698         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
7699         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
7700         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
7701         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
7702         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
7703         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
7704         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
7705         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
7706         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7707         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7708         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7709         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7710         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7711         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7712         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7713         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7714         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7715         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7716         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7717         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7718         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7719         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7720         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7721         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7722         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7723         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7724         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7725         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7726         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7727         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7728         move_v builtins.
7729         (mips_get_builtin_decl_index): New array.
7730         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7731         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7732         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7733         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7734         (mips_init_builtins): Initialize mips_get_builtin_decl_index
7735         array.
7736         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7737         hook.
7738         (mips_expand_builtin_insn): Prepare operands for
7739         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7740         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7741         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7742         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7743         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7744         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7745         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7746         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7747         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7748         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7749         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7750         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7751         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7752         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7753         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7754         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7755         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7756         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7757         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7758         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7759         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7760         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7761         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7762         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7763         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7764         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7765         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7766         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7767         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7768         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7769         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7770         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7771         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7772         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7773         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7774         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7775         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7776         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7777         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7778         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7779         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7780         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7781         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7782         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7783         These are set implicitly and an error is reported if overridden.
7784         (mips_expand_builtin_msa_test_branch): New function.
7785         (mips_expand_msa_shuffle): Likewise.
7786         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7787         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7788         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7789         (mips_expand_vec_unpack): Add support for MSA.
7790         (mips_expand_vector_init): Likewise.
7791         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7792         instead of const0_rtx.
7793         (mips_msa_vec_parallel_const_half): New function.
7794         (mips_gen_const_int_vector): Likewise.
7795         (mips_gen_const_int_vector_shuffle): Likewise.
7796         (mips_expand_msa_cmp): Likewise.
7797         (mips_expand_vec_cond_expr): Likewise.
7798         * config/mips/mips.h
7799         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7800         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7801         specified.
7802         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7803         (ISA_HAS_MSA): New macro.
7804         (UNITS_PER_MSA_REG): Likewise.
7805         (BITS_PER_MSA_REG): Likewise.
7806         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7807         (MSA_REG_FIRST): New macro.
7808         (MSA_REG_LAST): Likewise.
7809         (MSA_REG_NUM): Likewise.
7810         (MSA_REG_P): Likewise.
7811         (MSA_REG_RTX_P): Likewise.
7812         (MSA_SUPPORTED_MODE_P): Likewise.
7813         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7814         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7815         * config/mips/mips.md: Include mips-msa.md.
7816         (alu_type): Add simd_add.
7817         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
7818         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
7819         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
7820         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
7821         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
7822         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
7823         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
7824         simd_move, simd_load, simd_store.  Choose "multi" for moves
7825         for "qword_mode".
7826         (qword_mode): New attribute.
7827         (insn_count): Add instruction count for quad moves.
7828         Increase the count for MIPS SIMD division.
7829         (UNITMODE): Add UNITMODEs for vector types.
7830         (addsub): New code iterator.
7831         * config/mips/mips.opt (mmsa): New option.
7832         * config/mips/msa.h: New file.
7833         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
7834         specified.
7835         * config/mips/mti-linux.h: Likewise.
7836         * config/mips/predicates.md
7837         (const_msa_branch_operand): New constraint.
7838         (const_uimm3_operand): Likewise.
7839         (const_uimm4_operand): Likewise.
7840         (const_uimm5_operand): Likewise.
7841         (const_uimm8_operand): Likewise.
7842         (const_imm5_operand): Likewise.
7843         (aq10b_operand): Likewise.
7844         (aq10h_operand): Likewise.
7845         (aq10w_operand): Likewise.
7846         (aq10d_operand): Likewise.
7847         (const_m1_operand): Likewise.
7848         (reg_or_m1_operand): Likewise.
7849         (const_exp_2_operand): Likewise.
7850         (const_exp_4_operand): Likewise.
7851         (const_exp_8_operand): Likewise.
7852         (const_exp_16_operand): Likewise.
7853         (const_vector_same_val_operand): Likewise.
7854         (const_vector_same_simm5_operand): Likewise.
7855         (const_vector_same_uimm5_operand): Likewise.
7856         (const_vector_same_uimm6_operand): Likewise.
7857         (const_vector_same_uimm8_operand): Likewise.
7858         (par_const_vector_shf_set_operand): Likewise.
7859         (reg_or_vector_same_val_operand): Likewise.
7860         (reg_or_vector_same_simm5_operand): Likewise.
7861         (reg_or_vector_same_uimm6_operand): Likewise.
7862         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7863         section.
7864         * doc/invoke.texi (-mmsa): Document new option.
7865
7866 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7867
7868         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7869         * configure: Regenerate.
7870         * config.in: Regenerate.
7871         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7872         on -fvtable-verify.
7873         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7874         (ENDFILE_VTV_SPEC): Define.
7875
7876 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7877
7878         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7879         registers in all interrupt handlers if necessary.
7880         (rl78_option_override): Add warning.
7881         (MUST_SAVE_MDUC_REGISTERS): New macro.
7882         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7883         * config/rl78/rl78.c (check_mduc_usage): New function.
7884         (mduc_regs): New structure to hold MDUC register data.
7885         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7886         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7887         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7888         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7889         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7890         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7891
7892 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7893
7894         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7895         (tree-ssa-loop-niter.h): Ditto.
7896         (idx_within_array_bound, ref_within_array_bound): New functions.
7897         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7898         Factor out check on writable base object to ...
7899         (base_object_writable): ... here.
7900
7901 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7902
7903         * config/arm/arm.md (probe_stack): Add modes to set source
7904         and destination.
7905
7906 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7907
7908         * regrename.c (base_reg_class_for_rename): New static function.
7909         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7910
7911 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7912
7913         * cgraph.c (thunk_adjust): Export.
7914         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7915         * cgraphunit.c (thunk_adjust): Export.
7916         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7917         thunks.
7918         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7919         inlinable.
7920         * tree-inline.c (expand_call_inline): Expand thunks inline.
7921
7922 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7923
7924         PR target/70998
7925         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7926         (*sse2_vd_cvtss2sd): Ditto.
7927         * config/i386/i386.md
7928         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7929         Generate *sse2_vd_cvtsd2ss pattern.
7930         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7931         Generate *sse2_vd_cvtss2sd pattern.
7932
7933 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7934
7935         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7936         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7937         users.
7938
7939 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7940
7941         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7942         * config/sh/sh.c: Define and declare variables on first use throughout
7943         the file.
7944         (current_function_interrupt): Change to bool type.
7945         (frame_insn): Rename to emit_frame_insn and update users.
7946         (push_regs): Use bool for 'interrupt_handler' argument.
7947         (save_schedule_s): Remove.
7948         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7949         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7950         targetm.asm_out.unaligned_op.di.
7951         (gen_far_branch): Remove redundant forward declaration.
7952         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7953         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7954         (sh_set_return_address, sh_function_ok_for_sibcall,
7955         scavenge_reg): Update comments.
7956         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7957         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7958         (sh_attr_renesas_p): Remove unnecessary parentheses.
7959         (branch_dest): Simplify.
7960         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7961         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7962         (CUMULATIVE_ARGS): Change macro to typedef.
7963         (current_function_interrupt): Change to bool type.
7964         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7965         Surround with __cplusplus ifdef.
7966         (sh_compare_op0, sh_compare_op1): Remove.
7967         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7968
7969 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7970
7971         * config/arm/arm.md: (arch): Add neon.
7972         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7973         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7974         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7975         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7976         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7977         (thumb2_movdf_vfp): Likewise.
7978
7979 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7980
7981         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7982         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7983         (*andqi_1): Add preferred_for_speed attribute to disparage
7984         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7985         (*<code>qi_1): Ditto.
7986         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7987         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7988         (*ashlqi3_1): Ditto.
7989         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7990         Add preferred_for_size attribute to disparage alternative 0 and
7991         preferred_for_speed attribute to disparage alternative 1 for
7992         TARGET_PARTIAL_REG_STALL targets.
7993
7994 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7995
7996         PR tree-optimization/70956
7997         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7998         def.
7999
8000 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
8001
8002         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8003         * config/sh/sh.c (sh_cbranch_distance): Implement it.
8004         * config/sh/sh.md (branch_zero): Remove define_attr.
8005         (define_delay): Disable delay slot if branch distance is one insn.
8006
8007 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8008
8009         * config/i386/i386.md (LEAMODE): New mode attribute.
8010         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8011         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8012         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
8013         operand 2 predicate.
8014         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8015         (*lea<mode>_general_3): Ditto.
8016         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8017
8018 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8019
8020         * genmddump.c (main): Convert argv from char ** to const char **.
8021
8022 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8023
8024         * coretypes.h (OVERRIDE): New macro.
8025         (FINAL): New macro.
8026
8027 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
8028
8029         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8030         allow coalescing if the types are compatible.
8031
8032 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8033
8034         * pass_manager.h (pass_manager::register_pass_name): New method.
8035         (pass_manager::get_pass_by_name): New method.
8036         (pass_manager::create_pass_tab): New method.
8037         (pass_manager::m_name_to_pass_map): New field.
8038         * passes.c (name_to_pass_map): Delete global in favor of field
8039         "m_name_to_pass_map" of pass_manager.
8040         (register_pass_name): Rename from a function to...
8041         (pass_manager::register_pass_name): ...this method, updating
8042         for renaming of global "name_to_pass_map" to field
8043         "m_name_to_pass_map".
8044         (create_pass_tab): Rename from a function to...
8045         (pass_manager::create_pass_tab): ...this method, updating
8046         for renaming of global "name_to_pass_map" to field.
8047         (get_pass_by_name): Rename from a function to...
8048         (pass_manager::get_pass_by_name): ...this method.
8049         (enable_disable_pass): Convert use of get_pass_by_name to
8050         a method call, locating the pass_manager singleton.
8051
8052 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8053
8054         * genattr-common.c (main): Convert argv from char ** to const char **.
8055         * genattr.c (main): Likewise.
8056         * genattrtab.c (main): Likewise.
8057         * genautomata.c (initiate_automaton_gen): Likewise.
8058         (main): Likewise.
8059         * gencodes.c (main): Likewise.
8060         * genconditions.c (main): Likewise.
8061         * genconfig.c (main): Likewise.
8062         * genconstants.c (main): Likewise.
8063         * genemit.c (main): Likewise.
8064         * genenums.c (main): Likewise.
8065         * genextract.c (main): Likewise.
8066         * genflags.c (main): Likewise.
8067         * genmddeps.c (main): Likewise.
8068         * genopinit.c (main): Likewise.
8069         * genoutput.c (main): Likewise.
8070         * genpeep.c (main): Likewise.
8071         * genpreds.c (main): Likewise.
8072         * genrecog.c (main): Likewise.
8073         * gensupport.c (init_rtx_reader_args_cb): Likewise.
8074         (init_rtx_reader_args): Likewise.
8075         * gensupport.h (init_rtx_reader_args_cb): Likewise.
8076         (init_rtx_reader_args): Likewise.
8077         * gentarget-def.c (main): Likewise.
8078         * read-md.c (read_md_files): Likewise.
8079         * read-md.h (read_md_files): Likewise.
8080
8081 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8082
8083         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8084         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8085         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8086         Remove unused predicate.
8087         (register_and_not_fp_reg_operand): Ditto.
8088
8089 2016-05-06  Martin Liska  <mliska@suse.cz>
8090
8091         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8092         instead of vec as the vector is local to the function.
8093
8094 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8095
8096         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8097         avx512bw alternative.
8098
8099         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8100         before the ashr<mode>3 pattern.
8101
8102         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8103         v instead of x in vex or maybe_vex alternatives, use
8104         maybe_evex instead of vex in prefix.
8105
8106         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8107         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8108         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8109         in vex or maybe_vex alternatives, use maybe_evex instead of vex
8110         in prefix.
8111
8112         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8113         v instead of x in vex or maybe_vex alternatives, use
8114         maybe_evex instead of vex in prefix.
8115
8116         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8117         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8118         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8119         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8120         alternatives, use maybe_evex instead of vex in prefix.
8121
8122         * config/i386/sse.md (vec_interleave_lowv4sf,
8123         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8124         v instead of x in vex or maybe_vex alternatives, use
8125         maybe_evex instead of vex in prefix.
8126
8127         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8128         v instead of x in vex or maybe_vex alternatives, use
8129         maybe_evex instead of vex in prefix.
8130
8131         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8132         v constraint instead of x.
8133
8134 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
8135
8136         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8137         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8138         equality first.
8139
8140 2016-05-06  Richard Biener  <rguenther@suse.de>
8141
8142         PR tree-optimization/70948
8143         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8144         Properly clobber all fields of va_list for __builtin_va_start.
8145
8146 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8147
8148         PR debug/70935
8149         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8150         loop latch destination.
8151
8152 2016-05-06  Martin Liska  <mliska@suse.cz>
8153
8154         * tree-ssa-uninit.c: Apply manual changes
8155         to the GNU coding style.
8156         (prune_uninit_phi_opnds): Rename from
8157         prune_uninit_phi_opnds_in_unrealizable_paths.
8158
8159 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8160
8161         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8162         mspace): Remove deprecated options.
8163         * doc/invoke.texi (SH options): Remove -mspace.
8164
8165 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8166
8167         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8168
8169 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8170
8171         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8172         corresponding combine split pattern.
8173
8174 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8175
8176         PR target/58219
8177         * config/sh/predicates.md (long_displacement_mem_operand): New.
8178         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8179         Add movi20, movi20s alternatives.  Adjust length attribute for
8180         alternatives.
8181         (movsi_ie): Allow for any FPU.  Adjust length attribute for
8182         alternatives.
8183         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
8184         attribute for alternatives.
8185         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8186         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8187         length attribute for alternatives.
8188
8189 2016-05-06  Richard Biener  <rguenther@suse.de>
8190
8191         PR tree-optimization/70960
8192         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8193
8194 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8195
8196         PR target/52933
8197         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8198         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8199
8200 2016-05-06  Marek Polacek  <polacek@redhat.com>
8201
8202         PR sanitizer/70875
8203         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8204
8205 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8206
8207         PR target/54089
8208         * config/sh/sh.md (*rotcr): Add another variant.
8209
8210 2016-05-06  Richard Biener  <rguenther@suse.de>
8211
8212         PR middle-end/70931
8213         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8214
8215 2016-05-06  Richard Biener  <rguenther@suse.de>
8216
8217         PR middle-end/70941
8218         * fold-const.c (split_tree): Always convert to the original type
8219         before negating.
8220
8221 2016-05-06  Richard Biener  <rguenther@suse.de>
8222
8223         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8224         (fwprop_addr): Likewise.
8225
8226 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8227
8228         PR target/70873
8229         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8230         New prototype.
8231         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8232         * config/i386/i386.md (push mem splitter): Use find_constant_src in
8233         the splitter condition.
8234         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8235         the splitter condition.
8236         (FP float_extend load splitter): Ditto.
8237
8238 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
8239
8240         * config/i386/i386.md (peehole2 patterns): Change true_regnum
8241         to REGNO in all peephole2 patterns.
8242         (post-reload splitters): Change true_regnum to REGNO in
8243         post-reload splitters.
8244         (zero_extend splitters): Use general_reg_operand and
8245         nonimmediate_gr_operand predicates.
8246
8247 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
8248
8249         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8250         v constraint instead of x.
8251
8252 2016-05-05  Alan Modra  <amodra@gmail.com>
8253
8254         PR target/68662
8255         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8256         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
8257         TARGET_NO_FP_IN_TOC for -mrelocatable.
8258         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8259         TARGET_RELOCATABLE test.
8260         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8261         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8262         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8263         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8264         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8265         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8266         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8267         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8268         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8269         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8270         Likewise.
8271         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8272         (rs6000_stack_info): Likewise.
8273         (rs6000_elf_asm_out_constructor): Likewise.
8274         (rs6000_elf_asm_out_destructor): Likewise.
8275         (rs6000_elf_declare_function_name): Likewise.
8276         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8277         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8278         Don't define.
8279
8280 2016-05-05  Alan Modra  <amodra@gmail.com>
8281
8282         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8283
8284 2016-05-05  Alan Modra  <amodra@gmail.com>
8285
8286         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8287         out-of-line gpr restore for one or two regs if that would add
8288         a save of lr.
8289
8290 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
8291
8292         PR target/70873
8293         * config/i386/i386.md
8294         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8295         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
8296         as operand 0 predicate.
8297         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
8298         Ditto.
8299         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
8300         Ditto.  Emit the pattern using RTX.
8301
8302         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
8303         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
8304         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
8305         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
8306         Ditto.
8307         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
8308         sse_reg_operand as operand 0 predicate.
8309
8310         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
8311         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
8312         instead of gen_rtx_REG.
8313         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
8314         Ditto.
8315
8316 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8317
8318         * function.c (emit_use_return_register_into_block): Delete.
8319         (gen_return_pattern): Delete.
8320         (emit_return_into_block): Delete.
8321         (active_insn_between): Delete.
8322         (convert_jumps_to_returns): Delete.
8323         (emit_return_for_exit): Delete.
8324         (thread_prologue_and_epilogue_insns): Delete all code dealing with
8325         simple_return for shrink-wrapped blocks.
8326         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
8327         end of blocks that need one.
8328         (get_unconverted_simple_return): Delete.
8329         (convert_to_simple_return): Delete.
8330         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
8331         (convert_to_simple_return): Ditto.
8332
8333 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8334
8335         * cfgcleanup.c (bb_is_just_return): New function.
8336         (try_optimize_cfg): Simplify jumps to return, branches to return,
8337         and branches around return.
8338
8339 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8340
8341         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
8342         branch to a return.
8343
8344 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8345
8346         PR c++/70906
8347         PR c++/70933
8348         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
8349         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
8350         assert flags & OEP_HASH_CHECK, instead of asserting it
8351         never happens.  Handle TARGET_EXPR.
8352         * fold-const.c (operand_equal_p): For hash verification,
8353         or in OEP_HASH_CHECK into flags.
8354
8355 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8356
8357         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
8358         comment.
8359         (compute_samebase_partition_bases): Fix typo.
8360
8361 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8362
8363         * config/i386/sse.md (vec_interleave_highv8sf,
8364         vec_interleave_lowv8sf, vec_interleave_highv4df,
8365         vec_interleave_lowv4df): Remove constraints from expanders.
8366
8367         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
8368
8369 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8370
8371         * tree-inline.c (expand_call_inline): Fix path dealing with
8372         making lhs of call statement undefined.
8373
8374 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8375
8376         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8377         Check availability on NODE, too.
8378         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
8379         (cgraph_node::call_for_symbol_and_aliases): Likewise.
8380         (varpool_node::call_for_symbol_and_aliase): Likewise.
8381         * ipa-pure-const.c (add_new_function): Analyze all bodies.
8382         (propagate_pure_const): Propagate across interposable functions, too.
8383         (skip_function_for_local_pure_const): Do not skip interposable bodies
8384         with aliases.
8385         (pass_local_pure_const::execute): Update.
8386
8387 2016-05-04  Marek Polacek  <polacek@redhat.com>
8388
8389         * doc/invoke.texi: Document -Wdangling-else.
8390
8391 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8392
8393         * config.gcc: Error out when conflicting multilib is detected.  Do not
8394         loop over multilibs since no combination is legal.
8395
8396 2016-05-04  Alan Modra  <amodra@gmail.com>
8397
8398         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
8399         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
8400         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8401         Align .toc.
8402
8403 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
8404
8405         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
8406         Clean up p5600 comments.
8407
8408 2016-05-04  Richard Biener  <rguenther@suse.de>
8409
8410         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
8411         constructor simplifications.
8412         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
8413
8414 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
8415
8416         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
8417         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
8418         result.set_rtx is null instead of aborting.
8419         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
8420         Always enable.
8421         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
8422         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
8423         *mov<mode>_store_postinc): New patterns.
8424
8425 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
8426
8427         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
8428         as commutative.  Check both conversions are NOP.
8429         ((A & B) OP (C & B)): Remove.
8430
8431 2016-05-04  Alan Modra  <amodra@gmail.com>
8432
8433         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
8434
8435 2016-05-04  Alan Modra  <amodra@gmail.com>
8436
8437         PR target/70866
8438         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
8439         when cr2,3,4 are all fixed regs.
8440
8441 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
8442
8443         PR rtl-optimization/57193
8444         * opts.c (default_options_table): Revert OPT_frename_registers change.
8445         * doc/invoke.texi (-frename-registers, -O2): Likewise.
8446
8447 2016-05-03  Martin Sebor  <msebor@redhat.com>
8448
8449         PR c++/66561
8450         * builtins.c (fold_builtin_FILE): New function.
8451         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
8452         (fold_builtin_0): Call them.
8453         * gimplify.c (gimplify_call_expr): Remove the handling of
8454         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
8455
8456         PR c++/66561
8457         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
8458         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
8459         constants.
8460
8461         PR c++/66639
8462         * doc/extend.texi (Function Names as Strings): Update __func__,
8463         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
8464         constants.
8465
8466 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8467             Richard Biener  <rguenther@suse.de>
8468
8469         PR tree-optimization/70916
8470         * tree-if-conv.c: Include cfganal.h.
8471         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
8472         and remove_fake_exit_edges around the optimization pass.
8473
8474 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
8475
8476         * cgraph.c (symbol_table::create_edge): Set inline_failed.
8477         (cgraph_edge::make_direct): Likewise.
8478         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
8479         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
8480         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
8481         (CIF_THUNK): New code.
8482         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
8483         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
8484         (compute_inline_parameters): Set inline_failed for thunks.
8485         (inline_analyze_function): Cleanup.
8486         * ipa-inline.c (can_inline_edge_p): Do not deal with
8487         call_stmt_cannot_inline_p.
8488         (can_early_inline_edge_p): Likewise.
8489         (early_inliner): Initialize inline_failed.
8490         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
8491
8492 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
8493
8494         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
8495         from nonimm_ssenomem_operand.
8496         (nonimm_ssenomem_operand): New predicate.
8497         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
8498         as operand 0 predicate.
8499         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
8500         Disable unsupported alternatives using "enabled" attribute.
8501         Use register_ssemem_operand as operand 0 predicate.
8502         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
8503
8504 2016-05-03  Marek Polacek  <polacek@redhat.com>
8505
8506         PR c/70859
8507         * input.c (expansion_point_location): New function.
8508         * input.h (expansion_point_location): Declare.
8509
8510 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8511
8512         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
8513         occurence with frame_offset_ ones.
8514
8515 2016-05-03  Alan Modra  <amodra@gmail.com>
8516
8517         PR rtl-optimization/70890
8518         * ira.c (combine_and_move_insns): When moving def_insn, remove
8519         equivs on use_insn.
8520
8521 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8522
8523         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
8524         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
8525         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
8526         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
8527
8528 2016-05-03  Alan Modra  <amodra@gmail.com>
8529
8530         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
8531         for SAVE_MULTIPLE/STORE_MULTIPLE.
8532
8533 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8534
8535         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
8536         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
8537
8538 2016-05-03  Richard Biener  <rguenther@suse.de>
8539
8540         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
8541         default true.
8542         (gimplify_arg): Likewise.
8543         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
8544         re-writing the result to a decl if required.
8545         (internal_get_tmp_var): Add allow_ssa parameter
8546         and override into_ssa with it.
8547         (get_formal_tmp_var): Adjust.
8548         (get_initialized_tmp_var): Add allow_ssa parameter.
8549         (gimplify_arg): Add allow_ssa parameter and avoid generating
8550         SSA names for the result false.
8551         (gimplify_call_expr): If the call may return twice do not
8552         gimplify parameters into SSA.
8553         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
8554         (gimplify_modify_expr): Adjust assert.  For noreturn calls
8555         with a SSA name LHS adjust its def.
8556         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
8557         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
8558         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
8559         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
8560         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
8561         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
8562         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
8563         (optimize_target_teams): Do not allow SSA names for clause operands.
8564         (gimplify_expr): Likewise for where we mark the result addressable.
8565         * passes.def (pass_init_datastructures): Remove.
8566         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
8567         (rewrite_stmt): Likewise.
8568         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
8569         (replace_locals_op): Replace SSA names.
8570         (copy_gimple_seq_and_replace_locals): Init src_cfun.
8571         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
8572         * cgraph.c (release_function_body): Free CFG annotations only
8573         when we have a CFG.  Simplify.
8574         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8575         force_gimple_operand instead of get_initialized_tmp_var.
8576         * tree-pass.h (make_pass_init_datastructures): Remove.
8577         * tree-ssa.c (execute_init_datastructures): Remove.
8578         (pass_data_init_datastructures): Likewise.
8579         (class pass_init_datastructures): Likewise.
8580         (make_pass_init_datastructures): Likewise.
8581         * omp-low.c (create_omp_child_function): Init SSA data structures.
8582         (grid_expand_target_grid_body): Likewise.
8583         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
8584         name before adding it to names_to_release.
8585         (remove_bb): Always release SSA defs.
8586         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
8587         before dereferencing it.
8588         * cgraphunit.c (init_lowered_empty_function): Always
8589         int SSA data structures.
8590         * tree-ssanames.c (release_defs): Remove assert that we are in
8591         SSA form.
8592         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
8593
8594 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8595             Uros Bizjak  <ubizjak@gmail.com>
8596
8597         PR rtl-optimization/70467
8598         * config/i386/predicates.md (x86_64_hilo_int_operand,
8599         x86_64_hilo_general_operand): New predicates.
8600         * config/i386/constraints.md (Wd): New constraint.
8601         * config/i386/i386.md (mode attr di): Use Wd instead of e.
8602         (general_hilo_operand): New mode attr.
8603         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
8604         instead of <general_operand>.
8605         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
8606         x86_64_hilo_general_operand instead of <general_operand>.
8607
8608 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
8609
8610         PR tree-optimization/70916
8611         * tree-if-conv.c (constant_or_ssa_name): Removed.
8612         (fold_build_cond_expr): Use is_gimple_val instead of
8613         constant_or_ssa_name.
8614
8615         PR tree-optimization/70916
8616         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
8617         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
8618
8619         PR target/49244
8620         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
8621         (optimize_atomic_bit_test_and): New function.
8622         (pass_fold_builtins::execute): Use it.
8623         * optabs.def (atomic_bit_test_and_set_optab,
8624         atomic_bit_test_and_complement_optab,
8625         atomic_bit_test_and_reset_optab): New optabs.
8626         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
8627         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
8628         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
8629         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
8630         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
8631         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
8632         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
8633         * doc/md.texi (atomic_bit_test_and_set@var{mode},
8634         atomic_bit_test_and_complement@var{mode},
8635         atomic_bit_test_and_reset@var{mode}): Document.
8636         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
8637         atomic_bit_test_and_complement<mode>,
8638         atomic_bit_test_and_reset<mode>): New expanders.
8639         (atomic_bit_test_and_set<mode>_1,
8640         atomic_bit_test_and_complement<mode>_1,
8641         atomic_bit_test_and_reset<mode>_1): New insns.
8642
8643 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
8644
8645         PR rtl-optimization/70687
8646         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
8647         instead of unsigned HOST_WIDE_INT.
8648
8649 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
8650
8651         PR rtl-optimization/44281
8652         * hard-reg-set.h (struct target_hard_regs): New field
8653         x_fixed_nonglobal_reg_set.
8654         (fixed_nonglobal_reg_set): New macro.
8655         * reginfo.c (init_reg_sets_1): Initialize it.
8656         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
8657         of fixed_reg_set.
8658         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
8659
8660 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8661
8662         PR tree-optimization/56541
8663         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
8664         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
8665         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
8666         (any_complicated_phi): new static variable.
8667         (aggressive_if_conv): delete.
8668         (if_convertible_phi_p): support phis with more than two arguments.
8669         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
8670         critical pred edges.
8671         (ifcvt_split_critical_edges): support phis with more than two
8672         arguments by checking new parameter.  only split critical edges
8673         if needed.
8674         (tree_if_conversion): handle simd pragma marked loop using new
8675         local variable aggressive_if_conv.  check any_complicated_phi.
8676
8677 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8678
8679         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
8680         before using it.
8681
8682 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
8683
8684         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
8685         cbase.
8686
8687 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
8688
8689         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
8690         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
8691         define_insn_and_split.
8692         (mulsi3_i): New define_insn_and_split.
8693         (mulsi3_call): Convert to define_insn.
8694         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
8695         Remove constraints.
8696
8697 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8698
8699         * machmode.h (mode_complex): Add support to give the complex mode
8700         for a given mode.
8701         (GET_MODE_COMPLEX_MODE): Likewise.
8702         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
8703         stored by build_complex_type and gfc_build_complex_type instead of
8704         trying to figure out the appropriate mode based on the size. Raise
8705         an assertion error, if the type was not set.
8706         * genmodes.c (struct mode_data): Add field for the complex type of
8707         the given type.
8708         (blank_mode): Likewise.
8709         (make_complex_modes): Remember the complex mode created in the
8710         base type.
8711         (emit_mode_complex): Write out the mode_complex array to map a
8712         type mode to the complex version.
8713         (emit_insn_modes_c): Likewise.
8714         * tree.c (build_complex_type): Set the complex type to use before
8715         calling layout_type.
8716         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8717         support for __float128 complex datatypes.
8718         (rs6000_hard_regno_mode_ok): Likewise.
8719         (rs6000_setup_reg_addr_masks): Likewise.
8720         (rs6000_complex_function_value): Likewise.
8721         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8722         __float128 and __ibm128 complex.
8723         (FLOAT128_IBM_P): Likewise.
8724         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8725         * doc/extend.texi (Additional Floating Types): Document that
8726         -mfloat128 must be used to enable __float128.  Document complex
8727         __float128 and __ibm128 support.
8728
8729 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8730
8731         PR target/49244
8732         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8733         char/short arguments promoted to int because of promote_prototypes.
8734
8735 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8736
8737         * config/i386/predicates.md (register_ssemem_operand): New predicate.
8738         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8739         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8740         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
8741         alternatives using "enabled" attribute.  Use register_ssemem_operand
8742         as operand 1 predicate.
8743         (*cmpi<unord>xf_i387): Split XFmode pattern from
8744         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8745         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8746         *absneg<mode>2_i387.  Disable unsupported alternatives using
8747         "enabled" attribute.
8748         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8749
8750 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8751
8752         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8753         marker.
8754         (oacc_loop_process): Check mask for loop termination.
8755
8756 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8757
8758         * cif-code.def (CIF_THUNK): Add.
8759         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8760         accidental change.
8761
8762 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
8763
8764         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8765         (dump_inline_summary): Dump it.
8766         (fp_expression_p): New predicate.
8767         (estimate_function_body_sizes): Use it.
8768         (inline_merge_summary): Merge fp_expressions.
8769         (inline_read_section): Read fp_expressions.
8770         (inline_write_summary): Write fp_expressions.
8771         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8772         codegen boundary if either caller or callee is !fp_expressions.
8773         * ipa-inline.h (inline_summary): Add fp_expressions.
8774         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8775         to fp_expressions be sure the fp generation flags are updated.
8776
8777 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
8778
8779         PR rtl-optimization/70467
8780         * cse.c (cse_insn): Handle no-op MEM moves after folding.
8781
8782         PR rtl-optimization/70467
8783         * ipa-pure-const.c (check_call): Handle internal calls even in
8784         ipa mode like in local mode.
8785
8786 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8787
8788         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8789
8790 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8791
8792         * match.pd (X u< X, X u> X): New transformations.
8793
8794 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
8795
8796         * flag-types.h (enum warn_strict_overflow_code): Move ...
8797         * coretypes.h: ... here.
8798         * fold-const.h (fold_overflow_warning): Declare.
8799         * fold-const.c (fold_overflow_warning): Make non-static.
8800         (fold_comparison): Move the transformation of X +- C1 CMP C2
8801         into X CMP C2 -+ C1 ...
8802         * match.pd: ... here.
8803         * gimple-fold.c (fold_stmt_1): Protect with
8804         fold_defer_overflow_warnings.
8805
8806 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8807
8808         * omp-low.c (struct oacc_loop): Add 'inner' field.
8809         (new_oacc_loop_raw): Initialize it to zero.
8810         (oacc_loop_fixed_partitions): Initialize it.
8811         (oacc_loop_auto_partitions): Partition outermost loop to outermost
8812         available partitioning.
8813
8814 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8815
8816         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
8817         register_operand.
8818         (umulsidi3): Likewise.
8819         (indirect_jump): Fix jump instruction assembly patterns.
8820
8821 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
8822
8823         PR target/70860
8824         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
8825         (nvptx_function_value): Assert non-NULL cfun.
8826
8827 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8828
8829         PR rtl-optimization/70886
8830         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
8831
8832         * cselib.h (rtx_equal_for_cselib_1): Declare.
8833         (rtx_equal_for_cselib_p: New inline function.
8834         * cselib.c (rtx_equal_for_cselib_p): Delete.
8835         (rtx_equal_for_cselib_1): Make public.
8836
8837 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
8838
8839         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
8840         (register_mixssei387nonimm_operand): Remove predicate.
8841         * config/i386/i386.md (*fop_<mode>_comm): Merge from
8842         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
8843         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
8844         for TARGET_MIX_SSE_I387 alternatives.
8845         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
8846         Disable unsupported alternatives using "enabled" attribute.  Use
8847         nonimm_ssenomem_operand as operand 1 predicate.  Also check
8848         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
8849
8850 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8851
8852         * tree.c (cst_and_fits_in_hwi): Simplify.
8853
8854 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8855
8856         * tree.h (wi::to_wide): New function.
8857         * expr.c (expand_expr_real_1): Use wi::to_wide.
8858         * fold-const.c (int_const_binop_1): Likewise.
8859         (extract_muldiv_1): Likewise.
8860
8861 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8862
8863         * wide-int.h: Update offset_int and widest_int documentation.
8864         (WI_SIGNED_SHIFT_RESULT): New macro.
8865         (wi::binary_shift): Define signed_shift_result_type for
8866         shifts on offset_int- and widest_int-like types.
8867         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8868         * tree.h (int_bit_position): Use shift operators instead of wi::
8869          shifts.
8870         * alias.c (adjust_offset_for_component_ref): Likewise.
8871         * expr.c (get_inner_reference): Likewise.
8872         * fold-const.c (fold_comparison): Likewise.
8873         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8874         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8875         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8876         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8877         (stmt_kills_ref_p): Likewise.
8878         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8879         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8880         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8881         (ao_ref_init_from_vn_reference): Likewise.
8882
8883 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8884
8885         * wide-int.h: Update offset_int and widest_int documentation.
8886         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8887         (wi::binary_traits): Allow ordered comparisons between offset_int and
8888         offset_int, between widest_int and widest_int, and between either
8889         of these types and basic C types.
8890         (operator <, <=, >, >=): Define for the same combinations.
8891         * tree.h (tree_int_cst_lt): Use comparison operators instead
8892         of wi:: comparisons.
8893         (tree_int_cst_le): Likewise.
8894         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8895         (fold_nonarray_ctor_reference): Likewise.
8896         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8897         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8898         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8899         * tree-sra.c (completely_scalarize): Likewise.
8900         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8901         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8902         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8903         (check_for_binary_op_overflow): Likewise.
8904         (search_for_addr_array): Likewise.
8905         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8906
8907 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8908
8909         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8910         (arc_save_restore): Likewise.
8911         (arc_dwarf_register_span): Likewise.
8912         (arc_output_pic_addr_const): Initialize suffix variable.
8913
8914 2016-05-02  Martin Liska  <mliska@suse.cz>
8915
8916         * symbol-summary.h (function_summary::function_summary):
8917         Remove checking assert for all cgraph nodes.
8918         (function_summary::get): Check summary_uid.
8919         (symtab_insertion): Check summary_uid.
8920
8921 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8922
8923         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8924         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8925         bmaskn instruction.
8926         (arc_dwarf_register_span): Remove enum keyword.
8927         (compact_memory_operand_p): New function.
8928         * config/arc/arc.h (reg_class): Add code density register classes.
8929         (REG_CLASS_NAMES): Likewise.
8930         (REG_CLASS_CONTENTS): Likewise.
8931         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8932         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8933         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8934         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8935         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8936         constraints.
8937         (h, Rcd, Rsd, Rzd): New register constraints.
8938         (T): Use compact_memory_operand_p function.
8939         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8940
8941 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8942
8943         * config/sh/sh.md (*negnegt, *movtt): Remove.
8944
8945 2016-05-02  Marek Polacek  <polacek@redhat.com>
8946             Tom de Vries  <tom@codesourcery.com>
8947
8948         PR tree-optimization/70700
8949         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8950         bigger than FIRST_REF_NODE.
8951
8952 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8953
8954         PR target/52898
8955         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8956         TARGET_CMPEQDI_T.
8957         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8958         function is used when pseudos can be created.
8959         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8960         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8961         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8962         define_expand.  Allow it only when pseudos can be created.
8963         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8964
8965 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8966
8967         * config/i386/constraints.md (BC): Only allow -1 operands.
8968         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8969         Add "enabled" attribute.  Update XI mode attribute calculation.
8970         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8971         (*movoi_internal_avx): Update XI mode attribute calculation.
8972         (*movti_internal): Ditto.
8973
8974 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8975
8976         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8977         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8978
8979 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8980
8981         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8982         statement on instruction code.  Remove trailing spaces.
8983         (altivec_expand_stv_builtin): Likewise.
8984
8985 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8986
8987         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8988         (TARGET_FPU_DOUBLE): Simplify.
8989         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8990         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8991         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8992         with 'TARGET_FPU_DOUBLE'.
8993         * config/sh/sh.md: Likewise.
8994
8995 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8996
8997         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8998         SH_DIV_STR_FOR_SIZE): Remove.
8999         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9000         SH_DIV_STR_FOR_SIZE): Remove.
9001
9002 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9003
9004         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9005         logical_reg_operand): Delete.
9006         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9007         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9008         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9009         match_operand and match_test.
9010         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
9011         variables on their first use.  Return bool values.
9012         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9013         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9014         arith_reg_operand for input operand.  Remove empty constraints.
9015         (xorsi3): Delete.
9016         (*xorsi3_compact): Rename to xorsi3.
9017         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9018         (*zero_extend<mode>si2_disp_mem): Update comment.
9019         (mov_nop): Delete.
9020
9021 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9022
9023         * config/sh/t-sh: Remove SH5 support.
9024         * config.gcc: Likewise.
9025         * configure: Likewise.
9026
9027 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9028
9029         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9030
9031 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9032
9033         * config/sh/sh.c (register_sh_passes, sh_option_override,
9034         sh_print_operand, prepare_move_operands,
9035         sh_can_follow_jump): Remove TARGET_SH1 checks.
9036         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9037         PROMOTE_MODE): Likewise.
9038         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9039         movdi): Likewise.
9040
9041 2016-04-30  Alan Modra  <amodra@gmail.com>
9042
9043         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9044         restoring when fixed_reg_p, but allow out-of-line or stmw save.
9045         Check for user regs later to avoid unnecessary looping over regs.
9046         Merge user reg check with non-saved reg check.  Don't force
9047         inline VR restore when static chain used.
9048         (rs6000_frame_related): Omit eh_frame info for user regs when
9049         saving.
9050         (fixed_regs_p): Delete.
9051
9052 2016-04-30  Alan Modra  <amodra@gmail.com>
9053
9054         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9055         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
9056         Update all uses.
9057
9058 2016-04-30  Alan Modra  <amodra@gmail.com>
9059
9060         PR target/69645
9061         * config/rs6000/rs6000.c (fixed_reg_p): New function.
9062         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
9063         Update all uses.
9064
9065 2016-04-30  Alan Modra  <amodra@gmail.com>
9066
9067         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9068         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
9069         flag_pic test for Darwin.
9070
9071 2016-04-30  Alan Modra  <amodra@gmail.com>
9072
9073         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9074         throw_calls_crossed.
9075         (REG_FREQ_CALLS_CROSSED): Delete.
9076         (REG_N_THROWING_CALLS_CROSSED): Delete.
9077         * regstat.c (regstat_bb_compute_ri): Don't calculate
9078         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9079         (dump_reg_info): Don't print call cross frequency.
9080         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9081         and REG_N_THROWING_CALLS_CROSSED.
9082
9083 2016-04-30  Alan Modra  <amodra@gmail.com>
9084
9085         * regs.h (struct reg_info_t): Delete live_length.
9086         (REG_LIVE_LENGTH): Delete macro.
9087         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9088         local_live, local_processed and local_live_last_luid params.
9089         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
9090         Formatting fixes.
9091         (regstat_compute_ri): Adjust for above.  Don't set
9092         REG_LIVE_LENGTH.
9093         (dump_reg_info): Don't print live length.
9094         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9095         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
9096         Localize loop_depth var.
9097
9098 2016-04-30  Alan Modra  <amodra@gmail.com>
9099
9100         * ira.c (enum valid_equiv): New.
9101         (validate_equiv_mem): Return enum.
9102         (update_equiv_mem): Create replacement in more cases.
9103         (add_store_equivs): Update validate_equiv_mem call.
9104
9105 2016-04-30  Alan Modra  <amodra@gmail.com>
9106
9107         * ira.c (combine_and_move_insns): Rather than scanning insns,
9108         use DF infrastucture to find use and def insns.
9109
9110 2016-04-30  Alan Modra  <amodra@gmail.com>
9111
9112         ira.c (combine_and_move_insns): Move invariant conditions..
9113         (ira.c): ..to here.  Call combine_and_move_insns before
9114         add_store_equivs.  Call grow_reg_equivs later.  Allocate
9115         req_equiv later using max_reg_num() rather than global max_regno.
9116         (contains_replace_regs): Delete.
9117         (add_store_equivs): Remove contains_replace_regs test.
9118
9119 2016-04-30  Alan Modra  <amodra@gmail.com>
9120
9121         * ira.c (struct equiv_mem_data): New.
9122         (equiv_mem, equiv_mem_modified): Delete static vars.
9123         (validate_equiv_mem_from_store): Use "data" param to communicate..
9124         (validate_equiv_mem): ..from here.
9125
9126 2016-04-30  Alan Modra  <amodra@gmail.com>
9127
9128         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9129         split out from..
9130         (update_reg_equivs): ..here.  Move allocation and freeing of
9131         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9132         end_alias_analysis to..
9133         (ira): ..here.
9134
9135 2016-04-30  Alan Modra  <amodra@gmail.com>
9136
9137         * ira.c (pdx_subregs): Delete.
9138         (struct equivalence): Add pdx_subregs field.
9139         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
9140         pdx_subregs access.
9141         (update_equiv_regs): Don't create or free pdx_subregs.  Update
9142         pdx_subregs access.
9143
9144 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9145
9146         * config/rs6000/altivec.h: Change definitions of vec_xl and
9147         vec_xst.
9148         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9149         (LD_ELEMREV_V2DI): New.
9150         (LD_ELEMREV_V4SF): New.
9151         (LD_ELEMREV_V4SI): New.
9152         (LD_ELEMREV_V8HI): New.
9153         (LD_ELEMREV_V16QI): New.
9154         (ST_ELEMREV_V2DF): New.
9155         (ST_ELEMREV_V2DI): New.
9156         (ST_ELEMREV_V4SF): New.
9157         (ST_ELEMREV_V4SI): New.
9158         (ST_ELEMREV_V8HI): New.
9159         (ST_ELEMREV_V16QI): New.
9160         (XL): New.
9161         (XST): New.
9162         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9163         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9164         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9165         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9166         (altivec_expand_builtin): Add handling for
9167         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9168         (rs6000_invalid_builtin): Add error-checking for
9169         RS6000_BTM_P9_VECTOR.
9170         (altivec_init_builtins): Define builtins used to implement vec_xl
9171         and vec_xst.
9172         (rs6000_builtin_mask_names): Define power9-vector.
9173         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9174         (RS6000_BTM_P9_VECTOR): Define.
9175         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9176         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9177         (vsx_ld_elemrev_v2df): Likewise.
9178         (vsx_ld_elemrev_v4sf): Likewise.
9179         (vsx_ld_elemrev_v4si): Likewise.
9180         (vsx_ld_elemrev_v8hi): Likewise.
9181         (vsx_ld_elemrev_v16qi): Likewise.
9182         (vsx_st_elemrev_v2df): Likewise.
9183         (vsx_st_elemrev_v2di): Likewise.
9184         (vsx_st_elemrev_v4sf): Likewise.
9185         (vsx_st_elemrev_v4si): Likewise.
9186         (vsx_st_elemrev_v8hi): Likewise.
9187         (vsx_st_elemrev_v16qi): Likewise.
9188         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
9189         grammar.
9190
9191 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
9192
9193         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9194         out into ...
9195         (simplify_control_stmt_condition_1): ... here.  Recurse into
9196         BIT_AND_EXPRs and BIT_IOR_EXPRs.
9197
9198 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
9199
9200         PR target/69810
9201         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9202         (zero_extendqi<mode>2_dot): Revert earlier conversion from
9203         define_insn_and_split to define_insn.
9204         (zero_extendqi<mode>2_dot2): Same.
9205         (extendqi<mode>2_dot): Same.
9206         (extendqi<mode>2_dot2): Same.
9207
9208 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9209
9210         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9211         (probe_stack): New expander.
9212         (probe_stack_<mode>): New insn pattern.
9213
9214 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9215
9216         * config/i386/i386.md
9217         (operations with memory inputs setting flags peephole2):
9218         Remove uneeded REG_P checks.  Cleanup pattern generation.
9219
9220 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9221
9222         * tree-vect-loop.c (vect_transform_loop): Fix
9223         nb_iterations_upper_bound computation for vectorized loop.
9224
9225 2016-04-29  Marek Polacek  <polacek@redhat.com>
9226             Jakub Jelinek  <jakub@redhat.com>
9227
9228         PR sanitizer/70342
9229         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9230         TARGET_EXPR_SLOT as a base.
9231
9232 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
9233
9234         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9235         with 'rCm2' constraints to limit possible immediate size.
9236         (*load_zeroextendqisi_update): Likewise.
9237         (*load_signextendqisi_update): Likewise.
9238         (*loadhi_update): Likewise.
9239         (*load_zeroextendhisi_update): Likewise.
9240         (*load_signextendhisi_update): Likewise.
9241         (*loadsi_update): Likewise.
9242         (*loadsf_update): Likewise.
9243
9244 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9245
9246         * config/i386/predicates.md (constm1_operand): Fix comparison.
9247
9248 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9249
9250         * testsuite/gcc.target/arc/ieee_eq.c: New test.
9251
9252 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
9253
9254         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9255         remaining SH5 related settings.
9256         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9257         shmedia_prepare_call_address): Delete.
9258         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9259         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9260         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9261         UNSUPPORTED_SH2A): Remove m5 checks.
9262         (sh_divide_strategy_e): Remove SH5 division strategies.
9263         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9264         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9265
9266 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9267
9268         * config/s390/s390.c (s390_rtx_costs): Update documentation.
9269
9270 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9271
9272         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9273         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9274         Change lder to ldr.
9275         * config/s390/vector.md ("mov<mode>"): Likewise.
9276
9277 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
9278
9279         * config/s390/constraints.md ("U", "W"): Invoke
9280         s390_mem_constraint with "ZR" and "ZT".
9281         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9282         addresses when using LRA.  Accept also short displacements for S
9283         and T constraints.  Do not check for long displacement target for
9284         S and T constraints.
9285         (s390_mem_constraint): Remove handling of U and W constraints.
9286         * config/s390/s390.md (various patterns): Remove the short
9287         displacement constraints (Q and R) if a long displacement
9288         constraint is present.  Add longdisp as required CPU capability.
9289         * config/s390/vector.md: Likewise.
9290         * config/s390/vx-builtins.md: Likewise.
9291
9292 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9293
9294         PR target/60040
9295         * reload1.c (reload): Call finish_spills before
9296         restarting reload loop. Skip select_reload_regs
9297         if update_eliminables_and_spill returns true.
9298
9299 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9300
9301         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
9302         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
9303         (umulhisi3_imm): Update predicates and constraint letters.
9304         (umulhisi3_reg): Declare instruction as commutative.
9305         * config/arc/constraints.md (J12, J16): New constraints.
9306         * config/arc/predicates.md (short_unsigned_const_operand): New
9307         predicate.
9308         (arc_short_operand): Likewise.
9309         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
9310
9311 2016-04-29  Richard Biener  <rguenther@suse.de>
9312
9313         PR tree-optimization/13962
9314         PR tree-optimization/65686
9315         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
9316         * tree-ssa-alias.c (ptrs_compare_unequal): New function
9317         using PTA to compare pointers.
9318         * match.pd: Add pattern for pointer equality compare simplification
9319         using ptrs_compare_unequal.
9320
9321 2016-04-29  Richard Biener  <rguenther@suse.de>
9322
9323         * stor-layout.c (layout_type): Do not build a pointer-to-element
9324         type for arrays.
9325
9326 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9327
9328         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
9329         Use SWI mode iterator.  Use general_reg_operand predicate.
9330         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
9331         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
9332         predicates.
9333
9334 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
9335
9336         PR middle-end/70843
9337         * fold-const.c (operand_equal_p): Don't verify hash value equality
9338         if arg0 == arg1.
9339         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
9340         and OMP_CLAUSE.
9341
9342 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9343
9344         PR target/70858
9345         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
9346         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
9347         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
9348         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
9349         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
9350
9351 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9352
9353         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
9354         to info.  Don't initialize separate fields to 0.  Clean up
9355         formatting a bit.
9356
9357 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9358
9359         * config/i386/i386.md (peephole2s for operations with memory inputs):
9360         Use SWI mode iterator.
9361         (peephole2s for operations with memory outputs): Ditto.
9362         Do not check for stack checking probe.
9363
9364         (probe_stack): Remove expander.
9365
9366 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9367             Andrew Burgess  <andrew.burgess@embecosm.com>
9368
9369         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
9370         operands as 32-bits.
9371
9372 2016-04-28  Jason Merrill  <jason@redhat.com>
9373
9374         * gdbinit.in: Skip line-map.h.
9375
9376 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9377             Andrew Burgess  <andrew.burgess@embecosm.com>
9378
9379         * config/arc/arc.c (arc_conditional_register_usage): Take
9380         TARGET_RRQ_CLASS into account.
9381         (arc_print_operand): Support printing 'p' and 's' operands.
9382         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
9383         as 0.
9384         (TARGET_RRQ_CLASS): Define.
9385         (IS_POWEROF2_OR_0_P): Define.
9386         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
9387         alternatives.
9388         (*tst_movb): New define_insn.
9389         (*tst): Avoid recognition if it could prevent '*tst_movb'
9390         combination; replace c/CnL with c/Chs alternative.
9391         (*tst_bitfield_tst): New define_insn.
9392         (*tst_bitfield_asr): New define_insn.
9393         (*tst_bitfield): New define_insn.
9394         (andsi3_i): Add Rrq variant.
9395         (extzv): New define_expand.
9396         (insv): New define_expand.
9397         (*insv_i): New define_insn.
9398         (*movb): New define_insn.
9399         (*movb_signed): New define_insn.
9400         (*movb_high): New define_insn.
9401         (*movb_high_signed): New define_insn.
9402         (*movb_high_signed + 1): New define_split pattern.
9403         (*mrgb): New define_insn.
9404         (*mrgb + 1): New define_peephole2 pattern.
9405         (*mrgb + 2): New define_peephole2 pattern.
9406         * config/arc/arc.opt (mbitops): New option for nps400, uses
9407         TARGET_NPS_BITOPS_DEFAULT.
9408         * config/arc/constraints.md (q): Make register class conditional.
9409         (Rrq): New register constraint.
9410         (Chs): New constraint.
9411         (Clo): New constraint.
9412         (Chi): New constraint.
9413         (Cbf): New constraint.
9414         (Cbn): New constraint.
9415         (C18): New constraint.
9416         (Cbi): New constraint.
9417
9418 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9419
9420         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
9421         dst->popcount.
9422         (bitmap_intersection_of_preds): Ditto.
9423         (bitmap_union_of_succs): Ditto.
9424         (bitmap_union_of_preds): Ditto.
9425         * sbitmap.c (do_popcount): Delete.
9426         (BITMAP_DEBUGGING): Delete.
9427         (sbitmap_verify_popcount): Delete.
9428         (sbitmap_alloc): Don't initialize the popcount field.
9429         (sbitmap_alloc_with_popcount): Delete.
9430         (sbitmap_resize): Don't resize the popcount array.
9431         (sbitmap_vector_alloc): Don't initialize the popcount field.
9432         (bitmap_copy): Don't copy the popcount array.
9433         (bitmap_clear): Don't clear the popcount array.
9434         (bitmap_clear): Delete the popcount array handling.
9435         (bitmap_ior_and_compl): Delete the popcount assert.
9436         (bitmap_not): Ditto.
9437         (bitmap_and_compl): Ditto.
9438         (bitmap_and): Delete the popcount array handling.
9439         (bitmap_xor): Ditto.
9440         (bitmap_ior): Ditto.
9441         (bitmap_or_and): Delete the popcount assert.
9442         (bitmap_and_or): Ditto.
9443         (popcount_table): Delete.
9444         (sbitmap_elt_popcount): Delete.
9445         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
9446         (bitmap_set_bit): Delete the popcount assert.
9447         (bitmap_clear_bit): Ditto.
9448         (sbitmap_free): Don't free the popcount array.
9449         (sbitmap_alloc_with_popcount): Delete declaration.
9450         (sbitmap_popcount): Ditto.
9451
9452 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9453             Andrew Burgess  <andrew.burgess@embecosm.com>
9454
9455         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
9456         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
9457         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
9458         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
9459         * config/arc/arc.opt (mcmem): New option.
9460         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
9461         supply length for r/m alternative.
9462         (*extendqisi2_ac): Likewise.
9463         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
9464         r/Uex alternative.
9465         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
9466         (movhi_insn): Likewise.
9467         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
9468         (*zero_extendqihi2_i): Add r/Ucm alternative.
9469         (*zero_extendqisi2_ac): Likewise.
9470         (*zero_extendhisi2_i): Likewise.
9471         * config/arc/constraints.md (Uex): New memory constraint.
9472         (Ucm): New define_constraint.
9473         * config/arc/predicates.md (long_immediate_loadstore_operand):
9474         Return 0 for MEM with cmem_address address.
9475         (cmem_address_0): New predicates.
9476         (cmem_address_1): Likewise.
9477         (cmem_address_2): Likewise.
9478         (cmem_address): Likewise.
9479
9480 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9481
9482         * config/rs6000/rs6000.c (machine_function): Rename
9483         insn_chain_scanned_p to spe_insn_chain_scanned_p.
9484         (rs6000_stack_info): Adjust.
9485
9486 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9487             Andrew Burgess  <andrew.burgess@embecosm.com>
9488
9489         * config/arc/constraints.md (Usd): Convert to define_constraint.
9490         (Us<): Likewise.
9491         (Us>): Likewise.
9492
9493 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9494
9495         PR target/70821
9496         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
9497         Add new peephole2 where the first insn is *mov<mode>_or instead of
9498         *mov<mode>_internal.
9499
9500 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
9501
9502         * tracer.c (bb_seen): Make static.
9503
9504 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
9505
9506         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
9507         support, setup defaults.
9508         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
9509         * config/arc/arc.c (arc_init): Add NPS400 support.
9510         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
9511         (TARGET_ARC700): NPS400 is also an ARC700.
9512         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
9513
9514 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9515
9516         PR target/70668
9517         * config/nds32/nds32.md (casesi): Don't access the operands array
9518         out of bounds.
9519
9520 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9521
9522         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
9523         (or $-1,reg peephole2): Ditto.
9524         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
9525
9526 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
9527
9528         * doc/extend.texi (Common Function Attributes) [optimize]:
9529         Discourage use of the optimize attribute.
9530
9531 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
9532
9533         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
9534         special case builtin.
9535         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9536         ALTIVEC_BUILTIN_VEC_ADDE.
9537         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9538         support for ALTIVEC_BUILTIN_VEC_ADDE.
9539         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9540         for __builtin_vec_adde.
9541
9542 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9543
9544         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
9545         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
9546
9547 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9548
9549         PR testsuite/70595
9550         * doc/sourcebuild.texi (Effective-Target Keywords, Other
9551         attributes): Document cilkplus_runtime.
9552
9553 2016-04-28  Martin Jambor  <mjambor@suse.cz>
9554
9555         * tree-cfg.c (verify_expr): Verify that local declarations belong to
9556         this function.  Call verify_expr on MEM_REFs and bases of other
9557         handled_components.
9558
9559 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9560
9561         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
9562         for WORD_REGISTER_OPERATIONS to runtime check.
9563
9564 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9565
9566         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
9567
9568 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9569
9570         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
9571         big-endian compilation.
9572         * config/arc/arc.md (addf3): Likewise.
9573         (subdf3): Likewise.
9574         (muldf3): Likewise.
9575
9576 2016-04-28  Richard Biener  <rguenther@suse.de>
9577
9578         PR tree-optimization/70840
9579         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
9580         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
9581         Mark x * pow(x,c) -> pow(x,c+1) commutative.
9582         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
9583
9584 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9585
9586         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
9587         and explain why in a comment.
9588
9589 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9590
9591         * config/arc/arc.md (cpu_facility): Add fpx variant.
9592         (subdf3): Prohibit use reverse sub when assist operations option
9593         is enabled.
9594         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
9595         instructions only when FPX is enabled.
9596         * testsuite/gcc.target/arc/trsub.c: New test.
9597
9598 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9599
9600         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
9601         mult_operator when calculating "type" attribute.
9602         (*fop_<mode>_1_i387): Ditto.
9603         (*fop_xf_1_i387): Ditto.
9604         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
9605         Use std::swap to swap operands.  Use RTL expressions to generate
9606         converted pattern.
9607
9608 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9609             Joern Rennecke  <joern.rennecke@embecosm.com>
9610
9611         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
9612         declaration.
9613         (emit_pic_move): Remove.
9614         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
9615         * config/arc/arc.c (emit_pic_move): Removed.
9616         (TARGET_HAVE_TLS): Define.
9617         (arc_conditional_register_usage): Test for arc_tp_regno.
9618         (arc_print_operand, arc_print_operand_address): Handle TLS
9619         unspecs.
9620         (arc_needs_pcl_p): New function.
9621         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
9622         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
9623         (arc_raw_symbolic_reference_mentioned_p): Likewise.
9624         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
9625         (arc_legitimize_tls_address): Likewise.
9626         (DTPOFF_ZERO_SYM): Define.
9627         (arc_legitimize_pic_address): Make it static, handle TLS cases.
9628         (arc_output_pic_addr_const): Print TLS unspecs.
9629         (prepare_pic_move): New function, replaces emit_pic_move.
9630         (arc_legitimate_constant_p): Handle TLS unspecs.
9631         (arc_legitimate_address_p): Likewise.
9632         (arc_rewrite_small_data_p): Use assert for TLS constants.
9633         (prepare_move_operands): Use prepare_pic_move.
9634         (arc_legitimize_address): Legitimize tls addresses.
9635         (arc_epilogue_uses): Check for arc_tp_regno.
9636         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
9637         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
9638         Define.
9639         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
9640         Likewise.
9641         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
9642         %(arc_tls_extra_start_spec).
9643         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
9644         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
9645         (EH_USES): Define.
9646         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
9647         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
9648         (UNSPEC_TLS_OFF): Add.
9649         (R10_REG): Define.
9650         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
9651         (get_thread_pointersi): New patterns.
9652         * config/arc/arc.opt (mtp-regno): New option.
9653         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
9654         (move_dest_operand): Likewise.
9655         * configure: Regenerate.
9656         * configure.ac: Add arc*-*-* case to test for tls.
9657         * doc/invoke.texi (ARC options): Document mtp-regno.
9658
9659 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
9660
9661         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
9662         the new ARC HS SIMD instructions.
9663         (arc_preferred_simd_mode): New function.
9664         (arc_autovectorize_vector_sizes): Likewise.
9665         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9666         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9667         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
9668         (arc_init_builtins): Add new SIMD builtin types.
9669         (arc_split_move): Handle 64 bit vector moves.
9670         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
9671         (TARGET_PLUS_QMACW): Define.
9672         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
9673         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
9674         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
9675         (VSUBADD4H): New builtins.
9676         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
9677         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
9678
9679 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
9680             Matthias Klose  <doko@debian.org>
9681
9682         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
9683
9684 2016-04-28  Richard Biener  <rguenther@suse.de>
9685
9686         PR middle-end/70777
9687         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
9688         canonicalization.
9689
9690 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
9691
9692         * common/config/sh/sh-common.c: Remove SH5 support.
9693         * config/sh/constraints.md: Likewise.
9694         * config/sh/config/sh/elf.h: Likewise.
9695         * config/sh/linux.h: Likewise.
9696         * config/sh/netbsd-elf.h: Likewise.
9697         * config/sh/predicates.md: Likewise.
9698         * config/sh/sh-c.c: Likewise.
9699         * config/sh/sh-protos.h: Likewise.
9700         * config/sh/sh.c: Likewise.
9701         * config/sh/sh.h: Likewise.
9702         * config/sh/sh.md: Likewise.
9703         * config/sh/sh.opt: Likewise.
9704         * config/sh/sync.md: Likewise.
9705         * config/sh/sh64.h: Delete.
9706         * config/sh/shmedia.h: Likewise.
9707         * config/sh/shmedia.md: Likewise.
9708         * config/sh/sshmedia.h: Likewise.
9709         * config/sh/t-netbsd-sh5-64: Likewise.
9710         * config/sh/t-sh64: Likewise.
9711         * config/sh/ushmedia.h: Likewise.
9712
9713 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9714
9715         * config/i386/i386.md (sign_extend to memory peephole2s): Use
9716         general_reg_operand instead of register_operand predicate.
9717
9718 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9719
9720         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9721
9722 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
9723
9724         * match.pd (A - B > A, A + B < A): New transformations.
9725
9726 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
9727
9728         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9729         which defaults to true.  Emit an outer pair of parentheses only if
9730         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
9731         don't emit parentheses for the right-hand operand.
9732
9733 2016-04-27  Jeff Law  <law@redhat.com>
9734
9735         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9736
9737 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9738
9739         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9740         (altivec_lvx_<mode>_internal): Document.
9741         (altivec_lvx_<mode>_2op): New define_insn.
9742         (altivec_lvx_<mode>_1op): Likewise.
9743         (altivec_lvx_<mode>_2op_si): Likewise.
9744         (altivec_lvx_<mode>_1op_si): Likewise.
9745         (altivec_stvx_<mode>): Remove.
9746         (altivec_stvx_<mode>_internal): Document.
9747         (altivec_stvx_<mode>_2op): New define_insn.
9748         (altivec_stvx_<mode>_1op): Likewise.
9749         (altivec_stvx_<mode>_2op_si): Likewise.
9750         (altivec_stvx_<mode>_1op_si): Likewise.
9751         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9752         Expand vec_ld and vec_st during parsing.
9753         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9754         changes.
9755         (altivec_expand_stvx_be): Likewise.
9756         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9757         address-masking behavior in RTL.
9758         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9759         address-masking behavior in RTL.
9760         (altivec_expand_builtin): Change builtin code arguments for calls
9761         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9762         (insn_is_swappable_p): Avoid incorrect swap optimization in the
9763         presence of lvx/stvx patterns.
9764         (alignment_with_canonical_addr): New function.
9765         (alignment_mask): Likewise.
9766         (find_alignment_op): Likewise.
9767         (recombine_lvx_pattern): Likewise.
9768         (recombine_stvx_pattern): Likewise.
9769         (recombine_lvx_stvx_patterns): Likewise.
9770         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9771         stvx patterns from expand.
9772         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9773         expansions.
9774         (vector_altivec_store_<mode>): Likewise.
9775
9776 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
9777
9778         * config/aarch64/aarch64.md
9779         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9780         remove the "fp" attributes.
9781         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9782         add the "simd" attributes.
9783         (*movdf_aarch64): Likewise.
9784         (*movtf_aarch64): Remove the "fp" attributes.
9785         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9786         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9787
9788 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9789
9790         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9791         rtx to rtx_code_label *.
9792         * rtl.h (maybe_set_first_label_num): Likewise.
9793
9794 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9795
9796         * df-core.c (df_add_problem): Make the problem param be const.
9797         (df_remove_problem): Make local "problem" be const.
9798         * df-problems.c (problem_RD): Make const.
9799         (problem_LR): Likewise.
9800         (problem_LIVE): Likewise.
9801         (problem_MIR): Likewise.
9802         (problem_CHAIN): Likewise.
9803         (problem_WORD_LR): Likewise.
9804         (problem_NOTE): Likewise.
9805         (problem_MD): Likewise.
9806         * df-scan.c (problem_SCAN): Likewise.
9807         * df.h (struct df_problem): Make field "dependent_problem" be
9808         const.
9809         (struct dataflow): Likewise for field "problem".
9810         (df_add_problem): Make param const.
9811
9812 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9813
9814         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9815         inter-unit moves to/from vector registers are enabled.  Do not disable
9816         for TARGET_MMX.
9817
9818 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9819
9820         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
9821         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
9822         #define to...
9823         (enum df_problem_id): ...this new enum.
9824         (struct df_problem): Convert field "id" from "int" to
9825         enum df_problem_id.
9826
9827 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
9828
9829         * rtl.def: Update comment for "things in the instruction chain" to
9830         reflect the removal of the leading "i" field for INSN_UID in
9831         r210360.  Fix bogus apostrophe.
9832
9833 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
9834
9835         * config/i386/i386.md
9836         (lea arith with mem operand + setcc peephole2): Set operator mode.
9837
9838 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9839
9840         PR target/70155
9841         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
9842         (dimode_scalar_to_vector_candidate_p): This.
9843         (timode_scalar_to_vector_candidate_p): New function.
9844         (scalar_to_vector_candidate_p): Likewise.
9845         (timode_check_non_convertible_regs): Likewise.
9846         (timode_remove_non_convertible_regs): Likewise.
9847         (remove_non_convertible_regs): Likewise.
9848         (remove_non_convertible_regs): Renamed to ...
9849         (dimode_remove_non_convertible_regs): This.
9850         (scalar_chain::~scalar_chain): Make it virtual.
9851         (scalar_chain::compute_convert_gain): Make it pure virtual.
9852         (scalar_chain::mark_dual_mode_def): Likewise.
9853         (scalar_chain::convert_insn): Likewise.
9854         (scalar_chain::convert_registers): Likewise.
9855         (scalar_chain::add_to_queue): Make it protected.
9856         (scalar_chain::emit_conversion_insns): Likewise.
9857         (scalar_chain::replace_with_subreg): Likewise.
9858         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9859         (scalar_chain::convert_op): Likewise.
9860         (scalar_chain::convert_reg): Likewise.
9861         (scalar_chain::make_vector_copies): Likewise.
9862         (scalar_chain::convert_registers): New pure virtual function.
9863         (class dimode_scalar_chain): New class.
9864         (class timode_scalar_chain): Likewise.
9865         (scalar_chain::mark_dual_mode_def): Renamed to ...
9866         (dimode_scalar_chain::mark_dual_mode_def): This.
9867         (timode_scalar_chain::mark_dual_mode_def): New function.
9868         (timode_scalar_chain::convert_insn): Likewise.
9869         (dimode_scalar_chain::convert_registers): Likewise.
9870         (scalar_chain::compute_convert_gain): Renamed to ...
9871         (dimode_scalar_chain::compute_convert_gain): This.
9872         (scalar_chain::replace_with_subreg): Renamed to ...
9873         (dimode_scalar_chain::replace_with_subreg): This.
9874         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9875         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9876         (scalar_chain::make_vector_copies): Renamed to ...
9877         (dimode_scalar_chain::make_vector_copies): This.
9878         (scalar_chain::convert_reg): Renamed to ...
9879         (dimode_scalar_chain::convert_reg ): This.
9880         (scalar_chain::convert_op): Renamed to ...
9881         (dimode_scalar_chain::convert_op): This.
9882         (scalar_chain::convert_insn): Renamed to ...
9883         (dimode_scalar_chain::convert_insn): This.
9884         (scalar_chain::convert): Call convert_registers.
9885         (convert_scalars_to_vector): Change to scalar_chain pointer to
9886         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9887         in 32-bit mode.  Delete scalar_chain pointer.  Call
9888         free_dominance_info in 64-bit mode.
9889         (pass_stv::gate): Remove TARGET_64BIT check.
9890         (ix86_option_override): Put the 64-bit STV pass before the CSE
9891         pass.
9892
9893 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9894
9895         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9896         dw_loc_frame_offset field.
9897         * dwarf2out.c (new_loc_descr): Likewise.
9898         (resolve_args_picking_1): Turn the VISITED hash set into a
9899         FRAME_OFFSET hash map. Use it to associate a frame offset to
9900         visited nodes. Remove uses of the CHECKING_P macro.
9901         (resolve_args_picking): Update call to resolve_args_picking_1.
9902
9903 2016-04-27  Martin Liska  <mliska@suse.cz>
9904
9905         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9906         (free_loop_data): Release vuses of groups.
9907
9908 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9909
9910         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9911         instead of redundant use_id and boolean have_use_for.
9912         (struct iv_use): Change sub_id into group_id.  Remove field next.
9913         Move fields: related_cands, n_map_members, cost_map and selected
9914         to ...
9915         (struct iv_group): ... here.  New structure.
9916         (struct iv_common_cand): Use structure declaration directly.
9917         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9918         (MAX_CONSIDERED_USES): Rename macro to ...
9919         (MAX_CONSIDERED_GROUPS): ... here.
9920         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9921         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9922         (dump_uses): Rename to ...
9923         (dump_groups): ... here.  Update all uses.
9924         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9925         (find_induction_variables): Refactor format of dump information.
9926         (record_sub_use): Delete.
9927         (record_use): Update all uses.
9928         (record_group): New function.
9929         (record_group_use, find_interesting_uses_op): Call above functions.
9930         Update all uses.
9931         (find_interesting_uses_cond): Ditto.
9932         (group_compare_offset): New function.
9933         (split_all_small_groups): Rename to ...
9934         (split_small_address_groups_p): ... here.  Update all uses.
9935         (split_address_groups):  Update all uses.
9936         (find_interesting_uses): Refactor format of dump information.
9937         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9938         base and step.
9939         (add_candidate, record_common_cand): Remove redundant assert.
9940         (add_iv_candidate_for_biv): Update use.
9941         (add_iv_candidate_derived_from_uses): Update all uses.
9942         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9943         (alloc_use_cost_map): Ditto.
9944         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9945         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9946         (determine_use_iv_cost_generic): Ditto.
9947         (determine_group_iv_cost_generic): Ditto.
9948         (determine_use_iv_cost_address): Ditto.
9949         (determine_group_iv_cost_address): Ditto.
9950         (determine_use_iv_cost_condition): Ditto.
9951         (determine_group_iv_cost_cond): Ditto.
9952         (determine_use_iv_cost): Ditto.
9953         (determine_group_iv_cost): Ditto.
9954         (set_autoinc_for_original_candidates): Update all uses.
9955         (find_iv_candidates): Update all uses.  Refactor dump information.
9956         (determine_use_iv_costs): Ditto.
9957         (determine_iv_costs): Ditto.
9958         (iv_ca_cand_for_use): Rename to ...
9959         (iv_ca_cand_for_group): ... here.  Update all uses.
9960         (iv_ca_add_use, iv_ca_add_group): Ditto.
9961         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9962         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9963         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9964         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9965         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9966         (create_new_iv, adjust_iv_update_pos): Ditto.
9967         (rewrite_use_address): Delete.
9968         (rewrite_use_address_1): Rename to ...
9969         (rewrite_use_address): ... here.
9970         (rewrite_use_compare): Update all uses.
9971         (rewrite_use): Delete.
9972         (rewrite_uses): Rename to ...
9973         (rewrite_groups): ... here.  Update all uses.
9974         (remove_unused_ivs, free_loop_data): Update all uses.
9975         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9976
9977 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9978
9979         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9980         for WORD_REGISTER_OPERATIONS to runtime check.
9981
9982 2016-04-27  Richard Biener  <rguenther@suse.de>
9983
9984         PR ipa/70760
9985         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9986         aggregate_value_p to determine if a function result is
9987         returned by reference.
9988         (ipa_pta_execute): Functions having their address taken are
9989         not automatically nonlocal.
9990
9991 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9992
9993         PR sanitizer/70683
9994         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9995         * fold-const.c (operand_equal_p): If flag_checking and
9996         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9997         and if it returns non-zero, assert iterative_hash_expr on both
9998         args is the same.
9999
10000 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10001
10002         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10003
10004 2016-04-27  Nick Clifton  <nickc@redhat.com>
10005
10006         PR middle-end/49889
10007         * varasm.c (merge_weak): Generate an error if an attempt is made
10008         to convert a non-weak static function into a weak, public function.
10009
10010 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10011
10012         * params.def (MAX_PARTITION_SIZE): New param.
10013         * doc/invoke.texi: Document lto-max-partition.
10014
10015 2016-04-27  Richard Biener  <rguenther@suse.de>
10016
10017         PR ipa/70785
10018         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10019         function cummulating used_from_other_partition, externally_visible
10020         and force_output from aliases.
10021         (refered_from_nonlocal_var): Likewise.
10022         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10023         node flags properly.
10024
10025 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10026
10027         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10028         (-Wmemset-elt-size): New item.
10029
10030 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10031
10032         PR ada/70759
10033         * stor-layout.h (internal_reference_types): Delete.
10034         * stor-layout.c (reference_types_internal): Likewise.
10035         (internal_reference_types): Likewise.
10036         (layout_type) <REFERENCE_TYPE>: Adjust.
10037
10038 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
10039
10040         PR sanitizer/70683
10041         * tree.h (inchash::add_expr): Add FLAGS argument.
10042         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
10043         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
10044         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10045         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
10046         if swap_tree_comparison (code) is smaller than code, hash that
10047         and arguments in the other order.  Hash CONVERT_EXPR the same
10048         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10049         of ADDR_EXPR of decl as the decl itself.  Add or remove
10050         OEP_ADDRESS_OF from recursive flags as needed.  For
10051         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10052         operands commutatively and only the third one normally.
10053         For internal CALL_EXPR hash in CALL_EXPR_IFN.
10054
10055 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10056
10057         * config/rtems.h (LIB_SPEC): Add -latomic.
10058
10059 2016-04-27  Joel Sherrill  <joel@rtems.org>
10060
10061         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10062         xilink.ld and flags not relevant to RTEMS.
10063
10064 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10065
10066         * toplev.c (backend_init_target): Avoid calling init_reload when using
10067         LRA.
10068
10069 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10070
10071         * reorg.c (try_merge_delay_insns): Declare i and j inside the
10072         for loops rather than one for the whole function.
10073
10074 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10075
10076         * match.pd (X + CST CMP X): New transformation.
10077
10078 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10079
10080         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10081         * fold-const.c (fold_binary_loc): Remove 2 transformations
10082         superseded by match.pd.
10083         * match.pd (x+x -> x*2): Generalize to integers.
10084
10085 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
10086
10087         * config/i386/i386.md (operation on memory peephole): Duplicate an
10088         existing peephole and adapt it to match lea rather than an operation
10089         that clobbers CC.
10090
10091         PR rtl-optimization/57193
10092         * opts.c (default_options_table): Add OPT_frename_registers at -O2
10093         and above.
10094         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10095
10096 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10097
10098         * tree-if-conv.c (any_pred_load_store): New static variable.
10099         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
10100         any_pred_load_store instead of and_mask_load_store.
10101         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10102         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10103         (combine_blocks, tree_if_conversion): Ditto.
10104
10105 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10106
10107         PR tree-optimization/70771
10108         PR tree-optimization/70775
10109         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10110         virtual PHI nodes.  Delete parameter.
10111         (if_convertible_loop_p_1): Delete argument to above function.
10112         (predicate_all_scalar_phis): Delete code handling single-argument
10113         PHIs.
10114         (tree_if_conversion): Mark and update virtual SSA.
10115
10116 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10117
10118         PR target/61821
10119         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10120         (x86_elf_aligned_common): Rename to ...
10121         (x86_elf_aligned_decl_common): ... this.
10122         Add decl arg.  Switch to .lbss for largecomm object.  Use
10123         LARGECOMM_SECTION_ASM_OP.
10124         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10125         renaming.
10126         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10127         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10128         Pass new decl arg.
10129         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10130         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10131
10132 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10133
10134         PR target/59407
10135         * config/i386/i386.c (SECTION_LARGE): Define.
10136         (x86_64_elf_select_section): Set it for large data/bss sections.
10137         Only clear SECTION_WRITE for .lrodata.
10138         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10139         data/bss sections.
10140         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10141         * varasm.c (default_elf_asm_named_section): Grow flagchars.
10142         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10143         SECTION_MACH_DEP.
10144         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10145         * doc/tm.texi: Regenerate.
10146
10147 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10148
10149         PR bootstrap/70704
10150         * configure.ac (--enable-checking): Document extra flag, for
10151         non-release builds default to --enable-checking=yes,extra.
10152         If misc checking and extra checking, define CHECKING_P to 2 instead
10153         of 1.
10154         * common.opt (fchecking=): Add.
10155         * doc/invoke.texi (-fchecking=): Document.
10156         * doc/install.texi: Document --enable-checking changes.
10157         * configure: Regenerated.
10158         * config.in: Regenerated.
10159
10160 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10161
10162         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10163         attribute instead of which_alternative.
10164         * config/i386/sse.md (*mov<mode>_internal): Ditto.
10165         Use EXT_REX_SSE_REG_P where appropriate.
10166
10167 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10168
10169         * config/i386/predicates.md (const0_operand): Do not match
10170         const_wide_int code.
10171         (const1_operand): Ditto.
10172
10173 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10174
10175         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10176         for SSE constm1 operands and TARGET_AVX512VL.
10177         (*movti_internal): Ditto.
10178         (*mov<mode>_or): Use constm1_operand predicate.
10179         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10180         for SSE vector_all_ones operands and TARGET_AVX512VL.
10181         * config/i386/predicates.md (constm1_operand): New predicate.
10182         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10183         emission of constant -1 load.
10184
10185 2016-04-25  Jason Merrill  <jason@redhat.com>
10186
10187         * gdbinit.in: Skip is-a.h.
10188
10189         * attribs.c (register_scoped_attributes): Fix logic.
10190         * attribs.h: Declare register_scoped_attributes.
10191
10192 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10193
10194         * config/rs6000/rs6000-builtin.def: Correct pasto error for
10195         stxvd2x and stxvw4x built-in functions.
10196
10197 2016-04-25  DJ Delorie  <dj@redhat.com>
10198
10199         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10200         (ashrhi3): Likewise.
10201         (lshrhi3): Likewise.
10202
10203 2016-04-25  Richard Biener  <rguenther@suse.de>
10204
10205         PR tree-optimization/70780
10206         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10207         wasn't visited yet.
10208         (compute_antic): Mark blocks with abnormal preds as visited as
10209         they have a final empty antic-in solution already.
10210
10211 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10212
10213         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10214
10215 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10216
10217         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10218         mode is VQI to improve mixed mode vectorization.
10219         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10220         define_insn to match low half of signed vaddw.
10221         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10222         define_insn to match high half of signed vaddw.
10223         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10224         define_insn to match low half of unsigned vaddw.
10225         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10226         define_insn to match high half of unsigned vaddw.
10227         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10228         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10229         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10230         for new function.
10231         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10232         * config/arm/predicates.md (vect_par_constant_high): Support
10233         big endian and simplify by calling
10234         arm_simd_check_vect_par_cnst_half
10235         (vect_par_constant_low): Likewise.
10236
10237 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10238
10239         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10240         predicate for operand 2.
10241
10242 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
10243             H.J. Lu  <hongjiu.lu@intel.com>
10244
10245         * config/i386/i386-protos.h (standard_sse_constant_p): Add
10246         machine_mode argument.
10247         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10248         constm1_rtx operands.  For VOIDmode constants, get mode from
10249         pred_mode.  Check mode size if the mode is supported by ABI.
10250         (standard_sse_constant_opcode): Do not use standard_constant_p.
10251         Strictly check ABI support for all-ones operands.
10252         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10253         immediates. Update calls to standard_sse_constant_p.
10254         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10255         (ix86_rtx_costs): Ditto.
10256         * config/i386/i386.md (*movxi_internal_avx512f): Use
10257         nonimmediate_or_sse_const_operand instead of vector_move_operand.
10258         Use (v,BC) alternative instead of (v,C). Use register_operand
10259         checks instead of MEM_P.
10260         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10261         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
10262         isa attribute.  Use register_operand checks instead of MEM_P.
10263         (*movti_internal): Use nonimmediate_or_sse_const_operand for
10264         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
10265         alternative and corresponding sse2 isa attribute.
10266         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10267         to standard_sse_constant_p.
10268         (FP constant splitters): Ditto.
10269         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10270         (C): Ditto.
10271         * config/i386/predicates.md (constm1_operand): Remove.
10272         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10273         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10274         vector_all_ones_operand instead of constm1_operand.
10275
10276 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10277
10278         * print-rtl.c (print_rtx_insn_vec): New function.
10279         * print-rtl.h: New prototype.
10280         * store-motion.c (struct st_expr): Make avail_stores a vector.
10281         (st_expr_entry): Adjust.
10282         (free_st_expr_entry): Likewise.
10283         (print_store_motion_mems): Likewise.
10284         (find_moveable_store): Likewise.
10285         (compute_store_table): Likewise.
10286         (delete_store): Likewise.
10287         (build_store_vectors): Likewise.
10288
10289 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10290
10291         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10292
10293 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10294
10295         * vec.h (vec_safe_contains): New function.
10296         (vec::contains): Likewise.
10297         (vec::begin): Likewise.
10298         (vec::end): Likewise.
10299
10300 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
10301
10302         PR sanitizer/70712
10303         * cfgexpand.c (expand_stack_vars): Fix typo.
10304
10305 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10306
10307         * system.h (list, map, set, vector): Include conditionally.
10308         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
10309         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
10310         * ipa-icf.c (INCLUDE_LIST): Define.
10311         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
10312         * config/sh/sh.c (INCLUDE_VECTOR): Define.
10313         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
10314         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
10315         * cp/logic.cc (INCLUDE_LIST): Define.
10316         * fortran/trans-common.c (INCLUDE_MAP): Define.
10317
10318 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10319
10320         * auto-profile.c: Remove <string.h> include.
10321         * ipa-icf-gimple.c: Remove <list> include.
10322         * diagnostic.c: Remove <new> include.
10323         * genmatch.c: Likewise.
10324         * pretty-print.c: Likewise.
10325         * toplev.c: Likewise
10326         * c/c-objc-common.c: Likewise.
10327         * cp/error.c: Likewise.
10328         * fortran/error.c: Likewise.
10329
10330 2016-04-22  Richard Biener  <rguenther@suse.de>
10331
10332         * lto-streamer-in.c (input_ssa_names): Do not allocate
10333         GIMPLE_NOP for all SSA names.
10334         * lto-streamer-out.c (output_ssa_names): Do not output
10335         SSA names that should have been released.
10336
10337 2016-04-22  Richard Biener  <rguenther@suse.de>
10338
10339         PR tree-optimization/70740
10340         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
10341         VDEF.
10342
10343 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
10344
10345         PR target/70750
10346         * config/i386/predicates.md (call_insn_operand): Replace
10347         sibcall_memory_operand with memory_operand.
10348
10349 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
10350
10351         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
10352         has_single_use() tests.
10353         (register_edge_assert_for_1): Likewise.
10354         (find_assert_locations_1): Check the liveness bitmap instead of
10355         checking has_single_use().
10356
10357 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10358
10359         PR target/70728
10360         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
10361         Extract AVX-512BW constraint from AVX.
10362
10363 2016-04-21  Richard Biener  <rguenther@suse.de>
10364
10365         PR tree-optimization/70725
10366         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
10367         for phi_convertible_by_degenerating_args.
10368         (predicate_all_scalar_phis): Handle single-argument PHIs.
10369
10370 2016-04-21  Richard Biener  <rguenther@suse.de>
10371
10372         PR middle-end/70747
10373         * fold-const.c (fold_comparison): Return properly typed
10374         constant boolean.
10375
10376 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
10377
10378         PR tree-optimization/70715
10379         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
10380         after expanding BASE using expand_simple_operations.
10381
10382 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10383
10384         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
10385         New transformations.
10386
10387 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10388
10389         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
10390
10391 2016-04-20  Jan Hubicka  <jh@suse.cz>
10392
10393         * ipa-inline.c (can_inline_edge_p): Pass caller info to
10394         ultiimate_alias_target.
10395         (update_callee_keys): Likewise.
10396         (lookup_recursive_calls): Likewise.
10397         (speculation_useful_p): Likewise.
10398
10399 2016-04-20  Jan Hubicka  <jh@suse.cz>
10400
10401         PR ipa/70018
10402         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
10403         (set_nothrow_flag_1): ... this; handle interposition correctly;
10404         recurse on aliases and thunks.
10405         (cgraph_node::set_nothrow_flag): New.
10406         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
10407         functions compiled with non-call exceptions that binds to current
10408         def.
10409         (propagate_nothrow): Be safe WRT interposition.
10410         * cgraph.h (set_nothrow_flag): Update prototype.
10411
10412 2016-04-18  Jan Hubicka  <jh@suse.cz>
10413
10414         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10415         max_loop_iterations_int.
10416         (tree_unswitch_outer_loop): Likewise.
10417
10418 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10419
10420         PR tree-optimization/69489
10421         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
10422         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
10423         Revise dump message.
10424         (if_convertible_bb_p): Remove check on edge count of basic block's
10425         predecessors.
10426
10427 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10428
10429         PR tree-optimization/56625
10430         PR tree-optimization/69489
10431         * tree-data-ref.h (DR_INNERMOST): New macro.
10432         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
10433         hashing struct innermost_loop_behavior.
10434         (ref_DR_map): Remove.
10435         (innermost_DR_map): New map.
10436         (baseref_DR_map): Revise comment.
10437         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
10438         to innermost_DR_map accroding to its innermost loop behavior.
10439         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
10440         to its innermost loop behavior.
10441         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
10442         Add initialization for innermost_DR_map.  Record memory reference
10443         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
10444         have innermost loop behavior.
10445         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
10446         innermost_DR_map.
10447
10448 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
10449
10450         * config/i386/i386.md (*lea<mode>_general_1): Rename from
10451         *lea_general_1.  Use explicit SWI12 mode interator.
10452         (*lea<mode>_general_2): Rename from *lea_general_2.
10453         Use explicit SWI12 mode interator.
10454         (*lea<mode>_general_3): Rename from *lea_general_3.
10455         Use explicit SWI12 mode interator.
10456         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
10457         Use explicit SWI12 mode interator.
10458         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
10459         Use explicit SWI48 mode interator.
10460
10461 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10462
10463         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10464         Short-cut unaligned load and store cases.  Handle all integer
10465         vector modes.
10466         (ix86_expand_vector_move_misalign): Short-cut unaligned load
10467         and store cases.  Call ix86_avx256_split_vector_move_misalign
10468         directly without checking mode class.
10469
10470 2016-04-20  Andrew Pinski  <apinski@cavium.com>
10471             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10472
10473         PR target/64971
10474         * config/aarch64/aarch64.md (sibcall): Force call
10475         address to be DImode for ILP32.
10476         (sibcall_value): Likewise.
10477
10478 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10479
10480         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
10481
10482 2016-04-20  Richard Biener  <rguenther@suse.de>
10483
10484         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
10485         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
10486         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
10487         (maybe_push_res_to_seq): Adjust.
10488         * gimple-fold.c (maybe_build_generic_op): Likewise.
10489
10490 2016-04-20  Marek Polacek  <polacek@redhat.com>
10491
10492         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
10493         rather than true.
10494
10495 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
10496
10497         * config/i386/sse.md (vec_unpacks_lo_hi): Always
10498         use kmovw to support AVX512F target.
10499
10500 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10501
10502         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
10503
10504 2016-04-20  Marek Polacek  <polacek@redhat.com>
10505
10506         PR tree-optimization/70725
10507         * tree-if-conv.c (is_false_predicate): New function.
10508         (predicate_mem_writes): Use it.
10509
10510 2016-04-20  Richard Biener  <rguenther@suse.de>
10511
10512         PR tree-optimization/70726
10513         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
10514         shift amounts from a pattern stmt operand.
10515
10516 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10517
10518         PR target/70674
10519         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
10520         stack_restore_from_fpr pattern when restoring r15.
10521         (s390_optimize_prologue): Strip away the memory barrier in the
10522         parallel when trying to get rid of restore insns.
10523         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
10524         definition for loading the stack pointer from an FPR.  Compared to
10525         the normal move insn this pattern includes a full memory barrier.
10526
10527 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
10528
10529         PR middle-end/70680
10530         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
10531         implicitly linear or lastprivate iterator on the outer context.
10532
10533 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
10534
10535         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
10536         alignment check.
10537         * config/i386/i386.md (ssememalign): Removed.
10538         * config/i386/sse.md: Remove ssememalign attribute from patterns.
10539
10540 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
10541
10542         PR target/69201
10543         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
10544         const short * to __builtin_ia32_loaddquhi512_mask.
10545         (_mm512_maskz_loadu_epi16): Likewise.
10546         (_mm512_mask_storeu_epi16): Pass short * to
10547         __builtin_ia32_storedquhi512_mask.
10548         (_mm512_mask_loadu_epi8): Pass const char * to
10549         __builtin_ia32_loaddquqi512_mask.
10550         (_mm512_maskz_loadu_epi8): Likewise.
10551         (_mm512_mask_storeu_epi8): Pass char * to
10552         __builtin_ia32_storedquqi512_mask.
10553         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
10554         const double * to __builtin_ia32_loadupd512_mask.
10555         (_mm512_mask_loadu_pd): Likewise.
10556         (_mm512_maskz_loadu_pd): Likewise.
10557         (_mm512_storeu_pd): Pass double * to
10558         __builtin_ia32_storeupd512_mask.
10559         (_mm512_mask_storeu_pd): Likewise.
10560         (_mm512_loadu_ps): Pass const float * to
10561         __builtin_ia32_loadups512_mask.
10562         (_mm512_mask_loadu_ps): Likewise.
10563         (_mm512_maskz_loadu_ps): Likewise.
10564         (_mm512_storeu_ps): Pass float * to
10565         __builtin_ia32_storeups512_mask.
10566         (_mm512_mask_storeu_ps): Likewise.
10567         (_mm512_mask_loadu_epi64): Pass const long long * to
10568         __builtin_ia32_loaddqudi512_mask.
10569         (_mm512_maskz_loadu_epi64): Likewise.
10570         (_mm512_mask_storeu_epi64): Pass long long *
10571         to __builtin_ia32_storedqudi512_mask.
10572         (_mm512_loadu_si512): Pass const int * to
10573         __builtin_ia32_loaddqusi512_mask.
10574         (_mm512_mask_loadu_epi32): Likewise.
10575         (_mm512_maskz_loadu_epi32): Likewise.
10576         (_mm512_storeu_si512): Pass int * to
10577         __builtin_ia32_storedqusi512_mask.
10578         (_mm512_mask_storeu_epi32): Likewise.
10579         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
10580         char * to __builtin_ia32_storedquqi256_mask.
10581         (_mm_mask_storeu_epi8): Likewise.
10582         (_mm256_mask_loadu_epi16): Pass const short * to
10583         __builtin_ia32_loaddquhi256_mask.
10584         (_mm256_maskz_loadu_epi16): Likewise.
10585         (_mm_mask_loadu_epi16): Pass const short * to
10586         __builtin_ia32_loaddquhi128_mask.
10587         (_mm_maskz_loadu_epi16): Likewise.
10588         (_mm256_mask_loadu_epi8): Pass const char * to
10589         __builtin_ia32_loaddquqi256_mask.
10590         (_mm256_maskz_loadu_epi8): Likewise.
10591         (_mm_mask_loadu_epi8): Pass const char * to
10592         __builtin_ia32_loaddquqi128_mask.
10593         (_mm_maskz_loadu_epi8): Likewise.
10594         (_mm256_mask_storeu_epi16): Pass short * to.
10595         __builtin_ia32_storedquhi256_mask.
10596         (_mm_mask_storeu_epi16): Pass short * to.
10597         __builtin_ia32_storedquhi128_mask.
10598         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
10599         const double * to __builtin_ia32_loadupd256_mask.
10600         (_mm256_maskz_loadu_pd): Likewise.
10601         (_mm_mask_loadu_pd): Pass onst double * to
10602         __builtin_ia32_loadupd128_mask.
10603         (_mm_maskz_loadu_pd): Likewise.
10604         (_mm256_mask_storeu_pd): Pass double * to
10605         __builtin_ia32_storeupd256_mask.
10606         (_mm_mask_storeu_pd): Pass double * to
10607         __builtin_ia32_storeupd128_mask.
10608         (_mm256_mask_loadu_ps): Pass const float * to
10609         __builtin_ia32_loadups256_mask.
10610         (_mm256_maskz_loadu_ps): Likewise.
10611         (_mm_mask_loadu_ps): Pass const float * to
10612         __builtin_ia32_loadups128_mask.
10613         (_mm_maskz_loadu_ps): Likewise.
10614         (_mm256_mask_storeu_ps): Pass float * to
10615         __builtin_ia32_storeups256_mask.
10616         (_mm_mask_storeu_ps): ass float * to
10617         __builtin_ia32_storeups128_mask.
10618         (_mm256_mask_loadu_epi64): Pass const long long * to
10619         __builtin_ia32_loaddqudi256_mask.
10620         (_mm256_maskz_loadu_epi64): Likewise.
10621         (_mm_mask_loadu_epi64): Pass const long long * to
10622         __builtin_ia32_loaddqudi128_mask.
10623         (_mm_maskz_loadu_epi64): Likewise.
10624         (_mm256_mask_storeu_epi64): Pass long long * to
10625         __builtin_ia32_storedqudi256_mask.
10626         (_mm_mask_storeu_epi64): Pass long long * to
10627         __builtin_ia32_storedqudi128_mask.
10628         (_mm256_mask_loadu_epi32): Pass const int * to
10629         __builtin_ia32_loaddqusi256_mask.
10630         (_mm256_maskz_loadu_epi32): Likewise.
10631         (_mm_mask_loadu_epi32): Pass const int * to
10632         __builtin_ia32_loaddqusi128_mask.
10633         (_mm_maskz_loadu_epi32): Likewise.
10634         (_mm256_mask_storeu_epi32): Pass int * to
10635         __builtin_ia32_storedqusi256_mask.
10636         (_mm_mask_storeu_epi32): Pass int * to
10637         __builtin_ia32_storedqusi128_mask.
10638         * config/i386/i386-builtin-types.def (PCSHORT): New.
10639         (PINT64): Likewise.
10640         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
10641         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
10642         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
10643         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
10644         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
10645         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
10646         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
10647         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
10648         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
10649         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
10650         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
10651         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
10652         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
10653         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
10654         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
10655         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
10656         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
10657         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
10658         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
10659         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
10660         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
10661         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
10662         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
10663         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
10664         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
10665         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
10666         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
10667         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
10668         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
10669         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
10670         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
10671         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
10672         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
10673         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
10674         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
10675         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
10676         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
10677         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
10678         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
10679         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
10680         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
10681         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
10682         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
10683         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
10684         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
10685         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
10686         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
10687         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
10688         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
10689         use UNSPEC_STOREU.
10690         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
10691         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
10692         load nor store.
10693         (ix86_expand_vector_move_misalign): Likewise.
10694         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
10695         to scalar function prototype for unaligned load/store builtins.
10696         (ix86_expand_special_args_builtin): Updated.
10697         * config/i386/sse.md (UNSPEC_LOADU): Removed.
10698         (UNSPEC_STOREU): Likewise.
10699         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
10700         (VI_ULOADSTORE_F_AVX512VL): Likewise.
10701         (ssescalarsize): Handle V4TI, V2TI and V1TI.
10702         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10703         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10704         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
10705         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
10706         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10707         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10708         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10709         (<avx512>_storedqu<mode>_mask): Likewise.
10710         (*sse4_2_pcmpestr_unaligned): Likewise.
10711         (*sse4_2_pcmpistr_unaligned): Likewise.
10712         (*mov<mode>_internal): Renamed to ...
10713         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
10714         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10715         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10716         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10717
10718 2016-04-19  Richard Biener  <rguenther@suse.de>
10719
10720         PR tree-optimization/70171
10721         * tree-ssa-phiprop.c: Include stor-layout.h.
10722         (phiprop_insert_phi): Handle the aggregate copy case.
10723         (propagate_with_phi): Likewise.
10724
10725 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
10726
10727         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10728         instead of simplify_gen_subreg (... , 0).
10729         (ix86_delegitimize_address): Ditto.
10730         (ix86_split_divmod): Ditto.
10731         (ix86_split_copysign_const): Ditto.
10732         (ix86_split_copysign_var): Ditto.
10733         (ix86_expand_args_builtin): Ditto.
10734         (ix86_expand_round_builtin): Ditto.
10735         (ix86_expand_special_args_builtin): Ditto.
10736         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10737         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10738         (udivmodqi4): Ditto.
10739         (absneg splitters): Ditto.
10740         (*jcc_bt<mode>_1): Ditto.
10741
10742 2016-04-19  Richard Biener  <rguenther@suse.de>
10743
10744         PR tree-optimization/70724
10745         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10746         restoring out from ...
10747         (free_scc_vn): ... here.
10748         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10749         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10750         tail merging.
10751         (pass_fre::execute): Restore SSA info.
10752
10753 2016-04-19  Richard Biener  <rguenther@suse.de>
10754
10755         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10756         * gimple-walk.c (walk_gimple_op): Initialize it.
10757         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10758         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10759         remapping SSA names of defs.
10760         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10761         adjustment.
10762
10763 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
10764
10765         PR middle-end/70689
10766         * lra-constraints.c (equiv_substition_p): New.
10767         (process_alt_operands): Use it.
10768         (swap_operands): Swap it.
10769         (curr_insn_transform): Update it.
10770
10771 2016-04-18  Michael Matz  <matz@suse.de>
10772
10773         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10774         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10775         * tree-core.h (tree_type_common.align): Use bit-field.
10776         (tree_type_common.spare): New.
10777         (tree_decl_common.off_align): Make smaller.
10778         (tree_decl_common.align): Use bit-field.
10779
10780         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10781         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10782         (scan_sharing_clauses): Ditto.
10783         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10784         (omp_finish_file): Ditto.
10785         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10786         (layout_decl): Ditto.
10787         (relayout_decl): Ditto.
10788         (finalize_record_size): Use SET_TYPE_ALIGN.
10789         (finalize_type_size): Ditto.
10790         (finish_builtin_struct): Ditto.
10791         (layout_type): Ditto.
10792         (initialize_sizetypes): Ditto.
10793         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10794         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10795         (lookup_field_for_decl): Use SET_DECL_ALIGN.
10796         (get_chain_field): Ditto.
10797         (get_trampoline_type): Ditto.
10798         (get_nl_goto_field): Ditto.
10799         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10800         SET_DECL_ALIGN.
10801         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10802         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10803         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10804         (build_qualified_type): Use SET_TYPE_ALIGN.
10805         (build_aligned_type, build_range_type_1): Ditto.
10806         (build_atomic_base): Ditto.
10807         (build_common_tree_nodes): Ditto.
10808         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10809         (expand_one_stack_var_at): Ditto.
10810         * coverage.c (build_var): Use SET_DECL_ALIGN.
10811         * except.c (init_eh): Ditto.
10812         * function.c (assign_parm_setup_block): Ditto.
10813         * symtab.c (increase_alignment_1): Ditto.
10814         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10815         * tree-vect-stmts.c (ensure_base_align): Ditto.
10816         * varasm.c (align_variable): Ditto.
10817         (assemble_variable): Ditto.
10818         (build_constant_desc): Ditto.
10819         (output_constant_def_contents): Ditto.
10820
10821         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
10822         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
10823         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
10824         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
10825         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
10826
10827 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
10828
10829         PR target/70708
10830         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
10831         replace %vmovsd with "%vmovq".
10832         (vec_concatv2df): Likewise.
10833
10834 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
10835
10836         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
10837         (*vec_extractv2si_0): Ditto.
10838         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
10839         (zero_extended_scalar_load_operand splitters): Ditto.
10840         (vec_extract splitters): Ditto.
10841         (*vec_extractv4si_0_zext): Ditto.
10842         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
10843         and lowpart_subreg.
10844         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
10845         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
10846         (*sse4_1_extractps): Use lowpart_subreg.
10847         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
10848
10849 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10850
10851         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
10852         gld requirements.
10853         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
10854         Mention Solaris 11 packaging changes.
10855         Update gas and gld requirements.
10856         Remove reference to pre-Solaris 10 bug.
10857         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10858         systems and bugs.
10859         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10860         with cc.
10861
10862 2016-04-17  Jan Hubicka  <jh@suse.cz>
10863
10864         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10865         max_loop_iterations_int.
10866
10867 2016-04-18  Richard Biener  <rguenther@suse.de>
10868
10869         PR tree-optimization/43434
10870         * tree-ssa-structalias.c (struct vls_data): New.
10871         (visit_loadstore): Handle all pointer-based accesses.
10872         (compute_dependence_clique): Compute a bitmap of restrict tags
10873         assigned bases and pass it to visit_loadstore.
10874
10875 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10876
10877         PR target/70711
10878         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10879         armv8.1-a and armv8.1-a+crc.
10880
10881 2016-04-18  Richard Biener  <rguenther@suse.de>
10882
10883         PR tree-optimization/70701
10884         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10885         references after translating through a memcpy.
10886
10887 2016-04-18  Richard Biener  <rguenther@suse.de>
10888
10889         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10890         (compute_antic): ... here.  For partial antic use regular
10891         postorder and scrap iteration.
10892         (compute_partial_antic_aux): Remove unused return value.
10893         (init_pre): Do not allocate postorder.
10894         (fini_pre): Do not free postorder.
10895
10896 2016-04-18  Richard Biener  <rguenther@suse.de>
10897
10898         PR middle-end/37870
10899         * expmed.c (extract_bit_field_1): Remove broken case
10900         using a wider MODE_INT mode.
10901
10902 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10903
10904         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10905         unless compiling with at least GCC-4.8.
10906
10907 2016-04-17  Jan Hubicka  <jh@suse.cz>
10908
10909         PR bootstrap/70706
10910         * graphite.c (graphite_finalize): Update call to
10911         tree_estimate_probability.
10912         * predict.h (tree_estimate_probability): Update prototype.
10913
10914 2016-04-17  Jan Hubicka  <jh@suse.cz>
10915
10916         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10917         (tree_estimate_probability): Likewise.
10918         (pass_profile::execute): Update.
10919         (report_predictor_hitrates): New function.
10920         * profile.c (compute_branch_probabilities): Use it.
10921         * predict.h (report_predictor_hitrates): Declare.
10922
10923 2016-04-17  Jan Hubicka  <jh@suse.cz>
10924
10925         PR ipa/70018
10926         * cgraph.h (cgraph_node::set_const_flag,
10927         cgraph_node::set_pure_flag): Update prototype to return bool;
10928         update comment.
10929         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10930         of interposable symbol are interposable, too.
10931         (cgraph_set_const_flag_1): Rename to ...
10932         (set_const_flag_1): ... this one; change to self recursive function
10933         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10934         clearnig the flag in all variants and also virtual thunks of const
10935         functions are pure; track if any change was done.
10936         (cgraph_node::set_const_flag): Update.
10937         (struct set_pure_flag_info): New struct.
10938         (cgraph_set_pure_flag_1): Rename to ...
10939         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10940         rather than pointer encoded flags; track if any changes was done;
10941         handle correctly clearning flag and setting flag of aliases already
10942         declared const.
10943         (cgraph_node::set_pure_flag): Update.
10944         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10945
10946 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10947
10948         PR other/70433
10949         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10950         backslash in label.
10951
10952 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10953
10954         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10955         '{}<> ' as escape-for-record.
10956
10957 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10958
10959         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10960         structure.
10961
10962 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10963
10964         PR other/70185
10965         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10966         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10967         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10968         * passes.c (finish_optimization_passes): Only call
10969         finish_graph_dump_file if dfi->graph_dump_initialized.
10970         (execute_function_dump, pass_init_dump_file): Use
10971         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10972
10973 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10974
10975         PR tree-optimization/70256
10976         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10977         (debug_varmap): New function.
10978
10979 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10980
10981         PR other/70183
10982         * passes.c (pass_manager::register_pass): Propagate pflags.
10983
10984 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10985
10986         PR other/68875
10987         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10988         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10989         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10990         check if it's equal to p_start.
10991         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10992
10993 2016-04-15  Jan Hubicka  <jh@suse.cz>
10994
10995         PR ipa/70018
10996         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10997         function does not bind to current def.
10998         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10999         handle conservatively calls to functions that does not need to bind
11000         to current def.
11001         (check_call): Update call of worse_state.
11002         (ignore_edge_for_nothrow): Update.
11003         (ignore_edge_for_pure_const): Likewise.
11004         (propagate_pure_const): Update calls to worse_state.
11005         (skip_function_for_local_pure_const): Reformat comments.
11006
11007 2016-04-15  Jan Hubicka  <jh@suse.cz>
11008
11009         PR ipa/70018
11010         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11011         (cgraph_node::function_symbol): Likewise.
11012         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11013         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11014         (symtab_node::ultimate_alias_target): Add REF parameter.
11015         (symtab_node::binds_to_current_def_p): Declare.
11016         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11017         (cgraph_node::function_symbol): Likewise.
11018         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11019         (cgraph_node::get_availability): Likewise.
11020         (cgraph_edge::binds_to_current_def_p): New inline function.
11021         (varpool_node::get_availability): Add REF parameter.
11022         (varpool_node::ultimate_alias_target): Likewise.
11023         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11024         (symtab_node::binds_to_current_def_p): Likewise.
11025         * varpool.c (varpool_node::get_availability): Likewise.
11026
11027 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11028
11029         PR target/70662
11030         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11031         Fix mode size check.
11032
11033 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11034
11035         * BASE-VER: Set to 7.0.0.
11036
11037 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
11038
11039         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11040
11041 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11042
11043         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11044         architecture revisions.
11045
11046 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
11047
11048         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11049         * config/i386/i386.c (ix86_using_red_zone): No longer static.
11050         * config/i386/i386.md (stack decrement to push peepholes): Guard
11051         with !x86_using_red_zone ().
11052
11053 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11054
11055         PR c++/70675
11056         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11057         to dump_generic_node.
11058         (NIY): Pass also flags to do_niy.
11059
11060 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11061
11062         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11063         (simd_clone_vector_of_formal_parm_types)
11064         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11065         (simd_clone_mangle, simd_clone_create)
11066         (simd_clone_adjust_return_type, create_tmp_simd_array)
11067         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11068         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11069         (ipa_simd_modify_function_body, simd_clone_linear_addend)
11070         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11071         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11072         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11073         * omp-simd-clone.c: ... this new file.
11074         (simd_clone_vector_of_formal_parm_types): Make it static.
11075         * Makefile.in (OBJS): Add omp-simd-clone.o.
11076
11077 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11078
11079         PR target/70662
11080         * config/i386/sse.md: Use proper memory operand modifiers.
11081
11082
11083 2016-04-15  Richard Biener  <rguenther@suse.de>
11084         Alan Modra  <amodra@gmail.com>
11085
11086         PR tree-optimization/70130
11087         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11088         when alignment stays not the same and no not use the realign
11089         scheme then.
11090
11091 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11092
11093         PR target/70669
11094         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11095         direct move handlers for KFmode. Change TFmode handlers test from
11096         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11097
11098 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
11099
11100         PR c++/70594
11101         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11102         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11103         (inlined_polymorphic_ctor_dtor_block_p): Use it.
11104         * tree-ssa-live.c (remove_unused_scope_block_p): When
11105         in_ctor_dtor_block, avoid discarding not just BLOCKs with
11106         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11107         block_ultimate_origin is FUNCTION_DECL.
11108         (remove_unused_locals): If current_function_decl is
11109         polymorphic_ctor_dtor_p, pass initial true to
11110         remove_unused_scope_block_p' is_ctor_dtor_block.
11111
11112 2016-04-14  Martin Sebor  <msebor@redhat.com>
11113
11114         PR c++/69517
11115         PR c++/70019
11116         PR c++/70588
11117         * doc/extend.texi (Variable Length): Revert.
11118
11119 2016-04-14  Marek Polacek  <polacek@redhat.com>
11120             Jan Hubicka  <hubicka@ucw.cz>
11121
11122         PR c++/70029
11123         * tree.c (verify_type): Disable the canonical type of main variant
11124         check.
11125
11126 2016-04-14  Jason Merrill  <jason@redhat.com>
11127
11128         * cfgexpand.c, expr.c: Revert previous change.
11129
11130 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11131
11132         PR middle-end/70643
11133         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11134         when building a mem ref for the incoming reduction variable.
11135
11136 2016-04-14  Richard Biener  <rguenther@suse.de>
11137
11138         PR tree-optimization/70614
11139         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11140         loop if the evolution dropped to chrec_dont_know.
11141         (interpret_condition_phi): Likewise.
11142
11143 2016-04-14  Richard Biener  <rguenther@suse.de>
11144
11145         PR tree-optimization/70623
11146         * tree-ssa-pre.c (changed_blocks): Make global ...
11147         (compute_antic): ... local here.  Move and fix worklist
11148         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11149         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
11150         worklist handling, dump when ANTIC_IN changed.
11151         (compute_partial_antic_aux): Remove worklist handling.
11152         (init_pre): Do not compute post dominators.  Add a comment about
11153         the CFG order chosen.
11154         (fini_pre): Do not free post dominators.
11155
11156 2016-04-13  Martin Sebor  <msebor@redhat.com>
11157
11158         PR c++/69517
11159         PR c++/70019
11160         PR c++/70588
11161         * doc/extend.texi (Variable Length): Document C++ specifics.
11162
11163 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11164
11165         PR c++/70641
11166         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11167         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
11168         eh edges have been purged.
11169
11170         PR c++/70594
11171         * tree-sra.c (create_access_replacement,
11172         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11173         gets fancy name.
11174         * tree-pretty-print.c (dump_fancy_name): New function.
11175         (dump_decl_name, dump_generic_node): Use it.
11176
11177 2016-04-13  Jason Merrill  <jason@redhat.com>
11178
11179         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11180         * expr.c (expand_expr_real_1): Likewise.
11181
11182 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11183
11184         * config/i386/i386.md (kunpckhi): Swap operands.
11185         (kunpcksi): Likewise.
11186         (kunpckdi): Likewise.
11187         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11188         (vec_pack_trunc_<mode>): Likewise.
11189
11190 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11191
11192         PR debug/70628
11193         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11194
11195         PR middle-end/70633
11196         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11197         gimplification turns some element into non-constant.
11198
11199         PR debug/70628
11200         * rtl.h (convert_memory_address_addr_space_1): New prototype.
11201         * explow.c (convert_memory_address_addr_space_1): No longer static,
11202         add NO_EMIT argument and don't call convert_modes if true, pass
11203         it down recursively, remove break after return.
11204         (convert_memory_address_addr_space): Adjust caller.
11205         * simplify-rtx.c (simplify_unary_operation_1): Call
11206         convert_memory_address_addr_space_1 instead of convert_memory_address,
11207         if it returns NULL, don't simplify.
11208
11209 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11210
11211         PR target/70630
11212         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11213
11214 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11215
11216         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11217         Bump the upper SIMDLEN limits, so that if the return type or
11218         characteristic type if the return type is void can be passed in
11219         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11220         allowed.
11221
11222 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11223
11224         PR target/70640
11225         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11226         Do not use "=" constraint on an input constraint.
11227         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11228         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11229         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11230         generates (neg (abs ...)) instead of (abs ...).
11231
11232 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11233
11234         PR rtl-optimization/70596
11235         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11236         just invalidate LRA data and reset them.  Adjust dump wording.
11237
11238 2016-04-12  Martin Liska  <mliska@suse.cz>
11239
11240         Revert
11241         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11242
11243         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11244         estimates here.
11245         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11246         max_loop_iterations_int.
11247         (tree_unswitch_outer_loop): Likewise.
11248         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11249         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11250
11251 2016-04-12  Tom de Vries  <tom@codesourcery.com>
11252
11253         PR tree-optimization/68756
11254         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11255         instead of new_name.
11256
11257 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11258
11259         PR tree-optimization/70602
11260         * tree-sra.c (generate_subtree_copies): Don't write anything into
11261         constant pool decls.
11262
11263         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11264         regardless whether there are depend clauses or not.
11265
11266 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11267
11268         PR target/70381
11269         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11270         target attribute and pragma from changing the -mfloat128
11271         and -mfloat128-hardware options.
11272
11273         * doc/extend.texi (Additional Floating Types): Document PowerPC
11274         __float128 restrictions.
11275
11276 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11277
11278         PR target/70133
11279         * config/aarch64/driver-aarch64.c
11280         (aarch64_get_extension_string_for_isa_flags): New.
11281         (arch_extension): Rename to...
11282         (aarch64_arch_extension): ...This.
11283         (ext_to_feat_string): Rename to...
11284         (aarch64_extensions): ...This.
11285         (aarch64_core_data): Keep track of architecture extension flags.
11286         (cpu_data): Rename to...
11287         (aarch64_cpu_data): ...This.
11288         (aarch64_arch_driver_info): Keep track of architecture extension
11289         flags.
11290         (get_arch_name_from_id): Rename to...
11291         (get_arch_from_id): ...This, change return type.
11292         (host_detect_local_cpu): Update and reformat for renames, handle
11293         extensions through common infrastructure.
11294
11295 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11296
11297         PR target/70133
11298         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
11299         track of a canonical flag name.
11300         (all_extensions): Likewise.
11301         (arch_to_arch_name): Also track extension flags enabled by the arch.
11302         (all_architectures): Likewise.
11303         (aarch64_parse_extension): Move to here.
11304         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
11305         rework.
11306         (aarch64_rewrite_selected_cpu): Update for above change.
11307         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
11308         are handled, such that the single explicit value enabled by an
11309         extension is kept seperate from the implicit values it also enables.
11310         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
11311         to here.
11312         (aarch64_parse_extension): New.
11313         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
11314         here to config/aarch64/aarch64-protos.h.
11315         (aarch64_parse_extension): Move from here to
11316         common/config/aarch64/aarch64-common.c.
11317         (aarch64_option_print): Update.
11318         (aarch64_declare_function_name): Likewise.
11319         (aarch64_start_file): Likewise.
11320         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
11321         the canonical flag for extensions.
11322         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
11323         flags.
11324
11325 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11326
11327         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
11328         AARCH64_FL_CRC.
11329
11330 2016-04-09  Tom de Vries  <tom@codesourcery.com>
11331
11332         PR tree-optimization/68953
11333         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
11334         first to last subscript.
11335
11336 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
11337
11338         PR tree-optimization/70586
11339         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
11340         for any calls.
11341
11342 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
11343
11344         PR lto/70289
11345         PR ipa/70348
11346         PR tree-optimization/70373
11347         PR middle-end/70533
11348         PR middle-end/70534
11349         PR middle-end/70535
11350         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
11351         clauses for acc parallel reductions as necessary.  Error on those
11352         that are private.
11353         * omp-low.c (scan_sharing_clauses): Don't install variables which
11354         are used in acc parallel reductions.
11355         (lower_rec_input_clauses): Remove dead code.
11356         (lower_oacc_reductions): Add support for reference reductions.
11357         (lower_reduction_clauses): Remove dead code.
11358         (lower_omp_target): Don't remap variables appearing in acc parallel
11359         reductions.
11360         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
11361
11362 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
11363
11364         PR middle-end/70593
11365         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
11366         with multiple SSA_NAME defs, force the outputs other than first
11367         to be live before calling live_track_process_def on each output.
11368
11369         PR rtl-optimization/70574
11370         * fwprop.c (forward_propagate_and_simplify): Don't add
11371         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
11372         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
11373         paradoxical subregs within *loc.
11374
11375 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
11376
11377         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
11378         -ftree-parallelize-loops={0,1}.
11379         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11380         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11381         * config/ia64/hpux.h (LIB_SPEC): Likewise.
11382         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11383         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11384
11385 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
11386
11387         PR sanitizer/70541
11388         * asan.c (instrument_derefs): If we get unknown location, extract it
11389         with EXPR_LOCATION.
11390         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
11391
11392 2016-04-08  Tom de Vries  <tom@codesourcery.com>
11393
11394         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
11395         implicit firstprivate clause.
11396
11397 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11398
11399         PR target/70566
11400         * config/arm/thumb2.md (tst + branch-> lsls + branch
11401         peephole below *orsi_not_shiftsi_si): Require that condition
11402         register is dead after the peephole.
11403         (second peephole after the above): Likewise.
11404
11405 2016-04-08  Alan Modra  <amodra@gmail.com>
11406
11407         PR target/70117
11408         * builtins.c (fold_builtin_classify): For IBM extended precision,
11409         look at just the high-order double to test for NaN.
11410         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
11411         test just the high double for Inf but both doubles for subnormal
11412         limit.
11413
11414 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
11415
11416         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
11417         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
11418         node->simdclone->mask_mode != VOIDmode masks.
11419         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
11420         earlier, use it instead of node->simdclone.
11421         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11422         Set clonei->mask_mode.
11423
11424 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11425
11426         PR c/70436
11427         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
11428         Pass it through to cp_parser_already_scoped_statement.
11429         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
11430         it through to cp_parser_statement.
11431         (cp_parser_statement): Pass IF_P through to
11432         cp_parser_iteration_statement.
11433         (cp_parser_pragma): Adjust call to
11434         cp_parser_iteration_statement.
11435
11436 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11437
11438         PR c/70436
11439         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
11440         resolve a future -Wparentheses warning.
11441         * omp-low.c (scan_sharing_clauses): Likewise.
11442         * tree-parloops.c (eliminate_local_variables): Likewise.
11443
11444 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
11445
11446         PR rtl-optimization/70398
11447         * lra-constraints.c (process_address_1): Check zero scale and code
11448         for reloading with zero scale.
11449
11450 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
11451
11452         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
11453         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
11454
11455 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
11456
11457         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11458         Add support for AVX512F clones, include them by default for
11459         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
11460         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
11461         up to 128.
11462
11463         PR middle-end/70550
11464         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
11465         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
11466         firstprivate clauses.
11467         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
11468         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
11469         (lower_omp_target): Set TREE_NO_WARNING for
11470         non-addressable possibly uninitialized vars which are copied into
11471         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
11472
11473 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
11474
11475         * config/pa/predicates.md (integer_store_memory_operand): Accept
11476         REG+D operands with a large offset when reload_in_progress is true.
11477         (floating_point_store_memory_operand): Likewise.
11478
11479 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11480
11481         PR c++/70336
11482         * match.pd (nested int casts): Limit to GIMPLE.
11483
11484 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
11485
11486         PR ipa/66223
11487         * ipa-devirt.c (maybe_record_node): Fix comment; use
11488         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
11489
11490 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11491
11492         PR rtl-optimization/70542
11493         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
11494         if there are any uses other than insn or debug insns.
11495
11496 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
11497             Jakub Jelinek  <jakub@redhat.com>
11498
11499         PR tree-optimization/70509
11500         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
11501         Shift HOST_WIDE_INT_1U instead of 1.
11502
11503 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
11504
11505         PR tree-optimization/70509
11506         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
11507         of the vector base type for index.
11508
11509 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
11510
11511         PR target/70510
11512         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
11513
11514 2016-04-05  Richard Biener  <rguenther@suse.de>
11515
11516         PR tree-optimization/70526
11517         * tree-sra.c (build_ref_for_offset): Use prev_base to
11518         extract the alias pointer type.
11519
11520 2016-04-05  Richard Biener  <rguenther@suse.de>
11521
11522         * dse.c (struct store_info): Remove alias_set member.
11523         (struct read_info_type): Likewise.
11524         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
11525         spill_deleted, clear_alias_set_lookup): Remove.
11526         (get_group_info): Remove dead base == NULL_RTX case.
11527         (dse_step0): Remove initialization of removed variables.
11528         (delete_dead_store_insn): Reomve alias set dumping.
11529         (free_read_records): Remove alias_set handling.
11530         (canon_address): Remove alias_set_out parameter.
11531         (record_store): Remove spill_alias_set, it's always zero.
11532         (check_mem_read_rtx): Likewise.
11533         (dse_step2): Rename from ...
11534         (dse_step2_nospill): ... this.  Adjust.
11535         (scan_stores): Rename from ...
11536         (scan_stores_nospill): ... this.
11537         (scan_reads): Rename from ...
11538         (scan_reads_nospill): ... this.
11539         (scan_stores_spill, scan_reads_spill): Remove.
11540         (dse_step3_scan): Remove for_spills argument which is always false.
11541         (dse_step3): Likewise.
11542         (dse_step5): Rename from ...
11543         (dse_step5_nospill): ... this.  Remove alias_set handling.
11544         (rest_of_handle_dse): Adjust.
11545
11546 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
11547
11548         PR target/70525
11549         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
11550         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
11551         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
11552         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
11553
11554 2016-04-05  Richard Biener  <rguenther@suse.de>
11555
11556         PR middle-end/70499
11557         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
11558         non-register type temporaries into SSA.
11559
11560 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
11561
11562         PR ipa/66223
11563         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
11564         calls when sanitizing.
11565         (possible_polymorphic_call_target_p): Fix formatting.
11566
11567 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11568             Jakub Jelinek <jakub@redhat.com>
11569
11570         PR middle-end/70457
11571         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
11572         to ensure a call statement is compatible with a built-in's
11573         prototype.
11574         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
11575         Likewise.
11576
11577 2016-04-04  Richard Biener  <rguenther@suse.de>
11578
11579         PR rtl-optimization/70484
11580         * rtl.h (canon_output_dependence): Declare.
11581         * alias.c (canon_output_dependence): New function.
11582         * dse.c (record_store): Use canon_output_dependence rather
11583         than canon_true_dependence.
11584
11585 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11586
11587         PR ipa/68881
11588         * cgraph.h (symtab_node::copy_visibility_from): New function.
11589         * symtab.c (symtab_node::copy_visibility_from): New function.
11590         * ipa-visibility.c (optimize_weakref): New function.
11591         (function_and_variable_visibility): Use it.
11592
11593 2016-04-04  Martin Liska  <mliska@suse.cz>
11594
11595         PR hsa/70402
11596         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
11597         value that is really in range handled by SBR instruction.
11598         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
11599         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
11600         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
11601
11602 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
11603
11604         PR target/70416
11605         PR target/67391
11606         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
11607         set, but not for SP_REG operands.
11608
11609 2016-04-02  Martin Sebor  <msebor@redhat.com>
11610
11611         PR c++/67376
11612         * fold-const.c (maybe_nonzero_address): New function.
11613         (fold_comparison): Call it.  Fold equality and relational
11614         expressions involving null pointers.
11615         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
11616
11617 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
11618
11619         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
11620         the "Y" constraint (scalar FP 0.0 immediate).
11621
11622         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
11623         Add the "const_double" to the list of operand constraints.
11624
11625 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
11626
11627         PR rtl-optimization/70467
11628         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
11629         If low word of the last operand is 0, just emit addition/subtraction
11630         for the high word.
11631
11632 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11633
11634         PR target/70404
11635         * config/s390/s390.c (s390_expand_insv): Check for everything
11636         constant instead of just VOIDmode stuff.
11637
11638 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11639
11640         PR target/70496
11641         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
11642
11643 2016-04-01  Nathan Sidwell  <nathan@acm.org>
11644
11645         * tree.def (TRY_CATCH_EXPR): Correct documentation.
11646
11647 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11648
11649         PR rtl-optimization/70461
11650         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
11651         is necessary.
11652
11653 2016-03-31  Martin Liska  <mliska@suse.cz>
11654
11655         PR hsa/70399
11656         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
11657         a tree value or an immediate integer value to a buffer
11658         that is eventually copied to a BRIG section.
11659         (emit_immediate_operand): Call the function here.
11660         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
11661         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
11662         of class' fields that are removed.
11663         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
11664         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
11665         m_brig_repr_size fields.
11666
11667 2016-03-31  Martin Liska  <mliska@suse.cz>
11668
11669         PR hsa/70391
11670         * hsa-gen.c (hsa_function_representation::update_dominance): New
11671         function.
11672         (convert_addr_to_flat_segment): Likewise.
11673         (gen_hsa_memory_set): New alignment argument.
11674         (gen_hsa_ctor_assignment): Likewise.
11675         (gen_hsa_insns_for_single_assignment): Provide alignment
11676         to gen_hsa_ctor_assignment.
11677         (gen_hsa_insns_for_direct_call): Add new argument.
11678         (expand_lhs_of_string_op): New function.
11679         (expand_string_operation_builtin): Likewise.
11680         (expand_memory_copy): New function.
11681         (expand_memory_set): New function.
11682         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
11683         (convert_switch_statements): Change signature.
11684         (generate_hsa): Use a return value of the function.
11685         (pass_gen_hsail::execute): Do not call
11686         convert_switch_statements here.
11687         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
11688         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
11689         (hsa_function_representation::update_dominance): New function.
11690
11691 2016-03-31  Martin Liska  <mliska@suse.cz>
11692
11693         PR hsa/70391
11694         * hsa-brig.c (emit_directive_variable): Emit alignment
11695         according to hsa_symbol::m_align.
11696         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
11697         (dump_hsa_symbol): Dump alignment of HSA symbols.
11698         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
11699         (gen_hsa_addr_with_align): New function.
11700         (hsa_bitmemref_alignment): Use newly added function.
11701         (gen_hsa_insns_for_load): Likewise.
11702         (gen_hsa_insns_for_store): Likewise.
11703         (gen_hsa_memory_copy): New argument added.
11704         (gen_hsa_insns_for_single_assignment): Respect
11705         alignment for assignments processed via gen_hsa_memory_copy.
11706         (gen_hsa_insns_for_direct_call): Likewise.
11707         (gen_hsa_insns_for_return): Likewise.
11708         (gen_function_def_parameters): Set default alignment.
11709         * hsa.c (hsa_object_alignment): New function.
11710         (hsa_byte_alignment): Pasted function.
11711         * hsa.h (hsa_symbol::m_align): New field.
11712
11713 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11714
11715         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11716         scratch field for goto case.
11717
11718 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
11719
11720         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11721
11722 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
11723
11724         PR target/70442
11725         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11726         (scalar_chain::convert_insn): Call convert_op for reg
11727         moves to handle undefined registers.
11728
11729 2016-03-31  Nathan Sidwell  <nathan@acm.org>
11730
11731         PR c++/70393
11732         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11733         Assert we don't want to move backwards.
11734
11735 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11736
11737         PR target/70453
11738         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11739
11740 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
11741
11742         PR rtl-optimization/70460
11743         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11744         with operand from REG_LABEL_OPERAND, instead substitute
11745         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11746         Don't do anything for REG_NON_LOCAL_GOTO jumps.
11747
11748 2016-03-31  Martin Liska  <mliska@suse.cz>
11749
11750         * passes.c (execute_one_pass): Do not call
11751         todo_after for a discarded function.
11752
11753 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
11754
11755         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11756         (no_cost, infinite_cost): Initialize the new field.
11757         (get_computation_cost_at): Record setup cost.
11758         (determine_use_iv_cost_address): Skip cost computation for sub
11759         uses if we can estimate it without losing accuracy.
11760
11761 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11762
11763         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11764         estimates here.
11765         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11766         max_loop_iterations_int.
11767         (tree_unswitch_outer_loop): Likewise.
11768         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11769         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11770
11771 2016-03-30  Richard Biener  <rguenther@suse.de>
11772
11773         PR middle-end/70450
11774         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11775
11776 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
11777
11778         PR target/70421
11779         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11780         in gen_blendm expander.
11781
11782 2016-03-30  Nick Clifton  <nickc@redhat.com>
11783
11784         PR target/62254
11785         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11786         case where we are already provided with an SImode SUBREG.
11787
11788 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11789
11790         PR target/70439
11791         * config/i386/i386.c (ix86_expand_epilogue): Properly check
11792         conflict between DRAP register and __builtin_eh_return.
11793
11794 2016-03-30  Michael Matz  <matz@suse.de>
11795             Richard Biener  <rguenther@suse.de>
11796
11797         PR ipa/12392
11798         * ipa-polymorphic-call.c (struct type_change_info): Change
11799         speculative to an unsigned allowing to limit the work we do.
11800         (csftc_abort_walking_p): New inline function..
11801         (check_stmt_for_type_change): Limit the number of may-defs
11802         skipped for speculative devirtualization to
11803         max-speculative-devirt-maydefs.
11804         * params.def (max-speculative-devirt-maydefs): New param.
11805         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11806
11807 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
11808
11809         PR target/63890
11810         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11811         and TARGET_MACHO.
11812
11813 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
11814
11815         PR tree-optimization/59124
11816         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
11817         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
11818
11819 2016-03-29  Jeff Law  <law@redhat.com>
11820
11821         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
11822
11823 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11824
11825         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
11826         to HOST_WIDE_INT.
11827
11828 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11829
11830         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
11831         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
11832         gcrt0.o if linking dynamically.
11833
11834 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11835
11836         PR ipa/70283
11837         * ipa-devirt.c (methods_equal_p): New function.
11838         (compare_virtual_tables): Use it.
11839         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
11840         * cgraphclones.c (clone_function_name_1): Use
11841         symbol_table::symbol_suffix_separator.
11842         * coverage.c (build_var): Likewise.
11843         * symtab.c (symbol_table::symbol_suffix_separator): New.
11844
11845 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
11846
11847         PR rtl-optimization/70429
11848         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
11849         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
11850         mode != result_mode.
11851
11852         PR c++/70353
11853         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
11854
11855         PR tree-optimization/70405
11856         * ssa-iterators.h (num_imm_uses): Add missing braces.
11857
11858 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11859
11860         PR rtl-optimization/68695
11861         * ira-color.c (allocno_copy_cost_saving): New.
11862         (improve_allocation): Use it.
11863
11864 2016-03-29  Richard Henderson  <rth@redhat.com>
11865
11866         PR middle-end/70355
11867         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11868
11869 2016-03-29  Richard Biener  <rguenther@suse.de>
11870
11871         PR middle-end/70424
11872         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11873         use alignment returned by get_pointer_alignment_1 if it is
11874         bigger than BITS_PER_UNIT.
11875         * builtins.c (get_pointer_alignment_1): Do not return true
11876         for alignment extracted from SSA info.
11877
11878 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11879
11880         * config/ft32/ft32.opt (mnodiv): New.
11881         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11882         * doc/invoke.texi (FT32 Options -mnodiv): New.
11883
11884 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11885
11886         PR target/70406
11887         * config/i386/i386.md (define_split, andn): Fix modes.
11888
11889 2016-03-26  Richard Biener  <rguenther@suse.de>
11890             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11891
11892         PR ipa/70366
11893         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11894         instead of
11895         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11896         as 2nd argument to cl_optimization_restore().
11897
11898 2016-03-25  Richard Henderson  <rth@redhat.com>
11899
11900         PR target/70120
11901         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11902         * config/aarch64/aarch64-protos.h: Declare it.
11903         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11904
11905 2016-03-25  Alan Modra  <amodra@gmail.com>
11906
11907         PR target/70052
11908         * config/rs6000/constraints.md (j): Simplify.
11909         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11910         decimal float 0.D.
11911         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11912         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11913          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11914         in all constraint alternatives.
11915         (movtd_64bit_nodm): Delete "j" constraint alternative.
11916
11917 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11918
11919         * tree-ssa-propagate.c: Enhance docs for
11920         SSA_PROP_NOT_INTERESTING.
11921
11922 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11923
11924         * doc/extend.texi: Fix typo in documentation to pure attribute.
11925
11926 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11927
11928         PR target/70319
11929         * config/pa/pa.md (bswapdi2): Use a scratch register.
11930
11931 2016-03-24  Richard Henderson  <rth@redhat.com>
11932
11933         PR middle-end/69845
11934         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11935         overflow.
11936
11937 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11938
11939         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11940         using ix86_expand_binary_operator instead of gen_andsi3.
11941
11942 2016-03-24  Richard Biener  <rguenther@suse.de>
11943
11944         PR tree-optimization/70396
11945         * tree-vect-stmts.c (vectorizable_comparison): Use
11946         get_vectype_for_scalar_type.
11947
11948 2016-03-24  Richard Biener  <rguenther@suse.de>
11949
11950         PR middle-end/70370
11951         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11952         with register bases.
11953
11954 2016-03-24  Richard Biener  <rguenther@suse.de>
11955
11956         PR tree-optimization/70372
11957         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11958         build_all_ones_cst to also handle vector types correctly.
11959
11960 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11961
11962         PR target/70381
11963         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11964         -mfloat128 here.
11965
11966 2016-03-23  Marek Polacek  <polacek@redhat.com>
11967
11968         PR c++/69884
11969         * doc/invoke.texi: Document -Wignored-attributes.
11970
11971 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11972
11973         PR tree-optimization/69042
11974         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11975         parameter from 30 to 40.
11976
11977 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11978
11979         PR tree-optimization/69042
11980         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11981         for use with constant offset stripped in base.
11982
11983 2016-03-23  Richard Biener  <rguenther@suse.de>
11984
11985         PR middle-end/70251
11986         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11987         mode compatibility check.
11988         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11989
11990 2016-03-23  Jeff Law  <law@redhat.com>
11991
11992         PR tree-optimization/64058
11993         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11994         CONFLICT_COUNT.
11995         (struct ssa_conflicts): Move up earlier in the file.
11996         (conflicts_, var_map_): New static variables.
11997         (initialize_conflict_count): New function to initialize the
11998         CONFLICT_COUNT field for each conflict pair.
11999         (compare_pairs): Lazily initialize the conflict count and use it
12000         as the first tie-breaker.
12001         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
12002         and wipe conflicts_ and map_ around the call to qsort.  Remove
12003         special case for 2 coalesce pairs.
12004         * bitmap.c (bitmap_count_unique_bits): New function.
12005         (bitmap_count_bits_in_word): New function, extracted from
12006         bitmap_count_bits.
12007         (bitmap_count_bits): Use bitmap_count_bits_in_word.
12008         * bitmap.h (bitmap_count_unique_bits): Declare it.
12009
12010 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
12011
12012         PR target/69917
12013         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12014         transparent alias chain for decl assembler name.
12015         * config/sol2.c (solaris_assemble_visibility): Likewise.
12016
12017 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12018
12019         * config/arm/arm1020e.md (1020call_op): Reduce reservation
12020         duration.
12021         (v10_fdivs): Likewise.
12022         (v10_fdivd): Likewise.
12023
12024 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12025
12026         PR driver/70132
12027         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12028         to not call fclose twice on file.
12029
12030 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12031
12032         PR tree-optimization/70354
12033         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12034         oprnd0 is wider than oprnd1 and there is a cast from the wider
12035         type to oprnd1, mask it with the mask of the narrower type.
12036
12037         PR target/70321
12038         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12039         Optimize TARGET_STV splitters, if high or low word of last argument
12040         is 0 or -1.
12041
12042 2016-03-22  Jeff Law  <law@redhat.com>
12043
12044         PR target/70232
12045         tree-ssa-threadbackward.c
12046         (fsm_find_control_statement_thread_paths): Correctly distinguish
12047         between old style jump threads vs FSM jump threads.
12048
12049 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
12050
12051         PR target/70302
12052         * config/i386/i386.c (scalar_chain::convert_op): Support
12053         uninitialized register usage case.
12054
12055 2016-03-22  Richard Biener  <rguenther@suse.de>
12056
12057         PR middle-end/70251
12058         * genmatch.c (gen_transform): Adjust last parameter to a three-state
12059         int...
12060         (capture::gen_transform): ... to change behavior when substituting
12061         a condition into cond or not-cond expr context.
12062         (dt_simplify::gen_1): Adjust.
12063         * gimple-match-head.c: Include gimplify.h for unshare_expr.
12064         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12065         last change and instead change to
12066         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12067         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12068
12069 2016-03-22  Anthony Green  <green@moxielogic.com>
12070
12071         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
12072         issue for moxiebox targets.
12073         (CC1PLUS_SPEC): Ditto.
12074
12075 2016-03-22  Richard Biener  <rguenther@suse.de>
12076
12077         PR middle-end/70333
12078         * fold-const.c (extract_muldiv_1): Properly perform multiplication
12079         in the wide type.
12080
12081 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12082
12083         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12084
12085 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12086
12087         PR target/70325
12088         * config/i386/i386.c (def_builtin): Handle
12089         OPTION_MASK_ISA_AVX512VL to be and-ed with other
12090         bits.
12091         (const struct builtin_description bdesc_special_args[]):
12092         Remove duplicate ISA bits.
12093
12094 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
12095
12096         PR target/70329
12097         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12098         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
12099         in a way that works also for AVX512BW.
12100
12101         PR target/70300
12102         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12103         instead of source if operands[1] is xmm16 and above and
12104         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
12105         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12106
12107         PR c++/70295
12108         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12109         on assign if (*from_p) is a comparison, set it to
12110         TREE_NO_WARNING (*from_p).
12111
12112 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12113
12114         PR middle-end/70326
12115         * lra.c (restore_scratches): Ignore deleted insns.
12116
12117 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
12118             Jakub Jelinek  <jakub@redhat.com>
12119
12120         PR tree-optimization/70317
12121         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12122         to HONOR_NANS.
12123
12124 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
12125
12126         PR target/70327
12127         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12128         of ix86_expand_move.
12129         (movoi): Ditto.
12130         (movti): Use general_operand for operand 1 predicate.
12131
12132 2016-03-21  Martin Liska  <mliska@suse.cz>
12133
12134         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12135         insns.
12136         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12137
12138 2016-03-21  Martin Liska  <mliska@suse.cz>
12139
12140         PR ipa/70306
12141         * ipa-icf.c (sem_function::parse): Skip static
12142         constructors and destructors.
12143
12144 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12145
12146         PR target/70296
12147         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12148         function-like macro, peek following token(s) if it is followed
12149         by CPP_OPEN_PAREN token with optional padding in between, and
12150         if not, don't treat it like a macro.
12151
12152 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12153             Alexander Monakov  <amonakov@ispras.ru>
12154
12155         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12156         for the stabs debug format.
12157
12158 2016-03-21  Richard Biener  <rguenther@suse.de>
12159
12160         PR tree-optimization/70310
12161         * tree-vect-generic.c (expand_vector_condition): Fold the built
12162         condition.
12163
12164 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
12165
12166         PR target/70293
12167         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12168         Block third alternative for AVX-512VL target,
12169
12170 2016-03-21  Martin Liska  <mliska@suse.cz>
12171
12172         PR hsa/70234
12173         * hsa-brig.c (emit_function_directives): Mark unemitted
12174         global variables for emission.
12175         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12176         (get_symbol_for_decl): Likewise.
12177         * hsa.h (struct hsa_symbol): New flag.
12178
12179 2016-03-21  Richard Biener  <rguenther@suse.de>
12180
12181         PR tree-optimization/70288
12182         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12183         we do not estimate unsimplified all-constant conditionals or
12184         switches as optimized away.
12185
12186 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
12187
12188         PR rtl-optimization/69102
12189         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12190         when we have a readonly dependency context.
12191
12192 2016-03-18  Jeff Law  <law@redhat.com>
12193
12194         PR rtl-optimization/70263
12195         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12196         (update_equiv_regs): When trying to move a store to after the insn
12197         that sets the source of the store, make sure the store occurs after
12198         the insn that sets the source of the store.  When successful note
12199         the REG_EQUIV note created in the dump file.
12200
12201 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
12202             Bernd Schmidt  <bschmidt@redhat.com>
12203
12204         * doc/extend.texi: Document more potential problems with basic asms.
12205
12206 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
12207
12208         PR rtl-optimization/70278
12209         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12210         VOIDmode.
12211
12212 2016-03-18  Jason Merrill  <jason@redhat.com>
12213
12214         * calls.c (load_register_parameters): Fix zero size sibcall logic.
12215
12216 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12217
12218         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12219         values to 128b regs.
12220
12221 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12222
12223         PR tree-optimization/70252
12224         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12225         boolean vector has a proper number of elements.
12226         (supportable_narrowing_operation): Likewise.
12227
12228 2016-03-18  Tom de Vries  <tom@codesourcery.com>
12229
12230         PR ipa/70269
12231         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12232
12233 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
12234
12235         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12236         instead of replace_rtx for DEBUG_INSNs.
12237
12238 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12239
12240         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12241         load type reservations.
12242
12243 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
12244
12245         PR target/70188
12246         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
12247         define_constraint for "Q" and "T" constraints.
12248
12249 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
12250
12251         Tweak the pipeline model for Exynos M1
12252
12253         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
12254         model.
12255
12256 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
12257
12258         PR c/70264
12259         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12260         where one or both locations aren't within a line_map.
12261
12262 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12263
12264         PR driver/70192
12265         * opts.c (finish_options): Don't set flag_pie to the default if
12266         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
12267         if it is -1.
12268
12269 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12270
12271         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12272         true as ALL_REGS argument to replace_rtx.
12273
12274 2016-03-17  Richard Biener  <rguenther@suse.de>
12275
12276         PR debug/70271
12277         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12278         last.
12279
12280 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12281
12282         PR target/70245
12283         * rtl.h (replace_rtx): Add ALL_REGS argument.
12284         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
12285         equality and assert mode is the same, instead of just rtx pointer
12286         equality.
12287         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12288         true as ALL_REGS argument to replace_rtx.
12289
12290 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
12291
12292         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12293         for boolean vector with vector mode only.
12294         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12295
12296 2016-03-17  Nick Clifton  <nickc@redhat.com>
12297
12298         PR target/70162
12299         * config/rx/rx.c (rx_print_integer): Print negative constants in
12300         decimal.
12301
12302 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12303
12304         PR target/70261
12305         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
12306
12307 2016-03-16  Richard Henderson  <rth@redhat.com>
12308             Richard Biener  <rguenth@suse.de>
12309
12310         PR middle-end/70240
12311         PR middle-end/68215
12312         PR tree-opt/68714
12313         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
12314         first operand as is_gimple_condexpr.
12315
12316         PR middle-end/70240
12317         PR middle-end/68215
12318         Revert r231575
12319         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
12320         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
12321         Do not gimplify the result.
12322         (do_unop): Adjust call to tree_vec_extract.
12323         (do_binop): Likewise.
12324         (do_compare): Likewise.
12325         (do_plus_minus): Likewise.
12326         (do_negate): Likewise.
12327         (expand_vector_condition): Likewise.
12328         (do_cond): Likewise.
12329
12330 2016-03-16  Richard Henderson  <rth@redhat.com>
12331
12332         PR target/70048
12333         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
12334         (aarch64_classify_address): Use it.
12335         (aarch64_legitimize_address): Force all subexpressions of PLUS
12336         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
12337
12338 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
12339             Richard Biener  <rguenth@suse.de>
12340
12341         PR target/70245
12342         * rtlanal.c (replace_rtx): For REG, if from is a REG,
12343         return to even if only REGNO is equal, and assert
12344         mode is the same.
12345
12346 2016-03-11  Jeff Law  <law@redhat.com>
12347
12348         PR rtl-optimization/70224
12349         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
12350
12351 2016-03-16  Richard Henderson  <rth@redhat.com>
12352
12353         PR middle-end/70199
12354         * function.h (struct function): Add has_forced_label_in_static.
12355         * gimplify.c (force_labels_r): Set it.
12356         * lto-streamer-in.c (input_struct_function_base): Read it.
12357         * lto-streamer-out.c (output_struct_function_base): Write it.
12358         * tree-inline.c (has_label_address_in_static_1): Remove.
12359         (copy_forbidden): Remove fndecl parameter; test
12360         has_forced_label_in_static.
12361         (inline_forbidden_p): Update call to copy_forbidden.
12362         (tree_versionable_function_p): Likewise.
12363         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
12364         (chkp_versioning): Likewise.
12365         * tree-inline.h (copy_forbidden): Update decl.
12366
12367 2016-03-16  Marek Polacek  <polacek@redhat.com>
12368
12369         PR c/70093
12370         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
12371         function being thunked if the result type doesn't have fixed size.
12372         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
12373         doesn't have fixed size.
12374
12375 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
12376
12377         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
12378         reporting malformed loop nest.
12379
12380 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12381
12382         PR lto/70187
12383         * ipa-devirt.c (possible_polymorphic_call_targets): Move
12384         nodes.length () == 1 test to before first nodes[0] access.
12385
12386 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12387
12388         PR tree-optimization/68715
12389         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
12390         single_pred_p test.
12391
12392 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12393
12394         PR tree-optimization/68809
12395         * graphite-scop-detection.c (same_close_phi_node): Test if result types
12396         are the same.
12397
12398 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
12399             Sandra Loosemore  <sandra@codesourcery.com>
12400
12401         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
12402         on leaf attribute. Mention ELF interposition problems.
12403
12404 2016-03-16  Alan Modra  <amodra@gmail.com>
12405
12406         PR rtl-optimization/69195
12407         PR rtl-optimization/47992
12408         * ira.c (indirect_jump_optimize): Ignore artificial defs.
12409         Add comments.
12410
12411 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
12412
12413         PR bootstrap/69513
12414         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
12415
12416 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12417
12418         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
12419
12420 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
12421
12422         PR rtl-optimization/70222
12423         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
12424         optimization if mode is different from result_mode, queue up masking
12425         of the result in outer_op.  Formatting fix.
12426
12427         PR middle-end/70239
12428         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
12429         of safe_grow.
12430
12431 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12432
12433         PR rtl-optimization/69032
12434         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
12435         looping backwards over basic block insns.
12436
12437 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12438
12439         PR target/66660
12440         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
12441         to non-speculative when propagating trap bits.
12442
12443 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12444
12445         PR rtl-optimization/63384
12446         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
12447         DEBUG_INSN_P insns.
12448
12449 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12450
12451         PR target/64411
12452         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
12453         factored out from ...
12454         (sched_analyze_insn): ... here.
12455         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
12456         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
12457         get_implicit_reg_pending_clobbers in it.
12458         (setup_id_reg_sets): Use setup_id_implicit_regs.
12459         (deps_init_id): Ditto.
12460
12461 2016-03-15  Tom de Vries  <tom@codesourcery.com>
12462
12463         PR ipa/70161
12464         * cgraph.c (cgraph_node::get_body): Save, reset and restore
12465         dump_file_name.
12466         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
12467         execute_function_dump.
12468         (execute_one_pass): Don't dump function if it will be dumped after ipa
12469         transform.
12470
12471 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
12472
12473         * genrecog.c (match_pattern_2): If pred is NULL don't call
12474         safe_predicate_mode on it.
12475
12476 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
12477
12478         PR middle-end/70219
12479         * lra-constraints.c (delete_move_and_clobber): Change assertion
12480         to also allow dregno == 0.
12481
12482 2016-03-14  Richard Henderson  <rth@redhat.com>
12483
12484         PR tree-opt/68714
12485         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
12486         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
12487         (reassociate_bb): Use optimize_vec_cond_expr; avoid
12488         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
12489         on vectors.
12490
12491 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
12492
12493         PR target/70083
12494         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
12495         regs.
12496         (lra_create_live_ranges_1): initialize hard register biggest_mode to
12497         VOIDmode.
12498         * lra-constraints.c (split_reg): For hard regs, try to find the
12499         biggest single-register mode used in the function.
12500
12501 2016-03-14  Richard Biener  <rguenther@suse.de>
12502
12503         PR tree-optimization/56365
12504         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
12505         constants to compare against.
12506
12507 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
12508
12509         PR target/70098
12510         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
12511         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
12512         (define_split for the GPR case): Use int_reg_operand instead of
12513         gpc_reg_operand for the output.
12514
12515 2016-03-14  Tom de Vries  <tom@codesourcery.com>
12516
12517         PR tree-optimization/70045
12518         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
12519         create_empty_if_region_on_edge argument.
12520
12521 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
12522
12523         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
12524         (STACK_CHECK_PROTECT): Likewise.
12525         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12526         (STACK_CHECK_PROTECT): Likewise.
12527         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12528         (STACK_CHECK_PROTECT): Likewise.
12529         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
12530         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12531         (STACK_CHECK_PROTECT): Likewise.
12532
12533 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
12534
12535         PR rtl-optimization/69307
12536         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
12537         registers in modes that span more than one register.
12538
12539 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
12540
12541         PR target/69614
12542         * lra-constraints.c (delete_move_and_clobber): New.
12543         (remove_inheritance_pseudos): Use it.
12544
12545 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
12546
12547         PR ada/70017
12548         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
12549         the libcall is LCT_THROW.
12550         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
12551         for the checking routine.
12552
12553 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12554
12555         PR target/70131
12556         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
12557         optimization if we have direct move.
12558         (roundu32<mode>2_fprs): Likewise.
12559
12560 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
12561
12562         PR target/70123
12563         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
12564         be rematerialized.
12565         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
12566         Arguments swapped.  All callers changed.  Take reg_renumber into
12567         account, and Calculate and compare register ranges for hard regs.
12568
12569 2016-03-11  Jeff Law  <law@redhat.com>
12570
12571         PR tree-optimization/70190
12572         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12573         Handle cases where we can not extract the taken edge, even though we
12574         found a constant value.
12575
12576         PR tree-optimization/64058
12577         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
12578         (num_coalesce_pairs): Move up earlier in file.
12579         (find_coalesce_pair): Initialize the INDEX field for each pair
12580         discovered.
12581         (compare_pairs): No longer sort on the elements in each pair.
12582         Instead break ties with the index of the coalesce pair.
12583
12584 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12585
12586         PR target/70002
12587         * config/aarch64/aarch64-protos.h
12588         (aarch64_save_restore_target_globals): New prototype.
12589         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
12590         Call the above when popping pragma.
12591         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
12592         New function.
12593         (aarch64_set_current_function): Rewrite using the above.
12594
12595 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12596
12597         PR tree-optimization/70177
12598         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
12599         (extract_ops_from_tree): ... this.  In the 2 argument
12600         overload remove _1 suffix.
12601         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
12602         (extract_ops_from_tree): ... this.
12603         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
12604         Adjust callers.
12605         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12606         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
12607         extract_ops_from_tree instead of 2 operand one.
12608
12609 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
12610
12611         PR tree-optimization/70013
12612         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
12613         for constant-pool entries.
12614
12615 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
12616
12617         PR rtl-optimization/70174
12618         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
12619         followed by gen_lowpart on force_reg instead of just gen_lowpart.
12620
12621         PR tree-optimization/70169
12622         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
12623         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
12624         for unknown codes.
12625
12626 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
12627             Jakub Jelinek  <jakub@redhat.com>
12628
12629         PR target/70160
12630         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
12631         of uninitialized values.
12632
12633 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12634
12635         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
12636         define_expand.
12637         ("*trunctddd2"): New pattern definition.
12638         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
12639         TD->DD truncation.
12640
12641 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12642
12643         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
12644         definitions for BFP and DFP rounding modes.
12645         ("fixuns_truncdddi2", "fixuns_trunctddi2")
12646         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
12647         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
12648         ("fix_trunctf<mode>2"): Use the new constants instead of magic
12649         numbers.
12650
12651 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12652
12653         * config/s390/constraints.md: Adjust comment.
12654         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
12655         s390_decompose_addrstyle_without_index.
12656         * config/s390/predicates.md (shift_count_or_setmem_operand):
12657         Rename to setmem_operand.
12658         * config/s390/s390-protos.h
12659         (s390_decompose_shift_count): Rename to
12660         s390_decompose_addrstyle_without_index.
12661         * config/s390/s390.c (s390_decompose_shift_count)
12662         (s390_mem_constraint, print_shift_count_operand)
12663         (print_operand_address, print_operand): Rename
12664         s390_decompose_shift_count to
12665         s390_decompose_addrstyle_without_index and rename
12666         print_shift_count_operand to print_addrstyle_operand troughout the
12667         file.
12668         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
12669         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
12670         Rename shift_count_or_setmem_operand to setmem_operand.
12671         * config/s390/vx-builtins.md ("vec_insert<mode>")
12672         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
12673         nonmemory_operand.
12674
12675 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12676
12677         PR target/70168
12678         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12679         Handle overlapping retval and newval.
12680
12681 2016-03-10  Nick Clifton  <nickc@redhat.com>
12682
12683         PR target/7044
12684         * config/aarch64/aarch64.c
12685         (aarch64_override_options_after_change_1): When forcing
12686         flag_omit_frame_pointer to be true, use a special value that can
12687         be detected if this function is called again, thus preventing
12688         flag_omit_leaf_frame_pointer from being forced to be false.
12689
12690 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12691
12692         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12693         Set x_flag_omit_leaf_frame_pointer when handling
12694         -momit-leaf-frame-pointer.
12695
12696 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12697
12698         PR lto/69589
12699         * cgraph.c (cgraph_node::dump): Dump split_part and
12700         indirect_call_target.
12701         * cgraph.h (cgraph_node): Add indirect_call_target flag.
12702         * ipa.c (has_addr_references_p): Cleanup.
12703         (is_indirect_call_target_p): New.
12704         (walk_polymorphic_call_targets): Do not mark virtuals that may be
12705         called indirectly as local.
12706         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12707
12708 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12709
12710         PR ipa/69630
12711         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12712         on cxa_pure_virtual.
12713
12714 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12715
12716         PR lto/69589
12717         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12718
12719 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12720
12721         PR lto/69589
12722         * tree.c (need_assembler_name_p): Only record main variant type names.
12723
12724 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12725
12726         PR target/70113.
12727         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12728         Always define to 0 or 1.
12729         (TARGET_FIX_ERR_A53_843419): New macro.
12730         * config/aarch64/aarch64-elf-raw.h
12731         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12732         * config/aarch64/aarch64-linux.h: Likewise.
12733         * config/aarch64/aarch64.c
12734         (aarch64_override_options_after_change_1): Do not default
12735         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12736         843419 is on.
12737         (aarch64_attributes): Handle fix-cortex-a53-843419.
12738         (aarch64_can_inline_p): Likewise.
12739         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12740
12741 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
12742         Jakub Jelinek <jakub@redhat.com>
12743
12744         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12745         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12746         DECL_COMMONS if flag_unconstrained_commons is set.
12747         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12748         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12749         (funconstrained-commons): Document.
12750
12751 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
12752
12753         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12754         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12755
12756 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
12757
12758         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12759         has a proper number of elements.
12760
12761 2016-03-10  Alan Modra  <amodra@gmail.com>
12762
12763         PR rtl-optimization/69195
12764         PR rtl-optimization/47992
12765         * ira.c (recorded_label_ref): Delete.
12766         (update_equiv_regs): Return void.
12767         (indirect_jump_optimize): New function.
12768         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12769         before regstat_compute_ri.  Don't rebuild_jump_labels here.
12770         Delete update_regstat.
12771
12772 2016-03-10  Richard Biener  <rguenther@suse.de>
12773
12774         PR tree-optimization/70128
12775         * tree-ssa-structalias.c (set_uids_in_ptset): Set
12776         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12777
12778 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12779
12780         PR tree-optimization/70152
12781         * tree-sra.c (replace_removed_params_ssa_names): Copy over
12782         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12783
12784         PR target/70086
12785         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12786         instead of gen_sse2_loadlpd.
12787         * config/i386/sse.md (*vec_concatv2df): Rename to...
12788         (vec_concatv2df): ... this.
12789
12790         PR tree-optimization/70127
12791         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12792
12793 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12794
12795         PR c/68473
12796         PR c++/70105
12797         * diagnostic-show-locus.c (compatible_locations_p): New function.
12798         (layout::layout): Sanitize ranges using compatible_locations_p.
12799
12800 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
12801
12802         PR c/68473
12803         PR c++/70105
12804         * diagnostic-show-locus.c (layout_range::layout_range): Replace
12805         location_range param with three const expanded_locations * and a
12806         bool.
12807         (layout::layout): Replace call to
12808         rich_location::lazily_expand_location with get_expanded_location.
12809         Extract the range and perform location expansion here, passing
12810         the results to the layout_range ctor.
12811         * diagnostic.c (source_range::debug): Delete.
12812         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12813         of rich_location::get_expanded_location.
12814         * gcc-rich-location.c (get_range_for_expr): Delete.
12815         (gcc_rich_location::add_expr): Reimplement to avoid the
12816         rich_location::add_range overload that took a location_range,
12817         passing a location_t instead.
12818
12819 2016-03-09  Richard Biener  <rguenther@suse.de>
12820         Jakub Jelinek  <jakub@redhat.com>
12821
12822         PR tree-optimization/70138
12823         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12824         Also skip vect_double_reduction_def.
12825
12826 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
12827
12828         PR target/70049
12829         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
12830         if the operand is "m".
12831
12832 2016-03-09  Nathan Sidwell  <nathan@acm.org>
12833
12834         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
12835
12836 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12837
12838         * config/i386/i386.c (processor_target_table): Fix cost table
12839         intialization order for znver1.
12840
12841 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12842
12843         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
12844         - becuase -> because.
12845         * ipa-reference.c (ignore_module_statics): Likewise.
12846         * cgraph.c (cgraph_node::get_body): Likewise.
12847         * ipa-inline.c (early_inliner): Likewise.
12848         * ipa-devirt.c (types_same_for_odr): Likewise.
12849         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
12850         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
12851
12852 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12853
12854         * tree-ssa-math-opts.c: Fix typo in comment.
12855
12856 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12857
12858         PR target/70110
12859         * config/i386/i386.c (scalar_chain::make_vector_copies,
12860         scalar_chain::convert_reg): Call end_sequence in between
12861         get_insns and emit_conversion_insns rather than after both
12862         calls.
12863
12864 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12865
12866         PR target/70064
12867         * config/i386/i386.h (machine_function): Add
12868         pc_thunk_call_expanded flag.
12869         (ix86_pc_thunk_call_expanded): New define.
12870         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12871         (*set_got): Rename insn pattern from set_got.
12872         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12873         * config/i386/i386.c (ix86_compute_frame_layout): Use
12874         ix86_pc_thunk_call_expanded to prevent red-zone.
12875
12876 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12877
12878         * hsa.h (hsa_get_ctor_statements): Declare.
12879         (hsa_get_dtor_statements): Likewise.
12880         (hsa_get_kernel_dispatch_type): Likewise.
12881         * hsa.c (hsa_get_ctor_statements): New function.
12882         (hsa_get_dtor_statements): Likewise.
12883         (hsa_get_kernel_dispatch_type): Likewise.
12884         * hsa-brig.c (hsa_cdtor_statements): Removed.
12885         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12886         hsa_get_dtor_statements.
12887         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12888         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12889
12890 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12891
12892         * config/arm/arm-cores.def (cortex-r8): New.
12893         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12894         * config/arm/arm-tune.md: Likewise.
12895         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12896
12897 2016-03-07  Martin Sebor  <msebor@redhat.com>
12898
12899         PR rtl-optimization/19705
12900         * doc/invoke.texi (Options That Control Optimization): Clarify
12901         -fno-branch-count-reg.
12902
12903 2016-02-26  Richard Biener  <rguenther@suse.de>
12904             Jeff Law  <law@redhat.com>
12905
12906         PR tree-optimization/69740
12907         * cfghooks.c (remove_edge): Request loop fixups if we delete
12908         an edge that might turn an irreducible loop into a natural
12909         loop.
12910         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12911         Move after definition of loops_state_clear.
12912
12913 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12914
12915         PR rtl-optimization/69052
12916         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12917         to CONST_WIDE_INT.
12918
12919 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12920
12921         PR tree-optimization/70116
12922         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12923         is_tm_ending stmts and ubsan/asan internal functions.
12924         (find_duplicate): Use it.  Don't test is_tm_ending here.
12925
12926 2016-03-07  Richard Biener  <rguenther@suse.de>
12927
12928         PR tree-optimization/70115
12929         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12930         (propagate_constants_for_unrolling): Use replace_uses_by.
12931
12932 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12933
12934         PR middle-end/69916
12935         * omp-low.c (struct oacc_loop): Add ifns.
12936         (new_oacc_loop_raw): Initialize it.
12937         (finish_oacc_loop): Clear mask & flags if no ifns.
12938         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12939         (oacc_loop_xform_loop): Add ifns arg & adjust.
12940         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12941
12942 2016-03-07  Richard Henderson  <rth@redhat.com>
12943
12944         PR rtl-opt/70061
12945         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12946         (insert_value_copy_on_edge): Likewise.
12947
12948 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12949
12950         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12951
12952 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12953
12954         PR target/62281
12955         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12956
12957 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12958
12959         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12960
12961 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12962
12963         Fix sseimul type attribute.
12964         * config/i386/znver1.md
12965         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12966         znver1_sseimul_avx256_load) : Fix the type attribute.
12967         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12968         pipe usage and latency.
12969
12970 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12971
12972         PR c++/70084
12973         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12974         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12975         to the right type.
12976
12977 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12978
12979         PR c/69973
12980         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12981
12982         PR rtl-optimization/69941
12983         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12984         the reg share its mode.
12985
12986 2016-03-04  Jeff Law  <law@redhat.com>
12987
12988         PR tree-optimization/69196
12989         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12990         If the both SSA_NAMEs are anonymous, then consider them unassociated
12991         and include the PHI in the statement count.
12992
12993 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12994
12995         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12996         construct in oacc routine.  Check for oacc region in oacc routine.
12997
12998 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12999
13000         PR target/70062
13001         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
13002         2016-02-22 changes, instead don't recurse if RECUR is already true.
13003         Don't change *dynamic_check if RECUR.  Adjust recursive caller
13004         to pass true to the new argument.
13005         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13006
13007         PR target/70059
13008         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13009         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13010         fixes.
13011         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
13012
13013 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13014
13015         PR rtl-optimization/57676
13016         * lra-assigns.c (lra_assign): Guard test for maximum iterations
13017         with flag_checking.
13018
13019 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
13020
13021         * tree-vect-patterns.c (search_type_for_mask): Handle
13022         comparison of booleans.
13023
13024 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
13025
13026         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13027         Fix @xref usage.
13028
13029         PR debug/69947
13030         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13031         all other ops that have dw_val_class_die_ref operands,
13032         and DW_OP_GNU_entry_value.
13033
13034 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13035
13036         PR rtl-optimization/69904
13037         * config/arm/arm.c (arm_cannot_copy_insn_p):
13038         Return true for load-exclusive instructions.
13039
13040 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
13041
13042         PR target/70021
13043         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13044         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13045         the pattern no matter if it is used just by non-pattern, pattern
13046         or mix thereof.
13047         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13048         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13049         oprnd1 def_stmt is in pattern, don't look through it.
13050
13051 2016-03-03  Marek Polacek  <polacek@redhat.com>
13052
13053         PR middle-end/70050
13054         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13055
13056 2016-03-03  Martin Liska  <mliska@suse.cz>
13057
13058         PR tree-optimization/70043
13059         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13060         previous statement if we see a debug statement.
13061
13062 2016-03-03  Richard Biener  <rguenther@suse.de>
13063
13064         PR tree-optimization/55936
13065         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13066         parameter and guard unsafe equivalence use.
13067         (vrp_evaluate_conditional_warnv_with_ops): Always use
13068         safe equivalences but not via the quadratic compare_names
13069         helper.
13070
13071 2016-03-03  Michael Collison  <michael.collison@linaro.org>
13072
13073         PR target/70014
13074         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13075         for operand 1 to s_register_operand. Change predicate for operand
13076         2 to arm_not_immediate_operand.
13077
13078 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
13079
13080         * doc/tm.texi: Regenerated.
13081
13082 2016-03-02  Richard Henderson  <rth@redhat.com>
13083
13084         PR rtl-opt/67145
13085         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13086         simplification when all args are positive non-fixed registers.
13087
13088 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13089
13090         * target.def (lra_p): Specify that new ports should use LRA.
13091
13092 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13093
13094         PR libgomp/69555
13095         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13096         gimplify_type_sizes the type they refer to.
13097         (omp_notice_variable): Handle reference vars to VLAs.
13098         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13099         reference to VLA decls in the second pass instead of first pass.
13100
13101 2016-03-02  Tom de Vries  <tom@codesourcery.com>
13102
13103         PR tree-optimization/68659
13104         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13105         new_expr == NULL_TREE.
13106         (get_new_name): Handle ADDR_EXPR.
13107
13108 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
13109
13110         PR rtl-optimization/69052
13111         * loop-invariant.c (canonicalize_address): New function.
13112         (inv_can_prop_to_addr_use): Check validity of address expression
13113         which is canonicalized by above function.
13114
13115 2016-03-02  Alan Modra  <amodra@gmail.com>
13116
13117         PR ipa/69990
13118         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13119         larger alignment.
13120
13121 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13122
13123         PR target/70028
13124         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13125         (*movhi_internal): Put mask moves from and to memory separately
13126         from moves from/to GPRs.
13127
13128 2016-03-02  Richard Biener  <rguenther@suse.de>
13129
13130         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13131         GENERIC expressions in GIMPLE.
13132
13133 2016-03-02  Richard Biener  <rguenther@suse.de>
13134
13135         * config/i386/i386.c (type_natural_mode): Fix typo.
13136
13137 2016-03-02  Nick Clifton  <nickc@redhat.com>
13138
13139         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13140
13141 2016-03-02  Richard Biener  <rguenther@suse.de>
13142             Uros Bizjak  <ubizjak@gmail.com>
13143
13144         PR target/67278
13145         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13146
13147 2016-03-02  Richard Biener  <rguenther@suse.de>
13148
13149         PR middle-end/67278
13150         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13151
13152 2016-03-02  Marek Polacek  <polacek@redhat.com>
13153
13154         PR c/67854
13155         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13156         "is promoted to" warning.
13157
13158 2016-03-01  DJ Delorie  <dj@redhat.com>
13159
13160         * config.gcc: Deprecate mep-*.
13161
13162 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
13163
13164         PR middle-end/70025
13165         * lra-constraints.c (regno_val_use_in): New.
13166         (match_reload): Use it instead of regno_use_in.
13167
13168 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13169
13170         PR rtl-optimization/70007
13171         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13172         references present in REG_EQUAL notes attached to non-SET patterns.
13173
13174 2016-03-01  Jeff Law  <law@redhat.com>
13175
13176         PR tree-optimization/69196
13177         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13178         Appropriately clamp the number of statements to copy when the
13179         thread path does not traverse a loop backedge.
13180
13181         PR tree-optimization/69196
13182         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13183         Do count some PHIs in the thread path against the insn count.  Decrease
13184         final statement count by one as the control statement in the last
13185         block will get removed.  Remove special cased code for handling PHIs
13186         in the last block.
13187
13188 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
13189
13190         PR target/70027
13191         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13192         asm dialect alternatives to explicit GOTPCREL calls.
13193
13194 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13195
13196         PR ada/70017
13197         * ira.c (do_reload): Issue warning for generic stack checking here...
13198         * reload1.c (reload): ...instead of here and streamline it.
13199
13200 2016-03-01  Nick Clifton  <nickc@redhat.com>
13201
13202         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13203
13204 2016-03-01  Richard Biener  <rguenther@suse.de>
13205
13206         PR tree-optimization/69983
13207         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13208         types and fall back to operand_equal_p.
13209
13210 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13211
13212         Revert
13213         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13214
13215         * config/s390/constraints.md ("jm8"): New constraint.
13216         * config/s390/predicates.md ("const_int_8bitset_operand"): New
13217         predicate.
13218         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13219         into ...
13220         ("*setmem_long<setmem_and>"): New pattern.
13221         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13222         into ...
13223         ("*setmem_long_31z<setmem_and>"): New pattern.
13224         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13225         New substitution rules with the required attributes.
13226
13227
13228 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13229
13230         Revert
13231         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13232
13233         * gensupport.c (process_substs_on_one_elem): Split loop to
13234         complete mark_operands_used_in_match_dup on all expressions in the
13235         vector first.
13236         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13237         and remove function.
13238
13239 2016-03-01  Richard Biener  <rguenther@suse.de>
13240
13241         PR middle-end/70022
13242         * fold-const.c (fold_indirect_ref_1): Fix range checking for
13243         vector BIT_FIELD_REF extract.
13244
13245 2016-03-01  Richard Biener  <rguenther@suse.de>
13246
13247         PR tree-optimization/69994
13248         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13249
13250 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13251
13252         PR tree-optimization/69956
13253         * tree-vect-stmts.c (supportable_widening_operation): Support
13254         multi-step conversion of boolean vectors.
13255         (supportable_narrowing_operation): Likewise.
13256
13257 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13258
13259         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13260         anymore.
13261
13262 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13263
13264         * config/s390/subst.md (DSI_VI): New mode iterator.
13265         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13266         * config/s390/vector.md ("vec_set<mode>"): Move expander before
13267         the insn definition.
13268         ("*vec_set<mode>"): Change predicate and add alternative to
13269         support only either register or const_int operands as element
13270         selector.
13271         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13272         operands.
13273         ("vec_extract<mode>"): New expander.
13274         ("*vec_extract<mode>"): New insn definition supporting reg and
13275         const_int element selectors.
13276         ("*vec_extract<mode>_plus"): New insn definition supporting
13277         reg+const_int element selectors.
13278         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13279         following expander+insn definition.
13280         ("<vec_shifts_name><mode>3"): New expander.
13281         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13282
13283 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13284
13285         * config/s390/s390.md ("*tabort_1"): Change predicate to
13286         nonmemory_operand.  Add a second alternative to cover
13287         register as well as const int operands.
13288         ("*tabort_1_plus"): New pattern definition.
13289
13290 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13291
13292         * config/s390/s390.md ("*ashrdi3_cc_31")
13293         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13294         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13295         Merge insn definitions into ...
13296         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13297         New pattern definition.
13298         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
13299         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
13300         ("*ashr<mode>3_and"): Merge insn definitions into ...
13301         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13302         New pattern definition.
13303         * config/s390/subst.md ("addr_style_op_cc_subst")
13304         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
13305         substitutions patterns plus attributes.
13306         Add ashiftrt to SUBST iterator.
13307
13308 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13309
13310         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
13311         op2 to nonmemory_operand.
13312         ("*<shift>di3_31", "*<shift>di3_31_and"):
13313         Merge into single pattern definition ...
13314         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
13315         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
13316         pattern definition ...
13317         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
13318         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
13319         iterator.
13320
13321 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13322
13323         * config/s390/predicates.md (const_int_6bitset_operand): New
13324         predicate.
13325         * config/s390/s390.md: Include subst.md.
13326         ("rotl<mode>3"): New expander.
13327         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
13328         ...
13329         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
13330         * config/s390/subst.md: New file.
13331
13332 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13333
13334         * config/s390/s390.md ("op_type", "atype", "length" attributes):
13335         Remove RRR type.  It doesn't really exist.
13336         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
13337         attributes.
13338         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
13339         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
13340         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
13341         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
13342         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
13343         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
13344         `enabled' attribute.
13345
13346 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13347
13348         * gensupport.c (process_substs_on_one_elem): Split loop to
13349         complete mark_operands_used_in_match_dup on all expressions in the
13350         vector first.
13351         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13352         and remove function.
13353
13354 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13355
13356         PR target/69706
13357         * config/sparc/sparc.c (NWORDS_UP): Rename to...
13358         (CEIL_NWORDS): ...this.  Use CEIL macro.
13359         (compute_fp_layout): Adjust to above renaming.
13360         (function_arg_union_value): Likewise.
13361         (sparc_arg_partial_bytes): Likewise.
13362         (sparc_function_arg_advance): Likewise.
13363
13364 2016-02-29  Jeff Law  <law@redhat.com>
13365
13366         PR tree-optimization/70005
13367         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
13368         where an object with a boolean range is compared against a value
13369         outside [0..1].
13370
13371         PR tree-optimization/69999
13372         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
13373         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
13374         loop cleanups.
13375
13376 2016-02-29  Richard Biener  <rguenther@suse.de>
13377
13378         PR tree-optimization/69994
13379         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
13380         (get_unary_op): Look through nop conversions.
13381         (ops_equal_values_p): New function, look for equality diregarding
13382         nop conversions.
13383         (eliminate_plus_minus_pair): Use ops_equal_values_p
13384         (repropagate_negates): Do not use get_unary_op here.
13385
13386 2016-02-29  Martin Liska  <mliska@suse.cz>
13387
13388         * system.h: Poison ENABLE_CHECKING macro.
13389
13390 2016-02-29  Martin Liska  <mliska@suse.cz>
13391
13392         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
13393         is presented in dump flags.
13394         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13395         (hsa_regalloc): Likewise.
13396
13397 2016-02-19  Richard Biener  <rguenther@suse.de>
13398
13399         PR tree-optimization/69980
13400         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
13401         permutation of those we need to keep.
13402
13403 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13404
13405         PR target/69706
13406         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
13407         (NWORDS_UP): ...this
13408         (init_cumulative_args): Minor tweaks.
13409         (sparc_promote_function_mode): Likewise.
13410         (scan_record_type): Delete.
13411         (traverse_record_type): New function template.
13412         (classify_data_t): New structure type.
13413         (classify_registers): New inline function.
13414         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
13415         exhausted.  Instantiate traverse_record_type on classify_registers and
13416         deal with the case of a structure passed in slot #15 with no FP field
13417         in the first word.
13418         (assign_data_t): New structure type.
13419         (compute_int_layout): New static function.
13420         (compute_fp_layout): Likewise.
13421         (count_registers): New inline function.
13422         (assign_int_registers): New static function.
13423         (assign_fp_registers): Likewise.
13424         (assign_registers): New inline function.
13425         (function_arg_record_value_1): Delete.
13426         (function_arg_record_value_2): Likewise.
13427         (function_arg_record_value_3): Likewise.
13428         (function_arg_record_value): Adjust to above changes.  Instantiate
13429         traverse_record_type on count_registers to first count the number of
13430         registers to be used and then on assign_registers to assign them.
13431         (function_arg_union_value): Adjust to above renaming.
13432         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
13433         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
13434         case of a structure passed in slot #15
13435         (sparc_function_arg_advance): Likewise.
13436         (function_arg_padding): Minor tweak.
13437
13438 2016-02-29  Richard Biener  <rguenther@suse.de>
13439
13440         PR tree-optimization/69720
13441         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
13442         the adjustment_def path for possibly vectorized defs.
13443         (vect_create_epilog_for_reduction): Handle vectorized initial
13444         defs properly.
13445
13446 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
13447
13448         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
13449
13450 2016-02-27  Jeff Law  <law@redhat.com>
13451
13452         Revert
13453         2016-02-26  Richard Biener  <rguenther@suse.de>
13454                     Jeff Law  <law@redhat.com>
13455
13456         PR tree-optimization/69740
13457         * cfghooks.c (remove_edge): Request loop fixups if we delete
13458         an edge that might turn an irreducible loop into a natural
13459         loop.
13460
13461 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
13462
13463         PR rtl-optimization/69896
13464         * tree-vect-generic.c (get_compute_type): Avoid single element
13465         vector types.
13466
13467 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
13468
13469         Rename the AArch64 tuning option and related functions to enable the
13470         Newton series for the reciprocal square root to reflect its
13471         approximative characteristic.
13472
13473         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
13474         function to "aarch64_emit_approx_rsqrt".
13475         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
13476         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
13477         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
13478         (xgene1_tunings): Likewise.
13479         (use_rsqrt_p): Likewise.
13480         (aarch64_emit_swrsqrt): Use new function name.
13481         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
13482         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
13483         text explaining this option.
13484         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
13485
13486 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
13487
13488         PR target/69969
13489         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13490         complain about -mallow-movmisalign without -mvsx if
13491         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
13492
13493 2016-02-26  Joel Sherrill  <joel@rtems.org>
13494
13495         * config.gcc: Add x86_64-*-rtems*.
13496         * config/i386/rtems-64.h: New file.
13497
13498 2016-02-26  Joel Sherrill  <joel@rtems.org>
13499
13500         * config.gcc: Add aarch64-*-rtems*.
13501         * config/aarch64/rtems.h: New file.
13502
13503 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
13504
13505         PR target/69946
13506         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
13507         shift amount using %h.  Add comment.
13508
13509 2016-02-26  Richard Biener  <rguenther@suse.de>
13510             Jeff Law  <law@redhat.com>
13511
13512         PR tree-optimization/69740
13513         * cfghooks.c (remove_edge): Request loop fixups if we delete
13514         an edge that might turn an irreducible loop into a natural
13515         loop.
13516
13517 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13518
13519         PR middle-end/69920
13520         * tree-sra.c (sra_modify_assign): Do not remove loads of
13521         uninitialized aggregates to SSA_NAMEs.
13522
13523 2016-02-26  Richard Henderson  <rth@redhat.com>
13524
13525         PR target/69709
13526         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
13527         pseudo in case the target rtx matches the source of the left
13528         shift.
13529
13530 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13531
13532         PR hsa/69568
13533         * hsa.h (hsa_type_packed_p): Declare.
13534         * hsa.c (hsa_type_packed_p): New function.
13535         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
13536         loads.
13537         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
13538         * hsa-brig.c (emit_basic_insn): Likewise.
13539
13540 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13541
13542         pr hsa/69674
13543         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
13544         pointers.
13545         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
13546
13547 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13548
13549         * hsa.h (is_a_helper): New overload for hsa_op_immed for
13550         hsa_op_with_type operands.
13551         (hsa_unsigned_type_for_type): Declare.
13552         * hsa.c (hsa_unsigned_type_for_type): New function.
13553         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
13554         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
13555         the finalizer.  Do not emit extra move.
13556
13557 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13558
13559         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
13560         atomic operations in private segment.
13561
13562 2016-02-26  Martin Jambor  <mjambor@suse.cz>
13563
13564         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
13565         statements to wi->info.  Also disallow omp simd constructs.
13566         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
13567         for not gridifying.  Dump special string for omp_for.
13568
13569 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13570
13571         PR target/69245
13572         * config/aarch64/aarch64.c (aarch64_set_current_function):
13573         Save/restore target globals when switching to
13574         target_option_default_node.
13575
13576 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13577
13578         PR target/69613
13579         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
13580         Return 0 if !SHIFT_COUNT_TRUNCATED.
13581
13582 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
13583             Eric Botcazou  <ebotcazou@adacore.com>
13584
13585         PR rtl-optimization/69891
13586         * dse.c (scan_insn): If we can't figure out memset arguments
13587         or they are non-constant, call clear_rhs_from_active_local_stores.
13588
13589 2016-02-26  Martin Liska  <mliska@suse.cz>
13590
13591         * doc/extend.texi: Mention clog10, clog10f an clog10l
13592         in Builtins section.
13593
13594 2016-02-26  Martin Liska  <mliska@suse.cz>
13595
13596         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
13597         CHECKING_P.
13598         (resolve_args_picking_1): Likewise.
13599         * dwarf2out.h (struct GTY): Likewise.
13600
13601 2016-02-26  Martin Liska  <mliska@suse.cz>
13602
13603         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
13604         with flag_checking.
13605         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13606
13607 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13608             Martin Liska  <mliska@suse.cz>
13609
13610         * doc/install.texi: Mention --enable-valgrind-annotations.
13611
13612 2016-02-26  Richard Biener  <rguenther@suse.de>
13613
13614         PR tree-optimization/69551
13615         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
13616         looking through aliases adjust DECL_PT_UID to refer to the
13617         ultimate alias target.
13618
13619 2016-02-25  Martin Liska  <mliska@suse.cz>
13620
13621         PR middle-end/69919
13622         * alloc-pool.c (after_memory_report): New variable.
13623         * alloc-pool.h (base_pool_allocator ::release): Do not use
13624         the infrastructure if after_memory_report.
13625         * toplev.c (toplev::main): Mark after memory report.
13626
13627 2016-02-25  Richard Biener  <rguenther@suse.de>
13628
13629         PR tree-optimization/48795
13630         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
13631
13632 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13633
13634         PR driver/68463
13635         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
13636         offloading is enabled and -fopenacc or -fopenmp is specified.
13637         (CRTOFFLOADEND): Likewise.
13638         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
13639         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
13640         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
13641         (offload_objects_file_name): New static var.
13642         (tool_cleanup): Remove offload_objects_file_name file.
13643         (find_offloadbeginend): Replace with ...
13644         (find_crtoffloadtable): ... this.
13645         (run_gcc): Remove offload_argc and offload_argv.
13646         Get offload_objects_file_name from -foffload-objects=... option.
13647         Read names of object files with offload from this file, pass them to
13648         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
13649         don't pass offloadbegin and offloadend to the linker.  Don't pass
13650         offload non-LTO files to the linker, because now they're not claimed.
13651
13652 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
13653
13654         PR ipa/69630
13655         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13656         on builtin_unreachable.
13657
13658 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
13659
13660         PR rtl-optimization/69896
13661         * regcprop.c: Include cfgrtl.h.
13662         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
13663         than remembered mode, either delete it (if noop_move_p), or
13664         treat like copy_p but not noop_p instruction.
13665
13666 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13667
13668         PR debug/69705
13669         * dwarf2out.c (gen_variable_die): Work around buggy LTO
13670         - allow NULL decl for Fortran DW_TAG_common_block variables.
13671
13672 2016-02-24  Jason Merrill  <jason@redhat.com>
13673
13674         * common.opt (flifetime-dse): Add -flifetime-dse=1.
13675
13676 2016-02-24  Richard Biener  <rguenther@suse.de>
13677             Jakub Jelinek  <jakub@redhat.com>
13678
13679         PR middle-end/69760
13680         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
13681         conditionally executed ops to well-defined overflow behavior.
13682
13683 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13684
13685         PR middle-end/69915
13686         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
13687         elements.
13688
13689 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13690
13691         PR rtl-optimization/69886
13692         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
13693         argument.  Use it when checking validity of set instructions.
13694         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
13695         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
13696         callsite.
13697         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
13698         * store-motion.c (find_moveable_store): Update
13699         can_assign_to_reg_without_clobbers_p callsite.
13700
13701 2016-02-24  Richard Biener  <rguenther@suse.de>
13702
13703         PR middle-end/68963
13704         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
13705         bogus check.
13706         (record_nonwrapping_iv): Do not fall back to the low/high bound
13707         for non-constant IV bases if the stmt is not always executed.
13708
13709 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13710
13711         * config/arm/arm-cores.def (cortex-a32): New entry.
13712         * config/arm/arm-tables.opt: Regenerate.
13713         * config/arm/arm-tune.md: Regenerate.
13714         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13715         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13716         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13717         for -mcpu and -mtune.
13718
13719 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13720
13721         PR target/69875
13722         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13723         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13724         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13725         (atomic_loaddi_1): Delete.
13726         (atomic_loaddi): Rewrite expander using the above changes.
13727
13728 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13729
13730         PR c/69918
13731         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13732         2 to 3.
13733
13734 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
13735             Richard Biener  <rguenth@suse.de>
13736
13737         PR middle-end/69909
13738         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13739         set_mem_attributes if tem is SSA_NAME which got expanded
13740         as a MEM.
13741
13742 2016-02-24  Richard Biener  <rguenther@suse.de>
13743
13744         PR tree-optimization/69907
13745         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13746         end of permutations for BB vectorization.
13747
13748 2016-02-24  Christian Bruel  <christian.bruel@st.com>
13749
13750         * config/arm/arm-c.c (arm_option_override): Initialize
13751         target_option_current_node.
13752         * config/arm/arm.c (arm_pragma_target_parse): Replace
13753         build_target_option_node call by target_option_current_node.
13754         Set target_option_current_node.
13755         Fix comments.
13756
13757 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
13758
13759         PR target/69810
13760         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13761         define_insn_and_split to define_insn.
13762         (zero_extendqi<mode>2_dot2): Same.
13763         (extendqi<mode>2_dot): Same.
13764         (extendqi<mode>2_dot2): Same.
13765
13766 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13767
13768         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13769         and add bypass for AES{D,E} and AESMC pairs.
13770         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13771         and AESMC pairs.
13772
13773 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
13774
13775         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13776         series for reciprocal square root in Exynos M1.
13777
13778 2016-02-23  Martin Sebor  <msebor@redhat.com>
13779
13780         PR c/69759
13781         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13782         __builtin_alloca_with_align.
13783
13784 2016-02-23  Richard Henderson  <rth@redhat.com>
13785
13786         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13787         (ix86_register_pragmas): Remove __seg_tls.
13788         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13789         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13790         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13791         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13792         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13793         * doc/extend.texi (__seg_tls): Remove item.
13794
13795 2016-02-23  Richard Biener  <rguenther@suse.de>
13796
13797         * alloc-pool.h (struct allocation_object): Make id member
13798         conditional on CHECKING_P again.
13799         (get_instance): Adjust.
13800         (base_pool_allocator): Likewise.
13801
13802 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13803
13804         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13805         (parallelize_loops): In OpenACC kernels mode, set n_threads to
13806         zero.
13807         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13808         flag_openacc.
13809         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13810
13811 2016-02-23  Richard Biener  <rguenther@suse.de>
13812
13813         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13814         * bitmap.h (struct bitmap_usage): Likewise.
13815         (bitmap_move): Declare.
13816         * bitmap.c (register_overhead): Take size_t argument.
13817         (bitmap_move): New function.
13818         * df-problems.c (df_rd_transfer_function): Use bitmap_move
13819         to properly account overhead.
13820         * tree.c (free_node): Use tree_size.
13821
13822 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
13823
13824         PR c++/69902
13825         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
13826         when inverting comparison.
13827
13828         PR c/69900
13829         * common.opt (Wunreachable-code): Add Warning flag.
13830
13831 2016-02-23  Mark Wielaard  <mjw@redhat.com>
13832             Jakub Jelinek  <jakub@redhat.com>
13833
13834         PR c/69911
13835         * cgraphunit.c (check_global_declaration): Check main_input_filename
13836         and DECL_SOURCE_FILE are not NULL.
13837
13838 2016-02-23  Martin Jambor  <mjambor@suse.cz>
13839
13840         PR tree-optimization/69666
13841         * tree-sra.c (sra_modify_assign): Do not attempt to create
13842         default_def replacements for unscalarizable regions.
13843
13844 2016-02-20  Mark Wielaard  <mjw@redhat.com>
13845
13846         PR c/28901
13847         * cgraphunit.c (check_global_declaration): Check level of
13848         warn_unused_const_variable and main_input_filename.
13849         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
13850         (-Wunused-variable): For C implies -Wunused-const-variable=1.
13851         (-Wunused-const-variable): Explain levels 1 and 2.
13852
13853 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13854
13855         PR target/69888
13856         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13857         identical arguments.  Formatting and spelling fixes.
13858
13859         PR target/69885
13860         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13861         be specified.
13862
13863         PR target/69894
13864         PR target/69895
13865         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13866         and m68k-devices.def.
13867         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13868         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13869
13870 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13871
13872         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13873         and HImode registers.
13874
13875 2016-02-22  Richard Biener  <rguenther@suse.de>
13876
13877         PR tree-optimization/69882
13878         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13879         preserve permutations present because of gaps.
13880         (vect_supported_load_permutation_p): Always continue checking
13881         permutations after vect_attempt_slp_rearrange_stmts.
13882
13883 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13884
13885         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13886         min_profitable_estimate, rather than min_profitable_iters.
13887
13888 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13889
13890         PR target/69885
13891         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13892         SImode for last match_operand.
13893
13894 2016-02-22  Martin Liska  <mliska@suse.cz>
13895
13896         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13897         return bitsize - 1 as the return value.
13898
13899 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13900
13901         PR target/69806
13902         PR target/54089
13903         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13904         Handle negative shift counts.
13905         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13906         force_reg on the shift constant.
13907         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13908         (lshrsi3_d): Handle negative shift counts.
13909
13910 2016-02-22  Richard Biener  <rguenther@suse.de>
13911             Tom de Vries  <tom@codesourcery.com>
13912
13913         * graph.c: Include dumpfile.h.
13914         (print_graph_cfg): Split into three overloads.
13915         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13916
13917 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13918
13919         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13920         dump-fn.
13921
13922 2016-02-22  Richard Biener  <rguenther@suse.de>
13923
13924         PR ipa/37448
13925         * ipa-inline-transform.c (inline_call): When not updating
13926         overall summaries adjust self size by the growth estimate.
13927         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13928         hash-set, do not update overall summaries here.  Renamed from ...
13929         (inline_to_all_callers): ... this which is now wrapping the
13930         above and performing delayed overall summary update.
13931         (early_inline_small_functions): Delay updating of the overall
13932         summary.
13933
13934 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13935
13936         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13937         variable.
13938
13939 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13940
13941         PR driver/69805
13942         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13943         :%* in %:gt() argument.
13944         (greater_than_spec_func): Adjust for expecting only numbers,
13945         if there are more than two numbers, compare the last two.
13946
13947 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13948
13949         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13950         -Wnarrowing with -std.
13951
13952 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13953
13954         PR c++/69851
13955         * expr.c (store_field): Don't use bit-field path if exp is
13956         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13957         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13958         and the assignment can be performed by bitwise copy.  Formatting
13959         fix.
13960
13961         PR middle-end/69838
13962         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13963         call copy_reg_eh_region_note_forward on before and/or after sequences
13964         and remove note from insn if it no longer can throw.
13965
13966         PR target/69820
13967         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13968         if TARGET_AVX512BW.
13969
13970 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13971
13972         * config/s390/vector.md: Add missing commutative operand markers
13973         to the patterns which qualify for one.
13974         * config/s390/vx-builtins.md: Likewise.
13975
13976 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13977
13978         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13979         types to mode iterators.
13980         (vec_double): ... and mode attribute.
13981         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13982
13983 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13984
13985         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13986         Change the predicate of op2 from nonimmediate to general and let
13987         reload fix it if necessary.
13988
13989 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13990
13991         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13992
13993 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13994
13995         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13996         mode.
13997
13998 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13999
14000         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14001         * config/s390/s390.c (s390_expand_vec_movstr): New function.
14002         * config/s390/s390.md ("movstr<P:mode>"): Call
14003         s390_expand_vec_movstr.
14004
14005 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14006
14007         * config/s390/s390.md: Add missing output modifier for operand 1
14008         to print it as address properly.
14009
14010 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14011
14012         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14013         * config/s390/2964.md: New file.
14014         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14015         of insn grouping attributes depending on the CPU level.
14016         (s390_get_unit_mask): New function.
14017         (s390_sched_score): Remove the OOO from the scheduling macros.
14018         Add loop to calculate a score for the instruction mix.
14019         (s390_sched_reorder): Likewise plus improve debug output.
14020         (s390_sched_variable_issue): Rename macros as above.  Calculate
14021         the unit distances after actually scheduling an insn.  Improve
14022         debug output.
14023         (s390_sched_init): Clear last_scheduled_unit_distance array.
14024         * config/s390/s390.md: Include 2964.md.
14025
14026 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14027
14028         PR target/69671
14029         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14030         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14031         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14032         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14033         *avx512f_<code>v8div16qi2_mask_1): New insns.
14034
14035 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14036
14037         PR target/68404
14038         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14039         2016-02-09 change.
14040
14041         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14042         earlyclobber from target.  Use wF constraint for fused memory
14043         address.
14044         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14045
14046 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14047             Martin Liska  <mliska@suse.cz>
14048
14049         PR sanitizer/69863
14050         * cfgexpand.c (asan_sanitize_stack_p): New function.
14051         (partition_stack_vars): Use the function.
14052         (expand_stack_vars): Likewise.
14053         (defer_stack_allocation): Likewise.
14054         (expand_used_vars): Likewise.
14055
14056 2016-02-18  Richard Biener  <rguenther@suse.de>
14057
14058         PR middle-end/69553
14059         * fold-const.c (operand_equal_p): Properly compare offsets for
14060         IMAGPART_EXPR and ARRAY_REF.
14061
14062 2016-02-18  Nick Clifton  <nickc@redhat.com>
14063
14064         PR target/62254
14065         PR target/69610
14066         * config/arm/arm.c (arm_option_override_internal): Disable
14067         interworking if the target does not support thumb instructions.
14068         (arm_reload_in_hi): Handle the case where a register to register
14069         move needs reloading because there is no simple pattern to handle
14070         it.
14071         (arm_reload_out_hi): Likewise.
14072
14073 2016-02-18  Richard Biener  <rguenther@suse.de>
14074
14075         PR middle-end/69854
14076         * match.pd: Don't use fold_binary or fold_unary for folding
14077         constants.
14078
14079 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
14080
14081         PR c++/69850
14082         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14083         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14084         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14085         warn on gimple_no_warning_p statements.
14086
14087 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
14088
14089         * doc/extend.texi (C++ Attributes): Correct description of
14090         warn_unused type attribute.
14091
14092 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14093
14094         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14095         correct instruction.
14096
14097 2016-02-17  Richard Biener  <rguenther@suse.de>
14098
14099         PR rtl-optimization/69609
14100         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14101         (find_traces_1_round): When ending a trace update cached priority
14102         of successors.
14103         (bb_to_key): Use cached priority when available.
14104         (copy_bb): Initialize cached priority.
14105         (reorder_basic_blocks_software_trace_cache): Likewise.
14106
14107 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14108
14109         PR target/69161
14110         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14111         New predicate.
14112         (aarch64_comparison_operator): Break overly long line into two.
14113         (aarch64_comparison_operation): Likewise.
14114         * config/aarch64/aarch64.md (cstorecc4): Use
14115         aarch64_comparison_operator_mode instead of
14116         aarch64_comparison_operator.
14117         (cstore<mode>4): Likewise.
14118         (aarch64_cstore<mode>): Likewise.
14119         (*cstoresi_insn_uxtw): Likewise.
14120         (cstore<mode>_neg): Likewise.
14121         (*cstoresi_neg_uxtw): Likewise.
14122
14123 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14124
14125         PR target/69161
14126         * config/arm/predicates.md (arm_comparison_operator_mode):
14127         New predicate.
14128         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14129         instead of arm_comparison_operator.
14130         (*mov_negscc): Likewise.
14131         (*mov_notscc): Likewise.
14132         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14133         (*thumb2_mov_negscc): Likewise.
14134         (*thumb2_mov_negscc_strict_it): Likewise.
14135         (*thumb2_mov_notscc): Likewise.
14136         (*thumb2_mov_notscc_strict_it): Likewise.
14137
14138 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
14139
14140         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14141         Add missing return.
14142
14143 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
14144
14145         * config/visium/visium.c (machine_libfunc_index): New enum.
14146         (machine_libfuncs): New structure.
14147         (visium_libfuncs): New static variable.
14148         (TARGET_INIT_LIBFUNCS): Define to...
14149         (visium_init_libfuncs): ...this.  New function.
14150         (expand_block_move_4): Use the appropriate libfunc.
14151         (expand_block_move_2): Likewise.
14152         (expand_block_move_1): Likewise.
14153         (expand_block_set_4): Likewise.
14154         (expand_block_set_2): Likewise.
14155         (expand_block_set_1): Likewise.
14156         (visium_trampoline_init): Likewise.
14157
14158 2016-02-17  Nick Clifton  <nickc@redhat.com>
14159
14160         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14161         TI's devices.csv file as of March 2016.
14162
14163 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14164
14165         PR Target/48344
14166         * opts-global.c (handle_common_deferred_options): Introduce and
14167         initialize two global variables to remember command-line options
14168         specifying a stack-limiting register.
14169         * opts.h: Add extern declarations of the two new global variables.
14170         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14171         variable based on the values of the two new global variables.
14172
14173 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14174
14175         PR c/69835
14176         * common.opt (Wnonnull-compare): New warning.
14177         * doc/invoke.texi (-Wnonnull): Remove text about comparison
14178         of arguments against NULL.
14179         (-Wnonnull-compare): Document.
14180         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14181         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14182         * passes.def (pass_warn_nonnull_compare): Add.
14183         * gimple-ssa-nonnull-compare.c: New file.
14184
14185 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14186
14187         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14188         AARCH64_EXTRA_TUNE_RECIP_SQRT.
14189
14190 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14191
14192         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14193         reciprocal sqrt for -mlow-precision-recip-sqrt.
14194
14195 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14196             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14197
14198         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14199         always use lane loads to construct non-constant vectors.
14200
14201 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14202
14203         * config/aarch64/aarch64.md
14204         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14205         constraints for operand 3.
14206         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14207
14208 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14209             Richard Biener  <rguenther@suse.de>
14210
14211         PR tree-optimization/69820
14212         * tree-vect-patterns.c (type_conversion_p): Return false if
14213         *orig_type is unsigned single precision or boolean.
14214         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14215         Formatting fix.
14216
14217 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14218
14219         PR rtl-optimization/69764
14220         PR rtl-optimization/69771
14221         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14222         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14223
14224 2016-02-16  Richard Biener  <rguenther@suse.de>
14225
14226         PR tree-optimization/69776
14227         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14228         sets from caller.
14229         (indirect_refs_may_alias_p): Likewise.
14230         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14231         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14232         according to tbaa_p.
14233         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14234         (optimize_stmt): For redundant store discovery do not allow tbaa.
14235
14236 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
14237
14238         PR tree-optimization/69714
14239         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14240         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14241
14242 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
14243
14244         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14245         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14246         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14247         * config/arc/arc.c (arc_init): Check FPU options.
14248         (get_arc_condition_code): Handle new CC_FPU* modes.
14249         (arc_select_cc_mode): Likewise.
14250         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14251         register pair only. Allow access for ARCv2 accumulator.
14252         (gen_compare_reg): Whenever we have FPU support use FPU compare
14253         instructions.
14254         (arc_reorg): Don't generate brcc insns when FPU compare
14255         instructions are involved.
14256         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14257         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14258         floating point emulation.
14259         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14260         (REVERSE_CONDITION): Add new CC_FPU* modes.
14261         (TARGET_FP_SP_BASE): Define.
14262         (TARGET_FP_DP_BASE): Likewise.
14263         (TARGET_FP_SP_FUSED): Likewise.
14264         (TARGET_FP_DP_FUSED): Likewise.
14265         (TARGET_FP_SP_CONV): Likewise.
14266         (TARGET_FP_DP_CONV): Likewise.
14267         (TARGET_FP_SP_SQRT): Likewise.
14268         (TARGET_FP_DP_SQRT): Likewise.
14269         (TARGET_FP_DP_AX): Likewise.
14270         * config/arc/arc.md (ARCV2_ACC): New constant.
14271         (type): New fpu type attribute.
14272         (SDF): Conditional iterator.
14273         (cstore<mode>, cbranch<mode>): Change expand condition.
14274         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14275         handles FPU/FPX cases as well.
14276         * config/arc/arc.opt (mfpu): New option.
14277         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14278         Renamed.
14279         (adddf3, muldf3, subdf3): Removed.
14280         * config/arc/predicates.md (proper_comparison_operator): Recognize
14281         CC_FPU* modes.
14282         * config/arc/fpu.md: New file.
14283         * doc/invoke.texi (ARC Options): Document mfpu option.
14284
14285 2016-02-16  Richard Biener  <rguenther@suse.de>
14286
14287         PR rtl-optimization/69291
14288         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14289         noce_operand_ok check.
14290
14291 2016-02-16  Tom de Vries  <tom@codesourcery.com>
14292
14293         PR lto/67709
14294         * omp-low.c (simd_clone_create): Remove call to
14295         symtab->call_cgraph_insertion_hooks.
14296
14297 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14298
14299         PR tree-optimization/69802
14300         * tree-ssa-reassoc.c (update_range_test): If op is
14301         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
14302         op == 1 test of precision 1 integral op, otherwise handle
14303         that case as op itself.  Fix up formatting.
14304         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
14305         up formatting.
14306
14307 2016-02-16  Richard Biener  <rguenther@suse.de>
14308
14309         PR tree-optimization/69586
14310         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
14311         types for conversion sources.
14312
14313 2016-02-16  Richard Biener  <rguenther@suse.de>
14314
14315         PR middle-end/69801
14316         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
14317         mask OEP_ADDRESS_OF.
14318
14319 2016-02-16  Alan Modra  <amodra@gmail.com>
14320
14321         PR target/68973
14322         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
14323         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
14324         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
14325         (p8_mtvsrwz): New.
14326         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
14327         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
14328         (p8_fmrgow_<mode>): Likewise.
14329         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
14330         changes.
14331         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
14332         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
14333         to use movdi_internal64.  Remove op0_di.
14334         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
14335
14336 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
14337
14338         Add support for the FCCMP insn types
14339
14340         * config/aarch64/aarch64.md (fccmp): Change insn type.
14341         (fccmpe): Likewise.
14342         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
14343         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
14344         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
14345         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
14346         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
14347         * config/arm/types.md (fccmps): Add new insn type.
14348         (fccmpd): Likewise.
14349
14350 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14351
14352         * alias.c (get_alias_set): Fix a typo in comment.
14353
14354 2016-02-15  Richard Biener  <rguenther@suse.de>
14355
14356         PR tree-optimization/69595
14357         * match.pd: Complete range test simplification to true.
14358
14359 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
14360
14361         PR rtl-optimization/69648
14362         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
14363         pic_offset_table_rtx.
14364
14365         PR rtl-optimization/69752
14366         * ira.c (update_equiv_regs): When looking for more than a single SET,
14367         also take other side effects into account.
14368
14369 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14370
14371         * config/s390/s390.c (s390_function_profiler): Add a new sequence
14372         for z900+ CPUs in 31-bit mode.
14373
14374 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14375
14376         * common/config/s390/s390-common.c (s390_supports_split_stack):
14377         New function.
14378         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
14379         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
14380         * config/s390/s390.c (struct machine_function): New field
14381         split_stack_varargs_pointer.
14382         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
14383         in s390_emit_prologue.
14384         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
14385         vararg pointer.
14386         (morestack_ref): New global.
14387         (SPLIT_STACK_AVAILABLE): New macro.
14388         (s390_expand_split_stack_prologue): New function.
14389         (s390_live_on_entry): New function.
14390         (s390_va_start): Use split-stack vararg pointer if appropriate.
14391         (s390_asm_file_end): Emit the split-stack note sections.
14392         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
14393         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
14394         (UNSPECV_SPLIT_STACK_CALL): New unspec.
14395         (UNSPECV_SPLIT_STACK_DATA): New unspec.
14396         (split_stack_prologue): New expand.
14397         (split_stack_space_check): New expand.
14398         (split_stack_data): New insn.
14399         (split_stack_call): New expand.
14400         (split_stack_call_*): New insn.
14401         (split_stack_cond_call): New expand.
14402         (split_stack_cond_call_*): New insn.
14403
14404 2016-02-15  Richard Biener  <rguenther@suse.de>
14405
14406         PR tree-optimization/69783
14407         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14408         Add trivially correct cases.
14409
14410 2016-02-15  Tom de Vries  <tom@codesourcery.com>
14411
14412         PR lto/69655
14413         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
14414         do_force_output.
14415         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
14416
14417 2016-02-15  Richard Biener  <rguenther@suse.de>
14418
14419         PR tree-optimization/69776
14420         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
14421         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
14422         indicate whether we can use TBAA to disambiguate against stores.
14423         Use alias-set zero if not.
14424         (visit_reference_op_store): Do not use TBAA when looking up
14425         redundant stores.
14426         * tree-ssa-pre.c (compute_avail): Use TBAA here.
14427         (eliminate_dom_walker::before_dom_children): But not when looking
14428         up redundant stores.
14429
14430 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
14431
14432         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
14433
14434 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14435
14436         *  config/i386/znver1.md
14437         (znver1_pop, znver1_pop_mem,
14438         znver1_load_imov_double_store,
14439         znver1_load_imov_direct_store,
14440         znver1_load_imov_direct_load,
14441         znver1_load_imov_double_load): Add new.
14442         (znver1_insn, znver1_insn_load): Add icmov type.
14443         (znver1_sseavx_fma,
14444         znver1_sseavx_fma_load,
14445         znver1_avx256_fma,
14446         znver1_avx256_fma_load): Fix pipe usage.
14447
14448 2016-02-14  Alan Modra  <amodra@gmail.com>
14449
14450         PR target/68973
14451         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
14452         with an invalid hard reg, reload just the reg not the entire
14453         pre/post-inc/dec address expression.
14454
14455 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
14456
14457         PR target/67260
14458         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
14459         fixed R1_REG scratch reg.
14460         (sibcall_value_pcrel_fdpic): Likewise.
14461
14462 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
14463
14464         PR target/67636
14465         PR target/64345
14466         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
14467
14468 2016-02-12  Walter Lee  <walt@tilera.com>
14469
14470         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
14471         * config/tilegx/t-tilegx: Likewise.
14472
14473 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14474
14475         PR other/69554
14476         * diagnostic-show-locus.c (struct line_span): New struct.
14477         (layout::get_first_line): Delete.
14478         (layout::get_last_line): Delete.
14479         (layout::get_num_line_spans): New member function.
14480         (layout::get_line_span): Likewise.
14481         (layout::print_heading_for_line_span_index_p): Likewise.
14482         (layout::get_expanded_location): Likewise.
14483         (layout::calculate_line_spans): Likewise.
14484         (layout::m_first_line): Delete.
14485         (layout::m_last_line): Delete.
14486         (layout::m_line_spans): New field.
14487         (layout::layout): Update comment.  Replace m_first_line and
14488         m_last_line with m_line_spans, replacing their initialization
14489         with a call to calculate_line_spans.
14490         (diagnostic_show_locus): When printing source lines and
14491         annotations, rather than looping over a single span
14492         of lines, instead loop over each line_span within
14493         the layout, with an inner loop over the lines within them.
14494         Call the context's start_span callback when changing line spans.
14495         * diagnostic.c (diagnostic_initialize): Initialize start_span.
14496         (diagnostic_build_prefix): Break out the building of the location
14497         part of the string into...
14498         (diagnostic_get_location_text): ...this new function, rewriting
14499         it from nested ternary expressions to a sequence of "if"
14500         statements.
14501         (default_diagnostic_start_span_fn): New function.
14502         * diagnostic.h (diagnostic_start_span_fn): New typedef.
14503         (diagnostic_context::start_span): New field.
14504         (default_diagnostic_start_span_fn): New prototype.
14505
14506 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14507
14508         PR driver/69779
14509         * gcc.c (driver::finalize): Fix cleanup of "specs".
14510
14511 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
14512
14513         PR driver/69265
14514         PR driver/69453
14515         * gcc.c (driver::driver): Initialize m_option_suggestions.
14516         (driver::~driver): Clean up m_option_suggestions.
14517         (suggest_option): Convert to...
14518         (driver::suggest_option): ...this, and split out into
14519         driver::build_option_suggestions and find_closest_string.
14520         (driver::build_option_suggestions): New function, from
14521         first half of suggest_option.  Special-case
14522         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
14523         the sanitizer_opts array.  For options of enum types, add the
14524         various enum values to the candidate strings.
14525         (driver::handle_unrecognized_options): Remove "const".
14526         * gcc.h (driver::handle_unrecognized_options): Likewise.
14527         (driver::build_option_suggestions): New decl.
14528         (driver::suggest_option): New decl.
14529         (driver::m_option_suggestions): New field.
14530         * opts-common.c (add_misspelling_candidates): New function.
14531         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
14532         and make non-static.
14533         * opts.h (sanitizer_opts): New array decl.
14534         (add_misspelling_candidates): New function decl.
14535         * spellcheck.c (find_closest_string): New function.
14536         * spellcheck.h (find_closest_string): New function decl.
14537
14538 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14539
14540         PR rtl-optimization/69764
14541         PR rtl-optimization/69771
14542         * optabs.c (expand_binop_directly): For shift_optab_p, force
14543         convert_modes with VOIDmode if xop1 has VOIDmode.
14544
14545 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
14546
14547         PR target/69729
14548         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
14549         to correctly determine instrumentation thunks.
14550
14551 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14552
14553         PR ipa/69241
14554         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
14555         type by reference, force lhs on the call.
14556
14557         PR ipa/68672
14558         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
14559         Compute retval and retbnd early in all cases if split_part_return_p
14560         and return_bb is not EXIT.  Remove all clobber stmts and reset
14561         all debug stmts that refer to SSA_NAMEs defined in split part,
14562         except if it is retval, in that case replace the old retval with the
14563         lhs of the call to the split part.
14564
14565 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14566
14567         revert:
14568         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14569
14570         PR middle-end/66726
14571         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14572         whose result is used in PHI.
14573         (maybe_optimize_range_tests): Likewise.
14574         (final_range_test_p): Likweise.
14575
14576 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14577
14578         PR middle-end/66726
14579         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14580         whose result is used in PHI.
14581         (maybe_optimize_range_tests): Likewise.
14582         (final_range_test_p): Likweise.
14583
14584 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
14585
14586         * cgraph.c: Spelling fixes - behaviour -> behavior and
14587         neighbour -> neighbor.
14588         * target.def: Likewise.
14589         * sel-sched.c: Likewise.
14590         * config/mips/mips.c: Likewise.
14591         * config/arc/arc.md: Likewise.
14592         * config/arm/cortex-a57.md: Likewise.
14593         * config/arm/arm.c: Likewise.
14594         * config/arm/neon.md: Likewise.
14595         * config/arm/arm-c.c: Likewise.
14596         * config/vms/vms-c.c: Likewise.
14597         * config/s390/s390.c: Likewise.
14598         * config/i386/znver1.md: Likewise.
14599         * config/i386/i386.c: Likewise.
14600         * config/ia64/hpux-unix2003.h: Likewise.
14601         * config/msp430/msp430.md: Likewise.
14602         * config/rx/rx.c: Likewise.
14603         * config/rx/rx.md: Likewise.
14604         * config/aarch64/aarch64-simd.md: Likewise.
14605         * config/aarch64/aarch64.c: Likewise.
14606         * config/nvptx/nvptx.c: Likewise.
14607         * config/bfin/bfin.c: Likewise.
14608         * config/cris/cris.opt: Likewise.
14609         * config/rs6000/rs6000.c: Likewise.
14610         * target.h: Likewise.
14611         * spellcheck.c: Likewise.
14612         * ira-build.c: Likewise.
14613         * tree-inline.c: Likewise.
14614         * builtins.c: Likewise.
14615         * lra-constraints.c: Likewise.
14616         * explow.c: Likewise.
14617         * hwint.h: Likewise.
14618         * targhooks.c: Likewise.
14619         * tree-vect-data-refs.c: Likewise.
14620         * expr.c: Likewise.
14621         * doc/tm.texi: Likewise.
14622         * doc/extend.texi: Likewise.
14623         * doc/install.texi: Likewise.
14624         * doc/md.texi: Likewise.
14625         * tree-ssa-tail-merge.c: Likewise.
14626         * sched-int.h: Likewise.
14627         * match.pd: Likewise.
14628         * sched-ebb.c: Likewise.
14629         * target.def (omit_struct_return_reg): Likewise.
14630         * gimple-ssa-isolate-paths.c: Likewise.
14631         (find_implicit_erroneous_behaviour): Renamed to...
14632         (find_implicit_erroneous_behavior): ... this.
14633         (find_explicit_erroneous_behaviour): Renamed to...
14634         (find_explicit_erroneous_behavior): ... this.
14635         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
14636
14637 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
14638
14639         PR rtl-optimization/64682
14640         PR rtl-optimization/69567
14641         PR rtl-optimization/69737
14642         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
14643         in I2 as well, just lose it.
14644
14645 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14646
14647         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
14648         New variable.
14649         (aarch64_last_printed_tune_string): Likewise.
14650         (aarch64_declare_function_name): Only output .arch assembler
14651         directive if it will be different from the previously output
14652         directive.  Same for .tune comment but only if -dA is set.
14653         (aarch64_start_file): New function.
14654         (TARGET_ASM_FILE_START): Define.
14655
14656 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
14657
14658         PR plugins/69758
14659         * Makefile.in (PLUGIN_HEADERS): Add params.list.
14660
14661 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
14662
14663         PR target/65313
14664         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
14665         -Wmaybe-uninitialized warning.
14666
14667 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
14668
14669         PR target/69713
14670         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
14671
14672 2016-02-11  Richard Biener  <rguenther@suse.de>
14673
14674         PR rtl-optimization/69291
14675         * ifcvt.c (noce_try_store_flag_constants): Do not allow
14676         subexpressions affected by changing the result.
14677
14678 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
14679
14680         PR target/69148
14681         * lra-constraints.c (curr_insn_transform): Find in/out operands
14682         for secondary memory moves.  Update dups.
14683
14684 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
14685
14686         PR tree-optimization/69652
14687         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
14688         to nested loop, did source re-formatting, skip debug statements,
14689         add check on statement with volatile operand, remove dead scalar
14690         statements.
14691
14692 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
14693             Patrick Palka  <ppalka@gcc.gnu.org>
14694
14695         PR ipa/69241
14696         PR c++/69649
14697         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
14698         calls if the return type is TREE_ADDRESSABLE.
14699         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
14700         * ipa-split.c (split_function): Fix doubled "we" in comment.
14701         Use void return type for the split part even if
14702         !split_point->split_part_set_retval.
14703
14704 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
14705
14706         PR tree-optimization/68021
14707         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14708         when computing the value of biv cand by itself.
14709
14710 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14711
14712         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14713         (cortexa57_tunings): Likewise.
14714         (cortexa72_tunings): Likewise.
14715         (arch_macro_fusion_pair_p): Add support for AES fusion.
14716         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14717         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14718         Allow virtual registers before reload so early scheduling works.
14719         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14720         correct latency and pipeline.
14721         (cortex_a57_crypto_complex): Likewise.
14722         (cortex_a57_crypto_xor): Likewise.
14723         (define_bypass): Add AES bypass.
14724
14725 2016-02-10  Richard Biener  <rguenther@suse.de>
14726
14727         PR tree-optimization/69726
14728         * passes.def: Add DCE pass before late uninit.
14729         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14730         really fixup if-conversions job.
14731
14732 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
14733
14734         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14735         (arm_cortex_a57_tune): Likewise.
14736         (aarch_macro_fusion_pair_p): Add support for AES fusion.
14737         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14738
14739 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14740
14741         * timevar.def (TV_PHASE_DBGINFO): Delete.
14742         (TV_PHASE_CHECK_DBGINFO): Likewise.
14743         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14744
14745 2016-02-10  Richard Biener  <rguenther@suse.de>
14746
14747         PR tree-optimization/69719
14748         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14749         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14750
14751 2016-02-09  Andrew Pinski  <apinski@cavium.com>
14752
14753         PR tree-opt/69282
14754         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14755         get_vcond_mask_icode returns false.
14756
14757 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
14758
14759         PR target/68404
14760         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14761         an ADDIS that adds a pointer to a large constant that sets the
14762         upper16 bits with a load operation.
14763
14764 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14765
14766         PR target/68532
14767         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14768         order.
14769         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14770         endian.
14771         (vzipq_s16): Likewise.
14772         (vzipq_s32): Likewise.
14773         (vzipq_f32): Likewise.
14774         (vzipq_u8): Likewise.
14775         (vzipq_u16): Likewise.
14776         (vzipq_u32): Likewise.
14777         (vzipq_p8): Likewise.
14778         (vzipq_p16): Likewise.
14779
14780 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
14781
14782         PR target/68532
14783         * config/arm/arm.c (neon_endian_lane_map): New function.
14784         (neon_vector_pair_endian_lane_map): New function.
14785         (arm_evpc_neon_vuzp): Allow for big endian lane order.
14786         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14787         endian.
14788         (vuzpq_s16): Likewise.
14789         (vuzpq_s32): Likewise.
14790         (vuzpq_f32): Likewise.
14791         (vuzpq_u8): Likewise.
14792         (vuzpq_u16): Likewise.
14793         (vuzpq_u32): Likewise.
14794         (vuzpq_p8): Likewise.
14795         (vuzpq_p16): Likewise.
14796
14797 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
14798
14799         PR target/69634
14800         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14801         debug insns.
14802
14803 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
14804
14805         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14806         truncate const_int operand 1 to QImode.
14807
14808 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14809
14810         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14811         corresponding to an abnormal edge.
14812
14813 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14814
14815         PR tree-optimization/69599
14816         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
14817         function.
14818         (find_func_aliases_for_builtin_call, find_func_clobbers)
14819         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
14820         partition.
14821
14822 2016-02-09  Richard Biener  <rguenther@suse.de>
14823
14824         PR tree-optimization/69715
14825         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
14826         LHS on calls as non-rewritable.
14827
14828 2016-02-09  Tom de Vries  <tom@codesourcery.com>
14829
14830         PR lto/69707
14831         * lto-wrapper.c (append_diag_options): New function.
14832         (compile_offload_image): Call append_diag_options.
14833
14834 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
14835
14836         PR other/69722
14837         * doc/extend.texi (Flag Output Operands): Correct sectioning.
14838         Minor copy-edit to fix verb tenses.
14839
14840 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
14841
14842         PR tree-optimization/69209
14843         * ipa-split.c (split_function): If split part is not
14844         returning retval, retval has gimple type but is not
14845         gimple value, force it into a SSA_NAME first.
14846
14847 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
14848
14849         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
14850         outdated section.
14851
14852 2016-02-08  Jason Merrill  <jason@redhat.com>
14853
14854         PR c++/69631
14855         * convert.c (convert_to_integer_1): Check dofold on truncation
14856         distribution.
14857         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14858         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14859         Rename from *_nofold.
14860         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14861         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14862
14863 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14864
14865         PR target/60410
14866         * tree.c (build_common_tree_nodes): Remove short_double argument.
14867         All callers changed.
14868         * tree.h (build_common_tree_nodes): Adjust declaration.
14869         * doc/invoke.texi (-fshort-double): Remove documentation.
14870         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14871         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14872         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14873         (append_linker_options): Don't handle OPT_fshort_double.
14874
14875         PR rtl-optimization/68730
14876         * lra-remat.c (insn_to_cand_activation): New static variable.
14877         (lra_remat): Allocate and free it.
14878         (create_cand): New arg activation. Initialize a field in
14879         insn_to_cand_activation if it is nonnull.
14880         (create_cands): Pass the activation insn to create_cand when making
14881         a candidate involving an output reload.  Reorganize code a little.
14882         (do_remat): Keep track of active status of candidates in a separate
14883         bitmap.
14884
14885 2016-02-08  Richard Biener  <rguenther@suse.de>
14886
14887         PR tree-optimization/69719
14888         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14889         Properly use absolute of the difference of the two offsets to
14890         compare or adjust the segment length.
14891
14892 2016-02-08  Richard Biener  <rguenther@suse.de>
14893             Jeff Law  <law@redhat.com>
14894
14895         PR target/68273
14896         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14897         types for anonymous SSA names.
14898
14899 2016-02-08   Richard Biener  <rguenther@suse.de>
14900
14901         PR rtl-optimization/69274
14902         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14903
14904 2016-02-08  Jeff Law  <law@redhat.com>
14905
14906         PR tree-optimization/65917
14907         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14908         equivalences from if (x == y) style conditionals.
14909         (loop_depth_of_name): Remove.
14910         (record_equality): Remove loop depth check.
14911         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14912         (const_and_copies::record_const_or_copy_raw): New member function.
14913         * tree-ssa-scopedtables.c
14914         (const_and_copies::record_const_or_copy_raw): New, factored out of
14915         (const_and_copies::record_const_or_copy): Call new member function.
14916
14917 2016-02-05  Jeff Law  <law@redhat.com>
14918
14919         PR tree-optimization/68541
14920         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14921         (count_stmts_in_block): New function.
14922         (poor_ifcvt_candidate_code): Likewise.
14923         (is_feasible_trace): Add some heuristics to determine when path
14924         splitting is profitable.
14925         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14926         is a diamond with a single exit.
14927
14928 2016-02-05  Martin Sebor  <msebor@redhat.com>
14929
14930         PR c++/69662
14931         * doc/invoke.texi: Update -Wplacement-new to take an optional
14932         argument.
14933
14934 2016-02-06  Richard Henderson  <rth@redhat.com>
14935
14936         PR c/69643
14937         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14938         out of non-standard address spaces.
14939
14940 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14941
14942         PR rtl-optimization/69691
14943         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14944
14945 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14946
14947         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14948         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14949         (*ieee128_mfvsrd_64bit): Likewise.
14950         (*ieee128_mfvsrd_32bit): Likewise.
14951
14952 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14953
14954         PR target/69369
14955         Revert r232560:
14956         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14957
14958         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14959         instrumented_version.
14960
14961 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14962
14963         * doc/invoke.texi (Optimize Options): In table of --param options
14964         rename second occurrence of tracer-min-branch-ratio to
14965         tracer-min-branch-probability, rename
14966         tracer-min-branch-ratio-feedback to
14967         tracer-min-branch-probability-feedback and clarify description,
14968         rename sched-spec-state-edge-prob-cutoff to
14969         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14970         to selsched-insns-to-rename, rename lto-minpartition to
14971         lto-min-partition, delete reorder-blocks-duplicate and
14972         reorder-blocks-duplicate-feedback.
14973
14974 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14975
14976         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14977         superfluous loops.
14978
14979 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14980
14981         * doc/extend.texi: S/390: Correct some typos.
14982
14983 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14984
14985         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14986
14987 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14988
14989         PR target/69625
14990         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14991         (s390_register_info_gprtofpr): Use new macros above.
14992         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14993         its name.
14994         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14995         its name.  Adjust restore and save gpr ranges.
14996         (s390_register_info_set_ranges): New function.
14997         (s390_register_info): Use new macros above.  Call
14998         s390_register_info_set_ranges.
14999         (s390_optimize_register_info): Likewise.
15000         (s390_hard_regno_rename_ok): Use new macros.
15001         (s390_hard_regno_scratch_ok): Likewise.
15002         (s390_emit_epilogue): Likewise.
15003         (s390_can_use_return_insn): Likewise.
15004         (s390_optimize_prologue): Likewise.
15005         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15006
15007 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15008
15009         PR bootstrap/69677
15010         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15011         alignment fixes.
15012         (ix86_option_override_internal): Disable TARGET_STV even for
15013         -m{incoming,preferred}-stack-boundary=3.
15014
15015 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15016
15017         * config.gcc: Mark deprecated rtems targets as obsolete.
15018
15019 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
15020
15021         PR rtl-optimization/64682
15022         PR rtl-optimization/69567
15023         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15024         before I2 only if the register is both used and set in I2.
15025
15026 2016-02-04  DJ Delorie  <dj@redhat.com>
15027
15028         * config/msp430/msp430.c (msp430_start_function): Add function type.
15029
15030 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15031
15032         PR fortran/69368
15033         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15034
15035 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
15036
15037         PR rtl-optimization/69577
15038         Revert:
15039         2015-10-29  Richard Henderson  <rth@redhat.com>
15040
15041         PR target/68124
15042         PR rtl-opt/67609
15043         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15044         sse check to the exact conditions of PR 67609.
15045
15046 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15047
15048         PR target/69667
15049         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15050         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15051         not allowed into the traditional Altivec registers.
15052         (movtd_64bit_nodm): Likewise.
15053         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15054
15055 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
15056
15057         * config/aarch64/cortex-a57-fma-steering.c
15058         (aarch64_register_fma_steering): Remove "static" from arguments
15059         to register_pass.
15060
15061 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
15062
15063         PR target/69619
15064         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15065         twice when complex.
15066
15067 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
15068
15069         * doc/invoke.texi: Delete -mno-fma4.
15070
15071 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
15072
15073         PR rtl-optimization/69577
15074         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15075         (find_subregs_of_mode): Update accordingly.  Iterate over partial
15076         definitions.
15077
15078 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
15079
15080         * config/arm/arm-protos.h (neon_reinterpret): Remove.
15081         * config/arm/arm.c (neon_reinterpret): Remove.
15082         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15083         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15084         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15085         vreinterpretti): Remove.
15086         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15087         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15088         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15089         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15090         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15091         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15092         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15093         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15094         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15095         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15096         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15097         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15098         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15099         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15100         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15101         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15102         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15103         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15104         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15105         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15106         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15107         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15108         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15109         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15110         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15111         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15112         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15113         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15114         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15115         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15116         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15117         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15118         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15119         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15120         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15121         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15122         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15123         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15124         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15125         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15126         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15127         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15128         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15129         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15130         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15131         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15132         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15133         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15134         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15135         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15136         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15137         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15138         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15139         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15140         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15141         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15142         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15143         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15144         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15145         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15146         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15147         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15148         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15149         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15150         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15151         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15152         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15153         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15154         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15155         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15156         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15157         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15158         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15159         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15160         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15161         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15162         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15163         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15164         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15165         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15166         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15167         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15168         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15169         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15170         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15171         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15172         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15173         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15174         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15175         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15176         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15177         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15178         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15179         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15180         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15181         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15182         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15183         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15184         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15185         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15186         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15187         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15188         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15189
15190 2016-02-04  Martin Liska  <mliska@suse.cz>
15191
15192         PR sanitizer/69276
15193         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15194         that are gimple_store_p.
15195         (maybe_instrument_call): Likewise.
15196
15197 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
15198
15199         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15200         register scaling out of memory reference and comment why.
15201
15202 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15203
15204         PR target/65932
15205         PR target/67714
15206         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15207         folding the source of a SET.
15208
15209 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15210
15211         PR target/65932
15212         PR target/67714
15213         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15214         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15215
15216 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
15217
15218         PR target/65932
15219         PR target/67714
15220         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15221         HImode.
15222
15223 2016-02-04  Christian Bruel  <christian.bruel@st.com>
15224
15225         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15226         * config/arm/arm.c (arm_set_current_function): Likewise.
15227
15228 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15229             Ilya Enkovich  <enkovich.gnu@gmail.com>
15230             H.J. Lu  <hongjiu.lu@intel.com>
15231
15232         PR target/69454
15233         * config/i386/i386.c (convert_scalars_to_vector): Remove
15234         stack alignment fixes.
15235         (ix86_option_override_internal): Disable TARGET_STV if stack
15236         might not be aligned enough.
15237         (ix86_minimum_alignment): Assert that TARGET_STV is false.
15238
15239 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
15240
15241         * config/i386/x86-tune.def: Disable default prefetching
15242         for -march=znver1.
15243
15244 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15245             Vladimir Makarov  <vmakarov@redhat.com>
15246
15247         PR target/69461
15248         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15249         in validating fused toc addresses.
15250
15251 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
15252
15253         PR c/69627
15254         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15255         range->m_caret fields if range->m_show_caret_p is false.
15256
15257         PR target/69644
15258         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15259         Force oldval into register if it does not satisfy reg_or_short_operand
15260         predicate.  Fix up formatting.
15261
15262 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
15263             Alexandre Oliva  <aoliva@redhat.com>
15264
15265         PR target/69461
15266         * lra-constraints.c (simplify_operand_subreg): Check additionally
15267         address validity after potential reloading.
15268         (process_address_1): Check insns validity.  In case of failure do
15269         nothing.
15270
15271 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
15272
15273         PR target/69118
15274         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15275         Fix target.
15276
15277 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
15278
15279         * wide-int.cc (canonize_uhwi): New function.
15280         (wi::divmod_internal): Use it.
15281
15282 2016-02-02  James Norris  <jnorris@codesourcery.com
15283
15284         * gimplify.c (omp_notice_variable): Add usage check.
15285
15286 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
15287
15288         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15289         like LE, GE, LT, GT when emitting relational operator.
15290
15291 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15292
15293         * ira-costs.c (find_costs_and_classes): Add extra argument.
15294         * target.def (ira_change_pseudo_allocno_class): Add parameter.
15295         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15296         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
15297         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
15298         Add best_class parameter, and return it if not ALL_REGS.
15299         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
15300         Add parameter.
15301         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
15302         Update target hook.
15303
15304 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15305
15306         * config/aarch64/aarch64.c
15307         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
15308         (aarch64_ira_change_pseudo_allocno_class): New function.
15309
15310 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
15311
15312         PR target/67032
15313         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
15314
15315 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15316
15317         * config/avr/avr.c (avr_option_override): Set
15318         PARAM_ALLOW_STORE_DATA_RACES to 1.
15319
15320 2016-02-02  Richard Biener  <rguenther@suse.de>
15321
15322         PR tree-optimization/69595
15323         * match.pd: Add range test simplifications to true/false.
15324
15325 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
15326
15327         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
15328         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
15329         instead.
15330
15331 2016-02-02  Richard Biener  <rguenther@suse.de>
15332
15333         PR tree-optimization/69606
15334         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
15335         info on the result before moving a stmt.
15336
15337 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
15338
15339         PR middle-end/68542
15340         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
15341         branch with vector comparison.
15342         * config/i386/sse.md (VI48_AVX): New mode iterator.
15343         (define_expand "cbranch<mode>4): Add support for conditional branch
15344         with vector comparison.
15345         * tree-vect-loop.c (optimize_mask_stores): New function.
15346         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
15347         has_mask_store field of vect_info.
15348         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
15349         vectorized loops having masked stores after vec_info destroy.
15350         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
15351         correspondent macros.
15352         (optimize_mask_stores): Add prototype.
15353
15354 2016-02-02  Alan Modra  <amodra@gmail.com>
15355
15356         PR target/69548
15357         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
15358         allow subregs.
15359
15360 2016-02-02  Alan Modra  <amodra@gmail.com>
15361
15362         PR target/68662
15363         * config/rs6000/rs6000.c (need_toc_init): New var, set it
15364         whenever toc_label_name used.
15365         (rs6000_file_start): Don't set up toc section here,
15366         (rs6000_output_function_epilogue): do so here instead,
15367         (rs6000_xcoff_file_start): and here.
15368         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
15369         (load_toc_aix_di): Likewise.
15370
15371 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15372
15373         PR rtl-optimization/69592
15374         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
15375         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
15376         (num_sign_bit_copies_binary_arith_p): New inline function.
15377         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
15378
15379 2016-02-01  Jeff Law  <law@redhat.com>
15380
15381         PR tree-optimization/69580
15382         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
15383         * tree-ssa-threadbackward.c
15384         (fsm_find_control_statement_thread_paths): Do not try to walk
15385         through large PHI nodes.
15386
15387 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15388
15389         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
15390         when count is incremented above limit, don't analyze further
15391         insns afterwards.
15392
15393         * omp-low.c (oacc_parse_default_dims): Avoid
15394         -Wsign-compare warning, make sure value fits into int
15395         rather than just unsigned int.
15396
15397 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
15398
15399         PR tree-optimization/67921
15400         * fold-const.c (split_tree): New parameters.  Convert pointer
15401         type variable part to proper type before negating.
15402         (fold_binary_loc): Pass new arguments to split_tree.
15403
15404 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
15405
15406         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
15407         (nvptx_goacc_validate_dims): Extend to handle global defaults.
15408         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
15409         * doc/tm.texti: Rebuilt.
15410         * doc/invoke.texi (fopenacc-dim): Document.
15411         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
15412         (append_compiler_options): Likewise.
15413         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
15414         (oacc_parse_default_dims): New.
15415         (oacc_validate_dims): Add USED arg.  Select non-unity default when
15416         possible.
15417         (oacc_loop_fixed_partitions): Return mask of used partitions.
15418         (oacc_loop_auto_partitions): Emit dump info.
15419         (oacc_loop_partition): Return mask of used partitions.
15420         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
15421         loop partitioning and validation calls.
15422
15423 2016-02-01  Richard Biener  <rguenther@suse.de>
15424
15425         PR middle-end/69556
15426         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
15427
15428 2016-02-01  Richard Biener  <rguenther@suse.de>
15429
15430         PR tree-optimization/69574
15431         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
15432         of asserting return chrec_dont_know.
15433
15434 2016-02-01  Martin Liska  <mliska@suse.cz>
15435
15436         * mem-stats-traits.h: Add copyright header.
15437         * mem-stats.h: Likewise.
15438
15439 2016-02-01  Richard Biener  <rguenther@suse.de>
15440
15441         PR tree-optimization/69579
15442         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
15443         Do not propagate through abnormal PHI results.
15444
15445 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
15446
15447         * postreload.c (reload_cse_simplify): Remove dead code.
15448
15449 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15450
15451         PR rtl-optimization/69570
15452         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
15453         if there is more than one set, not if there is a single set.
15454
15455 2016-02-01  Richard Henderson  <rth@redhat.com>
15456
15457         PR rtl-opt/69535
15458         * combine.c (make_compound_operation): When looking through a
15459         subreg, make sure to re-extend to the width of the outer mode.
15460
15461 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
15462
15463         PR tree-optimization/69546
15464         * wide-int.cc (wi::divmod_internal): For unsigned division
15465         where both operands fit into uhwi, if o1 is 1 and o0 has
15466         msb set, if divident_prec is larger than bits per hwi,
15467         clear another quotient word and return 2 instead of 1.
15468         Similarly for remainder with msb in HWI set, if dividend_prec
15469         is larger than bits per hwi.
15470
15471 2016-01-29  Martin Jambor  <mjambor@suse.cz>
15472
15473         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
15474         Use short lowercase names.
15475         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
15476         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
15477         acq_rel one.  Protect warning agains segfaults if
15478         get_memory_order_name returns NULL.
15479         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
15480         with release semantics.  Do not warn if get_memory_order already did.
15481         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
15482         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
15483         if get_memory_order already did.
15484
15485 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
15486
15487         * doc/install.texi: Document that isl-0.16 is supported.
15488
15489 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
15490
15491         PR target/69299
15492         * config/i386/constraints.md (Bm): Describe as special memory
15493         constraint.
15494         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
15495         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15496         * genpreds.c (struct constraint_data): Add is_special_memory.
15497         (have_special_memory_constraints, special_memory_start): New
15498         static vars.
15499         (special_memory_end): Ditto.
15500         (add_constraint): Add new arg is_special_memory.  Add code to
15501         process its true value.  Update have_special_memory_constraints.
15502         (process_define_constraint): Pass the new arg.
15503         (process_define_register_constraint): Ditto.
15504         (choose_enum_order): Process special memory.
15505         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
15506         function insn_extra_special_memory_constraint.
15507         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15508         * gensupport.c (process_rtx): Process
15509         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15510         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
15511         * ira-lives.c (single_reg_class): Use
15512         insn_extra_special_memory_constraint.
15513         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
15514         * lra-constraints.c (process_alt_operands): Ditto.
15515         (curr_insn_transform): Use insn_extra_special_memory_constraint.
15516         * recog.c (asm_operand_ok, preprocess_constraints): Process
15517         CT_SPECIAL_MEMORY.
15518         * reload.c (find_reloads): Ditto.
15519         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
15520         * stmt.c (parse_input_constraint): Use
15521         insn_extra_special_memory_constraint.
15522
15523 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
15524
15525         PR target/69530
15526         * lra-splill.c (lra_final_code_change): Revert r229087 by
15527         removing all sub-registers.
15528
15529 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
15530
15531         PR target/65604
15532         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
15533
15534 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
15535
15536         PR target/69551
15537         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
15538         SSE1, copy target into the temporary reg first before recursing
15539         on it.
15540
15541 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
15542
15543         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
15544         with vm.
15545
15546 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
15547
15548         * ginclude/stdarg.h: Test __cplusplus instead of
15549         __GXX_EXPERIMENTAL_CXX0X__.
15550
15551 2016-01-29  Richard Biener  <rguenther@suse.de>
15552
15553         PR tree-optimization/69547
15554         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
15555         Do not mark clobbers necessary.
15556         (mark_all_reaching_defs_necessary_1): Likewise.
15557
15558 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15559
15560         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
15561         declaration name with %qs and print it in both error messages.
15562         Also fix indentation.
15563
15564 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15565
15566         PR other/69006
15567         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
15568         trailing blank line from error message.
15569
15570 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
15571
15572         PR c++/69462
15573         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
15574         for C++-11.
15575
15576 2016-01-29  Richard Biener  <rguenther@suse.de>
15577
15578         PR middle-end/69537
15579         * match.pd: Allow all integral types when simplifying a
15580         widening or sign-changing conversion.
15581
15582 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15583
15584         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
15585         back to setting codegen_error to fail codegen.
15586
15587 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
15588
15589         PR target/69459
15590         * config/i386/constraints.md (C): Only accept constant zero operand.
15591         (BC): New constraint.
15592         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
15593         instead of C constraint.
15594         * doc/md.texi (Machine Constraints): Update description
15595         of C constraint.
15596
15597 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
15598
15599         PR target/68400
15600         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
15601
15602 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
15603
15604         PR middle-end/69542
15605         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
15606         non-debug insns.
15607
15608 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
15609
15610         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
15611         branches if using guessed profile.
15612
15613 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
15614
15615         * graphite-optimize-isl.c (optimize_isl): Fix dump.
15616
15617 2016-01-28  Richard Henderson  <rth@redhat.com>
15618
15619         PR target/69305
15620         * config/aarch64/aarch64-modes.def (CC_Cmode): New
15621         * config/aarch64/aarch64-protos.h: Update.
15622         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
15623         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
15624         (aarch64_get_condition_code_1): Handle CC_Cmode.
15625         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
15626         (*add<mode>3_compareC_cconly_imm): New.
15627         (*add<mode>3_compareC_cconly): New.
15628         (*add<mode>3_compareC_imm): New.
15629         (add<mode>3_compareC): New.
15630         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
15631         to be first.  Use aarch64_carry_operation.
15632         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
15633         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
15634         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
15635         (subti3): Use subdi3_compare1.
15636         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
15637         (sub<mode>3_compare1): New.
15638         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
15639         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
15640         (*subsi3_carryin_uxtw): Likewise.
15641         (*ngc<mode>, *ngcsi_uxtw): Likewise.
15642         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
15643         * config/aarch64/iterators.md (DWI): New.
15644         * config/aarch64/predicates.md (aarch64_carry_operation): New.
15645         (aarch64_borrow_operation): New.
15646
15647 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15648
15649         * graphite-optimize-isl.c (optimize_isl): Print a different debug
15650         message when isl does not return a valid schedule.
15651
15652 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15653
15654         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
15655         Remove comments from class declarations: they are already in the code
15656         close by the defs.
15657
15658 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15659
15660         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
15661         codegen_error_p.
15662         (ternary_op_to_tree): Same.
15663         (unary_op_to_tree): Same.
15664         (nary_op_to_tree): Same.
15665         (gcc_expression_from_isl_expr_op): Same.
15666         (gcc_expression_from_isl_expression): Same.
15667         (graphite_create_new_loop): Same.
15668         (graphite_create_new_loop_guard): Same.
15669         (build_iv_mapping): Same.
15670         (graphite_create_new_guard): Same.
15671         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
15672         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
15673
15674 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
15675
15676         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
15677         instead of setting codegen_error to fail codegen.
15678
15679 2016-01-28  Jason Merrill  <jason@redhat.com>
15680
15681         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
15682
15683 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15684
15685         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15686         Remove CONST_INT_P check in CCMP cost calculation.
15687
15688 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15689
15690         * config/aarch64/aarch64.c (generic_vector_cost):
15691         Set vec_permute_cost.
15692         (cortexa57_vector_cost): Likewise.
15693         (exynosm1_vector_cost): Likewise.
15694         (xgene1_vector_cost): Likewise.
15695         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
15696         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
15697         Add vec_permute_cost entry.
15698
15699 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
15700
15701         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
15702         immediate as %1.
15703         (add<mode>3_compare0): Likewise.
15704         (addsi3_compare0_uxtw): Likewise.
15705         (add<mode>3nr_compare0): Likewise.
15706         (compare_neg<mode>): Likewise.
15707         (<optab><mode>3): Likewise.
15708
15709 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
15710
15711         * tree-vect-stmts.c (vectorizable_comparison): Add
15712         NULL check for vectype.
15713
15714 2016-01-28  Richard Biener  <rguenther@suse.de>
15715
15716         PR tree-optimization/69466
15717         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15718         Account for PHIs we couldn't duplicate.
15719
15720 2016-01-28  Martin Liska  <mliska@suse.cz>
15721
15722         PR pch/68758
15723         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15724         instead of ENABLE_VALGRIND_CHECKING.
15725
15726 2016-01-27  Richard Henderson  <rth@redhat.com>
15727
15728         PR rtl-opt/69447
15729         * lra-remat.c (subreg_regs): New.
15730         (dump_candidates_and_remat_bb_data): Dump it.
15731         (operand_to_remat): Reject if operand in subreg_regs.
15732         (set_bb_regs): Collect subreg_regs.
15733         (lra_remat): Init and free subreg_regs.  Compute
15734         calculate_local_reg_remat_bb_data before create_cands.
15735
15736 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15737
15738         PR target/68986
15739         * config/i386/i386.c (ix86_update_stack_boundary): Don't
15740         change stack_alignment_needed for __tls_get_addr call.
15741
15742 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
15743
15744         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15745
15746 2016-01-27  Jeff Law  <law@redhat.com>
15747
15748         PR tree-optimization/68398
15749         PR tree-optimization/69196
15750         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15751         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15752         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15753         Only count PHIs in the last block in the path.  The others will
15754         const/copy propagate away.  Add heuristic to allow more irreducible
15755         subloops to be created when it is likely profitable to do so.
15756
15757         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15758         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
15759         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
15760
15761 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15762
15763         PR lto/69254
15764         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15765         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15766         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15767         * tree-streamer-in.c: Include asan.h.
15768         (streamer_get_builtin_tree): For builtins in sanitizer
15769         range call initialize_sanitizer_builtins and retry.
15770
15771 2016-01-27  Ian Lance Taylor  <iant@google.com>
15772
15773         * common.opt (fkeep-gc-roots-live): New undocumented option.
15774         * tree-ssa-loop-ivopts.c (add_candidate_1): If
15775         -fkeep-gc-roots-live, skip pointers.
15776         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15777         NULL.
15778
15779 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
15780
15781         PR target/69512
15782         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15783         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15784
15785 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
15786
15787         PR target/68380
15788         * configure.ac: NetBSD provides SSP in its C library.
15789         * configure: Updated.
15790
15791 2016-01-27  Richard Biener  <rguenther@suse.de>
15792
15793         PR tree-optimization/69166
15794         * tree-vect-loop.c (vect_is_simple_reduction): Always check
15795         reduction code for commutativity / associativity.
15796
15797 2016-01-27  Martin Jambor  <mjambor@suse.cz>
15798
15799         PR tree-optimization/69355
15800         * tree-sra.c (analyze_access_subtree): Correct hole detection when
15801         total_scalarization fails.
15802
15803 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
15804
15805         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15806         power9.
15807
15808 2016-01-27  Christian Bruel  <christian.bruel@st.com>
15809
15810         PR target/69245
15811         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15812         Move arm_reset_previous_fndecl and set_target_option_current_node in
15813         the conditional part.  Call save_restore_target_globals.
15814         * config/arm/arm.c (arm_set_current_function):
15815         Refactor to better support #pragma target and attribute mix.
15816         Call save_restore_target_globals.
15817         * config/arm/arm-protos.h (save_restore_target_globals): New function.
15818
15819 2016-01-27  Martin Liska  <mliska@suse.cz>
15820
15821         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
15822         reference for an HSA kernel and its host function.
15823
15824 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
15825
15826         PR tree-optimization/69399
15827         * wide-int.h (wi::lrshift): For larger precisions, only
15828         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
15829
15830 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
15831
15832         * config/arc/predicates.md (proper_comparison_operator): Reject
15833         constant-constant comparison.
15834
15835 2016-01-26  Tom de Vries  <tom@codesourcery.com>
15836
15837         PR tree-optimization/69110
15838         * tree-data-ref.c (initialize_data_dependence_relation): Handle
15839         DR_NUM_DIMENSIONS == 0.
15840
15841 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
15842             Sebastian Pop  <s.pop@samsung.com>
15843
15844         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
15845         isl_ast_op_cond and isl_ast_op_select.
15846         (gcc_expression_from_isl_expr_op): Same.
15847
15848 2016-01-26  Jason Merrill  <jason@redhat.com>
15849
15850         PR c++/68782
15851         * tree.c (recompute_constructor_flags): Split out from
15852         build_constructor.
15853         (verify_constructor_flags): New.
15854         * tree.h: Declare them.
15855
15856 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15857
15858         PR rtl-optimization/69217
15859         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15860         are no TYPE_FIELDS set for the record type.
15861
15862 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15863
15864         PR target/68662
15865         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15866         toc_label_name unconditionally.
15867         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15868         SYMBOL_REF string.  Use toc_label_name instead of constructing
15869         LCTOC1.
15870         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15871         constructing LCTOC1.
15872
15873 2016-01-26  Martin Sebor  <msebor@redhat.com>
15874
15875         PR other/69477
15876         * doc/extend.texi (Common Type Attributes): Move text that talks about
15877         attribute packed from attribute aligned to the section discussing
15878         the former attribute for clarity.
15879
15880 2016-01-26  Richard Henderson  <rth@redhat.com>
15881
15882         PR middle-end/60908
15883         * trans-mem.c (tm_region_init): Mark entry block as visited.
15884
15885 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15886
15887         PR other/69006
15888         * diagnostic-show-locus.c (layout::print_source_line): Replace
15889         call to pp_newline with call to layout::print_newline.
15890         (layout::print_annotation_line): Likewise.
15891         (layout::move_to_column): Likewise.
15892         (layout::print_any_fixits): After printing any fixits, print a
15893         trailing newline, if necessary.
15894         (layout::print_newline): New method, resetting any colorization
15895         before a newline.
15896         (diagnostic_show_locus): Move the pp_newline to before the
15897         early bailout.  Remove dummy block enclosing the layout instance.
15898         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15899         of pp_newline_and_flush with pp_flush.
15900         (diagnostic_append_note): Delete use of pp_newline.
15901         (diagnostic_append_note_at_rich_loc): Delete.
15902         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15903         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15904         when newline characters are added to the buffer.
15905
15906 2016-01-26  Michael Matz  <matz@suse.de>
15907
15908         * configure.ac (ac_cv_std_swap_in_utility): New test.
15909         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15910         * configure: Regenerate.
15911         * config.in: Regenerate.
15912
15913 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15914
15915         * config/arc/arc.md (cstoresi4): Force operand into register.
15916         (arcset<code>): Fix predicate.
15917         (arcsetltu): Likewise.
15918         (arcsetgeu): Likewise.
15919         (arcsethi): Likewise.
15920         (arcsetls): Likewise.
15921
15922 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15923
15924         PR tree-optimization/69483
15925         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15926         if base has error_mark_node type.
15927
15928 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15929
15930         PR target/68620
15931         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15932         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15933         New helper macros.
15934         (vget_lane_f16): Handle big-endian.
15935         (vgetq_lane_f16): Likewise.
15936         (vset_lane_f16): Likewise.
15937         (vsetq_lane_f16): Likewise.
15938         * config/arm/iterators.md (VQXMOV): Add V8HF.
15939         (VDQ): Add V4HF and V8HF.
15940         (V_reg): Handle V4HF and V8HF.
15941         (Is_float_mode): Likewise.
15942         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15943         neon_vdup_nv8hf): New patterns.
15944         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15945         Use VD_LANE iterator.
15946         (neon_vld1_dup<mode>): Use VQ2 iterator.
15947
15948 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15949
15950         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15951         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15952         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15953         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15954         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15955         (oacc_validate_dims): Add LEVEL arg, don't return level.
15956         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15957         oacc_validate_dims.
15958         (execute_oacc_device_lower): Adjust, add more dump output.
15959         * tree-ssa-loop.c (gate_oacc_kernels): Use
15960         oacc_fn_attrib_kernels_p.
15961         * tree-parloops.c (create_parallel_loop): Adjust
15962         set_oacc_fn_attrib call.
15963
15964 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15965
15966         PR lto/69254
15967         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15968         (append_compiler_options): Handle -fcilkplus.
15969         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15970
15971 2016-01-26  Nick Clifton  <nickc@redhat.com>
15972
15973         PR target/66655
15974         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15975         been marked as DECL_ONE_ONLY but we do not the means to make it
15976         so, then do not allow it to bind locally.
15977
15978 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15979
15980         PR lto/69254
15981         * opts.h (parse_sanitizer_options): New prototype.
15982         * opts.c (sanitizer_opts): New array.
15983         (parse_sanitizer_options): New function.
15984         (common_handle_option): Use parse_sanitizer_options.
15985
15986 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15987
15988         PR target/68986
15989         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15990         alignment adjustment to ...
15991         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15992         __tls_get_addr.
15993         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15994         if __tls_get_addr is called.
15995
15996 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15997
15998         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15999
16000 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
16001
16002         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16003
16004 2016-01-26  Richard Biener  <rguenther@suse.de>
16005
16006         PR middle-end/69467
16007         * match.pd: Guard X * CST CMP 0 pattern with single_use.
16008
16009 2016-01-26  Richard Biener  <rguenther@suse.de>
16010
16011         PR tree-optimization/69452
16012         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16013         (move_computations_dom_walker::before_dom_children): Rename
16014         to ...
16015         (move_computations_worker): This.
16016         (move_computations): Perform an RPO rather than a DOM walk.
16017
16018 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16019
16020         PR target/69442
16021         * combine.c (combine_instructions): For REG_EQUAL note with
16022         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16023         to the underlying register.
16024         * doc/rtl.texi (REG_EQUAL): Document the behavior of
16025         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16026
16027 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
16028
16029         PR target/67896
16030         * config/aarch64/aarch64-builtins.c
16031         (aarch64_init_simd_builtin_types): Do not set structural
16032         equality to __Poly{8,16,64,128}_t types.
16033
16034 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
16035
16036         PR tree-optimization/69400
16037         * wide-int.cc (wi_pack): Take the precision as argument and
16038         perform canonicalization here rather than in the callers.
16039         Use the main loop to handle all full-width HWIs.  Add a
16040         zero HWI if in_len isn't a full result.
16041         (wi::divmod_internal): Update accordingly.
16042         (wi::mul_internal): Likewise.  Simplify.
16043
16044 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16045             Sebastian Pop  <s.pop@samsung.com>
16046
16047         * graphite-poly.c (apply_poly_transforms): Simplify.
16048         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16049         (print_isl_map): Same.
16050         (print_isl_union_map): Same.
16051         (print_isl_schedule): New.
16052         (debug_isl_schedule): New.
16053         * graphite-dependences.c (scop_get_reads): Do not call
16054         isl_union_map_add_map that is undocumented isl functionality.
16055         (scop_get_must_writes): Same.
16056         (scop_get_may_writes): Same.
16057         (scop_get_original_schedule): Remove.
16058         (scop_get_dependences): Do not call isl_union_map_compute_flow that
16059         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
16060         (compute_deps): Remove.
16061         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16062         (debug_schedule_ast): New.
16063         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16064         set_separate_option.
16065         (graphite_regenerate_ast_isl): Add dump.
16066         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16067         from scop->transformed_schedule.
16068         (graphite_regenerate_ast_isl): Add more dump.
16069         * graphite-optimize-isl.c (optimize_isl): Set
16070         scop->transformed_schedule.  Check whether schedules are equal.
16071         (apply_poly_transforms): Move here.
16072         * graphite-poly.c (apply_poly_transforms): ... from here.
16073         (free_poly_bb): Static.
16074         (free_scop): Static.
16075         (pbb_number_of_iterations_at_time): Remove.
16076         (print_isl_ast): New.
16077         (debug_isl_ast): New.
16078         (debug_scop_pbb): New.
16079         * graphite-scop-detection.c (print_edge): Move.
16080         (print_sese): Move.
16081         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16082         (build_scop_scattering): Remove.
16083         (create_pw_aff_from_tree): Assert instead of bailing out.
16084         (add_condition_to_pbb): Remove unused code, do not fail.
16085         (add_conditions_to_domain): Same.
16086         (add_conditions_to_constraints): Remove.
16087         (build_scop_context): New.
16088         (add_iter_domain_dimension): New.
16089         (build_iteration_domains): Initialize pbb->iterators.
16090         Call add_conditions_to_domain.
16091         (nested_in): New.
16092         (loop_at): New.
16093         (index_outermost_in_loop): New.
16094         (index_pbb_in_loop): New.
16095         (outermost_pbb_in): New.
16096         (add_in_sequence): New.
16097         (add_outer_projection): New.
16098         (outer_projection_mupa): New.
16099         (add_loop_schedule): New.
16100         (build_schedule_pbb): New.
16101         (build_schedule_loop): New.
16102         (embed_in_surrounding_loops): New.
16103         (build_schedule_loop_nest): New.
16104         (build_original_schedule): New.
16105         (build_poly_scop): Call build_original_schedule.
16106         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16107         (free_poly_dr): Remove.
16108         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
16109         (free_poly_bb): Remove.
16110         (debug_loop_vec): Remove.
16111         (print_isl_ast): Declare.
16112         (debug_isl_ast): Declare.
16113         (scop_do_interchange): Remove.
16114         (scop_do_strip_mine): Remove.
16115         (scop_do_block): Remove.
16116         (flatten_all_loops): Remove.
16117         (optimize_isl): Remove.
16118         (pbb_number_of_iterations_at_time): Remove.
16119         (debug_scop_pbb): Declare.
16120         (print_schedule_ast): Declare.
16121         (debug_schedule_ast): Declare.
16122         (struct scop): Remove schedule.  Add original_schedule,
16123         transformed_schedule.
16124         (free_gimple_poly_bb): Remove.
16125         (print_generated_program): Remove.
16126         (debug_generated_program): Remove.
16127         (unify_scattering_dimensions): Remove.
16128         * sese.c (print_edge): ... here.
16129         (print_sese): ... here.
16130         (debug_edge): ... here.
16131         (debug_sese): ... here.
16132         * sese.h (print_edge): Declare.
16133         (print_sese): Declare.
16134         (dump_edge): Declare.
16135         (dump_sese): Declare.
16136
16137 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16138             Sebastian Pop  <s.pop@samsung.com>
16139
16140         * Makefile.in: Set ISLVER in site.exp.
16141
16142 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
16143
16144         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16145         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
16146         through DECL_VALUE_EXPR for expansion.
16147
16148 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16149
16150         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16151         the frame info after reload completed.
16152
16153 2016-01-25  Jeff Law  <law@redhat.com>
16154
16155         PR tree-optimization/69196
16156         PR tree-optimization/68398
16157         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16158         tree-ssa-threadupdate.c.
16159         (determine_bb_domination_status): Prototype
16160         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16161         (determine_bb_domination_status): No longer static.
16162         (valid_jump_thread_path): Remove code to detect characteristics
16163         of the jump thread path not associated with correctness.
16164         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16165         Correct test for thread path length.  Count PHIs for real operands as
16166         statements that need to be copied.  Do not count ASSERT_EXPRs.
16167         Look at all the blocks in the thread path.  Compute and selectively
16168         filter thread paths based on threading through the latch, threading
16169         a multiway branch or crossing a multiway branch.
16170
16171 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16172
16173         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
16174         decl with __attribute__ ((unused)) annotation.
16175
16176 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
16177
16178         PR target/69421
16179         * tree-vect-stmts.c (vectorizable_condition): Check vectype
16180         of operands is compatible with a statement vectype.
16181
16182 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
16183
16184         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16185         improve wording for mixed storage order support.
16186
16187 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
16188
16189         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16190         (vcvt_u64_f64): Likewise.
16191         (vcvta_s64_f64): Likewise.
16192         (vcvta_u64_f64): Likewise.
16193         (vcvtm_s64_f64): Likewise.
16194         (vcvtm_u64_f64): Likewise.
16195         (vcvtn_s64_f64): Likewise.
16196         (vcvtn_u64_f64): Likewise.
16197         (vcvtp_s64_f64): Likewise.
16198         (vcvtp_u64_f64): Likewise.
16199
16200 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
16201
16202         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16203         (arc_init): Check validity mll64 option.
16204         (arc_save_restore): Use double load/store instruction.
16205         (arc_expand_movmem): Likewise.
16206         (arc_split_move): Don't split if we have double load/store
16207         instructions. Returns a boolean.
16208         (arc_process_double_reg_moves): Change function to return boolean
16209         instead of a sequence of instructions.
16210         (arc_dwarf_register_span): New function.
16211         * config/arc/arc-protos.h (arc_split_move): Change prototype.
16212         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16213         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16214         (*movdf_insn): Likewise.
16215         * config/arc/arc.opt (mll64): New option.
16216         * config/arc/predicates.md (even_register_operand): New predicate.
16217         * doc/invoke.texi (ARC Options): Add mll64 documentation.
16218
16219 2016-01-25  Richard Biener  <rguenther@suse.de>
16220
16221         PR lto/69393
16222         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16223         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16224         DECL_NAMELESS.
16225         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16226
16227 2016-01-25  Richard Biener  <rguenther@suse.de>
16228
16229         PR tree-optimization/69376
16230         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16231         flag.
16232         (VN_INFO_ANTI_RANGE_P): New inline.
16233         (VN_INFO_RANGE_TYPE): Likewise.
16234         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16235         SSA_NAME_ANTI_RANGE_P.
16236         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16237         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16238         Properly query VN_INFO_RANGE_TYPE.
16239
16240 2016-01-25  Nick Clifton  <nickc@redhat.com>
16241
16242         PR target/66655
16243         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16244
16245 2016-01-23  Tom de Vries  <tom@codesourcery.com>
16246
16247         PR tree-optimization/69426
16248         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16249         removed clobber.
16250
16251 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
16252
16253         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16254         "the the" with "the" in the comments.
16255         * ipa-devirt.c (build_type_inheritance_graph,
16256         update_type_inheritance_graph): Likewise.
16257         * tree.c (build_function_type_list_1): Likewise.
16258         * cfgloopmanip.c (scale_loop_profile): Likewise.
16259         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16260         * gimple-ssa-split-paths.c
16261         (find_block_to_duplicate_for_splitting_paths): Likewise.
16262         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16263         * expr.c (convert_move): Likewise.
16264         * var-tracking.c (vt_stack_adjustments): Likewise.
16265         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16266         * tree-vrp.c (test_for_singularity): Likewise.
16267
16268         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16269         directly instead of building a temporary tree.
16270
16271         PR bootstrap/69434
16272         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16273         remove <algorithm> include.
16274
16275 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16276
16277         PR target/69432
16278         * config/i386/i386.c: Include dojump.h.
16279         (expand_small_movmem_or_setmem,
16280         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16281         fixes.
16282         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16283         if dynamic_check != -1.
16284
16285 2016-01-21  Jeff Law  <law@redhat.com>
16286
16287         PR middle-end/69347
16288         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16289         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
16290         into dominated_by_p.
16291         (cprop_into_successor_phis): Avoid unnecessary tests.
16292
16293 2016-01-22  Richard Henderson  <rth@redhat.com>
16294
16295         PR target/69416
16296         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
16297         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
16298
16299 2016-01-22  Michael Matz  <matz@suse.de>
16300
16301         * system.h (string, algorithm): Include only conditionally.
16302         (new): Include always under C++.
16303         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
16304         * final.c (toplevel): Ditto.
16305         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
16306         * genconditions.c (write_header): Make gencondmd.c define
16307         INCLUDE_STRING.
16308         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
16309
16310         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
16311         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
16312
16313 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16314
16315         PR target/68674
16316         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
16317
16318 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16319
16320         PR target/69403
16321         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
16322         define_insn_and_split.  Ensure operands[1] and operands[0] do not
16323         get assigned the same register.
16324
16325 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16326
16327         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
16328
16329 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16330
16331         * config/arm/arm-c.c (arm_pragma_target_parse):
16332         Remove warn_builtin_macro_redefined overwrite.
16333
16334 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16335
16336         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
16337         flag_non_call_exceptions compatibility.
16338
16339 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16340
16341         PR debug/66668
16342         * dwarf2out.c (add_child_die_after): New function.
16343         (dwarf_qual_info_t): New type.
16344         (dwarf_qual_info): New variable.
16345         (qualified_die_p): New function.
16346         (modified_type_die): For -fdebug-types-section, ensure
16347         canonical order of qualifiers.  Put qualified DIEs adjacent
16348         to the corresponding non-qualified type DIE and search there
16349         for existing qualified DIEs.
16350
16351 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16352
16353         * doc/extend.texi (scalar_storage_order type attribute): Document
16354         restriction on type punning and aliasing, and remove future tense.
16355
16356 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
16357
16358         PR target/69252
16359         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
16360         first stage.
16361
16362 2016-01-21  Jeff Law  <law@redhat.com>
16363
16364         PR middle-end/69347
16365         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
16366         useless call to record_temporary_equivalences.
16367         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
16368         allocate 10 slots in the bb_path vector and let it grow as needed.
16369         (fsm_find_control_statement_thread_paths): Similarly for the next_path
16370         vector.
16371
16372 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16373
16374         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
16375         Detangle.
16376         * configure: Regenerate.
16377
16378 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
16379
16380         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
16381         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
16382
16383 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
16384
16385         PR middle-end/66178
16386         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
16387         drop EXPAND_INITIALIZER.
16388         * rtl.h (contains_symbolic_reference_p): Declare.
16389         * rtlanal.c (contains_symbolic_reference_p): New function.
16390         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
16391         a subtraction into a NOT if symbolic constants are involved.
16392
16393 2016-01-21  Anton Blanchard  <anton@samba.org>
16394             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16395
16396         PR target/63354
16397         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
16398         #define.
16399         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
16400         function.
16401
16402 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16403
16404         * config/microblaze/microblaze.c
16405         (get_branch_target): New.
16406         (insert_wic_for_ilb_runout): New.
16407         (insert_wic): New.
16408         (microblaze_machine_dependent_reorg): New.
16409         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
16410         * config/microblaze/microblaze.md
16411         (UNSPEC_IPREFETCH): Define.
16412         (iprefetch): New pattern
16413         * config/microblaze/microblaze.opt
16414         (mxl-prefetch): New flag.
16415
16416 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16417
16418         * config/microblaze/microblaze.h
16419         (FIXED_REGISTERS): Update in macro.
16420         (CALL_USED_REGISTERS): Update in macro.
16421
16422 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
16423
16424         PR rtl-optimization/68920
16425         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
16426         moves.
16427
16428 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
16429
16430         PR rtl-optimization/68990
16431         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
16432         pseudo instead of inheritance ones.
16433
16434 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16435             Nick Clifton  <nickc@redhat.com>
16436
16437         PR target/69129
16438         PR target/69012
16439         * config/mips/mips.c (mips_compute_frame_info): Initialise
16440         args_size and hard_frame_pointer_offset fields of the frame
16441         structure before calling mips_global_pointer.
16442
16443 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16444
16445         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
16446         label reference.
16447         * configure: Regenerate.
16448
16449 2016-01-21  Richard Biener  <rguenther@suse.de>
16450
16451         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
16452
16453 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
16454
16455         * config/s390/s390.c (s390_asm_declare_function_size): Add code
16456         to actually emit the .size directive.
16457
16458 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
16459              Jakub Jelinek  <jakub@redhat.com>
16460
16461         PR target/69187
16462         PR target/65624
16463         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
16464         args array size by one to avoid buffer overflow.
16465
16466 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
16467
16468         * config/s390/s390.md (pool_section_start): Use switch_to_section
16469         to select proper read-only data section instead of hardcoding
16470         .rodata.
16471         (pool_section_end): Use switch_to_section to match the above.
16472
16473 2016-01-21  Richard Biener  <rguenther@suse.de>
16474
16475         PR tree-optimization/69378
16476         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
16477         (set_ssa_val_to): Use it for dominance checks taking into
16478         account not executable edges.
16479
16480 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16481
16482         PR c++/69355
16483         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
16484         for bitsize instead of GET_MODE_PRECISION (mode).
16485
16486 2016-01-20  Martin Sebor  <msebor@redhat.com>
16487
16488         PR c/52291
16489         * extend.texi (__sync Builtins): Clarify the semantics of
16490         __sync_fetch_and_OP built-ins on pointers.
16491         (__atomic Builtins): Same.
16492
16493 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16494             Sebastian Pop  <s.pop@samsung.com>
16495
16496         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
16497         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
16498         (is_valid_rename): Same.
16499         (translate_isl_ast_to_gimple::get_rename): Same.
16500         (translate_isl_ast_to_gimple::rename_all_uses): Same.
16501         (translate_isl_ast_to_gimple::rename_uses): Same.
16502         (get_new_name): Check for close_phi nodes.
16503         (copy_loop_phi_args): Use phi_node_kind.
16504         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
16505         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
16506
16507 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16508             Sebastian Pop  <s.pop@samsung.com>
16509
16510         Revert commit r229783.
16511         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16512         Remove use of parameter_rename_map.
16513         (copy_def): Remove.
16514         (copy_internal_parameters): Remove.
16515         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
16516         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
16517         (free_sese_info): Do not free parameter_rename_map.
16518         (set_rename): Do not use parameter_rename_map.
16519         (rename_uses): Update call to set_rename.
16520         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
16521         * sese.h (parameter_rename_map_t): Remove.
16522         (struct sese_info_t): Remove field parameter_rename_map.
16523
16524 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16525             Sebastian Pop  <s.pop@samsung.com>
16526
16527         * graphite-isl-ast-to-gimple.c: Fix comment.
16528         * graphite-scop-detection.c (defined_in_loop_p): New.
16529         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
16530         names defined in loop.
16531
16532 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16533             Sebastian Pop  <s.pop@samsung.com>
16534
16535         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
16536         Discard unstructured if-then-else regions.
16537
16538 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16539             Sebastian Pop  <s.pop@samsung.com>
16540
16541         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
16542         (cleanup_loop_iter_dom): Remove.
16543         (build_loop_iteration_domains): Remove.
16544         (build_scop_context): Remove.
16545         (build_scop_iteration_domain): Remove.
16546         (add_loop_constraints): New.
16547         (build_iteration_domains): New.
16548         (build_poly_scop): Call build_iteration_domains.
16549
16550 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16551             Sebastian Pop  <s.pop@samsung.com>
16552
16553         * graphite-scop-detection.c
16554         (scop_detection::harmful_loop_in_region): Free dom and loops.
16555         (scop_detection::loop_body_is_valid_scop): Free bbs.
16556
16557 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16558             Sebastian Pop  <s.pop@samsung.com>
16559
16560         * graphite-scop-detection.c (record_loop_in_sese): New.
16561         (gather_bbs::before_dom_children): Call record_loop_in_sese.
16562         (build_scops): Remove call to build_sese_loop_nests.
16563         * sese.c (sese_record_loop): Remove.
16564         (build_sese_loop_nests): Remove.
16565         (new_sese_info): Remove region->loops.
16566         (free_sese_info): Same.
16567         * sese.h (sese_contains_loop): Same.
16568         (build_sese_loop_nests): Remove.
16569         (sese_contains_loop): Remove.
16570
16571 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16572             Sebastian Pop  <s.pop@samsung.com>
16573
16574         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
16575         loop_is_valid_in_scop.
16576         (scop_detection::harmful_stmt_in_region): Renamed
16577         harmful_loop_in_region.
16578         Call loop_is_valid_in_scop.
16579
16580 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16581             Sebastian Pop  <s.pop@samsung.com>
16582
16583         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
16584         isl_ast_node_mark.
16585
16586 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16587             Sebastian Pop  <s.pop@samsung.com>
16588
16589         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
16590         * graphite.h (struct poly_bb): Remove field is_reduction.
16591         (PBB_IS_REDUCTION): Remove.
16592
16593 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
16594             Sebastian Pop  <s.pop@samsung.com>
16595
16596         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
16597         (add_pdr_constraints): Same.
16598         (scop_get_reads): Same.
16599         (scop_get_must_writes): Same.
16600         (scop_get_may_writes): Same.
16601         (scop_get_original_schedule): Same.
16602         (extend_schedule): Same.
16603         (apply_schedule_on_deps): Same.
16604         (carries_deps): Same.
16605         (compute_deps): Same.
16606         (scop_get_dependences): Same.
16607         * graphite-isl-ast-to-gimple.c
16608         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
16609         * graphite-optimize-isl.c (get_schedule_for_band): Same.
16610         (get_schedule_for_band_list): Same.
16611         (get_schedule_map): Same.
16612         (apply_schedule_map_to_scop): Same.
16613         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16614         (build_loop_iteration_domains): Same.
16615         (add_condition_to_pbb): Same.
16616         (add_param_constraints): Same.
16617         (pdr_add_memory_accesses): Same.
16618         (pdr_add_data_dimensions): Same.
16619
16620 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16621
16622         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
16623         requirements.
16624
16625 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
16626
16627         * common.opt (feliminate-dwarf2-dups): Replace references to
16628         "DWARF 2" with just "DWARF".
16629         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
16630         * doc/extend.texi: Likewise.
16631         * doc/cpp.texi: Likewise.
16632         * doc/invoke.texi: Likewise.
16633         (Option Summary): Add -gdwarf to list of Debugging Options.
16634         (Debugging Options): Document -gdwarf.
16635         * doc/contrib.texi: Spell "DWARF" like that.
16636
16637 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
16638
16639         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
16640         warning.  Fix up formatting.
16641
16642         PR middle-end/67653
16643         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
16644         attempt to mark memory input operand addressable and
16645         call prepare_gimple_addressable in that case.  Don't adjust
16646         input_location for diagnostics, use error_at instead.
16647
16648 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
16649
16650         * config/rs6000/ppc-auxv.h: New file.
16651         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
16652         (cpu_is): Likewise.
16653         (cpu_supports): Likewise.
16654         * config/rs6000/rs6000.c: include "ppc-auxv.h".
16655         (cpu_is_info): New variable.
16656         (cpu_supports_info): Likewise.
16657         (tcb_verification_symbol): Likewise.
16658         (cpu_builtin_p): Likewise.
16659         (cpu_expand_builtin): New function.
16660         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
16661         (rs6000_init_builtins): Likewise.
16662         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
16663         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
16664         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
16665         * configure: Regenerate.
16666         * config.in: Likewise.
16667         * doc/extend.texi (PowerPC Built-in Functions): Document
16668         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
16669
16670 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
16671
16672         PR target/68609
16673         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
16674         domain check.
16675         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
16676         for V4SFmode.
16677
16678 2016-01-20  Richard Henderson  <rth@redhat.com>
16679
16680         PR bootstrap/69343
16681         PR bootstrap/69339
16682         PR tree-opt/68964
16683         Revert:
16684         * tree.c (tm_define_builtin): New.
16685         (find_tm_vector_type): New.
16686         (build_tm_vector_builtins): New.
16687         (build_common_builtin_nodes): Call it.
16688
16689 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
16690
16691         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
16692         (arm_fp_ok): Likewise.
16693         (arm_fp): Likewise.
16694         (arm_crypto): Likewise.
16695
16696 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16697             Richard Biener  <rguenther@suse.de>
16698
16699         PR tree-optimization/69328
16700         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
16701         vectors have same number of elements.
16702         (vectorizable_condition): Fix masked version recognition.
16703
16704 2016-01-20  Richard Biener  <rguenther@suse.de>
16705
16706         PR tree-optimization/69345
16707         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16708         (VN_INFO_PTR_INFO): Likewise.
16709         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16710         info when it is equal between non-dominating SSA names.
16711         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16712         Make sure to look at original SSA infos.
16713
16714 2016-01-20  Jeff Law  <law@redhat.com>
16715
16716         PR target/25114
16717         * config/m68k/predicates.md (pow2_m1_operand): New predicate
16718         extracted from ...
16719         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16720         (pc_or_label_operand): New predicate.
16721         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16722         tests for small integers that are 2^n - 1.
16723
16724 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
16725
16726         * doc/invoke.texi (Options Summary): Add '.' after @xref.
16727
16728 2016-01-19  Jeff Law  <law@redhat.com>
16729
16730         PR middle-end/69347
16731         * tree-ssa-threadbackwards.c
16732         (fsm_find_control_statement_thread_paths): Do not try to lookup
16733         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16734
16735 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16736
16737         * doc/lto.texi: Remove text that says only Gold has linker plugin
16738         support.
16739
16740 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
16741
16742         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16743         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16744         the DIE accordingly.
16745         (modified_type_die): Add REVERSE parameter and pass it recursively,
16746         as well as to base_type_die.  Adjust presence check accordingly.
16747         (base_type_for_mode): Adjust call to modified_type_die.
16748         (add_type_attribute): Add REVERSE parameter and pass it to
16749         modified_type_die.
16750         (generic_parameter_die): Adjust call to add_type_attribute.
16751         (add_scalar_info): Likewise.
16752         (add_subscript_info): Likewise.
16753         (gen_array_type_die): Likewise.
16754         (gen_descr_array_type_die): Likewise.
16755         (gen_entry_point_die): Likewise.
16756         (gen_enumeration_type_die): Likewise.
16757         (gen_formal_parameter_die): Likewise.
16758         (gen_subprogram_die): Likewise.
16759         (gen_variable_die ): Likewise.
16760         (gen_const_die): Likewise.
16761         (gen_field_die): Likewise.
16762         (gen_pointer_type_die): Likewise.
16763         (gen_reference_type_die): Likewise.
16764         (gen_ptr_to_mbr_type_die): Likewise.
16765         (gen_inheritance_die): Likewise.
16766         (gen_subroutine_type_die): Likewise.
16767         (gen_typedef_die): Likewise.
16768         (force_type_die): Adjust call to modified_type_die.
16769
16770 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
16771
16772         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16773         flow throughout the file.  Fix broken link to Objective-C 2.0
16774         documentation.
16775         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16776         errors.
16777
16778 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16779
16780         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16781
16782 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16783
16784         PR ipa/66223
16785         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16786         (maybe_record_node): Record cxa_pure_virtual as the only possible
16787         target if there are not ohter candidates.
16788         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16789
16790 2016-01-19  Richard Biener  <rguenther@suse.de>
16791
16792         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16793         (get_memory_order): Likewise.
16794
16795 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16796
16797         * tree-vect-stmts.c (vectorizable_store): Check
16798         rhs vectype.
16799
16800 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
16801
16802         PR jit/68446
16803         * gcc.c (driver::decode_argv): Add call to
16804         init_opts_obstack before init_options_struct.
16805         * opts.c (init_opts_obstack): Remove idempotency.
16806         (init_options_struct): Replace call to init_opts_obstack
16807         with a gcc_assert to verify that it has already been called.
16808         * toplev.c (toplev::main): Add call to init_opts_obstack before
16809         calls to init_options_struct.
16810         (toplev::finalize): Move cleanup of opts_obstack next to
16811         cleanup of save_decoded_options, clearing the latter, and
16812         save_decoded_options_count.
16813
16814 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16815
16816         PR target/69135
16817         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
16818         attribute to unconditional.  Remove %? from output template.
16819
16820 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16821             Jiong Wang  <jiong.wang@arm.com>
16822
16823         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
16824         generated from different expand order.
16825
16826 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16827
16828         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16829         Add support for CCMP costing.
16830
16831 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16832
16833         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
16834         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
16835         (fccmpe<mode>): Likewise.
16836         (fcmp): Rename to fcmp and globalize pattern.
16837         (fcmpe): Likewise.
16838         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
16839         (aarch64_gen_ccmp_next): Add FP support.
16840
16841 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
16842
16843         * target.def (gen_ccmp_first): Update documentation.
16844         (gen_ccmp_next): Likewise.
16845         * doc/tm.texi (gen_ccmp_first): Update documentation.
16846         (gen_ccmp_next): Likewise.
16847         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
16848         expand_ccmp_expr_1.  Improve comments.
16849         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
16850         (ccmp_ior<mode>): Remove pattern.
16851         (cmp<mode>): Remove expand.
16852         (cmp): Globalize pattern.
16853         (cstorecc4): Use cc_register.
16854         (mov<mode>cc): Remove ccmp_cc_register check.
16855         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
16856         Simplify after removal of CC_DNE/* modes.
16857         (aarch64_ccmp_mode_to_code): Remove.
16858         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16859         In 'k' case use integer as condition.
16860         (aarch64_nzcv_codes): Remove inverted cases.
16861         (aarch64_code_to_ccmode): Remove.
16862         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16863         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16864         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16865         pattern.  Return the comparison with CC register.  Invert conditions
16866         when bitcode is OR.
16867         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16868         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16869
16870 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16871
16872         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16873         instrumented_version.
16874
16875 2016-01-19  Richard Biener  <rguenther@suse.de>
16876
16877         PR tree-optimization/69336
16878         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16879         handled components with get_ref_base_and_extent.
16880         (equal_mem_array_ref_p): Adjust.
16881
16882 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16883
16884         PR debug/65779
16885         * shrink-wrap.c: Include valtrack.h.
16886         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16887         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16888         in between insn and where it will be moved to.  Call
16889         dead_debug_insert_temp.
16890         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16891         first and dead_debug_local_finish at the end.
16892         For uses and defs bitmap, handle all regs in between REGNO and
16893         END_REGNO, not just the first one.
16894
16895 2016-01-19  Richard Biener  <rguenther@suse.de>
16896
16897         PR tree-optimization/69352
16898         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16899         (equal_mem_array_ref_p): Constrain size and max size properly.
16900         Compare the reverse flag.
16901
16902 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16903
16904         * ira.c (ira): Update regstat data if we deleted insns.
16905
16906 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16907
16908         PR rtl-optimization/68955
16909         PR rtl-optimization/64557
16910         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16911         here.  Fix up formatting.
16912         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16913
16914 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16915
16916         PR lto/69133
16917         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16918         assume that the node has body.
16919         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16920         check.
16921
16922 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16923
16924         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16925         thunks.
16926
16927 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16928
16929         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16930         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16931
16932 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16933             Martin Liska  <mliska@suse.cz>
16934             Michael Matz  <matz@suse.de>
16935
16936         * Makefile.in (OBJS): Add new source files.
16937         (GTFILES): Add hsa.c.
16938         * common.opt (disable_hsa): New variable.
16939         (-Whsa): New warning.
16940         * config.in (ENABLE_HSA): New.
16941         * configure.ac: Treat hsa differently from other accelerators.
16942         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16943         $enable_offloading.
16944         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16945         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16946         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16947         --with-hsa-kmt-lib.
16948         * doc/invoke.texi (-Whsa): Document.
16949         (hsa-gen-debug-stores): Likewise.
16950         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16951         to invoke offload compiler for hsa acclerator.
16952         * opts.c (common_handle_option): Determine whether HSA offloading
16953         should be performed.
16954         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16955         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16956         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16957         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16958         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16959         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16960         GF_OMP_FOR_KIND_GRID_LOOP.
16961         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16962         (pp_gimple_stmt_1): Likewise.
16963         * gimple-walk.c (walk_gimple_stmt): Likewise.
16964         * gimple.c (gimple_build_omp_grid_body): New function.
16965         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16966         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16967         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16968         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16969         GF_OMP_TEAMS_GRID_PHONY.
16970         (gimple_statement_omp_single_layout): Updated comments.
16971         (gimple_build_omp_grid_body): New function.
16972         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16973         (gimple_omp_for_grid_phony): New function.
16974         (gimple_omp_for_set_grid_phony): Likewise.
16975         (gimple_omp_parallel_grid_phony): Likewise.
16976         (gimple_omp_parallel_set_grid_phony): Likewise.
16977         (gimple_omp_teams_grid_phony): Likewise.
16978         (gimple_omp_teams_set_grid_phony): Likewise.
16979         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16980         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16981         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16982         (BUILT_IN_GOMP_TARGET): Updated type.
16983         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16984         (adjust_for_condition): New function.
16985         (get_omp_for_step_from_incr): Likewise.
16986         (extract_omp_for_data): Moved parts to adjust_for_condition and
16987         get_omp_for_step_from_incr.
16988         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16989         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16990         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16991         (scan_omp_parallel): Do not create child functions for phony
16992         constructs.
16993         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16994         (scan_omp_1_op): Checking assert we are not remapping to
16995         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16996         (parallel_needs_hsa_kernel_p): New function.
16997         (expand_parallel_call): Register apprpriate parallel child
16998         functions as HSA kernels.
16999         (grid_launch_attributes_trees): New type.
17000         (grid_attr_trees): New variable.
17001         (grid_create_kernel_launch_attr_types): New function.
17002         (grid_insert_store_range_dim): Likewise.
17003         (grid_get_kernel_launch_attributes): Likewise.
17004         (get_target_argument_identifier_1): Likewise.
17005         (get_target_argument_identifier): Likewise.
17006         (get_target_argument_value): Likewise.
17007         (push_target_argument_according_to_value): Likewise.
17008         (get_target_arguments): Likewise.
17009         (expand_omp_target): Call get_target_arguments instead of looking
17010         up for teams and thread limit.
17011         (grid_expand_omp_for_loop): New function.
17012         (grid_arg_decl_map): New type.
17013         (grid_remap_kernel_arg_accesses): New function.
17014         (grid_expand_target_kernel_body): New function.
17015         (expand_omp): Call it.
17016         (lower_omp_for): Do not emit phony constructs.
17017         (lower_omp_taskreg): Do not emit phony constructs but create for them
17018         a temporary variable receiver_decl.
17019         (lower_omp_taskreg): Do not emit phony constructs.
17020         (lower_omp_teams): Likewise.
17021         (lower_omp_grid_body): New function.
17022         (lower_omp_1): Call it.
17023         (grid_reg_assignment_to_local_var_p): New function.
17024         (grid_seq_only_contains_local_assignments): Likewise.
17025         (grid_find_single_omp_among_assignments_1): Likewise.
17026         (grid_find_single_omp_among_assignments): Likewise.
17027         (grid_find_ungridifiable_statement): Likewise.
17028         (grid_target_follows_gridifiable_pattern): Likewise.
17029         (grid_remap_prebody_decls): Likewise.
17030         (grid_copy_leading_local_assignments): Likewise.
17031         (grid_process_kernel_body_copy): Likewise.
17032         (grid_attempt_target_gridification): Likewise.
17033         (grid_gridify_all_targets_stmt): Likewise.
17034         (grid_gridify_all_targets): Likewise.
17035         (execute_lower_omp): Call grid_gridify_all_targets.
17036         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17037         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17038         (tree_omp_clause): Added union field dimension.
17039         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17040         * tree.c (omp_clause_num_ops): Added number of arguments of
17041         OMP_CLAUSE__GRIDDIM_.
17042         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17043         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17044         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17045         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17046         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17047         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17048         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17049         * tree-pass.h (make_pass_gen_hsail): Declare.
17050         (make_pass_ipa_hsa): Likewise.
17051         * ipa-hsa.c: New file.
17052         * lto-section-in.c (lto_section_name): Add hsa section name.
17053         * lto-streamer.h (lto_section_type): Add hsa section.
17054         * timevar.def (TV_IPA_HSA): New.
17055         * hsa-brig-format.h: New file.
17056         * hsa-brig.c: New file.
17057         * hsa-dump.c: Likewise.
17058         * hsa-gen.c: Likewise.
17059         * hsa.c: Likewise.
17060         * hsa.h: Likewise.
17061         * toplev.c (compile_file): Call hsa_output_brig.
17062         * hsa-regalloc.c: New file.
17063
17064 2016-01-18  Jeff Law  <law@redhat.com>
17065
17066         PR tree-optimization/69320
17067         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17068         ranged object, do nothing if the RHS constant is not [0..1].
17069         (optimize_stmt): Comparing a boolean ranged object against a
17070         constant outside [0..1] results in a compile-time constant.
17071
17072         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17073         test.
17074
17075 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
17076
17077         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17078         (Option Summary): Update to reflect new section and moved options.
17079         (C++ Dialect Options): Move -fstats to new section.
17080         (Debugging Options): Move all dump, statistics, and other GCC
17081         developer options to new section.  Rewrite section introduction
17082         and re-order remaining options to put the more basic ones first.
17083         (Optimization Options): Move -fira-verbose and -flto-report* to
17084         new section.
17085         (Developer Options): New section incorporating moved options.
17086         * doc/cppopts.texi (-dM): Update cross-reference.
17087
17088 2016-01-18  Richard Henderson  <rth@redhat.com>
17089
17090         PR target/69176
17091         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17092         operands to pseudo only if CSE is expected.  Split long immediate
17093         operands only after reload, and for the stack pointer.
17094         (*add<GPI>3_pluslong): Remove.
17095         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17096         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
17097         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17098         (*add<GPI>3 peepholes): New.
17099         (*add<GPI>3 splitters): New.
17100         * config/aarch64/constraints.md (Upl): New.
17101         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17102
17103 2016-01-18  Richard Biener  <rguenther@suse.de>
17104
17105         PR tree-optimization/69297
17106         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17107         stmt at most once.
17108         (vect_bb_vectorization_profitable_p): Clear visited flag again.
17109
17110 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17111
17112         PR middle-end/68542
17113         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17114         of mixind vector and scalar types.
17115         (fold_relational_const): Add handling of vector
17116         comparison with boolean result.
17117         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17118         comparison of vector operands with boolean result for EQ/NE only.
17119         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17120         (verify_gimple_cond): Likewise.
17121         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17122         valid type of VAL.
17123
17124 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
17125
17126         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17127         !TARGET_OCTEON.
17128
17129 2016-01-18  Richard Biener  <rguenther@suse.de>
17130
17131         PR middle-end/69308
17132         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17133
17134 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17135
17136         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17137
17138 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17139
17140         * omp-low.c (set_oacc_fn_attrib): Make extern.
17141         * omp-low.h (set_oacc_fn_attrib): Declare.
17142         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17143         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17144         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17145         Add and handle function parameter oacc_kernels_p.
17146         (find_reduc_addr, get_omp_data_i_param): New function.
17147         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17148         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17149         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17150         Calculate dominance info.  Skip loops that are not in a kernels region
17151         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
17152         (pass_parallelize_loops::execute): Call parallelize_loops with
17153         oacc_kernels_p argument.
17154         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17155         New member function.
17156         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17157         * passes.def: Add argument to pass_parallelize_loops instantation.
17158
17159 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17160
17161         * tree-parloops.c (pass_parallelize_loops::execute): Allow
17162         pass_parallelize_loops to be run outside the loop pipeline.
17163
17164 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17165
17166         * tree-scalar-evolution.c (follow_copies_to_constant): New.
17167         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17168
17169 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17170
17171         PR target/63679
17172         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17173         using get_ref_base_and_extent.
17174         (equal_mem_array_ref_p): New.
17175         (hashable_expr_equal_p): Add call to previous.
17176
17177 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17178
17179         PR target/63679
17180         * tree-sra.c (disqualified_constants, constant_decl_p): New.
17181         (sra_initialize): Allocate disqualified_constants.
17182         (sra_deinitialize): Free disqualified_constants.
17183         (disqualify_candidate): Update disqualified_constants when appropriate.
17184         (create_access): Scan for constant-pool entries as we go along.
17185         (scalarizable_type_p): Add check against type_contains_placeholder_p.
17186         (maybe_add_sra_candidate): Allow constant-pool entries.
17187         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17188         (initialize_constant_pool_replacements): New.
17189         (sra_modify_assign): Avoid mangling assignments created by previous,
17190         and don't generate writes into constant pool.
17191         (sra_modify_function_body): Call initialize_constant_pool_replacements.
17192
17193 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
17194
17195         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17196         andnot instruction.
17197         (scalar_chain::convert_op): Likewise.
17198         * config/i386/i386.md (*andndi3_doubleword): New.
17199
17200 2016-01-18  Richard Biener  <rguenther@suse.de>
17201
17202         PR tree-optimization/69170
17203         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17204         building a vector from scalar results of a pattern stmt.
17205
17206 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
17207
17208         * haifa-sched.c (autopref_multipass_init): Work around
17209         -Wmaybe-uninitialized warning.
17210
17211 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17212
17213         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17214         against the constant 0.
17215
17216 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17217
17218         PR tree-optimization/68799
17219         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17220         look up phi candidates in the statement-candidate map.
17221         (phi_add_costs): Likewise.
17222         (record_phi_increments): Likewise.
17223         (phi_incr_cost): Likewise.
17224         (ncd_with_phi): Likewise.
17225         (all_phi_incrs_profitable): Likewise.
17226
17227 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
17228
17229         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17230         -Wmaybe-uninitialized warning.
17231
17232 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
17233
17234         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17235         (Option Summary): Update to reflect new section and moved options.
17236         (C++ Dialect Options): Move -fvtable-verify and related options.
17237         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17238         and profiling-related options.
17239         (Optimization Options): Move profile generation options and
17240         -fstack-protector and related options.
17241         (Instrumentation Options): New section incorporating moved options.
17242         (Code Generation Options): Move -finstrument-functions and
17243         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17244
17245 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17246
17247         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17248
17249 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17250
17251         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
17252
17253 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
17254
17255         * hash-table.h (hash_table::empty): Turn into an inline wrapper
17256         that checks whether the table is already empty.  Rename the
17257         original implementation to...
17258         (hash_table::empty_slot): ...this new private function.
17259
17260 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
17261
17262         PR diagnostic/68899
17263         * diagnostic-show-locus.c (layout::print_source_line): Move x
17264         offset of line until after call to
17265         get_line_width_without_trailing_whitespace.
17266
17267 2016-01-15  Jeff Law  <law@redhat.com>
17268
17269         PR tree-optimization/69270
17270         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17271         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
17272         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17273         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17274         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17275         ssa_name_has_boolean_range and constant_boolean_node.
17276
17277 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17278
17279         PR rtl-optimization/69030
17280         * lra-spills.c (remove_pseudos): Check nrefs and make the function
17281         returning bool.
17282         (spill_pseudos): Delete debug insn for dead pseudo.
17283         (lra_spill): Initiate spill_hard_reg and slots memory separately.
17284
17285 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
17286
17287         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17288         New.
17289         (TYPES_UNOPUS): Likewise.
17290         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17291         builtin type, from UNOP to UNOPUS.
17292         (lbtruncuv4sf): Likewise.
17293         (lbtruncuv2df): Likewise.
17294         (lrounduv2sf): Likewise.
17295         (lrounduv4sf): Likewise.
17296         (lrounduv2df): Likewise.
17297         (lroundusf): Likewise.
17298         (lroundusf): Likewise.
17299         (lceiluv2sf): Likewise.
17300         (lceiluv4sf): Likewise.
17301         (lceiluv2df): Likewise.
17302         (lceilusf): Likewise.
17303         (lceiludf): Likewise.
17304         (lflooruv2sf): Likewise.
17305         (lflooruv4sf): Likewise.
17306         (lflooruv2df): Likewise.
17307         (lfloorusf): Likewise.
17308         (lfloorudf): Likewise.
17309         (lfrintnuv2sf): Likewise.
17310         (lfrintnuv4sf): Likewise.
17311         (lfrintnuv2df): Likewise.
17312         (lfrintnusf): Likewise.
17313         (lfrintnudf): Likewise.
17314         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
17315         conversion.
17316         (vcvtq_u32_f32): Likewise.
17317         (vcvtq_u64_f64): Likewise.
17318         (vcvta_u32_f32): Likewise.
17319         (vcvtaq_u32_f32): Likewise.
17320         (vcvtaq_u64_f64): Likewise.
17321         (vcvtm_u32_f32): Likewise.
17322         (vcvtmq_u32_f32): Likewise.
17323         (vcvtmq_u64_f64): Likewise.
17324         (vcvtn_u32_f32): Likwise.
17325         (vcvtnq_u32_f32): Likewise.
17326         (vcvtnq_u64_f64): Likewise.
17327         (vcvtp_u32_f32): Likewise.
17328         (vcvtpq_u32_f32): Likewise.
17329         (vcvtpq_u64_f64): Likewise.
17330         (vcvtmd_u64_f64): Likewise.
17331         (vcvtms_u32_f32): Likewise.
17332         (vcvtad_u64_f64): Likewise.
17333         (vcvtas_u32_f32): Likewise.
17334         (vcvtnd_u64_f64): Likewise.
17335         (vcvtns_u32_f32): Likewise.
17336         (vcvtpd_u64_f64): Likewise.
17337         (vcvtps_u32_f32): Likewise.
17338
17339 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17340
17341         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
17342         CSEL of zero_extended registers.
17343
17344 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17345
17346         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17347         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
17348
17349 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17350
17351         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
17352         false when argument string is not found in the attributes table
17353         at all.
17354
17355 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
17356
17357         PR target/68609
17358         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
17359         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
17360         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
17361         precision estimate.
17362
17363 2016-01-15  Richard Biener  <rguenther@suse.de>
17364
17365         PR tree-optimization/66856
17366         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
17367         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
17368         (vect_create_new_slp_node): Increment stmt reference count.
17369         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
17370         an SLP tree before swapping operands.
17371         (vect_build_slp_tree): Likewise.
17372         (destroy_bb_vec_info): Free stmt info after SLP instances.
17373         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
17374         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
17375         (STMT_VINFO_NUM_SLP_USES): New macro.
17376
17377 2016-01-15  Richard Biener  <rguenther@suse.de>
17378
17379         PR debug/69137
17380         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
17381         (add_linkage_name): ... here.
17382         (gen_typedef_die): Use add_linkage_name_raw instead of
17383         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
17384         if necessary.
17385
17386 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
17387
17388         * gimplify.c (oacc_default_clause): Decode reference and pointer
17389         types for both kernels and parallel regions.
17390
17391 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17392
17393         PR middle-end/69246
17394         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
17395
17396 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17397
17398         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
17399         (convert_scalars_to_vector): Likewise.
17400
17401 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
17402
17403         * doc/extend.texi (Type Traits): Fix grammar.
17404
17405 2016-01-15  Martin Jambor  <mjambor@suse.cz>
17406
17407         * tree-inline.c (remap_decl): Use existing dclarations if
17408         remapping a type and prevent_decl_creation_for_types.
17409         (replace_locals_stmt): Do an initial remapping of non-VLA typed
17410         decls first.  Do real remapping with
17411         prevent_decl_creation_for_types set.
17412         * tree-inline.h (copy_body_data): New field
17413         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
17414         padding.
17415
17416 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17417
17418         * config/s390/s390.opt (mmvcle): More verbose help text.
17419
17420 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17421
17422         * config/s390/s390.opt: Add period to -mzvector option text.
17423
17424 2016-01-15  Richard Biener  <rguenther@suse.de>
17425
17426         PR tree-optimization/68961
17427         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
17428         of invariants in stores again.
17429
17430 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17431
17432         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
17433
17434 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17435
17436         * config/i386/i386.c (ix86_expand_branch): Don't split
17437         DI mode xor instruction to SI mode.
17438
17439 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17440
17441         PR ipa/68148
17442         * ipa-icf.c (sem_function::merge): Virtual functions may become
17443         reachable even if they address is not taken and there are no
17444         idrect calls.
17445
17446 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17447
17448         * lto-streamer-out.c (subtract_estimated_size): New function.
17449         (get_symbol_initial_value): Use it.
17450
17451 2016-01-15  Christian Bruel  <christian.bruel@st.com>
17452
17453         PR target/65837
17454         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
17455         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
17456         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
17457         use add_builtin_function_ext_scope instead of add_builtin_function.
17458         (neon_set_p, neon_crypto_set_p): Remove.
17459         (arm_init_builtins): Always call arm_init_neon_builtins and
17460         arm_init_crypto_builtins.
17461         (arm_expand_builtin): Check that builtins are allowed for the arch.
17462         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
17463         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
17464         arm_init_neon_builtins call.
17465
17466 2016-01-15  Richard Biener  <rguenther@suse.de>
17467
17468         PR tree-optimization/69117
17469         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
17470         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
17471         of the leader conservatively.
17472         (free_scc_vn): Restore original SSA name infos.
17473
17474 2016-01-14  Jeff Law  <law@redhat.com>
17475
17476         PR tree-optimization/69270
17477         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
17478         single bit of precision, verify it's also unsigned.
17479         (record_edge_info): Use constant_boolean_node rather than fold_convert
17480         to convert boolean_true/boolean_false to the right type.
17481
17482 2016-01-14  Richard Henderson  <rth@redhat.com>
17483
17484         PR rtl-opt/69014
17485         * loop-doloop.c (record_reg_sets): New.
17486         (doloop_optimize): Reject the transform if the sequence
17487         clobbers registers live at the end of the loop block.
17488         (doloop_optimize_loops): Enable df_live if needed.
17489
17490 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17491
17492         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
17493         * config/rs6000/rs6000.c: Likewise.
17494         * config/rs6000/rs6000.h: Likewise.
17495         * config/rs6000/rs6000.md: Likewise.
17496         * doc/extend.texi: Likewsie.
17497
17498 2016-01-14  Jeff Law  <law@redhat.com>
17499
17500         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
17501         typo.
17502
17503 2016-01-14  Richard Henderson  <rth@redhat.com>
17504
17505         PR c/69272
17506         PR tree-opt/68964
17507         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
17508         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
17509         instead of builtin_decl_declared_p to test for declaration.
17510
17511 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
17512
17513         * doc/loop.texi (Loop Analysis and Representation): Document
17514         loop_depth function.
17515
17516 2016-01-14  Tom de Vries  <tom@codesourcery.com>
17517
17518         PR tree-optimization/68773
17519         * omp-low.c (expand_omp_target): Don't set force_output.
17520         * varpool.c (varpool_node::get_create): Same.
17521         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
17522         offload_funcs with force_output.
17523
17524 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17525
17526         PR debug/69244
17527         * lra-eliminations.c (move_plus_up): Don't change anything if either
17528         the outer or inner subreg mode is not MODE_INT.
17529         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
17530         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
17531
17532 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
17533
17534         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
17535         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
17536         reduc_uplus_@var{m}): Remove.
17537         * expr.c (expand_expr_real_2): Remove expansion path for
17538         reduc_[us](min|max|plus) optabs.
17539         * optabs-tree.c (scalar_reduc_to_vector): Remove.
17540         * optabs-tree.h (scalar_reduc_to_vector): Remove.
17541         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
17542         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
17543         * tree-vect-loop.c (vectorizable_reduction): Remove test for
17544         reduc_[us](min|max|plus) optabs.
17545
17546 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
17547
17548         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
17549         (reduc_plus_scal_v2sf): New.
17550         (reduc_smax_v2sf): Rename to...
17551         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
17552         (reduc_smin_v2sf): Rename to...
17553         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
17554
17555 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
17556
17557         * alias.c (compare_base_symbol_refs): New function.
17558         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
17559         it.
17560
17561 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17562
17563         PR middle-end/68146
17564         PR tree-optimization/69155
17565         * tree-complex.c: Include cfganal.h.
17566         (phis_to_revisit): New variable.
17567         (extract_component): Add phiarg_p argument.  Assert that returned
17568         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
17569         (update_phi_components): Partly rewrite to use loop over real/imag
17570         components instead of code duplication.  If extract_component returns
17571         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
17572         create_tmp_reg into the PHI node instead, and mention the phi triplet
17573         in phis_to_revisit.
17574         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
17575         in phis_to_revisit at the end.
17576
17577 2016-01-14  Richard Biener  <rguenther@suse.de>
17578
17579         PR tree-optimization/68060
17580         * tree-vect-loop.c (vect_is_simple_reduction): Check the
17581         outer loop reduction is only used in the inner loop before
17582         detecting a double reduction.
17583
17584 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
17585
17586         PR target/68269
17587         * combine.c (expand_field_assignment): Punt if compute_mode is
17588         unsupported scalar mode.
17589
17590 2016-01-14  Richard Biener  <rguenther@suse.de>
17591
17592         PR tree-optimization/66856
17593         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
17594         SLP node only if it built successfully.
17595         (vect_analyze_slp_instance): Adjust.
17596
17597 2016-01-14  Jeff Law  <law@redhat.com>
17598
17599         PR tree-optimization/69270
17600         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
17601         (record_edge_info): Use it.  Convert boolean_{true,false}_node
17602         to the type of op0.
17603
17604 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
17605
17606         PR ipa/66487
17607         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
17608         use block_ultimate_origin
17609         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
17610
17611 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17612
17613         * doc/invoke.texi (Submodel Options): Rename section to
17614         "Machine-Dependent Options" to better reflect its content.
17615         Rewrite introductory text to remove archaic CPU names.
17616         Update references.
17617
17618 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
17619
17620         * doc/invoke.texi (Code Gen Options): Move section up in file,
17621         before target-specific options.  Update menu and option summary
17622         to reflect the new section ordering.
17623
17624 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17625
17626         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
17627         (C++ Dialect Options): Add cross-reference to -std option.
17628         * doc/standards.texi (C++ Language): Document C++14 support.
17629
17630 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17631
17632         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
17633         for pack/unpack functions for __ibm128.
17634         (PACK_IF): Likewise.
17635         (UNPACK_IF): Likewise.
17636
17637         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17638         support for __ibm128 pack/unpack functions.
17639         (rs6000_invalid_builtin): Likewise.
17640         (rs6000_init_builtins): Likewise.
17641         (rs6000_opt_masks): Likewise.
17642
17643         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
17644         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
17645         functions
17646         (RS6000_BTM_COMMON): Likewise.
17647
17648         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
17649         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
17650         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
17651         128-bit floating point.  Add support for the double values to be
17652         in Altivec registers for TF/IF packing and unpacking, but restrict
17653         TD packing sub-fields to be FPR registers.  Don't allow overlapped
17654         register support for packing.  Allow pack inputs to be memory
17655         locations.  Don't build generator functions for unpack<mode>_dm
17656         and unpack<mode>_nodm.
17657         (unpack<mode>_dm): Likewise.
17658         (unpack<mode>_nodm): Likewise.
17659         (pack<mode>): Likewise.
17660
17661         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
17662         built-in functions to pack/unpack explicit __ibm128 values.
17663         (__builtin_unpack_ibm128): Likewise.
17664
17665         * doc/extend.texi (PowerPC Built-in Functions): Document
17666         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
17667
17668 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
17669
17670         PR c/66208
17671         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
17672         Add new arg loc and pass it down as context.
17673         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
17674         to the location to use for the warning.
17675         (check_function_arguments): New arg loc.  All callers changed.  Pass
17676         it to check_function_nonnull.
17677         * c-common.h (check_function_arguments): Adjust declaration.
17678
17679 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
17680
17681         PR tree-optimization/69156
17682         * gimple.c (validate_type): Removed.
17683         (gimple_builtin_call_types_compatible_p): Use
17684         useless_type_conversion_p instead of validate_type.
17685         * value-prof.c (gimple_stringop_fixed_value): Fold
17686         icall_size to correct type.
17687
17688 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
17689
17690         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
17691         effects.
17692
17693 2016-01-13  Richard Henderson  <rth@redhat.com>
17694
17695         PR tree-opt/68964
17696         * target.def (builtin_tm_load, builtin_tm_store): Remove.
17697         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
17698         (ix86_builtin_tm_store): Remove.
17699         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17700         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17701         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17702         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17703         * doc/tm.texi: Rebuild.
17704
17705         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
17706         (BUILT_IN_TM_MEMCPY_RTWN): New.
17707         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17708         fallback from vector to integer helpers.
17709         (build_tm_load): Handle vector types directly, instead of
17710         via target hook.
17711         (build_tm_store): Likewise.
17712         (expand_assign_tm): Prepare for register types not handled by
17713         the above.  Copy them to memory and use memcpy.
17714         * tree.c (tm_define_builtin): New.
17715         (find_tm_vector_type): New.
17716         (build_tm_vector_builtins): New.
17717         (build_common_builtin_nodes): Call it.
17718
17719 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
17720
17721         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17722         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
17723
17724 2016-01-13  Tom de Vries  <tom@codesourcery.com>
17725
17726         PR tree-optimization/69169
17727         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17728         handled_struct_type param.
17729         (create_variable_info_for, intra_create_variable_infos): Call
17730         create_variable_info_for_1 with extra arg.
17731
17732 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
17733
17734         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17735         and "armv8.1-a+crc" entries.
17736
17737 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
17738
17739         PR target/69228
17740         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17741         Change first operand predicate from register_or_constm1_operand
17742         to register_operand.
17743         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17744         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17745         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17746         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17747         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17748         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17749         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17750         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17751         comparison with constm1_rtx from vec_prefetch_gen part.
17752
17753 2016-01-13  Richard Biener  <rguenther@suse.de>
17754
17755         PR tree-optimization/69013
17756         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17757         Exchange assert for a test.
17758
17759 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17760
17761         PR target/69247
17762         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17763
17764 2016-01-13  Richard Biener  <rguenther@suse.de>
17765
17766         PR tree-optimization/69242
17767         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17768         assert with a check.
17769
17770 2016-01-13  Richard Biener  <rguenther@suse.de>
17771
17772         PR tree-optimization/69186
17773         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17774         Properly guard vect_update_misalignment_for_peel call.
17775
17776 2016-01-12  Jeff Law  <law@redhat.com>
17777
17778         PR tree-optimization/pr67755
17779         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17780         "need_profile_correction".
17781         (thread_block_1): Initialize new field to false by default.  If we
17782         have multiple thread paths through a common joiner to different
17783         final targets, then set new field to true.
17784         (compute_path_counts): Only do count adjustment when it's really
17785         needed.
17786
17787 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17788
17789         * doc/invoke.texi (Spec Files): Move section down in file, past
17790         all command-line option descriptions.
17791
17792 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17793
17794         PR middle-end/54809
17795         * doc/gty.texi: Remove documentation of mark_hook.
17796         * gengtype.c (struct write_types_data): Remove code to support
17797         mark_hook attribute.
17798         (walk_type): Likewise.
17799         (write_func_for_structure): Likewise.
17800
17801 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17802
17803         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17804         Directory Options, and -specs= to Overall Options.
17805         (Overall Options): Adjust similarly.  Reorder to group related
17806         options together.  Make -specs= cross-reference the spec file details.
17807         (Directory Options): Adjust similarly.
17808
17809 2016-01-12  Jeff Law  <law@redhat.com>
17810
17811         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17812
17813 2016-01-12  Olivier Hainque  <hainque@adacore.com>
17814
17815         * gcc.c (spec_undefvar_allowed): New global.
17816         (process_command): Set to true when running for --version or --help,
17817         alone or together.
17818         (getenv_spec_function): When the variable is not defined, use the
17819         variable name as the variable value if we're allowed not to issue
17820         a fatal error.
17821
17822 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
17823
17824         PR tree-optimization/68911
17825         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
17826         information computed for expression "init + nit * step".
17827
17828 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17829
17830         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
17831         about name of GCC executable.  Remove deleted node from menu.
17832         (Directory Options) <-B>: Remove cross-reference to deleted node.
17833         (Target Options): Delete section.
17834
17835 2016-01-12  Christian Bruel  <christian.bruel@st.com>
17836
17837         PR target/69180
17838         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
17839         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
17840
17841 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
17842
17843         PR target/69198
17844         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
17845         aligned_mem is properly set for AVX512-VL floating point masked
17846         stores.
17847
17848         PR target/69175
17849         * ifcvt.c (cond_exec_process_if_block): When removing the last
17850         insn from then_bb, remove also any possible barriers that follow it.
17851
17852 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17853
17854         PR target/68456
17855         PR target/69226
17856         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17857         (PTRDIFF_TYPE): Likewise.
17858         (WCHAR_TYPE): Likewise.
17859         (WCHAR_TYPE_SIZE): Likewise.
17860         (STDINT_LONG32): Likewise.
17861
17862 2016-01-12  Richard Biener  <rguenther@suse.de>
17863
17864         PR tree-optimization/69053
17865         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17866         convert initial value for cond reductions.
17867
17868 2016-01-12  Richard Biener  <rguenther@suse.de>
17869
17870         PR tree-optimization/69007
17871         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17872         widen_sum after dot_prod and sad.
17873
17874 2016-01-12  Richard Biener  <rguenther@suse.de>
17875
17876         PR tree-optimization/69168
17877         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17878         pattern stmt SLP type.
17879         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17880         end up unused so cope with that case.
17881
17882 2016-01-12  Richard Biener  <rguenther@suse.de>
17883
17884         PR tree-optimization/69157
17885         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17886         stmts def type only during analyze phase.
17887         (vectorizable_call): Likewise.
17888         (vectorizable_simd_clone_call): Likewise.
17889         (vectorizable_conversion): Likewise.
17890         (vectorizable_assignment): Likewise.
17891         (vectorizable_shift): Likewise.
17892         (vectorizable_operation): Likewise.
17893         (vectorizable_store): Likewise.
17894         (vectorizable_load): Likewise.
17895
17896 2016-01-12  Richard Biener  <rguenther@suse.de>
17897
17898         PR tree-optimization/69174
17899         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17900         space.
17901         (vectorizable_load): Properly compute the number of loads needed
17902         for permuted strided SLP loads and do not spuriously assign
17903         to SLP_TREE_VEC_STMTS.
17904
17905 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17906
17907         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17908         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17909         (MD_EXEC_PREFIX): Remove.
17910         (MD_STARTFILE_PREFIX) Removee.
17911         (FILE_NAME_ABSOLUTE_P): Remove.
17912         (CPP_SPEC): Do not read macros from sys/version.h.
17913         (LINK_COMMAND_SPEC): Remove.
17914         (LOCAL_INCLUDE_DIR): Remove.
17915         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17916         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17917         (POST_LINK_SPEC): Define to invoke stubify after linker
17918         (LIBSTDCXX): Remove define
17919         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17920         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17921         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17922         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17923         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17924         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17925         (i386_djgpp_asm_named_section): Add propotype of new procedure
17926
17927         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17928         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17929         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17930         in config/i386/djgpp.h).
17931         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17932         STANDARD_STARTFILE_PREFIX_1.
17933         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17934         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17935         installation errors.
17936         (MAX_OFILE_ALIGNMENT): Define to 128.
17937         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17938
17939         * config/i386/djgpp.c: New file. Add implementation of
17940         i386_djgpp_asm_named_section.
17941
17942         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17943
17944         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17945         Add rule for building djgpp.o.
17946
17947 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17948
17949         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17950         (rtx_is_swappable_p): Reductions are swappable.
17951         (insn_is_swappable_p): V2DF reductions are swappable.
17952
17953 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17954
17955         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17956         reloads for other unsupported memory operands.
17957
17958 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17959             Jim Wilson  <jim.wilson@linaro.org>
17960
17961         PR target/69194
17962         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17963         copy_to_mode_reg instead of force_reg.
17964
17965 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17966
17967         PR target/69225
17968         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17969         TARGET_80387 is true.
17970
17971 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17972
17973         PR target/69071
17974         * lra-eliminations.c (move_plus_up): Only move plus up
17975         if subreg of the constant can be simplified into constant
17976         and use the simplified subreg of the constant instead of
17977         the original constant.
17978
17979         * fold-const.c (fold_convertible_p): Don't return true
17980         for conversion of VECTOR_TYPE to same sized integral type.
17981         (fold_convert_loc): Fix up formatting.  Fold conversion of
17982         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17983         instead of NOP_EXPR.
17984
17985         PR tree-optimization/69214
17986         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17987         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17988         Formatting fix.
17989
17990         PR tree-optimization/69207
17991         * tree-vect-slp.c (vect_get_constant_vectors): For
17992         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17993         fold_convertible_p to vector_type's element type, and always
17994         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17995
17996 2016-01-11  Richard Biener  <rguenther@suse.de>
17997
17998         PR tree-optimization/69173
17999         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18000         fixup the cycle if all stmts are in a pattern.
18001
18002 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
18003
18004         PR middle-end/68999
18005         * alias.c (base_alias_check): Move check for addresses with
18006         alignment ANDs before the call for compare_base_decls.
18007         (memrefs_conflict_p): Return -1 for different decls
18008         that went through alignment adjustments.
18009
18010 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18011
18012         PR rtl-optimization/68796
18013         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18014         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18015         and QImode comparisons against zero with CC_NZmode.
18016         * config/aarch64/iterators.md (short_mask): New mode_attr.
18017
18018 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18019
18020         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18021         (<avx512>_store<mode>_mask): Likewise.
18022
18023 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
18024             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18025
18026         PR rtl-optimization/68841
18027         * ifcvt.c (struct noce_if_info): Add orig_x field.
18028         (bbs_ok_for_cmove_arith): Add to_rename parameter.
18029         Don't record conflicts on to_rename if it's present.
18030         Allow memory destinations in sets.
18031         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18032         blocks, passing orig_x to the checks.
18033         (noce_process_if_block): Set if_info->orig_x appropriately.
18034
18035 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18036
18037         PR tree-optimization/69069
18038         * tree-parloops.c (create_parallel_loop): Add missing phi args.
18039
18040 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18041
18042         PR rtl-optimization/68920
18043         * config/i386/i386.c (ix86_option_override_internal): Restrict number
18044         of conditional moves for  RTL if-conversion to 1 for
18045         TARGET_ONE_IF_CONV_INSN.
18046         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18047         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18048         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18049         parameter to restirct number of conditional moves for
18050         RTL if-conversion.
18051         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18052         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18053         conditionl moves.
18054
18055 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
18056
18057         PR bootstrap/69123
18058         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18059         onepart vars.  Fix typo in comment.  Fix reversed condition in
18060         unshare test.
18061         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18062
18063         PR bootstrap/69123
18064         * var-tracking.c (dump_onepart_variable_differences): New.
18065         (dataflow_set_different): If a detailed dump is requested,
18066         delay early returns and dump differences between onepart
18067         variables present before and after, and added variables.
18068
18069 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18070
18071         PR target/69010
18072         * expr.c (expand_expr_real_1): For boolean vector constants
18073         with a scalar mode use const_scalar_mask_from_tree.
18074         (const_scalar_mask_from_tree): New.
18075         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18076         assigned to a mask type to handle constants.
18077
18078 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18079
18080         PR ipa/69044
18081         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18082         useless parameters if we cannot change function signature.
18083
18084 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18085
18086         PR ipa/66616
18087         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18088         flag.
18089
18090 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18091
18092         PR tree-optimization/69109
18093         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18094         latch with phi.
18095
18096 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18097
18098         PR tree-optimization/69108
18099         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18100         res is not used in a phi.
18101
18102 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
18103
18104         PR 67425
18105         * common.opt (frandom-seed): Fix parameter name.
18106         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18107
18108 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18109
18110         PR tree-optimization/69058
18111         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18112         not supported.
18113
18114 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
18115
18116         * config/arc/arc.opt (mdiv-rem): Add period to the end.
18117         (mcode-density): Likewise.
18118
18119 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18120
18121         PR tree-optimization/69062
18122         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18123         (parallelize_loops): Don't paralelize loop that has phi with address
18124         arg.
18125
18126 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18127
18128         PR tree-optimization/69039
18129         * tree-parloops.c (try_create_reduction_list): Only allow single exit
18130         phi for reduction.
18131
18132 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
18133
18134         PR middle-end/68743
18135         * match.pd: Require target has function_c99_misc before doing
18136         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18137
18138 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
18139
18140         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18141         use GMPINC.
18142         * configure: Regenerate.
18143
18144 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
18145
18146         PR middle-end/50865
18147         PR tree-optimization/69097
18148         * fold-const.h (expr_not_equal_to): New prototype.
18149         * fold-const.c: Include stringpool.h and tree-ssanames.h.
18150         (expr_not_equal_to): New function.
18151         * match.pd (X % -Y is the same as X % Y): Don't optimize
18152         unless X is known not to be equal to minimum or Y is known
18153         not to be equal to -1.
18154         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18155         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18156         (simplify_stmt_using_ranges): Adjust caller.
18157         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18158         substitute_and_fold.
18159
18160 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
18161
18162         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18163         w/o DECL_NAME.
18164
18165 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18166
18167         PR tree-optimization/69167
18168         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18169         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18170         ops[0] comparison.
18171         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18172
18173 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18174             Richard Biener  <rguenther@suse.de>
18175
18176         PR tree-optimization/68707
18177         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18178         instances that can be handled via vect_load_lanes.
18179
18180 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
18181
18182         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18183         if we can't determine address equivalence.
18184         * alias.c (compare_base_decl): Update for changed return value of
18185         symtab_node::equal_address_to.
18186
18187 2016-01-08  Jason Merrill  <jason@redhat.com>
18188
18189         PR c++/68983
18190         PR c++/67557
18191         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18192         * expr.c (store_field): Not here.
18193         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18194         call with TREE_ADDRESSABLE type.
18195         * tree-cfg.c (verify_gimple_call): Adjust.
18196
18197 2016-01-08  Olivier Hainque  <hainque@adacore.com>
18198
18199         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18200         libc_internal.
18201
18202 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18203
18204         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18205         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18206         (reduc_smin_v2sf): Rename to...
18207         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18208         (reduc_splus_v2sf): Rename to...
18209         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18210
18211 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18212
18213         PR tree-optimization/69162
18214         * gimplify.c (gimplify_va_arg_expr): Encode original type of
18215         valist argument in another argument.
18216         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
18217         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18218         to determine the va_list type, build a MEM_REF instead of
18219         build_fold_indirect_ref.
18220
18221         PR tree-optimization/69172
18222         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18223         gimple_build.
18224
18225 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18226
18227         PR tree-optimization/67781
18228         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18229         and cmpnop in two steps: first the ones not accessed in original
18230         gimple expression in a endian independent way and then the ones not
18231         accessed in the final result in an endian-specific way.
18232
18233 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18234
18235         PR tree-optimization/69083
18236         * tree-vect-slp.c (vect_get_constant_vectors): For
18237         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18238         element type.  If op is fold_convertible_p to vector_type's element
18239         type, use NOP_EXPR instead of VCE.
18240
18241 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
18242
18243         PR rtl-optimization/67778
18244         PR rtl-optimization/68634
18245         PR rtl-optimization/68909
18246         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
18247         block from the stack until done with it.  Remove a superfluous
18248         bitmap set.  Remove a superfluous bitmap test.
18249
18250 2016-01-07  Martin Sebor  <msebor@redhat.com>
18251
18252         PR c/68966
18253         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18254         constraint on the type of arguments.
18255
18256 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
18257
18258         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18259         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18260         unaligned_access on the gcc_options set.
18261         * config/arm/arm.c (arm_option_override_internal): Use
18262         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18263
18264 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18265
18266         PR target/69140
18267         * config/i386/i386.c (ix86_frame_pointer_required): Enable
18268         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18269
18270 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18271
18272         Revert
18273         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18274
18275         PR target/69140
18276         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18277         depending on frame_pointer_needed before remaining integer and SSE
18278         registers are saved.
18279
18280 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18281
18282         PR 1078
18283         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18284
18285 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
18286
18287         PR target/69171
18288         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18289         Use the "xBm" constraint.
18290         (float<sseintvecmodelower><mode>2<mask_name><round_name):
18291         Likewise.
18292         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18293         (sse_cvtsi2ssq<round_name>): Likewise.
18294         (sse_cvtss2si<round_name>): Likewise.
18295         (sse_cvtss2siq<round_name>): Likewise.
18296         (sse2_cvtsi2sdq<round_name>): Likewise.
18297         (sse2_cvtsd2si<round_name>): Likewise.
18298         (sse2_cvtsd2siq<round_name>): Likewise.
18299         * config/i386/subst.md (round_nimm_scalar_predicate): New
18300         predicate.
18301
18302 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
18303
18304         PR middle-end/67639
18305         * varasm.c (make_decl_rtl): Mark invalid register vars as
18306         DECL_EXTERNAL.
18307
18308         PR rtl-optimization/66206
18309         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
18310         All callers changed.
18311
18312 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
18313
18314         PR tree-optimization/69141
18315         * tree-ssa-pre.c: Include langhooks.h.
18316         (eliminate_dom_walker::before_dom_children): Use
18317         lang_hooks.decl_printable_name instead of
18318         cgraph_node::get ()->name ().
18319
18320         PR middle-end/68960
18321         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
18322         it and DECL_ALIGN too.
18323
18324 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
18325
18326         * config/mips/mips-ftypes.def: Sort to lexicographical order.
18327
18328 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18329
18330         PR target/69140
18331         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18332         depending on frame_pointer_needed before remaining integer and SSE
18333         registers are saved.
18334
18335 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18336
18337         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
18338         mode iterator with VSX_M2.
18339         (*p9_vecstore_<mode>): Likewise.
18340         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
18341         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
18342         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
18343         (define_split for VSX_LE128 stores): Likewise.
18344         (define_peephole2 for TImode LE swaps): Likewise.
18345         (define_split for VSX_LE128 post-reload stores): Likewise.
18346
18347 2016-01-06  Marek Polacek  <polacek@redhat.com>
18348
18349         PR sanitizer/69099
18350         * convert.c (convert_to_integer_1): Adjust call to
18351         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
18352         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
18353         EXPR instead of ARG.
18354         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
18355
18356 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18357
18358         PR 1078
18359         * doc/extend.texi (RL78 Variable Attributes): New section.
18360
18361 2016-01-05  Marek Polacek  <polacek@redhat.com>
18362
18363         PR c/69104
18364         * builtins.c (get_memmodel): Use expansion point location rather than
18365         the input location.  Call warning_at rather than warning.
18366         (expand_builtin_atomic_compare_exchange): Likewise.
18367         (expand_builtin_atomic_load): Likewise.
18368         (expand_builtin_atomic_store): Likewise.
18369         (expand_builtin_atomic_clear): Likewise.
18370
18371 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18372
18373         PR target/68991
18374         * config/i386/i386.c (ix86_expand_vector_logical_operator):
18375         Replace nonimmediate_operand with vector_operand.
18376         * config/i386/predicates.md (vector_operand): New predicate.
18377         (general_vector_operand): Replace nonimmediate_operand with
18378         vector_operand.
18379         * config/i386/sse.md: Replace nonimmediate_operand with
18380         vector_operand and m constraint with Bm constraint on SSE
18381         patterns with 16-byte memory operand.
18382         * config/i386/subst.md (round_nimm_predicate): Replace
18383         nonimmediate_operand with vector_operand.
18384         (round_saeonly_nimm_predicate): Likewise.
18385         (round_saeonly_nimm_scalar_predicate): New.
18386
18387 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18388
18389         PR target/68991
18390         * config/i386/constraints.md (Bm): New constraint.
18391         * config/i386/predicates.md (vector_memory_operand): New
18392         predicate.
18393         * config/i386/sse.md: Replace xm with xBm in plusminus and
18394         any_logic patterns.
18395
18396 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18397
18398         PR 1078
18399         * doc/extend.texi (V850 Function Attributes): New section.
18400         (V850 Variable Attributes): New section.
18401
18402 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18403
18404         PR 1078
18405         * doc/extend.texi (MicroBlaze Function Attributes): Document
18406         interrupt_handler and fast_interrupt attributes.
18407
18408 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
18409
18410         PR other/60465
18411         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
18412         for local symbolic operands.
18413         * config/ia64/predicates.md (local_symbolic_operand64): New
18414         predicate.
18415
18416 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18417
18418         PR rtl-optimization/68651
18419         * combine.c (combine_simplify_rtx): Canonicalize x + x into
18420         x << 1.
18421
18422 2016-01-05  Nathan Sidwell  <nathan@acm.org>
18423
18424         * alias.c (compare_base_decls): Use symtab_node::get.
18425
18426 2016-01-05  Nick Clifton  <nickc@redhat.com>
18427
18428         PR target/68770
18429         * ira-costs.c (copy_cost): Initialise the t_icode field of the
18430         secondary_reload_info structure.
18431
18432         PR target/66655
18433         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
18434         decls if weak support is available.
18435
18436 2016-01-04  Martin Sebor  <msebor@redhat.com>
18437
18438         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
18439
18440 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
18441
18442         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18443         OPTION_MASK_P9_DFORM.
18444
18445         * config/rs6000/constraints.md (wo constraint): New constraint for
18446         ISA 3.0 (power9).
18447
18448         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
18449         for wo constraint.
18450         (rs6000_init_hard_regno_mode_ok): Likewise.
18451
18452         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
18453         wo constraint.
18454
18455         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
18456         expanders not to have constraints.  Add support for ISA 3.0 xxperm
18457         instruction.  Add support for fusing xxlor with xxperm.
18458         (altivec_vperm_<mode>_internal): Likewise.
18459         (altivec_vperm_v8hiv16qi): Likewise.
18460         (altivec_vperm_<mode>v16q): Likewise.
18461         (altivec_vperm_<mode>_uns): Likewise.
18462         (vperm_v8hiv4si): Likewise.
18463         (vperm_v16qiv8hi): Likewise.
18464
18465         * doc/md.texi (RS/6000 constraints): Document wo constraint.
18466
18467 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
18468
18469         Update copyright years.
18470
18471         * gcc.c (process_command): Update copyright notice dates.
18472         * gcov-dump.c (print_version): Ditto.
18473         * gcov.c (print_version): Ditto.
18474         * gcov-tool.c (print_version): Ditto.
18475         * gengtype.c (create_file): Ditto.
18476         * doc/cpp.texi: Bump @copying's copyright year.
18477         * doc/cppinternals.texi: Ditto.
18478         * doc/gcc.texi: Ditto.
18479         * doc/gccint.texi: Ditto.
18480         * doc/gcov.texi: Ditto.
18481         * doc/install.texi: Ditto.
18482         * doc/invoke.texi: Ditto.
18483
18484 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18485
18486         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
18487         modes larger than TImode as TImode if NEON is not enabled.
18488
18489 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18490
18491         PR target/69100
18492         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
18493         mode for %f0-%f31 only if TARGET_FPU.
18494
18495 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
18496
18497         PR target/69072
18498         * config/sparc/sparc.c (scan_record_type): Take into account subfields
18499         to compute the PACKED_P predicate.
18500         (function_arg_record_value): Minor tweaks.
18501
18502 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18503
18504         * doc/install.texi (--with-multilib-list): Describe the meaning of the
18505         option for arm*-*-* targets.
18506
18507 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18508
18509         * doc/extend.texi (Common Function Attributes): Move docs for
18510         MSP430-specific attributes to....
18511         (MSP430 Function Attributes): ...here.  Delete the redundant
18512         entries and copy-edit the remaining text.
18513         (MSP430 Variable Attributes): Use uniform format for index
18514         entries and add a cross-reference to the corresponding function
18515         attribute docs.
18516
18517 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
18518
18519         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
18520         -finite-math typo.
18521         (x86 Options): Likewise.
18522
18523 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
18524
18525         PR 1078
18526
18527         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
18528         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
18529         to corresponding attribute.
18530
18531 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
18532
18533         * doc/extend.texi (Common Function Attributes) <noplt>: Move
18534         to correct alphabetization of table.  Copy-edit and correct
18535         markup.
18536         <stack_protect>: Likewise.
18537         <target_clones>: Likewise.
18538         <simd>: Likewise.
18539         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
18540         Correct punctuation.
18541         (Code Gen Options) <-fno-plt>: Copy-edit.
18542
18543 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18544
18545         PR target/68917
18546         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
18547         SI values.  Explicitly convert SI to DI and vice-versa.
18548
18549 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
18550
18551         PR tree-optimization/69070
18552         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
18553         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
18554
18555         PR sanitizer/69055
18556         * ubsan.c (ubsan_instrument_float_cast): Call
18557         initialize_sanitizer_builtins.
18558
18559         PR target/69015
18560         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
18561 \f
18562 Copyright (C) 2016 Free Software Foundation, Inc.
18563
18564 Copying and distribution of this file, with or without modification,
18565 are permitted in any medium without royalty provided the copyright
18566 notice and this notice are preserved.