[RS6000] Delete duplicate code
[official-gcc.git] / gcc / ChangeLog
blobfc1fe6af9598c86b9df5e7093043f16ee25c3e24
1 2016-08-03  Alan Modra  <amodra@gmail.com>
3         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4         Delete duplicated code.
6 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
8         PR middle-end/72778
9         * lra-spills.c (regno_in_use_p): New.
10         (lra_final_code_change): Use it.
12 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
14         PR rtl-optimization/69847
15         * lra-int.h (struct lra-reg): Use restore_rtx instead of
16         restore_regno.
17         (lra_rtx_hash): New.
18         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
19         of restore_regno.
20         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
21         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
22         * lra-spills.c (lra_final_code_change): Don't delete insn when the
23         next insn is USE with the same reg as the current insn source.
24         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
25         of restore_regno.
26         (lra_constraints_init): Call initiate_invariants.
27         (lra_constraints_finish): Call finish_invariants.
28         (struct invariant, invariant_t, invariant_ptr_t): New.
29         (const_invariant_ptr_t, invariants, invariants_pool): New.
30         (invariant_table, invariant_hash, invariant_eq_p): New.
31         (insert_invariant, initiate_invariants, finish_invariants): New.
32         (clear_invariants, invalid_invariant_regs): New.
33         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
34         instead of restore_regno.
35         (invariant_p, process_invariant_for_inheritance): New.
36         (inherit_in_ebb): Implement invariant inheritance.
37         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
38         (remove_inheritance_pseudos): Implement undoing invariant
39         inheritance.
40         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
41         instead of restore_regno.
42         * lra-assigns.c (regno_live_length): New.
43         (reload_pseudo_compare_func): Use regno_live_length.
44         (assign_by_spills): Use restore_rtx instead of restore_regno.
45         (lra_assign): Ditto.  Initiate regno_live_length.
47 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
49         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
50         __builtin_aarch64_fmindf.
52 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
54         PR tree-optimization/34114
55         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
56         information for more control IVs.
58 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
60         PR tree-optimization/34114
61         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
62         PLUS_EXPR case.  Handle SSA_NAME case.
64 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
66         * config/aarch64/aarch64-simd-builtins.def
67         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
68         (__builtin_aarch64_fmaxdf): Likewise.
69         (__builtin_aarch64_smin_nandf): Likewise.
70         (__builtin_aarch64_smax_nandf): Likewise.
71         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
72         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
73         (<fmaxmin><mode>3): ...this.
74         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
75         (vminnm_f64): Likewise.
76         (vmin_f64): Likewise.
77         (vmax_f64): Likewise.
78         * config/aarch64/iterators.md (FMAXMIN): Merge with...
79         (FMAXMIN_UNS): ...this.
80         (fmaxmin): Merged with
81         (fmaxmin_op): ...this...
82         (maxmin_uns_op): ...in to this.
84 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
86         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
87         Add support for vec_extract on vector float, vector int, vector
88         short, and vector char vector types.
89         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
90         vector float, vector int, vector short, and vector char
91         optimizations on 64-bit ISA 2.07 systems for both constant and
92         variable element numbers.
93         (rs6000_split_vec_extract_var): Likewise.
94         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
95         Altivec registers on ISA 2.07 and above.
96         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
97         which never was matched due to the split occuring before register
98         allocation (and the code would not have worked on little endian
99         systems if it did match).  Allow extracts to go to the Altivec
100         registers if ISA 2.07 (power8).  Change from using "" around the
101         C++ code to using {}'s.
102         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
103         vec_extracts when the vector is in memory.
104         (vsx_extract_v4sf_var): New insn to optimize vector float
105         vec_extracts when the element number is variable on 64-bit ISA
106         2.07 systems.
107         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
108         for 64-bit ISA 2.07 as well as ISA 3.0.
109         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
110         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
111         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
112         optimize vector int, vector short, and vector char vec_extracts
113         when the vector is in memory.
114         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
115         optimize vector int, vector short, and vector char vec_extracts
116         when the element number is variable.
118 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
120         PR target/71948
121         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
122         does not overlap with other symbol flags.
124 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
126         * config/aarch64/aarch64.h (aarch64_frame):
127         Remove padding0 and hardfp_offset.  Add locals_offset,
128         initial_adjust, callee_adjust, callee_offset and final_adjust.
129         * config/aarch64/aarch64.c (aarch64_layout_frame):
130         Remove unused padding0 and hardfp_offset initializations.
131         Choose frame layout and set frame variables accordingly.
132         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
133         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
134         (aarch64_pop_regs): Likewise.
135         (aarch64_expand_prologue): Remove all decision code, just emit
136         prolog according to frame variables.
137         (aarch64_expand_epilogue): Remove all decision code, just emit
138         epilog according to frame variables.
139         (aarch64_initial_elimination_offset): Use offset to local/arg area.
141 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
143         PR target/72748
144         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
145         fix_debug_reg_uses after changing source register mode to
146         V1TImode if source register is undefined.
148 2015-08-01  Alan Hayward <alan.hayward@arm.com>
150         PR tree-optimization/71818
151         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
152         with non invariant evolutions
154 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
156         PR target/72767
157         * config/avr/avr.md (length) [branch]: Correct insn length
158         attribute for forward branches.
160 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
162         * doc/extend.texi (AVR Built-in Functions): Document
163         __builtin_avr_nops.
164         * config/avr/builtins.def (NOPS): New.
165         * config/avr/avr.c (avr_expand_nops): New static function.
166         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
168 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
170         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
171         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
172         addresses.
174 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
176         * config/aarch64/aarch64.c (vulcan_tunings): Update
177         vulcan L1 cache_line_size.
179 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
181         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
182         function that takes a vector memory address, a hard register, an
183         element number and a temporary base register, and recreates an
184         address that points to the appropriate element within the vector.
185         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
186         (rs6000_split_vec_extract_var): Add support for the target of a
187         vec_extract with variable element number being a scalar memory
188         location.
189         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
190         swappable.
191         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
192         vsx_extract_<mode>_load insn with a new insn that optimizes
193         storing either element to a memory location, using scratch
194         registers to pick apart the vector and reconstruct the address.
195         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
196         (vsx_extract_<mode>_store): Rework alternatives to more correctly
197         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
198         store instruction.
199         (vsx_extract_<mode>_var): Add support for extracting a variable
200         element number from memory.
202 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
204         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
205         when testing for compares against constants of the form 0xabab.
207 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
209         PR tree-optimization/57558
210         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
211         function.
212         (vect_loop_versioning): Support versioning with niter assumptions.
213         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
214         (vect_get_loop_niters): New parameter.  Reimplement to support
215         assumptions in loop niter info.
216         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
217         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
218         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
219         Support loop versioning for niters.
220         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
221         (vect_free_loop_info_assumptions): New function.
222         (vectorize_loops): Free loop niter info for loops with flag
223         LOOP_F_ASSUMPTIONS set if vectorization failed.
224         * tree-vectorizer.h (struct _loop_vec_info): New field
225         num_iters_assumptions.
226         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
227         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
228         (LOOP_REQUIRES_VERSIONING): New macro.
229         (vect_free_loop_info_assumptions): New decl.
231 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
233         * cfgloop.h (struct loop): New field constraints.
234         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
235         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
236         functions.
237         * cfgloop.c (alloc_loop): Initialize new field.
238         * cfgloopmanip.c (copy_loop_info): Copy constraints.
239         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
240         Adjust niter analysis wrto loop constraints.
241         * doc/loop.texi (@node Number of iterations): Add description for loop
242         constraints.
244 2016-07-29  Marek Polacek  <polacek@redhat.com>
246         PR c/7652
247         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
248         (ix86_expand_round_builtin): Likewise.
250 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
251             Georg-Johann Lay  <avr@gjlay.de>
253         PR rtl-optimization/71976
254         * combine.c (get_last_value): Return 0 if the argument for which
255         the function is called has a wider mode than the recorded value.
257 2016-07-29  Marek Polacek  <polacek@redhat.com>
259         PR c/7652
260         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
261         (altivec_expand_st_builtin): Likewise.
263 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
265         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
266         introduced in r238381.
268 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
270         PR middle-end/68217
271         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
272         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
274 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
276         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
277         New declaration.
278         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
279         Add support for vec_extract of vector double or vector long having
280         a variable element number on 64-bit ISA 2.07 systems or newer.
281         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
282         Likewise.
283         (rs6000_split_vec_extract_var): New function to split a
284         vec_extract built-in function with variable element number.
285         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
286         swappable.
287         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
288         (UNSPEC_VSX_EXTRACT): Likewise.
289         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
290         direct move instructions to be generated on 64-bit ISA 2.07
291         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
292         instruction.
293         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
294         arguments for vec_extract variable element.
295         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
296         vec_extract with variable element on V2DFmode and V2DImode
297         vectors.
298         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
299         -mupper-regs-df requirement, since it isn't needed.
300         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
301         do direct moves on 64-bit systems, which allows optimization of
302         vec_extract on 64-bit ISA 2.07 systems and newer.
304 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
305 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
307          * config/aarch64/aarch64.md
308         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
309         statement and type.
310         (<optab>qihi2_aarch64): Likewise, and split into two.
311         (extendqihi2_aarch64): New.
312         (zero_extendqihi2_aarch64): New.
313         * config/aarch64/iterators.md (ldrxt): Remove.
314         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
315         uxtb/uxth.
317 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
319         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
321 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
323         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
324         (aarch64_push_reg): New function to push 1 or 2 registers.
325         (aarch64_pop_reg): New function to pop 1 or 2 registers.
326         (aarch64_expand_prologue): Use aarch64_push_regs.
327         (aarch64_expand_epilogue): Use aarch64_pop_regs.
329 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
331         PR tree-optimization/71734
332         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
333         attribute instead of REF_LOOP and use it.
334         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
335         set it for Loops having non-zero safelen attribute.
336         (ref_indep_loop_p): Pass zero as initial value for safelen.
338 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
340         PR middle-end/72657
341         PR target/72683
342         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
343         call using chkp_gimple_call_builtin_p.
344         (chkp_copy_bounds_for_assign): Likewise.
346 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
348         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
349         * config/arm/arm-protos.h (struct tune_params): Likewise.
350         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
351         (cortex_a9_sched_adjust_cost): Likewise.
352         (fa726te_sched_adjust_cost): Likewise.
353         (arm_adjust_cost): Likewise.
354         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
355         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
356         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
357         * config/i386/i386.c (ix86_adjust_cost): Likewise.
358         * config/ia64/ia64.c: Likewise.
359         * config/m68k/m68k.c: Likewise.
360         * config/mep/mep.c (mep_adjust_cost): Likewise.
361         * config/microblaze/microblaze.c (microblaze_adjust_cost):
362         * Likewise.
363         * config/mips/mips.c (mips_adjust_cost): Likewise.
364         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
365         * Likewise.
366         * config/pa/pa.c (pa_adjust_cost): Likewise.
367         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
368         (rs6000_debug_adjust_cost): Likewise.
369         * config/sh/sh.c (sh_adjust_cost): Likewise.
370         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
371         (hypersparc_adjust_cost): Likewise.
372         (sparc_adjust_cost): Likewise.
373         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
374         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
375         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
376         * Likewise.
377         * config/visium/visium.c (visium_adjust_cost): Likewise.
378         * doc/tm.texi: Regenerate.
379         * haifa-sched.c (dep_cost_1): Adjust.
380         * target.def: Merge adjust_cost and adjust_cost_2.
382 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
384         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
386 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
388         * store-motion.c (struct st_expr): Make pattern_regs a vector.
389         (extract_mentioned_regs): Append to a vector instead of
390         returning a rtx_expr_list.
391         (st_expr_entry): Adjust.
392         (free_st_expr_entry): Likewise.
393         (store_ops_ok): Likewise.
394         (store_killed_in_insn): Likewise.
395         (find_moveable_store): Likewise.
397 2016-07-28  Martin Liska  <mliska@suse.cz>
399         PR gcov-profile/68025
400         * tree-profile.c (tree_profiling): Respect
401         no_profile_instrument_function attribute.
402         * doc/extend.texi: Document no_profile_instrument_function
403         attribute.
405 2016-07-28  Martin Liska  <mliska@suse.cz>
407         PR rtl-optimization/70944
408         * combine.c (make_compound_operation):
409         Do not allow make_compound_operation for vector mode
411 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
413         PR middle-end/71994
414         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
415          before calling get_ops.
417 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
419         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
420         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
421         (BITS_PER_UNIT_LOG): Remove.
422         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
423         * expr.c (expand_assignment): Likewise.
424         * stor-layout.c (initialize_sizetypes): Likewise.
426 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
428         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
429         signature of rs6000_expand_vector_extract so that the element
430         number is a RTX instead of a constant integer.
431         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
432         Likewise.
433         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
434         (altivec_expand_vec_ext_builtin): Likewise.
435         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
436         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
437         MFVSRLD instruction.
439 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
441         * input.c (get_pure_location): Move here from tree.c.
442         (make_location): Likewise.  Add header comment.
443         (selftest::test_accessing_ordinary_linemaps): Verify
444         pure_location_p, make_location, get_location_from_adhoc_loc and
445         get_range_from_loc.
446         * input.h (get_pure_location): Move declaration here from tree.h.
447         (get_finish): Likewise for inline function.
448         (make_location): Likewise for declaration.
449         * tree.c (get_pure_location): Move to input.c.
450         (make_location): Likewise.
451         * tree.h (get_pure_location): Move declaration to tree.h.
452         (get_finish): Likewise for inline function.
453         (make_location): Likewise for declaration.
455 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
457         PR middle-end/71078
458         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
460 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
462         * system.h (STATIC_ASSERT): Use static_assert if building
463         with C++11 onwards.
465 2016-07-27  Richard Biener  <rguenther@suse.de>
467         PR tree-optimization/72517
468         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
469         Revert change to not compute read-read dependences.
471 2016-07-27  Richard Biener  <rguenther@suse.de>
473         * predict.c (set_even_probabilities): Make nedges unsigned.
475 2016-07-27  Martin Liska  <mliska@suse.cz>
477         * predict.c (set_even_probabilities): Handle unlikely edges.
478         (combine_predictions_for_bb): Likewise.
480 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
482         PR target/71869
483         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
484         __float128 support when we don't have hardware support, so that
485         the IEEE built-in functions like isgreater, first call __unordkf3
486         to make sure neither operand is a NaN, and if both operands are
487         ordered, do the normal comparison.
489 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
491         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
492         name.
493         (extract_code_and_val_from_cond_with_ops): Verify that name is
494         either cond_op0 or cond_op1.
496 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
498         PR tree-optimization/18046
499         * genmodes.c (emit_mode_size_inline): Emit an assert that
500         verifies that mode is a valid array index.
501         (emit_mode_nuinits_inline): Likewise.
502         (emit_mode_inner_inline): Likewise.
503         (emit_mode_unit_size_inline): Likewise.
504         (emit_mode_unit_precision_inline): Likewise.
505         * tree-vrp.c: Include params.h.
506         (find_switch_asserts): Register edge assertions for the default
507         label which correspond to the anti-ranges of each case label.
508         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
509         * doc/invoke.texi: Document it.
511 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
513         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
514         and unnecessary call to gimple_bb.
516 2016-07-26  Richard Biener  <rguenther@suse.de>
518         PR rtl-optimization/71984
519         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
520         for VOIDmode.
522 2016-07-26  Richard Biener  <rguenther@suse.de>
524         PR middle-end/72517
525         * expmed.c (extract_bit_field_1): Constrain the vector mode
526         with element size matching the extraction mode size when
527         choosing a better vector mode to do the extraction from.
529 2016-07-26  Richard Biener  <rguenther@suse.de>
530             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
532         PR middle-end/70920
533         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
534         pattern.
536 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
538         * tree-ssa-structalias.c (struct scc_info): Change types of
539         members to auto_sbitmap and auto_vec.
540         (scc_info::scc_info): New constructor.
541         (scc_info::~scc_info): New destructor.
542         (init_scc_info): Remove.
543         (free_scc_info): Remove.
544         (find_indirect_cycles): Adjust.
545         (perform_var_substitution): Likewise.
546         (free_var_substitution_info): Likewise.
548 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
550         * tree-outof-ssa.c (struct elim_graph): Change type of members
551         to auto_vec and auto_sbitmap.
552         (elim_graph::elim_graph): New constructor.
553         (delete_elim_graph): Remove.
554         (expand_phi_nodes): Adjust.
556 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
558         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
559         (new_elim_graph): Adjust.
560         (clear_elim_graph): Likewise.
561         (delete_elim_graph): Likewise.
562         (elim_graph_size): Likewise.
563         (elim_graph_add_node): Likewise.
564         (elim_graph_add_edge): Likewise.
565         (elim_graph_remove_succ_edge): Likewise.
566         (eliminate_name): Likewise.
567         (eliminate_build): Likewise.
568         (elim_forward): Likewise.
569         (elim_unvisited_predecessor): Likewise.
570         (elim_backward): Likewise.
571         (elim_create): Likewise.
572         (eliminate_phi): Likewise.
573         (expand_phi_nodes): Likewise.
575 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
577         * bt-load.c (compute_out): Use auto_sbitmap class.
578         (link_btr_uses): Likewise.
579         * cfganal.c (mark_dfs_back_edges): Likewise.
580         (post_order_compute): Likewise.
581         (inverted_post_order_compute): Likewise.
582         (pre_and_rev_post_order_compute_fn): Likewise.
583         (single_pred_before_succ_order): Likewise.
584         * cfgexpand.c (pass_expand::execute): Likewise.
585         * cfgloop.c (verify_loop_structure): Likewise.
586         * cfgloopmanip.c (fix_bb_placements): Likewise.
587         (remove_path): Likewise.
588         (update_dominators_in_loop): Likewise.
589         * cfgrtl.c (break_superblocks): Likewise.
590         * ddg.c (check_sccs): Likewise.
591         (create_ddg_all_sccs): Likewise.
592         * df-core.c (df_worklist_dataflow): Likewise.
593         * dse.c (dse_step3): Likewise.
594         * except.c (eh_region_outermost): Likewise.
595         * function.c (thread_prologue_and_epilogue_insns): Likewise.
596         * gcse.c (prune_expressions): Likewise.
597         (prune_insertions_deletions): Likewise.
598         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
599         * graph.c (draw_cfg_nodes_no_loops): Likewise.
600         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
601         * lcm.c (compute_earliest): Likewise.
602         (compute_farthest): Likewise.
603         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
604         (unroll_loop_runtime_iterations): Likewise.
605         (unroll_loop_stupid): Likewise.
606         * lower-subreg.c (decompose_multiword_subregs): Likewise.
607         * lra-lives.c: Likewise.
608         * lra.c (lra): Likewise.
609         * modulo-sched.c (schedule_reg_moves): Likewise.
610         (optimize_sc): Likewise.
611         (get_sched_window): Likewise.
612         (sms_schedule_by_order): Likewise.
613         (check_nodes_order): Likewise.
614         (order_nodes_of_sccs): Likewise.
615         (order_nodes_in_scc): Likewise.
616         * recog.c (split_all_insns): Likewise.
617         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
618         * reload1.c (reload): Likewise.
619         * sched-rgn.c (haifa_find_rgns): Likewise.
620         (split_edges): Likewise.
621         (compute_trg_info): Likewise.
622         * sel-sched.c (init_seqno): Likewise.
623         * store-motion.c (remove_reachable_equiv_notes): Likewise.
624         * tree-into-ssa.c (update_ssa): Likewise.
625         * tree-ssa-live.c (live_worklist): Likewise.
626         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
627         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
628         * Likewise.
629         (try_peel_loop): Likewise.
630         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
631         * Likewise.
632         * tree-ssa-pre.c (compute_antic): Likewise.
633         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
634         * tree-stdarg.c (reachable_at_most_once): Likewise.
635         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
636         * var-tracking.c (vt_find_locations): Likewise.
638 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
640         * sbitmap.h (auto_sbitmap): New class.
642 2016-07-26  Alan Modra  <amodra@gmail.com>
644         PR target/72103
645         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
646         sri->t_icode.
648 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
650         * input.c (selftest::temp_source_file::temp_source_file): Fix
651         missing "%s" in fprintf.
653 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
655         PR middle-end/71732
656         * cselib.c (cselib_process_insn): Invalidate argument slots for
657         const/pure calls.
659 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
661         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
662         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
663         vmulxh_lane_f16, vmulxh_laneq_f16): New.
665 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
667         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
668         * config/aarch64/aarch64.md (fma, fnma): Support HF.
669         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
671 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
673         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
674         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
675         New.
676         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
677         (add<mode>3): Likewise.
678         (sub<mode>3): Likewise.
679         (mul<mode>3): Likewise.
680         (div<mode>3): Likewise.
681         (*div<mode>3): Likewise.
682         (<fmaxmin><mode>3): Extend to HF.
683         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
684         (fabd<mode>3): Likewise.
685         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
686         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
687         (aarch64_fmulx<mode>): Likewise.
688         (aarch64_fac<optab><mode>): Likewise.
689         (aarch64_frecps<mode>): Likewise.
690         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
691         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
692         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
693         (VSDQ_HSDI): Support HI.
694         (fcvt_target, FCVT_TARGET): Likewise.
695         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
696         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
697         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
698         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
699         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
700         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
701         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
702         vrsqrtsh_f16): New.
704 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
706         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
707         * config/aarch64/aarch64-builtins.c (hi_UP): New.
708         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
709         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
710         mode.
711         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
712         (aarch64_cm<optab><mode>): Likewise.
713         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
714         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
715         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
716         (sqrt<mode>2): Likewise.
717         (*sqrt<mode>2): Likewise.
718         (abs<mode>2): Likewise.
719         (<optab><mode>hf2): New pattern for HF mode.
720         (<optab>hihf2): Likewise.
721         * config/aarch64/arm_neon.h: Include arm_fp16.h.
722         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
723         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
724         Support HF mode.
725         * config/aarch64/arm_fp16.h: New file.
726         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
727         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
728         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
729         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
730         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
731         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
732         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
733         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
734         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
735         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
736         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
737         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
738         vsqrth_f16): New.
740 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
742         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
743         reduc_smin_scal_): Use VDQIF_F16.
744         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
745         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
746         Use VHSDF.
747         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
748         * config/aarch64/iterators.md (VDQIF_F16): New.
749         (vp): Support HF modes.
750         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
751         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
753 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
755         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
756         "*aarch64_mulx_elt_from_dup<mode>".
757         (*aarch64_mul3_elt<mode>): Update schedule type.
758         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
759         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
760         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
761         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
762         (f, fp): Support HF modes.
763         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
764         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
765         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
766         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
767         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
768         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
770 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
772         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
773         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
774         modes.
775         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
776         vfmsq_f16): New.
778 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
780         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
781         * config/aarch64/aarch64-simd.md
782         (aarch64_rsqrts<mode>): Extend to HF modes.
783         (fabd<mode>3): Likewise.
784         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
785         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
786         (aarch64_<maxmin_uns>p<mode>): Likewise.
787         (<su><maxmin><mode>3): Likewise.
788         (<maxmin_uns><mode>3): Likewise.
789         (<fmaxmin><mode>3): Likewise.
790         (aarch64_faddp<mode>): Likewise.
791         (aarch64_fmulx<mode>): Likewise.
792         (aarch64_frecps<mode>): Likewise.
793         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
794         (add<mode>3): Extend to HF modes.
795         (sub<mode>3): Likewise.
796         (mul<mode>3): Likewise.
797         (div<mode>3): Likewise.
798         (*div<mode>3): Likewise.
799         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
800         HF, V4HF and V8HF.
801         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
802         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
803         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
804         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
805         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
806         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
807         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
808         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
809         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
810         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
811         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
812         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
813         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
814         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
816 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
818         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
819         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
820         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
821         (neg<mode>2): Likewise.
822         (abs<mode>2): Likewise.
823         (<frint_pattern><mode>2): Likewise.
824         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
825         (<optab><VDQF:mode><fcvt_target>2): Likewise.
826         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
827         (ftrunc<VDQF:mode>2): Likewise.
828         (<optab><fcvt_target><VDQF:mode>2): Likewise.
829         (sqrt<mode>2): Likewise.
830         (*sqrt<mode>2): Likewise.
831         (aarch64_frecpe<mode>): Likewise.
832         (aarch64_cm<optab><mode>): Likewise.
833         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
834         HF, V4HF and V8HF.
835         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
836         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
837         (stype): New.
838         * config/aarch64/arm_neon.h (vdup_n_f16): New.
839         (vdupq_n_f16): Likewise.
840         (vld1_dup_f16): Use vdup_n_f16.
841         (vld1q_dup_f16): Use vdupq_n_f16.
842         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
843         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
844         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
845         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
846         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
847         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
848         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
849         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
850         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
851         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
852         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
853         vsqrt_f16, vsqrtq_f16): New.
855 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
857         * config/aarch64/aarch64-simd.md
858         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
859         (aarch64_ext<mode>): Likewise.
860         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
861         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
862         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
863         and V8HFmode.
864         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
865         float16x8_t.
866         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
867         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
868         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
869         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
870         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
871         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
872         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
873         New.
874         (vmov_n_f16): Reimplement using vdup_n_f16.
875         (vmovq_n_f16): Reimplement using vdupq_n_f16..
877 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
879         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
880         "frame_related_p".  Generate CFA annotation when it's necessary.
881         (aarch64_expand_prologue): Use aarch64_add_constant.
882         (aarch64_expand_epilogue): Likewise.
883         (aarch64_output_mi_thunk): Pass "false" when calling
884         aarch64_add_constant.
886 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
888         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
889         sequences.
891 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
893         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
894         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
895         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
896         (aarch64_build_constant): Delete.
898 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
900         Revert
901         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
903         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
904         flag_toplevel_reorder.
906 2016-07-25  Richard Biener  <rguenther@suse.de>
908         * cgraph.c (cgraph_node::verify_node): Compare against builtin
909         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
910         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
911         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
912         (streamer_get_builtin_tree): Likewise.
913         (streamer_write_builtin): Likewise.
914         * lto-streamer.h (LTO_builtin_decl): Remove.
915         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
916         (lto_input_scc): Remove LTO_builtin_decl handling.
917         (lto_input_tree_1): Liekwise.
918         * lto-streamer-out.c (lto_output_tree_1): Remove special
919         handling of builtins.
920         (DFS::DFS): Likewise.
921         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
922         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
923         assert.
924         (streamer_write_builtin): Remove.
926 2016-07-25  Martin Liska  <mliska@suse.cz>
928         * lto-cgraph.c (input_symtab): Don't call get_working_sets
929         if flag_auto_profile is set to true.
931 2016-07-25  Martin Liska  <mliska@suse.cz>
933         PR gcov-profile/71868
934         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
935         have a function with multiple latches, count them all.
937 2016-07-25  Martin Liska  <mliska@suse.cz>
939         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
941 2016-07-25  Martin Liska  <mliska@suse.cz>
943         PR tree-optimization/71987
944         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
945         just for SSA_NAMEs. Fix GNU coding style.
947 2016-07-25  Martin Liska  <mliska@suse.cz>
949         PR gcov-profile/64874
950         * gcov-io.h: Update command about file format.
951         * gcov-iov.c (main): Adapt the numbering scheme.
953 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
955         PR middle-end/66726
956         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
957         whose result is used in PHI.
958         (final_range_test_p): Likewise.
959         (maybe_optimize_range_tests): Likewise.
961 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
963         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
964         Reformat two multi-line strings.
966 2016-07-22 Martin Sebor  <msebor@redhat.com>
968         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
970 2016-07-22 Martin Sebor  <msebor@redhat.com>
972         PR c/71560
973         * doc/extend.texi (Compound Literals): Correct and clarify.
974         (Cast to Union): Same.
976 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
978         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
979         comments to explain why certain error messages make mention of
980         undocumented options.
981         (rs6000_invalid_builtin): Change error messages to replace mention
982         of undocumented options with mention of the -mcpu=power9 option
983         that enables those undocumented options.
984         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
985         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
986         definition of this macro to correct an existing error.
987         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
988         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
989         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
990         descriptions of built-in functions so that they depend on
991         -mcpu=power9 instead of on the corresponding undocumented flags.
992         * doc/invoke.texi (Option Summary):  Remove all mention of newly
993         undocumented flags.
994         (IBM RS/6000 and PowerPC Options): Likewise.
995         * doc/md.texi (Constraints for Particuliar Machines): Remove all
996         mention of newly undocumented flags.
998 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
1000         * ipa-cp.c (determine_versionability): Do not create constprop clones,
1001         when target_clones attribute is set.
1003 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1005         * common.opt (funsafe-loop-optimizations): Mark ignore.
1006         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
1007         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
1008         related code.
1009         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
1010         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
1012 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1014         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1015         Parameter.
1016         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1017         Parameter.
1018         (number_of_iterations_exit): Warn missed loop optimization for
1019         possible infinite loops.
1021 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
1023         PR target/71216
1024         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1025         when to emit a ".machine" pseudo-op.
1027 2016-07-22  Martin Liska  <mliska@suse.cz>
1029         PR gcov-profile/69028
1030         PR gcov-profile/62047
1031         * coverage.c (coverage_compute_lineno_checksum): Do not
1032         calculate checksum for fns w/o xloc.file.
1033         (coverage_compute_profile_id): Likewise.
1035 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
1037         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
1038         (avr_secondary_reload): ...and implementation.
1039         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
1040         * config/avr/avr.md (reload_in<mode>): Remove insns.
1041         (adjust_len) [lpm]: Remove insn attribute value.
1042         * config/avr/predicates.md (flash_operand): Remove insn predicate.
1044 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1046         PR middle-end/71876
1047         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
1048         attribute.
1049         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
1050         * calls.c (special_function_p): Remove the special handling of the
1051         "__builtin_" prefix.
1053 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1055         PR middle-end/71876
1056         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
1057         if STMT may be an alloca call.
1058         (gimple_alloca_call_p, alloca_call_p): Return only true for the
1059         builtin alloca call.
1060         * calls.h (gimple_maybe_alloca_call_p): New function.
1061         * tree-inline.c (inline_forbidden_p_stmt): Use
1062         gimple_maybe_alloca_call_p here.
1064 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
1066         * spellcheck-tree.c (best_macro_match::best_macro_match):
1067         Explictly specify the template arguments when invoking the base
1068         class constructor, to help older C++ compilers.
1070 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1072         PR sanitizer/71953
1073         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1074         before builtin_decl_implicit.
1076 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1078         * optabs.c (emit_condiitonal_move): Short circuit for identical
1079         sources.
1081 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1083         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
1084         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
1085         (noce_conversion_profitable_p): New.
1086         (noce_try_store_flag_constants): Use it.
1087         (noce_try_addcc): Likewise.
1088         (noce_try_store_flag_mask): Likewise.
1089         (noce_try_cmove): Likewise.
1090         (noce_try_cmove_arith): Likewise.
1091         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
1092         overwriting it.
1093         (noce_convert_multiple_sets): Move cost model to here, from...
1094         (bb_ok_for_noce_convert_multiple_sets) ...here.
1095         (noce_process_if_block): Update calls for above changes.
1096         (noce_find_if_block): Record new noce_if_info parameters.
1098 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1100         * target.def (max_noce_ifcvt_seq_cost): New.
1101         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
1102         * doc/tm.texi: Regenerate.
1103         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
1104         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
1105         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
1106         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
1107         * doc/invoke.texi: Document new params.
1109 2016-07-21  Richard Biener  <rguenther@suse.de>
1111         PR tree-optimization/71947
1112         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
1113         ranges have useful limit_vr information.
1115 2016-07-21  Richard Biener  <rguenther@suse.de>
1117         * function-tests.c (build_trivial_generic_function): Set
1118         BLOCK_SUPERCONTEXT of DECL_INITIAL.
1119         * omp-low.c (create_omp_child_function): Likewise.
1120         (grid_expand_target_grid_body): Likewise.
1121         * cgraphunit.c (init_lowered_empty_function): Likewise.
1122         (cgraph_node::expand_thunk): Likewise.
1123         * tree-parloops.c (create_loop_fn): Likewise.
1124         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
1126 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1128         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
1129         in comment.
1131 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
1133         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
1134         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
1135         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
1136         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
1137         values for insn attribute.
1138         * config/avr/avr.c (avr_out_insert_notbit): New function.
1139         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
1140         ADJUST_LEN_INSV_NOTBIT_0/_7.
1141         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
1143 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1145         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
1146         (chrec_convert_1, chrec_convert): Ditto.
1147         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
1148         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
1149         * tree-vrp.c (adjust_range_with_scev): Ditto.
1150         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
1151         (scev_var_range_cant_overflow): New function.
1152         (scev_probably_wraps_p): New parameter.  Call above function.
1153         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
1155 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1157         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1158         by removing computation of may_be_zero.
1160 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1162         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1164 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
1166         Improving concepts performance and diagnostics.
1167         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1168         for constraint satisfaction and subsumption.
1169         * timevar.h (auto_timevar): New constructor that matches the push/pop
1170         pattern of usage in pt.c.
1172 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1174         * hwint.h (HOST_WIDE_INT_0): New define.
1175         (HOST_WIDE_INT_0U): Ditto.
1176         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
1177         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
1178         * simplify-rtx.c: Ditto.
1179         * tree-object-size.c: Ditto.
1181 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1183         * config/s390/s390.c (s390_encode_section_info): Remove mode size
1184         check.
1186 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1188         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
1189         * combine.c: Use HOST_WIDE_INT_M1U instead of
1190         ~(unsigned HOST_WIDE_INT) 0.
1191         * double-int.h: Ditto.
1192         * dse.c: Ditto.
1193         * dwarf2asm.c:Ditto.
1194         * expmed.c: Ditto.
1195         * genmodes.c: Ditto.
1196         * match.pd: Ditto.
1197         * read-rtl.c: Ditto.
1198         * tree-ssa-loop-ivopts.c: Ditto.
1199         * tree-ssa-loop-prefetch.c: Ditto.
1200         * tree-vect-generic.c: Ditto.
1201         * tree-vect-patterns.c: Ditto.
1202         * tree.c: Ditto.
1204 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1206         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
1207         constant addresses outside [0,0xc0] into a register.
1208         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
1209         cases where the base address register is unused after.
1210         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
1211         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
1212         (avr_out_store_psi_reg_disp_tiny): Same.
1214 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1216         Implement attribute progmem on reduced Tiny cores by adding
1217         flash offset 0x4000 to respective symbols.
1219         PR target/71948
1220         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
1221         documentation how it works on reduced Tiny cores.
1222         (AVR Named Address Spaces): No support for reduced Tiny.
1223         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
1224         (avr_address_tiny_pm_p): New static function.
1225         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
1226         if the address is in progmem.
1227         (avr_assemble_integer): Same.
1228         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
1229         for symbol_ref in progmem.
1230         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
1231         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
1232         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
1234 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
1236         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
1237         * configure: Regenerate.
1238         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
1239         (USE_THIN_ARCHIVES): New variable.
1240         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
1241         this archive as a thin archive.
1243 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1245         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
1246         same location as last time, don't skip if we have fix-it hints.
1247         Clarify the skipping logic by converting it from one "if" clause
1248         to repeated "if" clauses.
1249         * spellcheck-tree.c: Include "cpplib.h".
1250         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
1251         (best_macro_match::best_macro_match): New constructor.
1252         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
1253         Move here from c/c-decl.c.
1254         (class best_macro_match): Move here from c/c-decl.c, converting
1255         from a typedef to a subclass, gaining a ctor.
1257 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1259         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
1260         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
1261         define...
1262         (avr_addr_space_diagnose_usage): ...and implementation.
1263         (avr_addr_space_supported_p): New function.
1264         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
1265         report bad address space usage if that space is supported.
1266         (avr_insert_attributes): Same.  No more complain about unsupported
1267         address spaces.
1268         * config/avr/avr-c.c (tm_p.h): Include it.
1269         (avr_cpu_cpp_builtins): Only define addr-space related built-in
1270         macro if avr_addr_space_supported_p.
1272 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
1274         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1275         flag_toplevel_reorder.
1277 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1279         * gcc-rich-location.c
1280         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1281         a const char *.
1282         * gcc-rich-location.h
1283         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1285 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1287         * target.def (addr_space): Add new diagnose_usage to hook vector.
1288         * targhooks.c (default_addr_space_diagnose_usage): Add default
1289         implementation and...
1290         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1291         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1292         is some address space, call targetm.addr_space.diagnose_usage.
1293         * doc/tm.texi.in (Named Address Spaces): Add anchor for
1294         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1295         * doc/tm.texi: Regenerate.
1297 2016-07-20  Martin Liska  <mliska@suse.cz>
1299         PR middle-end/71898
1300         * graphite-isl-ast-to-gimple.c (later_of_the_two):
1301         Properly handly PHI stmts.
1303 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
1305         PR tree-optimization/71503
1306         PR tree-optimization/71683
1307         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1308         and break.
1310 2016-07-20  Martin Liska  <mliska@suse.cz>
1312         * doc/invoke.texi (-fipa-ra): Document when the option is
1313         disabled. Fix a typo.
1315 2016-07-20  Martin Liska  <mliska@suse.cz>
1317         * Makefile.in: Include fibonacci_heap.c
1318         * fibonacci_heap.c: New file.
1319         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1320         (fibonacci_heap::union_with): Fix deletion of the second heap.
1321         * selftest-run-tests.c (selftest::run_tests): Incorporate
1322         fibonacci heap tests.
1323         * selftest.h: Declare fibonacci_heap_c_tests.
1325 2016-07-20  Martin Liska  <mliska@suse.cz>
1327         * selftest-run-tests.c (selftest::run_tests): New function.
1328         * selftest.h (sreal_c_tests): Declare.
1329         * sreal.c (sreal_verify_basics): New function.
1330         (verify_aritmetics): Likewise.
1331         (sreal_verify_arithmetics): Likewise.
1332         (verify_shifting): Likewise.
1333         (sreal_verify_shifting): Likewise.
1334         (void sreal_c_tests): Likewise.
1336 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1338         PR rtl-optimization/71916
1339         * cfgrtl.c (contains_no_active_insn_p): Return false also for
1340         bb which have a single succ fake edge.
1342 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
1344         PR debug/71855
1345         * dwarf2out.c (gen_subprogram_die): Only call
1346         gen_unspecified_parameters_die while dumping early dwarf.
1348 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1350         PR middle-end/71874
1351         * gimple-fold.c (fold_builtin_memory_op): Use
1352         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1354 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
1356         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1357         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1358         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1359         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1360         * combine.c: Ditto.
1361         * cse.c: Ditto.
1362         * dojump.c: Ditto.
1363         * double-int.c: Ditto.
1364         * dse.c: Ditto.
1365         * dwarf2out.c: Ditto.
1366         * expmed.c: Ditto.
1367         * expr.c: Ditto.
1368         * fold-const.c: Ditto.
1369         * function.c: Ditto.
1370         * fwprop.c: Ditto.
1371         * genmodes.c: Ditto.
1372         * hwint.c: Ditto.
1373         * hwint.h: Ditto.
1374         * ifcvt.c: Ditto.
1375         * loop-doloop.c: Ditto.
1376         * loop-invariant.c: Ditto.
1377         * loop-iv.c: Ditto.
1378         * match.pd: Ditto.
1379         * optabs.c: Ditto.
1380         * real.c: Ditto.
1381         * reload.c: Ditto.
1382         * rtlanal.c: Ditto.
1383         * simplify-rtx.c: Ditto.
1384         * stor-layout.c: Ditto.
1385         * toplev.c: Ditto.
1386         * tree-ssa-loop-ivopts.c: Ditto.
1387         * tree-vect-generic.c: Ditto.
1388         * tree-vect-patterns.c: Ditto.
1389         * tree.c: Ditto.
1390         * tree.h: Ditto.
1391         * ubsan.c: Ditto.
1392         * varasm.c: Ditto.
1393         * wide-int-print.cc: Ditto.
1394         * wide-int.cc: Ditto.
1395         * wide-int.h: Ditto.
1397 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1399         * selftest.c (selftest::assert_streq): Handle NULL values of
1400         val_actual and val_expected.
1402 2016-07-19  Martin Jambor  <mjambor@suse.cz>
1404         PR fortran/71688
1405         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1406         rather than cgraph_create_node to get a call graph node.
1408 2016-07-19  Richard Biener  <rguenther@suse.de>
1410         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1411         handle all tcc_constant bases and valueize SSA names.
1412         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1413         tcc_constant bases.
1415 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1417         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1418         the flags of the exit block and bb2, not just the entry block.
1420 2016-07-19  Richard Biener  <rguenther@suse.de>
1422         PR tree-optimization/71901
1423         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1424         align member, group stuff with the bitfield.
1425         (vn_ref_op_align_unit): New inline.
1426         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1427         record element alignment and operand 3 unchanged.
1428         (ao_ref_init_from_vn_reference): Adjust.
1429         (valueize_refs_1): Likewise.
1430         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1432 2016-07-19  Richard Biener  <rguenther@suse.de>
1434         PR tree-optimization/71908
1435         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1436         symbolic constants in a more reliable way.
1438 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
1440         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1441         comment.
1442         (vect_update_inits_of_drs): Likewise.
1443         (vect_create_cond_for_alias_checks): Likewise.
1444         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1446 2016-07-19  Richard Biener  <rguenther@suse.de>
1448         PR lto/71907
1449         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1450         with an abstract origin that is not an inlined function outer
1451         scope add a self-reference as abstract origin.
1452         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1454 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1456         PR target/71493
1457         * config/rs6000/rs6000.c (rs6000_function_value): Fix
1458         unintentional System V.4 structure return breakage for structures
1459         with a single floating point element.
1461 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
1463         PR tree-optimization/71734
1464         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1465         contains REF, use it to check safelen, assume that safelen value
1466         must be greater 1, fix style.
1467         (ref_indep_loop_p_2): Add REF_LOOP argument.
1468         (ref_indep_loop_p): Pass LOOP as additional argument to
1469         ref_indep_loop_p_2.
1471 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1473         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1474         allocation in the prologue.
1475         * explow.c (get_dynamic_stack_base): New function to return an address
1476         expression for the dynamic stack base.
1477         (get_dynamic_stack_size): New function to do the required dynamic stack
1478         space size calculations.
1479         (allocate_dynamic_stack_space): Use new functions.
1480         (align_dynamic_address): Move some code from
1481         allocate_dynamic_stack_space to new function.
1482         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1484 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1486         * config/s390/s390.c (s390_encode_section_info): Always set
1487         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1488         found.
1490 2016-07-18  Richard Biener  <rguenther@suse.de>
1492         PR tree-optimization/71893
1493         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1494         for sizetype cast added by array_ref_element_size.
1495         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1497 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
1499         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1500         register parameters.  Remove code to initialize argument pointer
1501         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
1502         using a pc-relative branch.  Cleanup conditional code.
1503         * config/pa/pa.md (call_mcount): New expander.
1504         (call_mcount_nonpic): New insn.
1505         (call_mcount_pic): New insn and split.
1506         (call_mcount_pic_post_reload): New insn.
1507         (call_mcount_64bit): New insn and split.
1508         (call_mcount_64bit_post_reload): New insn.
1510 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
1512         * config/avr/predicates.md (const_m255_to_m1_operand): New.
1513         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1514         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1515         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1516         (*usum_widenqihi3, *udiff_widenqihi3)
1517         (*addhi3_zero_extend.const): New combiner insns.
1518         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1519         just 1 bit is affected.
1520         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1521         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1523 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1525         * omp-low.c (lower_omp_target): Mark data clauses with
1526         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1527         zero-length subarrays.
1529 2016-07-15  Richard Biener  <rguenther@suse.de>
1531         PR tree-optimization/71881
1532         * tree-loop-distribution.c (destroy_loop): Remove blocks in
1533         reverse DOM order to make debug temp generation happy.
1535 2016-07-15  Richard Biener  <rguenther@suse.de>
1537         PR tree-optimization/71887
1538         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1539         verify it is not zero for division / modulo handling.
1540         (value_replacement): Adjust.
1542 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
1543             Julian Brown  <julian@codesourcery.com>
1545         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1546         * config/aarch64/aarch64-cost-tables.h
1547         (vulcan_extra_costs): New variable.
1548         * config/aarch64/aarch64.c
1549         (vulcan_addrcost_table): Likewise.
1550         (vulcan_regmove_cost): Likewise.
1551         (vulcan_vector_cost): Likewise.
1552         (vulcan_branch_cost): Likewise.
1553         (vulcan_tunings): Likewise.
1555 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
1557         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1558         (output_in_order): Loop over undefined variables too.  Output them
1559         via assemble_undefined_decl.  Skip variables that correspond to hard
1560         registers or have value-exprs.
1561         * varpool.c (symbol_table::output_variables): Handle undefined
1562         variables together with defined ones.
1564 2016-07-15  Richard Biener  <rguenther@suse.de>
1566         * tree-ssa-pre.c (get_representative_for): Make sure to return
1567         the value number of SSA names.
1568         (phi_translate_1): get_representative_for cannot return NULL.
1569         (do_pre_regular_insertion): Remove redundant call to
1570         fully_constant_expression.
1571         (do_pre_partial_partial_insertion): Likewise.
1573 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
1575         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1576         (derive_simple_iv_with_niters): New function.
1577         (simple_iv): Rewrite using simple_iv_with_niters.
1578         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1579         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1580         function.
1581         (number_of_iterations_exit): Rewrite using above function.
1582         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1583         Decl.
1585 2016-07-15  Richard Biener  <rguenther@suse.de>
1587         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1588         vec_construct cost.
1590 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1592         PR tree-optimization/71872
1593         * tree-data-ref.c (get_references_in_stmt): Ignore references
1594         with is_gimple_constant get_base_address.
1596 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1598         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1599         (TARGET_HAVE_LDACQD): New macro.
1600         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1601         than TARGET_HAVE_LDACQ.
1602         (arm_load_acquire_exclusivedi): Likewise.
1603         (arm_store_release_exclusivedi): Likewise.
1605 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1607         PR rtl-optimization/71878
1608         * lra-constraints.c (match_reload): Pass information about other
1609         output operands.  Create new unique register value if matching input
1610         operand shares same register value as output operand being considered.
1611         (curr_insn_transform): Record output operands already processed.
1613 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1615         PR target/65951
1616         PR tree-optimization/70923
1617         * tree-vect-patterns.c: Include mult-synthesis.h.
1618         (target_supports_mult_synth_alg): New function.
1619         (synth_lshift_by_additions): Likewise.
1620         (apply_binop_and_append_stmt): Likewise.
1621         (vect_synth_mult_by_constant): Likewise.
1622         (target_has_vecop_for_code): Likewise.
1623         (vect_recog_mult_pattern): Use above functions to synthesize vector
1624         multiplication by integer constants.
1626 2016-07-14  Alan Modra  <amodra@gmail.com>
1628         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1629         gpr alternatives.  Correct '*' placement on Y,r alternative.
1630         Add '*' on operand 1 of r,r alternative.
1632 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1634         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1635         * expmed.h: ... Here.
1637 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
1639         * gimple.h (stmt_can_terminate_bb_p): New function.
1640         * tree-cfg.c (need_fake_edge_p): Rename to ...
1641         (stmt_can_terminate_bb_p): ... this; return true if stmt can
1642         throw external; handle const and pure calls.
1643         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1645 2016-07-14  Richard Biener  <rguenther@suse.de>
1647         PR tree-optimization/71866
1648         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1649         (do_hoist_insertion): Avoid endless recursion when we
1650         didn't insert anything because we managed to simplify
1651         things down to a constant or SSA name.
1652         (fully_constant_expression): Re-write in terms of ...
1653         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
1654         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1655         vn_nary_build_or_lookup_1.
1656         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1657         (vn_nary_build_or_lookup): ... this which now wraps it.
1659 2016-07-14  Alan Modra  <amodra@gmail.com>
1661         PR target/71733
1662         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1663         with p9_vector override before power9-dform override.
1665 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1667         * value-prof.c (gimple_value_profile_transformations): Don't run
1668         when auto_profile is on.
1670 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1672         * auto-profile.c (update_inlined_ind_target,
1673         afdo_indirect_call): Print information to dump file.
1675 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1677         * genrecog.c (special_predicate_operand_p): New function.
1678         (predicate_name): Move function.
1679         (validate_pattern): Don't warn about missing mode for all
1680         define_special_predicate predicates.
1682 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
1684         * tree-vect-data-refs.c (vect_no_alias_p): New function.
1685         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1686         resolve alias checks which are known at compilation time.
1687         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1688         alias checks are resolved.  Move dump info for too many runtime
1689         alias checks to here...
1690         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1692 2016-07-13  Richard Biener  <rguenther@suse.de>
1694         PR tree-optimization/24574
1695         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1696         position and add shift, rotate, divison and modulo support
1697         for left zero.
1698         (value_replacement): Pass in argument position to absorbing_element_p.
1700 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1702         PR ipa/71633
1703         * ipa-inline-transform.c (inline_call): Support
1704         instrumented thunks.
1706 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1708         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1709         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1710         divide feature.
1711         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1712         Baseline.  Make initial alternative TARGET_32BIT only.
1713         (udivsi3): Likewise.
1714         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1715         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1716         target.
1718 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1720         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1721         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1722         availability with TARGET_HAVE_MOVT.
1723         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1724         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1725         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1726         UINTVAL.
1727         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1728         extra instruction if MOVW is available.  Use a cost variable
1729         incremented by COSTS_N_INSNS (1) when the condition match rather than
1730         returning an arithmetic expression based on COSTS_N_INSNS.  Make
1731         constant with bottom half word zero cost 2 instruction if MOVW is
1732         available.
1733         * config/arm/arm.md (define_attr "arch"): Add v8mb.
1734         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1735         target is ARMv8-M Baseline.
1736         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1737         (arm_movtas_ze): Likewise.
1738         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1739         alternative for constants satisfying j constraint.
1740         (thumb1_movsi_insn): Likewise.
1741         (movsi splitter for K alternative): Tighten condition to not trigger
1742         if movt is available and j constraint is satisfied.
1743         (Pe immediate splitter): Likewise.
1744         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1745         constant fitting in an halfword to use MOVW.
1746         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1747         effective target.
1749 2016-07-13  Richard Biener  <rguenther@suse.de>
1751         PR middle-end/71104
1752         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1753         gimplifying the LHS.  Make sure to gimplify a returning twice
1754         call LHS without using SSA names.
1756 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1758         * tree-data-ref.c (find_data_references_in_stmt): Remove
1759         unnecessary call to vec::release.
1760         (graphite_find_data_references_in_stmt): Likewise.
1761         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1762         * tree-vect-stmts.c (vectorizable_condition): Likewise.
1764 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1766         * cfgexpand.c (expand_used_vars): Make the type of a local
1767         variable auto_vec.
1768         * genmatch.c (lower_for): Likewise.
1769         * haifa-sched.c (haifa_sched_init): Likewise.
1770         (add_to_speculative_block): Likewise.
1771         (create_check_block_twin): Likewise.
1772         * predict.c (handle_missing_profiles): Likewise.
1773         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1774         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1775         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1776         Likewise.
1777         (maybe_lower_iteration_bound): Likewise.
1778         * tree-ssa-sccvn.c (DFS): Likewise.
1779         * tree-stdarg.c (reachable_at_most_once): Likewise.
1780         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1781         (vectorizable_store): Likewise.
1783 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1785         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1786         (sccvn_dom_walker): make cond_stack an auto_vec.
1788 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1790         * ree.c (struct ext_state): Make type of members auto_vec.
1791         (find_and_remove_re): Adjust.
1793 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1795         * cfgexpand.c (struct stack_vars_data): Make type of fields
1796         auto_vec.
1797         (expand_used_vars): Adjust.
1799 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1801         * ipa.c (record_cdtor_fn): Adjust.
1802         (build_cdtor_fns): Likewise.
1803         (ipa_cdtor_merge): Make static_ctors and static_dtors local
1804         variables.
1806 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1808         * genextract.c (struct accum_extract): Add constructor and make
1809         members auto_vec.
1810         (gen_insn): Adjust.
1812 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1814         * tree.c (struct free_lang_data_d): Add constructor and change
1815         types of members to ones that automatically manage resources.
1816         (fld_worklist_push): Adjust.
1817         (find_decls_types): Likewise.
1818         (find_decls_types_in_eh_region): Likewise.
1819         (free_lang_data_in_cgraph): Stop manually creating and
1820         destroying members of free_lang_data_d.
1822 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
1824         PR rtl-optimization/68961
1825         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1826         peephole variant.  Use sse_reg_operand predicates.
1828 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
1830         * config/i386/predicates.md (x86_64_immediate_operand)
1831         <case CONST_INT>: Remove unneeded truncation to DImode.
1832         <case CONST>: Ditto.
1833         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1835 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1837         PR target/71805
1838         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1839         The xxperm and xxpermr instructions require that the 2nd input
1840         operand overlap with the output operand, and not the 1st.
1841         (altivec_vperm_v8hiv16qi): Likewise.
1842         (altivec_vperm_<mode>_uns_internal): Likewise.
1843         (altivec_vpermr_<mode>_internal): Likewise.
1844         (vperm_v8hiv4si): Likewise.
1845         (vperm_v16qiv8hi): Likewise.
1847 2016-07-12  Nathan Sidwell  <nathan@acm.org>
1849         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1850         when -mno-pic-data-is-text-relative is in effect, by default.
1851         * doc/invoke.texi (mpic-data-is-text-relative): Document new
1852         behavior and clarify.
1854 2016-07-12  Martin Liska  <mliska@suse.cz>
1856         * params.def: Add avg-loop niter.
1857         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1858         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1859         * doc/invoke.texi: Document the new parameter.
1861 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1863         PR middle-end/71700
1864         * expr.c (store_constructor): Mask sign-extended bits when widening
1865         sub-word constructor element at the start of a word.
1867 2016-07-12  Martin Liska  <mliska@suse.cz>
1869         * Makefile.in: Append rule for params-options.h.
1870         * params-options.h: New file.
1872 2016-07-12  Martin Liska  <mliska@suse.cz>
1874         * ira-build.c (mark_loops_for_removal): Properly iterate
1875         loops.
1877 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
1878             Richard Biener  <rguenther@suse.de>
1880         PR tree-optimization/23286
1881         PR tree-optimization/70159
1882         * doc/invoke.texi: Document -fcode-hoisting.
1883         * common.opt (fcode-hoisting): New flag.
1884         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1885         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1886         (do_regular_insertion): Rename to ...
1887         (do_pre_regular_insertion): ... this and amend general comments
1888         on insertion strathegy.
1889         (do_partial_partial_insertion): Rename to ...
1890         (do_pre_partial_partial_insertion): ... this.
1891         (do_hoist_insertion): New function.
1892         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1893         and call do_hoist_insertion properly.
1894         (insert): Adjust.
1895         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1896         (pass_pre::execute): Register hoist_insert stats.
1898 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
1900         PR middle-end/71716
1901         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1902         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1903         is different from mode's bitsize.  Small cleanup.
1905 2016-07-12  Richard Biener  <rguenther@suse.de>
1907         PR rtl-optimization/68961
1908         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1909         to simplify to a non-constant.
1911 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
1913         PR middle-end/71758
1914         * omp-low.c (expand_omp_target): Gimplify device.
1916         PR tree-optimization/71823
1917         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1918         to get vec_oprnds2 from op2.
1920 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
1922         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1923         Hoist common subexpressions.
1924         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1926 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
1928         PR target/71800
1929         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1930         prevent generation of 'stxsiwx' on pre Power8 hardware.
1932 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1934         * input.c: Include cpplib.h.
1935         (selftest::temp_source_file): New class.
1936         (selftest::temp_source_file::temp_source_file): New ctor.
1937         (selftest::temp_source_file::~temp_source_file): New dtor.
1938         (selftest::should_have_column_data_p): New function.
1939         (selftest::test_should_have_column_data_p): New function.
1940         (selftest::temp_line_table): New class.
1941         (selftest::temp_line_table::temp_line_table): New ctor.
1942         (selftest::temp_line_table::~temp_line_table): New dtor.
1943         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1944         it to create a temp_line_table.
1945         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1946         locations that are known to have column data.
1947         (selftest::line_table_case): New struct.
1948         (selftest::test_reading_source_line): Move tempfile handling
1949         to class temp_source_file.
1950         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1951         (selftest::assert_token_loc_eq): New function.
1952         (ASSERT_TOKEN_LOC_EQ): New macro.
1953         (selftest::test_lexer): New function.
1954         (selftest::boundary_locations): New array.
1955         (selftest::input_c_tests): Call test_should_have_column_data_p.
1956         Loop over a test matrix of interesting values of location and
1957         default_range_bits, calling test_lexer on each case in the matrix.
1958         Move call to test_accessing_ordinary_linemaps into the matrix.
1959         * selftest.h (ASSERT_EQ): Reimplement in terms of...
1960         (ASSERT_EQ_AT): New macro.
1962 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
1964         PR target/71801
1965         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1966         Don't convert TImode in debug insn.
1968 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1970         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1971         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1972         (tree_type_common::lang_flag_7): New.
1973         (tree_type_common::spare): Reduce size.
1974         * tree.h (TYPE_ALIGN_OK): Remove.
1975         (TYPE_LANG_FLAG_7): New.
1976         (get_inner_reference): Adjust header.
1977         * print-tree.c (print_node): Adjust.
1978         * expr.c (get_inner_reference): Remove parameter keep_aligning.
1979         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1980         calls to get_inner_reference.
1981         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
1982         handling of TYPE_ALIGN_OK.
1983         * builtins.c (get_object_alignment_2): Adjust call to
1984         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
1985         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1986         TYPE_ALIGN_OK.
1987         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1988         * cfgexpand.c (expand_debug_expr): Likewise.
1989         * dbxout.c (dbxout_expand_expr): Likewise.
1990         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1991         loc_list_from_tree, fortran_common): Likewise.
1992         * fold-const.c (optimize_bit_field_compare,
1993         decode_field_reference, fold_unary_loc, fold_comparison,
1994         split_address_to_core_and_offset): Likewise.
1995         * gimple-laddress.c (execute): Likewise.
1996         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1997         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1998         * hsa-gen.c (gen_hsa_addr): Likewise.
1999         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
2000         * tsan.c (instrument_expr): Likewise.
2001         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
2002         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
2003         * tree-affine.c (tree_to_aff_combination,
2004         get_inner_reference_aff): Adjust calls to get_inner_reference.
2005         * tree-data-ref.c (split_constant_offset_1,
2006         dr_analyze_innermost): Likewise.
2007         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
2008         * tree-sra.c (ipa_sra_check_caller): Likewise.
2009         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
2010         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
2011         bswap_replace): Likewise.
2012         * tree-vect-data-refs.c (vect_check_gather,
2013         vect_analyze_data_refs): Likewise.
2014         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
2015         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
2016         TYPE_ALIGN_OK.
2018 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
2020         * Makefile.in (selftest-valgrind): New phony target.
2021         * function-tests.c (selftest::build_cfg): Delete pass instances
2022         created by the test.
2023         (selftest::convert_to_ssa): Likewise.
2024         (selftest::test_expansion_to_rtl): Likewise.
2025         * tree-cfg.c (selftest::test_linear_chain): Release dominator
2026         vectors.
2027         (selftest::test_diamond): Likewise.
2029 2016-07-11  Richard Biener  <rguenther@suse.de>
2031         PR tree-optimization/71816
2032         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
2033         than replacing all of its operands.
2035 2016-07-11  Alan Modra  <amodra@gmail.com>
2037         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2038         (ctr<mode>): Add unspec.
2039         (ctr<mode>_internal*): Likewise.
2041 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
2043         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
2044         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
2046 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2048         PR rtl-optimization/71621
2049         * lra-constraints.c (process_alt_operands): Check combination of
2050         reg class and mode.
2052 2016-07-08  Jason Merrill  <jason@redhat.com>
2053             Richard Biener  <rguenther@suse.de>
2055         P0145: Refining Expression Order for C++.
2056         * gimplify.c (initial_rhs_predicate_for): New.
2057         (gimplfy_modify_expr): Gimplify RHS before LHS.
2059 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2061         PR target/71297
2062         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2063         Allow standard error handling to take over when a wrong number
2064         of arguments is presented to __builtin_vec_ld () or
2065         __builtin_vec_st ().
2067 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2069         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2070         variants.
2071         (smin): Likewise.
2072         (fmax): New entry.
2073         (fmin): Likewise.
2074         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2075         __builtin_aarch64_fmaxv2sf.
2076         (vmaxnmq_f32): Likewise.
2077         (vmaxnmq_f64): Likewise.
2078         (vminnm_f32): Likewise.
2079         (vminnmq_f32): Likewise.
2080         (vminnmq_f64): Likewise.
2082 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2084         PR target/71806
2085         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2086         enable -mfloat128-hardware by default.
2087         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2088         that IEEE 128-bit hardware support needs.
2089         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2090         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2091         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2092         floating point requires.
2093         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2094         -mfloat128 and -mfloat128-hardware changes.
2096 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
2098         PR tree-optimization/71667
2099         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
2101 2016-07-08  Martin Liska  <mliska@suse.cz>
2103         PR middle-end/71606
2104         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2105         folding produces SAVE_EXPRs, thus return false for the type.
2107 2016-07-07  Martin Liska  <mliska@suse.cz>
2109         * file-find.c (remove_prefix): New function.
2110         * file-find.h (remove_prefix): Declare the function.
2111         * gcc-ar.c (main): Skip a folder of the wrapper if
2112         a wrapped binary would point to the same file.
2114 2016-07-07  Jan Hubicka  <jh@suse.cz>
2116         * tree-scalar-evolution.c (iv_can_overflow_p): export.
2117         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
2118         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
2120 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2122         PR ipa/71624
2123         * ipa-inline-analysis.c (compute_inline_parameters): Set
2124         local.can_change_signature to false for intrumentation
2125         thunk callees.
2127 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2129         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
2130         with TARGET_HAVE_MOVT.
2131         (TARGET_HAVE_MOVT): Define.
2132         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
2133         availability with TARGET_HAVE_MOVT.
2134         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
2135         availability.
2136         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
2137         TARGET_THUMB2.
2138         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
2139         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
2140         * config/arm/constraints.md (define_constraint "j"): Use
2141         TARGET_HAVE_MOVT to check MOVT availability.
2143 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2145         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
2147 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2149         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
2150         (armv8-m.main): Likewise.
2151         (armv8-m.main+dsp): Likewise.
2152         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
2153         (FL_FOR_ARCH8M_MAIN): Likewise.
2154         * config/arm/arm-tables.opt: Regenerate.
2155         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
2156         armv8-m.main+dsp to BE8_LINK_SPEC.
2157         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
2158         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
2159         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
2160         Baseline and Mainline.
2161         (arm_option_override_internal): Also disable arm_restrict_it when
2162         !arm_arch_notm.  Update comment for -munaligned-access to also cover
2163         ARMv8-M Baseline.
2164         (arm_file_start): Increase buffer size for printing architecture name.
2165         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
2166         and armv8-m.main+dsp.
2167         (mno-unaligned-access): Clarify that this is disabled by default for
2168         ARMv8-M Baseline architectures as well.
2170 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2172         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
2173         decide whether to prevent some libgcc routines being included for some
2174         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
2175         link between this condition and the one in
2176         libgcc/config/arm/lib1func.S.
2178 2016-07-07  Richard Biener  <rguenther@suse.de>
2180         * tree-ssa-pre.c: Include alias.h.
2181         (compute_avail): If we have multiple VN_REFERENCEs with the
2182         same hashtable entry adjust that to make it a valid replacement
2183         for all of them with respect to alignment and aliasing
2184         when doing insertion.
2185         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
2186         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
2188 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2190         PR target/70098
2191         PR target/71763
2192         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2193         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2194         constraint.
2196 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2198         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
2199         (adjust_mems): Adjust.
2200         (adjust_insn): Likewise.
2201         (prepare_call_arguments): Likewise.
2203 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2205         * gcse.c (struct ls_expr): Make stores field a vector.
2206         (ldst_entry): Adjust.
2207         (free_ldst_entry): Likewise.
2208         (print_ldst_list): Likewise.
2209         (compute_ld_motion_mems): Likewise.
2210         (update_ld_motion_stores): Likewise.
2212 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2214         * gcse.c (struct ls_expr): Remove loads field.
2215         (ldst_entry): Adjust.
2216         (free_ldst_entry): Likewise.
2217         (print_ldst_list): Likewise.
2218         (compute_ld_motion_mems): Likewise.
2220 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2222         * store-motion.c (struct st_expr): Make antic_stores a vector.
2223         (st_expr_entry): Adjust.
2224         (free_st_expr_entry): Likewise.
2225         (print_store_motion_mems): Likewise.
2226         (find_moveable_store): Likewise.
2227         (compute_store_table): Likewise.
2228         (remove_reachable_equiv_notes): Likewise.
2229         (replace_store_insn): Likewise.
2230         (build_store_vectors): Likewise.
2232 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2234         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
2235         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
2237 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2239         PR tree-optimization/71518
2240         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2241         misalign also for outer loops with negative step.
2243 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
2245         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
2246         (cortex_a53_shift): Add mov_shift.
2247         (cortex_a53_shift_reg): Add new reservation for register shifts.
2248         (cortex_a53_alu): Remove bfm.
2249         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
2250         (cortex_a53_alu_extr): Add new reservation for EXTR.
2251         (bypasses): Improve bypass modelling.
2253 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2255         PR target/50739
2256         * config/avr/avr.c (avr_asm_select_section): Strip off
2257         SECTION_DECLARED from flags when calling get_section.
2259 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2261         * tree-vectorizer.h (vect_memory_access_type): Add
2262         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
2263         * tree-vect-stmts.c (compare_step_with_zero): New function.
2264         (perm_mask_for_reverse): Move further up file.
2265         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
2266         step is negative.
2267         (get_negative_load_store_type): New function.
2268         (get_load_store_type): Call it.  Add an ncopies argument.
2269         (vectorizable_mask_load_store): Update call accordingly and
2270         remove tests for negative steps.
2271         (vectorizable_store, vectorizable_load): Likewise.  Handle new
2272         memory_access_types.
2274 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2276         * tree-vectorizer.h (vect_memory_access_type): New enum.
2277         (_stmt_vec_info): Add a memory_access_type field.
2278         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2279         (vect_model_store_cost): Take an access type instead of a boolean.
2280         (vect_model_load_cost): Likewise.
2281         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2282         vect_model_store_cost and vect_model_load_cost.
2283         * tree-vect-stmts.c (vec_load_store_type): New enum.
2284         (vect_model_store_cost): Take an access type instead of a
2285         store_lanes_p boolean.  Simplify tests.
2286         (vect_model_load_cost): Likewise, but for load_lanes_p.
2287         (get_group_load_store_type, get_load_store_type): New functions.
2288         (vectorizable_store): Use get_load_store_type.  Record the access
2289         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2290         (vectorizable_load): Likewise.
2291         (vectorizable_mask_load_store): Likewise.  Replace is_store
2292         variable with vls_type.
2294 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2296         * tree-vectorizer.h (vect_grouped_load_supported): Add a
2297         single_element_p parameter.
2298         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2299         Check the PR65518 case here rather than in vectorizable_load.
2300         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2301         * tree-vect-stmts.c (vectorizable_load): Likewise.
2303 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2305         * tree-vectorizer.h (gather_scatter_info): New structure.
2306         (vect_check_gather_scatter): Return a bool rather than a decl.
2307         Replace return-by-pointer arguments with a single
2308         gather_scatter_info *.
2309         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2310         (vect_analyze_data_refs): Update call accordingly.
2311         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2312         (vectorizable_mask_load_store): Likewise.  Also record the
2313         offset dt and vectype in the gather_scatter_info.
2314         (vectorizable_store): Likewise.
2315         (vectorizable_load): Likewise.
2317 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2319         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2320         strided groups, use the cost of N scalar accesses instead
2321         of ncopies vector accesses.
2322         (vect_model_load_cost): Likewise.
2324 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2326         * tree-vect-stmts.c (vect_cost_group_size): Delete.
2327         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
2328         variable to indicate when once-per-group costs are being used.
2329         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
2331 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2333         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2334         peeling-for-gaps condition.
2336 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2338         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2339         element to register if it doesn't match general_operand.
2341 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2342             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2344         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2345         prototype.
2346         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2347         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2348         (SIGNBIT): New mode iterator.
2349         (Fsignbit): New mode attribute.
2350         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2351         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2352         when direct moves are available.
2353         (signbit<mode>2_dm): New define_insn_and_split).
2354         (signbit<mode>2_dm2): New define_insn.
2356 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2358         PR rtl-optimization/71594
2359         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2360         into subregs of appropriate mode before trying to emit a conditional
2361         move.
2363 2016-07-05  Jan Hubicka  <jh@suse.cz>
2365         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2366         (simple_iv): Use it.
2368 2016-07-05  Jan Hubicka  <jh@suse.cz>
2370         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2372 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
2374         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2375         "offmemok".
2377 2016-07-05  Jan Hubicka  <jh@suse.cz>
2379         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2380         IV can overflow.
2382 2016-07-05  Richard Biener  <rguenther@suse.de>
2384         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2385         Handle empty else block.
2386         (is_feasible_trace): Likewise.
2387         (split_paths): Likewise.
2389 2016-07-05  Richard Biener  <rguenther@suse.de>
2391         * tree-loop-distribution.c (distribute_loop): Fix issue with
2392         the cost model loop.
2394 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
2396         * config/arm/neon-testgen.ml: Delete.
2397         * config/arm/neon.ml: Delete.
2399 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2401         PR c++/71739
2402         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2403         directly using TREE_PURPOSE.
2405 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
2407         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2408         * config/aarch64/aarch64_neon.h: Likewise.
2409         * config/aarch64/arm_neon.h: Likewise.
2410         * config/aarch64/atomics.md: Likewise.
2411         * config/aarch64/aarch64-simd-builtins.def: Likewise.
2412         * doc/invoke.texi: Likewise.
2414 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2416         * config/s390/s390.md: Add "z13" cpu_facility.
2417         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2418         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2419         condition" type instructions.
2421 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2422             Jeff Law  <law@redhat.com>
2424         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2425         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2427 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
2429         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2430         permutation for TARGET_AVX512F.
2431         (ix86_expand_vec_one_operand_perm_avx512): New function.
2432         (expand_vec_perm_1): Invoke introduced function.
2433         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2434         it may be not valid after vectorization.
2436 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2438         PR target/63874
2439         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2440         typo in comment.  Only force to memory if it is a weak
2441         external reference.
2443 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
2444             Jiong Wang  <jiong.wang@arm.com>
2446         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2447         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2448         (AARCH64_FL_F16): New.
2449         (AARCH64_FL_FOR_ARCH8_2): New.
2450         (AARCH64_ISA_8_2): New.
2451         (AARCH64_ISA_F16): New.
2452         (TARGET_FP_F16INST): New.
2453         (TARGET_SIMD_F16INST): New.
2454         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2455         ("fp"): Disabling "fp" also disables "fp16".
2456         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2457         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2458         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2459         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2461 2016-07-04  Jan Beulich  <jbeulich@suse.com>
2463         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2465 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2467         PR target/71720
2468         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2469         the insns, use an insn form that does not adjust the offset on
2470         little endian systems.
2472 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2474         * varasm.c (get_variable_section): Validate initializer in
2475         named .bss-like sections.
2477 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2479         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2480         Exchange the order of the second and third operands in the vpermr
2481         instruction tmeplate.
2483 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2485         PR target/71698
2486         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2487         Disallow TDmode values.
2489 2016-07-01  Alan Modra  <amodra@gmail.com>
2491         PR rtl-optimization/71709
2492         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2493         being set, not referenced.
2495 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
2497         PR tree-optimization/70729
2498         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2499         of loop since it can be not valid after transformation.
2501 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2503         * config/arm/arm.c (thumb_reload_in_hi): Delete.
2504         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2506 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2508         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2509         for NULL decl.
2511 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2513         PR target/71677
2514         * config/rs6000/constraints.md (wY constraint): New constraint to
2515         match the requirements for the LXSD and STXSD instructions.
2516         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2517         predicate to match the requirements for the LXSD and STXSD
2518         instructions.
2519         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2520         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2521         to make sure that the bottom 2 bits of offset are 0, the address
2522         form is offsettable, and no updating is done in the address mode.
2523         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2524         (movdi_internal32): Likewise
2525         (movdi_internal64): Likewise.
2527 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2529         PR tree-optimization/71707
2530         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2531         strinfo even for ADDR_EXPR ptr.
2533 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2535         * config/rs6000/altivec.md (darn_32): Change the condition to
2536         TARGET_P9_MISC instead of TARGET_MODULO.
2537         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2538         condition expression.
2539         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2540         condition expression.
2541         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2542         (DFP_TEST): New code iterator.
2543         (dfptstsfi_<code>_mode>): New define_expand.
2544         (*dfp_sgnfcnc_<mode>): New define_insn.
2545         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2546         definition next to BU_P9_MISC_1 definition and change the MASK
2547         value to RS6000_BTM_P9_MISC.
2548         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2549         (BU_P9_64BIT_MISC_0): Likewise.
2550         (BU_P9_DFP_MISC_0): New macro definition.
2551         (BU_P9_DFP_MISC_1): New macro definition.
2552         (BU_P9_DFP_MISC_2): New macro definition.
2553         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2554         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2555         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2556         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2557         (TSTSFI_LT_TD): Likewise.
2558         (TSTSFI_EQ_DD): Likewise.
2559         (TSTSFI_EQ_TD): Likewise.
2560         (TSTSFI_GT_DD): Likewise.
2561         (TSTSFI_GT_TD): Likewise.
2562         (TSTSFI_OV_DD): Likewise.
2563         (TSTSFI_OV_TD): Likewise.
2564         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2565         (TSTSFI_LT_DD): Likewise.
2566         (TSTSFI_LT_TD): Likewise.
2567         (TSTSFI_EQ): Likewise.
2568         (TSTSFI_EQ_DD): Likewise.
2569         (TSTSFI_EQ_TD): Likewise.
2570         (TSTSFI_GT): Likewise.
2571         (TSTSFI_GT_DD): Likewise.
2572         (TSTSFI_GT_TD): Likewise.
2573         (TSTSFI_OV): Likewise.
2574         (TSTSFI_OV_DD): Likewise.
2575         (TSTSFI_OV_TD): Likewise.
2576         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2577         overloaded test significance functions.
2578         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2579         OPTION_MASK_P9_MISC into the representation of this mask.
2580         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2581         of this mask.
2582         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2583         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2584         non-zero.
2585         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2586         argument is a 6-bit unsigned literal value if the icode argument
2587         represents a DFP test significance built-in call.
2588         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2589         flag used independently and in combination with the
2590         RS6000_BTM_64BIT flag.
2591         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2592         (rs6000_builtin_mask_names): Add entry for power9-misc
2593         command-line option.
2594         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2595         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2596         RS6000_BTM_P9_MISC macros.
2597         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2598         option and change the description of the -mpower9-vector option to
2599         enable only vector instructions, removing its erroneously claimed
2600         support for scalar instructions.
2601         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2602         the ISA 3.0 digital floating point test significance built-in
2603         functions.
2605 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
2607         * config/aarch64/aarch64.c (cortexa35_tunings):
2608         Enable AES fusion.  Use cortexa57_branch_cost.
2609         (cortexa53_tunings): Use cortexa57_branch_cost.
2610         (cortexa72_tunings): Use cortexa57_branch_cost.
2611         Use AUTOPREFETCHER_WEAK.
2612         (cortexa73_tunings): Use cortexa57_branch_cost.
2614 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2615             James Greenhalgh  <james.greenhalgh@arm.com>
2617         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2618         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2619         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2620         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2621         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2622         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2623         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2624         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2625         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2626         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2627         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2628         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2629         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2630         New intrinsics.
2632 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
2633             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2635         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2636         New define_insn.
2637         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2639 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2641         PR driver/71651
2642         * gcc.c (driver::build_option_suggestions): Pass "option" to
2643         add_misspelling_candidates.
2644         * opts-common.c (add_misspelling_candidates): Add "option" param;
2645         use it to avoid adding negated forms for options marked with
2646         RejectNegative.
2647         * opts.h (add_misspelling_candidates): Add "option" param.
2649 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2651         PR middle-end/71693
2652         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2653         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2654         first when permuting bitwise operation with rotate.  Cast
2655         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2657 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
2659         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2660         for misspelled param names.
2661         * params.c: Include spellcheck.h.
2662         (find_param_fuzzy): New function.
2663         * params.h (find_param_fuzzy): New prototype.
2664         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2665         * spellcheck.h (struct edit_distance_traits<const char *>):
2666         ...here.
2668 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2670         * config/rs6000/predicates.md (const_0_to_7_operand): New
2671         predicate, recognize 0..7.
2672         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2673         support for doing extracts from V16QImode, V8HImode, V4SImode
2674         under ISA 3.0.
2675         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2676         vector extract support.
2677         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2678         for ISA 3.0 vector extract.
2679         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2680         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2681         extracts of a constant element number from small integer vectors
2682         on 64-bit ISA 3.0 systems.
2683         (vsx_extract_<mode>_di): Likewise.
2684         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2685         say when we can do ISA 3.0 vector extracts.
2686         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2687         registers, using the stxsiwx instruction.
2689 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
2691         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2692         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2693         qdf24xx_regmove_cost, qdf24xx_tunings): New.
2694         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2695         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2696         * config/arm/arm.c (arm_qdf24xx_tune): New.
2698 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
2700         * config/aarch64/aarch64.c (cortexa53_tunings):
2701         Increase loop alignment to 8.  Set function alignment to 16.
2702         (cortexa35_tunings): Likewise.
2703         (cortexa57_tunings): Increase loop alignment to 8.
2704         (cortexa72_tunings): Likewise.
2705         (cortexa73_tunings): Likewise.
2707 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2709         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2710         for arm_fp16_ok and arm_fp16_hw.
2711         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2712         arm_fp16_alternative.
2714 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2716         PR tree-optimization/71655
2717         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2718         types when swapping operands.
2720 2016-06-29  Martin Liska  <mliska@suse.cz>
2722         PR middle-end/71585
2723         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2724         * ipa-inline-transform.c (inline_call): Remove unnecessary call
2725         of build_optimization_node.
2727 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
2729         PR tree-optimization/70729
2730         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2731         independent in loops having positive safelen value.
2732         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2733         it may be not valid after vectorization.
2735 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
2737         PR tree-optimization/71625
2738         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
2739         is sorted by ascending list->offset.  If PTR is non-NULL and there is
2740         previous strinfo, call get_stridx_plus_constant.
2741         (get_stridx): Pass exp as second argument to get_addr_stridx.
2742         (addr_stridxptr): Add missing list = list->next, so that there can be
2743         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
2744         the list is sorted by ascending list->offset.
2745         (get_stridx_plus_constant): Adjust so that it can be also called with
2746         ADDR_EXPR instead of SSA_NAME as PTR.
2747         (handle_char_store): Pass NULL_TREE as second argument to
2748         get_addr_stridx.
2750 2016-06-29  Richard Biener  <rguenther@suse.de>
2752         PR rtl-optimization/68961
2753         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2755 2016-06-29  Richard Biener  <rguenther@suse.de>
2757         PR middle-end/71002
2758         * alias.c (component_uses_parent_alias_set_from): Handle
2759         type punning through union accesses by using the union alias set.
2760         * gimple.c (gimple_get_alias_set): Remove union type punning case.
2762 2016-07-29  Richard Biener  <rguenther@suse.de>
2764         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2765         precision not matching mode precision.
2767 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
2769         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2770         pa_output_arg_descriptor.
2771         (call_val_symref_64bit_post_reload): Likewise.
2772         (call_val_powf_64bit_post_reload): Likewise.
2773         (sibcall_internal_symref_64bit): Likewise.
2774         (sibcall_value_internal_symref_64bit): Likewise.
2776 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2778         PR middle-end/71626
2779         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2780         a constant, force its SUBREG_REG into memory or register instead
2781         of whole op1.
2783 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2785         PR target/58655
2786         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2787         * doc/invoke.texi (AVR Options): Document it.
2789 2016-06-28  Walter Lee  <walt@tilera.com>
2791         * config/tilegx/linux.h: Do not include arch/icache.h
2792         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2793         * config/tilepro/linux.h: Do not include arch/icache.h
2794         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2796 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
2798         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2799         for big-endian BIT_FIELD_REF.
2801 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2803         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2804         ('size' attribute): Add '128'.
2805         Include power9.md.
2806         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2807         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2808         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2809         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2810         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2811         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2812         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2813         *trunc<mode>df2_odd): Set size attribute to '128'.
2814         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2815         * config/rs6000/power6.md (power6-fp): Include dfp type.
2816         * config/rs6000/power7.md (power7-fp): Likewise.
2817         * config/rs6000/power8.md (power8-fp): Likewise.
2818         * config/rs6000/power9.md: New file.
2819         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2820         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2821         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2822         htmsimple.
2823         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2824         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2825         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2826         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2827         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2828         dfp_dscri_<mode>): Change type attribute to dfp.
2829         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2830         attribute to vecsimple.
2831         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2832         and prefetch streams.
2833         (rs6000_option_override_internal): Remove temporary code setting
2834         tuning to power8.  Don't set rs6000_sched_groups for power9.
2835         (last_scheduled_insn): Change to rtx_insn *.
2836         (divide_cnt, vec_load_pendulum): New variables.
2837         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2838         (rs6000_issue_rate): Set issue rate for Power9.
2839         (is_power9_pairable_vec_type): New.
2840         (power9_sched_reorder2): New.
2841         (rs6000_sched_reorder2): Call new function for Power9 specific
2842         reordering.
2843         (insn_must_be_first_in_group): Remove Power9.
2844         (insn_must_be_last_in_group): Likewise.
2845         (force_new_group): Likewise.
2846         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2847         Initialize divide_cnt/vec_load_pendulum.
2848         (_rs6000_sched_context, rs6000_init_sched_context,
2849         rs6000_set_sched_context): Handle context save/restore of new
2850         variables.
2852 2016-06-28  Richard Biener  <rguenther@suse.de>
2854         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2855         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2856         COMPONENT_REF operand.
2857         (nonoverlapping_component_refs_p): Likewise.
2858         * stor-layout.c (start_bitfield_representative): Mark
2859         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2861 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2863         * Makefile.in: Don't cat ../stage_current if it does not exist.
2865         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2866         last argument is a bit-field.
2868         PR rtl-optimization/71673
2869         * internal-fn.c (expand_arith_overflow_result_store): Use
2870         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2871         expand_simple_binop.
2873         PR middle-end/66867
2874         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2875         expand_ifn_atomic_compare_exchange): New functions.
2876         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2877         * tree.h (build_call_expr_internal_loc): Rename to ...
2878         (build_call_expr_internal_loc_array): ... this.  Fix up type of
2879         last argument.
2880         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2881         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2882         ATOMIC_COMPARE_EXCHANGE result.
2883         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2884         * gimple-fold.h (optimize_atomic_compare_exchange_p,
2885         fold_builtin_atomic_compare_exchange): New prototypes.
2886         * gimple-fold.c (optimize_atomic_compare_exchange_p,
2887         fold_builtin_atomic_compare_exchange): New functions..
2888         * tree-ssa.c (execute_update_addresses_taken): If
2889         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2890         of call when finding addressable vars, and if such var becomes
2891         non-addressable, call fold_builtin_atomic_compare_exchange.
2893 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2895         PR target/71670
2896         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2897         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2899 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2901         * config/rs6000/rs6000.md ('type' attribute): Add
2902         veclogical,veccmpfx,vecexts,vecmove insn types.
2903         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2904         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2905         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2906         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2907         *nabs<mode>2_hw): Change type to vecmove.
2908         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2909         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2910         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2911         *ieee_128bit_vsx_abs<mode>2_internal,
2912         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2913         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2914         *ieee128_mtvsrd_32bit): Change type to veclogical.
2915         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2916         *movdi_internal32, *movdi_internal64): Update insn types.
2917         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2918         vsx_extract_<mode>): Change type to veclogical.
2919         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2920         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2921         *vsx_sign_extend_si_v2di): Change type to vecexts.
2922         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2923         type to veclogical.
2924         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2925         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2926         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2927         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2928         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2929         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2930         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2931         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2932         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2933         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2934         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2935         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2936         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2937         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2938         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2939         (ppc7450-vecsimple): Add veclogical, vecmove.
2940         (ppc7450-veccmp): Add veccmpfx.
2941         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2942         vecmove.
2943         (ppc8540_vector_compare): Add veccmpfx.
2944         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2945         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2946         (cell-vecsimple): Add veclogical, vecmove.
2947         (cell-veccmp): Add veccmpfx.
2948         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2949         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2950         veccmpfx.
2951         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2952         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2953         (power4-vecsimple): Add veclogical, vecmove.
2954         (power4-veccmp): Add veccmpfx.
2955         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2956         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2957         (power6-vecsimple): Add veclogical, vecmove.
2958         (power6-veccmp): Add veccmpfx.
2959         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2960         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2961         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2962         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2963         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2964         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2965         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2966         fpsimple.
2967         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2969 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2971         PR target/71656
2972         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2973         OPTION_MASK_P9_DFORM_VECTOR.
2974         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2975         disable -mpower9-dform-vector when using reload.
2976         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2977         New 'strict' argument.  Update all callers.  Add strict addressing
2978         support.
2979         (rs6000_legitimate_offset_address_p): Remove call to
2980         virtual_stack_registers_memory_p.
2981         (rs6000_legitimize_reload_address): Add quad address support.
2982         (rs6000_legitimate_address_p): Move call to quad_address_p above
2983         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2984         to account for new strict usage.
2985         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2986         for new strict usage.
2987         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2989 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
2991         PR target/70902
2992         PR target/71453
2993         PR target/71555
2994         PR target/71596
2995         PR target/71657
2996         * config/i386/i386.c (ix86_spill_class): Disable condition to
2997         always return NO_REGS.
2999 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
3001         * predict.c: Include gimple-pretty-print.h
3002         (predicted_by_loop_heuristics_p): Check also
3003         PRED_LOOP_EXIT_WITH_RECURSION
3004         (predict_loops): Find self recursive calls and use special purpose
3005         predictors for them; dump log about decisions.
3006         (pass_profile::execute): Dump info about #of iterations.
3007         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
3008         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
3010 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
3012         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
3013         output_asm_insn calls and shorten long lines.  Output .CALL
3014         argument descriptor using pa_output_arg_descriptor.  Add various
3015         inline $$dyncall and other optimizations.
3016         (pa_attr_length_indirect_call): Adjust ordering and lengths.
3018 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
3020         PR tree-optimization/71643
3021         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
3022         EH preds.
3024         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
3025         leak a bitmap if dep_bb is NULL.
3027         PR tree-optimization/71631
3028         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
3029         to rewrite_expr_tree even if negate_result, move new_lhs var
3030         declaration and initialization earlier, for powi_result set afterwards
3031         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
3032         if new_lhs != lhs, and don't shadow gsi var.
3034 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3036         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
3037         Add in_loop parameter.
3038         (predict_loops): Add loop guard heuristics.
3039         * predict.def (PRED_LOOP_GUARD): New heuristics.
3041 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3043         * predict.c: Include ipa-utils.h
3044         (tree_bb_level_prediction): Predict recursive calls.
3045         (tree_estimate_probability_bb): Skip inexpensive calls for call
3046         predictor.
3047         * predict.def (PRED_RECURSIVE_CALL): New.
3049 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3051         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3052         (BU_FLOAT128_1): Likewise.
3053         (FABSQ): Likewise.
3054         (COPYSIGNQ): Likewise.
3055         (RS6000_BUILTIN_NANQ): Likewise.
3056         (RS6000_BUILTIN_NANSQ): Likewise.
3057         (RS6000_BUILTIN_INFQ): Likewise.
3058         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3059         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3060         (TARGET_FOLD_BUILTIN): New #define.
3061         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3062         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3063         (rs6000_fold_builtin): New target hook implementation, handling
3064         folding of 128-bit NaNs and infinities.
3065         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3066         entries are filled in to avoid problems during bootstrap
3067         self-test; define builtins for 128-bit NaNs and infinities.
3068         (rs6000_opt_mask): Add entry for float128.
3069         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3070         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3071         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3072         (const_str_type_node): New #define.
3073         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3074         to a define_expand that dispatches to either copysign<mode>3_soft
3075         or copysign<mode>3_hard.
3076         (copysign<mode>3_hard): Rename from copysign<mode>3.
3077         (copysign<mode>3_soft): New define_insn.
3078         * doc/extend.texi: Document new builtins.
3080 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3082         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
3083         PRIu64 instead of lu.
3085 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3087         PR debug/71642
3088         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
3089         copy the type name.
3091 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3093         PR tree-optimization/71647
3094         * omp-low.c (lower_rec_input_clauses): Convert
3095         omp_clause_aligned_alignment (c) to size_type_node for the
3096         last argument of __builtin_assume_aligned.
3098 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3100         * configure.ac (calling ___tls_get_addr via GOT): New
3101         assembler/linker check.
3102         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
3103         assembler and linker supports calling ___tls_get_addr via GOT.
3104         Otherise, defined to 0.
3105         * config.in: Regenerated.
3106         * configure: Likewise.
3107         * config/i386/constraints.md (Yb): New constraint.
3108         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
3109         (REG_CLASS_NAMES): Likewise.
3110         (REG_CLASS_CONTENTS): Likewise.
3111         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
3112         the b constraint with the Yb constraint.  Call ___tls_get_addr
3113         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
3114         is 1.
3115         (*tls_local_dynamic_base_32_gnu): Likewise.
3116         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
3117         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
3118         (*tls_local_dynamic_base_64_<mode>): Likewise.
3120 2016-06-24  Martin Liska  <mliska@suse.cz>
3122         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
3123         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
3124         few functions.
3125         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
3126         argument to true if the expected number of iterations is
3127         loop-based.
3129 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
3131         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
3132         assemble for 32bit target.
3133         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
3134         and $ld_ix86_gld_32_opt to link for 32bit target.
3135         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
3136         * configure: Regenerate.
3138 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3140         * config/arm/arm.c (int_log2): Delete definition and prototype.
3141         (shift_op): Use exact_log2 instead of int_log2.
3142         (vfp3_const_double_for_fract_bits): Likewise.
3144 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3146         * internal-fn.c (expand_arith_set_overflow): New function.
3147         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3148         Use it.
3149         (expand_arith_overflow_result_store): Likewise.  Handle precision
3150         smaller than mode precision.
3151         * tree-vrp.c (extract_range_basic): For imag part, handle
3152         properly signed 1-bit precision result.
3153         * doc/extend.texi (__builtin_add_overflow): Document that last
3154         argument can't be pointer to enumerated or boolean type.
3155         (__builtin_add_overflow_p): Document that last argument can't
3156         have enumerated or boolean type.
3158 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3159             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3161         * config/rs6000/predicates.md (splat_input_operand): Rework.
3162         Don't allow constants, since the insns that use this predicate
3163         don't support constants.  Constants are handled by other insns
3164         that are created via combine.  During and after register
3165         allocation, only allow indexed or indirect addresses, and not
3166         general addresses.  Only allow modes supported by the hardware.
3167         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
3168         comment.  Move check for using VSPLTIS<x> to a common location,
3169         instead of doing it in two different places.
3171 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
3173         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3174         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
3175         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
3176         signature_CENTAUR_ebx.
3178 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3180         PR target/66232
3181         PR target/67400
3182         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
3183         (as_ix86_gas_32_opt): This.
3184         (ld_ix86_tls_ldm_opt): Renamed to ...
3185         (ld_ix86_gld_32_opt): This.
3186         (R_386_TLS_LDM reloc): Updated.
3187         (R_386_GOT32X reloc): New assembler/linker check.
3188         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
3189         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
3190         defined to 0.
3191         * config.in: Regenerated.
3192         * configure: Likewise.
3193         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
3194         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
3195         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
3196         if ix86_force_load_from_GOT_p returns true.
3197         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
3198         ix86_force_load_from_GOT_p returns true.
3199         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
3200         the external function address via the GOT slot.
3201         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
3202         HAVE_AS_IX86_GOT32X before returning false.
3203         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
3204         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
3206 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
3208         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
3210 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3212         * Makefile.in: Regenerate.
3213         * doc/install.texi: Document autoprofiledbootstrap.
3215 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3217         * config/i386/gcc-auto-profile: New file.
3219 2016-06-23  Martin Liska  <mliska@suse.cz>
3221         PR middle-end/71619
3222         * predict.c (predict_loops): Revert the hunk that was removed
3223         in r237103.
3225 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
3227         * config.gcc: Add support for arm*-*-phoenix* targets.
3228         * config/arm/t-phoenix: New.
3229         * config/phoenix.h: New.
3231 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
3232             H.J. Lu  <hongjiu.lu@intel.com>
3234         PR target/67400
3235         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
3236         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
3237         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
3238         ix86_force_load_from_GOT_p returns true.
3239         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
3240         ix86_force_load_from_GOT_p returns true.
3241         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
3242         ix86_force_load_from_GOT_p returns true.
3243         (ix86_expand_move): Load the external function address via the
3244         GOT slot if ix86_force_load_from_GOT_p returns true.
3245         * config/i386/predicates.md (x86_64_immediate_operand): Return
3246         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
3247         (x86_64_zext_immediate_operand): Ditto.
3249 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
3251         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
3253 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3255         PR c/70339
3256         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
3257         * diagnostic.c (pedwarn_at_rich_loc): New function.
3258         * spellcheck.h (best_match::best_match): Add a
3259         "best_distance_so_far" optional parameter.
3260         (best_match::set_best_so_far): New method.
3261         (best_match::get_best_distance): New accessor.
3262         (best_match::get_best_candidate_length): New accessor.
3264 2016-06-22  Nick Clifton  <nickc@redhat.com>
3266         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
3267         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
3268         modes are accepted as well.
3269         (ucompare_loc_descriptor): Likewise.
3270         (minmax_loc_descriptor): Likewise.
3271         (clz_loc_descriptor): Likewise.
3272         (popcount_loc_descriptor): Likewise.
3273         (bswap_loc_descriptor): Likewise.
3274         (rotate_loc_descriptor): Likewise.
3275         (mem_loc_descriptor): Likewise.
3276         (loc_descriptor): Likewise.
3278 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3280         * common.opt (fdiagnostics-parseable-fixits): New option.
3281         * diagnostic.c: Include "selftest.h".
3282         (print_escaped_string): New function.
3283         (print_parseable_fixits): New function.
3284         (diagnostic_report_diagnostic): Call print_parseable_fixits.
3285         (selftest::assert_print_escaped_string): New function.
3286         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3287         (selftest::test_print_escaped_string): New function.
3288         (selftest::test_print_parseable_fixits_none): New function.
3289         (selftest::test_print_parseable_fixits_insert): New function.
3290         (selftest::test_print_parseable_fixits_remove): New function.
3291         (selftest::test_print_parseable_fixits_replace): New function.
3292         (selftest::diagnostic_c_tests): New function.
3293         * diagnostic.h (struct diagnostic_context): Add field
3294         "parseable_fixits_p".
3295         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3296         -fdiagnostics-parseable-fixits.
3297         (-fdiagnostics-parseable-fixits): New option.
3298         * opts.c (common_handle_option): Handle
3299         -fdiagnostics-parseable-fixits.
3300         * selftest-run-tests.c (selftest::run_tests): Call
3301         selftest::diagnostic_c_tests.
3302         * selftest.h (selftest::diagnostic_c_tests): New prototype.
3304 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
3306         PR tree-optimization/71488
3307         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3308         comparison of boolean vectors.
3309         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3310         of boolean vectors using bitwise operations.
3312 2016-06-22  Andreas Schwab  <schwab@suse.de>
3314         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3315         Remove declaration.
3317 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3319         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3321 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3323         * config/i386/i386.c (print_reg): Emit an error message on attempt to
3324         print FLAGS_REG.
3326 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3328         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3329         * config/arm/arm-cores.def (cortex-a73): New entry.
3330         (cortex-a73.cortex-a35): Likewise.
3331         (cortex-a73.cortex-a53): Likewise.
3332         * config/arm/arm-tables.opt: Regenerate.
3333         * config/arm/arm-tune.md: Likewise.
3334         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3335         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3336         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3337         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3338         * doc/invoke.texi (ARM Options): Document cortex-a73,
3339         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3341 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3343         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3344         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3345         (cortex-a73.cortex-a35): Likewise.
3346         (cortex-a73.cortex-a53): Likewise.
3347         * config/aarch64/aarch64-tune.md: Regenerate.
3348         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3349         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3350         -mcpu and -mtune.
3352 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3354         * configure.ac (gcc_cv_as_compress_debug): Remove
3355         --compress-debug-sections as extra as switch.
3356         Handle gas --compress-debug-sections=type.
3357         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3358         Handle gld --compress-debug-sections=type.
3359         * configure: Regenerate.
3361 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3363         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3365 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3367         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3368         (do_rewrite): likewise.
3370 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3372         * common/config/mep/mep-common.c: Remove.
3373         * config.gcc: Remove mep-* support.
3374         * config/mep/constraints.md: Remove.
3375         * config/mep/default.h: Remove.
3376         * config/mep/intrinsics.h: Remove.
3377         * config/mep/intrinsics.md: Remove.
3378         * config/mep/ivc2-template.h: Remove.
3379         * config/mep/mep-c5.cpu: Remove.
3380         * config/mep/mep-core.cpu: Remove.
3381         * config/mep/mep-default.cpu: Remove.
3382         * config/mep/mep-ext-cop.cpu: Remove.
3383         * config/mep/mep-intrin.h: Remove.
3384         * config/mep/mep-ivc2.cpu: Remove.
3385         * config/mep/mep-pragma.c: Remove.
3386         * config/mep/mep-protos.h: Remove.
3387         * config/mep/mep.c: Remove.
3388         * config/mep/mep.cpu: Remove.
3389         * config/mep/mep.h: Remove.
3390         * config/mep/mep.md: Remove.
3391         * config/mep/mep.opt: Remove.
3392         * config/mep/predicates.md: Remove.
3393         * config/mep/t-mep: Remove.
3394         * doc/install.texi: Remove mep-* documentation.
3395         * doc/md.texi: Likewise.
3397 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3399         * config.gcc: Remove support for avr-rtems.
3400         * config/avr/gen-avr-mmcu-specs.c: Likewise.
3401         * config/avr/rtems.h: Remove.
3402         * config/avr/t-rtems: Remove.
3404 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3406         * config.gcc: Remove m32r-rtems support.
3407         * config/m32r/rtems.h: Remove.
3409 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3411         * config.gcc: Remove h8300-rtems support.
3412         * config/h8300/rtems.h: Remove.
3413         * config/h8300/t-rtems: Remove.
3415 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3417         * config.gcc: Remove support for knetbsd.
3418         * configure.ac: Likewise.
3419         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
3420         * config/knetbsd-gnu.h: Remove.
3421         * configure: Regenerate.
3423 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3425         * config.gcc: Remove support for openbsd 2 and 3.
3426         * config/openbsd-oldgas.h: Remove.
3428 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3430         * config.gcc: Remove interix support.
3431         * config/i386/i386-interix.h: Remove.
3432         * config/i386/interix.opt: Remove.
3433         * config/i386/t-interix: Remove.
3434         * configure: Regenerate.
3435         * configure.ac: Remove interix support.
3436         * doc/install.texi: Remove interix documentation.
3438 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3440         * config/rs6000/rs6000.h: Add conditional preprocessing directives
3441         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3442         not defined.
3444 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3446         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3447         they are both PLACEHOLDER_EXPRs.
3449 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3451         * stor-layout.c (layout_type): Move setting complex MODE to
3452         layout_type, instead of setting it ahead of time by the caller.
3453         * tree.c (build_complex_type): Likewise.
3455 2016-06-21  Martin Liska  <mliska@suse.cz>
3457         * predict.c (force_edge_cold): Replace imposisble with
3458         impossible.
3460 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3462         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3463         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3465 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3467         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3469 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3470             Ilya Enkovich  <ilya.enkovich@intel.com>
3472         PR target/71549
3473         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3474         New member function to convert V1TImode register to SUBREG
3475         TImode in debug insn.
3476         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3477         after changing register mode to V1TImode.
3479 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
3481         * config/aarch64/aarch64-cores.def (vulcan): New core.
3482         * config/aarch64/aarch64-tune.md: Regenerate.
3483         * doc/invoke.texi: Document vulcan as an available option.
3485 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3487         * cse.c (canon_asm_operands): New function extracted from...
3488         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
3489         either standalone or member of a PARALLEL.
3491 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3493         PR target/30417
3494         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3495         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3496         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3498 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3500         PR target/71103
3501         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3502         constant addresses if can_create_pseudo_p.
3504 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3506         PR tree-optimization/71588
3507         * tree-ssa-strlen.c (valid_builtin_call): New function.
3508         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3509         it.
3511 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3513         PR middle-end/71581
3514         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3515         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3516         for conversion of scalar user var to complex type and use the
3517         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3518         punt.
3520         PR rtl-optimization/71591
3521         * toplev.c (toplev::run_self_tests): If no_backend, complain and
3522         don't run any tests.
3524 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
3526         PR target/71571
3527         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3528         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
3529         space for PIC with non-v32 and the common non-PIC "jump".
3531 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3533         PR target/71559
3534         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3535         returned values and add UN*/LTGT/*ORDERED cases with values matching
3536         D operand modifier on vcmp for AVX.
3538 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3540         * config/aarch64/aarch64.opt
3541         (mpc-relative-literal-loads): Rename internal option name.
3542         * config/aarch64/aarch64.c
3543         (aarch64_nopcrelative_literal_loads): Rename to
3544         aarch64_pcrelative_literal_loads.
3545         (aarch64_expand_mov_immediate): Likewise.
3546         (aarch64_secondary_reload): Likewise.
3547         (aarch64_can_use_per_function_literal_pools_p): Likewise.
3548         (aarch64_override_options_after_change_1): Rename and simplify logic.
3549         (aarch64_classify_symbol): Merge large model checks into switch,
3550         remove pc-relative load check.
3552 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3554         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3555         costs relative to the cost of a register move.
3557 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3559         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3560         (vcvt_n_f64_u64): Likewise.
3561         (vcvt_n_s64_f64): Likewise.
3562         (vcvt_n_u64_f64): Likewise.
3563         (vcvt_f64_s64): Likewise.
3564         (vrecpe_f64): Likewise.
3565         (vcvt_f64_u64): Likewise.
3566         (vrecps_f64): Likewise.
3568 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3570         * config/aarch64/aarch64.md
3571         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3572         iterators.
3573         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
3574         attributes.
3575         * config/aarch64/aarch64-builtins.c
3576         (aarch64_types_binop_uss_qualifiers): Delete.
3577         (TYPES_BINOP_USS): Likewise.
3578         (aarch64_types_binop_sus_qualifiers): Likewise.
3579         (TYPES_BINOP_SUS): Likewise.
3580         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3581         (TYPES_FCVTIMM_SUS): Likewise.
3582         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3583         rather than BINOP.
3584         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3585         (fcvtzs): Use SHIFTIMM rather than BINOP.
3586         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3588 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3590         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3591         costs relative to the cost of a register move.
3593 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3595         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3596         Allow scalar/single vector modes to be tieable.
3598 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3600         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3602 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3604         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3605         "alignement".
3606         * tree.h (TYPE_ALIGN): Likewise.
3608 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3610         PR target/71103
3611         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3613 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3615         * config/avr/avr.c (avr_print_operand): Fix "format not a string
3616         literal" build warnings.
3617         (avr_print_operand_address): Dito.
3619 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
3621         PR target/71375
3622         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3623         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3625 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
3627         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3629 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3631         PR bootstrap/71435
3632         * reload1.c (reload): Pass 0 to finish_spills when called because
3633         update_eliminables_and_spill returns true and remove did_spill.
3634         (finish_spills): Adjust comment and document GLOBAL parameter.
3636 2016-06-17  DJ Delorie  <dj@redhat.com>
3638         PR target/71338
3639         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3640         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3641         (umulqihi3_virt): Likewise.
3642         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3643         (umulqihi3_real): Likewise.
3645 2016-06-17  Martin Liska  <mliska@suse.cz>
3647         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3649 2016-06-17  Martin Liska  <mliska@suse.cz>
3651         * predict.def: PRED_LOOP_EXIT from 92 to 85.
3653 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
3655         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3656         __FAST_MATH__.
3657         (vaddq_f32): Likewise.
3658         (vmul_f32): Likewise.
3659         (vmulq_f32): Likewise.
3660         (vsub_f32): Likewise.
3661         (vsubq_f32): Likewise.
3663 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3665         PR tree-optimization/71347
3666         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3667         cost for all uses in group.
3669 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
3671         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3672         insert gimple seq if it's not empty.
3674 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3676         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3677         member OFFSET.
3678         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3679         rather than OFFSET.
3680         (comp_dr_with_seg_len_pair): Ditto.
3681         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
3682         struct dr_with_seg_len_pair against DR_OFFSET.
3683         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3684         DR_OFFSET directly.
3686 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3688         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3690 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
3692         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3693         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3694         (pa_output_millicode_call): Likewise.
3695         (pa_output_call): Likewise.
3696         (pa_output_indirect_call): Likewise.
3697         (pa_asm_output_mi_thunk): Likewise.
3699 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3701         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3703 2016-06-16  Martin Liska  <mliska@suse.cz>
3705         * predict.c (combine_predictions_for_insn): When we find a first
3706         match predictor, we should consider just predictors with
3707         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
3708         DS theory predictor.
3709         (combine_predictions_for_bb): Likewise.
3711 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3713         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3714         with base of reference to struct.
3716 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3718         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3720 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3722         PR target/71151
3723         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3724         progmem_swtable_section.
3725         (progmem_swtable_section): Remove.
3726         (avr_asm_function_rodata_section): Remove.
3727         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3728         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3730 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
3732         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3733         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3734         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3735         signature_CENTAUR_ebx.
3736         * config/i386/i386.c (ix86_option_override_internal): Add
3737         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3738         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3739         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3741 2016-06-16  Martin Liska  <mliska@suse.cz>
3743         * predict.def: Add fortran loop preheader predictor.
3744         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3745         fold IFN_BUILTIN_EXPECT with a known constant argument.
3747 2016-06-16  Martin Liska  <mliska@suse.cz>
3749         * predict.def: Add 'Fortran' to display text of all
3750         PRED_FORTRAN_* predictors.
3752 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3754         PR target/71242
3755         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3756         [IA64_BUILTIN_NANSQ]: Ditto.
3757         (ia64_fold_builtin): New function.
3758         (TARGET_FOLD_BUILTIN): New define.
3759         (ia64_init_builtins) Declare const_string_type node.
3760         Add __builtin_nanq and __builtin_nansq builtin functions.
3761         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3763 2016-06-16  Nick Clifton  <nickc@redhat.com>
3765         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3766         MSP430_HWMULT_ prefix to enum values.
3767         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3768         * config/msp430/msp430.c: Update use of enum values.
3769         * config/msp430/msp430.md: Likewise.
3770         * config/msp430/msp430.opt: Likewise.
3772 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
3774         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3775         of comparsions in the last iteration.
3777 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3778             Joern Rennecke  <joern.rennecke@embecosm.com>
3780         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3781         addresses.
3782         (arc_needs_pcl_p): Add GOTOFFPC.
3783         (arc_legitimate_pic_addr_p): Likewise.
3784         (arc_output_pic_addr_const): Likewise.
3785         (arc_legitimize_pic_address): Generate a pc-relative address using
3786         GOTOFFPC.
3787         (arc_output_libcall): Use @pcl syntax.
3788         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3789         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3790         (*movsi_insn): Use @pcl syntax.
3791         (doloop_begin_i): Likewise.
3793 2016-06-16  Martin Liska  <mliska@suse.cz>
3795         * predict.def: Define a new predictor.
3797 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3799         * config/arc/arc.opt (mtp-regno): Update text.
3801 2016-06-16  Renlin Li  <renlin.li@arm.com>
3803         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3805 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3807         PR target/71554
3808         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3809         (setcc + and peephole2): Likewise.
3811         PR rtl-optimization/71532
3812         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3813         memory slots.
3815 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
3817         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3818         DImode constants with XXSPLTIB in vector registers.
3819         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3820         vsx_extract_<mode>_internal{1,2} into a single insn that handles
3821         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3822         extraction of the element at the top of the register as a scalar
3823         value.
3824         (vsx_extract_<mode>_internal1): Likewise.
3825         (vsx_extract_<mode>_internal2): Likewise.
3826         * config/rs6000/constraints.md (wi constraint): Remove a comment
3827         about DImode not being allowed in Altivec registers.
3828         (wB constraint): New constraint for constants that can be
3829         generated in Altivec registers with VSPLTISW/VUPKHSW.
3830         * config/rs6000/predicates.md (xxspltib_constant_split): Update
3831         comments.
3832         (xxspltib_constant_nosplit): Likewise.
3833         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3834         support for -mupper-regs-di to enable DImode to go into Altivec
3835         registers.
3836         (POWERPC_MASKS): Likewise.
3837         (power7 cpu): Likewise.
3838         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3839         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3840         for DImode being allowed in Altivec registers.  Update wi/wj
3841         constraints.  Set scalar_in_vmx_p flag.
3842         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3843         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
3844         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3845         (rs6000_opt_masks): Add -mupper-regs-di.
3846         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3847         direct move to use wi and not wj.
3848         (lfiwzx): Likewise.
3849         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3850         alternative.
3851         (floatunssi<mode>2_lfiwzx_mem): Likewise.
3852         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3853         any VSX register, instead of just Altivec registers, to allow
3854         either operand to be an Altivec register or both.
3855         (fixuns_trunc<mode>di2_fctiduz): Likewise.
3856         (movdi_internal32): Add support for -mupper-regs-di.  Add support
3857         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
3858         the alternatives and attributes to be lined up to be easier to
3859         read.
3860         (movdi_internal64): Likewise.
3861         (64-bit DImode splitters): Change predicates to only split loading
3862         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
3863         load constants in ISA 3.0 or ISA 2.07 respectively.
3864         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3865         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
3866         mention -mcpu=power9 sets these options.
3867         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3868         wB constraint.
3870 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3872         PR target/67353
3873         * config/avr/avr.c (avr_set_current_function): Warn misspelled
3874         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3875         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3876         by default to warn misspelled interrupt/ signal handler.
3877         * doc/invoke.texi (AVR Options): Document it. Update description
3878         for -nodevicelib option.
3880 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3882         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3883         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
3884         (aarch64_<sur>shll2_n<mode>): Likewise.
3886 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3888         PR middle-end/71529
3889         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3890         DECL_CONTEXT for copied arguments.
3892 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3894         PR tree-optimization/71483
3895         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3896         for slp
3898 2016-06-15  Martin Liska  <mliska@suse.cz>
3900         * predict.c (tree_predict_by_opcode): Call predict_edge_def
3901         instead of predict_edge w/o a probability.
3903 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3905         PR tree-optimization/71439
3906         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3907         live PHIs.
3909 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3911         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3912         register subregs in SET_SRC.
3914 2016-06-15  Richard Biener  <rguenther@suse.de>
3916         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3917         store restrictions.
3919 2016-06-15  Richard Biener  <rguenther@suse.de>
3921         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3922         not consider dependences between accesses that belong to the
3923         same group.
3924         (vect_analyze_data_ref_dependences): Do not analyze read-read
3925         or self-dependences.
3927 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3929         * spellcheck-tree.c: Include spellcheck-tree.h rather than
3930         spellcheck.h.
3931         (find_closest_identifier): Reimplement in terms of
3932         best_match<tree,tree>.
3933         * spellcheck-tree.h: New file.
3934         * spellcheck.c (struct edit_distance_traits<const char *>): New
3935         struct.
3936         (find_closest_string): Reimplement in terms of
3937         best_match<const char *, const char *>.
3938         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3939         overload to spellcheck-tree.h.
3940         (find_closest_identifier): Likewise.
3941         (struct edit_distance_traits<T>): New template.
3942         (class best_match): New class.
3944 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3946         * selftest-run-tests.c (selftest::run_tests): Call
3947         selftest::spellcheck_tree_c_tests.
3948         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3949         * spellcheck-tree.c: Include selftest.h and stringpool.h.
3950         (selftest::test_find_closest_identifier): New function.
3951         (selftest::spellcheck_tree_c_tests): New function.
3952         * spellcheck.c (selftest::test_find_closest_string): Verify that
3953         the order of the vec does not affect the results for this case.
3954         (selftest::test_data): New array.
3955         (selftest::test_metric_conditions): New function.
3956         (selftest::spellcheck_c_tests): Add a test of case-comparison.
3957         Call selftest::test_metric_conditions.
3959 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3961         * config/rs6000/rs6000-builtin.def (commentary): Typo.
3962         (BU_P9_MISC_1): Likewise.
3963         (BU_P9_64BIT_MISC_0): Likewise.
3964         (BU_P9_MISC_0): Likewise.
3966 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3968         * gcc-rich-location.c
3969         (gcc_rich_location::add_fixit_misspelled_id): New method.
3970         * gcc-rich-location.h
3971         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3973 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3975         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3976         FreeBSD 11 and above.
3978 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
3980         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3982 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3984         * expmed.h: Close parenthesis in "at your option" in copyright
3985         boilerplate.
3986         * lower-subreg.h: Likewise.
3988 2016-06-14  Richard Biener  <rguenther@suse.de>
3990         PR middle-end/71526
3991         * genmatch.c (expr::gen_transform): Use in_type for comparisons
3992         if available.
3994 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3996         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3997         New function.
3998         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
3999         mask+shift version.
4000         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
4001         New prototype.
4002         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
4003         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
4005 2016-06-14  Richard Biener  <rguenther@suse.de>
4007         PR tree-optimization/71522
4008         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4009         copying into float copying.
4011 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
4013         PR tree-optimization/71520
4014         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
4015         (replace_block_by): Move user labels from bb1 to bb2.
4017 2016-06-14  Richard Biener  <rguenther@suse.de>
4019         PR middle-end/71310
4020         PR bootstrap/71510
4021         * expr.h (get_bit_range): Declare.
4022         * expr.c (get_bit_range): Export.
4023         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
4024         word_mode again to constrain the bitfield access.
4026 2016-06-14  Richard Biener  <rguenther@suse.de>
4028         PR tree-optimization/71521
4029         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4030         division int_const_binop against zero divisor.
4032 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4034         * config/i386/i386.md (signbittf2): New expander.
4035         * config/i386/sse.md (ptesttf2): New insn pattern.
4037 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4039         PR bootstrap/71481
4040         * input.c (selftest::test_reading_source_line): Avoid reading from
4041         __FILE__ by creating a tempfile with known content and reading
4042         from that instead.
4044 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4046         * pretty-print.c (assert_pp_format_colored): Skip the test if
4047         GCC_COLORS is set.
4048         (test_pp_format): Remove comment about GCC_COLORS.
4050 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4052         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
4053         * pretty-print.c (assert_pp_format_va): Add location param and use
4054         it with ASSERT_STREQ_AT.
4055         (assert_pp_format): Add location param and pass it to
4056         assert_pp_format_va.
4057         (assert_pp_format_colored): Likewise.
4058         (ASSERT_PP_FORMAT_1): New.
4059         (ASSERT_PP_FORMAT_2): New.
4060         (ASSERT_PP_FORMAT_3): New.
4061         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
4062         explicitly, or implicitly via the above macros.
4063         * selftest.c (selftest::pass): Use a selftest::location rather
4064         than file and line.
4065         (selftest::fail): Likewise.  Print the function name.
4066         (selftest::fail_formatted): Likewise.
4067         (selftest::assert_streq): Use a selftest::location rather than
4068         file and line.
4069         * selftest.h (selftest::location): New struct.
4070         (SELFTEST_LOCATION): New macro.
4071         (selftest::pass): Accept a const location & rather than file
4072         and line.
4073         (selftest::fail): Likewise.
4074         (selftest::fail_formatted): Likewise.
4075         (selftest::assert_streq): Likewise.
4076         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
4077         (ASSERT_FALSE): Likewise.
4078         (ASSERT_EQ): Likewise.
4079         (ASSERT_NE): Likewise.
4080         (ASSERT_STREQ): Likewise.
4081         (ASSERT_PRED1): Likewise.
4082         (ASSERT_STREQ_AT): New macro.
4084 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4086         * selftest.c (selftest::fail_formatted): New function.
4087         (selftest::assert_streq): New function.
4088         * selftest.h (selftests::fail_formatted): New decl.
4089         (selftest::assert_streq): New decl.
4090         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
4092 2016-06-13  Jeff Law  <law@redhat.com>
4094         PR tree-optimization/71403
4095         * tree-ssa-threadbackward.c
4096         (convert_and_register_jump_thread_path): No longer accept reference
4097         to path.  Do not pop items off the path anymore.
4098         (fsm_find_control_statement_thread_paths): Do not allow threading
4099         to a deeper loop nest.  Pop the last item off the path here rather
4100         than in convert_and_register_jump_thread_path.
4102 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4103             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
4105         [AArch64] Emit division using the Newton series
4107         * config/aarch64/aarch64-protos.h
4108         (cpu_approx_modes): Add new member "division".
4109         (aarch64_emit_approx_div): Declare new function.
4110         * config/aarch64/aarch64.c
4111         (generic_approx_modes): New member "division".
4112         (exynosm1_approx_modes): Likewise.
4113         (xgene1_approx_modes): Likewise.
4114         (aarch64_emit_approx_div): Define new function.
4115         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
4116         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
4117         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
4118         * doc/invoke.texi (-mlow-precision-div): Describe new option.
4120 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4121             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4123         [AArch64] Emit square root using the Newton series
4125         * config/aarch64/aarch64-protos.h
4126         (aarch64_emit_approx_rsqrt): Replace with new function
4127         "aarch64_emit_approx_sqrt".
4128         (cpu_approx_modes): New member "sqrt".
4129         * config/aarch64/aarch64.c
4130         (generic_approx_modes): New member "sqrt".
4131         (exynosm1_approx_modes): Likewise.
4132         (xgene1_approx_modes): Likewise.
4133         (aarch64_emit_approx_rsqrt): Replace with new function
4134         "aarch64_emit_approx_sqrt".
4135         (aarch64_override_options_after_change_1): Handle new option.
4136         * config/aarch64/aarch64-simd.md
4137         (rsqrt<mode>2): Use new function instead.
4138         (sqrt<mode>2): New expansion and insn definitions.
4139         * config/aarch64/aarch64.md: Likewise.
4140         * config/aarch64/aarch64.opt
4141         (mlow-precision-sqrt): Add new option description.
4142         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
4144 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4146         [AArch64] Add more choices for the reciprocal square root approximation
4148         Allow a target to prefer such operation depending on the operation mode.
4150         * config/aarch64/aarch64-protos.h
4151         (AARCH64_APPROX_MODE): New macro.
4152         (AARCH64_APPROX_{NONE,ALL}): Likewise.
4153         (cpu_approx_modes): New structure.
4154         (tune_params): New member "approx_modes".
4155         * config/aarch64/aarch64-tuning-flags.def
4156         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
4157         * config/aarch64/aarch64.c
4158         (generic_approx_modes): New core "cpu_approx_modes" structure.
4159         (exynosm1_approx_modes): Likewise.
4160         (xgene1_approx_modes): Likewise.
4161         (generic_tunings): New member "approx_modes".
4162         (cortexa35_tunings): Likewise.
4163         (cortexa53_tunings): Likewise.
4164         (cortexa57_tunings): Likewise.
4165         (cortexa72_tunings): Likewise.
4166         (exynosm1_tunings): Likewise.
4167         (thunderx_tunings): Likewise.
4168         (xgene1_tunings): Likewise.
4169         (use_rsqrt_p): New argument for the mode and use new member from
4170         "tune_params".
4171         (aarch64_builtin_reciprocal): Devise mode from builtin.
4172         (aarch64_optab_supported_p): New argument for the mode.
4173         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
4175 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4177         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4178         RS6000_BTM_MODULO flag into the set of flags that are considered
4179         to be part of the common configuration.
4181 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4183         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4184         difference unsigned.
4185         (vec_absdb): New macro for vector absolute difference unsigned
4186         byte.
4187         (vec_absdh): New macro for vector absolute difference unsigned
4188         half-word.
4189         (vec_absdw): New macro for vector absolute difference unsigned word.
4190         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4191         (vadu<mode>3): New insn.
4192         (*p9_vadu<mode>3): New insn.
4193         * config/rs6000/rs6000-builtin.def (vadub): New built-in
4194         definition.
4195         (vaduh): New built-in definition.
4196         (vaduw): New built-in definition.
4197         (vadu): New overloaded built-in definition.
4198         (vadub): New overloaded built-in definition.
4199         (vaduh): New overloaded built-in definition.
4200         (vaduw): New overloaded built-in definition.
4201         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4202         overloaded vector absolute difference unsigned functions.
4203         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4204         the ISA 3.0 vector absolute difference unsigned built-in functions.
4206 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4208         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
4209         update shared_lookup_references only once after changing operands.
4211 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
4213         PR middle-end/71373
4214         * tree-nested.c (convert_nonlocal_omp_clauses)
4215         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
4217         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
4218         * tree.def (CASE_LABEL_EXPR): Likewise.
4220 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4222         PR bootstrap/71481
4223         * input.c (test_builtins): Fix an assertion.
4225 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4227         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
4228         (paritysi2): Ditto.
4229         (isinfxf2): Ditto.
4230         (isinf<mode>2): Ditto.
4232 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4234         * ggc-tests.c (test_finalization): Only test need_finalization_p
4235         for GCC_VERSION >= 4003.
4237 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4239         * config/s390/vecintrin.h: Fix file description in comment.
4241 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4243         * config/s390/s390-builtin-types.def: Change builtin type naming
4244         scheme to match builtin-types.def.
4246 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
4248         * fold-const.c (optimize_minmax_comparison): Remove.
4249         (fold_comparison): Remove call to the above.
4250         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
4251         New transformations.
4253 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
4255         PR tree-optimization/71416
4256         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
4257         multiple entries
4259 2016-06-13  Martin Liska  <mliska@suse.cz>
4261         * predict.c (enum predictor_reason): Prefix enum with REASON_.
4262         (combine_predictions_for_insn): Likewise.
4263         (prune_predictions_for_bb): Likewise.
4264         (combine_predictions_for_bb): Likewise.
4266 2016-06-13  Richard Biener  <rguenther@suse.de>
4268         PR tree-optimization/71505
4269         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
4270         assert match comment.
4272 2016-06-13  Marek Polacek  <polacek@redhat.com>
4274         PR middle-end/71476
4275         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4276         gimplify_switch_expr.
4277         (warn_switch_unreachable_r): New function.
4279 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4281         PR target/71379
4282         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4283         one.
4285 2016-06-13  Richard Biener  <rguenther@suse.de>
4287         PR middle-end/64516
4288         * fold-const.c (fold_unary_loc): Preserve alignment when
4289         folding a VIEW_CONVERT_EXPR into a MEM_REF.
4291 2016-06-13  Martin Liska  <mliska@suse.cz>
4293         PR sanitizer/71458
4294         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4295         w/ -fsanitize=bounds.
4297 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4299         * config/i386/i386.c (ix86_init_builtins): Calculate
4300         FLOAT128_FTYPE_CONST_STRING function type only once.
4301         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4302         built-in functions are available for x86-32 and x86-64 targets.
4304 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4306         PR target/71241
4307         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4308         New primitive type.
4309         (FLOAT128_FTYPE_CONST_STRING): New function type.
4310         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4311         [IX86_BUILTIN_NANSQ]: Ditto.
4312         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4313         (ix86_init_builtin_types): Declare const_string_type_node.
4314         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4315         builtin functions.
4316         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4317         * doc/extend.texi (x86 Built-in Functions): Document
4318         __builtin_nanq and __builtin_nansq.
4320 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
4322         PR target/71061
4323         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4324         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4325         length for pop patterns.
4326         (arm_attr_length_push_multi): Update comments.
4327         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4328         attribute.
4329         (*pop_multiple_with_writeback_and_return): Likewise.
4330         (*pop_multiple_with_return): Likewise.
4332 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
4334         PR middle-end/71310
4335         * fold-const.c (optimize_bit_field_compare): Don't try to use
4336         word_mode unconditionally for reading the bit field, look at
4337         DECL_BIT_FIELD_REPRESENTATIVE instead.
4339 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
4341         PR middle-end/71478
4342         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4343         vector integer type.
4345 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
4347         PR middle-end/71494
4348         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4349         without LABEL_DECL, set *handled_ops_p to false instead of true.
4351 2016-06-10  Martin Sebor  <msebor@redhat.com>
4353         PR c/71392
4354         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4355         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4356         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4357         them.
4358         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4359         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4360         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4361         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4362         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4363         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4364         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4365         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4367 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4369         * config/arm/arm.h (pool_vector_label,
4370         return_used_this_function): Remove.
4372 2016-06-10  Jeff Law  <law@redhat.com>
4374         PR tree-optimization/71335
4375         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4376         zero length paths here.
4377         (convert_and_register_jump_thread_path): Remove hacks related to
4378         duplicated blocks in the jump thread path.
4379         (fsm_find_control_statement_thread_paths): Avoid putting the same
4380         block on the thread path twice, but ensure the thread path is
4381         unchanged from the caller's point of view.
4383 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4385         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4386         * predict.def (PRED_LOOP_BRANCH): Remove.
4388 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
4390         * Makefile.in (OBJS): Add ggc-tests.o.
4391         (GTFILES): Add ggc-tests.c.
4392         * ggc-tests.c: New file.
4393         * selftest-run-tests.c (selftest::run_tests): Call
4394         selftest::ggc_tests_c_tests.
4395         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4397 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
4399         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4401 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
4403         PR sanitizer/71480
4404         * varasm.c (place_block_symbol): Adjust alignment for asan protected
4405         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4407 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4409         * profile.c: Include cfgloop.h.
4410         (branch_prob): Compute estimated number of iterations.
4411         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4412         recompute estimate number of iterations from profile.
4414 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4416         PR inline-asm/68843
4417         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4418         must be grouped on top of stack.  Don't force early clobber
4419         on ordinary reg outputs.
4421 2016-06-10  Richard Biener  <rguenther@suse.de>
4423         * targhooks.c (default_builtin_vectorization_cost): Adjust
4424         vec_construct cost.
4426 2016-06-10  Richard Biener  <rguenther@suse.de>
4428         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4429         to fold the RHS to a constant if possible.
4431 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4433         PR middle-end/71373
4434         * tree-nested.c (convert_nonlocal_omp_clauses)
4435         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4436         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4437         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4439         * gimplify.c (gimplify_adjust_omp_clauses): Discard
4440         OMP_CLAUSE_TILE.
4441         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4443         * omp-low.c (scan_sharing_clauses): Don't expect
4444         OMP_CLAUSE__CACHE_.
4446 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
4448         PR tree-optimization/71407
4449         PR tree-optimization/71416
4450         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4451         BIT_FIELD_REF type.
4453 2016-06-10  Richard Biener  <rguenther@suse.de>
4455         PR middle-end/71477
4456         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4458 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4460         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4462 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
4463             Jiong Wang  <jiong.wang@arm.com>
4465         PR rtl-optimization/70751
4466         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4467         spilled into memory.
4469 2016-06-09  Jonathan Yong  <10walls@gmail.com>
4471         Revert:
4472         2015-09-21  Jonathan Yong  <10walls@gmail.com>
4474         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4475         sysroot/usr/lib/32api for additional win32 libraries,
4476         fixes failing Cygwin bootstrapping.
4478 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
4480         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4481         Delete.
4483 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
4485         PR bootstrap/71471
4486         * pretty-print.c (pp_indent): Specify that %p is printed in a
4487         host-dependent manner.
4488         (test_pp_format): Remove the test for %p.
4490 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
4492         * config/mips/mips.c (mips_output_jump): Fix formatting.
4494 2016-06-09  Richard Biener  <rguenther@suse.de>
4496         PR tree-optimization/71462
4497         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4498         removed blocks.
4500 2016-06-09  Martin Liska  <mliska@suse.cz>
4502         * predict.c (dump_prediction): Add new argument.
4503         (enum predictor_reason): New enum.
4504         (struct predictor_hash): New struct.
4505         (predictor_hash::hash): New function.
4506         (predictor_hash::equal): Likewise.
4507         (not_removed_prediction_p): New function.
4508         (prune_predictions_for_bb): Likewise.
4509         (combine_predictions_for_bb): Prune predictions.
4511 2016-06-09  Martin Liska  <mliska@suse.cz>
4513         * predict.c (filter_predictions): New function.
4514         (remove_predictions_associated_with_edge): Use the filter
4515         function.
4516         (equal_edge_p): New function.
4518 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
4520         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4521         Correct usage of @samp vs @option, add @samp where appropriate.
4522         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4523         Add armv6s-m and document it, as it is no official ARM name.
4525 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4527         * ifcvt.c (struct noce_if_info): Add transform_name field.
4528         (noce_try_move): Set if_info->transform_name to the function name.
4529         (noce_try_ifelse_collapse): Likewise.
4530         (noce_try_store_flag): Likewise.
4531         (noce_try_inverse_constants): Likewise.
4532         (noce_try_store_flag_constants): Likewise.
4533         (noce_try_addcc): Likewise.
4534         (noce_try_store_flag_mask): Likewise.
4535         (noce_try_cmove): Likewise.
4536         (noce_try_cmove_arith): Likewise.
4537         (noce_try_minmax): Likewise.
4538         (noce_try_abs): Likewise.
4539         (noce_try_sign_mask): Likewise.
4540         (noce_try_bitop): Likewise.
4541         (noce_convert_multiple_sets): Likewise.
4542         (noce_process_if_block): Print if_info->transform_name to
4543         dump_file if transformation succeeded.
4545 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4547         * config/arm/cortex-a57.md (cortex_a57_alu):
4548         Handle csel type.
4550 2016-06-08  Martin Sebor  <msebor@redhat.com>
4551             Jakub Jelinek  <jakub@redhat.com>
4553         PR c++/70507
4554         PR c/68120
4555         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4556         BUILT_IN_MUL_OVERFLOW_P): New builtins.
4557         * builtins.c: Include gimple-fold.h.
4558         (fold_builtin_arith_overflow): Handle
4559         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4560         (fold_builtin_3): Likewise.
4561         * doc/extend.texi (Integer Overflow Builtins): Document
4562         __builtin_{add,sub,mul}_overflow_p.
4564 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
4566         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4567         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4569 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
4571         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4572         Rewrite, looking one level down for records and arrays.
4574 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
4576         * pretty-print.c: Include "selftest.h".
4577         (pp_format): Fix comment.
4578         (identifier_to_locale): Likewise.
4579         (selftest::test_basic_printing): New function.
4580         (selftest::assert_pp_format): New function.
4581         (selftest::test_pp_format): New function.
4582         (selftest::pretty_print_c_tests): New function.
4583         * selftest-run-tests.c (selftest::run_tests): Call
4584         selftest::pretty_print_c_tests.
4585         * selftest.h (pretty_print_c_tests): New declaration.
4587 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4589         * invoke.texi (max-loop-headers-insns): Document.
4590         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4591         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4592         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4594 2016-06-08  Richard Biener  <rguenther@suse.de>
4596         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4597         on strided SLP loads and fall back to scalar loads in case
4598         we can't chunk them.
4600 2016-06-08  Richard Biener  <rguenther@suse.de>
4602         PR tree-optimization/71452
4603         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4604         type used for the SSA rewrite has enough precision to cover
4605         the dynamic type of the location.
4607 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
4608             Richard Biener  <rguenther@suse.de>
4610         PR c++/71448
4611         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4612         the same as DECL_P (base0) for indirect_base0.  Use equality_code
4613         in one further place.
4615 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
4617         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4618         to one word if the field is known to overlap other words.
4619         (extract_bit_field_1): Likewise.
4620         (store_split_bit_field): Remove compensating code.
4621         (extract_split_bit_field): Likewise.
4623 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
4625         PR debug/71432
4626         PR ada/71413
4627         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4629 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4631         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4632         VDQF.
4633         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4634         (arch64_addpv4sf): Delete.
4635         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4636         "gen_aarch64_addpv4sf".
4637         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
4638         builtin.
4639         (vpadds_f32): Likewise.
4640         (vpaddq_f32): Likewise.
4641         (vpaddq_f64): Likewise.
4643 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4645         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4646         VALLF.
4647         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4648         to VALLF.  Rename to "fabd<mode>3".
4649         "*fabd_scalar<mode>3): Delete.
4650         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4651         Use builtin.
4652         (vabdd_f64): Likewise.
4653         (vabd_f32): Likewise.
4654         (vabd_f64): Likewise.
4655         (vabdq_f32): Likewise.
4656         (vabdq_f64): Likewise.
4658 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4660         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4661         VALLF.
4662         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4663         "aarch64_rsqrts<mode>".
4664         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4665         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
4666         builtin.
4667         (vrsqrtsd_f64): Likewise.
4668         (vrsqrts_f32): Likewise.
4669         (vrsqrts_f64): Likewise.
4670         (vrsqrtsq_f32): Likewise.
4671         (vrsqrtsq_f64): Likewise.
4673 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4675         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4676         VALLF.
4677         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4678         "aarch64_rsqrte<mode>".
4679         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4680         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
4681         builtin.
4682         (vrsqrted_f64): Likewise.
4683         (vrsqrte_f32): Likewise.
4684         (vrsqrte_f64): Likewise.
4685         (vrsqrteq_f32): Likewise.
4686         (vrsqrteq_f64): Likewise.
4688 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4690         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4691         (ucvtf): Likewise.
4692         (fcvtzs): Likewise.
4693         (fcvtzu): Likewise.
4694         * config/aarch64/aarch64-simd.md
4695         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4696         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4697         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4698         Use builtin.
4699         (vcvt_n_f32_u32): Likewise.
4700         (vcvt_n_s32_f32): Likewise.
4701         (vcvt_n_u32_f32): Likewise.
4702         (vcvtq_n_f32_s32): Likewise.
4703         (vcvtq_n_f32_u32): Likewise.
4704         (vcvtq_n_f64_s64): Likewise.
4705         (vcvtq_n_f64_u64): Likewise.
4706         (vcvtq_n_s32_f32): Likewise.
4707         (vcvtq_n_s64_f64): Likewise.
4708         (vcvtq_n_u32_f32): Likewise.
4709         (vcvtq_n_u64_f64): Likewise.
4710         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4711         (VSDQ_SDI): Likewise.
4712         (fcvt_target): Support V4DI, V4SI and V2SI.
4713         (FCVT_TARGET): Likewise.
4715 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4717         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4718         (TYPES_BINOP_SUS): Likewise.
4719         (aarch64_simd_builtin_data): Update include file name.
4720         (aarch64_builtins): Likewise.
4721         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4722         for conversion between scalar float-point and fixed-point.
4723         (ucvtf): Likewise.
4724         (fcvtzs): Likewise.
4725         (fcvtzu): Likewise.
4726         * config/aarch64/aarch64.md
4727         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4728         pattern for conversion between scalar float to fixed-pointer.
4729         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4730         (UNSPEC_FCVTZS): New UNSPEC enumeration.
4731         (UNSPEC_FCVTZU): Likewise.
4732         (UNSPEC_SCVTF): Likewise.
4733         (UNSPEC_UCVTF): Likewise.
4734         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4735         Use builtin.
4736         (vcvtd_n_f64_u64): Likewise.
4737         (vcvtd_n_s64_f64): Likewise.
4738         (vcvtd_n_u64_f64): Likewise.
4739         (vcvtd_n_f32_s32): Likewise.
4740         (vcvts_n_f32_u32): Likewise.
4741         (vcvtd_n_s32_f32): Likewise.
4742         (vcvts_n_u32_f32): Likewise.
4743         * config/aarch64/iterators.md (fcvt_target): Support integer to float
4744         mapping.
4745         (FCVT_TARGET): Likewise.
4746         (FCVT_FIXED2F): New iterator.
4747         (FCVT_F2FIXED): Likewise.
4748         (fcvt_fixed_insn): New define_int_attr.
4750 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4752         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4753         some statements was removed.
4755 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
4757         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4758         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4759         (vect_can_advance_ivs_p): likewise.
4760         (vect_update_ivs_after_vectorizer): likewise.
4761         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4762         (vect_analyze_scalar_cycles_1): likewise.
4763         (vect_analyze_loop_operations): likewise.
4764         (report_vect_op): likewise.
4765         (vect_is_slp_reduction): likewise.
4766         (vect_is_simple_reduction): likewise.
4767         (get_initial_def_for_induction): likewise.
4768         (vect_transform_loop): likewise.
4769         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4770         (vect_recog_sad_pattern): likewise.
4771         (vect_recog_widen_sum_pattern): likewise.
4772         (vect_recog_widening_pattern): likewise.
4773         (vect_recog_divmod_pattern): likewise.
4774         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4775         (vect_analyze_slp_instance): likewise.
4776         (vect_transform_slp_perm_load): likewise.
4777         (vect_schedule_slp_instance): likewise.
4779 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4781         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4782         (return_prediction): PRED_CONST_RETURN predict return as not taken.
4783         * predict.def (PRED_CONTINUE): Change hitrate 50->67
4784         (PRED_LOOP_BRANCH): Document predictor as broken.
4785         (PRED_LOOP_EXIT): Change hitrate 91->92.
4786         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4787         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4788         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4789         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4790         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4791         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4792         (PRED_CALL): Chane hitrate 71->67.
4793         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4794         (PRED_GOTO): Document as unused right now.
4795         (PRED_CONST_RETURN): Change hitrate 67->69
4796         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4797         (PRED_NULL_RETURN): Change hitrate 91->90.
4798         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4799         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4800         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4802 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
4804         * config/rs6000/altivec.h: Add __builtin_vec_mul.
4805         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4806         special case Altivec builtin.
4807         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4808         VSX_BUILTIN_VEC_MUL (replaced with special case code).
4809         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4810         code for ALTIVEC_BUILTIN_VEC_MUL.
4811         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4812         for __builtin_vec_mul.
4814 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
4816         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4817         -mno-htm.
4819 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
4821         * spellcheck.c (selftest::test_find_closest_string): New function.
4822         (spellcheck_c_tests): Call the above.
4824 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4826         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4828 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
4830         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4831         Yv=Yv,C alternatives.
4833 2016-06-07  Richard Biener  <rguenther@suse.de>
4835         PR c/61564
4836         * common.opt (ffast-math): Make Optimization.
4838 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
4839             Prachi Godbole  <prachi.godbole@imgtec.com>
4841         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4842         `fabs' and `fneg' type attributes.
4843         (p5600_fpu_fabs): Add `fmove' to the comment.
4845 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4847         * gimple.c: Include builtins.h
4848         (gimple_inexpensive_call_p): New function.
4849         * gimple.h (gimple_inexpensive_call_p): Declare.
4850         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4851         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4852         fix formatting.
4854 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
4856         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4857         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4858         warning_at_rich_loc, warning_n, pedwarn, permerror,
4859         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4860         sorry, fatal_error, internal_error, internal_error_no_backtrace):
4861         Use the above.
4863 2016-06-07  Richard Biener  <rguenther@suse.de>
4865         PR tree-optimization/71428
4866         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4867         BIT_FIELD_REF op vs. load.
4869 2016-06-07  Richard Biener  <rguenther@suse.de>
4871         PR middle-end/71423
4872         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4873         for signed ops.
4875 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4877         * config/pa/pa.md (call): Generate indirect long calls to non-local
4878         functions on TARGET_64BIT.
4879         (call_value): Likewise.
4881 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4883         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4884         pattern and subsequent splitters.
4885         (call_val_reg_64bit_post_reload): Likewise.
4887 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4889         PR middle-end/71408
4890         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4891         propagate_op_to_single_use.
4893 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4895         PR middle-end/71281
4896         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4898 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
4900         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4901         (enum x86_dirflag_state): New enum.
4902         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4903         (machine_function): Remove needs_cld.
4904         (ix86_current_function_needs_cld): Remove.
4905         * config/i386/i386.c (ix86_set_func_type): Set
4906         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4907         (ix86_expand_prologue): Do not emit CLD here.
4908         (ix86_dirflag_mode_needed): New function.
4909         (ix86_dirflag_mode_entry): Ditto.
4910         (ix86_mode_needed): Handle X86_DIRFLAG entity.
4911         (ix86_mode_after): Ditto.
4912         (ix86_mode_entry): Ditto.
4913         (ix86_mode_exit): Ditto.
4914         (ix86_emit_mode_set): Ditto.
4915         * config/i386/i386.md (strmov_singleop): Set
4916         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4917         Do not set ix86_current_function_needs_cld.
4918         (rep_mov): Ditto.
4919         (strset_singleop): Ditto.
4920         (rep_stos): Ditto.
4921         (cmpstrnqi_nz_1): Ditto.
4922         (cmpstrnqi_1): Ditto.
4923         (strlenqi_1): Ditto.
4925 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
4927         PR tree-optimization/71259
4928         * tree-vect-slp.c (vect_get_constant_vectors): For
4929         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4930         one for constant op, and use COND_EXPR for non-constant.
4932 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
4934         * Makefile.in (OBJS): Add function-tests.o,
4935         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4936         selftest-run-tests.o.
4937         (OBJS-libcommon): Add selftest.o.
4938         (OBJS-libcommon-target): Add selftest.o.
4939         (all.internal): Add "selftest".
4940         (all.cross): Likewise.
4941         (selftest): New phony target.
4942         (s-selftest): New target.
4943         (selftest-gdb): New phony target.
4944         (COLLECT2_OBJS): Add selftest.o.
4945         * bitmap.c: Include "selftest.h".
4946         (selftest::test_gc_alloc): New function.
4947         (selftest::test_set_range): New function.
4948         (selftest::test_clear_bit_in_middle): New function.
4949         (selftest::test_copying): New function.
4950         (selftest::test_bitmap_single_bit_set_p): New function.
4951         (selftest::bitmap_c_tests): New function.
4952         * common.opt (fself-test): New.
4953         * diagnostic-show-locus.c: Include "selftest.h".
4954         (make_range): New function.
4955         (test_range_contains_point_for_single_point): New function.
4956         (test_range_contains_point_for_single_line): New function.
4957         (test_range_contains_point_for_multiple_lines): New function.
4958         (assert_eq): New function.
4959         (test_get_line_width_without_trailing_whitespace): New function.
4960         (selftest::diagnostic_show_locus_c_tests): New function.
4961         * et-forest.c: Include "selftest.h".
4962         (selftest::test_single_node): New function.
4963         (selftest::test_simple_tree): New function.
4964         (selftest::test_disconnected_nodes): New function.
4965         (selftest::et_forest_c_tests): New function.
4966         * fold-const.c: Include "selftest.h".
4967         (selftest::assert_binop_folds_to_const): New function.
4968         (selftest::assert_binop_folds_to_nonlvalue): New function.
4969         (selftest::test_arithmetic_folding): New function.
4970         (selftest::fold_const_c_tests): New function.
4971         * function-tests.c: New file.
4972         * gimple.c: Include "selftest.h".
4973         Include "gimple-pretty-print.h".
4974         (selftest::verify_gimple_pp): New function.
4975         (selftest::test_assign_single): New function.
4976         (selftest::test_assign_binop): New function.
4977         (selftest::test_nop_stmt): New function.
4978         (selftest::test_return_stmt): New function.
4979         (selftest::test_return_without_value): New function.
4980         (selftest::gimple_c_tests): New function.
4981         * hash-map-tests.c: New file.
4982         * hash-set-tests.c: New file.
4983         * input.c: Include "selftest.h".
4984         (selftest::assert_loceq): New function.
4985         (selftest::test_accessing_ordinary_linemaps): New function.
4986         (selftest::test_unknown_location): New function.
4987         (selftest::test_builtins): New function.
4988         (selftest::test_reading_source_line): New function.
4989         (selftest::input_c_tests): New function.
4990         * rtl-tests.c: New file.
4991         * selftest-run-tests.c: New file.
4992         * selftest.c: New file.
4993         * selftest.h: New file.
4994         * spellcheck.c: Include "selftest.h".
4995         (selftest::levenshtein_distance_unit_test_oneway): New function,
4996         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4997         (selftest::levenshtein_distance_unit_test): Likewise.
4998         (selftest::spellcheck_c_tests): Likewise.
4999         * toplev.c: Include selftest.h.
5000         (toplev::run_self_tests): New.
5001         (toplev::main): Handle -fself-test.
5002         * toplev.h (toplev::run_self_tests): New.
5003         * tree.c: Include "selftest.h".
5004         (selftest::test_integer_constants): New function.
5005         (selftest::test_identifiers): New function.
5006         (selftest::test_labels): New function.
5007         (selftest::tree_c_tests): New function.
5008         * tree-cfg.c: Include "selftest.h".
5009         (selftest::push_fndecl): New function.
5010         (selftest::test_linear_chain): New function.
5011         (selftest::test_diamond): New function.
5012         (selftest::test_fully_connected): New function.
5013         (selftest::tree_cfg_c_tests): New function.
5014         * vec.c: Include "selftest.h".
5015         (selftest::safe_push_range): New function.
5016         (selftest::test_quick_push): New function.
5017         (selftest::test_safe_push): New function.
5018         (selftest::test_truncate): New function.
5019         (selftest::test_safe_grow_cleared): New function.
5020         (selftest::test_pop): New function.
5021         (selftest::test_safe_insert): New function.
5022         (selftest::test_ordered_remove): New function.
5023         (selftest::test_unordered_remove): New function.
5024         (selftest::test_block_remove): New function.
5025         (selftest::reverse_cmp): New function.
5026         (selftest::test_qsort): New function.
5027         (selftest::vec_c_tests): New function.c.
5028         * wide-int.cc: Include selftest.h and wide-int-print.h.
5029         (selftest::from_int <wide_int>): New function.
5030         (selftest::from_int <offset_int>): New function.
5031         (selftest::from_int <widest_int>): New function.
5032         (selftest::assert_deceq): New function.
5033         (selftest::assert_hexeq): New function.
5034         (selftest::test_printing <VALUE_TYPE>): New function template.
5035         (selftest::test_ops <VALUE_TYPE>): New function template.
5036         (selftest::test_comparisons <VALUE_TYPE>): New function template.
5037         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
5038         template.
5039         (selftest::wide_int_cc_tests): New function.
5041 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5043         PR middle-end/37780
5044         * ifcvt.c (noce_try_ifelse_collapse): New function.
5045         Declare prototype.
5046         (noce_process_if_block): Call noce_try_ifelse_collapse.
5047         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
5048         (simplify_ternary_operation): Use the above to simplify
5049         conditional CLZ/CTZ expressions.
5051 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5053         PR middle-end/37780
5054         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
5055         define_insn_and_split.
5057 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5059         PR middle-end/37780
5060         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
5062 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5064         PR c/24414
5065         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
5066         Implicitly clobber memory for basic asm with non-empty assembler
5067         string.  Use targetm.md_asm_adjust also here.
5068         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
5069         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
5070         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
5071         non-empty assembler string.
5072         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
5073         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
5074         (decode_asm_operands): Handle basic asm in PARALLEL block.
5075         (extract_insn): Handle basic asm in PARALLEL block.
5076         * doc/extend.texi: Mention new behavior of basic asm.
5077         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
5078         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
5079         branch_needs_nop_p): Use asm_noperands.
5081 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
5083         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5084         Include the M7 SPARC DFA scheduler.
5085         New attribute v3pipe.
5086         Annotate insns with v3pipe where appropriate.
5087         Define cpu_feature vis4.
5088         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5089         Add (V8QI "8") to vbits.
5090         Add insns {add,sub}v8qi3
5091         Add insns ss{add,sub}v8qi3
5092         Add insns us{add,sub}{v8qi,v4hi}3
5093         Add insns {min,max}{v8qi,v4hi,v2si}3
5094         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5095         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5096         * config/sparc/niagara4.md: Add a comment explaining the
5097         discrepancy between the documented latenty numbers and the
5098         implemented ones.
5099         * config/sparc/niagara7.md: New file.
5100         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5101         supports SPARC5 and VIS 4.0 instructions.
5102         * configure: Regenerate.
5103         * config.in: Likewise.
5104         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5105         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5106         TARGET_CPU_niagara7.
5107         (ASM_CPU64_DEFAULT_SPEC): Likewise.
5108         (CPP_CPU_SPEC): Handle niagara7.
5109         (ASM_CPU_SPEC): Likewise.
5110         * config/sparc/sparc-opts.h (processor_type): Add
5111         PROCESSOR_NIAGARA7.
5112         (mvis4): New option.
5113         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5114         (AS_NIAGARA7_FLAG): Define.
5115         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5116         (CPP_CPU64_DEFAULT_SPEC): Likewise.
5117         (CPP_CPU_SPEC): Handle niagara7.
5118         (ASM_CPU_SPEC): Likewise.
5119         * config/sparc/sparc.c (niagara7_costs): Define.
5120         (sparc_option_override): Handle niagara7 and adjust cache-related
5121         parameters with better values for niagara cpus.  Also support VIS4.
5122         (sparc32_initialize_trampoline): Likewise.
5123         (sparc_use_sched_lookahead): Likewise.
5124         (sparc_issue_rate): Likewise.
5125         (sparc_register_move_cost): Likewise.
5126         (dump_target_flag_bits): Support VIS4.
5127         (sparc_vis_init_builtins): Likewise.
5128         (sparc_builtins): Likewise.
5129         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5130         VIS4 4.0.
5131         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5132         UltraSparc M7.
5133         * config/sparc/sparc.opt (sparc_processor_type): New value
5134         niagara7.
5135         * config/sparc/visintrin.h (__attribute__): Prototypes for the
5136         VIS4 builtins.
5137         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5138         -mvis4.
5139         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5140         VIS4 builtins.
5142 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
5144         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
5146 2016-06-06  Richard Biener  <rguenther@suse.de>
5148         PR tree-optimization/71398
5149         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
5150         remove edges.
5152 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
5154         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
5155         ft32_expand_prolog, ft32_expand_epilogue):
5156         Handle pretend_args.
5157         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
5158         * config/ft32/ft32.md: Add pretend_returner.
5160 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
5162         PR target/71389
5163         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5164         Copy op1 RTX to avoid invalid sharing.
5165         (ix86_expand_vector_move_misalign): Ditto.
5167 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
5169         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
5170         ATTRIBUTE_UNUSED.
5172 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5174         * predict.c (predicted_by_loop_heuristics_p): New function.
5175         (predict_iv_comparison): Use it.
5176         (predict_loops): Walk from innermost loops; do not predict edges
5177         leaving multiple loops multiple times; implement
5178         PRED_LOOP_ITERATIONS_MAX heuristics.
5179         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
5181 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5183         * cfg.c (check_bb_profile): Do not report mismatched profiles when
5184         only edges out of BB are EH edges.
5186 2016-06-04  Martin Sebor  <msebor@redhat.com>
5187             Marcin Baczyński  <marbacz@gmail.com>
5189         PR c/48116
5190         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
5191         a void expression in a void function.
5193 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5195         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
5196         aux; dump reasons of decisions.
5197         (should_duplicate_loop_header_p): Likewise.
5198         (do_while_loop_p): Likewise.
5199         (ch_base::copy_headers): Dump asi num insns duplicated.
5201 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
5203         PR tree-optimization/71405
5204         * tree-ssa.c (execute_update_addresses_taken): For clobber with
5205         incompatible type, build a new clobber with the right type instead
5206         of building a VIEW_CONVERT_EXPR around it.
5208 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5210         PR tree-optimization/52171
5211         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
5212         by_pieces_ninsns instead of move_by_pieces_ninsns.
5214 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5216         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
5217         for reg+reg addressing mode.
5219 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5221         * rs6000-c.c (c/c-tree.h): Add #include.
5222         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
5223         in C++ when found in the base position of vec_ld or vec_st.
5225 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5227         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
5228         use of profile unless profile status is PROFILE_READ.
5229         * profile.c (compute_branch_probabilities): Set profile status
5230         only after reporting predictor hitrates.
5232 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
5234         PR target/71276
5235         PR target/71277
5236         * common.opt (ffp-int-builtin-inexact): New option.
5237         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
5238         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
5239         (ceil@var{m}2): Document dependence on this option.
5240         * ipa-inline-transform.c (inline_call): Handle
5241         flag_fp_int_builtin_inexact.
5242         * ipa-inline.c (can_inline_edge_p): Likewise.
5243         * config/i386/i386.md (rintxf2): Do not test
5244         flag_unsafe_math_optimizations.
5245         (rint<mode>2_frndint): New define_insn.
5246         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
5247         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
5248         for 387 instead of extending and truncating.
5249         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
5250         !flag_trapping_math instead of flag_unsafe_math_optimizations.
5251         Change to frndint<mode>2_<rounding>.
5252         (frndintxf2_<rounding>_i387): Likewise.  Change to
5253         frndint<mode>2_<rounding>_i387.
5254         (<rounding_insn>xf2): Likewise.
5255         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
5256         !flag_trapping_math instead of flag_unsafe_math_optimizations for
5257         x87.  Test TARGET_ROUND || !flag_trapping_math ||
5258         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
5259         SSE.  Use ROUND_NO_EXC in constant operand of
5260         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
5261         for 387 instead of extending and truncating.
5263 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5264             Julia Koval  <julia.koval@intel.com>
5266         PR target/66960
5267         PR target/67630
5268         PR target/67634
5269         PR target/67841
5270         PR target/68037
5271         PR target/68618
5272         PR target/68661
5273         PR target/69575
5274         PR target/69596
5275         PR target/69734
5276         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5277         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5278         all registers, except for function return registers if there are
5279         no caller-saved registers.
5280         (ix86_set_func_type): New function.
5281         (ix86_set_current_function): Call ix86_set_func_type to set
5282         no_caller_saved_registers and func_type.  Call reinit_regs if
5283         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
5284         nor x87 instructions in interrupt handler nor function with
5285         no_caller_saved_registers attribute.
5286         (ix86_function_ok_for_sibcall): Return false if there are no
5287         caller-saved registers.
5288         (type_natural_mode): Don't warn ABI change for MMX in interrupt
5289         handler.
5290         (ix86_function_arg_advance): Skip for callee in interrupt handler.
5291         (ix86_function_arg): Return special arguments in interrupt handler.
5292         (ix86_promote_function_mode): Promote pointer to word_mode only
5293         for normal functions.
5294         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5295         interrupt handler.
5296         (ix86_epilogue_uses): New function.
5297         (ix86_hard_regno_scratch_ok): Likewise.
5298         (ix86_save_reg): Preserve all registers in interrupt handler
5299         after reload.  Preserve all registers, except for function return
5300         registers, if there are no caller-saved registers after reload.
5301         (find_drap_reg): Always use callee-saved register if there are
5302         no caller-saved registers.
5303         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5304         for interrupt handler.
5305         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5306         Emit cld instruction if stringops are used in interrupt handler
5307         or interrupt handler isn't a leaf function.
5308         (ix86_expand_epilogue): Generate interrupt return for interrupt
5309         handler and pop the 'ERROR_CODE' off the stack before interrupt
5310         return in exception handler.
5311         (ix86_expand_call): Disallow calling interrupt handler directly.
5312         If there are no caller-saved registers, mark all registers that
5313         are clobbered by the call which returns as clobbered.
5314         (ix86_handle_no_caller_saved_registers_attribute): New function.
5315         (ix86_handle_interrupt_attribute): Likewise.
5316         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5317         attributes.
5318         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5319         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5320         accumulation in interrupt function if stack may be realigned to
5321         avoid DRAP.
5322         (EPILOGUE_USES): New.
5323         (function_type): New enum.
5324         (machine_function): Add func_type and no_caller_saved_registers.
5325         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5326         (interrupt_return): New pattern.
5327         * doc/extend.texi: Document x86 interrupt and
5328         no_caller_saved_registers attributes.
5330 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
5332         PR tree-optimization/52171
5333         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5334         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
5335         Look for constant strings.  Move some code to emit_block_cmp_hints
5336         and use it.
5337         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5338         * defaults.h (COMPARE_MAX_PIECES): New macro.
5339         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5340         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5341         (clear_by_pieces_1): Don't declare.  Move definition before use.
5342         (can_do_by_pieces): New static function.
5343         (can_move_by_pieces): Use it.  Return bool.
5344         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
5345         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
5346         (class pieces_addr); New.
5347         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5348         pieces_addr::adjust, pieces_addr::increment_address,
5349         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5350         functions for it.
5351         (class op_by_pieces_d): New.
5352         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5353         functions for it.
5354         (class move_by_pieces_d, class compare_by_pieces_d,
5355         class store_by_pieces_d): New subclasses of op_by_pieces_d.
5356         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5357         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5358         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5359         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5360         compare_by_pieces_d::finish_mode): New member functions.
5361         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5362         functions.
5363         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5364         (emit_block_cmp_hints): New function.
5365         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5366         use the newly defined classes.
5367         * expr.h (by_pieces_constfn): New typedef.
5368         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5369         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5370         (move_by_pieces_ninsns): Don't declare.
5371         (can_move_by_pieces): Change return value to bool.
5372         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5373         (compare_by_pieces_branch_ratio): New hook.
5374         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5375         (by_pieces_ninsns): Declare.
5376         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5377         COMPARE_BY_PIECES.
5378         (default_compare_by_pieces_branch_ratio): New function.
5379         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5380         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5381         * doc/tm.texi: Regenerate.
5382         * tree-ssa-strlen.c: Include "builtins.h".
5383         (handle_builtin_memcmp): New static function.
5384         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5385         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5387 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5389         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5390         relevant stmts which are simple and invariant.
5391         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5392         instead of simple and invariant
5394 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5396         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5397         (vectorizable_reduction): Check for new relevant state.
5398         (vectorizable_live_operation): vectorize live stmts using
5399         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
5400         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5401         (vect_stmt_relevant_p): Check for stmts which are only used live.
5402         (process_use): Use of a stmt does not inherit it's live value.
5403         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5404         (vect_analyze_stmt): Check for new relevant state.
5405         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5406         outside the loop, but not inside it.
5408 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5410         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5411         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5412         (vect_get_vec_def_for_operand): Split out code.
5414 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5416         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5418 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5420         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5422 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5424         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5426 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
5428         PR middle-end/71387
5429         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5430         to noreturn e->callee->decl that has void return type and void
5431         arguments, adjust gimple_call_fntype and remove lhs even if it had
5432         previously addressable type.
5434 2016-06-02  Jeff Law  <law@redhat.com>
5436         PR tree-optimization/71328
5437         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5438         error when checking for a jump back onto the copied path.
5440 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
5442         * config/microblaze/microblaze.c (get_branch_target): Add return
5443         NULL_RTX for the non-CALL_P case.
5444         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5445         (insert_wic): Remove unused local "j".
5447 2016-06-02  Martin Liska  <mliska@suse.cz>
5449         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5451 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5452             Julia Koval  <julia.koval@intel.com>
5454         * function.c (assign_parm_setup_stack): Force source into a
5455         register if needed.
5456         * target.def (function_incoming_arg): Update documentation to
5457         allow arbitrary address computation based on hard register.
5458         * doc/tm.texi: Regenerated.
5460 2016-06-02  Martin Liska  <mliska@suse.cz>
5462         * predict.c (combine_predictions_for_bb): Fix first match in
5463         cases where a first predictor contains more than one occurence
5464         in list of predictors.  Take the best value in such case.
5466 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5468         PR rtl-optimization/71295
5469         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5470         offset would go over the size of the inner mode reject it.
5472 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
5474         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5475         x=x,x and v=v,m instead of x=x,m.
5477         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5478         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
5479         alternative to v=rm,C.
5481         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5482         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
5483         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
5484         instead of vex for the last two above mentioned alternatives.
5486 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5488         PR target/70830
5489         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5491 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
5493         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5495 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
5497         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5498         from int to unsigned.
5500 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5502         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5503         alternatives, eliminating preferred register class.  Add support
5504         for the MTVSRDD instruction in ISA 3.0.
5505         (vsx_splat_v4si_internal): Use splat_input_operand instead of
5506         reg_or_indexed_operand.
5507         (vsx_splat_v4sf_internal): Likewise.
5509 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5511         PR target/71186
5512         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5513         for loading up all 0's or all 1's.
5515 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5517         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5519 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
5521         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5522         extension.
5523         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5524         * gcc.c (set_source_date_epoch_envvar): New function, sets
5525         the SOURCE_DATE_EPOCH environment variable to the current time.
5527 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5529         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5530         the factor for live Phi nodes.
5532 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5534         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5535         * tree-parloops.c (parallelize_loops): likewise.
5536         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5537         tree_unswitch_outer_loop): likewise.
5539 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
5541         PR middle-end/71371
5542         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5543         around creation of the temporary.
5545 2016-06-01  Richard Biener  <rguenther@suse.de>
5547         PR tree-optimization/71366
5548         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5549         (unloop_loops): Move removing edges here ...
5550         (try_unroll_loop_completely): ... from here.
5551         (try_peel_loop): ... and here.
5552         (tree_unroll_loops_completely_1): Track parent loops via
5553         bitmap of header BBs.
5554         (tree_unroll_loops_completely): Adjust for that.
5556 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5558         * config/rs6000/altivec.h (vec_slv): New macro.
5559         (vec_srv): New macro.
5560         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5561         (UNSPEC_VSRV): New value.
5562         (vslv): New insn.
5563         (vsrv): New insn.
5564         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5565         (vsrv): New builtin definition.
5566         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5567         define argument types for new builtin.
5568         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5569         new builtin.
5570         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5571         functions.
5573 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
5574             Jocelyn Mayer  <l_indien@magic.fr>
5576         PR target/67310
5577         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5578         detect processor family for signature_CENTAUR_ebx.
5579         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5580         signature_CENTAUR_ebx.
5581         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5582         <default>: Pass x86-64 for has_longmode.
5584 2016-06-01  Nathan Sidwell  <nathan@acm.org>
5586         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5587         undefined weak.
5589 2016-06-01  Richard Biener  <rguenther@suse.de>
5591         PR tree-optimization/71261
5592         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5593         of stmts successfully put in the bool pattern.  Remove
5594         single-use restriction.
5595         (adjust_bool_pattern_cast): Add cast at the use site via the
5596         pattern def sequence.
5597         (adjust_bool_pattern): Remove recursion, maintain a hash-map
5598         of patterned defs.  Use the pattern def seqence instead of
5599         multiple independent patterns.
5600         (sort_after_uid): New qsort compare function.
5601         (adjust_bool_stmts): New function to process stmts in the bool
5602         pattern in IL order.
5603         (vect_recog_bool_pattern): Adjust.
5604         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5605         (ifcvt_walk_pattern_tree): Likewise.
5606         (stmt_is_root_of_bool_pattern): Likewise.
5607         (ifcvt_repair_bool_pattern): Likewise.
5608         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5610 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5612         * loop-unroll.c (decide_unroll_constant_iterations,
5613         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5614         likely upper bounds.
5615         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5617 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
5619         * tree-core.h (enum omp_clause_code): Remove
5620         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
5622 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5624         * config/arm/sync.md (arm_store_exclusive<mode>):
5625         Use 'H' output modifier on operands[2] rather than creating a new
5626         entry in out-of-bounds memory of the operands array.
5627         (arm_store_release_exclusivedi): Likewise.
5629 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5631         * config/arm/arm.c (arm_fusion_enabled_p): New function.
5632         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5633         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5634         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5636 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5638         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5639         into account live statements for mask producers.
5641 2016-06-01  Richard Biener  <rguenther@suse.de>
5643         PR tree-optimization/71311
5644         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5645         restrict to non-INTEGER_CST @0.
5647 2016-06-01  Richard Biener  <rguenther@suse.de>
5649         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5650         (relational patterns): Use :c to avoid pattern duplications.
5652 2016-06-01  Richard Biener  <rguenther@suse.de>
5654         * genmatch.c (comparison_code_p): New predicate.
5655         (swap_tree_comparison): New function.
5656         (commutate): Add for_vec parameter to append new for entries.
5657         Support commutating relational operators by swapping it alongside
5658         operands.
5659         (lower_commutative): Adjust.
5660         (dt_simplify::gen): Do not pass artificial operators to gen
5661         functions.
5662         (decision_tree::gen): Do not add artificial operators as parameters.
5663         (parser::parse_expr): Verify operator commutativity when :c is
5664         applied.  Allow :C to override this.
5665         * match.pd: Adjust patterns to use :C instead of :c where required.
5667 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
5669         PR tree-optimization/71077
5670         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5671         the combining step, use boolean_false_node and boolean_true_node
5672         as the designated false/true return values.
5674 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5676         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5677         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5678         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5679         PRED_LOOP_EXIT.
5681 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5683         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5684         of flags impliying the register renaming.
5685         * toplev.c (process_options): Do not imply flag_rename_registers with
5686         loop peeling.
5688 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5690         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5691         default implementation.
5693 2016-05-31  Nathan Sidwell  <nathan@acm.org>
5695         * dwarf2out.c (cur_line_info_table): Add GTY marker.
5697 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5699         * config/sh/constraints.md (b): Remove constraint.
5700         * config/sh/predicates.md (arith_reg_operand): Remove
5701         TARGET_REGISTER_P.
5702         * config/sh/sh-modes.def (PDI): Remove.
5703         * config/sh/sh.c (sh_target_reg_class,
5704         sh_optimize_target_register_callee_saved): Remove functions.
5705         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5706         (sh_expand_epilogue): Update comment.
5707         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5708         sh_secondary_reload): Remove TARGET_REGS related code.
5709         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5710         TARGET_REGISTER_P): Remove macros.
5711         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5712         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5713         TR1_REG, TR2_REG): Remove constants.
5714         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5716 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5718         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5719         define_expand patterns.
5720         (adddi3_compact): Rename to adddi3.
5721         (subdi3_compact): Rename to subdi3.
5722         (*negdi2): Rename to negdi2.
5723         (*abs<mode>2): Rename to abs<mode>2.
5725 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5727         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5728         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5729         (atomic_sub_fetchsi): ... this new pattern.
5730         (mvtc): Add CC_REG clobber.
5732 2016-05-31  Marek Polacek  <polacek@redhat.com>
5734         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5736 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5738         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5739         aarch64_fusion_enabled_p to check for fusion capabilities.
5741 2016-05-31  Richard Biener  <rguenther@suse.de>
5743         PR tree-optimization/71352
5744         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5745         minus one and a negate.
5747 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5749         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5750         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5751         Delete prototype.
5752         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5753         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5754         Remove use of aarch64_simd_attr_length_move, set length attribute
5755         directly.
5756         (*aarch64_be_movoi): Likewise.
5757         (*aarch64_be_movci): Likewise.
5758         (*aarch64_be_movxi): Likewise.
5760 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5762         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5763         It no longer does that.
5764         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5766 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
5768         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5769         attribute __unused__.
5771 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5773         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5774         * config/arm/arm.c (arm_arch_thumb1): Define.
5775         (arm_option_override): Initialize arm_arch_thumb1.
5776         * config/arm/arm.h (arm_arch_thumb1): Declare.
5777         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5778         support Thumb-1 ISA.
5780 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5782         PR target/71346
5783         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5784         `Yv' for scalar operand.
5786 2016-05-31  Tom de Vries  <tom@codesourcery.com>
5788         PR tree-optimization/69068
5789         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5790         phis with more than two args.
5792 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
5794         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5795         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5796         target.
5798 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
5800         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5801         tune_64.
5802         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5803         support on SPARC.
5804         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5805         cpu_32, cpu_64, tune_32 and tune_64.
5806         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5808 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
5810         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5812 2016-05-30  Andi Kleen  <ak@linux.intel.com>
5814         * auto-profile.c (read_profile): Replace asserts with errors
5815         when file does not exist.
5816         * gcov-io.c (gcov_read_words): Dito.
5818 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5820         * tree-cfg.c (print_loop): Print likely upper bounds.
5822 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5824         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5825         * opts.c (default_options): Enable peel loops at -O3.
5826         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5827         (try_peel_loop): Do not re-peel already peeled loops;
5828         use likely upper bounds; fix profile updating.
5829         (pass_complete_unroll::execute): Initialize peeled_loops.
5831 2016-05-30  Martin Liska  <mliska@suse.cz>
5833         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5834         computed costs by frequency of BB they belong to.
5835         (get_scaled_computation_cost_at): New function.
5837 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
5838             Marc Glisse  <marc.glisse@inria.fr>
5840         PR tree-optimization/71289
5841         * match.pd (-1 / B < A, A > -1 / B): New transformations.
5843 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5845         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5847 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5849         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5850         for peeled copies; avoid underflow when updating estimates; correctly
5851         scale loop profile.
5853 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5855         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5856         r236875. Corrected oe3 to oe2 as obvious.
5858 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5860         PR middle-end/71269
5861         PR middle-end/71252
5862         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5863         that inserted stmt will not dominate stmts that defines its operand.
5864         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5865         (rewrite_expr_tree_parallel): Likewise.
5867 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5869         PR middle-end/71252
5870         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5871         all fields including stmt_to_insert are swapped.
5873 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5875         * predict.h (force_edge_cold): Declare.
5876         * predict.c (force_edge_cold): New function.
5877         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5878         updating.
5879         (canonicalize_loop_induction_variables): Fix formating.
5881 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5883         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5884         (visium_expand_copysign): Use gen_int_mode directly.
5885         (visium_compute_frame_size): Minor tweaks.
5887 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5889         * tree-vect-loop.c (vect_analyze_loop_2): Use
5890         likely_max_stmt_executions_int.
5892 2016-05-30  Tom de Vries  <tom@codesourcery.com>
5894         PR tree-optimization/69067
5895         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5897 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
5899         PR target/71245
5900         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5901         New peepholes to remove unneeded fild/fistp pairs.
5902         (define_peephole2 atomic_loaddi_fpu): Ditto.
5904 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5906         * predict.c (maybe_hot_frequency_p): Avoid division.
5908 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
5910         * doc/install.texi: Use https for shop.fsf.org.
5912 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5914         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5915         likely_max_stmt_executions_int.
5917 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5919         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5920         likely_max_stmt_executions_int.
5922 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5924         * profile.c (compute_branch_probabilities): Do not report hitrates
5925         here.
5926         (branch_prob): Report hitrates here.
5927         * predict.c (gimple_predict_edge): Do not assert profile status;
5928         fix formatting issues.
5930 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5932         * predict.c (edge_predicted_by_p): New function.
5933         (predict_paths_for_bb): Do not put multiple predictions of the same type
5934         on one edge.
5936 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5938         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5939         commit.
5941 2016-05-28  Alan Modra  <amodra@gmail.com>
5943         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5945 2016-05-28  Alan Modra  <amodra@gmail.com>
5947         PR rtl-optimization/71275
5948         * ira.c (ira): Free dominance info.
5950 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
5952         * doc/sourcebuild.texi: New address for upstream Go repository.
5954 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5956         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5957         (TARGET_ARM_V7M): Likewise.
5959 2016-05-26  Jeff Law  <law@redhat.com>
5961         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5962         (thread_across_edge): Remove calls to find_jump_threads_backwards.
5963         * passes.def: Add jump threading passes before DOM/VRP.
5964         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5965         argument to a basic block from an edge.  Remove tests which are
5966         handled elsewhere.
5967         (pass_data_thread_jumps, class pass_thread_jumps): New.
5968         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5969         (make_pass_thread_jumps): Likewise.
5970         * tree-pass.h (make_pass_thread_jumps): Declare.
5972 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5974         * config/visium/visium-protos.h (split_double_move): Rename into...
5975         (visium_split_double_move): ...this.
5976         (visium_split_double_add): Declare.
5977         * config/visium/visium.c (split_double_move): Rename into...
5978         (visium_split_double_move): ...this.
5979         (visium_split_double_add): New function.
5980         (visium_expand_copysign): Renumber operands for consistency.
5981         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5982         (DFmode move splitter): Likewise.
5983         (*addi3_insn): Split by means of visium_split_double_add.
5984         (*adddi3_insn_flags): Delete.
5985         (*plus_plus_sltu<subst_arith>): New insn.
5986         (*subdi3_insn): Split by means of visium_split_double_add.
5987         (subdi3_insn_flags): Delete.
5988         (*minus_minus_sltu<subst_arith>): New insn.
5989         (*negdi2_insn): Split by means of visium_split_double_add.
5990         (*negdi2_insn_flags): Delete.
5992 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
5994         * configure.ac: Treat a --with-headers option without argument
5995         the same as the default (i.e. consult sys-include directory).
5996         * configure: Regenerate.
5998 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6000         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
6001         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
6002         prototype.
6003         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
6004         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
6006 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6008         PR target/63596
6009         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
6010         tree-stdarg analysis results.
6011         (aarch64_setup_incoming_varargs): Likewise.
6013 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6015         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
6016         va_list_gpr_counter_field and va_list_fpr_counter_field.
6018 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
6020         PR67609
6021         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
6022         * config/aarch64/aarch64.c
6023         (aarch64_cannot_change_mode_class): Remove function.
6024         * config/aarch64/aarch64-protos.h
6025         (aarch64_cannot_change_mode_class): Remove.
6027 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6029         * cfgloop.c (record_niter_bound): Record likely upper bounds.
6030         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
6031         get_likely_max_loop_iterations_int): New.
6032         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
6033         any_likely_upper_bound.
6034         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
6035         Declare.
6036         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
6037         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
6038         upper bound.
6039         (unroll_loop_constant_iterations): Likewise.
6040         (unroll_loop_runtime_iterations): Likewise.
6041         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
6042         * lto-streamer-out.c (output_cfg): Likewise.
6043         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
6044         bounds.
6045         (canonicalize_loop_induction_variables): Dump likely upper bounds.
6046         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
6047         (likely_max_loop_iterations): New.
6048         (likely_max_loop_iterations_int): New.
6049         (likely_max_stmt_executions): New.
6050         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
6051         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
6052         likely_max_stmt_executions): Declare.
6054 2016-05-27  Marek Polacek  <polacek@redhat.com>
6056         PR middle-end/71308
6057         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
6059 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6061         * config/s390/s390.md (2x risbg splitters): Use
6062         reg_overlap_mentioned_p instead of rtx_equal_p.
6064 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6066         * combine.c (make_compound_operation): Take known zero bits into
6067         account when checking for possible zero_extend.
6069 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6071         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
6072         Use const_int_operand for operand 2 predicate.  Simplify expand code
6073         as a result.
6075 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6077         PR middle-end/71279
6078         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
6079         into comparison.
6081 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6083         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
6084         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
6085         that returns CC_SESWPmode and CC_ZESWPmode.
6086         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
6087         and CC_SESWPmode.
6088         (aarch64_rtx_costs): Likewise.
6090 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6092         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
6093         for ISA 3.0 min/max support.
6094         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
6095         conditional move support.
6096         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
6097         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
6098         available.
6099         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
6100         conditional moves where the comparison type is different from move
6101         type.
6102         (fp_minmax): New code iterator for smin/smax.
6103         (minmax): New code attributes for min/max.
6104         (SMINMAX): Likewise.
6105         (smax<mode>3): Combine min, max insns into one insn using the
6106         fp_minmax code iterator.  Add support for ISA 3.0 min/max
6107         instructions that don't need -ffast-math.
6108         (s<minmax><mode>3): Likewise.
6109         (smax<mode>3_vsx): Likewise.
6110         (smin<mode>3): Likewise.
6111         (s<minmax><mode>3_vsx): Likewise.
6112         (smin<mode>3_vsx): Likewise.
6113         (pre-VSX min/max splitters): Likewise.
6114         (s<minmax><mode>3_fpr): Likewise.
6115         (movsfcc): Rewrite floating point conditional moves to combine
6116         SFmode/DFmode into a single insn.
6117         (mov<mode>cc): Likewise.
6118         (movdfcc): Likewise.
6119         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
6120         SFDF2 iterators to handle all combinations.
6121         (fseldfsf4): Likewise.
6122         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
6123         (fseldfdf4): Likewise.
6124         (fselsfdf4): Likewise.
6125         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
6126         comparison instructions that set a 0/-1 mask, and use it for
6127         floating point conditional move via XXSEL.
6128         (fpmask<mode>): Likewise.
6129         (xxsel<mode>): Likewise.
6130         * config/rs6000/predicates.md (min_max_operator): Delete, no
6131         longer used.
6132         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
6133         instructions that generate a 0/-1 mask for use with XXSEL.
6134         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
6135         say whether floating point min/max is available, either through
6136         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
6137         (TARGET_MINMAX_DF): Likewise.
6139 2016-05-27  Alan Modra  <amodra@gmail.com>
6141         PR rtl-optimization/71275
6142         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
6143         for update_equiv_regs and combine_and_move_insns.
6145 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
6147         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
6148         if_then_else or cond RTXes to calculate attribute value.
6149         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
6150         <attr "length_immediate>: Ditto.
6151         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
6152         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
6153         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
6154         <attr "type">: Ditto.
6155         <attr "prefix_data16">: Ditto.
6156         <attr "prefix_extra">: Ditto.
6157         <attr "length_immediate">: Ditto.
6158         <attr "prefix">: Ditto.
6159         (vec_set<mode>_0) <attr "isa">: Ditto.
6160         <attr "prefix_extra">: Ditto.
6161         <attr "length_immediate">: Ditto.
6162         <attr "prefix">: Ditto.
6163         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
6164         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
6165         (sse2_storelpd) <attr "prefix_data16">: Ditto.
6166         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
6167         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
6168         <attr "length_immediate">: Ditto.
6169         <attr "prefix">: Ditto.
6170         (sse2_movsd) <attr "length_immediate">: Ditto.
6171         <attr "prefix">: Ditto.
6172         (vec_concatv2df)  <attr "isa">: Ditto.
6173         <attr "prefix">: Ditto.
6174         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
6175         (*vec_extractv2di_1) <attr "isa">: Ditto.
6176         <attr "type">: Ditto.
6177         <attr "length_immediate">: Ditto.
6178         <attr "prefix_rex">: Ditto.
6179         <attr "prefix_extra">: Ditto.
6180         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
6181         <attr "prefix_extra">: Ditto.
6182         <attr "length_immediate">: Ditto.
6183         (vec_concatv2di) <attr "isa">: Ditto.
6184         <attr "prefix_extra">: Ditto.
6185         <attr "length_immediate">: Ditto.
6186         <attr "prefix">: Ditto.
6188 2016-05-26  Martin Liska  <mliska@suse.cz>
6190         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
6191         function.
6192         (operator+): Likewise.
6193         (operator-): Likewise.
6194         (comp_cost::operator+=): Likewise.
6195         (comp_cost::operator-=): Likewise.
6196         (comp_cost::operator/=): Likewise.
6197         (comp_cost::operator*=): Likewise.
6198         (operator<): Likewise.
6199         (operator==): Likewise.
6200         (operator<=): Likewise.
6201         (new_cost): Remove.
6202         (infinite_cost_p): Likewise.
6203         (add_costs): Likewise.
6204         (sub_costs): Likewise.
6205         (compare_costs): Likewise.
6206         (set_group_iv_cost): Use the newly introduced functions.
6207         (get_address_cost): Likewise.
6208         (get_shiftadd_cost): Likewise.
6209         (force_expr_to_var_cost): Likewise.
6210         (split_address_cost): Likewise.
6211         (ptr_difference_cost): Likewise.
6212         (difference_cost): Likewise.
6213         (get_computation_cost_at): Likewise.
6214         (determine_group_iv_cost_generic): Likewise.
6215         (determine_group_iv_cost_address): Likewise.
6216         (determine_group_iv_cost_cond): Likewise.
6217         (autoinc_possible_for_pair): Likewise.
6218         (determine_group_iv_costs): Likewise.
6219         (cheaper_cost_pair): Likewise.
6220         (iv_ca_recount_cost): Likewise.
6221         (iv_ca_set_no_cp): Likewise.
6222         (iv_ca_set_cp): Likewise.
6223         (iv_ca_cost): Likewise.
6224         (iv_ca_new): Likewise.
6225         (iv_ca_dump): Likewise.
6226         (iv_ca_narrow): Likewise.
6227         (iv_ca_prune): Likewise.
6228         (iv_ca_replace): Likewise.
6229         (try_add_cand_for): Likewise.
6230         (try_improve_iv_set): Likewise.
6231         (find_optimal_iv_set): Likewise.
6233 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
6235         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
6236         that internal functions will clobber all caller-saved registers.
6238 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6240         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6241         Return a better case_values_threshold when optimizing.
6243 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6245         * config/aarch64/aarch64-simd.md (aarch64_combinez):
6246         Add ? to integer variant.
6247         (aarch64_combinez_be): Likewise.
6249 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
6251         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
6252         instead of x constraint.
6253         (vcvtps2ph256<mask_name>): Likewise.
6255         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
6256         alternative.  Formatting fix.
6258         * config/i386/sse.md
6259         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
6260         to ...
6261         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
6262         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
6263         maybe_evex prefix instead of vex.
6264         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
6265         EXT_REX_SSE_REG_P (op0) case in the splitter.
6267 2016-05-25  Jeff Law  <law@redhat.com>
6269         PR tree-optimization/71272
6270         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
6271         Update comments.  Add test for empty path.
6273 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
6275         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6276         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6277         special case builtin.
6278         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6279         code for ALTIVEC_BUILTIN_VEC_CMPNE.
6280         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6281         for __builtin_vec_cmpne.
6283 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6285         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6286         redundant test and bail out if the type of the new operand is not
6287         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6289 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6291         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6292         (x_ix86_target_flags_explicit): Remove.
6293         * config/i386/i386.c (ix86_function_specific_save): Do not copy
6294         x_ix86_target_flags_explicit.
6295         (ix86_function_specific_restore): Ditto.
6297 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6298             H.J. Lu  <hongjiu.lu@intel.com>
6300         PR target/70738
6301         * common/config/i386/i386-common.c
6302         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6303         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6304         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6305         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6306         (-mgeneral-regs-only): Add new option.
6307         * config/i386/i386.c (ix86_option_override_internal): Don't enable
6308         x87 instructions if only general registers are allowed.
6309         (ix86_target_string): Add ix86_flags argument. Handle additional
6310         flags options through ix86_flags argument.  Update all callers.
6311         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6313 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6315         PR rtl-optimization/66940
6316         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6317         decrementing desired_val will not overflow before performing these
6318         operations.
6320 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
6322         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6323         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6324         * config/i386/i386.c (enum ix86_builtins): Add
6325         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6326         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6327         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6328         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6329         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6330         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6331         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6332         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6333         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6334         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6335         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6336         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6337         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6338         __builtin_ia32_cvtps2dq512_mask.
6339         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6340         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6341         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6342         * config/i386/sse.md
6343         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6344         Rename to ...
6345         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6346         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6347         to ...
6348         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6349         (avx512f_vec_pack_sfix_v8df): New define_expand.
6350         (avx512f_roundpd512): Rename to ...
6351         (avx512f_round<castmode>512): ... this.  Change iterator.
6352         (avx512f_roundps512_sfix): New define_expand.
6353         (round<mode>2_sfix): Change iterator.
6355 2016-05-25  Nick Clifton  <nickc@redhat.com>
6357         * config/msp430/msp430.c (msp430_attr): Produce an error if a
6358         static interrupt handler is detected.
6359         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6360         default linker script.
6361         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6362         the low part of a symbolic pointer.
6364 2016-05-25  Richard Biener  <rguenther@suse.de>
6366         PR tree-optimization/71261
6367         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6368         interesting stmt instead of immediate uses when looking
6369         for the use operand to replace.
6371 2016-05-25  Martin Liska  <mliska@suse.cz>
6373         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6375 2016-05-25  Richard Biener  <rguenther@suse.de>
6377         PR tree-optimization/71264
6378         * tree-vect-stmts.c (vect_init_vector): Properly deal with
6379         vector type val.
6381 2016-05-25  Martin Liska  <mliska@suse.cz>
6383         PR tree-optimization/71239
6384         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6385         if DECL_SIZE is NULL.
6387 2016-05-25  Richard Biener  <rguenther@suse.de>
6389         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6390         * tree-if-conv.c (pass_data_if_conversion): Use it.
6392 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6394         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6395         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6396         * varpool.c (varpool_node::get_availability): Likewise.
6398 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6400         * config/rs6000/altivec.md (VNEG iterator): New iterator for
6401         VNEGW/VNEGD instructions.
6402         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6403         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6404         support for ISA 3.0 VNEGW/VNEGD instructions.
6406 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
6408         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6409         pointers inside OACC_DATA regions.
6410         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6411         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6412         (gimplify_adjust_omp_clauses): Fix typo in comment.
6414 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6416         * config/rs6000/altivec.md (VParity): New mode iterator for vector
6417         parity built-in functions.
6418         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6419         zeros.
6420         (p9v_parity<mode>2): Likewise.
6421         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6422         parity.
6423         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6424         (parity<mode>2): ISA 3.0 expander for vector parity.
6425         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6426         power9 built-ins.
6427         (BU_P9_64BIT_MISC_0): Likewise.
6428         (BU_P9_MISC_0): Likewise.
6429         (BU_P9V_AV_1): Likewise.
6430         (BU_P9V_AV_2): Likewise.
6431         (BU_P9V_AV_3): Likewise.
6432         (BU_P9V_AV_P): Likewise.
6433         (BU_P9V_VSX_1): Likewise.
6434         (BU_P9V_OVERLOAD_1): Likewise.
6435         (BU_P9V_OVERLOAD_2): Likewise.
6436         (BU_P9V_OVERLOAD_3): Likewise.
6437         (VCTZB): Add vector count trailing zeros support.
6438         (VCTZH): Likewise.
6439         (VCTZW): Likewise.
6440         (VCTZD): Likewise.
6441         (VPRTYBD): Add vector parity support.
6442         (VPRTYBQ): Likewise.
6443         (VPRTYBW): Likewise.
6444         (VCTZ): Add overloaded vector count trailing zeros support.
6445         (VPRTYB): Add overloaded vector parity support.
6446         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6447         overloaded vector count trailing zeros and parity instructions.
6448         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6449         vector parity support.
6450         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6451         trailing zeros support.
6452         (vec_cntlz): Likewise.
6453         (vec_vctzb): Likewise.
6454         (vec_vctzd): Likewise.
6455         (vec_vctzh): Likewise.
6456         (vec_vctzw): Likewise.
6457         (vec_vprtyb): Add ISA 3.0 vector parity support.
6458         (vec_vprtybd): Likewise.
6459         (vec_vprtybw): Likewise.
6460         (vec_vprtybq): Likewise.
6461         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6462         the ISA 3.0 vector count trailing zeros and vector parity built-in
6463         functions.
6465 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6467         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6468         when there is stmt_to_insert.
6470 2016-05-24  Martin Sebor  <msebor@redhat.com>
6472         PR c++/71147
6473         * tree.h (complete_or_array_type_p): New inline function.
6475 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6477         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6478         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6479         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6481         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6482         Limit 1st alternative to noavx isa, split 2nd alternative into one
6483         noavx and one avx alternative, use *x and Bm in the former and
6484         x and m in the latter.
6486         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6487         of sse4 for the first alternative, drop %v from the template
6488         and d operand modifier.  Split second alternative into one sse4_noavx
6489         and one avx alternative, use *x instead of *v in the former and v
6490         instead of *v in the latter.
6491         (*sse4_1_extractps): Use noavx isa instead of * for the first
6492         alternative, drop %v from the template.  Split second alternative into
6493         one noavx and one avx alternative, use *x instead of *v in the
6494         former and v instead of *v in the latter.
6495         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6496         with noavx and the last one with avx.
6497         (sse4_1_phminposuw): Guard first alternative with noavx isa,
6498         split the second one into one noavx and one avx alternative,
6499         use *x and Bm in the former and x and m in the latter one.
6500         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6501         alternatives.
6503         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6504         first two alternatives to noavx, use *x instead of *v in the second
6505         one, add avx alternative without *.
6506         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6507         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6508         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6510 2016-05-24  Jeff Law  <law@redhat.com>
6512         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6513         New function, extracted from...
6514         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
6515         Allow simple copies and constant initializations in the SSA chain.
6517 2016-05-24  Marek Polacek  <polacek@redhat.com>
6519         PR c/71249
6520         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6521         scope.
6523 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6525         PR c++/71257
6526         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6527         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6528         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
6529         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6530         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6532 2016-05-24  Richard Biener  <rguenther@suse.de>
6534         PR tree-optimization/71240
6535         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6536         has integral type.
6538 2016-05-24  Richard Biener  <rguenther@suse.de>
6540         PR tree-optimization/71230
6541         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6543 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6545         * tree-vectorizer.h (vectorizable_comparison): Delete.
6546         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6547         PURE_SLP_STMT check.
6548         * tree-vect-stmts.c (vectorizable_call): Likewise.
6549         (vectorizable_simd_clone_call): Likewise.
6550         (vectorizable_conversion): Likewise.
6551         (vectorizable_assignment): Likewise.
6552         (vectorizable_shift): Likewise.
6553         (vectorizable_operation): Likewise.
6554         (vectorizable_load): Likewise.
6555         (vectorizable_condition): Likewise.
6556         (vectorizable_store): Likewise.  Assert that we don't have
6557         hybrid SLP.
6558         (vectorizable_comparison): Make static.  Remove redundant
6559         PURE_SLP_STMT check.
6560         (vect_transform_stmt): Assert that we always have an slp_node
6561         if PURE_SLP_STMT.
6563 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6565         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
6566         operands[2] against 1 with comparison against CONST1_RTX.
6567         (<shift>di3_neon): Likewise.
6568         * config/arm/predicates.md (const0_operand): Replace with comparison
6569         against CONST0_RTX.
6571 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6573         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6574         operands[2] against 1 with comparison against CONST1_RTX.
6575         (ashrdi3): Likewise.
6576         (lshrdi3): Likewise.
6577         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6578         UINTVAL.
6579         (ashrsi3): Likewise.
6580         (lshrsi3): Likewise.
6581         (rotrsi3): Likewise.
6582         (define_split above *compareqi_eq0): Likewise.
6583         (define_split above "prologue"): Likewise.
6584         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6585         * config/arm/predicates.md (shift_operator): Likewise.
6586         (shift_nomul_operator): Likewise.
6587         (sat_shift_operator): Likewise.
6588         (thumb1_cmp_operand): Likewise.
6589         (const_neon_scalar_shift_amount_operand): Replace manual range
6590         check with IN_RANGE.
6591         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6592         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6594 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6596         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6597         with HOST_WIDE_INT_1.
6598         (insv): Likewise.
6599         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6600         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6601         (arm_canonicalize_comparison): Likewise.
6602         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6603         HOST_WIDE_INT_1.
6604         (thumb1_size_rtx_costs): Likewise.
6605         (vfp_const_double_index): Replace cast of 1 to unsigned
6606         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6607         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6608         HOST_WIDE_INT_1.
6609         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6610         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6611         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6612         HOST_WIDE_INT with HOST_WIDE_INT_1.
6614 2016-05-24  Marek Polacek  <polacek@redhat.com>
6616         * tree-cfg.h (should_remove_lhs_p): New predicate.
6617         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6618         * gimplify.c (gimplify_modify_expr): Likewise.
6619         * tree-cfg.c (verify_gimple_call): Likewise.
6620         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6621         * gimple-fold.c: Include "tree-cfg.h".
6622         (gimple_fold_call): Use should_remove_lhs_p.
6624 2016-05-24  Richard Biener  <rguenther@suse.de>
6626         PR tree-optimization/71253
6627         * cfganal.h (control_dependences): Make robust against edge
6628         and BB removal.
6629         (control_dependences::control_dependences): Remove edge_list argument.
6630         (control_dependences::get_edge): Remove.
6631         (control_dependences::get_edge_src): Add.
6632         (control_dependences::get_edge_dest): Likewise.
6633         (control_dependences::m_el): Make a vector of edge src/dest index.
6634         * cfganal.c (control_dependences::find_control_dependence): Adjust.
6635         (control_dependences::control_dependences): Likewise.
6636         (control_dependences::~control_dependence): Likewise.
6637         (control_dependences::get_edge): Remove.
6638         (control_dependences::get_edge_src): Add.
6639         (control_dependences::get_edge_dest): Likewise.
6640         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6641         get_edge_src.
6642         (perform_tree_ssa_dce): Adjust.
6643         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6644         get_edge_src.
6645         (pass_loop_distribution::execute): Adjust.  Do loop destroying
6646         conditional on changed.
6648 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6650         PR target/69857
6651         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6652         return.  Reindent transformation comment and mention the ARM state
6653         behavior.
6655 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6657         PR middle-end/71252
6658         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6659         after build_and_add_sum creates new use stmt.
6661 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6663         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6664         load_lanes/grouped_load classification comes first.  Don't check
6665         whether the vectorization factor is a multiple of the group size
6666         for load_lanes.
6668 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6670         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6671         GROUP_GAP for single-element interleaving.
6672         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6673         variable.
6675 2016-05-24  Richard Biener  <rguenther@suse.de>
6677         PR middle-end/70434
6678         PR c/69504
6679         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6680         bases which are accessed with non-invariant indices.
6681         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6682         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6684 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6686         PR middle-end/71170
6687         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6688         (add_to_ops_vec): Add stmt_to_insert.
6689         (add_repeat_to_ops_vec): Init stmt_to_insert.
6690         (insert_stmt_before_use): New.
6691         (transform_add_to_multiply): Remove mult_stmt insertion and add it
6692         to ops vector.
6693         (get_ops): Init stmt_to_insert.
6694         (maybe_optimize_range_tests): Likewise.
6695         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6696         (rewrite_expr_tree_parallel): Likewise.
6697         (reassociate_bb): Likewise.
6699 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6701         PR target/71201
6702         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6703         ISA 3.0 xxperm fusion alternative.
6704         (altivec_vperm_v8hiv16qi): Likewise.
6705         (altivec_vperm_<mode>_uns_internal): Likewise.
6706         (vperm_v8hiv4si): Likewise.
6707         (vperm_v16qiv8hi): Likewise.
6709 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6710             Kelvin Nilsen  <kelvin@gcc.gnu.org>
6712         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6713         vpermr/xxpermr on ISA 3.0.
6714         (altivec_expand_vec_perm_le): Likewise.
6715         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6716         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6717         ISA 3.0.
6719 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
6721         * config/i386/i386.h (IS_STACK_MODE): Enable for
6722         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
6723         SSE_FLOAT_MODE_P macros.
6724         * config/i386/i386.c (ix86_preferred_reload_class): Use
6725         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6726         Cleanup regclass processing for CONST_DOUBLE_P.
6727         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6728         (ix86_rtx_costs): Remove redundant TARGET_80387 check
6729         with IS_STACK_MODE macro.
6730         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6731         with TARGET_SSE2.
6732         (*movdf_internal): Use IS_STACK_MODE macro.
6733         (*movsf_internal): Ditto.
6735 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
6737         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6738         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6740 2016-05-23  Jeff Law  <law@redhat.com>
6742         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6743         extracted from ...
6744         (fsm_find_control_statement_thread_paths): Call it.
6746 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6748         PR ipa/71234
6749         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6750         from_global_constant if t is not NULL.
6752 2016-05-23  Marek Polacek  <polacek@redhat.com>
6754         PR c/49859
6755         * common.opt (Wswitch-unreachable): New option.
6756         * doc/invoke.texi: Document -Wswitch-unreachable.
6757         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6758         warning.
6760 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
6762         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6763         TMR_INDEX is non-NULL.
6765 2016-05-23  Richard Biener  <rguenther@suse.de>
6767         PR tree-optimization/71230
6768         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6769         (try_special_add_to_ops): ... here.  Always test for single-use.
6771 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6773         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6774         default block if a PHI node in the original one would be resized.
6776 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6778         PR tree-optimization/58135
6779         * tree-vect-slp.c: When group size is not multiple
6780         of vector size, allow splitting of store group at
6781         vector boundary.
6783 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
6785         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6787 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
6789         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6790         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6791         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
6792         of 64x2.
6794         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6795         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6796         v constraint instead of x and vinserti32x4 insn.
6798         * config/i386/sse.md (i128vldq): New mode iterator.
6799         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6800         avx512dq and avx512vl alternatives.
6802         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6803         constraint, use maybe_evex prefix instead of vex.
6804         (vec_dupv4sf): Use v constraint instead of x for output
6805         operand except for noavx alternative, use Yv constraint
6806         instead of x for input.  Use maybe_evex prefix instead of vex.
6807         (*vec_dupv4si): Likewise.
6808         (*vec_dupv2di): Likewise.
6810 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
6812         PR middle-end/40921
6813         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6814         (linearize_expr_tree): Call try_special_add_to_ops.
6815         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6817 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6819         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6820         to computed stack_usage.
6822 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6824         PR target/71103
6825         * config/avr/avr.md (define_expand "mov<mode>"): If the source
6826         operand is subreg (symbol_ref) then move the symbol ref to register.
6828 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
6830         * tree.c (array_at_struct_end_p): Look through MEM_REF.
6832 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6834         PR middle-end/71179
6835         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6836         VECTOR type.
6838 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6840         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6841         ranges by calling get_single_symbol and tidy up.  Look more closely
6842         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6844 2016-05-20  Jeff Law  <law@redhat.com>
6846         * bitmap.c (bitmap_find_bit): Remove useless test.
6848 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
6850         * function.c (thread_prologue_and_epilogue_insns): Commit the
6851         insertion of the epilogue.
6853 2016-05-20  Martin Jambor  <mjambor@suse.cz>
6855         PR tree-optimization/70884
6856         * tree-sra.c (initialize_constant_pool_replacements): Do not check
6857         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6858         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6859         of constant pool data as a reason for scalarization.
6861 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6863         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6864         for naked functions.
6865         (thumb1_expand_prologue): Likewise.
6867 2016-05-20  Nathan Sidwell  <nathan@acm.org>
6869         * config/nvptx/nptx.c (nvptx_option_override): Only set
6870         flag_toplevel_reorder, if not explicitly specified.  Set
6871         flag_no_common, unless explicitly specified.
6873 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6875         * calls.c (can_implement_as_sibling_call_p): Mark param
6876         reg_parm_stack_space with ATTRIBUTE_UNUSED.
6878 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
6880         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6881         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6882         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6883         constants.
6884         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6885         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6886         and CASE_CONST_ANY.
6888 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
6890         * config/nvptx/nvptx.md (sincossf3): New pattern.
6892 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6894         * calls.c (maybe_complain_about_tail_call): New function.
6895         (initialize_argument_information): Call
6896         maybe_complain_about_tail_call when clearing *may_tailcall.
6897         (can_implement_as_sibling_call_p): Call
6898         maybe_complain_about_tail_call when returning false.
6899         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6900         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
6901         if tail-call optimization fails.
6902         * cfgexpand.c (expand_call_stmt): Initialize
6903         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6904         * gimple-pretty-print.c (dump_gimple_call): Dump
6905         gimple_call_must_tail_p.
6906         * gimple.c (gimple_build_call_from_tree): Call
6907         gimple_call_set_must_tail with the value of
6908         CALL_EXPR_MUST_TAIL_CALL.
6909         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6910         (gimple_call_set_must_tail): New function.
6911         (gimple_call_must_tail_p): New function.
6912         * print-tree.c (print_node): Update printing of TREE_STATIC
6913         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6914         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6915         trailing comment listing applicable flags.
6916         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6918 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6920         * calls.c (expand_call): Move "Rest of purposes for tail call
6921         optimizations to fail" to...
6922         (can_implement_as_sibling_call_p): ...this new function, and
6923         split into multiple "if" statements.
6925 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6927         * cfgloop.h (expected_loop_iterations_unbounded,
6928         expected_loop_iterations): Unconstify.
6929         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6930         profile with known upper bound; return 3 when profile is absent.
6931         (expected_loop_iterations): Update.
6933 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6935         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6936         and get_max_loop_iterations_int.
6938 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6940         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6941         realistic upper bounds here.
6943 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
6945         PR c++/71210
6946         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6947         calls if the LHS is variable length or has addressable type.
6948         If targets[0]->decl is a noreturn call with void return type and
6949         zero arguments, adjust fntype and remove lhs in that case.
6951 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
6953         PR tree-optimization/71079
6954         PR tree-optimization/71206
6955         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6957 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6959         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6960         (get_vec_alignment_for_array_decl): Likewise.
6961         (get_vec_alignment_for_record_decl): Likewise.
6962         (increase_alignment::execute): Move code to find alignment to
6963         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6964         (type_align_map): New hash_map.
6966 2016-05-20  Richard Guenther  <rguenther@suse.de>
6968         PR tree-optimization/29756
6969         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6970         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6971         * fold-const.c (operand_equal_p): Likewise.
6972         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6973         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6974         * tree-inline.c (estimate_operator_cost): Likewise.
6975         * tree-pretty-print.c (dump_generic_node): Likewise.
6976         * tree-ssa-operands.c (get_expr_operands): Likewise.
6977         * cfgexpand.c (expand_debug_expr): Likewise.
6978         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6979         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6980         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6981         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6982         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6983         (execute_update_addresses_taken): Do it.
6985 2016-05-20  Richard Biener  <rguenther@suse.de>
6987         PR tree-optimization/71185
6988         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6989         register operations.
6991 2016-05-20  Richard Biener  <rguenther@suse.de>
6993         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6994         gimple_seq_add_seq_without_update.
6995         (release_bb_predicate): Assert we have no operands to free.
6996         (if_convertible_loop_p_1): Calculate post dominators later.
6997         Do not free BB predicates here.
6998         (combine_blocks): Do not recompute BB predicates.
6999         (version_loop_for_if_conversion): Save BB predicates around
7000         loop versioning.
7002 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7004         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
7005         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
7006         code.  Ignore sibcalls on EDGE_IGNORE edges.
7007         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
7008         on edges for sibcalls that run without prologue.  The rest of the
7009         function is combined from...
7010         (fix_fake_fallthrough_edge): ... this, and ...
7011         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
7012         function argument, make it a local variable.
7014 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
7016         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
7017         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
7018         for 32-bit mode and SEH for 64-bit.
7019         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
7020         TARGET_64BIT_DEFAULT.
7022 2016-05-19  Ryan Burn  <contact@rnburn.com>
7024         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
7025         * gengtype.c (open_base_files): Add cilk.h to ifiles.
7027 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
7029         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
7030         force pending loads from memory.
7032 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7034         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
7035         (UNSPEC_DARN_32): New unspec constant.
7036         (UNSPEC_DARN_RAW): New unspec constant.
7037         (darn_32): New instruction.
7038         (darn_raw): New instruction.
7039         (darn): New instruction.
7040         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
7041         support and documentation for this macro.
7042         (BU_P9_MISC_1): New macro definition.
7043         (BU_P9_64BIT_MISC_0): New macro definition.
7044         (BU_P9_MISC_0): New macro definition.
7045         (darn_32): New builtin definition.
7046         (darn_raw): New builtin definition.
7047         (darn): New builtin definition.
7048         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
7049         RS6000_BUILTIN_0 directives to surround each occurrence of
7050         #include "rs6000-builtin.def".
7051         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
7052         RS6000_BTM_64BIT flags to the returned mask, depending on
7053         configuration.
7054         (def_builtin): Correct an error in the assignments made to the
7055         debugging variable attr_string.
7056         (rs6000_expand_builtin): Add support for no-operand built-in
7057         functions.
7058         (builtin_function_type): Remove fatal_error assertion that is no
7059         longer valid.
7060         (rs6000_common_init_builtins): Add support for no-operand built-in
7061         functions.
7062         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
7063         definition.
7064         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
7065         definition.
7066         (RS6000_BTM_64BIT): New macro definition.
7067         * doc/extend.texi: Document __builtin_darn (void),
7068         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
7069         functions.
7071 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
7073         * tree-vect-loop.c (vect_analyze_loop_2): Use also
7074         max_loop_iterations_int.
7076 2016-05-19  Marek Polacek  <polacek@redhat.com>
7078         PR tree-optimization/71031
7079         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
7080         condition and adjust the code a bit.
7082 2016-05-19  Martin Liska  <mliska@suse.cz>
7084         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
7085         auto_vec instead of vec.
7087 2016-05-19  Martin Liska  <mliska@suse.cz>
7089         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
7091 2016-05-19  Martin Liska  <mliska@suse.cz>
7093         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
7095 2016-05-19  Martin Liska  <mliska@suse.cz>
7097         * ipa-pure-const.c (set_function_state): Remove an existing
7098         funct_state.
7099         (remove_node_data): Do not free it as it's released
7100         in set_function_state.
7102 2016-05-19  Martin Liska  <mliska@suse.cz>
7104         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
7105         bitmap.
7107 2016-05-19  Martin Liska  <mliska@suse.cz>
7109         * omp-simd-clone.c (simd_clone_adjust): Release vector.
7111 2016-05-19  Martin Liska  <mliska@suse.cz>
7113         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
7114         an auto_vec instead of re-creating it.
7116 2016-05-19  Martin Liska  <mliska@suse.cz>
7118         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
7119         auto_vec instead of vec.
7121 2016-05-19  Martin Liska  <mliska@suse.cz>
7123         * lto-section-in.c (lto_get_section_data): Call
7124         lto_check_version with additional argument.
7125         * lto-streamer.c (lto_check_version): Add new argument.
7126         * lto-streamer.h (lto_check_version): Likewise.
7128 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7130         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
7131         Don't add cost of inner memory when handling sign-extended loads.
7133 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7135         PR rtl-optimization/71148
7136         * cse.c (cse_main): Free dominance info.
7137         (rest_of_handle_cse): Don't free dominance info.
7138         (rest_of_handle_cse2): Likewise.
7139         (rest_of_handle_cse_after_global_opts): Likewise.
7141 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7143         PR target/71056
7144         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
7145         NULL_TREE early if NEON is not available.  Remove now redundant check
7146         in ARM_CHECK_BUILTIN_MODE.
7148 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
7150         PR sanitizer/64354
7151         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
7152         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
7153         * doc/cpp.texi: Document new macros.
7155 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
7157         PR tree-optimization/69848
7158         * tree-vect-loop.c (vectorizable_reduction): Don't factor
7159         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
7161 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7163         * function.c (thread_prologue_and_epilogue_insn): Move the
7164         "goto epilogue_done" one block later.
7166 2016-05-19  Richard Biener  <rguenther@suse.de>
7168         PR tree-optimization/70729
7169         * passes.def: Move LIM pass before PRE.  Remove no longer
7170         required copyprop and move first DCE out of the loop pipeline.
7172 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
7174         PR driver/69265
7175         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
7176         (OBJS-libcommon-target): ...here.
7177         * opts-common.c: Include spellcheck.h.
7178         (cmdline_handle_error): Build a vec of valid options and use it
7179         to suggest provide hints for misspelled arguments.
7181 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7183         PR c++/71100
7184         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
7185         lhs if it has TREE_ADDRESSABLE type.
7187 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
7189         PR target/71145
7190         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
7191         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
7193 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7195         PR ipa/69708
7196         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
7197         input for NOP_EXPR pass-through functions.
7198         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
7199         aggregate global constant VAR_DECLs in constant jump functions.
7201 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7203         PR ipa/69708
7204         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
7205         from TREE_READONLY parameters.
7207 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7209         PR ipa/69708
7210         * cgraph.h (cgraph_indirect_call_info): New field
7211         guaranteed_unmodified.
7212         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
7213         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7214         appropriate.
7215         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
7216         pass the parameter value to ipa_find_agg_cst_for_param.
7217         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
7218         guaranteed_unmodified, store AA results there instead of bailing out
7219         if present.
7220         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
7221         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
7222         (find_constructor_constant_at_offset): New function.
7223         (ipa_find_agg_cst_from_init): Likewise.
7224         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
7225         static initializers of contants, report back through a new paameter
7226         from_global_constant if that was the case.
7227         (try_make_edge_direct_simple_call): Also pass parameter value to
7228         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7229         appropriate.
7230         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
7231         (ipa_read_indirect_edge_info): Likewise.
7232         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
7233         (ipa_load_from_parm_agg): Likewise.
7235 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
7237         PR rtl-optimization/71150
7238         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
7239         check.
7241 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7243         PR target/70915
7244         * config/rs6000/constraints.md (wE constraint): New constraint
7245         for a vector constant that can be loaded with XXSPLTIB.
7246         (wM constraint): New constraint for a vector constant of a 1's.
7247         (wS constraint): New constraint for a vector constant that can be
7248         loaded with XXSPLTIB and a vector sign extend instruction.
7249         * config/rs6000/predicates.md (xxspltib_constant_split): New
7250         predicates for wE/wS constraints.
7251         (xxspltib_constant_nosplit): Likewise.
7252         (easy_vector_constant): Add support for constants that can be
7253         loaded via XXSPLTIB.
7254         (all_ones_constant): New predicate for vector constant with all
7255         1's set.
7256         (splat_input_operand): Add support for ISA 3.0 word splat operations.
7257         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
7258         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
7259         instruction and possibly with a sign extension.
7260         (output_vec_const_move): Add support for XXSPLTIB. If we are
7261         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
7262         instead of XXLXOR/XXLORC.
7263         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
7264         operations.
7265         (rs6000_legitimize_reload_address): Likewise.
7266         (rs6000_output_move_128bit): Use output_vec_const_move to emit
7267         constants.
7268         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
7269         combine VSX_M and VSX_M2 into one iterator.
7270         (VSX_M2): Likewise.
7271         (VSINT_84): New iterators for loading constants with XXSPLTIB.
7272         (VSINT_842): Likewise.
7273         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7274         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7275         XXSPLTIB instruction.
7276         (xxspltib_<mode>_nosplit): Likewise.
7277         (xxspltib_<mode>_split): New insn to load up constants with
7278         XXSPLTIB and a sign extend instruction.
7279         (vsx_mov<mode>): Replace single move that handled all vector types
7280         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
7281         moves (when -mvsx-timode is in effect) into the main vector
7282         moves.  Eliminate separate moves for <VSr> <VSa>, where the
7283         preferred register class (<VSr>) is listed first, and the
7284         secondary register class (<VSa>) is listed second with a '?' to
7285         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
7286         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7287         that if the register was involved in a slow operation, the
7288         clear/set operation does not wait for the slow operation to
7289         finish.  Adjust the length attributes for 32-bit mode.  Use
7290         rs6000_output_move_128bit and drop the use of the string
7291         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
7292         spacing so that the alternatives and attributes don't generate
7293         long lines, and put things in columns, so that it is easier to
7294         match up the operands and attributes with the insn alternatives.
7295         (vsx_mov<mode>_64bit): Likewise.
7296         (vsx_mov<mode>_32bit): Likewise.
7297         (vsx_movti_64bit): Fold movti into normal vector moves.
7298         (vsx_movti_32bit): Likewise.
7299         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7300         splat instructions.
7301         (vsx_splat_v4si_internal): Likewise.
7302         (vsx_splat_v4sf_internal): Likewise.
7303         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7304         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7305         extend vector elements.
7306         (vsx_sign_extend_hi_<mode>): Likewise.
7307         (vsx_sign_extend_si_v2di): Likewise.
7308         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7309         declaration.
7310         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7311         constraints.  Add trailing period to wL documentation.
7313 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
7315         PR middle-end/71020
7316         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7317         * tree-dfa.c (replace_abnormal_ssa_names): New function.
7318         * tree-call-cdce.c: Include tree-dfa.h.
7319         (can_guard_call_p): New function, extracted from...
7320         (can_use_internal_fn): ...here.
7321         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7322         and return void.
7323         (shrink_wrap_one_built_in_call): Likewise.
7324         (use_internal_fn): Likewise.
7325         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7326         and return void.  Call replace_abnormal_ssa_names.
7327         (pass_call_cdce::execute): Check can_guard_call_p during the
7328         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
7329         will always change something.
7331 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7333         PR ipa/70646
7334         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7335         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7337 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7339         PR ipa/70646
7340         * ipa-inline.h (condition): New field size.
7341         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7342         for comaprison and store it into the new condition.
7343         (evaluate_conditions_for_known_args): Use condition size to check
7344         access sizes for all but CHANGED conditions.
7345         (unmodified_parm_1): New parameter size_p, store access size into it.
7346         (unmodified_parm): Likewise.
7347         (unmodified_parm_or_parm_agg_item): Likewise.
7348         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7349         (set_cond_stmt_execution_predicate): Extract access sizes and store
7350         them to conditions.
7351         (set_switch_stmt_execution_predicate): Likewise.
7352         (will_be_nonconstant_expr_predicate): Likewise.
7353         (will_be_nonconstant_predicate): Likewise.
7354         (inline_read_section): Stream condition size.
7355         (inline_write_summary): Likewise.
7357 2016-05-18  Richard Biener  <rguenther@suse.de>
7359         * tree-ssa-loop-im.c (determine_max_movement): Properly add
7360         condition cost to PHI cost instead of total_cost.
7362 2016-05-18  Martin Liska  <mliska@suse.cz>
7364         PR fortran/70856
7365         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7366         merged variables.
7368 2016-05-18  Richard Biener  <rguenther@suse.de>
7370         * lto-streamer.h (LTO_major_version): Bump to 6.
7372 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7374         * function.c (make_split_prologue_seq, make_prologue_seq,
7375         make_epilogue_seq): New functions, factored out from...
7376         (thread_prologue_and_epilogue_insns): Here.
7378 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7380         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7381         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7382         of before.  Add a comment.
7384 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
7386         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7387         expression pointer, not pointer to the pointer.
7389 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7391         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7392         (avx2_pbroadcast<mode>): Add another alternative with v instead
7393         of x constraints in it, using <pbroadcast_evex_isa> isa.
7394         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7396         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7397         constraint x instead of v in second alternative, add avx512bw
7398         alternative.
7400         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7401         constraint x instead of v in second alternative, add avx512bw
7402         alternative.
7404         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7405         constraint x instead of v in second alternative, add avx512bw
7406         alternative.
7408         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7409         avx512bw alternative.
7411 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7413         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7414         array to 128 chars.
7415         (define_insn "*andnottf3"): Ditto.
7416         (define_insn "*<code><mode>3"/any_logic): Ditto.
7417         (define_insn "*<code>tf3"/any_logic): Ditto.
7418         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7419         operand to block AVX-512VL insn variant emit when it is not enabled.
7421 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7423         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7424         constraint fot SF mode.
7426 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
7427             Kirill Yukhin  <kirill.yukhin@intel.com>
7429         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7430         modifiers.
7431         (define_insn "rsqrt14<mode>"): Ditto.
7432         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7433         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7434         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7435         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7436         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7437         Ditto.
7438         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7439         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7440         * config/i386/i386.c (ix86_print_operand): Expand check for size
7441         override codes for Intel syntax.
7443 2016-05-18  Richard Biener  <rguenther@suse.de>
7445         PR tree-optimization/71168
7446         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7447         initialization earlier.
7449 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
7451         * config/aarch64/aarch64-simd.md
7452         (aarch64_reduc_plus_internal<mode>): Rename to...
7453         (reduc_plus_scal): ...This, and remove previous implementation.
7455 2016-05-18  Richard Biener  <rguenther@suse.de>
7457         * passes.def: Put late dse and cd_dce in canonical order.
7459 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
7461         * ipa-inline-transform.c (preserve_function_body_p): Look for
7462         first non-thunk clone.
7463         (save_function_body): Save into first non-thunk.
7464         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7465         up call stmt id.
7466         (lto_output_node): Inline thunks don't need body in every
7467         partition.
7468         * lto-streamer-in.c: Do not fixup thunk clones.
7469         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7470         thunks.
7471         * tree-inline.c (copy_bb): Be prepared for target node to be new after
7472         folding suceeds.
7474 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7476         PR middle-end/63586
7477         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7478         (reassociate_bb): Call transform_add_to_multiply.
7480 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7482         * config/aarch64/aarch64.c (all_extensions): Removed unused
7483         static variable.
7485 2016-05-17  Nathan Sidwell  <nathan@acm.org>
7487         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7488         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7490 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
7492         PR tree-optimization/54579
7493         PR middle-end/55299
7494         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7496 2016-05-17  Marek Polacek  <polacek@redhat.com>
7498         PR ipa/71146
7499         * tree-inline.c (expand_call_inline): Call
7500         maybe_remove_unused_call_args.
7502 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
7504         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7505         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7506         * doc/md.texi (fmin@var{m}3): Likewise.
7508 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7510         * match.pd (X & C): New transformation.
7512 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7514         * match.pd (~X & Y): New transformation.
7516 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7518         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7519         information for new SSA_NAME.
7520         (simplify_conversion_using_ranges): Get range through get_range_info
7521         instead of get_value_range.
7523 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7525         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7526         Remove inline assembly.
7527         (vmvn_s16): Likewise.
7528         (vmvn_s32): Likewise.
7529         (vmvn_u8): Likewise.
7530         (vmvn_u16): Likewise.
7531         (vmvn_u32): Likewise.
7532         (vmvnq_s8): Likewise.
7533         (vmvnq_s16): Likewise.
7534         (vmvnq_s32): Likewise.
7535         (vmvnq_u8): Likewise.
7536         (vmvnq_u16): Likewise.
7537         (vmvnq_u32): Likewise.
7538         (vmvn_p8): Likewise.
7539         (vmvnq_p16): Likewise.
7541 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7543         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7544         Use builtin.
7545         (vmul_n_s16): Likewise.
7546         (vmul_n_s32): Likewise.
7547         (vmul_n_u16): Likewise.
7548         (vmul_n_u32): Likewise.
7549         (vmulq_n_f32): Likewise.
7550         (vmulq_n_f64): Likewise.
7551         (vmulq_n_s16): Likewise.
7552         (vmulq_n_s32): Likewise.
7553         (vmulq_n_u16): Likewise.
7554         (vmulq_n_u32): Likewise.
7556 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7558         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7559         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
7561 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7563         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7564         to *aarch64_fma4_elt_from_dup<mode>.
7565         (*aarch64_fnma4_elt_to_128df): Rename to
7566         *aarch64_fnma4_elt_from_dup<mode>.
7567         * config/aarch64/arm_neon.h (vfma_n_f64): New.
7568         (vfms_n_f32): Likewise.
7569         (vfms_n_f64): Likewise.
7570         (vfmsq_n_f32): Likewise.
7571         (vfmsq_n_f64): Likewise.
7573 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
7575         * wide-int.h: Change fixed_wide_int_storage from class to struct.
7577 2016-05-17  Richard Biener  <rguenther@suse.de>
7579         PR tree-optimization/71132
7580         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7581         Only add control dependences for blocks in the loop.
7582         (build_rdg): Adjust.
7583         (generate_code_for_partition): Return whether loop should
7584         be destroyed and delay that.
7585         (distribute_loop): Likewise.
7586         (pass_loop_distribution::execute): Record loops to be destroyed
7587         and perform delayed destroying of loops.
7589 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7591         PR target/70809
7592         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7594 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7596         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7598 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
7600         PR target/71114
7601         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7602         insertion point for instructions generated by validize_mem.
7604 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7606         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7607         in brackets.
7609 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7611         * config/aarch64/aarch64.c
7612         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7613         rather than a macro.
7615 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7617         * doc/invoke.texi (AArch64 Options): Various updates.
7619 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7621         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7622         into instrumentation thunks.
7623         * cif-code.def (CIF_CHKP): New.
7625 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
7627         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7629 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7631         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7632         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7634 2016-05-16  Marek Polacek  <polacek@redhat.com>
7636         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7637         commentary.
7639 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7641         PR hsa/70857
7642         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7643         the outlined kernel function.
7645 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7647         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7648         (ISA_HAS_DLSA): Ditto.
7650 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7652         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7654 2016-05-16  Nathan Sidwell  <nathan@acm.org>
7656         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7657         (nvptx_name_replacement): Restore.  Add comment.
7658         (write_fn_proto, write_fn_proto_from_insn,
7659         nvptx_output_call_insn): Restore
7660         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7662 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7664         * config/aarch64/aarch64.md
7665         (add<mode>3_compareC_cconly_imm): Remove use of %w.
7666         (add<mode>3_compareC_imm): Likewise.
7667         (<optab>si3_uxtw): Split into register and immediate variants.
7668         (andsi3_compare0_uxtw): Likewise.
7669         (and<mode>3_compare0): Likewise.
7670         (and<mode>3nr_compare0): Likewise.
7671         (stack_protect_test_<mode>): Don't use %x for memory operands.
7673 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7675         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7677 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7679         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7680         Split integer shifts into shift_reg and bfm.
7681         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7682         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7683         (ror<mode>3_insn): Likewise.
7684         (<optab>si3_insn_uxtw): Likewise.
7685         (<optab><mode>3_insn): Change to rotate_imm.
7686         (extr<mode>5_insn_alt): Likewise.
7687         (extrsi5_insn_uxtw): Likewise.
7688         (extrsi5_insn_uxtw_alt): Likewise.
7690 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7692         * doc/tm.texi: Regenerate.
7693         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7694         (TARGET_INVALID_RETURN_TYPE): Remove.
7695         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7696         TARGET_INVALID_RETURN_TYPE.
7697         * target.def (invalid_parameter_type): Remove.
7698         (invalid_return_type): Remove.
7700 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7702         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7703         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7704         calls from thunk.
7705         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7706         gimple body.
7707         (preserve_function_body_p): No need to preserve function body
7708         * cif-codes.def (CIF_THUNK): Remove.
7709         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7711 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7713         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7715 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7717         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7718         for thunks.
7720 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7722         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7723         (inline_small_functions): Do not look for function symbol when
7724         resetting caches.
7726 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7728         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7729         of inline thunks
7731 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7732             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7733             Jiong Wang  <jiong.wang@arm.com>
7735         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7736         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7737         Define __ARM_FP16_ARGS when appropriate.
7738         * config/arm/arm.c (arm_invalid_parameter_type): Remove
7739         declaration.
7740         (arm_invalid_return_type): Likewise.
7741         (TARGET_INVALID_PARAMETER_TYPE): Remove.
7742         (TARGET_INVALID_RETURN_TYPE): Remove.
7743         (aapcs_vfp_sub_candidate): Allow HFmode.
7744         (aapcs_vfp_allocate): Add comment.  Support HFmode.
7745         (aapcs_vfp_allocate_return_reg): Likewise.
7746         (struct aapcs_cp_arg_layout): Slightly reword comments for
7747         is_return_candidate and allocate_return_reg.
7748         (output_mov_vfp): Update assert.
7749         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7750         condition.
7751         (arm_invalid_parameter_type): Remove.
7752         (amr_invalid_return_type): Remove.
7753         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7754         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7755         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7757 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7759         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7760         * config/aarch64/arch64-protos.h
7761         (aarch64_legitimize_reload_address): Remove.
7762         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7763         Remove.
7765 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7767         * configure.ac: Add ACX_NONCANONICAL_HOST.
7768         * configure: Regenerate.
7769         * Makefile.in: Set host_noncanonical.
7771 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
7773         PR target/71097
7774         * config/i386/i386.md (*movtf_internal): Before register allocation,
7775         do not allow FP constants for CM_MEDIUM memory model, allow only
7776         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7777         (*movxf_internal): Ditto.
7778         (*movdf_internal): Ditto.
7779         (*movsf_internal): Ditto.
7781 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7783         PR rtl-optimization/67483
7784         * combine.c (make_compound_operation): Don't call extract_left_shift
7785         with negative shift amounts.
7787 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
7789         PR bootstrap/71071
7790         * fold-const.c (fold_checksum_tree): Allow modification
7791         of TYPE_ALIAS_SET during folding.
7793         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7794         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7795         (ix86_split_to_parts): Likewise.  Fix up formatting.
7797 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7799         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7800         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7801         printf format.
7803 2016-05-13  Nathan Sidwell  <nathan@acm.org>
7805         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7806         (nvptx_name_replacement): Delete.
7807         (write_fn_proto, write_fn_proto_from_insn,
7808         nvptx_output_call_insn): Remove nvptx_name_replacement call.
7809         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7810         * langhooks.c (add_builtin_funcction_common): Call
7811         targetm.mangle_decl_assembler_name.
7813         * config/nvptx/nvptx.c (write_fn_proto): Handle
7814         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7816 2016-05-13  Martin Liska  <mliska@suse.cz>
7818         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7819         and PRIu64 in printf format.
7821 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7823         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7824         comment.
7826 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7828         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7829         Change --param max-completely-peeled-times to
7830         --param max-completely-peel-times in dump file printing.
7832 2016-05-13  Richard Biener  <rguenther@suse.de>
7834         PR tree-optimization/42587
7835         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7836         (find_bswap_or_nop_1): Likewise.
7837         (bswap_replace): Likewise.
7839 2016-05-13  Martin Liska  <mliska@suse.cz>
7841         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7842         Initialize a variable with default value.
7844 2016-05-13  Martin Liska  <mliska@suse.cz>
7846         * doc/invoke.texi: Enhance explanation of error recovery
7847         of sanitizers.
7849 2016-05-13  Martin Liska  <mliska@suse.cz>
7851         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7852         (struct cost_pair): Change inv_expr_id (int) to inv_expr
7853         (iv_inv_expr_ent *).
7854         (struct iv_inv_expr_ent): Comment struct fields.
7855         (sort_iv_inv_expr_ent): New function.
7856         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7857         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7858         a hash_map between iv_inv_expr_ent and number of usages.
7859         (niter_for_exit): Fix coding style.
7860         (tree_ssa_iv_optimize_init): Use renamed variable.
7861         (determine_base_object): Fix coding style.
7862         (alloc_iv): Likewise.
7863         (find_interesting_uses_outside): Likewise.
7864         (add_candidate_1): Likewise.
7865         (add_standard_iv_candidates): Likewise.
7866         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7867         (prepare_decl_rtl): Fix coding style.
7868         (get_address_cost): Likewise.
7869         (get_shiftadd_cost): Likewise.
7870         (force_expr_to_var_cost): Likewise.
7871         (compare_aff_trees): Likewise.
7872         (get_expr_id): Restructure the function.
7873         (get_loop_invariant_expr_id): Renamed to
7874         get_loop_invariant_expr.
7875         (get_computation_cost_at): Replace usage of inv_expr_id with
7876         inv_expr.
7877         (get_computation_cost): Likewise.
7878         (determine_group_iv_cost_generic): Likewise.
7879         (determine_group_iv_cost_address): Likewise.
7880         (iv_period): Fix coding style.
7881         (iv_elimination_compare_lt): Likewise.
7882         (may_eliminate_iv): Likewise.
7883         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
7884         inv_expr.
7885         (determine_group_iv_costs): Dump invariant expressions.
7886         (iv_ca_recount_cost): Use the newly added hash_map.
7887         (iv_ca_set_remove_invariants): Fix coding style.
7888         (iv_ca_set_add_invariants): Fix coding style.
7889         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7890         invariants.
7891         (iv_ca_set_cp): Likewise.
7892         (iv_ca_new): Initialize the newly added hash_map and remove
7893         initialization of fields.
7894         (iv_ca_free): Delete the hash_map.
7895         (iv_ca_dump): Dump invariant expressions.
7896         (iv_ca_extend): Fix coding style.
7897         (try_add_cand_for): Likewise.
7898         (create_new_ivs): Dump information about # of avg iterations and
7899         # of used invariant expressions.
7900         (rewrite_use_compare): Fix coding style.
7901         (free_loop_data): Set default value for max_inv_expr_id.
7903 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7905         * cse.c (rest_of_handle_cse): Use cleanup_cfg
7906         returned value cse_cfg_altered computation.
7907         (rest_of_handle_cse2): Likewise.
7908         (rest_of_handle_cse_after_global_opts): Likewise.
7910 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7912         PR target/53440
7913         * config/arm/arm.c (arm32_output_mi_thunk): New.
7914         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7915         to split Thumb1 vs TARGET_32BIT functionality.
7916         (arm_thumb1_mi_thunk): New.
7918 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7920         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7921         to true.
7923 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7925         PR target/71080
7926         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7928 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7930         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7931         (expand_builtin_trap): Emit a regular call.
7932         (set_builtin_user_assembler_name): Remove obsolete cases.
7933         * dse.c (scan_insn): Adjust.
7934         * except.c: Include calls.h.
7935         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7936         emit a regular call to setjmp.
7937         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7938         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7939         (emit_block_move_via_libcall): Delete.
7940         (block_move_fn): Delete.
7941         (init_block_move_fn): Likewise.
7942         (emit_block_move_libcall_fn): Likewise.
7943         (emit_block_op_via_libcall): New function.
7944         (set_storage_via_libcall): Tidy up and use memset builtin.
7945         (block_clear_fn): Delete.
7946         (init_block_clear_fn): Likewise.
7947         (clear_storage_libcall_fn): Likewise.
7948         (expand_assignment): Call emit_block_move_via_libcall.
7949         Do not include gt-expr.h.
7950         * expr.h (emit_block_op_via_libcall): Declare.
7951         (emit_block_copy_via_libcall): New inline function.
7952         (emit_block_move_via_libcall): Likewise.
7953         (emit_block_comp_via_libcall): Likewise.
7954         (block_clear_fn): Delete.
7955         (init_block_move_fn): Likewise.
7956         (init_block_clear_fn): Likewise.
7957         (emit_block_move_via_libcall): Likewise.
7958         (set_storage_via_libcall): Add default parameter value.
7959         * libfuncs.h (enum libfunc_index): Remove obsolete values.
7960         (abort_libfunc): Delete.
7961         (memcpy_libfunc): Likewise.
7962         (memmove_libfunc): Likewise.
7963         (memcmp_libfunc): Likewise.
7964         (memset_libfunc): Likewise.
7965         (setbits_libfunc): Likewise.
7966         (setjmp_libfunc): Likewise.
7967         (longjmp_libfunc): Likewise.
7968         (profile_function_entry_libfunc): Likewise.
7969         (profile_function_exit_libfunc): Likewise.
7970         (gcov_flush_libfunc): Likewise.
7971         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7972         and DECL_VISIBILITY on the declaration.
7973         (init_optabs): Do not initialize obsolete libfuncs.
7974         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7975         * tree-core.h (ECF_RET1): Define.
7976         (ECF_TM_PURE): Adjust.
7977         (ECF_TM_BUILTIN): Likewise.
7978         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7979         (build_common_builtin_nodes): Initialize abort builtin.
7980         Add ECF_RET1 on memcpy, memmove and memset builtins.
7981         Pass final flags for alloca and alloca_with_align builtins.
7982         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7983         obsolete builtins.
7984         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7985         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7986         set_storage_via_libcall and call emit_block_copy_via_libcall.
7988 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
7990         * config/i386/i386.md (*call_got_x32): Change operand 0 to
7991         DImode before it is passed to ix86_output_call_operand.
7992         (*call_value_got_x32): Ditto for operand 1.
7994 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
7996         PR rtl-optimization/70904
7997         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7998         reload for wide mode.
8000 2016-05-12  Marek Polacek  <polacek@redhat.com>
8002         PR c/70756
8003         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
8004         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
8005         * langhooks.h (incomplete_type_error): Likewise.
8006         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
8007         parameter, pass it down to incomplete_type_error.
8008         * tree.h (size_in_bytes): New inline overload.
8009         (size_in_bytes_loc): Renamed from size_in_bytes.
8011 2016-05-12  Richard Biener  <rguenther@suse.de>
8013         PR tree-optimization/71059
8014         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
8015         nary before looking up or entering the expression into the VN
8016         hashes.
8017         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
8018         Make sure to re-use NARYs without result as inserted by
8019         phi-translation.
8021 2016-05-12  Richard Biener  <rguenther@suse.de>
8023         PR tree-optimization/71062
8024         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8025         field.
8026         * tree-ssa-structalias.c (set_uids_in_ptset): Set
8027         vars_contains_restrict if the var is a restrict tag.
8028         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
8029         do not disambiguate pointers against it.
8030         (dump_points_to_solution): Re-structure and adjust for new
8031         vars_contains_restrict flag.
8032         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8034 2016-05-12  Martin Liska  <mliska@suse.cz>
8036         * doc/invoke.texi: Explain connection between
8037         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
8039 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
8041         PR tree-optimization/71006
8042         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8043         consider COND_EXPR as a mask producer.
8045 2016-05-12  Marek Polacek  <polacek@redhat.com>
8047         PR driver/71063
8048         * opts.c (common_handle_option): Detect missing argument for --help^.
8050 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8052         PR target/70830
8053         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
8054         when popping the PC and within an interrupt handler routine.
8055         Add missing tab to output of "ldmfd".
8056         (output_return_instruction): Output LDMFD with SP update rather
8057         than POP when returning from interrupt handler.
8059 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
8061         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
8062         TARGET_64BIT && TARGET_AVX512DQ.
8063         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
8064         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
8065         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
8066         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
8067         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
8068         (*vec_extractv4si_zext): Add avx512dq alternative.
8069         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
8070         use v instead of x constraint in other alternatives where possible.
8072         * config/i386/sse.md (sse2_loadld): Use v instead of x
8073         constraint in alternatives 0,1,4.
8075         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
8076         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
8077         v constraints instead of x and <pinsr_evex_isa> isa attribute.
8079         PR target/71019
8080         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
8081         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
8082         is not emitted unless TARGET_AVX512BW.
8083         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
8084         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
8085         for the result operand.
8087         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
8088         constraint instead of x in avx alternatives.  Use maybe_evex instead
8089         of vex prefix.
8091         * config/i386/constraints.md (Yv): New constraint.
8092         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
8093         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
8094         * config/i386/i386.md (avx512fvecmode): New mode attr.
8095         (*pushtf): Use v constraint instead of x.
8096         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
8097         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
8098         (*absneg<mode>2): Use Yv constraint instead of x constraint.
8099         (*absnegtf2_sse): Likewise.
8100         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
8101         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
8102         avx512f alternatives.
8103         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
8105 2016-05-12  Richard Biener  <rguenther@suse.de>
8107         PR tree-optimization/71060
8108         * tree-data-ref.c (initialize_data_dependence_relation): Do not
8109         require exact match of DR_BASE_OBJECT but only matching address and
8110         type.
8112 2016-05-12  Richard Biener  <rguenther@suse.de>
8114         PR tree-optimization/70986
8115         * cfganal.c: Include cfgloop.h.
8116         (dfs_find_deadend): Prefer to take edges exiting loops.
8118 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8120         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
8121         compile and run time.
8123 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
8125         PR c/43651
8126         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
8128 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
8130         * config/i386/i386.c (legitimize_pic_address): Use
8131         copy_to_suggested_reg instead of gen_movsi.
8133 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8135         * config/rs6000/predicates.md (quad_memory_operand): Move most of
8136         the code into quad_address_p and call it to share code with
8137         vsx_quad_dform_memory_operand.
8138         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
8139         d-form support.
8140         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
8141         bit instead of being a separate word.  Split -mpower9-dform into
8142         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8143         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
8144         for the register class supporting 128-bit quad word memory offsets.
8145         (mode_supports_vsx_dform_quad): Helper function to return if the
8146         register class uses quad word memory offsets.
8147         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
8148         (rs6000_debug_reg_global): Always print if we are using LRA or not.
8149         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
8150         instructions are enabled, set up the appropriate addr_masks for
8151         128-bit types.
8152         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
8153         -mpower9-dform-scalar, instead of -mpower9-dform.
8154         (rs6000_option_override_internal): Split -mpower9-dform into two
8155         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
8156         -mpower9-dform switch sets or clears both.  If we are not using
8157         the LRA register allocator, do not enable -mpower9-dform-vector by
8158         default.  If we are using LRA, enable -mpower9-dform-vector and
8159         -mvsx-timode if it is appropriate.  Issue a warning if either
8160         -mpower9-dform-vector or -mvsx-timode are explicitly used without
8161         enabling LRA.
8162         (quad_address_offset_p): New helper function to return if the
8163         offset is legal for quad word memory instructions.
8164         (quad_address_p): New function to determin if GPR or vector
8165         register quad word memory addresses are legal.
8166         (mem_operand_gpr): Validate quad word address offsets.
8167         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
8168         d-form (register + offset) instructions.
8169         (offsettable_ok_by_alignment): Likewise.
8170         (rs6000_legitimate_offset_address_p): Likewise.
8171         (legitimate_lo_sum_address_p): Likewise.
8172         (rs6000_legitimize_address): Likewise.
8173         (rs6000_legitimize_reload_address): Add more debug statements for
8174         -mdebug=addr.
8175         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
8176         d-form instructions.
8177         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
8178         d-form instructions.  Distinguish different cases in debug
8179         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
8180         d-form instructions.
8181         (rs6000_preferred_reload_class): Likewise.
8182         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
8183         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
8184         of the ISA 2.06 indexed memory instructions.
8185         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
8186         use them to save/restore the saved vector registers instead of
8187         using Altivec instructions.
8188         (rs6000_emit_epilogue): Likewise.
8189         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
8190         (rs6000_opt_masks): Split -mpower9-dform into
8191         -mpower9-dform-scalar and -mpower9-dform-vector.
8192         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
8193         was not selected.
8194         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
8195         ISA 3.0 vector indexed memory instructions, and fold the code into
8196         the normal mov<mode> patterns.
8197         (p9_vecstore_<mode>): Likewise.
8198         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
8199         instructions.
8200         (vsx_movti_64bit): Likewise.
8201         (vsx_movti_32bit): Likewise.
8202         * config/rs6000/constraints.md (wO constraint): New constraint for
8203         ISA 3.0 vector d-form support.
8204         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
8205         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
8206         include -mpower9-dform-vector until we switch over to LRA.
8207         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
8208         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8209         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
8210         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8211         for -mpower9-dform and -mlra.
8212         * doc/md.texi (wO constraint): Document wO constraint.
8214 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
8216         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
8217         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
8218         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
8219         Move handling of non-insn arguments inline into the sole user:
8220         (output_trans_func): ...here.
8221         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
8222         in emitted function prototype.
8223         (output_internal_insn_latency_func): Ditto.  Simplify.
8224         (output_internal_maximal_insn_latency_func): Ditto.  Delete
8225         always-unused argument.
8226         (output_insn_latency_func): Ditto.
8227         (output_maximal_insn_latency_func): Ditto.
8229 2016-05-11  Richard Biener  <rguenther@suse.de>
8231         PR tree-optimization/71055
8232         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
8233         sth with precision not equal to access size verify we don't chop
8234         off bits.
8236 2016-05-11  Richard Biener  <rguenther@suse.de>
8238         PR debug/71057
8239         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
8240         (dwarf2out_finish): Move retry_incomplete_types call ...
8241         (dwarf2out_early_finish): ... here.
8243 2016-05-11  Richard Biener  <rguenther@suse.de>
8245         PR middle-end/71002
8246         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
8247         if the langhook insists on it.
8248         * fold-const.c (make_bit_field_ref): Add arg for the original
8249         reference and preserve its alias-set.
8250         (decode_field_reference): Take exp by reference and adjust it
8251         to the original memory reference.
8252         (optimize_bit_field_compare): Adjust callers.
8253         (fold_truth_andor_1): Likewise.
8254         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
8256 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
8258         PR middle-end/70807
8259         * cfgrtl.h (delete_insn_and_edges): Now return bool.
8260         * cfgrtl.c (delete_insn_and_edges): Likewise.
8261         * config/i386/i386.c (convert_scalars_to_vector): Remove
8262         redundant code.
8263         * cse.c (cse_insn): Compute cse_cfg_altered.
8264         (delete_trivially_dead_insns): Likewise.
8265         (cse_cc_succs): Likewise.
8266         (rest_of_handle_cse): Free dominance info if required.
8267         (rest_of_handle_cse2): Likewise.
8268         (rest_of_handle_cse_after_global_opts): Likewise.
8270 2016-05-11  Alan Modra  <amodra@gmail.com>
8272         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8273         abi_v4_pass_in_fpr): New functions.
8274         (rs6000_function_arg_boundary): Exclude complex IBM long double
8275         from 64-bit alignment when ABI_V4.
8276         (rs6000_function_arg, rs6000_function_arg_advance_1,
8277         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8279 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
8281         PR rtl-optimization/71028
8282         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8283         jump with just a return in the fallthrough block if the branch
8284         block contains just a return as well.
8286 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
8288         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8289         * match.pd ((X & Y) ^ Y): ... this.
8290         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8291         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8293 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8295         * read-md.c (require_char_ws): New function.
8296         (read_string): Simplify using require_char_ws.
8297         (handle_constants): Likewise.
8298         (handle_enum): Likewise.
8299         (handle_file): Likewise.
8300         * read-md.h (require_char_ws): New declaration.
8301         * read-rtl.c (read_conditions): Simplify using require_char_ws.
8302         (read_mapping): Likewise.
8303         (read_rtx_code): Likewise.
8304         (read_nested_rtx): Likewise.
8306 2016-05-10  James Norris  <jnorris@codesourcery.com>
8308         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8309         if offloading is enabled and -fopenacc or -fopenmp is specified.
8310         (CRTOFFLOADEND): Likewise.
8311         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8312         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8314 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
8316         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8317         gotoff_operand code paths.  Use copy_to_suggested_regs and
8318         expand_simple_binop where appropriate.  Cleanup.
8320 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8322         PR target/70799
8323         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8324         integer constants.
8325         (dimode_scalar_chain::vector_const_cost): New.
8326         (dimode_scalar_chain::compute_convert_gain): Handle constants.
8327         (dimode_scalar_chain::convert_op): Likewise.
8328         (dimode_scalar_chain::convert_insn): Likewise.
8330 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8332         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8333         unary operation, not a binary one.
8335 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8337         PR middle-end/70877
8338         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8339         calls with type casted fndecl.
8341 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8343         PR tree-optimization/70786
8344         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8345         * calls.c (initialize_argument_information): Bind bounds
8346         with corresponding args passed by reference.
8348 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
8350         PR target/70927
8351         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8352         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8353         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8354         accordingly.
8356 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8358         PR target/70963
8359         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8360         code for a zero scale factor.
8361         (vsx_xvcvdpuxds_scale): Likewise.
8363 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8365         * diagnostic-show-locus.c (layout::layout): Call show_ruler
8366         if show_ruler_p was set on the context.
8367         (layout::show_ruler): New method.
8368         * diagnostic.h (struct diagnostic_context): Add field
8369         "show_ruler_p".
8371 2016-05-10  Richard Biener  <rguenther@suse.de>
8373         PR tree-optimization/71039
8374         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8375         (chk_uses): New function.
8376         (propagate_with_phi): Verify we can safely replicate the lhs of an
8377         aggregate assignment on all incoming edges.
8379 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
8381         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8382         Forward declare.
8383         (rx_atomic_sequence): New class.
8384         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8385         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8386         non-inline.
8387         (rx_atomic_sequence::rx_atomic_sequence,
8388         rx_atomic_sequence::~rx_atomic_sequence): New functions.
8389         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8390         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8391         CTRLREG_INTB): New constants.
8392         (FETCHOP): New code iterator.
8393         (fethcop_name, fetchop_name2): New iterator code attributes.
8394         (QIHI): New mode iterator.
8395         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8396         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8397         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8399 2016-05-10  Martin Liska  <mliska@suse.cz>
8401         * tree-inline.c (remap_dependence_clique): Do not remap
8402         debugging statements.
8404 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8406         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8407         ("*fixuns_truncdfdi2_z13")
8408         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8409         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8410         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8412 2016-05-10  Richard Biener  <rguenther@suse.de>
8414         PR tree-optimization/70497
8415         PR tree-optimization/28367
8416         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8417         split out from ...
8418         (visit_reference_op_load): ... here.
8419         (vn_reference_lookup_3): Use it to handle subreg-like accesses
8420         with simplified BIT_FIELD_REFs.
8421         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8422         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8423         correctly.
8425 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8427         * dwarf2out.c (add_abstract_origin_attribute): Adjust
8428         documentation comment.  For BLOCK nodes, add a
8429         DW_AT_abstract_origin attribute that points to the DIE generated
8430         for the origin BLOCK.
8431         (gen_lexical_block_die): Call add_abstract_origin_attribute for
8432         blocks from inlined functions.
8434 2016-05-10  Alan Modra  <amodra@gmail.com>
8436         PR target/70947
8437         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8438         regrename modifying insns saving lr before __morestack call.
8439         * config/rs6000/rs6000.md (split_stack_return): Similarly for
8440         insns restoring lr after __morestack call.
8442 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
8444         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8445         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8446         expanders.
8447         * config/i386/sse.md (vec_interleave_high<mode>,
8448         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8449         <avx512>_vpermt2var<mode>3_maskz): Likewise.
8451 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8453         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8454         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8455         parallel reassociation for power8 and forward.
8457 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
8459         * config/i386/i386.md (absneg splitters with general regs): Use
8460         general_reg_operand predicate.
8461         (btsq peephole2): Use x86_64_immediate_operand to check if new
8462         value is suitable for immediate operand.  Generate emitted insn
8463         using RTL expressions.
8464         (btcq peephole2): Ditto.
8465         (btrq peephole2): Ditto.  Generate correct immediate operand
8466         for AND masking.
8468 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8470         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8471         bitpos.
8473 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8475         * tree-affine.c (wide_int_constant_multiple_p): Add missing
8476         pointer dereference.
8478 2016-05-09  Richard Biener  <rguenther@suse.de>
8480         PR tree-optimization/70985
8481         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8482         op0 isn't a gimple register.
8484 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
8486         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8487         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8488         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8489         (i6400_fpu_mult): New cpu units.
8490         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8491         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8492         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8493         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8494         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8495         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8496         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8497         (i6400_msa_long_float4, i6400_msa_long_float5)
8498         (i6400_msa_long_float8, i6400_msa_fdiv_df)
8499         (i6400_msa_fdiv_sf): New reservations.
8500         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8501         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8502         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8503         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8504         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8505         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8506         (msa_short_cmp, msa_short_float2, msa_short_logic3)
8507         (msa_short_store4, msa_long_load, msa_short_store)
8508         (msa_long_logic, msa_long_float2, msa_long_float4)
8509         (msa_long_float5, msa_long_float8, msa_long_mult)
8510         (msa_long_fdiv, msa_long_div): New reservations.
8512 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
8513             Sameera Deshpande  <sameera.deshpande@imgtec.com>
8514             Matthew Fortune  <matthew.fortune@imgtec.com>
8515             Graham Stott  <graham.stott@imgtec.com>
8516             Chao-ying Fu  <chao-ying.fu@imgtec.com>
8518         * config.gcc: Add MSA header file for mips*-*-* target.
8519         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8520         (Ubv8i, Urv8):  New constraints.
8521         * config/mips/mips-ftypes.def: Add function types for MSA
8522         builtins.
8523         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8524         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8525         * config/mips/mips-msa.md: New file.
8526         * config/mips/mips-protos.h
8527         (mips_split_128bit_const_insns): New prototype.
8528         (mips_msa_idiv_insns): Likewise.
8529         (mips_split_128bit_move): Likewise.
8530         (mips_split_128bit_move_p): Likewise.
8531         (mips_split_msa_copy_d): Likewise.
8532         (mips_split_msa_insert_d): Likewise.
8533         (mips_split_msa_fill_d): Likewise.
8534         (mips_expand_msa_branch): Likewise.
8535         (mips_const_vector_same_val_p): Likewise.
8536         (mips_const_vector_same_bytes_p): Likewise.
8537         (mips_const_vector_same_int_p): Likewise.
8538         (mips_const_vector_shuffle_set_p): Likewise.
8539         (mips_const_vector_bitimm_set_p): Likewise.
8540         (mips_const_vector_bitimm_clr_p): Likewise.
8541         (mips_msa_vec_parallel_const_half): Likewise.
8542         (mips_msa_output_division): Likewise.
8543         (mips_ldst_scaled_shift): Likewise.
8544         (mips_expand_vec_cond_expr): Likewise.
8545         * config/mips/mips.c (enum mips_builtin_type): Add
8546         MIPS_BUILTIN_MSA_TEST_BRANCH.
8547         (mips_gen_const_int_vector_shuffle): New prototype.
8548         (mips_const_vector_bitimm_set_p): New function.
8549         (mips_const_vector_bitimm_clr_p): Likewise.
8550         (mips_const_vector_same_val_p): Likewise.
8551         (mips_const_vector_same_bytes_p): Likewise.
8552         (mips_const_vector_same_int_p): Likewise.
8553         (mips_const_vector_shuffle_set_p): Likewise.
8554         (mips_symbol_insns): Forbid loading symbols via immediate for
8555         MSA.
8556         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8557         stores.
8558         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8559         MSA.
8560         (mips_lx_address_p): Add support load indexed address for MSA.
8561         (mips_address_insns): Add calculation of instructions needed for
8562         stores and loads for MSA.
8563         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
8564         CONST_VECTOR for MSA and let it fall through.
8565         (mips_ldst_scaled_shift): New function.
8566         (mips_subword_at_byte): Likewise.
8567         (mips_msa_idiv_insns): Likewise.
8568         (mips_legitimize_move): Validate MSA moves.
8569         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
8570         calculation of costs for MSA division.
8571         (mips_split_move_p): Check if MSA moves need splitting.
8572         (mips_split_move): Split MSA moves if necessary.
8573         (mips_split_128bit_move_p): New function.
8574         (mips_split_128bit_move): Likewise.
8575         (mips_split_msa_copy_d): Likewise.
8576         (mips_split_msa_insert_d): Likewise.
8577         (mips_split_msa_fill_d): Likewise.
8578         (mips_output_move): Handle MSA moves.
8579         (mips_expand_msa_branch): New function.
8580         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8581         Reinstate 'y' modifier.
8582         (mips_file_start): Add MSA .gnu_attribute.
8583         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8584         FPRs.
8585         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8586         (mips_class_max_nregs): Add register size for MSA supported mode.
8587         (mips_cannot_change_mode_class): Allow conversion between MSA
8588         vector modes and TImode.
8589         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8590         instruction.
8591         (mips_secondary_reload_class): Force MSA loads/stores via memory.
8592         (mips_preferred_simd_mode): Add preffered modes for MSA.
8593         (mips_vector_mode_supported_p): Add MSA supported modes.
8594         (mips_autovectorize_vector_sizes): New function.
8595         (mips_msa_output_division): Likewise.
8596         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8597         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8598         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8599         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8600         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8601         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8602         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8603         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8604         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8605         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8606         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8607         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8608         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8609         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8610         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8611         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8612         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8613         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8614         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8615         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8616         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8617         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8618         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8619         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8620         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8621         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8622         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8623         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8624         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8625         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8626         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8627         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8628         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8629         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8630         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8631         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8632         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8633         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8634         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8635         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8636         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8637         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8638         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8639         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8640         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8641         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8642         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8643         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8644         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8645         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8646         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8647         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8648         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8649         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8650         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8651         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8652         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8653         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8654         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8655         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8656         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8657         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8658         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8659         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8660         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8661         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8662         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8663         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8664         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8665         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8666         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8667         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8668         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8669         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8670         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8671         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8672         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8673         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8674         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8675         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8676         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8677         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8678         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8679         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8680         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8681         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8682         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8683         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8684         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8685         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8686         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8687         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8688         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8689         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8690         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8691         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8692         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8693         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8694         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8695         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8696         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8697         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8698         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8699         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8700         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8701         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8702         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8703         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8704         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8705         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8706         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8707         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8708         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8709         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8710         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8711         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8712         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8713         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8714         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8715         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8716         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8717         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8718         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8719         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8720         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8721         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8722         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8723         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8724         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8725         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8726         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8727         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8728         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8729         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8730         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8731         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8732         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8733         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8734         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8735         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8736         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8737         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8738         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8739         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8740         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8741         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8742         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8743         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8744         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8745         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8746         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8747         move_v builtins.
8748         (mips_get_builtin_decl_index): New array.
8749         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8750         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8751         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8752         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8753         (mips_init_builtins): Initialize mips_get_builtin_decl_index
8754         array.
8755         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8756         hook.
8757         (mips_expand_builtin_insn): Prepare operands for
8758         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8759         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8760         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8761         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8762         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8763         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8764         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8765         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8766         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8767         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8768         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8769         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8770         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8771         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8772         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8773         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8774         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8775         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8776         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8777         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8778         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8779         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8780         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8781         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8782         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8783         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8784         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8785         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8786         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8787         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8788         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8789         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8790         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8791         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8792         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8793         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8794         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8795         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8796         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8797         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8798         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8799         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8800         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8801         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8802         These are set implicitly and an error is reported if overridden.
8803         (mips_expand_builtin_msa_test_branch): New function.
8804         (mips_expand_msa_shuffle): Likewise.
8805         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8806         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8807         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8808         (mips_expand_vec_unpack): Add support for MSA.
8809         (mips_expand_vector_init): Likewise.
8810         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8811         instead of const0_rtx.
8812         (mips_msa_vec_parallel_const_half): New function.
8813         (mips_gen_const_int_vector): Likewise.
8814         (mips_gen_const_int_vector_shuffle): Likewise.
8815         (mips_expand_msa_cmp): Likewise.
8816         (mips_expand_vec_cond_expr): Likewise.
8817         * config/mips/mips.h
8818         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8819         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8820         specified.
8821         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8822         (ISA_HAS_MSA): New macro.
8823         (UNITS_PER_MSA_REG): Likewise.
8824         (BITS_PER_MSA_REG): Likewise.
8825         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8826         (MSA_REG_FIRST): New macro.
8827         (MSA_REG_LAST): Likewise.
8828         (MSA_REG_NUM): Likewise.
8829         (MSA_REG_P): Likewise.
8830         (MSA_REG_RTX_P): Likewise.
8831         (MSA_SUPPORTED_MODE_P): Likewise.
8832         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8833         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8834         * config/mips/mips.md: Include mips-msa.md.
8835         (alu_type): Add simd_add.
8836         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8837         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8838         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8839         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8840         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8841         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8842         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8843         simd_move, simd_load, simd_store.  Choose "multi" for moves
8844         for "qword_mode".
8845         (qword_mode): New attribute.
8846         (insn_count): Add instruction count for quad moves.
8847         Increase the count for MIPS SIMD division.
8848         (UNITMODE): Add UNITMODEs for vector types.
8849         (addsub): New code iterator.
8850         * config/mips/mips.opt (mmsa): New option.
8851         * config/mips/msa.h: New file.
8852         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8853         specified.
8854         * config/mips/mti-linux.h: Likewise.
8855         * config/mips/predicates.md
8856         (const_msa_branch_operand): New constraint.
8857         (const_uimm3_operand): Likewise.
8858         (const_uimm4_operand): Likewise.
8859         (const_uimm5_operand): Likewise.
8860         (const_uimm8_operand): Likewise.
8861         (const_imm5_operand): Likewise.
8862         (aq10b_operand): Likewise.
8863         (aq10h_operand): Likewise.
8864         (aq10w_operand): Likewise.
8865         (aq10d_operand): Likewise.
8866         (const_m1_operand): Likewise.
8867         (reg_or_m1_operand): Likewise.
8868         (const_exp_2_operand): Likewise.
8869         (const_exp_4_operand): Likewise.
8870         (const_exp_8_operand): Likewise.
8871         (const_exp_16_operand): Likewise.
8872         (const_vector_same_val_operand): Likewise.
8873         (const_vector_same_simm5_operand): Likewise.
8874         (const_vector_same_uimm5_operand): Likewise.
8875         (const_vector_same_uimm6_operand): Likewise.
8876         (const_vector_same_uimm8_operand): Likewise.
8877         (par_const_vector_shf_set_operand): Likewise.
8878         (reg_or_vector_same_val_operand): Likewise.
8879         (reg_or_vector_same_simm5_operand): Likewise.
8880         (reg_or_vector_same_uimm6_operand): Likewise.
8881         * doc/extend.texi (MIPS SIMD Architecture Functions): New
8882         section.
8883         * doc/invoke.texi (-mmsa): Document new option.
8885 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8887         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8888         * configure: Regenerate.
8889         * config.in: Regenerate.
8890         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8891         on -fvtable-verify.
8892         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8893         (ENDFILE_VTV_SPEC): Define.
8895 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
8897         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8898         registers in all interrupt handlers if necessary.
8899         (rl78_option_override): Add warning.
8900         (MUST_SAVE_MDUC_REGISTERS): New macro.
8901         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8902         * config/rl78/rl78.c (check_mduc_usage): New function.
8903         (mduc_regs): New structure to hold MDUC register data.
8904         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8905         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8906         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8907         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8908         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8909         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8911 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
8913         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8914         (tree-ssa-loop-niter.h): Ditto.
8915         (idx_within_array_bound, ref_within_array_bound): New functions.
8916         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8917         Factor out check on writable base object to ...
8918         (base_object_writable): ... here.
8920 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8922         * config/arm/arm.md (probe_stack): Add modes to set source
8923         and destination.
8925 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
8927         * regrename.c (base_reg_class_for_rename): New static function.
8928         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8930 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
8932         * cgraph.c (thunk_adjust): Export.
8933         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8934         * cgraphunit.c (thunk_adjust): Export.
8935         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8936         thunks.
8937         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8938         inlinable.
8939         * tree-inline.c (expand_call_inline): Expand thunks inline.
8941 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
8943         PR target/70998
8944         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8945         (*sse2_vd_cvtss2sd): Ditto.
8946         * config/i386/i386.md
8947         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8948         Generate *sse2_vd_cvtsd2ss pattern.
8949         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8950         Generate *sse2_vd_cvtss2sd pattern.
8952 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8954         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8955         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
8956         users.
8958 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8960         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8961         * config/sh/sh.c: Define and declare variables on first use throughout
8962         the file.
8963         (current_function_interrupt): Change to bool type.
8964         (frame_insn): Rename to emit_frame_insn and update users.
8965         (push_regs): Use bool for 'interrupt_handler' argument.
8966         (save_schedule_s): Remove.
8967         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8968         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8969         targetm.asm_out.unaligned_op.di.
8970         (gen_far_branch): Remove redundant forward declaration.
8971         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8972         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8973         (sh_set_return_address, sh_function_ok_for_sibcall,
8974         scavenge_reg): Update comments.
8975         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8976         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8977         (sh_attr_renesas_p): Remove unnecessary parentheses.
8978         (branch_dest): Simplify.
8979         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8980         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8981         (CUMULATIVE_ARGS): Change macro to typedef.
8982         (current_function_interrupt): Change to bool type.
8983         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8984         Surround with __cplusplus ifdef.
8985         (sh_compare_op0, sh_compare_op1): Remove.
8986         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8988 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
8990         * config/arm/arm.md: (arch): Add neon.
8991         (arch_enabled): Return yes for arch neon when TARGET_NEON.
8992         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
8993         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
8994         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
8995         attributes for alt renumbering.  Mark alt 3 as non-predicable.
8996         (thumb2_movdf_vfp): Likewise.
8998 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
9000         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
9001         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
9002         (*andqi_1): Add preferred_for_speed attribute to disparage
9003         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
9004         (*<code>qi_1): Ditto.
9005         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
9006         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
9007         (*ashlqi3_1): Ditto.
9008         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
9009         Add preferred_for_size attribute to disparage alternative 0 and
9010         preferred_for_speed attribute to disparage alternative 1 for
9011         TARGET_PARTIAL_REG_STALL targets.
9013 2016-05-07  Tom de Vries  <tom@codesourcery.com>
9015         PR tree-optimization/70956
9016         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
9017         def.
9019 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
9021         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
9022         * config/sh/sh.c (sh_cbranch_distance): Implement it.
9023         * config/sh/sh.md (branch_zero): Remove define_attr.
9024         (define_delay): Disable delay slot if branch distance is one insn.
9026 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9028         * config/i386/i386.md (LEAMODE): New mode attribute.
9029         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
9030         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
9031         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
9032         operand 2 predicate.
9033         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
9034         (*lea<mode>_general_3): Ditto.
9035         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
9037 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9039         * genmddump.c (main): Convert argv from char ** to const char **.
9041 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9043         * coretypes.h (OVERRIDE): New macro.
9044         (FINAL): New macro.
9046 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
9048         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
9049         allow coalescing if the types are compatible.
9051 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9053         * pass_manager.h (pass_manager::register_pass_name): New method.
9054         (pass_manager::get_pass_by_name): New method.
9055         (pass_manager::create_pass_tab): New method.
9056         (pass_manager::m_name_to_pass_map): New field.
9057         * passes.c (name_to_pass_map): Delete global in favor of field
9058         "m_name_to_pass_map" of pass_manager.
9059         (register_pass_name): Rename from a function to...
9060         (pass_manager::register_pass_name): ...this method, updating
9061         for renaming of global "name_to_pass_map" to field
9062         "m_name_to_pass_map".
9063         (create_pass_tab): Rename from a function to...
9064         (pass_manager::create_pass_tab): ...this method, updating
9065         for renaming of global "name_to_pass_map" to field.
9066         (get_pass_by_name): Rename from a function to...
9067         (pass_manager::get_pass_by_name): ...this method.
9068         (enable_disable_pass): Convert use of get_pass_by_name to
9069         a method call, locating the pass_manager singleton.
9071 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9073         * genattr-common.c (main): Convert argv from char ** to const char **.
9074         * genattr.c (main): Likewise.
9075         * genattrtab.c (main): Likewise.
9076         * genautomata.c (initiate_automaton_gen): Likewise.
9077         (main): Likewise.
9078         * gencodes.c (main): Likewise.
9079         * genconditions.c (main): Likewise.
9080         * genconfig.c (main): Likewise.
9081         * genconstants.c (main): Likewise.
9082         * genemit.c (main): Likewise.
9083         * genenums.c (main): Likewise.
9084         * genextract.c (main): Likewise.
9085         * genflags.c (main): Likewise.
9086         * genmddeps.c (main): Likewise.
9087         * genopinit.c (main): Likewise.
9088         * genoutput.c (main): Likewise.
9089         * genpeep.c (main): Likewise.
9090         * genpreds.c (main): Likewise.
9091         * genrecog.c (main): Likewise.
9092         * gensupport.c (init_rtx_reader_args_cb): Likewise.
9093         (init_rtx_reader_args): Likewise.
9094         * gensupport.h (init_rtx_reader_args_cb): Likewise.
9095         (init_rtx_reader_args): Likewise.
9096         * gentarget-def.c (main): Likewise.
9097         * read-md.c (read_md_files): Likewise.
9098         * read-md.h (read_md_files): Likewise.
9100 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9102         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
9103         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
9104         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
9105         Remove unused predicate.
9106         (register_and_not_fp_reg_operand): Ditto.
9108 2016-05-06  Martin Liska  <mliska@suse.cz>
9110         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
9111         instead of vec as the vector is local to the function.
9113 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9115         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
9116         avx512bw alternative.
9118         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
9119         before the ashr<mode>3 pattern.
9121         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
9122         v instead of x in vex or maybe_vex alternatives, use
9123         maybe_evex instead of vex in prefix.
9125         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
9126         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
9127         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
9128         in vex or maybe_vex alternatives, use maybe_evex instead of vex
9129         in prefix.
9131         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
9132         v instead of x in vex or maybe_vex alternatives, use
9133         maybe_evex instead of vex in prefix.
9135         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
9136         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
9137         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
9138         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
9139         alternatives, use maybe_evex instead of vex in prefix.
9141         * config/i386/sse.md (vec_interleave_lowv4sf,
9142         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
9143         v instead of x in vex or maybe_vex alternatives, use
9144         maybe_evex instead of vex in prefix.
9146         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
9147         v instead of x in vex or maybe_vex alternatives, use
9148         maybe_evex instead of vex in prefix.
9150         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
9151         v constraint instead of x.
9153 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
9155         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
9156         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
9157         equality first.
9159 2016-05-06  Richard Biener  <rguenther@suse.de>
9161         PR tree-optimization/70948
9162         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9163         Properly clobber all fields of va_list for __builtin_va_start.
9165 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
9167         PR debug/70935
9168         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
9169         loop latch destination.
9171 2016-05-06  Martin Liska  <mliska@suse.cz>
9173         * tree-ssa-uninit.c: Apply manual changes
9174         to the GNU coding style.
9175         (prune_uninit_phi_opnds): Rename from
9176         prune_uninit_phi_opnds_in_unrealizable_paths.
9178 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9180         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
9181         mspace): Remove deprecated options.
9182         * doc/invoke.texi (SH options): Remove -mspace.
9184 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9186         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
9188 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9190         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
9191         corresponding combine split pattern.
9193 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9195         PR target/58219
9196         * config/sh/predicates.md (long_displacement_mem_operand): New.
9197         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
9198         Add movi20, movi20s alternatives.  Adjust length attribute for
9199         alternatives.
9200         (movsi_ie): Allow for any FPU.  Adjust length attribute for
9201         alternatives.
9202         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
9203         attribute for alternatives.
9204         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
9205         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
9206         length attribute for alternatives.
9208 2016-05-06  Richard Biener  <rguenther@suse.de>
9210         PR tree-optimization/70960
9211         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
9213 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9215         PR target/52933
9216         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
9217         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
9219 2016-05-06  Marek Polacek  <polacek@redhat.com>
9221         PR sanitizer/70875
9222         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
9224 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9226         PR target/54089
9227         * config/sh/sh.md (*rotcr): Add another variant.
9229 2016-05-06  Richard Biener  <rguenther@suse.de>
9231         PR middle-end/70931
9232         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
9234 2016-05-06  Richard Biener  <rguenther@suse.de>
9236         PR middle-end/70941
9237         * fold-const.c (split_tree): Always convert to the original type
9238         before negating.
9240 2016-05-06  Richard Biener  <rguenther@suse.de>
9242         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
9243         (fwprop_addr): Likewise.
9245 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9247         PR target/70873
9248         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
9249         New prototype.
9250         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
9251         * config/i386/i386.md (push mem splitter): Use find_constant_src in
9252         the splitter condition.
9253         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
9254         the splitter condition.
9255         (FP float_extend load splitter): Ditto.
9257 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
9259         * config/i386/i386.md (peehole2 patterns): Change true_regnum
9260         to REGNO in all peephole2 patterns.
9261         (post-reload splitters): Change true_regnum to REGNO in
9262         post-reload splitters.
9263         (zero_extend splitters): Use general_reg_operand and
9264         nonimmediate_gr_operand predicates.
9266 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
9268         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
9269         v constraint instead of x.
9271 2016-05-05  Alan Modra  <amodra@gmail.com>
9273         PR target/68662
9274         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9275         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
9276         TARGET_NO_FP_IN_TOC for -mrelocatable.
9277         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9278         TARGET_RELOCATABLE test.
9279         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9280         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9281         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9282         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9283         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9284         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9285         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9286         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9287         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9288         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9289         Likewise.
9290         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9291         (rs6000_stack_info): Likewise.
9292         (rs6000_elf_asm_out_constructor): Likewise.
9293         (rs6000_elf_asm_out_destructor): Likewise.
9294         (rs6000_elf_declare_function_name): Likewise.
9295         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9296         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9297         Don't define.
9299 2016-05-05  Alan Modra  <amodra@gmail.com>
9301         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9303 2016-05-05  Alan Modra  <amodra@gmail.com>
9305         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9306         out-of-line gpr restore for one or two regs if that would add
9307         a save of lr.
9309 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
9311         PR target/70873
9312         * config/i386/i386.md
9313         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9314         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
9315         as operand 0 predicate.
9316         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9317         Ditto.
9318         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9319         Ditto.  Emit the pattern using RTX.
9321         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9322         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
9323         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
9324         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9325         Ditto.
9326         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9327         sse_reg_operand as operand 0 predicate.
9329         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9330         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
9331         instead of gen_rtx_REG.
9332         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9333         Ditto.
9335 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9337         * function.c (emit_use_return_register_into_block): Delete.
9338         (gen_return_pattern): Delete.
9339         (emit_return_into_block): Delete.
9340         (active_insn_between): Delete.
9341         (convert_jumps_to_returns): Delete.
9342         (emit_return_for_exit): Delete.
9343         (thread_prologue_and_epilogue_insns): Delete all code dealing with
9344         simple_return for shrink-wrapped blocks.
9345         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9346         end of blocks that need one.
9347         (get_unconverted_simple_return): Delete.
9348         (convert_to_simple_return): Delete.
9349         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9350         (convert_to_simple_return): Ditto.
9352 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9354         * cfgcleanup.c (bb_is_just_return): New function.
9355         (try_optimize_cfg): Simplify jumps to return, branches to return,
9356         and branches around return.
9358 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9360         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9361         branch to a return.
9363 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9365         PR c++/70906
9366         PR c++/70933
9367         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9368         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9369         assert flags & OEP_HASH_CHECK, instead of asserting it
9370         never happens.  Handle TARGET_EXPR.
9371         * fold-const.c (operand_equal_p): For hash verification,
9372         or in OEP_HASH_CHECK into flags.
9374 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9376         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9377         comment.
9378         (compute_samebase_partition_bases): Fix typo.
9380 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9382         * config/i386/sse.md (vec_interleave_highv8sf,
9383         vec_interleave_lowv8sf, vec_interleave_highv4df,
9384         vec_interleave_lowv4df): Remove constraints from expanders.
9386         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9388 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9390         * tree-inline.c (expand_call_inline): Fix path dealing with
9391         making lhs of call statement undefined.
9393 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9395         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9396         Check availability on NODE, too.
9397         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9398         (cgraph_node::call_for_symbol_and_aliases): Likewise.
9399         (varpool_node::call_for_symbol_and_aliase): Likewise.
9400         * ipa-pure-const.c (add_new_function): Analyze all bodies.
9401         (propagate_pure_const): Propagate across interposable functions, too.
9402         (skip_function_for_local_pure_const): Do not skip interposable bodies
9403         with aliases.
9404         (pass_local_pure_const::execute): Update.
9406 2016-05-04  Marek Polacek  <polacek@redhat.com>
9408         * doc/invoke.texi: Document -Wdangling-else.
9410 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9412         * config.gcc: Error out when conflicting multilib is detected.  Do not
9413         loop over multilibs since no combination is legal.
9415 2016-05-04  Alan Modra  <amodra@gmail.com>
9417         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9418         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9419         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9420         Align .toc.
9422 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
9424         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9425         Clean up p5600 comments.
9427 2016-05-04  Richard Biener  <rguenther@suse.de>
9429         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9430         constructor simplifications.
9431         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9433 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
9435         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9436         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9437         result.set_rtx is null instead of aborting.
9438         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9439         Always enable.
9440         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9441         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9442         *mov<mode>_store_postinc): New patterns.
9444 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
9446         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
9447         as commutative.  Check both conversions are NOP.
9448         ((A & B) OP (C & B)): Remove.
9450 2016-05-04  Alan Modra  <amodra@gmail.com>
9452         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9454 2016-05-04  Alan Modra  <amodra@gmail.com>
9456         PR target/70866
9457         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9458         when cr2,3,4 are all fixed regs.
9460 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
9462         PR rtl-optimization/57193
9463         * opts.c (default_options_table): Revert OPT_frename_registers change.
9464         * doc/invoke.texi (-frename-registers, -O2): Likewise.
9466 2016-05-03  Martin Sebor  <msebor@redhat.com>
9468         PR c++/66561
9469         * builtins.c (fold_builtin_FILE): New function.
9470         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9471         (fold_builtin_0): Call them.
9472         * gimplify.c (gimplify_call_expr): Remove the handling of
9473         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9475         PR c++/66561
9476         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9477         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9478         constants.
9480         PR c++/66639
9481         * doc/extend.texi (Function Names as Strings): Update __func__,
9482         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9483         constants.
9485 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9486             Richard Biener  <rguenther@suse.de>
9488         PR tree-optimization/70916
9489         * tree-if-conv.c: Include cfganal.h.
9490         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9491         and remove_fake_exit_edges around the optimization pass.
9493 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
9495         * cgraph.c (symbol_table::create_edge): Set inline_failed.
9496         (cgraph_edge::make_direct): Likewise.
9497         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9498         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9499         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9500         (CIF_THUNK): New code.
9501         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9502         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9503         (compute_inline_parameters): Set inline_failed for thunks.
9504         (inline_analyze_function): Cleanup.
9505         * ipa-inline.c (can_inline_edge_p): Do not deal with
9506         call_stmt_cannot_inline_p.
9507         (can_early_inline_edge_p): Likewise.
9508         (early_inliner): Initialize inline_failed.
9509         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9511 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
9513         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9514         from nonimm_ssenomem_operand.
9515         (nonimm_ssenomem_operand): New predicate.
9516         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9517         as operand 0 predicate.
9518         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9519         Disable unsupported alternatives using "enabled" attribute.
9520         Use register_ssemem_operand as operand 0 predicate.
9521         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9523 2016-05-03  Marek Polacek  <polacek@redhat.com>
9525         PR c/70859
9526         * input.c (expansion_point_location): New function.
9527         * input.h (expansion_point_location): Declare.
9529 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9531         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9532         occurence with frame_offset_ ones.
9534 2016-05-03  Alan Modra  <amodra@gmail.com>
9536         PR rtl-optimization/70890
9537         * ira.c (combine_and_move_insns): When moving def_insn, remove
9538         equivs on use_insn.
9540 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9542         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9543         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9544         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9545         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9547 2016-05-03  Alan Modra  <amodra@gmail.com>
9549         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9550         for SAVE_MULTIPLE/STORE_MULTIPLE.
9552 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9554         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9555         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9557 2016-05-03  Richard Biener  <rguenther@suse.de>
9559         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9560         default true.
9561         (gimplify_arg): Likewise.
9562         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9563         re-writing the result to a decl if required.
9564         (internal_get_tmp_var): Add allow_ssa parameter
9565         and override into_ssa with it.
9566         (get_formal_tmp_var): Adjust.
9567         (get_initialized_tmp_var): Add allow_ssa parameter.
9568         (gimplify_arg): Add allow_ssa parameter and avoid generating
9569         SSA names for the result false.
9570         (gimplify_call_expr): If the call may return twice do not
9571         gimplify parameters into SSA.
9572         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9573         (gimplify_modify_expr): Adjust assert.  For noreturn calls
9574         with a SSA name LHS adjust its def.
9575         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9576         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9577         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9578         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9579         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
9580         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
9581         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9582         (optimize_target_teams): Do not allow SSA names for clause operands.
9583         (gimplify_expr): Likewise for where we mark the result addressable.
9584         * passes.def (pass_init_datastructures): Remove.
9585         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9586         (rewrite_stmt): Likewise.
9587         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9588         (replace_locals_op): Replace SSA names.
9589         (copy_gimple_seq_and_replace_locals): Init src_cfun.
9590         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9591         * cgraph.c (release_function_body): Free CFG annotations only
9592         when we have a CFG.  Simplify.
9593         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9594         force_gimple_operand instead of get_initialized_tmp_var.
9595         * tree-pass.h (make_pass_init_datastructures): Remove.
9596         * tree-ssa.c (execute_init_datastructures): Remove.
9597         (pass_data_init_datastructures): Likewise.
9598         (class pass_init_datastructures): Likewise.
9599         (make_pass_init_datastructures): Likewise.
9600         * omp-low.c (create_omp_child_function): Init SSA data structures.
9601         (grid_expand_target_grid_body): Likewise.
9602         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9603         name before adding it to names_to_release.
9604         (remove_bb): Always release SSA defs.
9605         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9606         before dereferencing it.
9607         * cgraphunit.c (init_lowered_empty_function): Always
9608         int SSA data structures.
9609         * tree-ssanames.c (release_defs): Remove assert that we are in
9610         SSA form.
9611         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9613 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9614             Uros Bizjak  <ubizjak@gmail.com>
9616         PR rtl-optimization/70467
9617         * config/i386/predicates.md (x86_64_hilo_int_operand,
9618         x86_64_hilo_general_operand): New predicates.
9619         * config/i386/constraints.md (Wd): New constraint.
9620         * config/i386/i386.md (mode attr di): Use Wd instead of e.
9621         (general_hilo_operand): New mode attr.
9622         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9623         instead of <general_operand>.
9624         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9625         x86_64_hilo_general_operand instead of <general_operand>.
9627 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9629         PR tree-optimization/70916
9630         * tree-if-conv.c (constant_or_ssa_name): Removed.
9631         (fold_build_cond_expr): Use is_gimple_val instead of
9632         constant_or_ssa_name.
9634         PR tree-optimization/70916
9635         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9636         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9638         PR target/49244
9639         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9640         (optimize_atomic_bit_test_and): New function.
9641         (pass_fold_builtins::execute): Use it.
9642         * optabs.def (atomic_bit_test_and_set_optab,
9643         atomic_bit_test_and_complement_optab,
9644         atomic_bit_test_and_reset_optab): New optabs.
9645         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9646         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9647         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9648         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9649         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9650         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9651         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9652         * doc/md.texi (atomic_bit_test_and_set@var{mode},
9653         atomic_bit_test_and_complement@var{mode},
9654         atomic_bit_test_and_reset@var{mode}): Document.
9655         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9656         atomic_bit_test_and_complement<mode>,
9657         atomic_bit_test_and_reset<mode>): New expanders.
9658         (atomic_bit_test_and_set<mode>_1,
9659         atomic_bit_test_and_complement<mode>_1,
9660         atomic_bit_test_and_reset<mode>_1): New insns.
9662 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
9664         PR rtl-optimization/70687
9665         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
9666         instead of unsigned HOST_WIDE_INT.
9668 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
9670         PR rtl-optimization/44281
9671         * hard-reg-set.h (struct target_hard_regs): New field
9672         x_fixed_nonglobal_reg_set.
9673         (fixed_nonglobal_reg_set): New macro.
9674         * reginfo.c (init_reg_sets_1): Initialize it.
9675         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9676         of fixed_reg_set.
9677         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9679 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9681         PR tree-optimization/56541
9682         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9683         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9684         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9685         (any_complicated_phi): new static variable.
9686         (aggressive_if_conv): delete.
9687         (if_convertible_phi_p): support phis with more than two arguments.
9688         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9689         critical pred edges.
9690         (ifcvt_split_critical_edges): support phis with more than two
9691         arguments by checking new parameter.  only split critical edges
9692         if needed.
9693         (tree_if_conversion): handle simd pragma marked loop using new
9694         local variable aggressive_if_conv.  check any_complicated_phi.
9696 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9698         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9699         before using it.
9701 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9703         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9704         cbase.
9706 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9708         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9709         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9710         define_insn_and_split.
9711         (mulsi3_i): New define_insn_and_split.
9712         (mulsi3_call): Convert to define_insn.
9713         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9714         Remove constraints.
9716 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9718         * machmode.h (mode_complex): Add support to give the complex mode
9719         for a given mode.
9720         (GET_MODE_COMPLEX_MODE): Likewise.
9721         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9722         stored by build_complex_type and gfc_build_complex_type instead of
9723         trying to figure out the appropriate mode based on the size. Raise
9724         an assertion error, if the type was not set.
9725         * genmodes.c (struct mode_data): Add field for the complex type of
9726         the given type.
9727         (blank_mode): Likewise.
9728         (make_complex_modes): Remember the complex mode created in the
9729         base type.
9730         (emit_mode_complex): Write out the mode_complex array to map a
9731         type mode to the complex version.
9732         (emit_insn_modes_c): Likewise.
9733         * tree.c (build_complex_type): Set the complex type to use before
9734         calling layout_type.
9735         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9736         support for __float128 complex datatypes.
9737         (rs6000_hard_regno_mode_ok): Likewise.
9738         (rs6000_setup_reg_addr_masks): Likewise.
9739         (rs6000_complex_function_value): Likewise.
9740         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9741         __float128 and __ibm128 complex.
9742         (FLOAT128_IBM_P): Likewise.
9743         (ALTIVEC_ARG_MAX_RETURN): Likewise.
9744         * doc/extend.texi (Additional Floating Types): Document that
9745         -mfloat128 must be used to enable __float128.  Document complex
9746         __float128 and __ibm128 support.
9748 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9750         PR target/49244
9751         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9752         char/short arguments promoted to int because of promote_prototypes.
9754 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9756         * config/i386/predicates.md (register_ssemem_operand): New predicate.
9757         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9758         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9759         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
9760         alternatives using "enabled" attribute.  Use register_ssemem_operand
9761         as operand 1 predicate.
9762         (*cmpi<unord>xf_i387): Split XFmode pattern from
9763         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9764         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9765         *absneg<mode>2_i387.  Disable unsupported alternatives using
9766         "enabled" attribute.
9767         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9769 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9771         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9772         marker.
9773         (oacc_loop_process): Check mask for loop termination.
9775 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9777         * cif-code.def (CIF_THUNK): Add.
9778         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9779         accidental change.
9781 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9783         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9784         (dump_inline_summary): Dump it.
9785         (fp_expression_p): New predicate.
9786         (estimate_function_body_sizes): Use it.
9787         (inline_merge_summary): Merge fp_expressions.
9788         (inline_read_section): Read fp_expressions.
9789         (inline_write_summary): Write fp_expressions.
9790         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9791         codegen boundary if either caller or callee is !fp_expressions.
9792         * ipa-inline.h (inline_summary): Add fp_expressions.
9793         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9794         to fp_expressions be sure the fp generation flags are updated.
9796 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9798         PR rtl-optimization/70467
9799         * cse.c (cse_insn): Handle no-op MEM moves after folding.
9801         PR rtl-optimization/70467
9802         * ipa-pure-const.c (check_call): Handle internal calls even in
9803         ipa mode like in local mode.
9805 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9807         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9809 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9811         * match.pd (X u< X, X u> X): New transformations.
9813 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9815         * flag-types.h (enum warn_strict_overflow_code): Move ...
9816         * coretypes.h: ... here.
9817         * fold-const.h (fold_overflow_warning): Declare.
9818         * fold-const.c (fold_overflow_warning): Make non-static.
9819         (fold_comparison): Move the transformation of X +- C1 CMP C2
9820         into X CMP C2 -+ C1 ...
9821         * match.pd: ... here.
9822         * gimple-fold.c (fold_stmt_1): Protect with
9823         fold_defer_overflow_warnings.
9825 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9827         * omp-low.c (struct oacc_loop): Add 'inner' field.
9828         (new_oacc_loop_raw): Initialize it to zero.
9829         (oacc_loop_fixed_partitions): Initialize it.
9830         (oacc_loop_auto_partitions): Partition outermost loop to outermost
9831         available partitioning.
9833 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9835         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9836         register_operand.
9837         (umulsidi3): Likewise.
9838         (indirect_jump): Fix jump instruction assembly patterns.
9840 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
9842         PR target/70860
9843         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9844         (nvptx_function_value): Assert non-NULL cfun.
9846 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
9848         PR rtl-optimization/70886
9849         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9851         * cselib.h (rtx_equal_for_cselib_1): Declare.
9852         (rtx_equal_for_cselib_p: New inline function.
9853         * cselib.c (rtx_equal_for_cselib_p): Delete.
9854         (rtx_equal_for_cselib_1): Make public.
9856 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9858         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9859         (register_mixssei387nonimm_operand): Remove predicate.
9860         * config/i386/i386.md (*fop_<mode>_comm): Merge from
9861         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
9862         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
9863         for TARGET_MIX_SSE_I387 alternatives.
9864         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9865         Disable unsupported alternatives using "enabled" attribute.  Use
9866         nonimm_ssenomem_operand as operand 1 predicate.  Also check
9867         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9869 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9871         * tree.c (cst_and_fits_in_hwi): Simplify.
9873 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9875         * tree.h (wi::to_wide): New function.
9876         * expr.c (expand_expr_real_1): Use wi::to_wide.
9877         * fold-const.c (int_const_binop_1): Likewise.
9878         (extract_muldiv_1): Likewise.
9880 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9882         * wide-int.h: Update offset_int and widest_int documentation.
9883         (WI_SIGNED_SHIFT_RESULT): New macro.
9884         (wi::binary_shift): Define signed_shift_result_type for
9885         shifts on offset_int- and widest_int-like types.
9886         (generic_wide_int): Support <<= and >>= if << and >> are supported.
9887         * tree.h (int_bit_position): Use shift operators instead of wi::
9888          shifts.
9889         * alias.c (adjust_offset_for_component_ref): Likewise.
9890         * expr.c (get_inner_reference): Likewise.
9891         * fold-const.c (fold_comparison): Likewise.
9892         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9893         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9894         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9895         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9896         (stmt_kills_ref_p): Likewise.
9897         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9898         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9899         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9900         (ao_ref_init_from_vn_reference): Likewise.
9902 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9904         * wide-int.h: Update offset_int and widest_int documentation.
9905         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9906         (wi::binary_traits): Allow ordered comparisons between offset_int and
9907         offset_int, between widest_int and widest_int, and between either
9908         of these types and basic C types.
9909         (operator <, <=, >, >=): Define for the same combinations.
9910         * tree.h (tree_int_cst_lt): Use comparison operators instead
9911         of wi:: comparisons.
9912         (tree_int_cst_le): Likewise.
9913         * gimple-fold.c (fold_array_ctor_reference): Likewise.
9914         (fold_nonarray_ctor_reference): Likewise.
9915         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9916         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9917         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9918         * tree-sra.c (completely_scalarize): Likewise.
9919         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9920         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9921         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9922         (check_for_binary_op_overflow): Likewise.
9923         (search_for_addr_array): Likewise.
9924         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9926 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9928         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9929         (arc_save_restore): Likewise.
9930         (arc_dwarf_register_span): Likewise.
9931         (arc_output_pic_addr_const): Initialize suffix variable.
9933 2016-05-02  Martin Liska  <mliska@suse.cz>
9935         * symbol-summary.h (function_summary::function_summary):
9936         Remove checking assert for all cgraph nodes.
9937         (function_summary::get): Check summary_uid.
9938         (symtab_insertion): Check summary_uid.
9940 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9942         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9943         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9944         bmaskn instruction.
9945         (arc_dwarf_register_span): Remove enum keyword.
9946         (compact_memory_operand_p): New function.
9947         * config/arc/arc.h (reg_class): Add code density register classes.
9948         (REG_CLASS_NAMES): Likewise.
9949         (REG_CLASS_CONTENTS): Likewise.
9950         * config/arc/arc.md (*movqi_insn): Add code density instructions.
9951         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9952         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9953         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9954         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9955         constraints.
9956         (h, Rcd, Rsd, Rzd): New register constraints.
9957         (T): Use compact_memory_operand_p function.
9958         * config/arc/predicates.md (compact_load_memory_operand): Remove.
9960 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9962         * config/sh/sh.md (*negnegt, *movtt): Remove.
9964 2016-05-02  Marek Polacek  <polacek@redhat.com>
9965             Tom de Vries  <tom@codesourcery.com>
9967         PR tree-optimization/70700
9968         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9969         bigger than FIRST_REF_NODE.
9971 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9973         PR target/52898
9974         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9975         TARGET_CMPEQDI_T.
9976         (prepare_cbranch_operands): Don't use scratch register.  Assume that
9977         function is used when pseudos can be created.
9978         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
9979         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9980         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9981         define_expand.  Allow it only when pseudos can be created.
9982         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9984 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
9986         * config/i386/constraints.md (BC): Only allow -1 operands.
9987         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9988         Add "enabled" attribute.  Update XI mode attribute calculation.
9989         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9990         (*movoi_internal_avx): Update XI mode attribute calculation.
9991         (*movti_internal): Ditto.
9993 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9995         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9996         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9998 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10000         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
10001         statement on instruction code.  Remove trailing spaces.
10002         (altivec_expand_stv_builtin): Likewise.
10004 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10006         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10007         (TARGET_FPU_DOUBLE): Simplify.
10008         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
10009         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
10010         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
10011         with 'TARGET_FPU_DOUBLE'.
10012         * config/sh/sh.md: Likewise.
10014 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
10016         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
10017         SH_DIV_STR_FOR_SIZE): Remove.
10018         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
10019         SH_DIV_STR_FOR_SIZE): Remove.
10021 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10023         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
10024         logical_reg_operand): Delete.
10025         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
10026         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
10027         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
10028         match_operand and match_test.
10029         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
10030         variables on their first use.  Return bool values.
10031         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
10032         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
10033         arith_reg_operand for input operand.  Remove empty constraints.
10034         (xorsi3): Delete.
10035         (*xorsi3_compact): Rename to xorsi3.
10036         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
10037         (*zero_extend<mode>si2_disp_mem): Update comment.
10038         (mov_nop): Delete.
10040 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10042         * config/sh/t-sh: Remove SH5 support.
10043         * config.gcc: Likewise.
10044         * configure: Likewise.
10046 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10048         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
10050 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10052         * config/sh/sh.c (register_sh_passes, sh_option_override,
10053         sh_print_operand, prepare_move_operands,
10054         sh_can_follow_jump): Remove TARGET_SH1 checks.
10055         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
10056         PROMOTE_MODE): Likewise.
10057         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
10058         movdi): Likewise.
10060 2016-04-30  Alan Modra  <amodra@gmail.com>
10062         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
10063         restoring when fixed_reg_p, but allow out-of-line or stmw save.
10064         Check for user regs later to avoid unnecessary looping over regs.
10065         Merge user reg check with non-saved reg check.  Don't force
10066         inline VR restore when static chain used.
10067         (rs6000_frame_related): Omit eh_frame info for user regs when
10068         saving.
10069         (fixed_regs_p): Delete.
10071 2016-04-30  Alan Modra  <amodra@gmail.com>
10073         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
10074         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
10075         Update all uses.
10077 2016-04-30  Alan Modra  <amodra@gmail.com>
10079         PR target/69645
10080         * config/rs6000/rs6000.c (fixed_reg_p): New function.
10081         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
10082         Update all uses.
10084 2016-04-30  Alan Modra  <amodra@gmail.com>
10086         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10087         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
10088         flag_pic test for Darwin.
10090 2016-04-30  Alan Modra  <amodra@gmail.com>
10092         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
10093         throw_calls_crossed.
10094         (REG_FREQ_CALLS_CROSSED): Delete.
10095         (REG_N_THROWING_CALLS_CROSSED): Delete.
10096         * regstat.c (regstat_bb_compute_ri): Don't calculate
10097         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
10098         (dump_reg_info): Don't print call cross frequency.
10099         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
10100         and REG_N_THROWING_CALLS_CROSSED.
10102 2016-04-30  Alan Modra  <amodra@gmail.com>
10104         * regs.h (struct reg_info_t): Delete live_length.
10105         (REG_LIVE_LENGTH): Delete macro.
10106         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
10107         local_live, local_processed and local_live_last_luid params.
10108         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
10109         Formatting fixes.
10110         (regstat_compute_ri): Adjust for above.  Don't set
10111         REG_LIVE_LENGTH.
10112         (dump_reg_info): Don't print live length.
10113         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
10114         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
10115         Localize loop_depth var.
10117 2016-04-30  Alan Modra  <amodra@gmail.com>
10119         * ira.c (enum valid_equiv): New.
10120         (validate_equiv_mem): Return enum.
10121         (update_equiv_mem): Create replacement in more cases.
10122         (add_store_equivs): Update validate_equiv_mem call.
10124 2016-04-30  Alan Modra  <amodra@gmail.com>
10126         * ira.c (combine_and_move_insns): Rather than scanning insns,
10127         use DF infrastucture to find use and def insns.
10129 2016-04-30  Alan Modra  <amodra@gmail.com>
10131         ira.c (combine_and_move_insns): Move invariant conditions..
10132         (ira.c): ..to here.  Call combine_and_move_insns before
10133         add_store_equivs.  Call grow_reg_equivs later.  Allocate
10134         req_equiv later using max_reg_num() rather than global max_regno.
10135         (contains_replace_regs): Delete.
10136         (add_store_equivs): Remove contains_replace_regs test.
10138 2016-04-30  Alan Modra  <amodra@gmail.com>
10140         * ira.c (struct equiv_mem_data): New.
10141         (equiv_mem, equiv_mem_modified): Delete static vars.
10142         (validate_equiv_mem_from_store): Use "data" param to communicate..
10143         (validate_equiv_mem): ..from here.
10145 2016-04-30  Alan Modra  <amodra@gmail.com>
10147         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
10148         split out from..
10149         (update_reg_equivs): ..here.  Move allocation and freeing of
10150         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
10151         end_alias_analysis to..
10152         (ira): ..here.
10154 2016-04-30  Alan Modra  <amodra@gmail.com>
10156         * ira.c (pdx_subregs): Delete.
10157         (struct equivalence): Add pdx_subregs field.
10158         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
10159         pdx_subregs access.
10160         (update_equiv_regs): Don't create or free pdx_subregs.  Update
10161         pdx_subregs access.
10163 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10165         * config/rs6000/altivec.h: Change definitions of vec_xl and
10166         vec_xst.
10167         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
10168         (LD_ELEMREV_V2DI): New.
10169         (LD_ELEMREV_V4SF): New.
10170         (LD_ELEMREV_V4SI): New.
10171         (LD_ELEMREV_V8HI): New.
10172         (LD_ELEMREV_V16QI): New.
10173         (ST_ELEMREV_V2DF): New.
10174         (ST_ELEMREV_V2DI): New.
10175         (ST_ELEMREV_V4SF): New.
10176         (ST_ELEMREV_V4SI): New.
10177         (ST_ELEMREV_V8HI): New.
10178         (ST_ELEMREV_V16QI): New.
10179         (XL): New.
10180         (XST): New.
10181         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10182         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
10183         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
10184         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
10185         (altivec_expand_builtin): Add handling for
10186         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
10187         (rs6000_invalid_builtin): Add error-checking for
10188         RS6000_BTM_P9_VECTOR.
10189         (altivec_init_builtins): Define builtins used to implement vec_xl
10190         and vec_xst.
10191         (rs6000_builtin_mask_names): Define power9-vector.
10192         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
10193         (RS6000_BTM_P9_VECTOR): Define.
10194         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
10195         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
10196         (vsx_ld_elemrev_v2df): Likewise.
10197         (vsx_ld_elemrev_v4sf): Likewise.
10198         (vsx_ld_elemrev_v4si): Likewise.
10199         (vsx_ld_elemrev_v8hi): Likewise.
10200         (vsx_ld_elemrev_v16qi): Likewise.
10201         (vsx_st_elemrev_v2df): Likewise.
10202         (vsx_st_elemrev_v2di): Likewise.
10203         (vsx_st_elemrev_v4sf): Likewise.
10204         (vsx_st_elemrev_v4si): Likewise.
10205         (vsx_st_elemrev_v8hi): Likewise.
10206         (vsx_st_elemrev_v16qi): Likewise.
10207         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
10208         grammar.
10210 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
10212         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
10213         out into ...
10214         (simplify_control_stmt_condition_1): ... here.  Recurse into
10215         BIT_AND_EXPRs and BIT_IOR_EXPRs.
10217 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
10219         PR target/69810
10220         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
10221         (zero_extendqi<mode>2_dot): Revert earlier conversion from
10222         define_insn_and_split to define_insn.
10223         (zero_extendqi<mode>2_dot2): Same.
10224         (extendqi<mode>2_dot): Same.
10225         (extendqi<mode>2_dot2): Same.
10227 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10229         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
10230         (probe_stack): New expander.
10231         (probe_stack_<mode>): New insn pattern.
10233 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10235         * config/i386/i386.md
10236         (operations with memory inputs setting flags peephole2):
10237         Remove uneeded REG_P checks.  Cleanup pattern generation.
10239 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10241         * tree-vect-loop.c (vect_transform_loop): Fix
10242         nb_iterations_upper_bound computation for vectorized loop.
10244 2016-04-29  Marek Polacek  <polacek@redhat.com>
10245             Jakub Jelinek  <jakub@redhat.com>
10247         PR sanitizer/70342
10248         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
10249         TARGET_EXPR_SLOT as a base.
10251 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
10253         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
10254         with 'rCm2' constraints to limit possible immediate size.
10255         (*load_zeroextendqisi_update): Likewise.
10256         (*load_signextendqisi_update): Likewise.
10257         (*loadhi_update): Likewise.
10258         (*load_zeroextendhisi_update): Likewise.
10259         (*load_signextendhisi_update): Likewise.
10260         (*loadsi_update): Likewise.
10261         (*loadsf_update): Likewise.
10263 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10265         * config/i386/predicates.md (constm1_operand): Fix comparison.
10267 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10269         * testsuite/gcc.target/arc/ieee_eq.c: New test.
10271 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
10273         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10274         remaining SH5 related settings.
10275         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10276         shmedia_prepare_call_address): Delete.
10277         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10278         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10279         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10280         UNSUPPORTED_SH2A): Remove m5 checks.
10281         (sh_divide_strategy_e): Remove SH5 division strategies.
10282         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10283         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10285 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10287         * config/s390/s390.c (s390_rtx_costs): Update documentation.
10289 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10291         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10292         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10293         Change lder to ldr.
10294         * config/s390/vector.md ("mov<mode>"): Likewise.
10296 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
10298         * config/s390/constraints.md ("U", "W"): Invoke
10299         s390_mem_constraint with "ZR" and "ZT".
10300         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10301         addresses when using LRA.  Accept also short displacements for S
10302         and T constraints.  Do not check for long displacement target for
10303         S and T constraints.
10304         (s390_mem_constraint): Remove handling of U and W constraints.
10305         * config/s390/s390.md (various patterns): Remove the short
10306         displacement constraints (Q and R) if a long displacement
10307         constraint is present.  Add longdisp as required CPU capability.
10308         * config/s390/vector.md: Likewise.
10309         * config/s390/vx-builtins.md: Likewise.
10311 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10313         PR target/60040
10314         * reload1.c (reload): Call finish_spills before
10315         restarting reload loop. Skip select_reload_regs
10316         if update_eliminables_and_spill returns true.
10318 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10320         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10321         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10322         (umulhisi3_imm): Update predicates and constraint letters.
10323         (umulhisi3_reg): Declare instruction as commutative.
10324         * config/arc/constraints.md (J12, J16): New constraints.
10325         * config/arc/predicates.md (short_unsigned_const_operand): New
10326         predicate.
10327         (arc_short_operand): Likewise.
10328         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10330 2016-04-29  Richard Biener  <rguenther@suse.de>
10332         PR tree-optimization/13962
10333         PR tree-optimization/65686
10334         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10335         * tree-ssa-alias.c (ptrs_compare_unequal): New function
10336         using PTA to compare pointers.
10337         * match.pd: Add pattern for pointer equality compare simplification
10338         using ptrs_compare_unequal.
10340 2016-04-29  Richard Biener  <rguenther@suse.de>
10342         * stor-layout.c (layout_type): Do not build a pointer-to-element
10343         type for arrays.
10345 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10347         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10348         Use SWI mode iterator.  Use general_reg_operand predicate.
10349         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10350         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
10351         predicates.
10353 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
10355         PR middle-end/70843
10356         * fold-const.c (operand_equal_p): Don't verify hash value equality
10357         if arg0 == arg1.
10358         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
10359         and OMP_CLAUSE.
10361 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10363         PR target/70858
10364         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10365         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10366         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10367         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10368         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10370 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10372         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10373         to info.  Don't initialize separate fields to 0.  Clean up
10374         formatting a bit.
10376 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10378         * config/i386/i386.md (peephole2s for operations with memory inputs):
10379         Use SWI mode iterator.
10380         (peephole2s for operations with memory outputs): Ditto.
10381         Do not check for stack checking probe.
10383         (probe_stack): Remove expander.
10385 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10386             Andrew Burgess  <andrew.burgess@embecosm.com>
10388         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10389         operands as 32-bits.
10391 2016-04-28  Jason Merrill  <jason@redhat.com>
10393         * gdbinit.in: Skip line-map.h.
10395 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10396             Andrew Burgess  <andrew.burgess@embecosm.com>
10398         * config/arc/arc.c (arc_conditional_register_usage): Take
10399         TARGET_RRQ_CLASS into account.
10400         (arc_print_operand): Support printing 'p' and 's' operands.
10401         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10402         as 0.
10403         (TARGET_RRQ_CLASS): Define.
10404         (IS_POWEROF2_OR_0_P): Define.
10405         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10406         alternatives.
10407         (*tst_movb): New define_insn.
10408         (*tst): Avoid recognition if it could prevent '*tst_movb'
10409         combination; replace c/CnL with c/Chs alternative.
10410         (*tst_bitfield_tst): New define_insn.
10411         (*tst_bitfield_asr): New define_insn.
10412         (*tst_bitfield): New define_insn.
10413         (andsi3_i): Add Rrq variant.
10414         (extzv): New define_expand.
10415         (insv): New define_expand.
10416         (*insv_i): New define_insn.
10417         (*movb): New define_insn.
10418         (*movb_signed): New define_insn.
10419         (*movb_high): New define_insn.
10420         (*movb_high_signed): New define_insn.
10421         (*movb_high_signed + 1): New define_split pattern.
10422         (*mrgb): New define_insn.
10423         (*mrgb + 1): New define_peephole2 pattern.
10424         (*mrgb + 2): New define_peephole2 pattern.
10425         * config/arc/arc.opt (mbitops): New option for nps400, uses
10426         TARGET_NPS_BITOPS_DEFAULT.
10427         * config/arc/constraints.md (q): Make register class conditional.
10428         (Rrq): New register constraint.
10429         (Chs): New constraint.
10430         (Clo): New constraint.
10431         (Chi): New constraint.
10432         (Cbf): New constraint.
10433         (Cbn): New constraint.
10434         (C18): New constraint.
10435         (Cbi): New constraint.
10437 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10439         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10440         dst->popcount.
10441         (bitmap_intersection_of_preds): Ditto.
10442         (bitmap_union_of_succs): Ditto.
10443         (bitmap_union_of_preds): Ditto.
10444         * sbitmap.c (do_popcount): Delete.
10445         (BITMAP_DEBUGGING): Delete.
10446         (sbitmap_verify_popcount): Delete.
10447         (sbitmap_alloc): Don't initialize the popcount field.
10448         (sbitmap_alloc_with_popcount): Delete.
10449         (sbitmap_resize): Don't resize the popcount array.
10450         (sbitmap_vector_alloc): Don't initialize the popcount field.
10451         (bitmap_copy): Don't copy the popcount array.
10452         (bitmap_clear): Don't clear the popcount array.
10453         (bitmap_clear): Delete the popcount array handling.
10454         (bitmap_ior_and_compl): Delete the popcount assert.
10455         (bitmap_not): Ditto.
10456         (bitmap_and_compl): Ditto.
10457         (bitmap_and): Delete the popcount array handling.
10458         (bitmap_xor): Ditto.
10459         (bitmap_ior): Ditto.
10460         (bitmap_or_and): Delete the popcount assert.
10461         (bitmap_and_or): Ditto.
10462         (popcount_table): Delete.
10463         (sbitmap_elt_popcount): Delete.
10464         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10465         (bitmap_set_bit): Delete the popcount assert.
10466         (bitmap_clear_bit): Ditto.
10467         (sbitmap_free): Don't free the popcount array.
10468         (sbitmap_alloc_with_popcount): Delete declaration.
10469         (sbitmap_popcount): Ditto.
10471 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10472             Andrew Burgess  <andrew.burgess@embecosm.com>
10474         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10475         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10476         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10477         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10478         * config/arc/arc.opt (mcmem): New option.
10479         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10480         supply length for r/m alternative.
10481         (*extendqisi2_ac): Likewise.
10482         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10483         r/Uex alternative.
10484         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10485         (movhi_insn): Likewise.
10486         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10487         (*zero_extendqihi2_i): Add r/Ucm alternative.
10488         (*zero_extendqisi2_ac): Likewise.
10489         (*zero_extendhisi2_i): Likewise.
10490         * config/arc/constraints.md (Uex): New memory constraint.
10491         (Ucm): New define_constraint.
10492         * config/arc/predicates.md (long_immediate_loadstore_operand):
10493         Return 0 for MEM with cmem_address address.
10494         (cmem_address_0): New predicates.
10495         (cmem_address_1): Likewise.
10496         (cmem_address_2): Likewise.
10497         (cmem_address): Likewise.
10499 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10501         * config/rs6000/rs6000.c (machine_function): Rename
10502         insn_chain_scanned_p to spe_insn_chain_scanned_p.
10503         (rs6000_stack_info): Adjust.
10505 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10506             Andrew Burgess  <andrew.burgess@embecosm.com>
10508         * config/arc/constraints.md (Usd): Convert to define_constraint.
10509         (Us<): Likewise.
10510         (Us>): Likewise.
10512 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10514         PR target/70821
10515         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10516         Add new peephole2 where the first insn is *mov<mode>_or instead of
10517         *mov<mode>_internal.
10519 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
10521         * tracer.c (bb_seen): Make static.
10523 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
10525         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10526         support, setup defaults.
10527         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10528         * config/arc/arc.c (arc_init): Add NPS400 support.
10529         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10530         (TARGET_ARC700): NPS400 is also an ARC700.
10531         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10533 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10535         PR target/70668
10536         * config/nds32/nds32.md (casesi): Don't access the operands array
10537         out of bounds.
10539 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10541         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10542         (or $-1,reg peephole2): Ditto.
10543         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10545 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10547         * doc/extend.texi (Common Function Attributes) [optimize]:
10548         Discourage use of the optimize attribute.
10550 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
10552         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10553         special case builtin.
10554         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10555         ALTIVEC_BUILTIN_VEC_ADDE.
10556         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10557         support for ALTIVEC_BUILTIN_VEC_ADDE.
10558         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10559         for __builtin_vec_adde.
10561 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10563         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10564         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10566 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10568         PR testsuite/70595
10569         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10570         attributes): Document cilkplus_runtime.
10572 2016-04-28  Martin Jambor  <mjambor@suse.cz>
10574         * tree-cfg.c (verify_expr): Verify that local declarations belong to
10575         this function.  Call verify_expr on MEM_REFs and bases of other
10576         handled_components.
10578 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10580         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10581         for WORD_REGISTER_OPERATIONS to runtime check.
10583 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10585         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10587 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10589         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10590         big-endian compilation.
10591         * config/arc/arc.md (addf3): Likewise.
10592         (subdf3): Likewise.
10593         (muldf3): Likewise.
10595 2016-04-28  Richard Biener  <rguenther@suse.de>
10597         PR tree-optimization/70840
10598         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10599         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10600         Mark x * pow(x,c) -> pow(x,c+1) commutative.
10601         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10603 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10605         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10606         and explain why in a comment.
10608 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10610         * config/arc/arc.md (cpu_facility): Add fpx variant.
10611         (subdf3): Prohibit use reverse sub when assist operations option
10612         is enabled.
10613         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10614         instructions only when FPX is enabled.
10615         * testsuite/gcc.target/arc/trsub.c: New test.
10617 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10619         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10620         mult_operator when calculating "type" attribute.
10621         (*fop_<mode>_1_i387): Ditto.
10622         (*fop_xf_1_i387): Ditto.
10623         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10624         Use std::swap to swap operands.  Use RTL expressions to generate
10625         converted pattern.
10627 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10628             Joern Rennecke  <joern.rennecke@embecosm.com>
10630         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10631         declaration.
10632         (emit_pic_move): Remove.
10633         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10634         * config/arc/arc.c (emit_pic_move): Removed.
10635         (TARGET_HAVE_TLS): Define.
10636         (arc_conditional_register_usage): Test for arc_tp_regno.
10637         (arc_print_operand, arc_print_operand_address): Handle TLS
10638         unspecs.
10639         (arc_needs_pcl_p): New function.
10640         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10641         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10642         (arc_raw_symbolic_reference_mentioned_p): Likewise.
10643         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10644         (arc_legitimize_tls_address): Likewise.
10645         (DTPOFF_ZERO_SYM): Define.
10646         (arc_legitimize_pic_address): Make it static, handle TLS cases.
10647         (arc_output_pic_addr_const): Print TLS unspecs.
10648         (prepare_pic_move): New function, replaces emit_pic_move.
10649         (arc_legitimate_constant_p): Handle TLS unspecs.
10650         (arc_legitimate_address_p): Likewise.
10651         (arc_rewrite_small_data_p): Use assert for TLS constants.
10652         (prepare_move_operands): Use prepare_pic_move.
10653         (arc_legitimize_address): Legitimize tls addresses.
10654         (arc_epilogue_uses): Check for arc_tp_regno.
10655         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10656         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10657         Define.
10658         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10659         Likewise.
10660         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10661         %(arc_tls_extra_start_spec).
10662         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10663         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10664         (EH_USES): Define.
10665         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10666         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10667         (UNSPEC_TLS_OFF): Add.
10668         (R10_REG): Define.
10669         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10670         (get_thread_pointersi): New patterns.
10671         * config/arc/arc.opt (mtp-regno): New option.
10672         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10673         (move_dest_operand): Likewise.
10674         * configure: Regenerate.
10675         * configure.ac: Add arc*-*-* case to test for tls.
10676         * doc/invoke.texi (ARC options): Document mtp-regno.
10678 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10680         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10681         the new ARC HS SIMD instructions.
10682         (arc_preferred_simd_mode): New function.
10683         (arc_autovectorize_vector_sizes): Likewise.
10684         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10685         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10686         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10687         (arc_init_builtins): Add new SIMD builtin types.
10688         (arc_split_move): Handle 64 bit vector moves.
10689         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10690         (TARGET_PLUS_QMACW): Define.
10691         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10692         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10693         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10694         (VSUBADD4H): New builtins.
10695         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10696         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10698 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
10699             Matthias Klose  <doko@debian.org>
10701         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10703 2016-04-28  Richard Biener  <rguenther@suse.de>
10705         PR middle-end/70777
10706         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10707         canonicalization.
10709 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
10711         * common/config/sh/sh-common.c: Remove SH5 support.
10712         * config/sh/constraints.md: Likewise.
10713         * config/sh/config/sh/elf.h: Likewise.
10714         * config/sh/linux.h: Likewise.
10715         * config/sh/netbsd-elf.h: Likewise.
10716         * config/sh/predicates.md: Likewise.
10717         * config/sh/sh-c.c: Likewise.
10718         * config/sh/sh-protos.h: Likewise.
10719         * config/sh/sh.c: Likewise.
10720         * config/sh/sh.h: Likewise.
10721         * config/sh/sh.md: Likewise.
10722         * config/sh/sh.opt: Likewise.
10723         * config/sh/sync.md: Likewise.
10724         * config/sh/sh64.h: Delete.
10725         * config/sh/shmedia.h: Likewise.
10726         * config/sh/shmedia.md: Likewise.
10727         * config/sh/sshmedia.h: Likewise.
10728         * config/sh/t-netbsd-sh5-64: Likewise.
10729         * config/sh/t-sh64: Likewise.
10730         * config/sh/ushmedia.h: Likewise.
10732 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10734         * config/i386/i386.md (sign_extend to memory peephole2s): Use
10735         general_reg_operand instead of register_operand predicate.
10737 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10739         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10741 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
10743         * match.pd (A - B > A, A + B < A): New transformations.
10745 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
10747         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10748         which defaults to true.  Emit an outer pair of parentheses only if
10749         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
10750         don't emit parentheses for the right-hand operand.
10752 2016-04-27  Jeff Law  <law@redhat.com>
10754         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10756 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10758         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10759         (altivec_lvx_<mode>_internal): Document.
10760         (altivec_lvx_<mode>_2op): New define_insn.
10761         (altivec_lvx_<mode>_1op): Likewise.
10762         (altivec_lvx_<mode>_2op_si): Likewise.
10763         (altivec_lvx_<mode>_1op_si): Likewise.
10764         (altivec_stvx_<mode>): Remove.
10765         (altivec_stvx_<mode>_internal): Document.
10766         (altivec_stvx_<mode>_2op): New define_insn.
10767         (altivec_stvx_<mode>_1op): Likewise.
10768         (altivec_stvx_<mode>_2op_si): Likewise.
10769         (altivec_stvx_<mode>_1op_si): Likewise.
10770         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10771         Expand vec_ld and vec_st during parsing.
10772         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10773         changes.
10774         (altivec_expand_stvx_be): Likewise.
10775         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10776         address-masking behavior in RTL.
10777         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10778         address-masking behavior in RTL.
10779         (altivec_expand_builtin): Change builtin code arguments for calls
10780         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10781         (insn_is_swappable_p): Avoid incorrect swap optimization in the
10782         presence of lvx/stvx patterns.
10783         (alignment_with_canonical_addr): New function.
10784         (alignment_mask): Likewise.
10785         (find_alignment_op): Likewise.
10786         (recombine_lvx_pattern): Likewise.
10787         (recombine_stvx_pattern): Likewise.
10788         (recombine_lvx_stvx_patterns): Likewise.
10789         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10790         stvx patterns from expand.
10791         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10792         expansions.
10793         (vector_altivec_store_<mode>): Likewise.
10795 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
10797         * config/aarch64/aarch64.md
10798         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10799         remove the "fp" attributes.
10800         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10801         add the "simd" attributes.
10802         (*movdf_aarch64): Likewise.
10803         (*movtf_aarch64): Remove the "fp" attributes.
10804         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10805         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10807 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10809         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10810         rtx to rtx_code_label *.
10811         * rtl.h (maybe_set_first_label_num): Likewise.
10813 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10815         * df-core.c (df_add_problem): Make the problem param be const.
10816         (df_remove_problem): Make local "problem" be const.
10817         * df-problems.c (problem_RD): Make const.
10818         (problem_LR): Likewise.
10819         (problem_LIVE): Likewise.
10820         (problem_MIR): Likewise.
10821         (problem_CHAIN): Likewise.
10822         (problem_WORD_LR): Likewise.
10823         (problem_NOTE): Likewise.
10824         (problem_MD): Likewise.
10825         * df-scan.c (problem_SCAN): Likewise.
10826         * df.h (struct df_problem): Make field "dependent_problem" be
10827         const.
10828         (struct dataflow): Likewise for field "problem".
10829         (df_add_problem): Make param const.
10831 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10833         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10834         inter-unit moves to/from vector registers are enabled.  Do not disable
10835         for TARGET_MMX.
10837 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10839         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10840         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10841         #define to...
10842         (enum df_problem_id): ...this new enum.
10843         (struct df_problem): Convert field "id" from "int" to
10844         enum df_problem_id.
10846 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10848         * rtl.def: Update comment for "things in the instruction chain" to
10849         reflect the removal of the leading "i" field for INSN_UID in
10850         r210360.  Fix bogus apostrophe.
10852 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10854         * config/i386/i386.md
10855         (lea arith with mem operand + setcc peephole2): Set operator mode.
10857 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
10859         PR target/70155
10860         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10861         (dimode_scalar_to_vector_candidate_p): This.
10862         (timode_scalar_to_vector_candidate_p): New function.
10863         (scalar_to_vector_candidate_p): Likewise.
10864         (timode_check_non_convertible_regs): Likewise.
10865         (timode_remove_non_convertible_regs): Likewise.
10866         (remove_non_convertible_regs): Likewise.
10867         (remove_non_convertible_regs): Renamed to ...
10868         (dimode_remove_non_convertible_regs): This.
10869         (scalar_chain::~scalar_chain): Make it virtual.
10870         (scalar_chain::compute_convert_gain): Make it pure virtual.
10871         (scalar_chain::mark_dual_mode_def): Likewise.
10872         (scalar_chain::convert_insn): Likewise.
10873         (scalar_chain::convert_registers): Likewise.
10874         (scalar_chain::add_to_queue): Make it protected.
10875         (scalar_chain::emit_conversion_insns): Likewise.
10876         (scalar_chain::replace_with_subreg): Likewise.
10877         (scalar_chain::replace_with_subreg_in_insn): Likewise.
10878         (scalar_chain::convert_op): Likewise.
10879         (scalar_chain::convert_reg): Likewise.
10880         (scalar_chain::make_vector_copies): Likewise.
10881         (scalar_chain::convert_registers): New pure virtual function.
10882         (class dimode_scalar_chain): New class.
10883         (class timode_scalar_chain): Likewise.
10884         (scalar_chain::mark_dual_mode_def): Renamed to ...
10885         (dimode_scalar_chain::mark_dual_mode_def): This.
10886         (timode_scalar_chain::mark_dual_mode_def): New function.
10887         (timode_scalar_chain::convert_insn): Likewise.
10888         (dimode_scalar_chain::convert_registers): Likewise.
10889         (scalar_chain::compute_convert_gain): Renamed to ...
10890         (dimode_scalar_chain::compute_convert_gain): This.
10891         (scalar_chain::replace_with_subreg): Renamed to ...
10892         (dimode_scalar_chain::replace_with_subreg): This.
10893         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10894         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10895         (scalar_chain::make_vector_copies): Renamed to ...
10896         (dimode_scalar_chain::make_vector_copies): This.
10897         (scalar_chain::convert_reg): Renamed to ...
10898         (dimode_scalar_chain::convert_reg ): This.
10899         (scalar_chain::convert_op): Renamed to ...
10900         (dimode_scalar_chain::convert_op): This.
10901         (scalar_chain::convert_insn): Renamed to ...
10902         (dimode_scalar_chain::convert_insn): This.
10903         (scalar_chain::convert): Call convert_registers.
10904         (convert_scalars_to_vector): Change to scalar_chain pointer to
10905         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10906         in 32-bit mode.  Delete scalar_chain pointer.  Call
10907         free_dominance_info in 64-bit mode.
10908         (pass_stv::gate): Remove TARGET_64BIT check.
10909         (ix86_option_override): Put the 64-bit STV pass before the CSE
10910         pass.
10912 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
10914         * dwarf2out.h (struct dw_loc_descr_node): Remove the
10915         dw_loc_frame_offset field.
10916         * dwarf2out.c (new_loc_descr): Likewise.
10917         (resolve_args_picking_1): Turn the VISITED hash set into a
10918         FRAME_OFFSET hash map. Use it to associate a frame offset to
10919         visited nodes. Remove uses of the CHECKING_P macro.
10920         (resolve_args_picking): Update call to resolve_args_picking_1.
10922 2016-04-27  Martin Liska  <mliska@suse.cz>
10924         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10925         (free_loop_data): Release vuses of groups.
10927 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
10929         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10930         instead of redundant use_id and boolean have_use_for.
10931         (struct iv_use): Change sub_id into group_id.  Remove field next.
10932         Move fields: related_cands, n_map_members, cost_map and selected
10933         to ...
10934         (struct iv_group): ... here.  New structure.
10935         (struct iv_common_cand): Use structure declaration directly.
10936         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10937         (MAX_CONSIDERED_USES): Rename macro to ...
10938         (MAX_CONSIDERED_GROUPS): ... here.
10939         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10940         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10941         (dump_uses): Rename to ...
10942         (dump_groups): ... here.  Update all uses.
10943         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10944         (find_induction_variables): Refactor format of dump information.
10945         (record_sub_use): Delete.
10946         (record_use): Update all uses.
10947         (record_group): New function.
10948         (record_group_use, find_interesting_uses_op): Call above functions.
10949         Update all uses.
10950         (find_interesting_uses_cond): Ditto.
10951         (group_compare_offset): New function.
10952         (split_all_small_groups): Rename to ...
10953         (split_small_address_groups_p): ... here.  Update all uses.
10954         (split_address_groups):  Update all uses.
10955         (find_interesting_uses): Refactor format of dump information.
10956         (add_candidate_1): Update all uses.  Remove redundant check on iv,
10957         base and step.
10958         (add_candidate, record_common_cand): Remove redundant assert.
10959         (add_iv_candidate_for_biv): Update use.
10960         (add_iv_candidate_derived_from_uses): Update all uses.
10961         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10962         (alloc_use_cost_map): Ditto.
10963         (set_use_iv_cost, get_use_iv_cost): Rename to ...
10964         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
10965         (determine_use_iv_cost_generic): Ditto.
10966         (determine_group_iv_cost_generic): Ditto.
10967         (determine_use_iv_cost_address): Ditto.
10968         (determine_group_iv_cost_address): Ditto.
10969         (determine_use_iv_cost_condition): Ditto.
10970         (determine_group_iv_cost_cond): Ditto.
10971         (determine_use_iv_cost): Ditto.
10972         (determine_group_iv_cost): Ditto.
10973         (set_autoinc_for_original_candidates): Update all uses.
10974         (find_iv_candidates): Update all uses.  Refactor dump information.
10975         (determine_use_iv_costs): Ditto.
10976         (determine_iv_costs): Ditto.
10977         (iv_ca_cand_for_use): Rename to ...
10978         (iv_ca_cand_for_group): ... here.  Update all uses.
10979         (iv_ca_add_use, iv_ca_add_group): Ditto.
10980         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10981         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10982         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10983         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10984         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10985         (create_new_iv, adjust_iv_update_pos): Ditto.
10986         (rewrite_use_address): Delete.
10987         (rewrite_use_address_1): Rename to ...
10988         (rewrite_use_address): ... here.
10989         (rewrite_use_compare): Update all uses.
10990         (rewrite_use): Delete.
10991         (rewrite_uses): Rename to ...
10992         (rewrite_groups): ... here.  Update all uses.
10993         (remove_unused_ivs, free_loop_data): Update all uses.
10994         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10996 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10998         * rtlanal.c (nonzero_bits1): Convert preprocessor check
10999         for WORD_REGISTER_OPERATIONS to runtime check.
11001 2016-04-27  Richard Biener  <rguenther@suse.de>
11003         PR ipa/70760
11004         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
11005         aggregate_value_p to determine if a function result is
11006         returned by reference.
11007         (ipa_pta_execute): Functions having their address taken are
11008         not automatically nonlocal.
11010 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11012         PR sanitizer/70683
11013         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
11014         * fold-const.c (operand_equal_p): If flag_checking and
11015         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
11016         and if it returns non-zero, assert iterative_hash_expr on both
11017         args is the same.
11019 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11021         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
11023 2016-04-27  Nick Clifton  <nickc@redhat.com>
11025         PR middle-end/49889
11026         * varasm.c (merge_weak): Generate an error if an attempt is made
11027         to convert a non-weak static function into a weak, public function.
11029 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11031         * params.def (MAX_PARTITION_SIZE): New param.
11032         * doc/invoke.texi: Document lto-max-partition.
11034 2016-04-27  Richard Biener  <rguenther@suse.de>
11036         PR ipa/70785
11037         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
11038         function cummulating used_from_other_partition, externally_visible
11039         and force_output from aliases.
11040         (refered_from_nonlocal_var): Likewise.
11041         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
11042         node flags properly.
11044 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11046         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
11047         (-Wmemset-elt-size): New item.
11049 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11051         PR ada/70759
11052         * stor-layout.h (internal_reference_types): Delete.
11053         * stor-layout.c (reference_types_internal): Likewise.
11054         (internal_reference_types): Likewise.
11055         (layout_type) <REFERENCE_TYPE>: Adjust.
11057 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11059         PR sanitizer/70683
11060         * tree.h (inchash::add_expr): Add FLAGS argument.
11061         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
11062         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
11063         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
11064         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
11065         if swap_tree_comparison (code) is smaller than code, hash that
11066         and arguments in the other order.  Hash CONVERT_EXPR the same
11067         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
11068         of ADDR_EXPR of decl as the decl itself.  Add or remove
11069         OEP_ADDRESS_OF from recursive flags as needed.  For
11070         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
11071         operands commutatively and only the third one normally.
11072         For internal CALL_EXPR hash in CALL_EXPR_IFN.
11074 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11076         * config/rtems.h (LIB_SPEC): Add -latomic.
11078 2016-04-27  Joel Sherrill  <joel@rtems.org>
11080         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
11081         xilink.ld and flags not relevant to RTEMS.
11083 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11085         * toplev.c (backend_init_target): Avoid calling init_reload when using
11086         LRA.
11088 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11090         * reorg.c (try_merge_delay_insns): Declare i and j inside the
11091         for loops rather than one for the whole function.
11093 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11095         * match.pd (X + CST CMP X): New transformation.
11097 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11099         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
11100         * fold-const.c (fold_binary_loc): Remove 2 transformations
11101         superseded by match.pd.
11102         * match.pd (x+x -> x*2): Generalize to integers.
11104 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
11106         * config/i386/i386.md (operation on memory peephole): Duplicate an
11107         existing peephole and adapt it to match lea rather than an operation
11108         that clobbers CC.
11110         PR rtl-optimization/57193
11111         * opts.c (default_options_table): Add OPT_frename_registers at -O2
11112         and above.
11113         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
11115 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11117         * tree-if-conv.c (any_pred_load_store): New static variable.
11118         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
11119         any_pred_load_store instead of and_mask_load_store.
11120         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
11121         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
11122         (combine_blocks, tree_if_conversion): Ditto.
11124 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11126         PR tree-optimization/70771
11127         PR tree-optimization/70775
11128         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
11129         virtual PHI nodes.  Delete parameter.
11130         (if_convertible_loop_p_1): Delete argument to above function.
11131         (predicate_all_scalar_phis): Delete code handling single-argument
11132         PHIs.
11133         (tree_if_conversion): Mark and update virtual SSA.
11135 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11137         PR target/61821
11138         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
11139         (x86_elf_aligned_common): Rename to ...
11140         (x86_elf_aligned_decl_common): ... this.
11141         Add decl arg.  Switch to .lbss for largecomm object.  Use
11142         LARGECOMM_SECTION_ASM_OP.
11143         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
11144         renaming.
11145         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
11146         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
11147         Pass new decl arg.
11148         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11149         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
11151 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11153         PR target/59407
11154         * config/i386/i386.c (SECTION_LARGE): Define.
11155         (x86_64_elf_select_section): Set it for large data/bss sections.
11156         Only clear SECTION_WRITE for .lrodata.
11157         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
11158         data/bss sections.
11159         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
11160         * varasm.c (default_elf_asm_named_section): Grow flagchars.
11161         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
11162         SECTION_MACH_DEP.
11163         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
11164         * doc/tm.texi: Regenerate.
11166 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11168         PR bootstrap/70704
11169         * configure.ac (--enable-checking): Document extra flag, for
11170         non-release builds default to --enable-checking=yes,extra.
11171         If misc checking and extra checking, define CHECKING_P to 2 instead
11172         of 1.
11173         * common.opt (fchecking=): Add.
11174         * doc/invoke.texi (-fchecking=): Document.
11175         * doc/install.texi: Document --enable-checking changes.
11176         * configure: Regenerated.
11177         * config.in: Regenerated.
11179 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11181         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
11182         attribute instead of which_alternative.
11183         * config/i386/sse.md (*mov<mode>_internal): Ditto.
11184         Use EXT_REX_SSE_REG_P where appropriate.
11186 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11188         * config/i386/predicates.md (const0_operand): Do not match
11189         const_wide_int code.
11190         (const1_operand): Ditto.
11192 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11194         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
11195         for SSE constm1 operands and TARGET_AVX512VL.
11196         (*movti_internal): Ditto.
11197         (*mov<mode>_or): Use constm1_operand predicate.
11198         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
11199         for SSE vector_all_ones operands and TARGET_AVX512VL.
11200         * config/i386/predicates.md (constm1_operand): New predicate.
11201         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
11202         emission of constant -1 load.
11204 2016-04-25  Jason Merrill  <jason@redhat.com>
11206         * gdbinit.in: Skip is-a.h.
11208         * attribs.c (register_scoped_attributes): Fix logic.
11209         * attribs.h: Declare register_scoped_attributes.
11211 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11213         * config/rs6000/rs6000-builtin.def: Correct pasto error for
11214         stxvd2x and stxvw4x built-in functions.
11216 2016-04-25  DJ Delorie  <dj@redhat.com>
11218         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
11219         (ashrhi3): Likewise.
11220         (lshrhi3): Likewise.
11222 2016-04-25  Richard Biener  <rguenther@suse.de>
11224         PR tree-optimization/70780
11225         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
11226         wasn't visited yet.
11227         (compute_antic): Mark blocks with abnormal preds as visited as
11228         they have a final empty antic-in solution already.
11230 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11232         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
11234 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11236         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
11237         mode is VQI to improve mixed mode vectorization.
11238         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
11239         define_insn to match low half of signed vaddw.
11240         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
11241         define_insn to match high half of signed vaddw.
11242         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
11243         define_insn to match low half of unsigned vaddw.
11244         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
11245         define_insn to match high half of unsigned vaddw.
11246         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
11247         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11248         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
11249         for new function.
11250         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11251         * config/arm/predicates.md (vect_par_constant_high): Support
11252         big endian and simplify by calling
11253         arm_simd_check_vect_par_cnst_half
11254         (vect_par_constant_low): Likewise.
11256 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11258         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
11259         predicate for operand 2.
11261 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
11262             H.J. Lu  <hongjiu.lu@intel.com>
11264         * config/i386/i386-protos.h (standard_sse_constant_p): Add
11265         machine_mode argument.
11266         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
11267         constm1_rtx operands.  For VOIDmode constants, get mode from
11268         pred_mode.  Check mode size if the mode is supported by ABI.
11269         (standard_sse_constant_opcode): Do not use standard_constant_p.
11270         Strictly check ABI support for all-ones operands.
11271         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
11272         immediates. Update calls to standard_sse_constant_p.
11273         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11274         (ix86_rtx_costs): Ditto.
11275         * config/i386/i386.md (*movxi_internal_avx512f): Use
11276         nonimmediate_or_sse_const_operand instead of vector_move_operand.
11277         Use (v,BC) alternative instead of (v,C). Use register_operand
11278         checks instead of MEM_P.
11279         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11280         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
11281         isa attribute.  Use register_operand checks instead of MEM_P.
11282         (*movti_internal): Use nonimmediate_or_sse_const_operand for
11283         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
11284         alternative and corresponding sse2 isa attribute.
11285         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11286         to standard_sse_constant_p.
11287         (FP constant splitters): Ditto.
11288         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11289         (C): Ditto.
11290         * config/i386/predicates.md (constm1_operand): Remove.
11291         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11292         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11293         vector_all_ones_operand instead of constm1_operand.
11295 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11297         * print-rtl.c (print_rtx_insn_vec): New function.
11298         * print-rtl.h: New prototype.
11299         * store-motion.c (struct st_expr): Make avail_stores a vector.
11300         (st_expr_entry): Adjust.
11301         (free_st_expr_entry): Likewise.
11302         (print_store_motion_mems): Likewise.
11303         (find_moveable_store): Likewise.
11304         (compute_store_table): Likewise.
11305         (delete_store): Likewise.
11306         (build_store_vectors): Likewise.
11308 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11310         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11312 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11314         * vec.h (vec_safe_contains): New function.
11315         (vec::contains): Likewise.
11316         (vec::begin): Likewise.
11317         (vec::end): Likewise.
11319 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
11321         PR sanitizer/70712
11322         * cfgexpand.c (expand_stack_vars): Fix typo.
11324 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11326         * system.h (list, map, set, vector): Include conditionally.
11327         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11328         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11329         * ipa-icf.c (INCLUDE_LIST): Define.
11330         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11331         * config/sh/sh.c (INCLUDE_VECTOR): Define.
11332         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11333         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11334         * cp/logic.cc (INCLUDE_LIST): Define.
11335         * fortran/trans-common.c (INCLUDE_MAP): Define.
11337 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11339         * auto-profile.c: Remove <string.h> include.
11340         * ipa-icf-gimple.c: Remove <list> include.
11341         * diagnostic.c: Remove <new> include.
11342         * genmatch.c: Likewise.
11343         * pretty-print.c: Likewise.
11344         * toplev.c: Likewise
11345         * c/c-objc-common.c: Likewise.
11346         * cp/error.c: Likewise.
11347         * fortran/error.c: Likewise.
11349 2016-04-22  Richard Biener  <rguenther@suse.de>
11351         * lto-streamer-in.c (input_ssa_names): Do not allocate
11352         GIMPLE_NOP for all SSA names.
11353         * lto-streamer-out.c (output_ssa_names): Do not output
11354         SSA names that should have been released.
11356 2016-04-22  Richard Biener  <rguenther@suse.de>
11358         PR tree-optimization/70740
11359         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11360         VDEF.
11362 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
11364         PR target/70750
11365         * config/i386/predicates.md (call_insn_operand): Replace
11366         sibcall_memory_operand with memory_operand.
11368 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
11370         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11371         has_single_use() tests.
11372         (register_edge_assert_for_1): Likewise.
11373         (find_assert_locations_1): Check the liveness bitmap instead of
11374         checking has_single_use().
11376 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11378         PR target/70728
11379         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11380         Extract AVX-512BW constraint from AVX.
11382 2016-04-21  Richard Biener  <rguenther@suse.de>
11384         PR tree-optimization/70725
11385         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11386         for phi_convertible_by_degenerating_args.
11387         (predicate_all_scalar_phis): Handle single-argument PHIs.
11389 2016-04-21  Richard Biener  <rguenther@suse.de>
11391         PR middle-end/70747
11392         * fold-const.c (fold_comparison): Return properly typed
11393         constant boolean.
11395 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
11397         PR tree-optimization/70715
11398         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11399         after expanding BASE using expand_simple_operations.
11401 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11403         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11404         New transformations.
11406 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11408         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11410 2016-04-20  Jan Hubicka  <jh@suse.cz>
11412         * ipa-inline.c (can_inline_edge_p): Pass caller info to
11413         ultiimate_alias_target.
11414         (update_callee_keys): Likewise.
11415         (lookup_recursive_calls): Likewise.
11416         (speculation_useful_p): Likewise.
11418 2016-04-20  Jan Hubicka  <jh@suse.cz>
11420         PR ipa/70018
11421         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11422         (set_nothrow_flag_1): ... this; handle interposition correctly;
11423         recurse on aliases and thunks.
11424         (cgraph_node::set_nothrow_flag): New.
11425         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11426         functions compiled with non-call exceptions that binds to current
11427         def.
11428         (propagate_nothrow): Be safe WRT interposition.
11429         * cgraph.h (set_nothrow_flag): Update prototype.
11431 2016-04-18  Jan Hubicka  <jh@suse.cz>
11433         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11434         max_loop_iterations_int.
11435         (tree_unswitch_outer_loop): Likewise.
11437 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11439         PR tree-optimization/69489
11440         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11441         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11442         Revise dump message.
11443         (if_convertible_bb_p): Remove check on edge count of basic block's
11444         predecessors.
11446 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11448         PR tree-optimization/56625
11449         PR tree-optimization/69489
11450         * tree-data-ref.h (DR_INNERMOST): New macro.
11451         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11452         hashing struct innermost_loop_behavior.
11453         (ref_DR_map): Remove.
11454         (innermost_DR_map): New map.
11455         (baseref_DR_map): Revise comment.
11456         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11457         to innermost_DR_map accroding to its innermost loop behavior.
11458         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11459         to its innermost loop behavior.
11460         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11461         Add initialization for innermost_DR_map.  Record memory reference
11462         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11463         have innermost loop behavior.
11464         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
11465         innermost_DR_map.
11467 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
11469         * config/i386/i386.md (*lea<mode>_general_1): Rename from
11470         *lea_general_1.  Use explicit SWI12 mode interator.
11471         (*lea<mode>_general_2): Rename from *lea_general_2.
11472         Use explicit SWI12 mode interator.
11473         (*lea<mode>_general_3): Rename from *lea_general_3.
11474         Use explicit SWI12 mode interator.
11475         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11476         Use explicit SWI12 mode interator.
11477         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11478         Use explicit SWI48 mode interator.
11480 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11482         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11483         Short-cut unaligned load and store cases.  Handle all integer
11484         vector modes.
11485         (ix86_expand_vector_move_misalign): Short-cut unaligned load
11486         and store cases.  Call ix86_avx256_split_vector_move_misalign
11487         directly without checking mode class.
11489 2016-04-20  Andrew Pinski  <apinski@cavium.com>
11490             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11492         PR target/64971
11493         * config/aarch64/aarch64.md (sibcall): Force call
11494         address to be DImode for ILP32.
11495         (sibcall_value): Likewise.
11497 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11499         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11501 2016-04-20  Richard Biener  <rguenther@suse.de>
11503         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11504         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11505         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11506         (maybe_push_res_to_seq): Adjust.
11507         * gimple-fold.c (maybe_build_generic_op): Likewise.
11509 2016-04-20  Marek Polacek  <polacek@redhat.com>
11511         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11512         rather than true.
11514 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
11516         * config/i386/sse.md (vec_unpacks_lo_hi): Always
11517         use kmovw to support AVX512F target.
11519 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11521         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11523 2016-04-20  Marek Polacek  <polacek@redhat.com>
11525         PR tree-optimization/70725
11526         * tree-if-conv.c (is_false_predicate): New function.
11527         (predicate_mem_writes): Use it.
11529 2016-04-20  Richard Biener  <rguenther@suse.de>
11531         PR tree-optimization/70726
11532         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11533         shift amounts from a pattern stmt operand.
11535 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11537         PR target/70674
11538         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11539         stack_restore_from_fpr pattern when restoring r15.
11540         (s390_optimize_prologue): Strip away the memory barrier in the
11541         parallel when trying to get rid of restore insns.
11542         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11543         definition for loading the stack pointer from an FPR.  Compared to
11544         the normal move insn this pattern includes a full memory barrier.
11546 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
11548         PR middle-end/70680
11549         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11550         implicitly linear or lastprivate iterator on the outer context.
11552 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11554         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11555         alignment check.
11556         * config/i386/i386.md (ssememalign): Removed.
11557         * config/i386/sse.md: Remove ssememalign attribute from patterns.
11559 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11561         PR target/69201
11562         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11563         const short * to __builtin_ia32_loaddquhi512_mask.
11564         (_mm512_maskz_loadu_epi16): Likewise.
11565         (_mm512_mask_storeu_epi16): Pass short * to
11566         __builtin_ia32_storedquhi512_mask.
11567         (_mm512_mask_loadu_epi8): Pass const char * to
11568         __builtin_ia32_loaddquqi512_mask.
11569         (_mm512_maskz_loadu_epi8): Likewise.
11570         (_mm512_mask_storeu_epi8): Pass char * to
11571         __builtin_ia32_storedquqi512_mask.
11572         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11573         const double * to __builtin_ia32_loadupd512_mask.
11574         (_mm512_mask_loadu_pd): Likewise.
11575         (_mm512_maskz_loadu_pd): Likewise.
11576         (_mm512_storeu_pd): Pass double * to
11577         __builtin_ia32_storeupd512_mask.
11578         (_mm512_mask_storeu_pd): Likewise.
11579         (_mm512_loadu_ps): Pass const float * to
11580         __builtin_ia32_loadups512_mask.
11581         (_mm512_mask_loadu_ps): Likewise.
11582         (_mm512_maskz_loadu_ps): Likewise.
11583         (_mm512_storeu_ps): Pass float * to
11584         __builtin_ia32_storeups512_mask.
11585         (_mm512_mask_storeu_ps): Likewise.
11586         (_mm512_mask_loadu_epi64): Pass const long long * to
11587         __builtin_ia32_loaddqudi512_mask.
11588         (_mm512_maskz_loadu_epi64): Likewise.
11589         (_mm512_mask_storeu_epi64): Pass long long *
11590         to __builtin_ia32_storedqudi512_mask.
11591         (_mm512_loadu_si512): Pass const int * to
11592         __builtin_ia32_loaddqusi512_mask.
11593         (_mm512_mask_loadu_epi32): Likewise.
11594         (_mm512_maskz_loadu_epi32): Likewise.
11595         (_mm512_storeu_si512): Pass int * to
11596         __builtin_ia32_storedqusi512_mask.
11597         (_mm512_mask_storeu_epi32): Likewise.
11598         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11599         char * to __builtin_ia32_storedquqi256_mask.
11600         (_mm_mask_storeu_epi8): Likewise.
11601         (_mm256_mask_loadu_epi16): Pass const short * to
11602         __builtin_ia32_loaddquhi256_mask.
11603         (_mm256_maskz_loadu_epi16): Likewise.
11604         (_mm_mask_loadu_epi16): Pass const short * to
11605         __builtin_ia32_loaddquhi128_mask.
11606         (_mm_maskz_loadu_epi16): Likewise.
11607         (_mm256_mask_loadu_epi8): Pass const char * to
11608         __builtin_ia32_loaddquqi256_mask.
11609         (_mm256_maskz_loadu_epi8): Likewise.
11610         (_mm_mask_loadu_epi8): Pass const char * to
11611         __builtin_ia32_loaddquqi128_mask.
11612         (_mm_maskz_loadu_epi8): Likewise.
11613         (_mm256_mask_storeu_epi16): Pass short * to.
11614         __builtin_ia32_storedquhi256_mask.
11615         (_mm_mask_storeu_epi16): Pass short * to.
11616         __builtin_ia32_storedquhi128_mask.
11617         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11618         const double * to __builtin_ia32_loadupd256_mask.
11619         (_mm256_maskz_loadu_pd): Likewise.
11620         (_mm_mask_loadu_pd): Pass onst double * to
11621         __builtin_ia32_loadupd128_mask.
11622         (_mm_maskz_loadu_pd): Likewise.
11623         (_mm256_mask_storeu_pd): Pass double * to
11624         __builtin_ia32_storeupd256_mask.
11625         (_mm_mask_storeu_pd): Pass double * to
11626         __builtin_ia32_storeupd128_mask.
11627         (_mm256_mask_loadu_ps): Pass const float * to
11628         __builtin_ia32_loadups256_mask.
11629         (_mm256_maskz_loadu_ps): Likewise.
11630         (_mm_mask_loadu_ps): Pass const float * to
11631         __builtin_ia32_loadups128_mask.
11632         (_mm_maskz_loadu_ps): Likewise.
11633         (_mm256_mask_storeu_ps): Pass float * to
11634         __builtin_ia32_storeups256_mask.
11635         (_mm_mask_storeu_ps): ass float * to
11636         __builtin_ia32_storeups128_mask.
11637         (_mm256_mask_loadu_epi64): Pass const long long * to
11638         __builtin_ia32_loaddqudi256_mask.
11639         (_mm256_maskz_loadu_epi64): Likewise.
11640         (_mm_mask_loadu_epi64): Pass const long long * to
11641         __builtin_ia32_loaddqudi128_mask.
11642         (_mm_maskz_loadu_epi64): Likewise.
11643         (_mm256_mask_storeu_epi64): Pass long long * to
11644         __builtin_ia32_storedqudi256_mask.
11645         (_mm_mask_storeu_epi64): Pass long long * to
11646         __builtin_ia32_storedqudi128_mask.
11647         (_mm256_mask_loadu_epi32): Pass const int * to
11648         __builtin_ia32_loaddqusi256_mask.
11649         (_mm256_maskz_loadu_epi32): Likewise.
11650         (_mm_mask_loadu_epi32): Pass const int * to
11651         __builtin_ia32_loaddqusi128_mask.
11652         (_mm_maskz_loadu_epi32): Likewise.
11653         (_mm256_mask_storeu_epi32): Pass int * to
11654         __builtin_ia32_storedqusi256_mask.
11655         (_mm_mask_storeu_epi32): Pass int * to
11656         __builtin_ia32_storedqusi128_mask.
11657         * config/i386/i386-builtin-types.def (PCSHORT): New.
11658         (PINT64): Likewise.
11659         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11660         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11661         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11662         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11663         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11664         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11665         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11666         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11667         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11668         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11669         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11670         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11671         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11672         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11673         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11674         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11675         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11676         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11677         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11678         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11679         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11680         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11681         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11682         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11683         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11684         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11685         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11686         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11687         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11688         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11689         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11690         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11691         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11692         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11693         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11694         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11695         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11696         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11697         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11698         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11699         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11700         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11701         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11702         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11703         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11704         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11705         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11706         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11707         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11708         use UNSPEC_STOREU.
11709         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11710         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11711         load nor store.
11712         (ix86_expand_vector_move_misalign): Likewise.
11713         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11714         to scalar function prototype for unaligned load/store builtins.
11715         (ix86_expand_special_args_builtin): Updated.
11716         * config/i386/sse.md (UNSPEC_LOADU): Removed.
11717         (UNSPEC_STOREU): Likewise.
11718         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11719         (VI_ULOADSTORE_F_AVX512VL): Likewise.
11720         (ssescalarsize): Handle V4TI, V2TI and V1TI.
11721         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11722         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11723         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11724         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11725         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11726         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11727         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11728         (<avx512>_storedqu<mode>_mask): Likewise.
11729         (*sse4_2_pcmpestr_unaligned): Likewise.
11730         (*sse4_2_pcmpistr_unaligned): Likewise.
11731         (*mov<mode>_internal): Renamed to ...
11732         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
11733         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11734         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11735         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11737 2016-04-19  Richard Biener  <rguenther@suse.de>
11739         PR tree-optimization/70171
11740         * tree-ssa-phiprop.c: Include stor-layout.h.
11741         (phiprop_insert_phi): Handle the aggregate copy case.
11742         (propagate_with_phi): Likewise.
11744 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
11746         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11747         instead of simplify_gen_subreg (... , 0).
11748         (ix86_delegitimize_address): Ditto.
11749         (ix86_split_divmod): Ditto.
11750         (ix86_split_copysign_const): Ditto.
11751         (ix86_split_copysign_var): Ditto.
11752         (ix86_expand_args_builtin): Ditto.
11753         (ix86_expand_round_builtin): Ditto.
11754         (ix86_expand_special_args_builtin): Ditto.
11755         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11756         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11757         (udivmodqi4): Ditto.
11758         (absneg splitters): Ditto.
11759         (*jcc_bt<mode>_1): Ditto.
11761 2016-04-19  Richard Biener  <rguenther@suse.de>
11763         PR tree-optimization/70724
11764         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11765         restoring out from ...
11766         (free_scc_vn): ... here.
11767         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11768         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11769         tail merging.
11770         (pass_fre::execute): Restore SSA info.
11772 2016-04-19  Richard Biener  <rguenther@suse.de>
11774         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11775         * gimple-walk.c (walk_gimple_op): Initialize it.
11776         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11777         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11778         remapping SSA names of defs.
11779         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11780         adjustment.
11782 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
11784         PR middle-end/70689
11785         * lra-constraints.c (equiv_substition_p): New.
11786         (process_alt_operands): Use it.
11787         (swap_operands): Swap it.
11788         (curr_insn_transform): Update it.
11790 2016-04-18  Michael Matz  <matz@suse.de>
11792         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11793         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11794         * tree-core.h (tree_type_common.align): Use bit-field.
11795         (tree_type_common.spare): New.
11796         (tree_decl_common.off_align): Make smaller.
11797         (tree_decl_common.align): Use bit-field.
11799         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11800         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11801         (scan_sharing_clauses): Ditto.
11802         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11803         (omp_finish_file): Ditto.
11804         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11805         (layout_decl): Ditto.
11806         (relayout_decl): Ditto.
11807         (finalize_record_size): Use SET_TYPE_ALIGN.
11808         (finalize_type_size): Ditto.
11809         (finish_builtin_struct): Ditto.
11810         (layout_type): Ditto.
11811         (initialize_sizetypes): Ditto.
11812         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11813         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11814         (lookup_field_for_decl): Use SET_DECL_ALIGN.
11815         (get_chain_field): Ditto.
11816         (get_trampoline_type): Ditto.
11817         (get_nl_goto_field): Ditto.
11818         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11819         SET_DECL_ALIGN.
11820         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11821         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11822         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11823         (build_qualified_type): Use SET_TYPE_ALIGN.
11824         (build_aligned_type, build_range_type_1): Ditto.
11825         (build_atomic_base): Ditto.
11826         (build_common_tree_nodes): Ditto.
11827         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11828         (expand_one_stack_var_at): Ditto.
11829         * coverage.c (build_var): Use SET_DECL_ALIGN.
11830         * except.c (init_eh): Ditto.
11831         * function.c (assign_parm_setup_block): Ditto.
11832         * symtab.c (increase_alignment_1): Ditto.
11833         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11834         * tree-vect-stmts.c (ensure_base_align): Ditto.
11835         * varasm.c (align_variable): Ditto.
11836         (assemble_variable): Ditto.
11837         (build_constant_desc): Ditto.
11838         (output_constant_def_contents): Ditto.
11840         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11841         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11842         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11843         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11844         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11846 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
11848         PR target/70708
11849         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11850         replace %vmovsd with "%vmovq".
11851         (vec_concatv2df): Likewise.
11853 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
11855         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11856         (*vec_extractv2si_0): Ditto.
11857         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11858         (zero_extended_scalar_load_operand splitters): Ditto.
11859         (vec_extract splitters): Ditto.
11860         (*vec_extractv4si_0_zext): Ditto.
11861         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11862         and lowpart_subreg.
11863         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11864         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11865         (*sse4_1_extractps): Use lowpart_subreg.
11866         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11868 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11870         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11871         gld requirements.
11872         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11873         Mention Solaris 11 packaging changes.
11874         Update gas and gld requirements.
11875         Remove reference to pre-Solaris 10 bug.
11876         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11877         systems and bugs.
11878         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11879         with cc.
11881 2016-04-17  Jan Hubicka  <jh@suse.cz>
11883         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11884         max_loop_iterations_int.
11886 2016-04-18  Richard Biener  <rguenther@suse.de>
11888         PR tree-optimization/43434
11889         * tree-ssa-structalias.c (struct vls_data): New.
11890         (visit_loadstore): Handle all pointer-based accesses.
11891         (compute_dependence_clique): Compute a bitmap of restrict tags
11892         assigned bases and pass it to visit_loadstore.
11894 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
11896         PR target/70711
11897         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11898         armv8.1-a and armv8.1-a+crc.
11900 2016-04-18  Richard Biener  <rguenther@suse.de>
11902         PR tree-optimization/70701
11903         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11904         references after translating through a memcpy.
11906 2016-04-18  Richard Biener  <rguenther@suse.de>
11908         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11909         (compute_antic): ... here.  For partial antic use regular
11910         postorder and scrap iteration.
11911         (compute_partial_antic_aux): Remove unused return value.
11912         (init_pre): Do not allocate postorder.
11913         (fini_pre): Do not free postorder.
11915 2016-04-18  Richard Biener  <rguenther@suse.de>
11917         PR middle-end/37870
11918         * expmed.c (extract_bit_field_1): Remove broken case
11919         using a wider MODE_INT mode.
11921 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
11923         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11924         unless compiling with at least GCC-4.8.
11926 2016-04-17  Jan Hubicka  <jh@suse.cz>
11928         PR bootstrap/70706
11929         * graphite.c (graphite_finalize): Update call to
11930         tree_estimate_probability.
11931         * predict.h (tree_estimate_probability): Update prototype.
11933 2016-04-17  Jan Hubicka  <jh@suse.cz>
11935         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11936         (tree_estimate_probability): Likewise.
11937         (pass_profile::execute): Update.
11938         (report_predictor_hitrates): New function.
11939         * profile.c (compute_branch_probabilities): Use it.
11940         * predict.h (report_predictor_hitrates): Declare.
11942 2016-04-17  Jan Hubicka  <jh@suse.cz>
11944         PR ipa/70018
11945         * cgraph.h (cgraph_node::set_const_flag,
11946         cgraph_node::set_pure_flag): Update prototype to return bool;
11947         update comment.
11948         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11949         of interposable symbol are interposable, too.
11950         (cgraph_set_const_flag_1): Rename to ...
11951         (set_const_flag_1): ... this one; change to self recursive function
11952         instead of call_for_symbol_thunks_and_aliases. Handle correctly
11953         clearnig the flag in all variants and also virtual thunks of const
11954         functions are pure; track if any change was done.
11955         (cgraph_node::set_const_flag): Update.
11956         (struct set_pure_flag_info): New struct.
11957         (cgraph_set_pure_flag_1): Rename to ...
11958         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11959         rather than pointer encoded flags; track if any changes was done;
11960         handle correctly clearning flag and setting flag of aliases already
11961         declared const.
11962         (cgraph_node::set_pure_flag): Update.
11963         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11965 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11967         PR other/70433
11968         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11969         backslash in label.
11971 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11973         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11974         '{}<> ' as escape-for-record.
11976 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11978         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11979         structure.
11981 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11983         PR other/70185
11984         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11985         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11986         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11987         * passes.c (finish_optimization_passes): Only call
11988         finish_graph_dump_file if dfi->graph_dump_initialized.
11989         (execute_function_dump, pass_init_dump_file): Use
11990         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11992 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11994         PR tree-optimization/70256
11995         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11996         (debug_varmap): New function.
11998 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12000         PR other/70183
12001         * passes.c (pass_manager::register_pass): Propagate pflags.
12003 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12005         PR other/68875
12006         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
12007         * passes.c (pass_manager::pass_manager): Declare and init p_start in
12008         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
12009         check if it's equal to p_start.
12010         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
12012 2016-04-15  Jan Hubicka  <jh@suse.cz>
12014         PR ipa/70018
12015         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
12016         function does not bind to current def.
12017         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
12018         handle conservatively calls to functions that does not need to bind
12019         to current def.
12020         (check_call): Update call of worse_state.
12021         (ignore_edge_for_nothrow): Update.
12022         (ignore_edge_for_pure_const): Likewise.
12023         (propagate_pure_const): Update calls to worse_state.
12024         (skip_function_for_local_pure_const): Reformat comments.
12026 2016-04-15  Jan Hubicka  <jh@suse.cz>
12028         PR ipa/70018
12029         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
12030         (cgraph_node::function_symbol): Likewise.
12031         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12032         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
12033         (symtab_node::ultimate_alias_target): Add REF parameter.
12034         (symtab_node::binds_to_current_def_p): Declare.
12035         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
12036         (cgraph_node::function_symbol): Likewise.
12037         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12038         (cgraph_node::get_availability): Likewise.
12039         (cgraph_edge::binds_to_current_def_p): New inline function.
12040         (varpool_node::get_availability): Add REF parameter.
12041         (varpool_node::ultimate_alias_target): Likewise.
12042         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
12043         (symtab_node::binds_to_current_def_p): Likewise.
12044         * varpool.c (varpool_node::get_availability): Likewise.
12046 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12048         PR target/70662
12049         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
12050         Fix mode size check.
12052 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12054         * BASE-VER: Set to 7.0.0.
12056 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
12058         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
12060 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12062         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
12063         architecture revisions.
12065 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
12067         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
12068         * config/i386/i386.c (ix86_using_red_zone): No longer static.
12069         * config/i386/i386.md (stack decrement to push peepholes): Guard
12070         with !x86_using_red_zone ().
12072 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12074         PR c++/70675
12075         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
12076         to dump_generic_node.
12077         (NIY): Pass also flags to do_niy.
12079 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
12081         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
12082         (simd_clone_vector_of_formal_parm_types)
12083         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
12084         (simd_clone_mangle, simd_clone_create)
12085         (simd_clone_adjust_return_type, create_tmp_simd_array)
12086         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
12087         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
12088         (ipa_simd_modify_function_body, simd_clone_linear_addend)
12089         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
12090         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
12091         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
12092         * omp-simd-clone.c: ... this new file.
12093         (simd_clone_vector_of_formal_parm_types): Make it static.
12094         * Makefile.in (OBJS): Add omp-simd-clone.o.
12096 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12098         PR target/70662
12099         * config/i386/sse.md: Use proper memory operand modifiers.
12102 2016-04-15  Richard Biener  <rguenther@suse.de>
12103         Alan Modra  <amodra@gmail.com>
12105         PR tree-optimization/70130
12106         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
12107         when alignment stays not the same and no not use the realign
12108         scheme then.
12110 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12112         PR target/70669
12113         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12114         direct move handlers for KFmode. Change TFmode handlers test from
12115         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
12117 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
12119         PR c++/70594
12120         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
12121         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
12122         (inlined_polymorphic_ctor_dtor_block_p): Use it.
12123         * tree-ssa-live.c (remove_unused_scope_block_p): When
12124         in_ctor_dtor_block, avoid discarding not just BLOCKs with
12125         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
12126         block_ultimate_origin is FUNCTION_DECL.
12127         (remove_unused_locals): If current_function_decl is
12128         polymorphic_ctor_dtor_p, pass initial true to
12129         remove_unused_scope_block_p' is_ctor_dtor_block.
12131 2016-04-14  Martin Sebor  <msebor@redhat.com>
12133         PR c++/69517
12134         PR c++/70019
12135         PR c++/70588
12136         * doc/extend.texi (Variable Length): Revert.
12138 2016-04-14  Marek Polacek  <polacek@redhat.com>
12139             Jan Hubicka  <hubicka@ucw.cz>
12141         PR c++/70029
12142         * tree.c (verify_type): Disable the canonical type of main variant
12143         check.
12145 2016-04-14  Jason Merrill  <jason@redhat.com>
12147         * cfgexpand.c, expr.c: Revert previous change.
12149 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12151         PR middle-end/70643
12152         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
12153         when building a mem ref for the incoming reduction variable.
12155 2016-04-14  Richard Biener  <rguenther@suse.de>
12157         PR tree-optimization/70614
12158         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
12159         loop if the evolution dropped to chrec_dont_know.
12160         (interpret_condition_phi): Likewise.
12162 2016-04-14  Richard Biener  <rguenther@suse.de>
12164         PR tree-optimization/70623
12165         * tree-ssa-pre.c (changed_blocks): Make global ...
12166         (compute_antic): ... local here.  Move and fix worklist
12167         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
12168         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
12169         worklist handling, dump when ANTIC_IN changed.
12170         (compute_partial_antic_aux): Remove worklist handling.
12171         (init_pre): Do not compute post dominators.  Add a comment about
12172         the CFG order chosen.
12173         (fini_pre): Do not free post dominators.
12175 2016-04-13  Martin Sebor  <msebor@redhat.com>
12177         PR c++/69517
12178         PR c++/70019
12179         PR c++/70588
12180         * doc/extend.texi (Variable Length): Document C++ specifics.
12182 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12184         PR c++/70641
12185         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
12186         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
12187         eh edges have been purged.
12189         PR c++/70594
12190         * tree-sra.c (create_access_replacement,
12191         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
12192         gets fancy name.
12193         * tree-pretty-print.c (dump_fancy_name): New function.
12194         (dump_decl_name, dump_generic_node): Use it.
12196 2016-04-13  Jason Merrill  <jason@redhat.com>
12198         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
12199         * expr.c (expand_expr_real_1): Likewise.
12201 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12203         * config/i386/i386.md (kunpckhi): Swap operands.
12204         (kunpcksi): Likewise.
12205         (kunpckdi): Likewise.
12206         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
12207         (vec_pack_trunc_<mode>): Likewise.
12209 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12211         PR debug/70628
12212         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
12214         PR middle-end/70633
12215         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
12216         gimplification turns some element into non-constant.
12218         PR debug/70628
12219         * rtl.h (convert_memory_address_addr_space_1): New prototype.
12220         * explow.c (convert_memory_address_addr_space_1): No longer static,
12221         add NO_EMIT argument and don't call convert_modes if true, pass
12222         it down recursively, remove break after return.
12223         (convert_memory_address_addr_space): Adjust caller.
12224         * simplify-rtx.c (simplify_unary_operation_1): Call
12225         convert_memory_address_addr_space_1 instead of convert_memory_address,
12226         if it returns NULL, don't simplify.
12228 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12230         PR target/70630
12231         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
12233 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12235         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12236         Bump the upper SIMDLEN limits, so that if the return type or
12237         characteristic type if the return type is void can be passed in
12238         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
12239         allowed.
12241 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12243         PR target/70640
12244         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
12245         Do not use "=" constraint on an input constraint.
12246         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12247         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12248         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
12249         generates (neg (abs ...)) instead of (abs ...).
12251 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12253         PR rtl-optimization/70596
12254         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
12255         just invalidate LRA data and reset them.  Adjust dump wording.
12257 2016-04-12  Martin Liska  <mliska@suse.cz>
12259         Revert
12260         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12262         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12263         estimates here.
12264         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12265         max_loop_iterations_int.
12266         (tree_unswitch_outer_loop): Likewise.
12267         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12268         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12270 2016-04-12  Tom de Vries  <tom@codesourcery.com>
12272         PR tree-optimization/68756
12273         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12274         instead of new_name.
12276 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12278         PR tree-optimization/70602
12279         * tree-sra.c (generate_subtree_copies): Don't write anything into
12280         constant pool decls.
12282         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12283         regardless whether there are depend clauses or not.
12285 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12287         PR target/70381
12288         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12289         target attribute and pragma from changing the -mfloat128
12290         and -mfloat128-hardware options.
12292         * doc/extend.texi (Additional Floating Types): Document PowerPC
12293         __float128 restrictions.
12295 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12297         PR target/70133
12298         * config/aarch64/driver-aarch64.c
12299         (aarch64_get_extension_string_for_isa_flags): New.
12300         (arch_extension): Rename to...
12301         (aarch64_arch_extension): ...This.
12302         (ext_to_feat_string): Rename to...
12303         (aarch64_extensions): ...This.
12304         (aarch64_core_data): Keep track of architecture extension flags.
12305         (cpu_data): Rename to...
12306         (aarch64_cpu_data): ...This.
12307         (aarch64_arch_driver_info): Keep track of architecture extension
12308         flags.
12309         (get_arch_name_from_id): Rename to...
12310         (get_arch_from_id): ...This, change return type.
12311         (host_detect_local_cpu): Update and reformat for renames, handle
12312         extensions through common infrastructure.
12314 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12316         PR target/70133
12317         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12318         track of a canonical flag name.
12319         (all_extensions): Likewise.
12320         (arch_to_arch_name): Also track extension flags enabled by the arch.
12321         (all_architectures): Likewise.
12322         (aarch64_parse_extension): Move to here.
12323         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12324         rework.
12325         (aarch64_rewrite_selected_cpu): Update for above change.
12326         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12327         are handled, such that the single explicit value enabled by an
12328         extension is kept seperate from the implicit values it also enables.
12329         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12330         to here.
12331         (aarch64_parse_extension): New.
12332         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12333         here to config/aarch64/aarch64-protos.h.
12334         (aarch64_parse_extension): Move from here to
12335         common/config/aarch64/aarch64-common.c.
12336         (aarch64_option_print): Update.
12337         (aarch64_declare_function_name): Likewise.
12338         (aarch64_start_file): Likewise.
12339         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12340         the canonical flag for extensions.
12341         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12342         flags.
12344 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12346         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12347         AARCH64_FL_CRC.
12349 2016-04-09  Tom de Vries  <tom@codesourcery.com>
12351         PR tree-optimization/68953
12352         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12353         first to last subscript.
12355 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
12357         PR tree-optimization/70586
12358         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12359         for any calls.
12361 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12363         PR lto/70289
12364         PR ipa/70348
12365         PR tree-optimization/70373
12366         PR middle-end/70533
12367         PR middle-end/70534
12368         PR middle-end/70535
12369         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12370         clauses for acc parallel reductions as necessary.  Error on those
12371         that are private.
12372         * omp-low.c (scan_sharing_clauses): Don't install variables which
12373         are used in acc parallel reductions.
12374         (lower_rec_input_clauses): Remove dead code.
12375         (lower_oacc_reductions): Add support for reference reductions.
12376         (lower_reduction_clauses): Remove dead code.
12377         (lower_omp_target): Don't remap variables appearing in acc parallel
12378         reductions.
12379         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12381 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
12383         PR middle-end/70593
12384         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12385         with multiple SSA_NAME defs, force the outputs other than first
12386         to be live before calling live_track_process_def on each output.
12388         PR rtl-optimization/70574
12389         * fwprop.c (forward_propagate_and_simplify): Don't add
12390         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12391         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12392         paradoxical subregs within *loc.
12394 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
12396         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12397         -ftree-parallelize-loops={0,1}.
12398         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12399         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12400         * config/ia64/hpux.h (LIB_SPEC): Likewise.
12401         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12402         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12404 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
12406         PR sanitizer/70541
12407         * asan.c (instrument_derefs): If we get unknown location, extract it
12408         with EXPR_LOCATION.
12409         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12411 2016-04-08  Tom de Vries  <tom@codesourcery.com>
12413         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12414         implicit firstprivate clause.
12416 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12418         PR target/70566
12419         * config/arm/thumb2.md (tst + branch-> lsls + branch
12420         peephole below *orsi_not_shiftsi_si): Require that condition
12421         register is dead after the peephole.
12422         (second peephole after the above): Likewise.
12424 2016-04-08  Alan Modra  <amodra@gmail.com>
12426         PR target/70117
12427         * builtins.c (fold_builtin_classify): For IBM extended precision,
12428         look at just the high-order double to test for NaN.
12429         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
12430         test just the high double for Inf but both doubles for subnormal
12431         limit.
12433 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
12435         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12436         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12437         node->simdclone->mask_mode != VOIDmode masks.
12438         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
12439         earlier, use it instead of node->simdclone.
12440         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12441         Set clonei->mask_mode.
12443 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12445         PR c/70436
12446         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12447         Pass it through to cp_parser_already_scoped_statement.
12448         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
12449         it through to cp_parser_statement.
12450         (cp_parser_statement): Pass IF_P through to
12451         cp_parser_iteration_statement.
12452         (cp_parser_pragma): Adjust call to
12453         cp_parser_iteration_statement.
12455 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12457         PR c/70436
12458         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12459         resolve a future -Wparentheses warning.
12460         * omp-low.c (scan_sharing_clauses): Likewise.
12461         * tree-parloops.c (eliminate_local_variables): Likewise.
12463 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
12465         PR rtl-optimization/70398
12466         * lra-constraints.c (process_address_1): Check zero scale and code
12467         for reloading with zero scale.
12469 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
12471         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12472         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12474 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
12476         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12477         Add support for AVX512F clones, include them by default for
12478         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
12479         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12480         up to 128.
12482         PR middle-end/70550
12483         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12484         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12485         firstprivate clauses.
12486         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12487         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12488         (lower_omp_target): Set TREE_NO_WARNING for
12489         non-addressable possibly uninitialized vars which are copied into
12490         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12492 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
12494         * config/pa/predicates.md (integer_store_memory_operand): Accept
12495         REG+D operands with a large offset when reload_in_progress is true.
12496         (floating_point_store_memory_operand): Likewise.
12498 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12500         PR c++/70336
12501         * match.pd (nested int casts): Limit to GIMPLE.
12503 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
12505         PR ipa/66223
12506         * ipa-devirt.c (maybe_record_node): Fix comment; use
12507         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12509 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12511         PR rtl-optimization/70542
12512         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12513         if there are any uses other than insn or debug insns.
12515 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
12516             Jakub Jelinek  <jakub@redhat.com>
12518         PR tree-optimization/70509
12519         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12520         Shift HOST_WIDE_INT_1U instead of 1.
12522 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
12524         PR tree-optimization/70509
12525         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12526         of the vector base type for index.
12528 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
12530         PR target/70510
12531         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12533 2016-04-05  Richard Biener  <rguenther@suse.de>
12535         PR tree-optimization/70526
12536         * tree-sra.c (build_ref_for_offset): Use prev_base to
12537         extract the alias pointer type.
12539 2016-04-05  Richard Biener  <rguenther@suse.de>
12541         * dse.c (struct store_info): Remove alias_set member.
12542         (struct read_info_type): Likewise.
12543         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12544         spill_deleted, clear_alias_set_lookup): Remove.
12545         (get_group_info): Remove dead base == NULL_RTX case.
12546         (dse_step0): Remove initialization of removed variables.
12547         (delete_dead_store_insn): Reomve alias set dumping.
12548         (free_read_records): Remove alias_set handling.
12549         (canon_address): Remove alias_set_out parameter.
12550         (record_store): Remove spill_alias_set, it's always zero.
12551         (check_mem_read_rtx): Likewise.
12552         (dse_step2): Rename from ...
12553         (dse_step2_nospill): ... this.  Adjust.
12554         (scan_stores): Rename from ...
12555         (scan_stores_nospill): ... this.
12556         (scan_reads): Rename from ...
12557         (scan_reads_nospill): ... this.
12558         (scan_stores_spill, scan_reads_spill): Remove.
12559         (dse_step3_scan): Remove for_spills argument which is always false.
12560         (dse_step3): Likewise.
12561         (dse_step5): Rename from ...
12562         (dse_step5_nospill): ... this.  Remove alias_set handling.
12563         (rest_of_handle_dse): Adjust.
12565 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12567         PR target/70525
12568         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12569         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12570         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12571         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12573 2016-04-05  Richard Biener  <rguenther@suse.de>
12575         PR middle-end/70499
12576         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12577         non-register type temporaries into SSA.
12579 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
12581         PR ipa/66223
12582         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12583         calls when sanitizing.
12584         (possible_polymorphic_call_target_p): Fix formatting.
12586 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12587             Jakub Jelinek <jakub@redhat.com>
12589         PR middle-end/70457
12590         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12591         to ensure a call statement is compatible with a built-in's
12592         prototype.
12593         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12594         Likewise.
12596 2016-04-04  Richard Biener  <rguenther@suse.de>
12598         PR rtl-optimization/70484
12599         * rtl.h (canon_output_dependence): Declare.
12600         * alias.c (canon_output_dependence): New function.
12601         * dse.c (record_store): Use canon_output_dependence rather
12602         than canon_true_dependence.
12604 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12606         PR ipa/68881
12607         * cgraph.h (symtab_node::copy_visibility_from): New function.
12608         * symtab.c (symtab_node::copy_visibility_from): New function.
12609         * ipa-visibility.c (optimize_weakref): New function.
12610         (function_and_variable_visibility): Use it.
12612 2016-04-04  Martin Liska  <mliska@suse.cz>
12614         PR hsa/70402
12615         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12616         value that is really in range handled by SBR instruction.
12617         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12618         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12619         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12621 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
12623         PR target/70416
12624         PR target/67391
12625         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12626         set, but not for SP_REG operands.
12628 2016-04-02  Martin Sebor  <msebor@redhat.com>
12630         PR c++/67376
12631         * fold-const.c (maybe_nonzero_address): New function.
12632         (fold_comparison): Call it.  Fold equality and relational
12633         expressions involving null pointers.
12634         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12636 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
12638         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12639         the "Y" constraint (scalar FP 0.0 immediate).
12641         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12642         Add the "const_double" to the list of operand constraints.
12644 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
12646         PR rtl-optimization/70467
12647         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12648         If low word of the last operand is 0, just emit addition/subtraction
12649         for the high word.
12651 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12653         PR target/70404
12654         * config/s390/s390.c (s390_expand_insv): Check for everything
12655         constant instead of just VOIDmode stuff.
12657 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12659         PR target/70496
12660         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12662 2016-04-01  Nathan Sidwell  <nathan@acm.org>
12664         * tree.def (TRY_CATCH_EXPR): Correct documentation.
12666 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12668         PR rtl-optimization/70461
12669         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12670         is necessary.
12672 2016-03-31  Martin Liska  <mliska@suse.cz>
12674         PR hsa/70399
12675         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12676         a tree value or an immediate integer value to a buffer
12677         that is eventually copied to a BRIG section.
12678         (emit_immediate_operand): Call the function here.
12679         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12680         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12681         of class' fields that are removed.
12682         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12683         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12684         m_brig_repr_size fields.
12686 2016-03-31  Martin Liska  <mliska@suse.cz>
12688         PR hsa/70391
12689         * hsa-gen.c (hsa_function_representation::update_dominance): New
12690         function.
12691         (convert_addr_to_flat_segment): Likewise.
12692         (gen_hsa_memory_set): New alignment argument.
12693         (gen_hsa_ctor_assignment): Likewise.
12694         (gen_hsa_insns_for_single_assignment): Provide alignment
12695         to gen_hsa_ctor_assignment.
12696         (gen_hsa_insns_for_direct_call): Add new argument.
12697         (expand_lhs_of_string_op): New function.
12698         (expand_string_operation_builtin): Likewise.
12699         (expand_memory_copy): New function.
12700         (expand_memory_set): New function.
12701         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12702         (convert_switch_statements): Change signature.
12703         (generate_hsa): Use a return value of the function.
12704         (pass_gen_hsail::execute): Do not call
12705         convert_switch_statements here.
12706         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12707         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12708         (hsa_function_representation::update_dominance): New function.
12710 2016-03-31  Martin Liska  <mliska@suse.cz>
12712         PR hsa/70391
12713         * hsa-brig.c (emit_directive_variable): Emit alignment
12714         according to hsa_symbol::m_align.
12715         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12716         (dump_hsa_symbol): Dump alignment of HSA symbols.
12717         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12718         (gen_hsa_addr_with_align): New function.
12719         (hsa_bitmemref_alignment): Use newly added function.
12720         (gen_hsa_insns_for_load): Likewise.
12721         (gen_hsa_insns_for_store): Likewise.
12722         (gen_hsa_memory_copy): New argument added.
12723         (gen_hsa_insns_for_single_assignment): Respect
12724         alignment for assignments processed via gen_hsa_memory_copy.
12725         (gen_hsa_insns_for_direct_call): Likewise.
12726         (gen_hsa_insns_for_return): Likewise.
12727         (gen_function_def_parameters): Set default alignment.
12728         * hsa.c (hsa_object_alignment): New function.
12729         (hsa_byte_alignment): Pasted function.
12730         * hsa.h (hsa_symbol::m_align): New field.
12732 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12734         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12735         scratch field for goto case.
12737 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
12739         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12741 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
12743         PR target/70442
12744         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12745         (scalar_chain::convert_insn): Call convert_op for reg
12746         moves to handle undefined registers.
12748 2016-03-31  Nathan Sidwell  <nathan@acm.org>
12750         PR c++/70393
12751         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12752         Assert we don't want to move backwards.
12754 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12756         PR target/70453
12757         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12759 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
12761         PR rtl-optimization/70460
12762         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12763         with operand from REG_LABEL_OPERAND, instead substitute
12764         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12765         Don't do anything for REG_NON_LOCAL_GOTO jumps.
12767 2016-03-31  Martin Liska  <mliska@suse.cz>
12769         * passes.c (execute_one_pass): Do not call
12770         todo_after for a discarded function.
12772 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12774         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12775         (no_cost, infinite_cost): Initialize the new field.
12776         (get_computation_cost_at): Record setup cost.
12777         (determine_use_iv_cost_address): Skip cost computation for sub
12778         uses if we can estimate it without losing accuracy.
12780 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12782         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12783         estimates here.
12784         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12785         max_loop_iterations_int.
12786         (tree_unswitch_outer_loop): Likewise.
12787         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12788         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12790 2016-03-30  Richard Biener  <rguenther@suse.de>
12792         PR middle-end/70450
12793         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12795 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
12797         PR target/70421
12798         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12799         in gen_blendm expander.
12801 2016-03-30  Nick Clifton  <nickc@redhat.com>
12803         PR target/62254
12804         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12805         case where we are already provided with an SImode SUBREG.
12807 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12809         PR target/70439
12810         * config/i386/i386.c (ix86_expand_epilogue): Properly check
12811         conflict between DRAP register and __builtin_eh_return.
12813 2016-03-30  Michael Matz  <matz@suse.de>
12814             Richard Biener  <rguenther@suse.de>
12816         PR ipa/12392
12817         * ipa-polymorphic-call.c (struct type_change_info): Change
12818         speculative to an unsigned allowing to limit the work we do.
12819         (csftc_abort_walking_p): New inline function..
12820         (check_stmt_for_type_change): Limit the number of may-defs
12821         skipped for speculative devirtualization to
12822         max-speculative-devirt-maydefs.
12823         * params.def (max-speculative-devirt-maydefs): New param.
12824         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12826 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
12828         PR target/63890
12829         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12830         and TARGET_MACHO.
12832 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
12834         PR tree-optimization/59124
12835         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12836         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12838 2016-03-29  Jeff Law  <law@redhat.com>
12840         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12842 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12844         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12845         to HOST_WIDE_INT.
12847 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12849         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12850         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12851         gcrt0.o if linking dynamically.
12853 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12855         PR ipa/70283
12856         * ipa-devirt.c (methods_equal_p): New function.
12857         (compare_virtual_tables): Use it.
12858         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12859         * cgraphclones.c (clone_function_name_1): Use
12860         symbol_table::symbol_suffix_separator.
12861         * coverage.c (build_var): Likewise.
12862         * symtab.c (symbol_table::symbol_suffix_separator): New.
12864 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
12866         PR rtl-optimization/70429
12867         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12868         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12869         mode != result_mode.
12871         PR c++/70353
12872         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12874         PR tree-optimization/70405
12875         * ssa-iterators.h (num_imm_uses): Add missing braces.
12877 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12879         PR rtl-optimization/68695
12880         * ira-color.c (allocno_copy_cost_saving): New.
12881         (improve_allocation): Use it.
12883 2016-03-29  Richard Henderson  <rth@redhat.com>
12885         PR middle-end/70355
12886         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12888 2016-03-29  Richard Biener  <rguenther@suse.de>
12890         PR middle-end/70424
12891         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12892         use alignment returned by get_pointer_alignment_1 if it is
12893         bigger than BITS_PER_UNIT.
12894         * builtins.c (get_pointer_alignment_1): Do not return true
12895         for alignment extracted from SSA info.
12897 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
12899         * config/ft32/ft32.opt (mnodiv): New.
12900         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12901         * doc/invoke.texi (FT32 Options -mnodiv): New.
12903 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
12905         PR target/70406
12906         * config/i386/i386.md (define_split, andn): Fix modes.
12908 2016-03-26  Richard Biener  <rguenther@suse.de>
12909             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12911         PR ipa/70366
12912         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12913         instead of
12914         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12915         as 2nd argument to cl_optimization_restore().
12917 2016-03-25  Richard Henderson  <rth@redhat.com>
12919         PR target/70120
12920         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12921         * config/aarch64/aarch64-protos.h: Declare it.
12922         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12924 2016-03-25  Alan Modra  <amodra@gmail.com>
12926         PR target/70052
12927         * config/rs6000/constraints.md (j): Simplify.
12928         * config/rs6000/predicates.md (easy_fp_constant): Exclude
12929         decimal float 0.D.
12930         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12931         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12932          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12933         in all constraint alternatives.
12934         (movtd_64bit_nodm): Delete "j" constraint alternative.
12936 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12938         * tree-ssa-propagate.c: Enhance docs for
12939         SSA_PROP_NOT_INTERESTING.
12941 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12943         * doc/extend.texi: Fix typo in documentation to pure attribute.
12945 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
12947         PR target/70319
12948         * config/pa/pa.md (bswapdi2): Use a scratch register.
12950 2016-03-24  Richard Henderson  <rth@redhat.com>
12952         PR middle-end/69845
12953         * fold-const.c (extract_muldiv_1): Correct test for multiplication
12954         overflow.
12956 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
12958         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12959         using ix86_expand_binary_operator instead of gen_andsi3.
12961 2016-03-24  Richard Biener  <rguenther@suse.de>
12963         PR tree-optimization/70396
12964         * tree-vect-stmts.c (vectorizable_comparison): Use
12965         get_vectype_for_scalar_type.
12967 2016-03-24  Richard Biener  <rguenther@suse.de>
12969         PR middle-end/70370
12970         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12971         with register bases.
12973 2016-03-24  Richard Biener  <rguenther@suse.de>
12975         PR tree-optimization/70372
12976         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12977         build_all_ones_cst to also handle vector types correctly.
12979 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12981         PR target/70381
12982         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12983         -mfloat128 here.
12985 2016-03-23  Marek Polacek  <polacek@redhat.com>
12987         PR c++/69884
12988         * doc/invoke.texi: Document -Wignored-attributes.
12990 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12992         PR tree-optimization/69042
12993         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12994         parameter from 30 to 40.
12996 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12998         PR tree-optimization/69042
12999         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
13000         for use with constant offset stripped in base.
13002 2016-03-23  Richard Biener  <rguenther@suse.de>
13004         PR middle-end/70251
13005         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
13006         mode compatibility check.
13007         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13009 2016-03-23  Jeff Law  <law@redhat.com>
13011         PR tree-optimization/64058
13012         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
13013         CONFLICT_COUNT.
13014         (struct ssa_conflicts): Move up earlier in the file.
13015         (conflicts_, var_map_): New static variables.
13016         (initialize_conflict_count): New function to initialize the
13017         CONFLICT_COUNT field for each conflict pair.
13018         (compare_pairs): Lazily initialize the conflict count and use it
13019         as the first tie-breaker.
13020         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
13021         and wipe conflicts_ and map_ around the call to qsort.  Remove
13022         special case for 2 coalesce pairs.
13023         * bitmap.c (bitmap_count_unique_bits): New function.
13024         (bitmap_count_bits_in_word): New function, extracted from
13025         bitmap_count_bits.
13026         (bitmap_count_bits): Use bitmap_count_bits_in_word.
13027         * bitmap.h (bitmap_count_unique_bits): Declare it.
13029 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
13031         PR target/69917
13032         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
13033         transparent alias chain for decl assembler name.
13034         * config/sol2.c (solaris_assemble_visibility): Likewise.
13036 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13038         * config/arm/arm1020e.md (1020call_op): Reduce reservation
13039         duration.
13040         (v10_fdivs): Likewise.
13041         (v10_fdivd): Likewise.
13043 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13045         PR driver/70132
13046         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
13047         to not call fclose twice on file.
13049 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13051         PR tree-optimization/70354
13052         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13053         oprnd0 is wider than oprnd1 and there is a cast from the wider
13054         type to oprnd1, mask it with the mask of the narrower type.
13056         PR target/70321
13057         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
13058         Optimize TARGET_STV splitters, if high or low word of last argument
13059         is 0 or -1.
13061 2016-03-22  Jeff Law  <law@redhat.com>
13063         PR target/70232
13064         tree-ssa-threadbackward.c
13065         (fsm_find_control_statement_thread_paths): Correctly distinguish
13066         between old style jump threads vs FSM jump threads.
13068 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
13070         PR target/70302
13071         * config/i386/i386.c (scalar_chain::convert_op): Support
13072         uninitialized register usage case.
13074 2016-03-22  Richard Biener  <rguenther@suse.de>
13076         PR middle-end/70251
13077         * genmatch.c (gen_transform): Adjust last parameter to a three-state
13078         int...
13079         (capture::gen_transform): ... to change behavior when substituting
13080         a condition into cond or not-cond expr context.
13081         (dt_simplify::gen_1): Adjust.
13082         * gimple-match-head.c: Include gimplify.h for unshare_expr.
13083         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
13084         last change and instead change to
13085         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
13086         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13088 2016-03-22  Anthony Green  <green@moxielogic.com>
13090         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
13091         issue for moxiebox targets.
13092         (CC1PLUS_SPEC): Ditto.
13094 2016-03-22  Richard Biener  <rguenther@suse.de>
13096         PR middle-end/70333
13097         * fold-const.c (extract_muldiv_1): Properly perform multiplication
13098         in the wide type.
13100 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13102         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
13104 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13106         PR target/70325
13107         * config/i386/i386.c (def_builtin): Handle
13108         OPTION_MASK_ISA_AVX512VL to be and-ed with other
13109         bits.
13110         (const struct builtin_description bdesc_special_args[]):
13111         Remove duplicate ISA bits.
13113 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
13115         PR target/70329
13116         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
13117         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
13118         in a way that works also for AVX512BW.
13120         PR target/70300
13121         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
13122         instead of source if operands[1] is xmm16 and above and
13123         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
13124         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
13126         PR c++/70295
13127         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
13128         on assign if (*from_p) is a comparison, set it to
13129         TREE_NO_WARNING (*from_p).
13131 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13133         PR middle-end/70326
13134         * lra.c (restore_scratches): Ignore deleted insns.
13136 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
13137             Jakub Jelinek  <jakub@redhat.com>
13139         PR tree-optimization/70317
13140         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
13141         to HONOR_NANS.
13143 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
13145         PR target/70327
13146         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
13147         of ix86_expand_move.
13148         (movoi): Ditto.
13149         (movti): Use general_operand for operand 1 predicate.
13151 2016-03-21  Martin Liska  <mliska@suse.cz>
13153         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
13154         insns.
13155         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
13157 2016-03-21  Martin Liska  <mliska@suse.cz>
13159         PR ipa/70306
13160         * ipa-icf.c (sem_function::parse): Skip static
13161         constructors and destructors.
13163 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13165         PR target/70296
13166         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
13167         function-like macro, peek following token(s) if it is followed
13168         by CPP_OPEN_PAREN token with optional padding in between, and
13169         if not, don't treat it like a macro.
13171 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13172             Alexander Monakov  <amonakov@ispras.ru>
13174         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
13175         for the stabs debug format.
13177 2016-03-21  Richard Biener  <rguenther@suse.de>
13179         PR tree-optimization/70310
13180         * tree-vect-generic.c (expand_vector_condition): Fold the built
13181         condition.
13183 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
13185         PR target/70293
13186         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
13187         Block third alternative for AVX-512VL target,
13189 2016-03-21  Martin Liska  <mliska@suse.cz>
13191         PR hsa/70234
13192         * hsa-brig.c (emit_function_directives): Mark unemitted
13193         global variables for emission.
13194         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
13195         (get_symbol_for_decl): Likewise.
13196         * hsa.h (struct hsa_symbol): New flag.
13198 2016-03-21  Richard Biener  <rguenther@suse.de>
13200         PR tree-optimization/70288
13201         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
13202         we do not estimate unsimplified all-constant conditionals or
13203         switches as optimized away.
13205 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
13207         PR rtl-optimization/69102
13208         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
13209         when we have a readonly dependency context.
13211 2016-03-18  Jeff Law  <law@redhat.com>
13213         PR rtl-optimization/70263
13214         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
13215         (update_equiv_regs): When trying to move a store to after the insn
13216         that sets the source of the store, make sure the store occurs after
13217         the insn that sets the source of the store.  When successful note
13218         the REG_EQUIV note created in the dump file.
13220 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
13221             Bernd Schmidt  <bschmidt@redhat.com>
13223         * doc/extend.texi: Document more potential problems with basic asms.
13225 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
13227         PR rtl-optimization/70278
13228         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
13229         VOIDmode.
13231 2016-03-18  Jason Merrill  <jason@redhat.com>
13233         * calls.c (load_register_parameters): Fix zero size sibcall logic.
13235 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13237         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
13238         values to 128b regs.
13240 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13242         PR tree-optimization/70252
13243         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
13244         boolean vector has a proper number of elements.
13245         (supportable_narrowing_operation): Likewise.
13247 2016-03-18  Tom de Vries  <tom@codesourcery.com>
13249         PR ipa/70269
13250         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
13252 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
13254         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
13255         instead of replace_rtx for DEBUG_INSNs.
13257 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13259         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
13260         load type reservations.
13262 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
13264         PR target/70188
13265         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
13266         define_constraint for "Q" and "T" constraints.
13268 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
13270         Tweak the pipeline model for Exynos M1
13272         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
13273         model.
13275 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
13277         PR c/70264
13278         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13279         where one or both locations aren't within a line_map.
13281 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13283         PR driver/70192
13284         * opts.c (finish_options): Don't set flag_pie to the default if
13285         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
13286         if it is -1.
13288 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
13290         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13291         true as ALL_REGS argument to replace_rtx.
13293 2016-03-17  Richard Biener  <rguenther@suse.de>
13295         PR debug/70271
13296         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13297         last.
13299 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13301         PR target/70245
13302         * rtl.h (replace_rtx): Add ALL_REGS argument.
13303         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
13304         equality and assert mode is the same, instead of just rtx pointer
13305         equality.
13306         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13307         true as ALL_REGS argument to replace_rtx.
13309 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
13311         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13312         for boolean vector with vector mode only.
13313         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13315 2016-03-17  Nick Clifton  <nickc@redhat.com>
13317         PR target/70162
13318         * config/rx/rx.c (rx_print_integer): Print negative constants in
13319         decimal.
13321 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13323         PR target/70261
13324         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13326 2016-03-16  Richard Henderson  <rth@redhat.com>
13327             Richard Biener  <rguenth@suse.de>
13329         PR middle-end/70240
13330         PR middle-end/68215
13331         PR tree-opt/68714
13332         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13333         first operand as is_gimple_condexpr.
13335         PR middle-end/70240
13336         PR middle-end/68215
13337         Revert r231575
13338         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
13339         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13340         Do not gimplify the result.
13341         (do_unop): Adjust call to tree_vec_extract.
13342         (do_binop): Likewise.
13343         (do_compare): Likewise.
13344         (do_plus_minus): Likewise.
13345         (do_negate): Likewise.
13346         (expand_vector_condition): Likewise.
13347         (do_cond): Likewise.
13349 2016-03-16  Richard Henderson  <rth@redhat.com>
13351         PR target/70048
13352         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13353         (aarch64_classify_address): Use it.
13354         (aarch64_legitimize_address): Force all subexpressions of PLUS
13355         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
13357 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
13358             Richard Biener  <rguenth@suse.de>
13360         PR target/70245
13361         * rtlanal.c (replace_rtx): For REG, if from is a REG,
13362         return to even if only REGNO is equal, and assert
13363         mode is the same.
13365 2016-03-11  Jeff Law  <law@redhat.com>
13367         PR rtl-optimization/70224
13368         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13370 2016-03-16  Richard Henderson  <rth@redhat.com>
13372         PR middle-end/70199
13373         * function.h (struct function): Add has_forced_label_in_static.
13374         * gimplify.c (force_labels_r): Set it.
13375         * lto-streamer-in.c (input_struct_function_base): Read it.
13376         * lto-streamer-out.c (output_struct_function_base): Write it.
13377         * tree-inline.c (has_label_address_in_static_1): Remove.
13378         (copy_forbidden): Remove fndecl parameter; test
13379         has_forced_label_in_static.
13380         (inline_forbidden_p): Update call to copy_forbidden.
13381         (tree_versionable_function_p): Likewise.
13382         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13383         (chkp_versioning): Likewise.
13384         * tree-inline.h (copy_forbidden): Update decl.
13386 2016-03-16  Marek Polacek  <polacek@redhat.com>
13388         PR c/70093
13389         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13390         function being thunked if the result type doesn't have fixed size.
13391         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13392         doesn't have fixed size.
13394 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
13396         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13397         reporting malformed loop nest.
13399 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13401         PR lto/70187
13402         * ipa-devirt.c (possible_polymorphic_call_targets): Move
13403         nodes.length () == 1 test to before first nodes[0] access.
13405 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13407         PR tree-optimization/68715
13408         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13409         single_pred_p test.
13411 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13413         PR tree-optimization/68809
13414         * graphite-scop-detection.c (same_close_phi_node): Test if result types
13415         are the same.
13417 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
13418             Sandra Loosemore  <sandra@codesourcery.com>
13420         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13421         on leaf attribute. Mention ELF interposition problems.
13423 2016-03-16  Alan Modra  <amodra@gmail.com>
13425         PR rtl-optimization/69195
13426         PR rtl-optimization/47992
13427         * ira.c (indirect_jump_optimize): Ignore artificial defs.
13428         Add comments.
13430 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
13432         PR bootstrap/69513
13433         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13435 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13437         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13439 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
13441         PR rtl-optimization/70222
13442         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13443         optimization if mode is different from result_mode, queue up masking
13444         of the result in outer_op.  Formatting fix.
13446         PR middle-end/70239
13447         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13448         of safe_grow.
13450 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13452         PR rtl-optimization/69032
13453         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13454         looping backwards over basic block insns.
13456 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13458         PR target/66660
13459         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13460         to non-speculative when propagating trap bits.
13462 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13464         PR rtl-optimization/63384
13465         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13466         DEBUG_INSN_P insns.
13468 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13470         PR target/64411
13471         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13472         factored out from ...
13473         (sched_analyze_insn): ... here.
13474         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13475         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13476         get_implicit_reg_pending_clobbers in it.
13477         (setup_id_reg_sets): Use setup_id_implicit_regs.
13478         (deps_init_id): Ditto.
13480 2016-03-15  Tom de Vries  <tom@codesourcery.com>
13482         PR ipa/70161
13483         * cgraph.c (cgraph_node::get_body): Save, reset and restore
13484         dump_file_name.
13485         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13486         execute_function_dump.
13487         (execute_one_pass): Don't dump function if it will be dumped after ipa
13488         transform.
13490 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
13492         * genrecog.c (match_pattern_2): If pred is NULL don't call
13493         safe_predicate_mode on it.
13495 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
13497         PR middle-end/70219
13498         * lra-constraints.c (delete_move_and_clobber): Change assertion
13499         to also allow dregno == 0.
13501 2016-03-14  Richard Henderson  <rth@redhat.com>
13503         PR tree-opt/68714
13504         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13505         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13506         (reassociate_bb): Use optimize_vec_cond_expr; avoid
13507         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13508         on vectors.
13510 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
13512         PR target/70083
13513         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13514         regs.
13515         (lra_create_live_ranges_1): initialize hard register biggest_mode to
13516         VOIDmode.
13517         * lra-constraints.c (split_reg): For hard regs, try to find the
13518         biggest single-register mode used in the function.
13520 2016-03-14  Richard Biener  <rguenther@suse.de>
13522         PR tree-optimization/56365
13523         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13524         constants to compare against.
13526 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
13528         PR target/70098
13529         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13530         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13531         (define_split for the GPR case): Use int_reg_operand instead of
13532         gpc_reg_operand for the output.
13534 2016-03-14  Tom de Vries  <tom@codesourcery.com>
13536         PR tree-optimization/70045
13537         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13538         create_empty_if_region_on_edge argument.
13540 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
13542         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13543         (STACK_CHECK_PROTECT): Likewise.
13544         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13545         (STACK_CHECK_PROTECT): Likewise.
13546         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13547         (STACK_CHECK_PROTECT): Likewise.
13548         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13549         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13550         (STACK_CHECK_PROTECT): Likewise.
13552 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
13554         PR rtl-optimization/69307
13555         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13556         registers in modes that span more than one register.
13558 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
13560         PR target/69614
13561         * lra-constraints.c (delete_move_and_clobber): New.
13562         (remove_inheritance_pseudos): Use it.
13564 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
13566         PR ada/70017
13567         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13568         the libcall is LCT_THROW.
13569         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13570         for the checking routine.
13572 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13574         PR target/70131
13575         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13576         optimization if we have direct move.
13577         (roundu32<mode>2_fprs): Likewise.
13579 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
13581         PR target/70123
13582         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13583         be rematerialized.
13584         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13585         Arguments swapped.  All callers changed.  Take reg_renumber into
13586         account, and Calculate and compare register ranges for hard regs.
13588 2016-03-11  Jeff Law  <law@redhat.com>
13590         PR tree-optimization/70190
13591         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13592         Handle cases where we can not extract the taken edge, even though we
13593         found a constant value.
13595         PR tree-optimization/64058
13596         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13597         (num_coalesce_pairs): Move up earlier in file.
13598         (find_coalesce_pair): Initialize the INDEX field for each pair
13599         discovered.
13600         (compare_pairs): No longer sort on the elements in each pair.
13601         Instead break ties with the index of the coalesce pair.
13603 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13605         PR target/70002
13606         * config/aarch64/aarch64-protos.h
13607         (aarch64_save_restore_target_globals): New prototype.
13608         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13609         Call the above when popping pragma.
13610         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13611         New function.
13612         (aarch64_set_current_function): Rewrite using the above.
13614 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13616         PR tree-optimization/70177
13617         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13618         (extract_ops_from_tree): ... this.  In the 2 argument
13619         overload remove _1 suffix.
13620         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13621         (extract_ops_from_tree): ... this.
13622         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13623         Adjust callers.
13624         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13625         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13626         extract_ops_from_tree instead of 2 operand one.
13628 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
13630         PR tree-optimization/70013
13631         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13632         for constant-pool entries.
13634 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13636         PR rtl-optimization/70174
13637         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13638         followed by gen_lowpart on force_reg instead of just gen_lowpart.
13640         PR tree-optimization/70169
13641         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13642         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
13643         for unknown codes.
13645 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
13646             Jakub Jelinek  <jakub@redhat.com>
13648         PR target/70160
13649         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13650         of uninitialized values.
13652 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13654         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13655         define_expand.
13656         ("*trunctddd2"): New pattern definition.
13657         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13658         TD->DD truncation.
13660 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13662         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13663         definitions for BFP and DFP rounding modes.
13664         ("fixuns_truncdddi2", "fixuns_trunctddi2")
13665         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13666         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13667         ("fix_trunctf<mode>2"): Use the new constants instead of magic
13668         numbers.
13670 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13672         * config/s390/constraints.md: Adjust comment.
13673         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
13674         s390_decompose_addrstyle_without_index.
13675         * config/s390/predicates.md (shift_count_or_setmem_operand):
13676         Rename to setmem_operand.
13677         * config/s390/s390-protos.h
13678         (s390_decompose_shift_count): Rename to
13679         s390_decompose_addrstyle_without_index.
13680         * config/s390/s390.c (s390_decompose_shift_count)
13681         (s390_mem_constraint, print_shift_count_operand)
13682         (print_operand_address, print_operand): Rename
13683         s390_decompose_shift_count to
13684         s390_decompose_addrstyle_without_index and rename
13685         print_shift_count_operand to print_addrstyle_operand troughout the
13686         file.
13687         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13688         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13689         Rename shift_count_or_setmem_operand to setmem_operand.
13690         * config/s390/vx-builtins.md ("vec_insert<mode>")
13691         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13692         nonmemory_operand.
13694 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13696         PR target/70168
13697         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13698         Handle overlapping retval and newval.
13700 2016-03-10  Nick Clifton  <nickc@redhat.com>
13702         PR target/7044
13703         * config/aarch64/aarch64.c
13704         (aarch64_override_options_after_change_1): When forcing
13705         flag_omit_frame_pointer to be true, use a special value that can
13706         be detected if this function is called again, thus preventing
13707         flag_omit_leaf_frame_pointer from being forced to be false.
13709 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13711         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13712         Set x_flag_omit_leaf_frame_pointer when handling
13713         -momit-leaf-frame-pointer.
13715 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13717         PR lto/69589
13718         * cgraph.c (cgraph_node::dump): Dump split_part and
13719         indirect_call_target.
13720         * cgraph.h (cgraph_node): Add indirect_call_target flag.
13721         * ipa.c (has_addr_references_p): Cleanup.
13722         (is_indirect_call_target_p): New.
13723         (walk_polymorphic_call_targets): Do not mark virtuals that may be
13724         called indirectly as local.
13725         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13727 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13729         PR ipa/69630
13730         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13731         on cxa_pure_virtual.
13733 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13735         PR lto/69589
13736         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13738 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13740         PR lto/69589
13741         * tree.c (need_assembler_name_p): Only record main variant type names.
13743 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13745         PR target/70113.
13746         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13747         Always define to 0 or 1.
13748         (TARGET_FIX_ERR_A53_843419): New macro.
13749         * config/aarch64/aarch64-elf-raw.h
13750         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13751         * config/aarch64/aarch64-linux.h: Likewise.
13752         * config/aarch64/aarch64.c
13753         (aarch64_override_options_after_change_1): Do not default
13754         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13755         843419 is on.
13756         (aarch64_attributes): Handle fix-cortex-a53-843419.
13757         (aarch64_can_inline_p): Likewise.
13758         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13760 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
13761         Jakub Jelinek <jakub@redhat.com>
13763         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13764         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13765         DECL_COMMONS if flag_unconstrained_commons is set.
13766         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13767         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13768         (funconstrained-commons): Document.
13770 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13772         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13773         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13775 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
13777         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13778         has a proper number of elements.
13780 2016-03-10  Alan Modra  <amodra@gmail.com>
13782         PR rtl-optimization/69195
13783         PR rtl-optimization/47992
13784         * ira.c (recorded_label_ref): Delete.
13785         (update_equiv_regs): Return void.
13786         (indirect_jump_optimize): New function.
13787         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13788         before regstat_compute_ri.  Don't rebuild_jump_labels here.
13789         Delete update_regstat.
13791 2016-03-10  Richard Biener  <rguenther@suse.de>
13793         PR tree-optimization/70128
13794         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13795         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13797 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13799         PR tree-optimization/70152
13800         * tree-sra.c (replace_removed_params_ssa_names): Copy over
13801         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13803         PR target/70086
13804         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13805         instead of gen_sse2_loadlpd.
13806         * config/i386/sse.md (*vec_concatv2df): Rename to...
13807         (vec_concatv2df): ... this.
13809         PR tree-optimization/70127
13810         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13812 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13814         PR c/68473
13815         PR c++/70105
13816         * diagnostic-show-locus.c (compatible_locations_p): New function.
13817         (layout::layout): Sanitize ranges using compatible_locations_p.
13819 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13821         PR c/68473
13822         PR c++/70105
13823         * diagnostic-show-locus.c (layout_range::layout_range): Replace
13824         location_range param with three const expanded_locations * and a
13825         bool.
13826         (layout::layout): Replace call to
13827         rich_location::lazily_expand_location with get_expanded_location.
13828         Extract the range and perform location expansion here, passing
13829         the results to the layout_range ctor.
13830         * diagnostic.c (source_range::debug): Delete.
13831         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13832         of rich_location::get_expanded_location.
13833         * gcc-rich-location.c (get_range_for_expr): Delete.
13834         (gcc_rich_location::add_expr): Reimplement to avoid the
13835         rich_location::add_range overload that took a location_range,
13836         passing a location_t instead.
13838 2016-03-09  Richard Biener  <rguenther@suse.de>
13839         Jakub Jelinek  <jakub@redhat.com>
13841         PR tree-optimization/70138
13842         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13843         Also skip vect_double_reduction_def.
13845 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13847         PR target/70049
13848         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13849         if the operand is "m".
13851 2016-03-09  Nathan Sidwell  <nathan@acm.org>
13853         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13855 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13857         * config/i386/i386.c (processor_target_table): Fix cost table
13858         intialization order for znver1.
13860 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13862         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13863         - becuase -> because.
13864         * ipa-reference.c (ignore_module_statics): Likewise.
13865         * cgraph.c (cgraph_node::get_body): Likewise.
13866         * ipa-inline.c (early_inliner): Likewise.
13867         * ipa-devirt.c (types_same_for_odr): Likewise.
13868         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13869         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13871 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13873         * tree-ssa-math-opts.c: Fix typo in comment.
13875 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13877         PR target/70110
13878         * config/i386/i386.c (scalar_chain::make_vector_copies,
13879         scalar_chain::convert_reg): Call end_sequence in between
13880         get_insns and emit_conversion_insns rather than after both
13881         calls.
13883 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
13885         PR target/70064
13886         * config/i386/i386.h (machine_function): Add
13887         pc_thunk_call_expanded flag.
13888         (ix86_pc_thunk_call_expanded): New define.
13889         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13890         (*set_got): Rename insn pattern from set_got.
13891         (*set_got_labelled): Rename inst pattern from set_got_labelled.
13892         * config/i386/i386.c (ix86_compute_frame_layout): Use
13893         ix86_pc_thunk_call_expanded to prevent red-zone.
13895 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13897         * hsa.h (hsa_get_ctor_statements): Declare.
13898         (hsa_get_dtor_statements): Likewise.
13899         (hsa_get_kernel_dispatch_type): Likewise.
13900         * hsa.c (hsa_get_ctor_statements): New function.
13901         (hsa_get_dtor_statements): Likewise.
13902         (hsa_get_kernel_dispatch_type): Likewise.
13903         * hsa-brig.c (hsa_cdtor_statements): Removed.
13904         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13905         hsa_get_dtor_statements.
13906         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13907         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13909 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13911         * config/arm/arm-cores.def (cortex-r8): New.
13912         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13913         * config/arm/arm-tune.md: Likewise.
13914         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13916 2016-03-07  Martin Sebor  <msebor@redhat.com>
13918         PR rtl-optimization/19705
13919         * doc/invoke.texi (Options That Control Optimization): Clarify
13920         -fno-branch-count-reg.
13922 2016-02-26  Richard Biener  <rguenther@suse.de>
13923             Jeff Law  <law@redhat.com>
13925         PR tree-optimization/69740
13926         * cfghooks.c (remove_edge): Request loop fixups if we delete
13927         an edge that might turn an irreducible loop into a natural
13928         loop.
13929         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13930         Move after definition of loops_state_clear.
13932 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
13934         PR rtl-optimization/69052
13935         * rtlanal.c (commutative_operand_precedence): Set higher precedence
13936         to CONST_WIDE_INT.
13938 2016-03-07  Tom de Vries  <tom@codesourcery.com>
13940         PR tree-optimization/70116
13941         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13942         is_tm_ending stmts and ubsan/asan internal functions.
13943         (find_duplicate): Use it.  Don't test is_tm_ending here.
13945 2016-03-07  Richard Biener  <rguenther@suse.de>
13947         PR tree-optimization/70115
13948         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13949         (propagate_constants_for_unrolling): Use replace_uses_by.
13951 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
13953         PR middle-end/69916
13954         * omp-low.c (struct oacc_loop): Add ifns.
13955         (new_oacc_loop_raw): Initialize it.
13956         (finish_oacc_loop): Clear mask & flags if no ifns.
13957         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13958         (oacc_loop_xform_loop): Add ifns arg & adjust.
13959         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13961 2016-03-07  Richard Henderson  <rth@redhat.com>
13963         PR rtl-opt/70061
13964         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13965         (insert_value_copy_on_edge): Likewise.
13967 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13969         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13971 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13973         PR target/62281
13974         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13976 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13978         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13980 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13982         Fix sseimul type attribute.
13983         * config/i386/znver1.md
13984         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13985         znver1_sseimul_avx256_load) : Fix the type attribute.
13986         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13987         pipe usage and latency.
13989 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
13991         PR c++/70084
13992         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13993         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13994         to the right type.
13996 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13998         PR c/69973
13999         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
14001         PR rtl-optimization/69941
14002         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
14003         the reg share its mode.
14005 2016-03-04  Jeff Law  <law@redhat.com>
14007         PR tree-optimization/69196
14008         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14009         If the both SSA_NAMEs are anonymous, then consider them unassociated
14010         and include the PHI in the statement count.
14012 2016-03-05  Tom de Vries  <tom@codesourcery.com>
14014         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
14015         construct in oacc routine.  Check for oacc region in oacc routine.
14017 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14019         PR target/70062
14020         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
14021         2016-02-22 changes, instead don't recurse if RECUR is already true.
14022         Don't change *dynamic_check if RECUR.  Adjust recursive caller
14023         to pass true to the new argument.
14024         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
14026         PR target/70059
14027         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14028         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
14029         fixes.
14030         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
14032 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
14034         PR rtl-optimization/57676
14035         * lra-assigns.c (lra_assign): Guard test for maximum iterations
14036         with flag_checking.
14038 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
14040         * tree-vect-patterns.c (search_type_for_mask): Handle
14041         comparison of booleans.
14043 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14045         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
14046         Fix @xref usage.
14048         PR debug/69947
14049         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
14050         all other ops that have dw_val_class_die_ref operands,
14051         and DW_OP_GNU_entry_value.
14053 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14055         PR rtl-optimization/69904
14056         * config/arm/arm.c (arm_cannot_copy_insn_p):
14057         Return true for load-exclusive instructions.
14059 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
14061         PR target/70021
14062         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
14063         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
14064         the pattern no matter if it is used just by non-pattern, pattern
14065         or mix thereof.
14066         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
14067         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14068         oprnd1 def_stmt is in pattern, don't look through it.
14070 2016-03-03  Marek Polacek  <polacek@redhat.com>
14072         PR middle-end/70050
14073         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
14075 2016-03-03  Martin Liska  <mliska@suse.cz>
14077         PR tree-optimization/70043
14078         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
14079         previous statement if we see a debug statement.
14081 2016-03-03  Richard Biener  <rguenther@suse.de>
14083         PR tree-optimization/55936
14084         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
14085         parameter and guard unsafe equivalence use.
14086         (vrp_evaluate_conditional_warnv_with_ops): Always use
14087         safe equivalences but not via the quadratic compare_names
14088         helper.
14090 2016-03-03  Michael Collison  <michael.collison@linaro.org>
14092         PR target/70014
14093         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
14094         for operand 1 to s_register_operand. Change predicate for operand
14095         2 to arm_not_immediate_operand.
14097 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
14099         * doc/tm.texi: Regenerated.
14101 2016-03-02  Richard Henderson  <rth@redhat.com>
14103         PR rtl-opt/67145
14104         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
14105         simplification when all args are positive non-fixed registers.
14107 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14109         * target.def (lra_p): Specify that new ports should use LRA.
14111 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14113         PR libgomp/69555
14114         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
14115         gimplify_type_sizes the type they refer to.
14116         (omp_notice_variable): Handle reference vars to VLAs.
14117         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
14118         reference to VLA decls in the second pass instead of first pass.
14120 2016-03-02  Tom de Vries  <tom@codesourcery.com>
14122         PR tree-optimization/68659
14123         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
14124         new_expr == NULL_TREE.
14125         (get_new_name): Handle ADDR_EXPR.
14127 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
14129         PR rtl-optimization/69052
14130         * loop-invariant.c (canonicalize_address): New function.
14131         (inv_can_prop_to_addr_use): Check validity of address expression
14132         which is canonicalized by above function.
14134 2016-03-02  Alan Modra  <amodra@gmail.com>
14136         PR ipa/69990
14137         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
14138         larger alignment.
14140 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14142         PR target/70028
14143         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
14144         (*movhi_internal): Put mask moves from and to memory separately
14145         from moves from/to GPRs.
14147 2016-03-02  Richard Biener  <rguenther@suse.de>
14149         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
14150         GENERIC expressions in GIMPLE.
14152 2016-03-02  Richard Biener  <rguenther@suse.de>
14154         * config/i386/i386.c (type_natural_mode): Fix typo.
14156 2016-03-02  Nick Clifton  <nickc@redhat.com>
14158         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
14160 2016-03-02  Richard Biener  <rguenther@suse.de>
14161             Uros Bizjak  <ubizjak@gmail.com>
14163         PR target/67278
14164         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
14166 2016-03-02  Richard Biener  <rguenther@suse.de>
14168         PR middle-end/67278
14169         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
14171 2016-03-02  Marek Polacek  <polacek@redhat.com>
14173         PR c/67854
14174         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
14175         "is promoted to" warning.
14177 2016-03-01  DJ Delorie  <dj@redhat.com>
14179         * config.gcc: Deprecate mep-*.
14181 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
14183         PR middle-end/70025
14184         * lra-constraints.c (regno_val_use_in): New.
14185         (match_reload): Use it instead of regno_use_in.
14187 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14189         PR rtl-optimization/70007
14190         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
14191         references present in REG_EQUAL notes attached to non-SET patterns.
14193 2016-03-01  Jeff Law  <law@redhat.com>
14195         PR tree-optimization/69196
14196         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14197         Appropriately clamp the number of statements to copy when the
14198         thread path does not traverse a loop backedge.
14200         PR tree-optimization/69196
14201         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14202         Do count some PHIs in the thread path against the insn count.  Decrease
14203         final statement count by one as the control statement in the last
14204         block will get removed.  Remove special cased code for handling PHIs
14205         in the last block.
14207 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
14209         PR target/70027
14210         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
14211         asm dialect alternatives to explicit GOTPCREL calls.
14213 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14215         PR ada/70017
14216         * ira.c (do_reload): Issue warning for generic stack checking here...
14217         * reload1.c (reload): ...instead of here and streamline it.
14219 2016-03-01  Nick Clifton  <nickc@redhat.com>
14221         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
14223 2016-03-01  Richard Biener  <rguenther@suse.de>
14225         PR tree-optimization/69983
14226         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
14227         types and fall back to operand_equal_p.
14229 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14231         Revert
14232         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14234         * config/s390/constraints.md ("jm8"): New constraint.
14235         * config/s390/predicates.md ("const_int_8bitset_operand"): New
14236         predicate.
14237         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
14238         into ...
14239         ("*setmem_long<setmem_and>"): New pattern.
14240         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
14241         into ...
14242         ("*setmem_long_31z<setmem_and>"): New pattern.
14243         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
14244         New substitution rules with the required attributes.
14247 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14249         Revert
14250         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14252         * gensupport.c (process_substs_on_one_elem): Split loop to
14253         complete mark_operands_used_in_match_dup on all expressions in the
14254         vector first.
14255         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14256         and remove function.
14258 2016-03-01  Richard Biener  <rguenther@suse.de>
14260         PR middle-end/70022
14261         * fold-const.c (fold_indirect_ref_1): Fix range checking for
14262         vector BIT_FIELD_REF extract.
14264 2016-03-01  Richard Biener  <rguenther@suse.de>
14266         PR tree-optimization/69994
14267         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
14269 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14271         PR tree-optimization/69956
14272         * tree-vect-stmts.c (supportable_widening_operation): Support
14273         multi-step conversion of boolean vectors.
14274         (supportable_narrowing_operation): Likewise.
14276 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14278         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14279         anymore.
14281 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14283         * config/s390/subst.md (DSI_VI): New mode iterator.
14284         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14285         * config/s390/vector.md ("vec_set<mode>"): Move expander before
14286         the insn definition.
14287         ("*vec_set<mode>"): Change predicate and add alternative to
14288         support only either register or const_int operands as element
14289         selector.
14290         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14291         operands.
14292         ("vec_extract<mode>"): New expander.
14293         ("*vec_extract<mode>"): New insn definition supporting reg and
14294         const_int element selectors.
14295         ("*vec_extract<mode>_plus"): New insn definition supporting
14296         reg+const_int element selectors.
14297         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14298         following expander+insn definition.
14299         ("<vec_shifts_name><mode>3"): New expander.
14300         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14302 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14304         * config/s390/s390.md ("*tabort_1"): Change predicate to
14305         nonmemory_operand.  Add a second alternative to cover
14306         register as well as const int operands.
14307         ("*tabort_1_plus"): New pattern definition.
14309 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14311         * config/s390/s390.md ("*ashrdi3_cc_31")
14312         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14313         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14314         Merge insn definitions into ...
14315         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14316         New pattern definition.
14317         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14318         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14319         ("*ashr<mode>3_and"): Merge insn definitions into ...
14320         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14321         New pattern definition.
14322         * config/s390/subst.md ("addr_style_op_cc_subst")
14323         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14324         substitutions patterns plus attributes.
14325         Add ashiftrt to SUBST iterator.
14327 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14329         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14330         op2 to nonmemory_operand.
14331         ("*<shift>di3_31", "*<shift>di3_31_and"):
14332         Merge into single pattern definition ...
14333         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14334         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14335         pattern definition ...
14336         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14337         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14338         iterator.
14340 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14342         * config/s390/predicates.md (const_int_6bitset_operand): New
14343         predicate.
14344         * config/s390/s390.md: Include subst.md.
14345         ("rotl<mode>3"): New expander.
14346         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14347         ...
14348         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14349         * config/s390/subst.md: New file.
14351 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14353         * config/s390/s390.md ("op_type", "atype", "length" attributes):
14354         Remove RRR type.  It doesn't really exist.
14355         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14356         attributes.
14357         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14358         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14359         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14360         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14361         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14362         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14363         `enabled' attribute.
14365 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14367         * gensupport.c (process_substs_on_one_elem): Split loop to
14368         complete mark_operands_used_in_match_dup on all expressions in the
14369         vector first.
14370         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14371         and remove function.
14373 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14375         PR target/69706
14376         * config/sparc/sparc.c (NWORDS_UP): Rename to...
14377         (CEIL_NWORDS): ...this.  Use CEIL macro.
14378         (compute_fp_layout): Adjust to above renaming.
14379         (function_arg_union_value): Likewise.
14380         (sparc_arg_partial_bytes): Likewise.
14381         (sparc_function_arg_advance): Likewise.
14383 2016-02-29  Jeff Law  <law@redhat.com>
14385         PR tree-optimization/70005
14386         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14387         where an object with a boolean range is compared against a value
14388         outside [0..1].
14390         PR tree-optimization/69999
14391         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14392         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14393         loop cleanups.
14395 2016-02-29  Richard Biener  <rguenther@suse.de>
14397         PR tree-optimization/69994
14398         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14399         (get_unary_op): Look through nop conversions.
14400         (ops_equal_values_p): New function, look for equality diregarding
14401         nop conversions.
14402         (eliminate_plus_minus_pair): Use ops_equal_values_p
14403         (repropagate_negates): Do not use get_unary_op here.
14405 2016-02-29  Martin Liska  <mliska@suse.cz>
14407         * system.h: Poison ENABLE_CHECKING macro.
14409 2016-02-29  Martin Liska  <mliska@suse.cz>
14411         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14412         is presented in dump flags.
14413         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14414         (hsa_regalloc): Likewise.
14416 2016-02-19  Richard Biener  <rguenther@suse.de>
14418         PR tree-optimization/69980
14419         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14420         permutation of those we need to keep.
14422 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14424         PR target/69706
14425         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14426         (NWORDS_UP): ...this
14427         (init_cumulative_args): Minor tweaks.
14428         (sparc_promote_function_mode): Likewise.
14429         (scan_record_type): Delete.
14430         (traverse_record_type): New function template.
14431         (classify_data_t): New structure type.
14432         (classify_registers): New inline function.
14433         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14434         exhausted.  Instantiate traverse_record_type on classify_registers and
14435         deal with the case of a structure passed in slot #15 with no FP field
14436         in the first word.
14437         (assign_data_t): New structure type.
14438         (compute_int_layout): New static function.
14439         (compute_fp_layout): Likewise.
14440         (count_registers): New inline function.
14441         (assign_int_registers): New static function.
14442         (assign_fp_registers): Likewise.
14443         (assign_registers): New inline function.
14444         (function_arg_record_value_1): Delete.
14445         (function_arg_record_value_2): Likewise.
14446         (function_arg_record_value_3): Likewise.
14447         (function_arg_record_value): Adjust to above changes.  Instantiate
14448         traverse_record_type on count_registers to first count the number of
14449         registers to be used and then on assign_registers to assign them.
14450         (function_arg_union_value): Adjust to above renaming.
14451         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
14452         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
14453         case of a structure passed in slot #15
14454         (sparc_function_arg_advance): Likewise.
14455         (function_arg_padding): Minor tweak.
14457 2016-02-29  Richard Biener  <rguenther@suse.de>
14459         PR tree-optimization/69720
14460         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14461         the adjustment_def path for possibly vectorized defs.
14462         (vect_create_epilog_for_reduction): Handle vectorized initial
14463         defs properly.
14465 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
14467         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14469 2016-02-27  Jeff Law  <law@redhat.com>
14471         Revert
14472         2016-02-26  Richard Biener  <rguenther@suse.de>
14473                     Jeff Law  <law@redhat.com>
14475         PR tree-optimization/69740
14476         * cfghooks.c (remove_edge): Request loop fixups if we delete
14477         an edge that might turn an irreducible loop into a natural
14478         loop.
14480 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
14482         PR rtl-optimization/69896
14483         * tree-vect-generic.c (get_compute_type): Avoid single element
14484         vector types.
14486 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
14488         Rename the AArch64 tuning option and related functions to enable the
14489         Newton series for the reciprocal square root to reflect its
14490         approximative characteristic.
14492         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14493         function to "aarch64_emit_approx_rsqrt".
14494         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14495         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14496         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14497         (xgene1_tunings): Likewise.
14498         (use_rsqrt_p): Likewise.
14499         (aarch64_emit_swrsqrt): Use new function name.
14500         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14501         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14502         text explaining this option.
14503         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14505 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14507         PR target/69969
14508         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14509         complain about -mallow-movmisalign without -mvsx if
14510         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14512 2016-02-26  Joel Sherrill  <joel@rtems.org>
14514         * config.gcc: Add x86_64-*-rtems*.
14515         * config/i386/rtems-64.h: New file.
14517 2016-02-26  Joel Sherrill  <joel@rtems.org>
14519         * config.gcc: Add aarch64-*-rtems*.
14520         * config/aarch64/rtems.h: New file.
14522 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
14524         PR target/69946
14525         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14526         shift amount using %h.  Add comment.
14528 2016-02-26  Richard Biener  <rguenther@suse.de>
14529             Jeff Law  <law@redhat.com>
14531         PR tree-optimization/69740
14532         * cfghooks.c (remove_edge): Request loop fixups if we delete
14533         an edge that might turn an irreducible loop into a natural
14534         loop.
14536 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14538         PR middle-end/69920
14539         * tree-sra.c (sra_modify_assign): Do not remove loads of
14540         uninitialized aggregates to SSA_NAMEs.
14542 2016-02-26  Richard Henderson  <rth@redhat.com>
14544         PR target/69709
14545         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14546         pseudo in case the target rtx matches the source of the left
14547         shift.
14549 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14551         PR hsa/69568
14552         * hsa.h (hsa_type_packed_p): Declare.
14553         * hsa.c (hsa_type_packed_p): New function.
14554         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14555         loads.
14556         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14557         * hsa-brig.c (emit_basic_insn): Likewise.
14559 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14561         pr hsa/69674
14562         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14563         pointers.
14564         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14566 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14568         * hsa.h (is_a_helper): New overload for hsa_op_immed for
14569         hsa_op_with_type operands.
14570         (hsa_unsigned_type_for_type): Declare.
14571         * hsa.c (hsa_unsigned_type_for_type): New function.
14572         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14573         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14574         the finalizer.  Do not emit extra move.
14576 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14578         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14579         atomic operations in private segment.
14581 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14583         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14584         statements to wi->info.  Also disallow omp simd constructs.
14585         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14586         for not gridifying.  Dump special string for omp_for.
14588 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14590         PR target/69245
14591         * config/aarch64/aarch64.c (aarch64_set_current_function):
14592         Save/restore target globals when switching to
14593         target_option_default_node.
14595 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14597         PR target/69613
14598         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14599         Return 0 if !SHIFT_COUNT_TRUNCATED.
14601 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14602             Eric Botcazou  <ebotcazou@adacore.com>
14604         PR rtl-optimization/69891
14605         * dse.c (scan_insn): If we can't figure out memset arguments
14606         or they are non-constant, call clear_rhs_from_active_local_stores.
14608 2016-02-26  Martin Liska  <mliska@suse.cz>
14610         * doc/extend.texi: Mention clog10, clog10f an clog10l
14611         in Builtins section.
14613 2016-02-26  Martin Liska  <mliska@suse.cz>
14615         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14616         CHECKING_P.
14617         (resolve_args_picking_1): Likewise.
14618         * dwarf2out.h (struct GTY): Likewise.
14620 2016-02-26  Martin Liska  <mliska@suse.cz>
14622         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14623         with flag_checking.
14624         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14626 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14627             Martin Liska  <mliska@suse.cz>
14629         * doc/install.texi: Mention --enable-valgrind-annotations.
14631 2016-02-26  Richard Biener  <rguenther@suse.de>
14633         PR tree-optimization/69551
14634         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14635         looking through aliases adjust DECL_PT_UID to refer to the
14636         ultimate alias target.
14638 2016-02-25  Martin Liska  <mliska@suse.cz>
14640         PR middle-end/69919
14641         * alloc-pool.c (after_memory_report): New variable.
14642         * alloc-pool.h (base_pool_allocator ::release): Do not use
14643         the infrastructure if after_memory_report.
14644         * toplev.c (toplev::main): Mark after memory report.
14646 2016-02-25  Richard Biener  <rguenther@suse.de>
14648         PR tree-optimization/48795
14649         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14651 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
14653         PR driver/68463
14654         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
14655         offloading is enabled and -fopenacc or -fopenmp is specified.
14656         (CRTOFFLOADEND): Likewise.
14657         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14658         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14659         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14660         (offload_objects_file_name): New static var.
14661         (tool_cleanup): Remove offload_objects_file_name file.
14662         (find_offloadbeginend): Replace with ...
14663         (find_crtoffloadtable): ... this.
14664         (run_gcc): Remove offload_argc and offload_argv.
14665         Get offload_objects_file_name from -foffload-objects=... option.
14666         Read names of object files with offload from this file, pass them to
14667         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
14668         don't pass offloadbegin and offloadend to the linker.  Don't pass
14669         offload non-LTO files to the linker, because now they're not claimed.
14671 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
14673         PR ipa/69630
14674         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14675         on builtin_unreachable.
14677 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
14679         PR rtl-optimization/69896
14680         * regcprop.c: Include cfgrtl.h.
14681         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14682         than remembered mode, either delete it (if noop_move_p), or
14683         treat like copy_p but not noop_p instruction.
14685 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14687         PR debug/69705
14688         * dwarf2out.c (gen_variable_die): Work around buggy LTO
14689         - allow NULL decl for Fortran DW_TAG_common_block variables.
14691 2016-02-24  Jason Merrill  <jason@redhat.com>
14693         * common.opt (flifetime-dse): Add -flifetime-dse=1.
14695 2016-02-24  Richard Biener  <rguenther@suse.de>
14696             Jakub Jelinek  <jakub@redhat.com>
14698         PR middle-end/69760
14699         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14700         conditionally executed ops to well-defined overflow behavior.
14702 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14704         PR middle-end/69915
14705         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14706         elements.
14708 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14710         PR rtl-optimization/69886
14711         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14712         argument.  Use it when checking validity of set instructions.
14713         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14714         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14715         callsite.
14716         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14717         * store-motion.c (find_moveable_store): Update
14718         can_assign_to_reg_without_clobbers_p callsite.
14720 2016-02-24  Richard Biener  <rguenther@suse.de>
14722         PR middle-end/68963
14723         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14724         bogus check.
14725         (record_nonwrapping_iv): Do not fall back to the low/high bound
14726         for non-constant IV bases if the stmt is not always executed.
14728 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14730         * config/arm/arm-cores.def (cortex-a32): New entry.
14731         * config/arm/arm-tables.opt: Regenerate.
14732         * config/arm/arm-tune.md: Regenerate.
14733         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14734         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14735         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14736         for -mcpu and -mtune.
14738 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14740         PR target/69875
14741         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14742         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14743         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14744         (atomic_loaddi_1): Delete.
14745         (atomic_loaddi): Rewrite expander using the above changes.
14747 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14749         PR c/69918
14750         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14751         2 to 3.
14753 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14754             Richard Biener  <rguenth@suse.de>
14756         PR middle-end/69909
14757         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14758         set_mem_attributes if tem is SSA_NAME which got expanded
14759         as a MEM.
14761 2016-02-24  Richard Biener  <rguenther@suse.de>
14763         PR tree-optimization/69907
14764         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14765         end of permutations for BB vectorization.
14767 2016-02-24  Christian Bruel  <christian.bruel@st.com>
14769         * config/arm/arm-c.c (arm_option_override): Initialize
14770         target_option_current_node.
14771         * config/arm/arm.c (arm_pragma_target_parse): Replace
14772         build_target_option_node call by target_option_current_node.
14773         Set target_option_current_node.
14774         Fix comments.
14776 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
14778         PR target/69810
14779         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14780         define_insn_and_split to define_insn.
14781         (zero_extendqi<mode>2_dot2): Same.
14782         (extendqi<mode>2_dot): Same.
14783         (extendqi<mode>2_dot2): Same.
14785 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14787         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14788         and add bypass for AES{D,E} and AESMC pairs.
14789         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14790         and AESMC pairs.
14792 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14794         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14795         series for reciprocal square root in Exynos M1.
14797 2016-02-23  Martin Sebor  <msebor@redhat.com>
14799         PR c/69759
14800         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14801         __builtin_alloca_with_align.
14803 2016-02-23  Richard Henderson  <rth@redhat.com>
14805         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14806         (ix86_register_pragmas): Remove __seg_tls.
14807         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14808         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14809         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14810         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14811         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14812         * doc/extend.texi (__seg_tls): Remove item.
14814 2016-02-23  Richard Biener  <rguenther@suse.de>
14816         * alloc-pool.h (struct allocation_object): Make id member
14817         conditional on CHECKING_P again.
14818         (get_instance): Adjust.
14819         (base_pool_allocator): Likewise.
14821 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
14823         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14824         (parallelize_loops): In OpenACC kernels mode, set n_threads to
14825         zero.
14826         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14827         flag_openacc.
14828         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14830 2016-02-23  Richard Biener  <rguenther@suse.de>
14832         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14833         * bitmap.h (struct bitmap_usage): Likewise.
14834         (bitmap_move): Declare.
14835         * bitmap.c (register_overhead): Take size_t argument.
14836         (bitmap_move): New function.
14837         * df-problems.c (df_rd_transfer_function): Use bitmap_move
14838         to properly account overhead.
14839         * tree.c (free_node): Use tree_size.
14841 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
14843         PR c++/69902
14844         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14845         when inverting comparison.
14847         PR c/69900
14848         * common.opt (Wunreachable-code): Add Warning flag.
14850 2016-02-23  Mark Wielaard  <mjw@redhat.com>
14851             Jakub Jelinek  <jakub@redhat.com>
14853         PR c/69911
14854         * cgraphunit.c (check_global_declaration): Check main_input_filename
14855         and DECL_SOURCE_FILE are not NULL.
14857 2016-02-23  Martin Jambor  <mjambor@suse.cz>
14859         PR tree-optimization/69666
14860         * tree-sra.c (sra_modify_assign): Do not attempt to create
14861         default_def replacements for unscalarizable regions.
14863 2016-02-20  Mark Wielaard  <mjw@redhat.com>
14865         PR c/28901
14866         * cgraphunit.c (check_global_declaration): Check level of
14867         warn_unused_const_variable and main_input_filename.
14868         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14869         (-Wunused-variable): For C implies -Wunused-const-variable=1.
14870         (-Wunused-const-variable): Explain levels 1 and 2.
14872 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14874         PR target/69888
14875         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14876         identical arguments.  Formatting and spelling fixes.
14878         PR target/69885
14879         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14880         be specified.
14882         PR target/69894
14883         PR target/69895
14884         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14885         and m68k-devices.def.
14886         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14887         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14889 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
14891         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14892         and HImode registers.
14894 2016-02-22  Richard Biener  <rguenther@suse.de>
14896         PR tree-optimization/69882
14897         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14898         preserve permutations present because of gaps.
14899         (vect_supported_load_permutation_p): Always continue checking
14900         permutations after vect_attempt_slp_rearrange_stmts.
14902 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
14904         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14905         min_profitable_estimate, rather than min_profitable_iters.
14907 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14909         PR target/69885
14910         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14911         SImode for last match_operand.
14913 2016-02-22  Martin Liska  <mliska@suse.cz>
14915         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14916         return bitsize - 1 as the return value.
14918 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
14920         PR target/69806
14921         PR target/54089
14922         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14923         Handle negative shift counts.
14924         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14925         force_reg on the shift constant.
14926         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
14927         (lshrsi3_d): Handle negative shift counts.
14929 2016-02-22  Richard Biener  <rguenther@suse.de>
14930             Tom de Vries  <tom@codesourcery.com>
14932         * graph.c: Include dumpfile.h.
14933         (print_graph_cfg): Split into three overloads.
14934         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14936 2016-02-22  Tom de Vries  <tom@codesourcery.com>
14938         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14939         dump-fn.
14941 2016-02-22  Richard Biener  <rguenther@suse.de>
14943         PR ipa/37448
14944         * ipa-inline-transform.c (inline_call): When not updating
14945         overall summaries adjust self size by the growth estimate.
14946         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14947         hash-set, do not update overall summaries here.  Renamed from ...
14948         (inline_to_all_callers): ... this which is now wrapping the
14949         above and performing delayed overall summary update.
14950         (early_inline_small_functions): Delay updating of the overall
14951         summary.
14953 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14955         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14956         variable.
14958 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14960         PR driver/69805
14961         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14962         :%* in %:gt() argument.
14963         (greater_than_spec_func): Adjust for expecting only numbers,
14964         if there are more than two numbers, compare the last two.
14966 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
14968         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14969         -Wnarrowing with -std.
14971 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14973         PR c++/69851
14974         * expr.c (store_field): Don't use bit-field path if exp is
14975         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14976         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14977         and the assignment can be performed by bitwise copy.  Formatting
14978         fix.
14980         PR middle-end/69838
14981         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14982         call copy_reg_eh_region_note_forward on before and/or after sequences
14983         and remove note from insn if it no longer can throw.
14985         PR target/69820
14986         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14987         if TARGET_AVX512BW.
14989 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14991         * config/s390/vector.md: Add missing commutative operand markers
14992         to the patterns which qualify for one.
14993         * config/s390/vx-builtins.md: Likewise.
14995 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14997         * config/s390/vector.md (VI, VI_QHS): Add single element vector
14998         types to mode iterators.
14999         (vec_double): ... and mode attribute.
15000         * config/s390/vx-builtins.md (non_vec_int): Likewise.
15002 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15004         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
15005         Change the predicate of op2 from nonimmediate to general and let
15006         reload fix it if necessary.
15008 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15010         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
15012 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15014         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
15015         mode.
15017 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15019         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
15020         * config/s390/s390.c (s390_expand_vec_movstr): New function.
15021         * config/s390/s390.md ("movstr<P:mode>"): Call
15022         s390_expand_vec_movstr.
15024 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15026         * config/s390/s390.md: Add missing output modifier for operand 1
15027         to print it as address properly.
15029 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15031         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
15032         * config/s390/2964.md: New file.
15033         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
15034         of insn grouping attributes depending on the CPU level.
15035         (s390_get_unit_mask): New function.
15036         (s390_sched_score): Remove the OOO from the scheduling macros.
15037         Add loop to calculate a score for the instruction mix.
15038         (s390_sched_reorder): Likewise plus improve debug output.
15039         (s390_sched_variable_issue): Rename macros as above.  Calculate
15040         the unit distances after actually scheduling an insn.  Improve
15041         debug output.
15042         (s390_sched_init): Clear last_scheduled_unit_distance array.
15043         * config/s390/s390.md: Include 2964.md.
15045 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15047         PR target/69671
15048         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
15049         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
15050         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
15051         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
15052         *avx512f_<code>v8div16qi2_mask_1): New insns.
15054 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15056         PR target/68404
15057         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
15058         2016-02-09 change.
15060         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
15061         earlyclobber from target.  Use wF constraint for fused memory
15062         address.
15063         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
15065 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15066             Martin Liska  <mliska@suse.cz>
15068         PR sanitizer/69863
15069         * cfgexpand.c (asan_sanitize_stack_p): New function.
15070         (partition_stack_vars): Use the function.
15071         (expand_stack_vars): Likewise.
15072         (defer_stack_allocation): Likewise.
15073         (expand_used_vars): Likewise.
15075 2016-02-18  Richard Biener  <rguenther@suse.de>
15077         PR middle-end/69553
15078         * fold-const.c (operand_equal_p): Properly compare offsets for
15079         IMAGPART_EXPR and ARRAY_REF.
15081 2016-02-18  Nick Clifton  <nickc@redhat.com>
15083         PR target/62254
15084         PR target/69610
15085         * config/arm/arm.c (arm_option_override_internal): Disable
15086         interworking if the target does not support thumb instructions.
15087         (arm_reload_in_hi): Handle the case where a register to register
15088         move needs reloading because there is no simple pattern to handle
15089         it.
15090         (arm_reload_out_hi): Likewise.
15092 2016-02-18  Richard Biener  <rguenther@suse.de>
15094         PR middle-end/69854
15095         * match.pd: Don't use fold_binary or fold_unary for folding
15096         constants.
15098 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
15100         PR c++/69850
15101         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
15102         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
15103         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
15104         warn on gimple_no_warning_p statements.
15106 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
15108         * doc/extend.texi (C++ Attributes): Correct description of
15109         warn_unused type attribute.
15111 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15113         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
15114         correct instruction.
15116 2016-02-17  Richard Biener  <rguenther@suse.de>
15118         PR rtl-optimization/69609
15119         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
15120         (find_traces_1_round): When ending a trace update cached priority
15121         of successors.
15122         (bb_to_key): Use cached priority when available.
15123         (copy_bb): Initialize cached priority.
15124         (reorder_basic_blocks_software_trace_cache): Likewise.
15126 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15128         PR target/69161
15129         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
15130         New predicate.
15131         (aarch64_comparison_operator): Break overly long line into two.
15132         (aarch64_comparison_operation): Likewise.
15133         * config/aarch64/aarch64.md (cstorecc4): Use
15134         aarch64_comparison_operator_mode instead of
15135         aarch64_comparison_operator.
15136         (cstore<mode>4): Likewise.
15137         (aarch64_cstore<mode>): Likewise.
15138         (*cstoresi_insn_uxtw): Likewise.
15139         (cstore<mode>_neg): Likewise.
15140         (*cstoresi_neg_uxtw): Likewise.
15142 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15144         PR target/69161
15145         * config/arm/predicates.md (arm_comparison_operator_mode):
15146         New predicate.
15147         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
15148         instead of arm_comparison_operator.
15149         (*mov_negscc): Likewise.
15150         (*mov_notscc): Likewise.
15151         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
15152         (*thumb2_mov_negscc): Likewise.
15153         (*thumb2_mov_negscc_strict_it): Likewise.
15154         (*thumb2_mov_notscc): Likewise.
15155         (*thumb2_mov_notscc_strict_it): Likewise.
15157 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
15159         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
15160         Add missing return.
15162 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
15164         * config/visium/visium.c (machine_libfunc_index): New enum.
15165         (machine_libfuncs): New structure.
15166         (visium_libfuncs): New static variable.
15167         (TARGET_INIT_LIBFUNCS): Define to...
15168         (visium_init_libfuncs): ...this.  New function.
15169         (expand_block_move_4): Use the appropriate libfunc.
15170         (expand_block_move_2): Likewise.
15171         (expand_block_move_1): Likewise.
15172         (expand_block_set_4): Likewise.
15173         (expand_block_set_2): Likewise.
15174         (expand_block_set_1): Likewise.
15175         (visium_trampoline_init): Likewise.
15177 2016-02-17  Nick Clifton  <nickc@redhat.com>
15179         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
15180         TI's devices.csv file as of March 2016.
15182 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15184         PR Target/48344
15185         * opts-global.c (handle_common_deferred_options): Introduce and
15186         initialize two global variables to remember command-line options
15187         specifying a stack-limiting register.
15188         * opts.h: Add extern declarations of the two new global variables.
15189         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
15190         variable based on the values of the two new global variables.
15192 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15194         PR c/69835
15195         * common.opt (Wnonnull-compare): New warning.
15196         * doc/invoke.texi (-Wnonnull): Remove text about comparison
15197         of arguments against NULL.
15198         (-Wnonnull-compare): Document.
15199         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
15200         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
15201         * passes.def (pass_warn_nonnull_compare): Add.
15202         * gimple-ssa-nonnull-compare.c: New file.
15204 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15206         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
15207         AARCH64_EXTRA_TUNE_RECIP_SQRT.
15209 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15211         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
15212         reciprocal sqrt for -mlow-precision-recip-sqrt.
15214 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15215             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15217         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
15218         always use lane loads to construct non-constant vectors.
15220 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15222         * config/aarch64/aarch64.md
15223         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
15224         constraints for operand 3.
15225         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
15227 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15228             Richard Biener  <rguenther@suse.de>
15230         PR tree-optimization/69820
15231         * tree-vect-patterns.c (type_conversion_p): Return false if
15232         *orig_type is unsigned single precision or boolean.
15233         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
15234         Formatting fix.
15236 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15238         PR rtl-optimization/69764
15239         PR rtl-optimization/69771
15240         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
15241         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
15243 2016-02-16  Richard Biener  <rguenther@suse.de>
15245         PR tree-optimization/69776
15246         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
15247         sets from caller.
15248         (indirect_refs_may_alias_p): Likewise.
15249         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
15250         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
15251         according to tbaa_p.
15252         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
15253         (optimize_stmt): For redundant store discovery do not allow tbaa.
15255 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
15257         PR tree-optimization/69714
15258         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
15259         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
15261 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
15263         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
15264         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
15265         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
15266         * config/arc/arc.c (arc_init): Check FPU options.
15267         (get_arc_condition_code): Handle new CC_FPU* modes.
15268         (arc_select_cc_mode): Likewise.
15269         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
15270         register pair only. Allow access for ARCv2 accumulator.
15271         (gen_compare_reg): Whenever we have FPU support use FPU compare
15272         instructions.
15273         (arc_reorg): Don't generate brcc insns when FPU compare
15274         instructions are involved.
15275         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15276         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15277         floating point emulation.
15278         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15279         (REVERSE_CONDITION): Add new CC_FPU* modes.
15280         (TARGET_FP_SP_BASE): Define.
15281         (TARGET_FP_DP_BASE): Likewise.
15282         (TARGET_FP_SP_FUSED): Likewise.
15283         (TARGET_FP_DP_FUSED): Likewise.
15284         (TARGET_FP_SP_CONV): Likewise.
15285         (TARGET_FP_DP_CONV): Likewise.
15286         (TARGET_FP_SP_SQRT): Likewise.
15287         (TARGET_FP_DP_SQRT): Likewise.
15288         (TARGET_FP_DP_AX): Likewise.
15289         * config/arc/arc.md (ARCV2_ACC): New constant.
15290         (type): New fpu type attribute.
15291         (SDF): Conditional iterator.
15292         (cstore<mode>, cbranch<mode>): Change expand condition.
15293         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15294         handles FPU/FPX cases as well.
15295         * config/arc/arc.opt (mfpu): New option.
15296         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15297         Renamed.
15298         (adddf3, muldf3, subdf3): Removed.
15299         * config/arc/predicates.md (proper_comparison_operator): Recognize
15300         CC_FPU* modes.
15301         * config/arc/fpu.md: New file.
15302         * doc/invoke.texi (ARC Options): Document mfpu option.
15304 2016-02-16  Richard Biener  <rguenther@suse.de>
15306         PR rtl-optimization/69291
15307         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15308         noce_operand_ok check.
15310 2016-02-16  Tom de Vries  <tom@codesourcery.com>
15312         PR lto/67709
15313         * omp-low.c (simd_clone_create): Remove call to
15314         symtab->call_cgraph_insertion_hooks.
15316 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15318         PR tree-optimization/69802
15319         * tree-ssa-reassoc.c (update_range_test): If op is
15320         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15321         op == 1 test of precision 1 integral op, otherwise handle
15322         that case as op itself.  Fix up formatting.
15323         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15324         up formatting.
15326 2016-02-16  Richard Biener  <rguenther@suse.de>
15328         PR tree-optimization/69586
15329         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15330         types for conversion sources.
15332 2016-02-16  Richard Biener  <rguenther@suse.de>
15334         PR middle-end/69801
15335         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15336         mask OEP_ADDRESS_OF.
15338 2016-02-16  Alan Modra  <amodra@gmail.com>
15340         PR target/68973
15341         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15342         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15343         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15344         (p8_mtvsrwz): New.
15345         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15346         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15347         (p8_fmrgow_<mode>): Likewise.
15348         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
15349         changes.
15350         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15351         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15352         to use movdi_internal64.  Remove op0_di.
15353         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15355 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
15357         Add support for the FCCMP insn types
15359         * config/aarch64/aarch64.md (fccmp): Change insn type.
15360         (fccmpe): Likewise.
15361         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15362         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15363         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15364         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15365         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15366         * config/arm/types.md (fccmps): Add new insn type.
15367         (fccmpd): Likewise.
15369 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15371         * alias.c (get_alias_set): Fix a typo in comment.
15373 2016-02-15  Richard Biener  <rguenther@suse.de>
15375         PR tree-optimization/69595
15376         * match.pd: Complete range test simplification to true.
15378 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
15380         PR rtl-optimization/69648
15381         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15382         pic_offset_table_rtx.
15384         PR rtl-optimization/69752
15385         * ira.c (update_equiv_regs): When looking for more than a single SET,
15386         also take other side effects into account.
15388 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15390         * config/s390/s390.c (s390_function_profiler): Add a new sequence
15391         for z900+ CPUs in 31-bit mode.
15393 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15395         * common/config/s390/s390-common.c (s390_supports_split_stack):
15396         New function.
15397         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15398         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15399         * config/s390/s390.c (struct machine_function): New field
15400         split_stack_varargs_pointer.
15401         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15402         in s390_emit_prologue.
15403         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15404         vararg pointer.
15405         (morestack_ref): New global.
15406         (SPLIT_STACK_AVAILABLE): New macro.
15407         (s390_expand_split_stack_prologue): New function.
15408         (s390_live_on_entry): New function.
15409         (s390_va_start): Use split-stack vararg pointer if appropriate.
15410         (s390_asm_file_end): Emit the split-stack note sections.
15411         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15412         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15413         (UNSPECV_SPLIT_STACK_CALL): New unspec.
15414         (UNSPECV_SPLIT_STACK_DATA): New unspec.
15415         (split_stack_prologue): New expand.
15416         (split_stack_space_check): New expand.
15417         (split_stack_data): New insn.
15418         (split_stack_call): New expand.
15419         (split_stack_call_*): New insn.
15420         (split_stack_cond_call): New expand.
15421         (split_stack_cond_call_*): New insn.
15423 2016-02-15  Richard Biener  <rguenther@suse.de>
15425         PR tree-optimization/69783
15426         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15427         Add trivially correct cases.
15429 2016-02-15  Tom de Vries  <tom@codesourcery.com>
15431         PR lto/69655
15432         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15433         do_force_output.
15434         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15436 2016-02-15  Richard Biener  <rguenther@suse.de>
15438         PR tree-optimization/69776
15439         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15440         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15441         indicate whether we can use TBAA to disambiguate against stores.
15442         Use alias-set zero if not.
15443         (visit_reference_op_store): Do not use TBAA when looking up
15444         redundant stores.
15445         * tree-ssa-pre.c (compute_avail): Use TBAA here.
15446         (eliminate_dom_walker::before_dom_children): But not when looking
15447         up redundant stores.
15449 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
15451         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15453 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15455         *  config/i386/znver1.md
15456         (znver1_pop, znver1_pop_mem,
15457         znver1_load_imov_double_store,
15458         znver1_load_imov_direct_store,
15459         znver1_load_imov_direct_load,
15460         znver1_load_imov_double_load): Add new.
15461         (znver1_insn, znver1_insn_load): Add icmov type.
15462         (znver1_sseavx_fma,
15463         znver1_sseavx_fma_load,
15464         znver1_avx256_fma,
15465         znver1_avx256_fma_load): Fix pipe usage.
15467 2016-02-14  Alan Modra  <amodra@gmail.com>
15469         PR target/68973
15470         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15471         with an invalid hard reg, reload just the reg not the entire
15472         pre/post-inc/dec address expression.
15474 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15476         PR target/67260
15477         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15478         fixed R1_REG scratch reg.
15479         (sibcall_value_pcrel_fdpic): Likewise.
15481 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15483         PR target/67636
15484         PR target/64345
15485         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15487 2016-02-12  Walter Lee  <walt@tilera.com>
15489         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15490         * config/tilegx/t-tilegx: Likewise.
15492 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15494         PR other/69554
15495         * diagnostic-show-locus.c (struct line_span): New struct.
15496         (layout::get_first_line): Delete.
15497         (layout::get_last_line): Delete.
15498         (layout::get_num_line_spans): New member function.
15499         (layout::get_line_span): Likewise.
15500         (layout::print_heading_for_line_span_index_p): Likewise.
15501         (layout::get_expanded_location): Likewise.
15502         (layout::calculate_line_spans): Likewise.
15503         (layout::m_first_line): Delete.
15504         (layout::m_last_line): Delete.
15505         (layout::m_line_spans): New field.
15506         (layout::layout): Update comment.  Replace m_first_line and
15507         m_last_line with m_line_spans, replacing their initialization
15508         with a call to calculate_line_spans.
15509         (diagnostic_show_locus): When printing source lines and
15510         annotations, rather than looping over a single span
15511         of lines, instead loop over each line_span within
15512         the layout, with an inner loop over the lines within them.
15513         Call the context's start_span callback when changing line spans.
15514         * diagnostic.c (diagnostic_initialize): Initialize start_span.
15515         (diagnostic_build_prefix): Break out the building of the location
15516         part of the string into...
15517         (diagnostic_get_location_text): ...this new function, rewriting
15518         it from nested ternary expressions to a sequence of "if"
15519         statements.
15520         (default_diagnostic_start_span_fn): New function.
15521         * diagnostic.h (diagnostic_start_span_fn): New typedef.
15522         (diagnostic_context::start_span): New field.
15523         (default_diagnostic_start_span_fn): New prototype.
15525 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15527         PR driver/69779
15528         * gcc.c (driver::finalize): Fix cleanup of "specs".
15530 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15532         PR driver/69265
15533         PR driver/69453
15534         * gcc.c (driver::driver): Initialize m_option_suggestions.
15535         (driver::~driver): Clean up m_option_suggestions.
15536         (suggest_option): Convert to...
15537         (driver::suggest_option): ...this, and split out into
15538         driver::build_option_suggestions and find_closest_string.
15539         (driver::build_option_suggestions): New function, from
15540         first half of suggest_option.  Special-case
15541         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15542         the sanitizer_opts array.  For options of enum types, add the
15543         various enum values to the candidate strings.
15544         (driver::handle_unrecognized_options): Remove "const".
15545         * gcc.h (driver::handle_unrecognized_options): Likewise.
15546         (driver::build_option_suggestions): New decl.
15547         (driver::suggest_option): New decl.
15548         (driver::m_option_suggestions): New field.
15549         * opts-common.c (add_misspelling_candidates): New function.
15550         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15551         and make non-static.
15552         * opts.h (sanitizer_opts): New array decl.
15553         (add_misspelling_candidates): New function decl.
15554         * spellcheck.c (find_closest_string): New function.
15555         * spellcheck.h (find_closest_string): New function decl.
15557 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15559         PR rtl-optimization/69764
15560         PR rtl-optimization/69771
15561         * optabs.c (expand_binop_directly): For shift_optab_p, force
15562         convert_modes with VOIDmode if xop1 has VOIDmode.
15564 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
15566         PR target/69729
15567         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15568         to correctly determine instrumentation thunks.
15570 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15572         PR ipa/69241
15573         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15574         type by reference, force lhs on the call.
15576         PR ipa/68672
15577         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15578         Compute retval and retbnd early in all cases if split_part_return_p
15579         and return_bb is not EXIT.  Remove all clobber stmts and reset
15580         all debug stmts that refer to SSA_NAMEs defined in split part,
15581         except if it is retval, in that case replace the old retval with the
15582         lhs of the call to the split part.
15584 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15586         revert:
15587         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15589         PR middle-end/66726
15590         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15591         whose result is used in PHI.
15592         (maybe_optimize_range_tests): Likewise.
15593         (final_range_test_p): Likweise.
15595 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15597         PR middle-end/66726
15598         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15599         whose result is used in PHI.
15600         (maybe_optimize_range_tests): Likewise.
15601         (final_range_test_p): Likweise.
15603 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15605         * cgraph.c: Spelling fixes - behaviour -> behavior and
15606         neighbour -> neighbor.
15607         * target.def: Likewise.
15608         * sel-sched.c: Likewise.
15609         * config/mips/mips.c: Likewise.
15610         * config/arc/arc.md: Likewise.
15611         * config/arm/cortex-a57.md: Likewise.
15612         * config/arm/arm.c: Likewise.
15613         * config/arm/neon.md: Likewise.
15614         * config/arm/arm-c.c: Likewise.
15615         * config/vms/vms-c.c: Likewise.
15616         * config/s390/s390.c: Likewise.
15617         * config/i386/znver1.md: Likewise.
15618         * config/i386/i386.c: Likewise.
15619         * config/ia64/hpux-unix2003.h: Likewise.
15620         * config/msp430/msp430.md: Likewise.
15621         * config/rx/rx.c: Likewise.
15622         * config/rx/rx.md: Likewise.
15623         * config/aarch64/aarch64-simd.md: Likewise.
15624         * config/aarch64/aarch64.c: Likewise.
15625         * config/nvptx/nvptx.c: Likewise.
15626         * config/bfin/bfin.c: Likewise.
15627         * config/cris/cris.opt: Likewise.
15628         * config/rs6000/rs6000.c: Likewise.
15629         * target.h: Likewise.
15630         * spellcheck.c: Likewise.
15631         * ira-build.c: Likewise.
15632         * tree-inline.c: Likewise.
15633         * builtins.c: Likewise.
15634         * lra-constraints.c: Likewise.
15635         * explow.c: Likewise.
15636         * hwint.h: Likewise.
15637         * targhooks.c: Likewise.
15638         * tree-vect-data-refs.c: Likewise.
15639         * expr.c: Likewise.
15640         * doc/tm.texi: Likewise.
15641         * doc/extend.texi: Likewise.
15642         * doc/install.texi: Likewise.
15643         * doc/md.texi: Likewise.
15644         * tree-ssa-tail-merge.c: Likewise.
15645         * sched-int.h: Likewise.
15646         * match.pd: Likewise.
15647         * sched-ebb.c: Likewise.
15648         * target.def (omit_struct_return_reg): Likewise.
15649         * gimple-ssa-isolate-paths.c: Likewise.
15650         (find_implicit_erroneous_behaviour): Renamed to...
15651         (find_implicit_erroneous_behavior): ... this.
15652         (find_explicit_erroneous_behaviour): Renamed to...
15653         (find_explicit_erroneous_behavior): ... this.
15654         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15656 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
15658         PR rtl-optimization/64682
15659         PR rtl-optimization/69567
15660         PR rtl-optimization/69737
15661         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15662         in I2 as well, just lose it.
15664 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15666         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15667         New variable.
15668         (aarch64_last_printed_tune_string): Likewise.
15669         (aarch64_declare_function_name): Only output .arch assembler
15670         directive if it will be different from the previously output
15671         directive.  Same for .tune comment but only if -dA is set.
15672         (aarch64_start_file): New function.
15673         (TARGET_ASM_FILE_START): Define.
15675 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
15677         PR plugins/69758
15678         * Makefile.in (PLUGIN_HEADERS): Add params.list.
15680 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
15682         PR target/65313
15683         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15684         -Wmaybe-uninitialized warning.
15686 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
15688         PR target/69713
15689         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15691 2016-02-11  Richard Biener  <rguenther@suse.de>
15693         PR rtl-optimization/69291
15694         * ifcvt.c (noce_try_store_flag_constants): Do not allow
15695         subexpressions affected by changing the result.
15697 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15699         PR target/69148
15700         * lra-constraints.c (curr_insn_transform): Find in/out operands
15701         for secondary memory moves.  Update dups.
15703 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
15705         PR tree-optimization/69652
15706         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15707         to nested loop, did source re-formatting, skip debug statements,
15708         add check on statement with volatile operand, remove dead scalar
15709         statements.
15711 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
15712             Patrick Palka  <ppalka@gcc.gnu.org>
15714         PR ipa/69241
15715         PR c++/69649
15716         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15717         calls if the return type is TREE_ADDRESSABLE.
15718         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15719         * ipa-split.c (split_function): Fix doubled "we" in comment.
15720         Use void return type for the split part even if
15721         !split_point->split_part_set_retval.
15723 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
15725         PR tree-optimization/68021
15726         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15727         when computing the value of biv cand by itself.
15729 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15731         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15732         (cortexa57_tunings): Likewise.
15733         (cortexa72_tunings): Likewise.
15734         (arch_macro_fusion_pair_p): Add support for AES fusion.
15735         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15736         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15737         Allow virtual registers before reload so early scheduling works.
15738         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15739         correct latency and pipeline.
15740         (cortex_a57_crypto_complex): Likewise.
15741         (cortex_a57_crypto_xor): Likewise.
15742         (define_bypass): Add AES bypass.
15744 2016-02-10  Richard Biener  <rguenther@suse.de>
15746         PR tree-optimization/69726
15747         * passes.def: Add DCE pass before late uninit.
15748         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15749         really fixup if-conversions job.
15751 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15753         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15754         (arm_cortex_a57_tune): Likewise.
15755         (aarch_macro_fusion_pair_p): Add support for AES fusion.
15756         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15758 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
15760         * timevar.def (TV_PHASE_DBGINFO): Delete.
15761         (TV_PHASE_CHECK_DBGINFO): Likewise.
15762         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15764 2016-02-10  Richard Biener  <rguenther@suse.de>
15766         PR tree-optimization/69719
15767         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15768         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15770 2016-02-09  Andrew Pinski  <apinski@cavium.com>
15772         PR tree-opt/69282
15773         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15774         get_vcond_mask_icode returns false.
15776 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
15778         PR target/68404
15779         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15780         an ADDIS that adds a pointer to a large constant that sets the
15781         upper16 bits with a load operation.
15783 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15785         PR target/68532
15786         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15787         order.
15788         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15789         endian.
15790         (vzipq_s16): Likewise.
15791         (vzipq_s32): Likewise.
15792         (vzipq_f32): Likewise.
15793         (vzipq_u8): Likewise.
15794         (vzipq_u16): Likewise.
15795         (vzipq_u32): Likewise.
15796         (vzipq_p8): Likewise.
15797         (vzipq_p16): Likewise.
15799 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15801         PR target/68532
15802         * config/arm/arm.c (neon_endian_lane_map): New function.
15803         (neon_vector_pair_endian_lane_map): New function.
15804         (arm_evpc_neon_vuzp): Allow for big endian lane order.
15805         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15806         endian.
15807         (vuzpq_s16): Likewise.
15808         (vuzpq_s32): Likewise.
15809         (vuzpq_f32): Likewise.
15810         (vuzpq_u8): Likewise.
15811         (vuzpq_u16): Likewise.
15812         (vuzpq_u32): Likewise.
15813         (vuzpq_p8): Likewise.
15814         (vuzpq_p16): Likewise.
15816 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
15818         PR target/69634
15819         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15820         debug insns.
15822 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
15824         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15825         truncate const_int operand 1 to QImode.
15827 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
15829         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15830         corresponding to an abnormal edge.
15832 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15834         PR tree-optimization/69599
15835         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15836         function.
15837         (find_func_aliases_for_builtin_call, find_func_clobbers)
15838         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
15839         partition.
15841 2016-02-09  Richard Biener  <rguenther@suse.de>
15843         PR tree-optimization/69715
15844         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15845         LHS on calls as non-rewritable.
15847 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15849         PR lto/69707
15850         * lto-wrapper.c (append_diag_options): New function.
15851         (compile_offload_image): Call append_diag_options.
15853 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
15855         PR other/69722
15856         * doc/extend.texi (Flag Output Operands): Correct sectioning.
15857         Minor copy-edit to fix verb tenses.
15859 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
15861         PR tree-optimization/69209
15862         * ipa-split.c (split_function): If split part is not
15863         returning retval, retval has gimple type but is not
15864         gimple value, force it into a SSA_NAME first.
15866 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
15868         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15869         outdated section.
15871 2016-02-08  Jason Merrill  <jason@redhat.com>
15873         PR c++/69631
15874         * convert.c (convert_to_integer_1): Check dofold on truncation
15875         distribution.
15876         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15877         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15878         Rename from *_nofold.
15879         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15880         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15882 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
15884         PR target/60410
15885         * tree.c (build_common_tree_nodes): Remove short_double argument.
15886         All callers changed.
15887         * tree.h (build_common_tree_nodes): Adjust declaration.
15888         * doc/invoke.texi (-fshort-double): Remove documentation.
15889         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15890         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15891         * lto-wrapper.c (merge_and_complain, append_compiler_options)
15892         (append_linker_options): Don't handle OPT_fshort_double.
15894         PR rtl-optimization/68730
15895         * lra-remat.c (insn_to_cand_activation): New static variable.
15896         (lra_remat): Allocate and free it.
15897         (create_cand): New arg activation. Initialize a field in
15898         insn_to_cand_activation if it is nonnull.
15899         (create_cands): Pass the activation insn to create_cand when making
15900         a candidate involving an output reload.  Reorganize code a little.
15901         (do_remat): Keep track of active status of candidates in a separate
15902         bitmap.
15904 2016-02-08  Richard Biener  <rguenther@suse.de>
15906         PR tree-optimization/69719
15907         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15908         Properly use absolute of the difference of the two offsets to
15909         compare or adjust the segment length.
15911 2016-02-08  Richard Biener  <rguenther@suse.de>
15912             Jeff Law  <law@redhat.com>
15914         PR target/68273
15915         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15916         types for anonymous SSA names.
15918 2016-02-08   Richard Biener  <rguenther@suse.de>
15920         PR rtl-optimization/69274
15921         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15923 2016-02-08  Jeff Law  <law@redhat.com>
15925         PR tree-optimization/65917
15926         * tree-ssa-dom.c (record_temporary_equivalences): Record both
15927         equivalences from if (x == y) style conditionals.
15928         (loop_depth_of_name): Remove.
15929         (record_equality): Remove loop depth check.
15930         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15931         (const_and_copies::record_const_or_copy_raw): New member function.
15932         * tree-ssa-scopedtables.c
15933         (const_and_copies::record_const_or_copy_raw): New, factored out of
15934         (const_and_copies::record_const_or_copy): Call new member function.
15936 2016-02-05  Jeff Law  <law@redhat.com>
15938         PR tree-optimization/68541
15939         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15940         (count_stmts_in_block): New function.
15941         (poor_ifcvt_candidate_code): Likewise.
15942         (is_feasible_trace): Add some heuristics to determine when path
15943         splitting is profitable.
15944         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15945         is a diamond with a single exit.
15947 2016-02-05  Martin Sebor  <msebor@redhat.com>
15949         PR c++/69662
15950         * doc/invoke.texi: Update -Wplacement-new to take an optional
15951         argument.
15953 2016-02-06  Richard Henderson  <rth@redhat.com>
15955         PR c/69643
15956         * tree.c (tree_nop_conversion_p): Do not strip casts into or
15957         out of non-standard address spaces.
15959 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15961         PR rtl-optimization/69691
15962         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15964 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
15966         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15967         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15968         (*ieee128_mfvsrd_64bit): Likewise.
15969         (*ieee128_mfvsrd_32bit): Likewise.
15971 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
15973         PR target/69369
15974         Revert r232560:
15975         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15977         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15978         instrumented_version.
15980 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
15982         * doc/invoke.texi (Optimize Options): In table of --param options
15983         rename second occurrence of tracer-min-branch-ratio to
15984         tracer-min-branch-probability, rename
15985         tracer-min-branch-ratio-feedback to
15986         tracer-min-branch-probability-feedback and clarify description,
15987         rename sched-spec-state-edge-prob-cutoff to
15988         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15989         to selsched-insns-to-rename, rename lto-minpartition to
15990         lto-min-partition, delete reorder-blocks-duplicate and
15991         reorder-blocks-duplicate-feedback.
15993 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15995         * config/s390/s390.c (s390_register_info_set_ranges): Remove
15996         superfluous loops.
15998 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16000         * doc/extend.texi: S/390: Correct some typos.
16002 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16004         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
16006 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16008         PR target/69625
16009         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
16010         (s390_register_info_gprtofpr): Use new macros above.
16011         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
16012         its name.
16013         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
16014         its name.  Adjust restore and save gpr ranges.
16015         (s390_register_info_set_ranges): New function.
16016         (s390_register_info): Use new macros above.  Call
16017         s390_register_info_set_ranges.
16018         (s390_optimize_register_info): Likewise.
16019         (s390_hard_regno_rename_ok): Use new macros.
16020         (s390_hard_regno_scratch_ok): Likewise.
16021         (s390_emit_epilogue): Likewise.
16022         (s390_can_use_return_insn): Likewise.
16023         (s390_optimize_prologue): Likewise.
16024         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
16026 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
16028         PR bootstrap/69677
16029         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
16030         alignment fixes.
16031         (ix86_option_override_internal): Disable TARGET_STV even for
16032         -m{incoming,preferred}-stack-boundary=3.
16034 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16036         * config.gcc: Mark deprecated rtems targets as obsolete.
16038 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
16040         PR rtl-optimization/64682
16041         PR rtl-optimization/69567
16042         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
16043         before I2 only if the register is both used and set in I2.
16045 2016-02-04  DJ Delorie  <dj@redhat.com>
16047         * config/msp430/msp430.c (msp430_start_function): Add function type.
16049 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16051         PR fortran/69368
16052         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
16054 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
16056         PR rtl-optimization/69577
16057         Revert:
16058         2015-10-29  Richard Henderson  <rth@redhat.com>
16060         PR target/68124
16061         PR rtl-opt/67609
16062         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
16063         sse check to the exact conditions of PR 67609.
16065 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16067         PR target/69667
16068         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
16069         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
16070         not allowed into the traditional Altivec registers.
16071         (movtd_64bit_nodm): Likewise.
16072         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16074 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
16076         * config/aarch64/cortex-a57-fma-steering.c
16077         (aarch64_register_fma_steering): Remove "static" from arguments
16078         to register_pass.
16080 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
16082         PR target/69619
16083         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
16084         twice when complex.
16086 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
16088         * doc/invoke.texi: Delete -mno-fma4.
16090 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
16092         PR rtl-optimization/69577
16093         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
16094         (find_subregs_of_mode): Update accordingly.  Iterate over partial
16095         definitions.
16097 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
16099         * config/arm/arm-protos.h (neon_reinterpret): Remove.
16100         * config/arm/arm.c (neon_reinterpret): Remove.
16101         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
16102         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
16103         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
16104         vreinterpretti): Remove.
16105         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
16106         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16107         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
16108         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
16109         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
16110         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
16111         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16112         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
16113         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
16114         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
16115         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
16116         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
16117         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
16118         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
16119         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
16120         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
16121         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
16122         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
16123         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
16124         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
16125         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
16126         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
16127         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
16128         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
16129         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
16130         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
16131         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
16132         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
16133         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
16134         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
16135         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
16136         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
16137         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
16138         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
16139         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
16140         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
16141         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
16142         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
16143         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
16144         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
16145         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
16146         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
16147         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
16148         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
16149         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
16150         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
16151         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
16152         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
16153         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
16154         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
16155         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
16156         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
16157         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
16158         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
16159         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
16160         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
16161         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
16162         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
16163         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
16164         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
16165         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
16166         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
16167         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
16168         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
16169         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
16170         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
16171         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
16172         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
16173         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
16174         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
16175         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
16176         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
16177         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
16178         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
16179         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
16180         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
16181         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
16182         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
16183         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
16184         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
16185         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
16186         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
16187         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
16188         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
16189         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
16190         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
16191         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
16192         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
16193         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
16194         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
16195         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
16196         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
16197         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
16198         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
16199         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
16200         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
16201         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
16202         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
16203         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
16204         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
16205         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
16206         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
16207         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
16209 2016-02-04  Martin Liska  <mliska@suse.cz>
16211         PR sanitizer/69276
16212         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
16213         that are gimple_store_p.
16214         (maybe_instrument_call): Likewise.
16216 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
16218         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
16219         register scaling out of memory reference and comment why.
16221 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16223         PR target/65932
16224         PR target/67714
16225         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
16226         folding the source of a SET.
16228 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16230         PR target/65932
16231         PR target/67714
16232         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
16233         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
16235 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
16237         PR target/65932
16238         PR target/67714
16239         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
16240         HImode.
16242 2016-02-04  Christian Bruel  <christian.bruel@st.com>
16244         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
16245         * config/arm/arm.c (arm_set_current_function): Likewise.
16247 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16248             Ilya Enkovich  <enkovich.gnu@gmail.com>
16249             H.J. Lu  <hongjiu.lu@intel.com>
16251         PR target/69454
16252         * config/i386/i386.c (convert_scalars_to_vector): Remove
16253         stack alignment fixes.
16254         (ix86_option_override_internal): Disable TARGET_STV if stack
16255         might not be aligned enough.
16256         (ix86_minimum_alignment): Assert that TARGET_STV is false.
16258 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
16260         * config/i386/x86-tune.def: Disable default prefetching
16261         for -march=znver1.
16263 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16264             Vladimir Makarov  <vmakarov@redhat.com>
16266         PR target/69461
16267         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
16268         in validating fused toc addresses.
16270 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
16272         PR c/69627
16273         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16274         range->m_caret fields if range->m_show_caret_p is false.
16276         PR target/69644
16277         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16278         Force oldval into register if it does not satisfy reg_or_short_operand
16279         predicate.  Fix up formatting.
16281 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16282             Alexandre Oliva  <aoliva@redhat.com>
16284         PR target/69461
16285         * lra-constraints.c (simplify_operand_subreg): Check additionally
16286         address validity after potential reloading.
16287         (process_address_1): Check insns validity.  In case of failure do
16288         nothing.
16290 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
16292         PR target/69118
16293         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16294         Fix target.
16296 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
16298         * wide-int.cc (canonize_uhwi): New function.
16299         (wi::divmod_internal): Use it.
16301 2016-02-02  James Norris  <jnorris@codesourcery.com
16303         * gimplify.c (omp_notice_variable): Add usage check.
16305 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
16307         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16308         like LE, GE, LT, GT when emitting relational operator.
16310 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16312         * ira-costs.c (find_costs_and_classes): Add extra argument.
16313         * target.def (ira_change_pseudo_allocno_class): Add parameter.
16314         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16315         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16316         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16317         Add best_class parameter, and return it if not ALL_REGS.
16318         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16319         Add parameter.
16320         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16321         Update target hook.
16323 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16325         * config/aarch64/aarch64.c
16326         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16327         (aarch64_ira_change_pseudo_allocno_class): New function.
16329 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
16331         PR target/67032
16332         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16334 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16336         * config/avr/avr.c (avr_option_override): Set
16337         PARAM_ALLOW_STORE_DATA_RACES to 1.
16339 2016-02-02  Richard Biener  <rguenther@suse.de>
16341         PR tree-optimization/69595
16342         * match.pd: Add range test simplifications to true/false.
16344 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
16346         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16347         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16348         instead.
16350 2016-02-02  Richard Biener  <rguenther@suse.de>
16352         PR tree-optimization/69606
16353         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16354         info on the result before moving a stmt.
16356 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
16358         PR middle-end/68542
16359         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16360         branch with vector comparison.
16361         * config/i386/sse.md (VI48_AVX): New mode iterator.
16362         (define_expand "cbranch<mode>4): Add support for conditional branch
16363         with vector comparison.
16364         * tree-vect-loop.c (optimize_mask_stores): New function.
16365         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16366         has_mask_store field of vect_info.
16367         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16368         vectorized loops having masked stores after vec_info destroy.
16369         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16370         correspondent macros.
16371         (optimize_mask_stores): Add prototype.
16373 2016-02-02  Alan Modra  <amodra@gmail.com>
16375         PR target/69548
16376         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16377         allow subregs.
16379 2016-02-02  Alan Modra  <amodra@gmail.com>
16381         PR target/68662
16382         * config/rs6000/rs6000.c (need_toc_init): New var, set it
16383         whenever toc_label_name used.
16384         (rs6000_file_start): Don't set up toc section here,
16385         (rs6000_output_function_epilogue): do so here instead,
16386         (rs6000_xcoff_file_start): and here.
16387         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16388         (load_toc_aix_di): Likewise.
16390 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16392         PR rtl-optimization/69592
16393         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16394         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16395         (num_sign_bit_copies_binary_arith_p): New inline function.
16396         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16398 2016-02-01  Jeff Law  <law@redhat.com>
16400         PR tree-optimization/69580
16401         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16402         * tree-ssa-threadbackward.c
16403         (fsm_find_control_statement_thread_paths): Do not try to walk
16404         through large PHI nodes.
16406 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16408         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16409         when count is incremented above limit, don't analyze further
16410         insns afterwards.
16412         * omp-low.c (oacc_parse_default_dims): Avoid
16413         -Wsign-compare warning, make sure value fits into int
16414         rather than just unsigned int.
16416 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
16418         PR tree-optimization/67921
16419         * fold-const.c (split_tree): New parameters.  Convert pointer
16420         type variable part to proper type before negating.
16421         (fold_binary_loc): Pass new arguments to split_tree.
16423 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
16425         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16426         (nvptx_goacc_validate_dims): Extend to handle global defaults.
16427         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16428         * doc/tm.texti: Rebuilt.
16429         * doc/invoke.texi (fopenacc-dim): Document.
16430         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16431         (append_compiler_options): Likewise.
16432         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16433         (oacc_parse_default_dims): New.
16434         (oacc_validate_dims): Add USED arg.  Select non-unity default when
16435         possible.
16436         (oacc_loop_fixed_partitions): Return mask of used partitions.
16437         (oacc_loop_auto_partitions): Emit dump info.
16438         (oacc_loop_partition): Return mask of used partitions.
16439         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
16440         loop partitioning and validation calls.
16442 2016-02-01  Richard Biener  <rguenther@suse.de>
16444         PR middle-end/69556
16445         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16447 2016-02-01  Richard Biener  <rguenther@suse.de>
16449         PR tree-optimization/69574
16450         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16451         of asserting return chrec_dont_know.
16453 2016-02-01  Martin Liska  <mliska@suse.cz>
16455         * mem-stats-traits.h: Add copyright header.
16456         * mem-stats.h: Likewise.
16458 2016-02-01  Richard Biener  <rguenther@suse.de>
16460         PR tree-optimization/69579
16461         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16462         Do not propagate through abnormal PHI results.
16464 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
16466         * postreload.c (reload_cse_simplify): Remove dead code.
16468 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16470         PR rtl-optimization/69570
16471         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16472         if there is more than one set, not if there is a single set.
16474 2016-02-01  Richard Henderson  <rth@redhat.com>
16476         PR rtl-opt/69535
16477         * combine.c (make_compound_operation): When looking through a
16478         subreg, make sure to re-extend to the width of the outer mode.
16480 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
16482         PR tree-optimization/69546
16483         * wide-int.cc (wi::divmod_internal): For unsigned division
16484         where both operands fit into uhwi, if o1 is 1 and o0 has
16485         msb set, if divident_prec is larger than bits per hwi,
16486         clear another quotient word and return 2 instead of 1.
16487         Similarly for remainder with msb in HWI set, if dividend_prec
16488         is larger than bits per hwi.
16490 2016-01-29  Martin Jambor  <mjambor@suse.cz>
16492         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16493         Use short lowercase names.
16494         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
16495         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16496         acq_rel one.  Protect warning agains segfaults if
16497         get_memory_order_name returns NULL.
16498         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16499         with release semantics.  Do not warn if get_memory_order already did.
16500         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16501         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
16502         if get_memory_order already did.
16504 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
16506         * doc/install.texi: Document that isl-0.16 is supported.
16508 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
16510         PR target/69299
16511         * config/i386/constraints.md (Bm): Describe as special memory
16512         constraint.
16513         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16514         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16515         * genpreds.c (struct constraint_data): Add is_special_memory.
16516         (have_special_memory_constraints, special_memory_start): New
16517         static vars.
16518         (special_memory_end): Ditto.
16519         (add_constraint): Add new arg is_special_memory.  Add code to
16520         process its true value.  Update have_special_memory_constraints.
16521         (process_define_constraint): Pass the new arg.
16522         (process_define_register_constraint): Ditto.
16523         (choose_enum_order): Process special memory.
16524         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16525         function insn_extra_special_memory_constraint.
16526         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16527         * gensupport.c (process_rtx): Process
16528         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16529         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16530         * ira-lives.c (single_reg_class): Use
16531         insn_extra_special_memory_constraint.
16532         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16533         * lra-constraints.c (process_alt_operands): Ditto.
16534         (curr_insn_transform): Use insn_extra_special_memory_constraint.
16535         * recog.c (asm_operand_ok, preprocess_constraints): Process
16536         CT_SPECIAL_MEMORY.
16537         * reload.c (find_reloads): Ditto.
16538         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16539         * stmt.c (parse_input_constraint): Use
16540         insn_extra_special_memory_constraint.
16542 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16544         PR target/69530
16545         * lra-splill.c (lra_final_code_change): Revert r229087 by
16546         removing all sub-registers.
16548 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
16550         PR target/65604
16551         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16553 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
16555         PR target/69551
16556         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16557         SSE1, copy target into the temporary reg first before recursing
16558         on it.
16560 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16562         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16563         with vm.
16565 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16567         * ginclude/stdarg.h: Test __cplusplus instead of
16568         __GXX_EXPERIMENTAL_CXX0X__.
16570 2016-01-29  Richard Biener  <rguenther@suse.de>
16572         PR tree-optimization/69547
16573         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16574         Do not mark clobbers necessary.
16575         (mark_all_reaching_defs_necessary_1): Likewise.
16577 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16579         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16580         declaration name with %qs and print it in both error messages.
16581         Also fix indentation.
16583 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16585         PR other/69006
16586         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16587         trailing blank line from error message.
16589 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16591         PR c++/69462
16592         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16593         for C++-11.
16595 2016-01-29  Richard Biener  <rguenther@suse.de>
16597         PR middle-end/69537
16598         * match.pd: Allow all integral types when simplifying a
16599         widening or sign-changing conversion.
16601 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16603         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16604         back to setting codegen_error to fail codegen.
16606 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
16608         PR target/69459
16609         * config/i386/constraints.md (C): Only accept constant zero operand.
16610         (BC): New constraint.
16611         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16612         instead of C constraint.
16613         * doc/md.texi (Machine Constraints): Update description
16614         of C constraint.
16616 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
16618         PR target/68400
16619         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16621 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
16623         PR middle-end/69542
16624         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16625         non-debug insns.
16627 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
16629         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16630         branches if using guessed profile.
16632 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
16634         * graphite-optimize-isl.c (optimize_isl): Fix dump.
16636 2016-01-28  Richard Henderson  <rth@redhat.com>
16638         PR target/69305
16639         * config/aarch64/aarch64-modes.def (CC_Cmode): New
16640         * config/aarch64/aarch64-protos.h: Update.
16641         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16642         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16643         (aarch64_get_condition_code_1): Handle CC_Cmode.
16644         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16645         (*add<mode>3_compareC_cconly_imm): New.
16646         (*add<mode>3_compareC_cconly): New.
16647         (*add<mode>3_compareC_imm): New.
16648         (add<mode>3_compareC): New.
16649         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16650         to be first.  Use aarch64_carry_operation.
16651         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16652         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16653         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16654         (subti3): Use subdi3_compare1.
16655         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16656         (sub<mode>3_compare1): New.
16657         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16658         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16659         (*subsi3_carryin_uxtw): Likewise.
16660         (*ngc<mode>, *ngcsi_uxtw): Likewise.
16661         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16662         * config/aarch64/iterators.md (DWI): New.
16663         * config/aarch64/predicates.md (aarch64_carry_operation): New.
16664         (aarch64_borrow_operation): New.
16666 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16668         * graphite-optimize-isl.c (optimize_isl): Print a different debug
16669         message when isl does not return a valid schedule.
16671 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16673         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16674         Remove comments from class declarations: they are already in the code
16675         close by the defs.
16677 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16679         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16680         codegen_error_p.
16681         (ternary_op_to_tree): Same.
16682         (unary_op_to_tree): Same.
16683         (nary_op_to_tree): Same.
16684         (gcc_expression_from_isl_expr_op): Same.
16685         (gcc_expression_from_isl_expression): Same.
16686         (graphite_create_new_loop): Same.
16687         (graphite_create_new_loop_guard): Same.
16688         (build_iv_mapping): Same.
16689         (graphite_create_new_guard): Same.
16690         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16691         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16693 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16695         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16696         instead of setting codegen_error to fail codegen.
16698 2016-01-28  Jason Merrill  <jason@redhat.com>
16700         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16702 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16704         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16705         Remove CONST_INT_P check in CCMP cost calculation.
16707 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16709         * config/aarch64/aarch64.c (generic_vector_cost):
16710         Set vec_permute_cost.
16711         (cortexa57_vector_cost): Likewise.
16712         (exynosm1_vector_cost): Likewise.
16713         (xgene1_vector_cost): Likewise.
16714         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16715         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16716         Add vec_permute_cost entry.
16718 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16720         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16721         immediate as %1.
16722         (add<mode>3_compare0): Likewise.
16723         (addsi3_compare0_uxtw): Likewise.
16724         (add<mode>3nr_compare0): Likewise.
16725         (compare_neg<mode>): Likewise.
16726         (<optab><mode>3): Likewise.
16728 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
16730         * tree-vect-stmts.c (vectorizable_comparison): Add
16731         NULL check for vectype.
16733 2016-01-28  Richard Biener  <rguenther@suse.de>
16735         PR tree-optimization/69466
16736         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16737         Account for PHIs we couldn't duplicate.
16739 2016-01-28  Martin Liska  <mliska@suse.cz>
16741         PR pch/68758
16742         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16743         instead of ENABLE_VALGRIND_CHECKING.
16745 2016-01-27  Richard Henderson  <rth@redhat.com>
16747         PR rtl-opt/69447
16748         * lra-remat.c (subreg_regs): New.
16749         (dump_candidates_and_remat_bb_data): Dump it.
16750         (operand_to_remat): Reject if operand in subreg_regs.
16751         (set_bb_regs): Collect subreg_regs.
16752         (lra_remat): Init and free subreg_regs.  Compute
16753         calculate_local_reg_remat_bb_data before create_cands.
16755 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
16757         PR target/68986
16758         * config/i386/i386.c (ix86_update_stack_boundary): Don't
16759         change stack_alignment_needed for __tls_get_addr call.
16761 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
16763         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16765 2016-01-27  Jeff Law  <law@redhat.com>
16767         PR tree-optimization/68398
16768         PR tree-optimization/69196
16769         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16770         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16771         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16772         Only count PHIs in the last block in the path.  The others will
16773         const/copy propagate away.  Add heuristic to allow more irreducible
16774         subloops to be created when it is likely profitable to do so.
16776         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16777         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
16778         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
16780 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16782         PR lto/69254
16783         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16784         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16785         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16786         * tree-streamer-in.c: Include asan.h.
16787         (streamer_get_builtin_tree): For builtins in sanitizer
16788         range call initialize_sanitizer_builtins and retry.
16790 2016-01-27  Ian Lance Taylor  <iant@google.com>
16792         * common.opt (fkeep-gc-roots-live): New undocumented option.
16793         * tree-ssa-loop-ivopts.c (add_candidate_1): If
16794         -fkeep-gc-roots-live, skip pointers.
16795         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16796         NULL.
16798 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
16800         PR target/69512
16801         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16802         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16804 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
16806         PR target/68380
16807         * configure.ac: NetBSD provides SSP in its C library.
16808         * configure: Updated.
16810 2016-01-27  Richard Biener  <rguenther@suse.de>
16812         PR tree-optimization/69166
16813         * tree-vect-loop.c (vect_is_simple_reduction): Always check
16814         reduction code for commutativity / associativity.
16816 2016-01-27  Martin Jambor  <mjambor@suse.cz>
16818         PR tree-optimization/69355
16819         * tree-sra.c (analyze_access_subtree): Correct hole detection when
16820         total_scalarization fails.
16822 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
16824         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16825         power9.
16827 2016-01-27  Christian Bruel  <christian.bruel@st.com>
16829         PR target/69245
16830         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16831         Move arm_reset_previous_fndecl and set_target_option_current_node in
16832         the conditional part.  Call save_restore_target_globals.
16833         * config/arm/arm.c (arm_set_current_function):
16834         Refactor to better support #pragma target and attribute mix.
16835         Call save_restore_target_globals.
16836         * config/arm/arm-protos.h (save_restore_target_globals): New function.
16838 2016-01-27  Martin Liska  <mliska@suse.cz>
16840         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16841         reference for an HSA kernel and its host function.
16843 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16845         PR tree-optimization/69399
16846         * wide-int.h (wi::lrshift): For larger precisions, only
16847         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16849 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
16851         * config/arc/predicates.md (proper_comparison_operator): Reject
16852         constant-constant comparison.
16854 2016-01-26  Tom de Vries  <tom@codesourcery.com>
16856         PR tree-optimization/69110
16857         * tree-data-ref.c (initialize_data_dependence_relation): Handle
16858         DR_NUM_DIMENSIONS == 0.
16860 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16861             Sebastian Pop  <s.pop@samsung.com>
16863         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16864         isl_ast_op_cond and isl_ast_op_select.
16865         (gcc_expression_from_isl_expr_op): Same.
16867 2016-01-26  Jason Merrill  <jason@redhat.com>
16869         PR c++/68782
16870         * tree.c (recompute_constructor_flags): Split out from
16871         build_constructor.
16872         (verify_constructor_flags): New.
16873         * tree.h: Declare them.
16875 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
16877         PR rtl-optimization/69217
16878         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16879         are no TYPE_FIELDS set for the record type.
16881 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16883         PR target/68662
16884         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16885         toc_label_name unconditionally.
16886         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16887         SYMBOL_REF string.  Use toc_label_name instead of constructing
16888         LCTOC1.
16889         (rs6000_elf_declare_function_name): Use toc_label_name instead of
16890         constructing LCTOC1.
16892 2016-01-26  Martin Sebor  <msebor@redhat.com>
16894         PR other/69477
16895         * doc/extend.texi (Common Type Attributes): Move text that talks about
16896         attribute packed from attribute aligned to the section discussing
16897         the former attribute for clarity.
16899 2016-01-26  Richard Henderson  <rth@redhat.com>
16901         PR middle-end/60908
16902         * trans-mem.c (tm_region_init): Mark entry block as visited.
16904 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
16906         PR other/69006
16907         * diagnostic-show-locus.c (layout::print_source_line): Replace
16908         call to pp_newline with call to layout::print_newline.
16909         (layout::print_annotation_line): Likewise.
16910         (layout::move_to_column): Likewise.
16911         (layout::print_any_fixits): After printing any fixits, print a
16912         trailing newline, if necessary.
16913         (layout::print_newline): New method, resetting any colorization
16914         before a newline.
16915         (diagnostic_show_locus): Move the pp_newline to before the
16916         early bailout.  Remove dummy block enclosing the layout instance.
16917         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16918         of pp_newline_and_flush with pp_flush.
16919         (diagnostic_append_note): Delete use of pp_newline.
16920         (diagnostic_append_note_at_rich_loc): Delete.
16921         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16922         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16923         when newline characters are added to the buffer.
16925 2016-01-26  Michael Matz  <matz@suse.de>
16927         * configure.ac (ac_cv_std_swap_in_utility): New test.
16928         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16929         * configure: Regenerate.
16930         * config.in: Regenerate.
16932 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
16934         * config/arc/arc.md (cstoresi4): Force operand into register.
16935         (arcset<code>): Fix predicate.
16936         (arcsetltu): Likewise.
16937         (arcsetgeu): Likewise.
16938         (arcsethi): Likewise.
16939         (arcsetls): Likewise.
16941 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16943         PR tree-optimization/69483
16944         * gimple-fold.c (canonicalize_constructor_val): Return NULL
16945         if base has error_mark_node type.
16947 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
16949         PR target/68620
16950         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16951         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16952         New helper macros.
16953         (vget_lane_f16): Handle big-endian.
16954         (vgetq_lane_f16): Likewise.
16955         (vset_lane_f16): Likewise.
16956         (vsetq_lane_f16): Likewise.
16957         * config/arm/iterators.md (VQXMOV): Add V8HF.
16958         (VDQ): Add V4HF and V8HF.
16959         (V_reg): Handle V4HF and V8HF.
16960         (Is_float_mode): Likewise.
16961         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16962         neon_vdup_nv8hf): New patterns.
16963         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16964         Use VD_LANE iterator.
16965         (neon_vld1_dup<mode>): Use VQ2 iterator.
16967 2016-01-26  Nathan Sidwell  <nathan@acm.org>
16969         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16970         (set_oacc_fn_attrib): Add IS_KERNEL arg.
16971         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16972         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16973         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16974         (oacc_validate_dims): Add LEVEL arg, don't return level.
16975         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16976         oacc_validate_dims.
16977         (execute_oacc_device_lower): Adjust, add more dump output.
16978         * tree-ssa-loop.c (gate_oacc_kernels): Use
16979         oacc_fn_attrib_kernels_p.
16980         * tree-parloops.c (create_parallel_loop): Adjust
16981         set_oacc_fn_attrib call.
16983 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16985         PR lto/69254
16986         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16987         (append_compiler_options): Handle -fcilkplus.
16988         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16990 2016-01-26  Nick Clifton  <nickc@redhat.com>
16992         PR target/66655
16993         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16994         been marked as DECL_ONE_ONLY but we do not the means to make it
16995         so, then do not allow it to bind locally.
16997 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16999         PR lto/69254
17000         * opts.h (parse_sanitizer_options): New prototype.
17001         * opts.c (sanitizer_opts): New array.
17002         (parse_sanitizer_options): New function.
17003         (common_handle_option): Use parse_sanitizer_options.
17005 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17007         PR target/68986
17008         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
17009         alignment adjustment to ...
17010         (ix86_update_stack_boundary): Here.  Don't over-align stack for
17011         __tls_get_addr.
17012         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
17013         if __tls_get_addr is called.
17015 2016-01-26  Christian Bruel  <christian.bruel@st.com>
17017         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
17019 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17021         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
17023 2016-01-26  Richard Biener  <rguenther@suse.de>
17025         PR middle-end/69467
17026         * match.pd: Guard X * CST CMP 0 pattern with single_use.
17028 2016-01-26  Richard Biener  <rguenther@suse.de>
17030         PR tree-optimization/69452
17031         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
17032         (move_computations_dom_walker::before_dom_children): Rename
17033         to ...
17034         (move_computations_worker): This.
17035         (move_computations): Perform an RPO rather than a DOM walk.
17037 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17039         PR target/69442
17040         * combine.c (combine_instructions): For REG_EQUAL note with
17041         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
17042         to the underlying register.
17043         * doc/rtl.texi (REG_EQUAL): Document the behavior of
17044         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
17046 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
17048         PR target/67896
17049         * config/aarch64/aarch64-builtins.c
17050         (aarch64_init_simd_builtin_types): Do not set structural
17051         equality to __Poly{8,16,64,128}_t types.
17053 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
17055         PR tree-optimization/69400
17056         * wide-int.cc (wi_pack): Take the precision as argument and
17057         perform canonicalization here rather than in the callers.
17058         Use the main loop to handle all full-width HWIs.  Add a
17059         zero HWI if in_len isn't a full result.
17060         (wi::divmod_internal): Update accordingly.
17061         (wi::mul_internal): Likewise.  Simplify.
17063 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17064             Sebastian Pop  <s.pop@samsung.com>
17066         * graphite-poly.c (apply_poly_transforms): Simplify.
17067         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
17068         (print_isl_map): Same.
17069         (print_isl_union_map): Same.
17070         (print_isl_schedule): New.
17071         (debug_isl_schedule): New.
17072         * graphite-dependences.c (scop_get_reads): Do not call
17073         isl_union_map_add_map that is undocumented isl functionality.
17074         (scop_get_must_writes): Same.
17075         (scop_get_may_writes): Same.
17076         (scop_get_original_schedule): Remove.
17077         (scop_get_dependences): Do not call isl_union_map_compute_flow that
17078         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
17079         (compute_deps): Remove.
17080         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
17081         (debug_schedule_ast): New.
17082         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
17083         set_separate_option.
17084         (graphite_regenerate_ast_isl): Add dump.
17085         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
17086         from scop->transformed_schedule.
17087         (graphite_regenerate_ast_isl): Add more dump.
17088         * graphite-optimize-isl.c (optimize_isl): Set
17089         scop->transformed_schedule.  Check whether schedules are equal.
17090         (apply_poly_transforms): Move here.
17091         * graphite-poly.c (apply_poly_transforms): ... from here.
17092         (free_poly_bb): Static.
17093         (free_scop): Static.
17094         (pbb_number_of_iterations_at_time): Remove.
17095         (print_isl_ast): New.
17096         (debug_isl_ast): New.
17097         (debug_scop_pbb): New.
17098         * graphite-scop-detection.c (print_edge): Move.
17099         (print_sese): Move.
17100         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
17101         (build_scop_scattering): Remove.
17102         (create_pw_aff_from_tree): Assert instead of bailing out.
17103         (add_condition_to_pbb): Remove unused code, do not fail.
17104         (add_conditions_to_domain): Same.
17105         (add_conditions_to_constraints): Remove.
17106         (build_scop_context): New.
17107         (add_iter_domain_dimension): New.
17108         (build_iteration_domains): Initialize pbb->iterators.
17109         Call add_conditions_to_domain.
17110         (nested_in): New.
17111         (loop_at): New.
17112         (index_outermost_in_loop): New.
17113         (index_pbb_in_loop): New.
17114         (outermost_pbb_in): New.
17115         (add_in_sequence): New.
17116         (add_outer_projection): New.
17117         (outer_projection_mupa): New.
17118         (add_loop_schedule): New.
17119         (build_schedule_pbb): New.
17120         (build_schedule_loop): New.
17121         (embed_in_surrounding_loops): New.
17122         (build_schedule_loop_nest): New.
17123         (build_original_schedule): New.
17124         (build_poly_scop): Call build_original_schedule.
17125         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
17126         (free_poly_dr): Remove.
17127         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
17128         (free_poly_bb): Remove.
17129         (debug_loop_vec): Remove.
17130         (print_isl_ast): Declare.
17131         (debug_isl_ast): Declare.
17132         (scop_do_interchange): Remove.
17133         (scop_do_strip_mine): Remove.
17134         (scop_do_block): Remove.
17135         (flatten_all_loops): Remove.
17136         (optimize_isl): Remove.
17137         (pbb_number_of_iterations_at_time): Remove.
17138         (debug_scop_pbb): Declare.
17139         (print_schedule_ast): Declare.
17140         (debug_schedule_ast): Declare.
17141         (struct scop): Remove schedule.  Add original_schedule,
17142         transformed_schedule.
17143         (free_gimple_poly_bb): Remove.
17144         (print_generated_program): Remove.
17145         (debug_generated_program): Remove.
17146         (unify_scattering_dimensions): Remove.
17147         * sese.c (print_edge): ... here.
17148         (print_sese): ... here.
17149         (debug_edge): ... here.
17150         (debug_sese): ... here.
17151         * sese.h (print_edge): Declare.
17152         (print_sese): Declare.
17153         (dump_edge): Declare.
17154         (dump_sese): Declare.
17156 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17157             Sebastian Pop  <s.pop@samsung.com>
17159         * Makefile.in: Set ISLVER in site.exp.
17161 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
17163         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
17164         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
17165         through DECL_VALUE_EXPR for expansion.
17167 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17169         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
17170         the frame info after reload completed.
17172 2016-01-25  Jeff Law  <law@redhat.com>
17174         PR tree-optimization/69196
17175         PR tree-optimization/68398
17176         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
17177         tree-ssa-threadupdate.c.
17178         (determine_bb_domination_status): Prototype
17179         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
17180         (determine_bb_domination_status): No longer static.
17181         (valid_jump_thread_path): Remove code to detect characteristics
17182         of the jump thread path not associated with correctness.
17183         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
17184         Correct test for thread path length.  Count PHIs for real operands as
17185         statements that need to be copied.  Do not count ASSERT_EXPRs.
17186         Look at all the blocks in the thread path.  Compute and selectively
17187         filter thread paths based on threading through the latch, threading
17188         a multiway branch or crossing a multiway branch.
17190 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17192         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
17193         decl with __attribute__ ((unused)) annotation.
17195 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
17197         PR target/69421
17198         * tree-vect-stmts.c (vectorizable_condition): Check vectype
17199         of operands is compatible with a statement vectype.
17201 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
17203         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
17204         improve wording for mixed storage order support.
17206 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
17208         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
17209         (vcvt_u64_f64): Likewise.
17210         (vcvta_s64_f64): Likewise.
17211         (vcvta_u64_f64): Likewise.
17212         (vcvtm_s64_f64): Likewise.
17213         (vcvtm_u64_f64): Likewise.
17214         (vcvtn_s64_f64): Likewise.
17215         (vcvtn_u64_f64): Likewise.
17216         (vcvtp_s64_f64): Likewise.
17217         (vcvtp_u64_f64): Likewise.
17219 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
17221         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
17222         (arc_init): Check validity mll64 option.
17223         (arc_save_restore): Use double load/store instruction.
17224         (arc_expand_movmem): Likewise.
17225         (arc_split_move): Don't split if we have double load/store
17226         instructions. Returns a boolean.
17227         (arc_process_double_reg_moves): Change function to return boolean
17228         instead of a sequence of instructions.
17229         (arc_dwarf_register_span): New function.
17230         * config/arc/arc-protos.h (arc_split_move): Change prototype.
17231         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
17232         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
17233         (*movdf_insn): Likewise.
17234         * config/arc/arc.opt (mll64): New option.
17235         * config/arc/predicates.md (even_register_operand): New predicate.
17236         * doc/invoke.texi (ARC Options): Add mll64 documentation.
17238 2016-01-25  Richard Biener  <rguenther@suse.de>
17240         PR lto/69393
17241         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
17242         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
17243         DECL_NAMELESS.
17244         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
17246 2016-01-25  Richard Biener  <rguenther@suse.de>
17248         PR tree-optimization/69376
17249         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
17250         flag.
17251         (VN_INFO_ANTI_RANGE_P): New inline.
17252         (VN_INFO_RANGE_TYPE): Likewise.
17253         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
17254         SSA_NAME_ANTI_RANGE_P.
17255         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
17256         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17257         Properly query VN_INFO_RANGE_TYPE.
17259 2016-01-25  Nick Clifton  <nickc@redhat.com>
17261         PR target/66655
17262         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
17264 2016-01-23  Tom de Vries  <tom@codesourcery.com>
17266         PR tree-optimization/69426
17267         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
17268         removed clobber.
17270 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
17272         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17273         "the the" with "the" in the comments.
17274         * ipa-devirt.c (build_type_inheritance_graph,
17275         update_type_inheritance_graph): Likewise.
17276         * tree.c (build_function_type_list_1): Likewise.
17277         * cfgloopmanip.c (scale_loop_profile): Likewise.
17278         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17279         * gimple-ssa-split-paths.c
17280         (find_block_to_duplicate_for_splitting_paths): Likewise.
17281         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17282         * expr.c (convert_move): Likewise.
17283         * var-tracking.c (vt_stack_adjustments): Likewise.
17284         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17285         * tree-vrp.c (test_for_singularity): Likewise.
17287         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17288         directly instead of building a temporary tree.
17290         PR bootstrap/69434
17291         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17292         remove <algorithm> include.
17294 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17296         PR target/69432
17297         * config/i386/i386.c: Include dojump.h.
17298         (expand_small_movmem_or_setmem,
17299         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17300         fixes.
17301         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17302         if dynamic_check != -1.
17304 2016-01-21  Jeff Law  <law@redhat.com>
17306         PR middle-end/69347
17307         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17308         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
17309         into dominated_by_p.
17310         (cprop_into_successor_phis): Avoid unnecessary tests.
17312 2016-01-22  Richard Henderson  <rth@redhat.com>
17314         PR target/69416
17315         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17316         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17318 2016-01-22  Michael Matz  <matz@suse.de>
17320         * system.h (string, algorithm): Include only conditionally.
17321         (new): Include always under C++.
17322         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17323         * final.c (toplevel): Ditto.
17324         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17325         * genconditions.c (write_header): Make gencondmd.c define
17326         INCLUDE_STRING.
17327         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17329         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17330         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17332 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17334         PR target/68674
17335         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17337 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17339         PR target/69403
17340         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17341         define_insn_and_split.  Ensure operands[1] and operands[0] do not
17342         get assigned the same register.
17344 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17346         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17348 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17350         * config/arm/arm-c.c (arm_pragma_target_parse):
17351         Remove warn_builtin_macro_redefined overwrite.
17353 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17355         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17356         flag_non_call_exceptions compatibility.
17358 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17360         PR debug/66668
17361         * dwarf2out.c (add_child_die_after): New function.
17362         (dwarf_qual_info_t): New type.
17363         (dwarf_qual_info): New variable.
17364         (qualified_die_p): New function.
17365         (modified_type_die): For -fdebug-types-section, ensure
17366         canonical order of qualifiers.  Put qualified DIEs adjacent
17367         to the corresponding non-qualified type DIE and search there
17368         for existing qualified DIEs.
17370 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17372         * doc/extend.texi (scalar_storage_order type attribute): Document
17373         restriction on type punning and aliasing, and remove future tense.
17375 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
17377         PR target/69252
17378         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17379         first stage.
17381 2016-01-21  Jeff Law  <law@redhat.com>
17383         PR middle-end/69347
17384         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17385         useless call to record_temporary_equivalences.
17386         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17387         allocate 10 slots in the bb_path vector and let it grow as needed.
17388         (fsm_find_control_statement_thread_paths): Similarly for the next_path
17389         vector.
17391 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17393         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17394         Detangle.
17395         * configure: Regenerate.
17397 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
17399         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17400         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17402 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
17404         PR middle-end/66178
17405         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17406         drop EXPAND_INITIALIZER.
17407         * rtl.h (contains_symbolic_reference_p): Declare.
17408         * rtlanal.c (contains_symbolic_reference_p): New function.
17409         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17410         a subtraction into a NOT if symbolic constants are involved.
17412 2016-01-21  Anton Blanchard  <anton@samba.org>
17413             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17415         PR target/63354
17416         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17417         #define.
17418         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17419         function.
17421 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17423         * config/microblaze/microblaze.c
17424         (get_branch_target): New.
17425         (insert_wic_for_ilb_runout): New.
17426         (insert_wic): New.
17427         (microblaze_machine_dependent_reorg): New.
17428         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17429         * config/microblaze/microblaze.md
17430         (UNSPEC_IPREFETCH): Define.
17431         (iprefetch): New pattern
17432         * config/microblaze/microblaze.opt
17433         (mxl-prefetch): New flag.
17435 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17437         * config/microblaze/microblaze.h
17438         (FIXED_REGISTERS): Update in macro.
17439         (CALL_USED_REGISTERS): Update in macro.
17441 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
17443         PR rtl-optimization/68920
17444         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17445         moves.
17447 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17449         PR rtl-optimization/68990
17450         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17451         pseudo instead of inheritance ones.
17453 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17454             Nick Clifton  <nickc@redhat.com>
17456         PR target/69129
17457         PR target/69012
17458         * config/mips/mips.c (mips_compute_frame_info): Initialise
17459         args_size and hard_frame_pointer_offset fields of the frame
17460         structure before calling mips_global_pointer.
17462 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17464         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17465         label reference.
17466         * configure: Regenerate.
17468 2016-01-21  Richard Biener  <rguenther@suse.de>
17470         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17472 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17474         * config/s390/s390.c (s390_asm_declare_function_size): Add code
17475         to actually emit the .size directive.
17477 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
17478              Jakub Jelinek  <jakub@redhat.com>
17480         PR target/69187
17481         PR target/65624
17482         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17483         args array size by one to avoid buffer overflow.
17485 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17487         * config/s390/s390.md (pool_section_start): Use switch_to_section
17488         to select proper read-only data section instead of hardcoding
17489         .rodata.
17490         (pool_section_end): Use switch_to_section to match the above.
17492 2016-01-21  Richard Biener  <rguenther@suse.de>
17494         PR tree-optimization/69378
17495         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17496         (set_ssa_val_to): Use it for dominance checks taking into
17497         account not executable edges.
17499 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17501         PR c++/69355
17502         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17503         for bitsize instead of GET_MODE_PRECISION (mode).
17505 2016-01-20  Martin Sebor  <msebor@redhat.com>
17507         PR c/52291
17508         * extend.texi (__sync Builtins): Clarify the semantics of
17509         __sync_fetch_and_OP built-ins on pointers.
17510         (__atomic Builtins): Same.
17512 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17513             Sebastian Pop  <s.pop@samsung.com>
17515         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17516         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17517         (is_valid_rename): Same.
17518         (translate_isl_ast_to_gimple::get_rename): Same.
17519         (translate_isl_ast_to_gimple::rename_all_uses): Same.
17520         (translate_isl_ast_to_gimple::rename_uses): Same.
17521         (get_new_name): Check for close_phi nodes.
17522         (copy_loop_phi_args): Use phi_node_kind.
17523         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17524         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17526 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17527             Sebastian Pop  <s.pop@samsung.com>
17529         Revert commit r229783.
17530         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17531         Remove use of parameter_rename_map.
17532         (copy_def): Remove.
17533         (copy_internal_parameters): Remove.
17534         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17535         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17536         (free_sese_info): Do not free parameter_rename_map.
17537         (set_rename): Do not use parameter_rename_map.
17538         (rename_uses): Update call to set_rename.
17539         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17540         * sese.h (parameter_rename_map_t): Remove.
17541         (struct sese_info_t): Remove field parameter_rename_map.
17543 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17544             Sebastian Pop  <s.pop@samsung.com>
17546         * graphite-isl-ast-to-gimple.c: Fix comment.
17547         * graphite-scop-detection.c (defined_in_loop_p): New.
17548         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17549         names defined in loop.
17551 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17552             Sebastian Pop  <s.pop@samsung.com>
17554         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17555         Discard unstructured if-then-else regions.
17557 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17558             Sebastian Pop  <s.pop@samsung.com>
17560         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17561         (cleanup_loop_iter_dom): Remove.
17562         (build_loop_iteration_domains): Remove.
17563         (build_scop_context): Remove.
17564         (build_scop_iteration_domain): Remove.
17565         (add_loop_constraints): New.
17566         (build_iteration_domains): New.
17567         (build_poly_scop): Call build_iteration_domains.
17569 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17570             Sebastian Pop  <s.pop@samsung.com>
17572         * graphite-scop-detection.c
17573         (scop_detection::harmful_loop_in_region): Free dom and loops.
17574         (scop_detection::loop_body_is_valid_scop): Free bbs.
17576 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17577             Sebastian Pop  <s.pop@samsung.com>
17579         * graphite-scop-detection.c (record_loop_in_sese): New.
17580         (gather_bbs::before_dom_children): Call record_loop_in_sese.
17581         (build_scops): Remove call to build_sese_loop_nests.
17582         * sese.c (sese_record_loop): Remove.
17583         (build_sese_loop_nests): Remove.
17584         (new_sese_info): Remove region->loops.
17585         (free_sese_info): Same.
17586         * sese.h (sese_contains_loop): Same.
17587         (build_sese_loop_nests): Remove.
17588         (sese_contains_loop): Remove.
17590 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17591             Sebastian Pop  <s.pop@samsung.com>
17593         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17594         loop_is_valid_in_scop.
17595         (scop_detection::harmful_stmt_in_region): Renamed
17596         harmful_loop_in_region.
17597         Call loop_is_valid_in_scop.
17599 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17600             Sebastian Pop  <s.pop@samsung.com>
17602         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17603         isl_ast_node_mark.
17605 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17606             Sebastian Pop  <s.pop@samsung.com>
17608         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17609         * graphite.h (struct poly_bb): Remove field is_reduction.
17610         (PBB_IS_REDUCTION): Remove.
17612 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17613             Sebastian Pop  <s.pop@samsung.com>
17615         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17616         (add_pdr_constraints): Same.
17617         (scop_get_reads): Same.
17618         (scop_get_must_writes): Same.
17619         (scop_get_may_writes): Same.
17620         (scop_get_original_schedule): Same.
17621         (extend_schedule): Same.
17622         (apply_schedule_on_deps): Same.
17623         (carries_deps): Same.
17624         (compute_deps): Same.
17625         (scop_get_dependences): Same.
17626         * graphite-isl-ast-to-gimple.c
17627         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17628         * graphite-optimize-isl.c (get_schedule_for_band): Same.
17629         (get_schedule_for_band_list): Same.
17630         (get_schedule_map): Same.
17631         (apply_schedule_map_to_scop): Same.
17632         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17633         (build_loop_iteration_domains): Same.
17634         (add_condition_to_pbb): Same.
17635         (add_param_constraints): Same.
17636         (pdr_add_memory_accesses): Same.
17637         (pdr_add_data_dimensions): Same.
17639 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17641         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17642         requirements.
17644 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17646         * common.opt (feliminate-dwarf2-dups): Replace references to
17647         "DWARF 2" with just "DWARF".
17648         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17649         * doc/extend.texi: Likewise.
17650         * doc/cpp.texi: Likewise.
17651         * doc/invoke.texi: Likewise.
17652         (Option Summary): Add -gdwarf to list of Debugging Options.
17653         (Debugging Options): Document -gdwarf.
17654         * doc/contrib.texi: Spell "DWARF" like that.
17656 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17658         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17659         warning.  Fix up formatting.
17661         PR middle-end/67653
17662         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17663         attempt to mark memory input operand addressable and
17664         call prepare_gimple_addressable in that case.  Don't adjust
17665         input_location for diagnostics, use error_at instead.
17667 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
17669         * config/rs6000/ppc-auxv.h: New file.
17670         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17671         (cpu_is): Likewise.
17672         (cpu_supports): Likewise.
17673         * config/rs6000/rs6000.c: include "ppc-auxv.h".
17674         (cpu_is_info): New variable.
17675         (cpu_supports_info): Likewise.
17676         (tcb_verification_symbol): Likewise.
17677         (cpu_builtin_p): Likewise.
17678         (cpu_expand_builtin): New function.
17679         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17680         (rs6000_init_builtins): Likewise.
17681         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17682         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17683         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17684         * configure: Regenerate.
17685         * config.in: Likewise.
17686         * doc/extend.texi (PowerPC Built-in Functions): Document
17687         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17689 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
17691         PR target/68609
17692         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17693         domain check.
17694         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17695         for V4SFmode.
17697 2016-01-20  Richard Henderson  <rth@redhat.com>
17699         PR bootstrap/69343
17700         PR bootstrap/69339
17701         PR tree-opt/68964
17702         Revert:
17703         * tree.c (tm_define_builtin): New.
17704         (find_tm_vector_type): New.
17705         (build_tm_vector_builtins): New.
17706         (build_common_builtin_nodes): Call it.
17708 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
17710         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17711         (arm_fp_ok): Likewise.
17712         (arm_fp): Likewise.
17713         (arm_crypto): Likewise.
17715 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
17716             Richard Biener  <rguenther@suse.de>
17718         PR tree-optimization/69328
17719         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17720         vectors have same number of elements.
17721         (vectorizable_condition): Fix masked version recognition.
17723 2016-01-20  Richard Biener  <rguenther@suse.de>
17725         PR tree-optimization/69345
17726         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17727         (VN_INFO_PTR_INFO): Likewise.
17728         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17729         info when it is equal between non-dominating SSA names.
17730         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17731         Make sure to look at original SSA infos.
17733 2016-01-20  Jeff Law  <law@redhat.com>
17735         PR target/25114
17736         * config/m68k/predicates.md (pow2_m1_operand): New predicate
17737         extracted from ...
17738         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17739         (pc_or_label_operand): New predicate.
17740         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17741         tests for small integers that are 2^n - 1.
17743 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
17745         * doc/invoke.texi (Options Summary): Add '.' after @xref.
17747 2016-01-19  Jeff Law  <law@redhat.com>
17749         PR middle-end/69347
17750         * tree-ssa-threadbackwards.c
17751         (fsm_find_control_statement_thread_paths): Do not try to lookup
17752         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17754 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
17756         * doc/lto.texi: Remove text that says only Gold has linker plugin
17757         support.
17759 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
17761         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17762         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17763         the DIE accordingly.
17764         (modified_type_die): Add REVERSE parameter and pass it recursively,
17765         as well as to base_type_die.  Adjust presence check accordingly.
17766         (base_type_for_mode): Adjust call to modified_type_die.
17767         (add_type_attribute): Add REVERSE parameter and pass it to
17768         modified_type_die.
17769         (generic_parameter_die): Adjust call to add_type_attribute.
17770         (add_scalar_info): Likewise.
17771         (add_subscript_info): Likewise.
17772         (gen_array_type_die): Likewise.
17773         (gen_descr_array_type_die): Likewise.
17774         (gen_entry_point_die): Likewise.
17775         (gen_enumeration_type_die): Likewise.
17776         (gen_formal_parameter_die): Likewise.
17777         (gen_subprogram_die): Likewise.
17778         (gen_variable_die ): Likewise.
17779         (gen_const_die): Likewise.
17780         (gen_field_die): Likewise.
17781         (gen_pointer_type_die): Likewise.
17782         (gen_reference_type_die): Likewise.
17783         (gen_ptr_to_mbr_type_die): Likewise.
17784         (gen_inheritance_die): Likewise.
17785         (gen_subroutine_type_die): Likewise.
17786         (gen_typedef_die): Likewise.
17787         (force_type_die): Adjust call to modified_type_die.
17789 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
17791         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17792         flow throughout the file.  Fix broken link to Objective-C 2.0
17793         documentation.
17794         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17795         errors.
17797 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17799         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17801 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17803         PR ipa/66223
17804         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17805         (maybe_record_node): Record cxa_pure_virtual as the only possible
17806         target if there are not ohter candidates.
17807         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17809 2016-01-19  Richard Biener  <rguenther@suse.de>
17811         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17812         (get_memory_order): Likewise.
17814 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
17816         * tree-vect-stmts.c (vectorizable_store): Check
17817         rhs vectype.
17819 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
17821         PR jit/68446
17822         * gcc.c (driver::decode_argv): Add call to
17823         init_opts_obstack before init_options_struct.
17824         * opts.c (init_opts_obstack): Remove idempotency.
17825         (init_options_struct): Replace call to init_opts_obstack
17826         with a gcc_assert to verify that it has already been called.
17827         * toplev.c (toplev::main): Add call to init_opts_obstack before
17828         calls to init_options_struct.
17829         (toplev::finalize): Move cleanup of opts_obstack next to
17830         cleanup of save_decoded_options, clearing the latter, and
17831         save_decoded_options_count.
17833 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17835         PR target/69135
17836         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17837         attribute to unconditional.  Remove %? from output template.
17839 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17840             Jiong Wang  <jiong.wang@arm.com>
17842         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17843         generated from different expand order.
17845 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17847         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17848         Add support for CCMP costing.
17850 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17852         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17853         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17854         (fccmpe<mode>): Likewise.
17855         (fcmp): Rename to fcmp and globalize pattern.
17856         (fcmpe): Likewise.
17857         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17858         (aarch64_gen_ccmp_next): Add FP support.
17860 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17862         * target.def (gen_ccmp_first): Update documentation.
17863         (gen_ccmp_next): Likewise.
17864         * doc/tm.texi (gen_ccmp_first): Update documentation.
17865         (gen_ccmp_next): Likewise.
17866         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17867         expand_ccmp_expr_1.  Improve comments.
17868         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17869         (ccmp_ior<mode>): Remove pattern.
17870         (cmp<mode>): Remove expand.
17871         (cmp): Globalize pattern.
17872         (cstorecc4): Use cc_register.
17873         (mov<mode>cc): Remove ccmp_cc_register check.
17874         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17875         Simplify after removal of CC_DNE/* modes.
17876         (aarch64_ccmp_mode_to_code): Remove.
17877         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
17878         In 'k' case use integer as condition.
17879         (aarch64_nzcv_codes): Remove inverted cases.
17880         (aarch64_code_to_ccmode): Remove.
17881         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
17882         comparison with CC register to be used in folowing CCMP/branch/CSEL.
17883         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17884         pattern.  Return the comparison with CC register.  Invert conditions
17885         when bitcode is OR.
17886         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17887         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17889 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17891         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17892         instrumented_version.
17894 2016-01-19  Richard Biener  <rguenther@suse.de>
17896         PR tree-optimization/69336
17897         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17898         handled components with get_ref_base_and_extent.
17899         (equal_mem_array_ref_p): Adjust.
17901 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17903         PR debug/65779
17904         * shrink-wrap.c: Include valtrack.h.
17905         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
17906         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17907         in between insn and where it will be moved to.  Call
17908         dead_debug_insert_temp.
17909         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
17910         first and dead_debug_local_finish at the end.
17911         For uses and defs bitmap, handle all regs in between REGNO and
17912         END_REGNO, not just the first one.
17914 2016-01-19  Richard Biener  <rguenther@suse.de>
17916         PR tree-optimization/69352
17917         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17918         (equal_mem_array_ref_p): Constrain size and max size properly.
17919         Compare the reverse flag.
17921 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
17923         * ira.c (ira): Update regstat data if we deleted insns.
17925 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17927         PR rtl-optimization/68955
17928         PR rtl-optimization/64557
17929         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17930         here.  Fix up formatting.
17931         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17933 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17935         PR lto/69133
17936         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17937         assume that the node has body.
17938         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17939         check.
17941 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17943         * lto-streamer-out.c (lto_output): Do not stream instrumentation
17944         thunks.
17946 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17948         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17949         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17951 2016-01-19  Martin Jambor  <mjambor@suse.cz>
17952             Martin Liska  <mliska@suse.cz>
17953             Michael Matz  <matz@suse.de>
17955         * Makefile.in (OBJS): Add new source files.
17956         (GTFILES): Add hsa.c.
17957         * common.opt (disable_hsa): New variable.
17958         (-Whsa): New warning.
17959         * config.in (ENABLE_HSA): New.
17960         * configure.ac: Treat hsa differently from other accelerators.
17961         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17962         $enable_offloading.
17963         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17964         * doc/install.texi (Configuration): Document --with-hsa-runtime,
17965         --with-hsa-runtime-include, --with-hsa-runtime-lib and
17966         --with-hsa-kmt-lib.
17967         * doc/invoke.texi (-Whsa): Document.
17968         (hsa-gen-debug-stores): Likewise.
17969         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17970         to invoke offload compiler for hsa acclerator.
17971         * opts.c (common_handle_option): Determine whether HSA offloading
17972         should be performed.
17973         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17974         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17975         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17976         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17977         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17978         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17979         GF_OMP_FOR_KIND_GRID_LOOP.
17980         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17981         (pp_gimple_stmt_1): Likewise.
17982         * gimple-walk.c (walk_gimple_stmt): Likewise.
17983         * gimple.c (gimple_build_omp_grid_body): New function.
17984         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17985         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17986         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17987         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17988         GF_OMP_TEAMS_GRID_PHONY.
17989         (gimple_statement_omp_single_layout): Updated comments.
17990         (gimple_build_omp_grid_body): New function.
17991         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17992         (gimple_omp_for_grid_phony): New function.
17993         (gimple_omp_for_set_grid_phony): Likewise.
17994         (gimple_omp_parallel_grid_phony): Likewise.
17995         (gimple_omp_parallel_set_grid_phony): Likewise.
17996         (gimple_omp_teams_grid_phony): Likewise.
17997         (gimple_omp_teams_set_grid_phony): Likewise.
17998         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17999         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
18000         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
18001         (BUILT_IN_GOMP_TARGET): Updated type.
18002         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
18003         (adjust_for_condition): New function.
18004         (get_omp_for_step_from_incr): Likewise.
18005         (extract_omp_for_data): Moved parts to adjust_for_condition and
18006         get_omp_for_step_from_incr.
18007         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
18008         (fixup_child_record_type): Bail out if receiver_decl is NULL.
18009         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
18010         (scan_omp_parallel): Do not create child functions for phony
18011         constructs.
18012         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
18013         (scan_omp_1_op): Checking assert we are not remapping to
18014         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
18015         (parallel_needs_hsa_kernel_p): New function.
18016         (expand_parallel_call): Register apprpriate parallel child
18017         functions as HSA kernels.
18018         (grid_launch_attributes_trees): New type.
18019         (grid_attr_trees): New variable.
18020         (grid_create_kernel_launch_attr_types): New function.
18021         (grid_insert_store_range_dim): Likewise.
18022         (grid_get_kernel_launch_attributes): Likewise.
18023         (get_target_argument_identifier_1): Likewise.
18024         (get_target_argument_identifier): Likewise.
18025         (get_target_argument_value): Likewise.
18026         (push_target_argument_according_to_value): Likewise.
18027         (get_target_arguments): Likewise.
18028         (expand_omp_target): Call get_target_arguments instead of looking
18029         up for teams and thread limit.
18030         (grid_expand_omp_for_loop): New function.
18031         (grid_arg_decl_map): New type.
18032         (grid_remap_kernel_arg_accesses): New function.
18033         (grid_expand_target_kernel_body): New function.
18034         (expand_omp): Call it.
18035         (lower_omp_for): Do not emit phony constructs.
18036         (lower_omp_taskreg): Do not emit phony constructs but create for them
18037         a temporary variable receiver_decl.
18038         (lower_omp_taskreg): Do not emit phony constructs.
18039         (lower_omp_teams): Likewise.
18040         (lower_omp_grid_body): New function.
18041         (lower_omp_1): Call it.
18042         (grid_reg_assignment_to_local_var_p): New function.
18043         (grid_seq_only_contains_local_assignments): Likewise.
18044         (grid_find_single_omp_among_assignments_1): Likewise.
18045         (grid_find_single_omp_among_assignments): Likewise.
18046         (grid_find_ungridifiable_statement): Likewise.
18047         (grid_target_follows_gridifiable_pattern): Likewise.
18048         (grid_remap_prebody_decls): Likewise.
18049         (grid_copy_leading_local_assignments): Likewise.
18050         (grid_process_kernel_body_copy): Likewise.
18051         (grid_attempt_target_gridification): Likewise.
18052         (grid_gridify_all_targets_stmt): Likewise.
18053         (grid_gridify_all_targets): Likewise.
18054         (execute_lower_omp): Call grid_gridify_all_targets.
18055         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
18056         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
18057         (tree_omp_clause): Added union field dimension.
18058         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
18059         * tree.c (omp_clause_num_ops): Added number of arguments of
18060         OMP_CLAUSE__GRIDDIM_.
18061         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
18062         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
18063         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
18064         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
18065         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
18066         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
18067         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
18068         * tree-pass.h (make_pass_gen_hsail): Declare.
18069         (make_pass_ipa_hsa): Likewise.
18070         * ipa-hsa.c: New file.
18071         * lto-section-in.c (lto_section_name): Add hsa section name.
18072         * lto-streamer.h (lto_section_type): Add hsa section.
18073         * timevar.def (TV_IPA_HSA): New.
18074         * hsa-brig-format.h: New file.
18075         * hsa-brig.c: New file.
18076         * hsa-dump.c: Likewise.
18077         * hsa-gen.c: Likewise.
18078         * hsa.c: Likewise.
18079         * hsa.h: Likewise.
18080         * toplev.c (compile_file): Call hsa_output_brig.
18081         * hsa-regalloc.c: New file.
18083 2016-01-18  Jeff Law  <law@redhat.com>
18085         PR tree-optimization/69320
18086         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
18087         ranged object, do nothing if the RHS constant is not [0..1].
18088         (optimize_stmt): Comparing a boolean ranged object against a
18089         constant outside [0..1] results in a compile-time constant.
18091         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
18092         test.
18094 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
18096         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18097         (Option Summary): Update to reflect new section and moved options.
18098         (C++ Dialect Options): Move -fstats to new section.
18099         (Debugging Options): Move all dump, statistics, and other GCC
18100         developer options to new section.  Rewrite section introduction
18101         and re-order remaining options to put the more basic ones first.
18102         (Optimization Options): Move -fira-verbose and -flto-report* to
18103         new section.
18104         (Developer Options): New section incorporating moved options.
18105         * doc/cppopts.texi (-dM): Update cross-reference.
18107 2016-01-18  Richard Henderson  <rth@redhat.com>
18109         PR target/69176
18110         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
18111         operands to pseudo only if CSE is expected.  Split long immediate
18112         operands only after reload, and for the stack pointer.
18113         (*add<GPI>3_pluslong): Remove.
18114         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
18115         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
18116         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
18117         (*add<GPI>3 peepholes): New.
18118         (*add<GPI>3 splitters): New.
18119         * config/aarch64/constraints.md (Upl): New.
18120         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
18122 2016-01-18  Richard Biener  <rguenther@suse.de>
18124         PR tree-optimization/69297
18125         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
18126         stmt at most once.
18127         (vect_bb_vectorization_profitable_p): Clear visited flag again.
18129 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18131         PR middle-end/68542
18132         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
18133         of mixind vector and scalar types.
18134         (fold_relational_const): Add handling of vector
18135         comparison with boolean result.
18136         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
18137         comparison of vector operands with boolean result for EQ/NE only.
18138         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
18139         (verify_gimple_cond): Likewise.
18140         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
18141         valid type of VAL.
18143 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18145         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
18146         !TARGET_OCTEON.
18148 2016-01-18  Richard Biener  <rguenther@suse.de>
18150         PR middle-end/69308
18151         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
18153 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18155         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
18157 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18159         * omp-low.c (set_oacc_fn_attrib): Make extern.
18160         * omp-low.h (set_oacc_fn_attrib): Declare.
18161         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
18162         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
18163         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
18164         Add and handle function parameter oacc_kernels_p.
18165         (find_reduc_addr, get_omp_data_i_param): New function.
18166         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
18167         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
18168         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
18169         Calculate dominance info.  Skip loops that are not in a kernels region
18170         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
18171         (pass_parallelize_loops::execute): Call parallelize_loops with
18172         oacc_kernels_p argument.
18173         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
18174         New member function.
18175         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
18176         * passes.def: Add argument to pass_parallelize_loops instantation.
18178 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18180         * tree-parloops.c (pass_parallelize_loops::execute): Allow
18181         pass_parallelize_loops to be run outside the loop pipeline.
18183 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18185         * tree-scalar-evolution.c (follow_copies_to_constant): New.
18186         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
18188 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18190         PR target/63679
18191         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
18192         using get_ref_base_and_extent.
18193         (equal_mem_array_ref_p): New.
18194         (hashable_expr_equal_p): Add call to previous.
18196 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18198         PR target/63679
18199         * tree-sra.c (disqualified_constants, constant_decl_p): New.
18200         (sra_initialize): Allocate disqualified_constants.
18201         (sra_deinitialize): Free disqualified_constants.
18202         (disqualify_candidate): Update disqualified_constants when appropriate.
18203         (create_access): Scan for constant-pool entries as we go along.
18204         (scalarizable_type_p): Add check against type_contains_placeholder_p.
18205         (maybe_add_sra_candidate): Allow constant-pool entries.
18206         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
18207         (initialize_constant_pool_replacements): New.
18208         (sra_modify_assign): Avoid mangling assignments created by previous,
18209         and don't generate writes into constant pool.
18210         (sra_modify_function_body): Call initialize_constant_pool_replacements.
18212 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18214         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
18215         andnot instruction.
18216         (scalar_chain::convert_op): Likewise.
18217         * config/i386/i386.md (*andndi3_doubleword): New.
18219 2016-01-18  Richard Biener  <rguenther@suse.de>
18221         PR tree-optimization/69170
18222         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
18223         building a vector from scalar results of a pattern stmt.
18225 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
18227         * haifa-sched.c (autopref_multipass_init): Work around
18228         -Wmaybe-uninitialized warning.
18230 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18232         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
18233         against the constant 0.
18235 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18237         PR tree-optimization/68799
18238         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
18239         look up phi candidates in the statement-candidate map.
18240         (phi_add_costs): Likewise.
18241         (record_phi_increments): Likewise.
18242         (phi_incr_cost): Likewise.
18243         (ncd_with_phi): Likewise.
18244         (all_phi_incrs_profitable): Likewise.
18246 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
18248         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
18249         -Wmaybe-uninitialized warning.
18251 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
18253         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18254         (Option Summary): Update to reflect new section and moved options.
18255         (C++ Dialect Options): Move -fvtable-verify and related options.
18256         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
18257         and profiling-related options.
18258         (Optimization Options): Move profile generation options and
18259         -fstack-protector and related options.
18260         (Instrumentation Options): New section incorporating moved options.
18261         (Code Generation Options): Move -finstrument-functions and
18262         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
18264 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18266         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
18268 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18270         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
18272 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
18274         * hash-table.h (hash_table::empty): Turn into an inline wrapper
18275         that checks whether the table is already empty.  Rename the
18276         original implementation to...
18277         (hash_table::empty_slot): ...this new private function.
18279 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
18281         PR diagnostic/68899
18282         * diagnostic-show-locus.c (layout::print_source_line): Move x
18283         offset of line until after call to
18284         get_line_width_without_trailing_whitespace.
18286 2016-01-15  Jeff Law  <law@redhat.com>
18288         PR tree-optimization/69270
18289         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18290         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
18291         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18292         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18293         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18294         ssa_name_has_boolean_range and constant_boolean_node.
18296 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18298         PR rtl-optimization/69030
18299         * lra-spills.c (remove_pseudos): Check nrefs and make the function
18300         returning bool.
18301         (spill_pseudos): Delete debug insn for dead pseudo.
18302         (lra_spill): Initiate spill_hard_reg and slots memory separately.
18304 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
18306         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18307         New.
18308         (TYPES_UNOPUS): Likewise.
18309         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18310         builtin type, from UNOP to UNOPUS.
18311         (lbtruncuv4sf): Likewise.
18312         (lbtruncuv2df): Likewise.
18313         (lrounduv2sf): Likewise.
18314         (lrounduv4sf): Likewise.
18315         (lrounduv2df): Likewise.
18316         (lroundusf): Likewise.
18317         (lroundusf): Likewise.
18318         (lceiluv2sf): Likewise.
18319         (lceiluv4sf): Likewise.
18320         (lceiluv2df): Likewise.
18321         (lceilusf): Likewise.
18322         (lceiludf): Likewise.
18323         (lflooruv2sf): Likewise.
18324         (lflooruv4sf): Likewise.
18325         (lflooruv2df): Likewise.
18326         (lfloorusf): Likewise.
18327         (lfloorudf): Likewise.
18328         (lfrintnuv2sf): Likewise.
18329         (lfrintnuv4sf): Likewise.
18330         (lfrintnuv2df): Likewise.
18331         (lfrintnusf): Likewise.
18332         (lfrintnudf): Likewise.
18333         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18334         conversion.
18335         (vcvtq_u32_f32): Likewise.
18336         (vcvtq_u64_f64): Likewise.
18337         (vcvta_u32_f32): Likewise.
18338         (vcvtaq_u32_f32): Likewise.
18339         (vcvtaq_u64_f64): Likewise.
18340         (vcvtm_u32_f32): Likewise.
18341         (vcvtmq_u32_f32): Likewise.
18342         (vcvtmq_u64_f64): Likewise.
18343         (vcvtn_u32_f32): Likwise.
18344         (vcvtnq_u32_f32): Likewise.
18345         (vcvtnq_u64_f64): Likewise.
18346         (vcvtp_u32_f32): Likewise.
18347         (vcvtpq_u32_f32): Likewise.
18348         (vcvtpq_u64_f64): Likewise.
18349         (vcvtmd_u64_f64): Likewise.
18350         (vcvtms_u32_f32): Likewise.
18351         (vcvtad_u64_f64): Likewise.
18352         (vcvtas_u32_f32): Likewise.
18353         (vcvtnd_u64_f64): Likewise.
18354         (vcvtns_u32_f32): Likewise.
18355         (vcvtpd_u64_f64): Likewise.
18356         (vcvtps_u32_f32): Likewise.
18358 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18360         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18361         CSEL of zero_extended registers.
18363 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18365         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18366         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18368 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18370         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18371         false when argument string is not found in the attributes table
18372         at all.
18374 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
18376         PR target/68609
18377         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18378         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18379         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18380         precision estimate.
18382 2016-01-15  Richard Biener  <rguenther@suse.de>
18384         PR tree-optimization/66856
18385         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18386         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18387         (vect_create_new_slp_node): Increment stmt reference count.
18388         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18389         an SLP tree before swapping operands.
18390         (vect_build_slp_tree): Likewise.
18391         (destroy_bb_vec_info): Free stmt info after SLP instances.
18392         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18393         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18394         (STMT_VINFO_NUM_SLP_USES): New macro.
18396 2016-01-15  Richard Biener  <rguenther@suse.de>
18398         PR debug/69137
18399         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18400         (add_linkage_name): ... here.
18401         (gen_typedef_die): Use add_linkage_name_raw instead of
18402         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18403         if necessary.
18405 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
18407         * gimplify.c (oacc_default_clause): Decode reference and pointer
18408         types for both kernels and parallel regions.
18410 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18412         PR middle-end/69246
18413         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18415 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18417         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18418         (convert_scalars_to_vector): Likewise.
18420 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
18422         * doc/extend.texi (Type Traits): Fix grammar.
18424 2016-01-15  Martin Jambor  <mjambor@suse.cz>
18426         * tree-inline.c (remap_decl): Use existing dclarations if
18427         remapping a type and prevent_decl_creation_for_types.
18428         (replace_locals_stmt): Do an initial remapping of non-VLA typed
18429         decls first.  Do real remapping with
18430         prevent_decl_creation_for_types set.
18431         * tree-inline.h (copy_body_data): New field
18432         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18433         padding.
18435 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18437         * config/s390/s390.opt (mmvcle): More verbose help text.
18439 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18441         * config/s390/s390.opt: Add period to -mzvector option text.
18443 2016-01-15  Richard Biener  <rguenther@suse.de>
18445         PR tree-optimization/68961
18446         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18447         of invariants in stores again.
18449 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18451         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18453 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18455         * config/i386/i386.c (ix86_expand_branch): Don't split
18456         DI mode xor instruction to SI mode.
18458 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18460         PR ipa/68148
18461         * ipa-icf.c (sem_function::merge): Virtual functions may become
18462         reachable even if they address is not taken and there are no
18463         idrect calls.
18465 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18467         * lto-streamer-out.c (subtract_estimated_size): New function.
18468         (get_symbol_initial_value): Use it.
18470 2016-01-15  Christian Bruel  <christian.bruel@st.com>
18472         PR target/65837
18473         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18474         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18475         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18476         use add_builtin_function_ext_scope instead of add_builtin_function.
18477         (neon_set_p, neon_crypto_set_p): Remove.
18478         (arm_init_builtins): Always call arm_init_neon_builtins and
18479         arm_init_crypto_builtins.
18480         (arm_expand_builtin): Check that builtins are allowed for the arch.
18481         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18482         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18483         arm_init_neon_builtins call.
18485 2016-01-15  Richard Biener  <rguenther@suse.de>
18487         PR tree-optimization/69117
18488         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18489         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18490         of the leader conservatively.
18491         (free_scc_vn): Restore original SSA name infos.
18493 2016-01-14  Jeff Law  <law@redhat.com>
18495         PR tree-optimization/69270
18496         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18497         single bit of precision, verify it's also unsigned.
18498         (record_edge_info): Use constant_boolean_node rather than fold_convert
18499         to convert boolean_true/boolean_false to the right type.
18501 2016-01-14  Richard Henderson  <rth@redhat.com>
18503         PR rtl-opt/69014
18504         * loop-doloop.c (record_reg_sets): New.
18505         (doloop_optimize): Reject the transform if the sequence
18506         clobbers registers live at the end of the loop block.
18507         (doloop_optimize_loops): Enable df_live if needed.
18509 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18511         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18512         * config/rs6000/rs6000.c: Likewise.
18513         * config/rs6000/rs6000.h: Likewise.
18514         * config/rs6000/rs6000.md: Likewise.
18515         * doc/extend.texi: Likewsie.
18517 2016-01-14  Jeff Law  <law@redhat.com>
18519         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18520         typo.
18522 2016-01-14  Richard Henderson  <rth@redhat.com>
18524         PR c/69272
18525         PR tree-opt/68964
18526         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18527         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18528         instead of builtin_decl_declared_p to test for declaration.
18530 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
18532         * doc/loop.texi (Loop Analysis and Representation): Document
18533         loop_depth function.
18535 2016-01-14  Tom de Vries  <tom@codesourcery.com>
18537         PR tree-optimization/68773
18538         * omp-low.c (expand_omp_target): Don't set force_output.
18539         * varpool.c (varpool_node::get_create): Same.
18540         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18541         offload_funcs with force_output.
18543 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18545         PR debug/69244
18546         * lra-eliminations.c (move_plus_up): Don't change anything if either
18547         the outer or inner subreg mode is not MODE_INT.
18548         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18549         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18551 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18553         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18554         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18555         reduc_uplus_@var{m}): Remove.
18556         * expr.c (expand_expr_real_2): Remove expansion path for
18557         reduc_[us](min|max|plus) optabs.
18558         * optabs-tree.c (scalar_reduc_to_vector): Remove.
18559         * optabs-tree.h (scalar_reduc_to_vector): Remove.
18560         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18561         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18562         * tree-vect-loop.c (vectorizable_reduction): Remove test for
18563         reduc_[us](min|max|plus) optabs.
18565 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18567         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18568         (reduc_plus_scal_v2sf): New.
18569         (reduc_smax_v2sf): Rename to...
18570         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18571         (reduc_smin_v2sf): Rename to...
18572         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18574 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
18576         * alias.c (compare_base_symbol_refs): New function.
18577         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18578         it.
18580 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18582         PR middle-end/68146
18583         PR tree-optimization/69155
18584         * tree-complex.c: Include cfganal.h.
18585         (phis_to_revisit): New variable.
18586         (extract_component): Add phiarg_p argument.  Assert that returned
18587         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18588         (update_phi_components): Partly rewrite to use loop over real/imag
18589         components instead of code duplication.  If extract_component returns
18590         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18591         create_tmp_reg into the PHI node instead, and mention the phi triplet
18592         in phis_to_revisit.
18593         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
18594         in phis_to_revisit at the end.
18596 2016-01-14  Richard Biener  <rguenther@suse.de>
18598         PR tree-optimization/68060
18599         * tree-vect-loop.c (vect_is_simple_reduction): Check the
18600         outer loop reduction is only used in the inner loop before
18601         detecting a double reduction.
18603 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18605         PR target/68269
18606         * combine.c (expand_field_assignment): Punt if compute_mode is
18607         unsupported scalar mode.
18609 2016-01-14  Richard Biener  <rguenther@suse.de>
18611         PR tree-optimization/66856
18612         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18613         SLP node only if it built successfully.
18614         (vect_analyze_slp_instance): Adjust.
18616 2016-01-14  Jeff Law  <law@redhat.com>
18618         PR tree-optimization/69270
18619         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18620         (record_edge_info): Use it.  Convert boolean_{true,false}_node
18621         to the type of op0.
18623 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
18625         PR ipa/66487
18626         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18627         use block_ultimate_origin
18628         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18630 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18632         * doc/invoke.texi (Submodel Options): Rename section to
18633         "Machine-Dependent Options" to better reflect its content.
18634         Rewrite introductory text to remove archaic CPU names.
18635         Update references.
18637 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18639         * doc/invoke.texi (Code Gen Options): Move section up in file,
18640         before target-specific options.  Update menu and option summary
18641         to reflect the new section ordering.
18643 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18645         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18646         (C++ Dialect Options): Add cross-reference to -std option.
18647         * doc/standards.texi (C++ Language): Document C++14 support.
18649 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18651         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18652         for pack/unpack functions for __ibm128.
18653         (PACK_IF): Likewise.
18654         (UNPACK_IF): Likewise.
18656         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18657         support for __ibm128 pack/unpack functions.
18658         (rs6000_invalid_builtin): Likewise.
18659         (rs6000_init_builtins): Likewise.
18660         (rs6000_opt_masks): Likewise.
18662         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18663         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18664         functions
18665         (RS6000_BTM_COMMON): Likewise.
18667         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18668         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18669         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18670         128-bit floating point.  Add support for the double values to be
18671         in Altivec registers for TF/IF packing and unpacking, but restrict
18672         TD packing sub-fields to be FPR registers.  Don't allow overlapped
18673         register support for packing.  Allow pack inputs to be memory
18674         locations.  Don't build generator functions for unpack<mode>_dm
18675         and unpack<mode>_nodm.
18676         (unpack<mode>_dm): Likewise.
18677         (unpack<mode>_nodm): Likewise.
18678         (pack<mode>): Likewise.
18680         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18681         built-in functions to pack/unpack explicit __ibm128 values.
18682         (__builtin_unpack_ibm128): Likewise.
18684         * doc/extend.texi (PowerPC Built-in Functions): Document
18685         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18687 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
18689         PR c/66208
18690         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18691         Add new arg loc and pass it down as context.
18692         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18693         to the location to use for the warning.
18694         (check_function_arguments): New arg loc.  All callers changed.  Pass
18695         it to check_function_nonnull.
18696         * c-common.h (check_function_arguments): Adjust declaration.
18698 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
18700         PR tree-optimization/69156
18701         * gimple.c (validate_type): Removed.
18702         (gimple_builtin_call_types_compatible_p): Use
18703         useless_type_conversion_p instead of validate_type.
18704         * value-prof.c (gimple_stringop_fixed_value): Fold
18705         icall_size to correct type.
18707 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18709         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18710         effects.
18712 2016-01-13  Richard Henderson  <rth@redhat.com>
18714         PR tree-opt/68964
18715         * target.def (builtin_tm_load, builtin_tm_store): Remove.
18716         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18717         (ix86_builtin_tm_store): Remove.
18718         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18719         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18720         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18721         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18722         * doc/tm.texi: Rebuild.
18724         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18725         (BUILT_IN_TM_MEMCPY_RTWN): New.
18726         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18727         fallback from vector to integer helpers.
18728         (build_tm_load): Handle vector types directly, instead of
18729         via target hook.
18730         (build_tm_store): Likewise.
18731         (expand_assign_tm): Prepare for register types not handled by
18732         the above.  Copy them to memory and use memcpy.
18733         * tree.c (tm_define_builtin): New.
18734         (find_tm_vector_type): New.
18735         (build_tm_vector_builtins): New.
18736         (build_common_builtin_nodes): Call it.
18738 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
18740         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18741         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
18743 2016-01-13  Tom de Vries  <tom@codesourcery.com>
18745         PR tree-optimization/69169
18746         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18747         handled_struct_type param.
18748         (create_variable_info_for, intra_create_variable_infos): Call
18749         create_variable_info_for_1 with extra arg.
18751 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
18753         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18754         and "armv8.1-a+crc" entries.
18756 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
18758         PR target/69228
18759         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18760         Change first operand predicate from register_or_constm1_operand
18761         to register_operand.
18762         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18763         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18764         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18765         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18766         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18767         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18768         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18769         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18770         comparison with constm1_rtx from vec_prefetch_gen part.
18772 2016-01-13  Richard Biener  <rguenther@suse.de>
18774         PR tree-optimization/69013
18775         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18776         Exchange assert for a test.
18778 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18780         PR target/69247
18781         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18783 2016-01-13  Richard Biener  <rguenther@suse.de>
18785         PR tree-optimization/69242
18786         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18787         assert with a check.
18789 2016-01-13  Richard Biener  <rguenther@suse.de>
18791         PR tree-optimization/69186
18792         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18793         Properly guard vect_update_misalignment_for_peel call.
18795 2016-01-12  Jeff Law  <law@redhat.com>
18797         PR tree-optimization/pr67755
18798         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18799         "need_profile_correction".
18800         (thread_block_1): Initialize new field to false by default.  If we
18801         have multiple thread paths through a common joiner to different
18802         final targets, then set new field to true.
18803         (compute_path_counts): Only do count adjustment when it's really
18804         needed.
18806 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18808         * doc/invoke.texi (Spec Files): Move section down in file, past
18809         all command-line option descriptions.
18811 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18813         PR middle-end/54809
18814         * doc/gty.texi: Remove documentation of mark_hook.
18815         * gengtype.c (struct write_types_data): Remove code to support
18816         mark_hook attribute.
18817         (walk_type): Likewise.
18818         (write_func_for_structure): Likewise.
18820 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18822         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18823         Directory Options, and -specs= to Overall Options.
18824         (Overall Options): Adjust similarly.  Reorder to group related
18825         options together.  Make -specs= cross-reference the spec file details.
18826         (Directory Options): Adjust similarly.
18828 2016-01-12  Jeff Law  <law@redhat.com>
18830         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18832 2016-01-12  Olivier Hainque  <hainque@adacore.com>
18834         * gcc.c (spec_undefvar_allowed): New global.
18835         (process_command): Set to true when running for --version or --help,
18836         alone or together.
18837         (getenv_spec_function): When the variable is not defined, use the
18838         variable name as the variable value if we're allowed not to issue
18839         a fatal error.
18841 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
18843         PR tree-optimization/68911
18844         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18845         information computed for expression "init + nit * step".
18847 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18849         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
18850         about name of GCC executable.  Remove deleted node from menu.
18851         (Directory Options) <-B>: Remove cross-reference to deleted node.
18852         (Target Options): Delete section.
18854 2016-01-12  Christian Bruel  <christian.bruel@st.com>
18856         PR target/69180
18857         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18858         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18860 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
18862         PR target/69198
18863         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18864         aligned_mem is properly set for AVX512-VL floating point masked
18865         stores.
18867         PR target/69175
18868         * ifcvt.c (cond_exec_process_if_block): When removing the last
18869         insn from then_bb, remove also any possible barriers that follow it.
18871 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18873         PR target/68456
18874         PR target/69226
18875         * config/i386/iamcu.h (SIZE_TYPE): New macro.
18876         (PTRDIFF_TYPE): Likewise.
18877         (WCHAR_TYPE): Likewise.
18878         (WCHAR_TYPE_SIZE): Likewise.
18879         (STDINT_LONG32): Likewise.
18881 2016-01-12  Richard Biener  <rguenther@suse.de>
18883         PR tree-optimization/69053
18884         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18885         convert initial value for cond reductions.
18887 2016-01-12  Richard Biener  <rguenther@suse.de>
18889         PR tree-optimization/69007
18890         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18891         widen_sum after dot_prod and sad.
18893 2016-01-12  Richard Biener  <rguenther@suse.de>
18895         PR tree-optimization/69168
18896         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18897         pattern stmt SLP type.
18898         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18899         end up unused so cope with that case.
18901 2016-01-12  Richard Biener  <rguenther@suse.de>
18903         PR tree-optimization/69157
18904         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18905         stmts def type only during analyze phase.
18906         (vectorizable_call): Likewise.
18907         (vectorizable_simd_clone_call): Likewise.
18908         (vectorizable_conversion): Likewise.
18909         (vectorizable_assignment): Likewise.
18910         (vectorizable_shift): Likewise.
18911         (vectorizable_operation): Likewise.
18912         (vectorizable_store): Likewise.
18913         (vectorizable_load): Likewise.
18915 2016-01-12  Richard Biener  <rguenther@suse.de>
18917         PR tree-optimization/69174
18918         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18919         space.
18920         (vectorizable_load): Properly compute the number of loads needed
18921         for permuted strided SLP loads and do not spuriously assign
18922         to SLP_TREE_VEC_STMTS.
18924 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
18926         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18927         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18928         (MD_EXEC_PREFIX): Remove.
18929         (MD_STARTFILE_PREFIX) Removee.
18930         (FILE_NAME_ABSOLUTE_P): Remove.
18931         (CPP_SPEC): Do not read macros from sys/version.h.
18932         (LINK_COMMAND_SPEC): Remove.
18933         (LOCAL_INCLUDE_DIR): Remove.
18934         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18935         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18936         (POST_LINK_SPEC): Define to invoke stubify after linker
18937         (LIBSTDCXX): Remove define
18938         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18939         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18940         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18941         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18942         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18943         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18944         (i386_djgpp_asm_named_section): Add propotype of new procedure
18946         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18947         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18948         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18949         in config/i386/djgpp.h).
18950         (STANDARD_STARTFILE_PREFIX_2): Define identical to
18951         STANDARD_STARTFILE_PREFIX_1.
18952         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18953         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18954         installation errors.
18955         (MAX_OFILE_ALIGNMENT): Define to 128.
18956         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18958         * config/i386/djgpp.c: New file. Add implementation of
18959         i386_djgpp_asm_named_section.
18961         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18963         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18964         Add rule for building djgpp.o.
18966 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18968         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18969         (rtx_is_swappable_p): Reductions are swappable.
18970         (insn_is_swappable_p): V2DF reductions are swappable.
18972 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
18974         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18975         reloads for other unsupported memory operands.
18977 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18978             Jim Wilson  <jim.wilson@linaro.org>
18980         PR target/69194
18981         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18982         copy_to_mode_reg instead of force_reg.
18984 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18986         PR target/69225
18987         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18988         TARGET_80387 is true.
18990 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
18992         PR target/69071
18993         * lra-eliminations.c (move_plus_up): Only move plus up
18994         if subreg of the constant can be simplified into constant
18995         and use the simplified subreg of the constant instead of
18996         the original constant.
18998         * fold-const.c (fold_convertible_p): Don't return true
18999         for conversion of VECTOR_TYPE to same sized integral type.
19000         (fold_convert_loc): Fix up formatting.  Fold conversion of
19001         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
19002         instead of NOP_EXPR.
19004         PR tree-optimization/69214
19005         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
19006         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19007         Formatting fix.
19009         PR tree-optimization/69207
19010         * tree-vect-slp.c (vect_get_constant_vectors): For
19011         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
19012         fold_convertible_p to vector_type's element type, and always
19013         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
19015 2016-01-11  Richard Biener  <rguenther@suse.de>
19017         PR tree-optimization/69173
19018         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
19019         fixup the cycle if all stmts are in a pattern.
19021 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
19023         PR middle-end/68999
19024         * alias.c (base_alias_check): Move check for addresses with
19025         alignment ANDs before the call for compare_base_decls.
19026         (memrefs_conflict_p): Return -1 for different decls
19027         that went through alignment adjustments.
19029 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19031         PR rtl-optimization/68796
19032         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
19033         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
19034         and QImode comparisons against zero with CC_NZmode.
19035         * config/aarch64/iterators.md (short_mask): New mode_attr.
19037 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
19039         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
19040         (<avx512>_store<mode>_mask): Likewise.
19042 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
19043             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19045         PR rtl-optimization/68841
19046         * ifcvt.c (struct noce_if_info): Add orig_x field.
19047         (bbs_ok_for_cmove_arith): Add to_rename parameter.
19048         Don't record conflicts on to_rename if it's present.
19049         Allow memory destinations in sets.
19050         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
19051         blocks, passing orig_x to the checks.
19052         (noce_process_if_block): Set if_info->orig_x appropriately.
19054 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19056         PR tree-optimization/69069
19057         * tree-parloops.c (create_parallel_loop): Add missing phi args.
19059 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
19061         PR rtl-optimization/68920
19062         * config/i386/i386.c (ix86_option_override_internal): Restrict number
19063         of conditional moves for  RTL if-conversion to 1 for
19064         TARGET_ONE_IF_CONV_INSN.
19065         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
19066         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
19067         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
19068         parameter to restirct number of conditional moves for
19069         RTL if-conversion.
19070         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
19071         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
19072         conditionl moves.
19074 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
19076         PR bootstrap/69123
19077         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
19078         onepart vars.  Fix typo in comment.  Fix reversed condition in
19079         unshare test.
19080         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
19082         PR bootstrap/69123
19083         * var-tracking.c (dump_onepart_variable_differences): New.
19084         (dataflow_set_different): If a detailed dump is requested,
19085         delay early returns and dump differences between onepart
19086         variables present before and after, and added variables.
19088 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19090         PR target/69010
19091         * expr.c (expand_expr_real_1): For boolean vector constants
19092         with a scalar mode use const_scalar_mask_from_tree.
19093         (const_scalar_mask_from_tree): New.
19094         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
19095         assigned to a mask type to handle constants.
19097 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19099         PR ipa/69044
19100         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
19101         useless parameters if we cannot change function signature.
19103 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19105         PR ipa/66616
19106         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
19107         flag.
19109 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19111         PR tree-optimization/69109
19112         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
19113         latch with phi.
19115 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19117         PR tree-optimization/69108
19118         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
19119         res is not used in a phi.
19121 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
19123         PR 67425
19124         * common.opt (frandom-seed): Fix parameter name.
19125         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
19127 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19129         PR tree-optimization/69058
19130         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
19131         not supported.
19133 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
19135         * config/arc/arc.opt (mdiv-rem): Add period to the end.
19136         (mcode-density): Likewise.
19138 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19140         PR tree-optimization/69062
19141         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
19142         (parallelize_loops): Don't paralelize loop that has phi with address
19143         arg.
19145 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19147         PR tree-optimization/69039
19148         * tree-parloops.c (try_create_reduction_list): Only allow single exit
19149         phi for reduction.
19151 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
19153         PR middle-end/68743
19154         * match.pd: Require target has function_c99_misc before doing
19155         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
19157 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
19159         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
19160         use GMPINC.
19161         * configure: Regenerate.
19163 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
19165         PR middle-end/50865
19166         PR tree-optimization/69097
19167         * fold-const.h (expr_not_equal_to): New prototype.
19168         * fold-const.c: Include stringpool.h and tree-ssanames.h.
19169         (expr_not_equal_to): New function.
19170         * match.pd (X % -Y is the same as X % Y): Don't optimize
19171         unless X is known not to be equal to minimum or Y is known
19172         not to be equal to -1.
19173         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
19174         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
19175         (simplify_stmt_using_ranges): Adjust caller.
19176         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
19177         substitute_and_fold.
19179 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
19181         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
19182         w/o DECL_NAME.
19184 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19186         PR tree-optimization/69167
19187         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
19188         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
19189         ops[0] comparison.
19190         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
19192 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19193             Richard Biener  <rguenther@suse.de>
19195         PR tree-optimization/68707
19196         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
19197         instances that can be handled via vect_load_lanes.
19199 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
19201         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
19202         if we can't determine address equivalence.
19203         * alias.c (compare_base_decl): Update for changed return value of
19204         symtab_node::equal_address_to.
19206 2016-01-08  Jason Merrill  <jason@redhat.com>
19208         PR c++/68983
19209         PR c++/67557
19210         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
19211         * expr.c (store_field): Not here.
19212         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
19213         call with TREE_ADDRESSABLE type.
19214         * tree-cfg.c (verify_gimple_call): Adjust.
19216 2016-01-08  Olivier Hainque  <hainque@adacore.com>
19218         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
19219         libc_internal.
19221 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19223         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
19224         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
19225         (reduc_smin_v2sf): Rename to...
19226         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
19227         (reduc_splus_v2sf): Rename to...
19228         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
19230 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19232         PR tree-optimization/69162
19233         * gimplify.c (gimplify_va_arg_expr): Encode original type of
19234         valist argument in another argument.
19235         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
19236         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
19237         to determine the va_list type, build a MEM_REF instead of
19238         build_fold_indirect_ref.
19240         PR tree-optimization/69172
19241         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
19242         gimple_build.
19244 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19246         PR tree-optimization/67781
19247         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
19248         and cmpnop in two steps: first the ones not accessed in original
19249         gimple expression in a endian independent way and then the ones not
19250         accessed in the final result in an endian-specific way.
19252 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19254         PR tree-optimization/69083
19255         * tree-vect-slp.c (vect_get_constant_vectors): For
19256         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
19257         element type.  If op is fold_convertible_p to vector_type's element
19258         type, use NOP_EXPR instead of VCE.
19260 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
19262         PR rtl-optimization/67778
19263         PR rtl-optimization/68634
19264         PR rtl-optimization/68909
19265         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
19266         block from the stack until done with it.  Remove a superfluous
19267         bitmap set.  Remove a superfluous bitmap test.
19269 2016-01-07  Martin Sebor  <msebor@redhat.com>
19271         PR c/68966
19272         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19273         constraint on the type of arguments.
19275 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
19277         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19278         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19279         unaligned_access on the gcc_options set.
19280         * config/arm/arm.c (arm_option_override_internal): Use
19281         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19283 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19285         PR target/69140
19286         * config/i386/i386.c (ix86_frame_pointer_required): Enable
19287         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19289 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19291         Revert
19292         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19294         PR target/69140
19295         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19296         depending on frame_pointer_needed before remaining integer and SSE
19297         registers are saved.
19299 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
19301         PR 1078
19302         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19304 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19306         PR target/69171
19307         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19308         Use the "xBm" constraint.
19309         (float<sseintvecmodelower><mode>2<mask_name><round_name):
19310         Likewise.
19311         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19312         (sse_cvtsi2ssq<round_name>): Likewise.
19313         (sse_cvtss2si<round_name>): Likewise.
19314         (sse_cvtss2siq<round_name>): Likewise.
19315         (sse2_cvtsi2sdq<round_name>): Likewise.
19316         (sse2_cvtsd2si<round_name>): Likewise.
19317         (sse2_cvtsd2siq<round_name>): Likewise.
19318         * config/i386/subst.md (round_nimm_scalar_predicate): New
19319         predicate.
19321 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
19323         PR middle-end/67639
19324         * varasm.c (make_decl_rtl): Mark invalid register vars as
19325         DECL_EXTERNAL.
19327         PR rtl-optimization/66206
19328         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19329         All callers changed.
19331 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
19333         PR tree-optimization/69141
19334         * tree-ssa-pre.c: Include langhooks.h.
19335         (eliminate_dom_walker::before_dom_children): Use
19336         lang_hooks.decl_printable_name instead of
19337         cgraph_node::get ()->name ().
19339         PR middle-end/68960
19340         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19341         it and DECL_ALIGN too.
19343 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
19345         * config/mips/mips-ftypes.def: Sort to lexicographical order.
19347 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19349         PR target/69140
19350         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19351         depending on frame_pointer_needed before remaining integer and SSE
19352         registers are saved.
19354 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19356         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19357         mode iterator with VSX_M2.
19358         (*p9_vecstore_<mode>): Likewise.
19359         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19360         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19361         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19362         (define_split for VSX_LE128 stores): Likewise.
19363         (define_peephole2 for TImode LE swaps): Likewise.
19364         (define_split for VSX_LE128 post-reload stores): Likewise.
19366 2016-01-06  Marek Polacek  <polacek@redhat.com>
19368         PR sanitizer/69099
19369         * convert.c (convert_to_integer_1): Adjust call to
19370         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
19371         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
19372         EXPR instead of ARG.
19373         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19375 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19377         PR 1078
19378         * doc/extend.texi (RL78 Variable Attributes): New section.
19380 2016-01-05  Marek Polacek  <polacek@redhat.com>
19382         PR c/69104
19383         * builtins.c (get_memmodel): Use expansion point location rather than
19384         the input location.  Call warning_at rather than warning.
19385         (expand_builtin_atomic_compare_exchange): Likewise.
19386         (expand_builtin_atomic_load): Likewise.
19387         (expand_builtin_atomic_store): Likewise.
19388         (expand_builtin_atomic_clear): Likewise.
19390 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19392         PR target/68991
19393         * config/i386/i386.c (ix86_expand_vector_logical_operator):
19394         Replace nonimmediate_operand with vector_operand.
19395         * config/i386/predicates.md (vector_operand): New predicate.
19396         (general_vector_operand): Replace nonimmediate_operand with
19397         vector_operand.
19398         * config/i386/sse.md: Replace nonimmediate_operand with
19399         vector_operand and m constraint with Bm constraint on SSE
19400         patterns with 16-byte memory operand.
19401         * config/i386/subst.md (round_nimm_predicate): Replace
19402         nonimmediate_operand with vector_operand.
19403         (round_saeonly_nimm_predicate): Likewise.
19404         (round_saeonly_nimm_scalar_predicate): New.
19406 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19408         PR target/68991
19409         * config/i386/constraints.md (Bm): New constraint.
19410         * config/i386/predicates.md (vector_memory_operand): New
19411         predicate.
19412         * config/i386/sse.md: Replace xm with xBm in plusminus and
19413         any_logic patterns.
19415 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19417         PR 1078
19418         * doc/extend.texi (V850 Function Attributes): New section.
19419         (V850 Variable Attributes): New section.
19421 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19423         PR 1078
19424         * doc/extend.texi (MicroBlaze Function Attributes): Document
19425         interrupt_handler and fast_interrupt attributes.
19427 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
19429         PR other/60465
19430         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19431         for local symbolic operands.
19432         * config/ia64/predicates.md (local_symbolic_operand64): New
19433         predicate.
19435 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19437         PR rtl-optimization/68651
19438         * combine.c (combine_simplify_rtx): Canonicalize x + x into
19439         x << 1.
19441 2016-01-05  Nathan Sidwell  <nathan@acm.org>
19443         * alias.c (compare_base_decls): Use symtab_node::get.
19445 2016-01-05  Nick Clifton  <nickc@redhat.com>
19447         PR target/68770
19448         * ira-costs.c (copy_cost): Initialise the t_icode field of the
19449         secondary_reload_info structure.
19451         PR target/66655
19452         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19453         decls if weak support is available.
19455 2016-01-04  Martin Sebor  <msebor@redhat.com>
19457         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19459 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19461         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19462         OPTION_MASK_P9_DFORM.
19464         * config/rs6000/constraints.md (wo constraint): New constraint for
19465         ISA 3.0 (power9).
19467         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19468         for wo constraint.
19469         (rs6000_init_hard_regno_mode_ok): Likewise.
19471         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19472         wo constraint.
19474         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19475         expanders not to have constraints.  Add support for ISA 3.0 xxperm
19476         instruction.  Add support for fusing xxlor with xxperm.
19477         (altivec_vperm_<mode>_internal): Likewise.
19478         (altivec_vperm_v8hiv16qi): Likewise.
19479         (altivec_vperm_<mode>v16q): Likewise.
19480         (altivec_vperm_<mode>_uns): Likewise.
19481         (vperm_v8hiv4si): Likewise.
19482         (vperm_v16qiv8hi): Likewise.
19484         * doc/md.texi (RS/6000 constraints): Document wo constraint.
19486 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
19488         Update copyright years.
19490         * gcc.c (process_command): Update copyright notice dates.
19491         * gcov-dump.c (print_version): Ditto.
19492         * gcov.c (print_version): Ditto.
19493         * gcov-tool.c (print_version): Ditto.
19494         * gengtype.c (create_file): Ditto.
19495         * doc/cpp.texi: Bump @copying's copyright year.
19496         * doc/cppinternals.texi: Ditto.
19497         * doc/gcc.texi: Ditto.
19498         * doc/gccint.texi: Ditto.
19499         * doc/gcov.texi: Ditto.
19500         * doc/install.texi: Ditto.
19501         * doc/invoke.texi: Ditto.
19503 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19505         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19506         modes larger than TImode as TImode if NEON is not enabled.
19508 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19510         PR target/69100
19511         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19512         mode for %f0-%f31 only if TARGET_FPU.
19514 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19516         PR target/69072
19517         * config/sparc/sparc.c (scan_record_type): Take into account subfields
19518         to compute the PACKED_P predicate.
19519         (function_arg_record_value): Minor tweaks.
19521 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19523         * doc/install.texi (--with-multilib-list): Describe the meaning of the
19524         option for arm*-*-* targets.
19526 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19528         * doc/extend.texi (Common Function Attributes): Move docs for
19529         MSP430-specific attributes to....
19530         (MSP430 Function Attributes): ...here.  Delete the redundant
19531         entries and copy-edit the remaining text.
19532         (MSP430 Variable Attributes): Use uniform format for index
19533         entries and add a cross-reference to the corresponding function
19534         attribute docs.
19536 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
19538         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19539         -finite-math typo.
19540         (x86 Options): Likewise.
19542 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19544         PR 1078
19546         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19547         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19548         to corresponding attribute.
19550 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19552         * doc/extend.texi (Common Function Attributes) <noplt>: Move
19553         to correct alphabetization of table.  Copy-edit and correct
19554         markup.
19555         <stack_protect>: Likewise.
19556         <target_clones>: Likewise.
19557         <simd>: Likewise.
19558         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19559         Correct punctuation.
19560         (Code Gen Options) <-fno-plt>: Copy-edit.
19562 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19564         PR target/68917
19565         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19566         SI values.  Explicitly convert SI to DI and vice-versa.
19568 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
19570         PR tree-optimization/69070
19571         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19572         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19574         PR sanitizer/69055
19575         * ubsan.c (ubsan_instrument_float_cast): Call
19576         initialize_sanitizer_builtins.
19578         PR target/69015
19579         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19581 Copyright (C) 2016 Free Software Foundation, Inc.
19583 Copying and distribution of this file, with or without modification,
19584 are permitted in any medium without royalty provided the copyright
19585 notice and this notice are preserved.