1 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
4 size to DImode boundary.
5 (nvptx_propagate): Likewise.
7 2016-08-03 Alan Modra <amodra@gmail.com>
9 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
10 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
11 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12 from -mefficient-unaligned-vector. Note that this affects fp too.
14 2016-08-03 Alan Modra <amodra@gmail.com>
16 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
19 2016-08-03 Alan Modra <amodra@gmail.com>
21 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
22 to a reg. Localize vars.
24 2016-08-03 Alan Modra <amodra@gmail.com>
26 * config/rs6000/rs6000.opt: Remove negatives from help strings
29 2016-08-03 Alan Modra <amodra@gmail.com>
31 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
32 Delete duplicated code.
34 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
37 * lra-spills.c (regno_in_use_p): New.
38 (lra_final_code_change): Use it.
40 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
42 PR rtl-optimization/69847
43 * lra-int.h (struct lra-reg): Use restore_rtx instead of
46 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
48 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
49 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
50 * lra-spills.c (lra_final_code_change): Don't delete insn when the
51 next insn is USE with the same reg as the current insn source.
52 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
54 (lra_constraints_init): Call initiate_invariants.
55 (lra_constraints_finish): Call finish_invariants.
56 (struct invariant, invariant_t, invariant_ptr_t): New.
57 (const_invariant_ptr_t, invariants, invariants_pool): New.
58 (invariant_table, invariant_hash, invariant_eq_p): New.
59 (insert_invariant, initiate_invariants, finish_invariants): New.
60 (clear_invariants, invalid_invariant_regs): New.
61 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
62 instead of restore_regno.
63 (invariant_p, process_invariant_for_inheritance): New.
64 (inherit_in_ebb): Implement invariant inheritance.
65 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
66 (remove_inheritance_pseudos): Implement undoing invariant
68 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
69 instead of restore_regno.
70 * lra-assigns.c (regno_live_length): New.
71 (reload_pseudo_compare_func): Use regno_live_length.
72 (assign_by_spills): Use restore_rtx instead of restore_regno.
73 (lra_assign): Ditto. Initiate regno_live_length.
75 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
77 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
78 __builtin_aarch64_fmindf.
80 2016-08-02 Bin Cheng <bin.cheng@arm.com>
82 PR tree-optimization/34114
83 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
84 information for more control IVs.
86 2016-08-02 Bin Cheng <bin.cheng@arm.com>
88 PR tree-optimization/34114
89 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
90 PLUS_EXPR case. Handle SSA_NAME case.
92 2016-08-02 Tamar Christina <tamar.christina@arm.com>
94 * config/aarch64/aarch64-simd-builtins.def
95 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
96 (__builtin_aarch64_fmaxdf): Likewise.
97 (__builtin_aarch64_smin_nandf): Likewise.
98 (__builtin_aarch64_smax_nandf): Likewise.
99 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
100 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
101 (<fmaxmin><mode>3): ...this.
102 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
103 (vminnm_f64): Likewise.
104 (vmin_f64): Likewise.
105 (vmax_f64): Likewise.
106 * config/aarch64/iterators.md (FMAXMIN): Merge with...
107 (FMAXMIN_UNS): ...this.
108 (fmaxmin): Merged with
109 (fmaxmin_op): ...this...
110 (maxmin_uns_op): ...in to this.
112 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
114 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
115 Add support for vec_extract on vector float, vector int, vector
116 short, and vector char vector types.
117 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
118 vector float, vector int, vector short, and vector char
119 optimizations on 64-bit ISA 2.07 systems for both constant and
120 variable element numbers.
121 (rs6000_split_vec_extract_var): Likewise.
122 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
123 Altivec registers on ISA 2.07 and above.
124 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
125 which never was matched due to the split occuring before register
126 allocation (and the code would not have worked on little endian
127 systems if it did match). Allow extracts to go to the Altivec
128 registers if ISA 2.07 (power8). Change from using "" around the
129 C++ code to using {}'s.
130 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
131 vec_extracts when the vector is in memory.
132 (vsx_extract_v4sf_var): New insn to optimize vector float
133 vec_extracts when the element number is variable on 64-bit ISA
135 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
136 for 64-bit ISA 2.07 as well as ISA 3.0.
137 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
138 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
139 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
140 optimize vector int, vector short, and vector char vec_extracts
141 when the vector is in memory.
142 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
143 optimize vector int, vector short, and vector char vec_extracts
144 when the element number is variable.
146 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
149 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
150 does not overlap with other symbol flags.
152 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
154 * config/aarch64/aarch64.h (aarch64_frame):
155 Remove padding0 and hardfp_offset. Add locals_offset,
156 initial_adjust, callee_adjust, callee_offset and final_adjust.
157 * config/aarch64/aarch64.c (aarch64_layout_frame):
158 Remove unused padding0 and hardfp_offset initializations.
159 Choose frame layout and set frame variables accordingly.
160 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
161 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
162 (aarch64_pop_regs): Likewise.
163 (aarch64_expand_prologue): Remove all decision code, just emit
164 prolog according to frame variables.
165 (aarch64_expand_epilogue): Remove all decision code, just emit
166 epilog according to frame variables.
167 (aarch64_initial_elimination_offset): Use offset to local/arg area.
169 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
172 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
173 fix_debug_reg_uses after changing source register mode to
174 V1TImode if source register is undefined.
176 2015-08-01 Alan Hayward <alan.hayward@arm.com>
178 PR tree-optimization/71818
179 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
180 with non invariant evolutions
182 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
185 * config/avr/avr.md (length) [branch]: Correct insn length
186 attribute for forward branches.
188 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
190 * doc/extend.texi (AVR Built-in Functions): Document
192 * config/avr/builtins.def (NOPS): New.
193 * config/avr/avr.c (avr_expand_nops): New static function.
194 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
196 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
198 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
199 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
202 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
204 * config/aarch64/aarch64.c (vulcan_tunings): Update
205 vulcan L1 cache_line_size.
207 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
209 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
210 function that takes a vector memory address, a hard register, an
211 element number and a temporary base register, and recreates an
212 address that points to the appropriate element within the vector.
213 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
214 (rs6000_split_vec_extract_var): Add support for the target of a
215 vec_extract with variable element number being a scalar memory
217 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
219 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
220 vsx_extract_<mode>_load insn with a new insn that optimizes
221 storing either element to a memory location, using scratch
222 registers to pick apart the vector and reconstruct the address.
223 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
224 (vsx_extract_<mode>_store): Rework alternatives to more correctly
225 support Altivec registers. Add support for ISA 3.0 Altivec d-form
227 (vsx_extract_<mode>_var): Add support for extracting a variable
228 element number from memory.
230 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
232 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
233 when testing for compares against constants of the form 0xabab.
235 2016-07-29 Bin Cheng <bin.cheng@arm.com>
237 PR tree-optimization/57558
238 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
240 (vect_loop_versioning): Support versioning with niter assumptions.
241 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
242 (vect_get_loop_niters): New parameter. Reimplement to support
243 assumptions in loop niter info.
244 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
245 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
246 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
247 Support loop versioning for niters.
248 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
249 (vect_free_loop_info_assumptions): New function.
250 (vectorize_loops): Free loop niter info for loops with flag
251 LOOP_F_ASSUMPTIONS set if vectorization failed.
252 * tree-vectorizer.h (struct _loop_vec_info): New field
253 num_iters_assumptions.
254 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
255 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
256 (LOOP_REQUIRES_VERSIONING): New macro.
257 (vect_free_loop_info_assumptions): New decl.
259 2016-07-29 Bin Cheng <bin.cheng@arm.com>
261 * cfgloop.h (struct loop): New field constraints.
262 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
263 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
265 * cfgloop.c (alloc_loop): Initialize new field.
266 * cfgloopmanip.c (copy_loop_info): Copy constraints.
267 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
268 Adjust niter analysis wrto loop constraints.
269 * doc/loop.texi (@node Number of iterations): Add description for loop
272 2016-07-29 Marek Polacek <polacek@redhat.com>
275 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
276 (ix86_expand_round_builtin): Likewise.
278 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
279 Georg-Johann Lay <avr@gjlay.de>
281 PR rtl-optimization/71976
282 * combine.c (get_last_value): Return 0 if the argument for which
283 the function is called has a wider mode than the recorded value.
285 2016-07-29 Marek Polacek <polacek@redhat.com>
288 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
289 (altivec_expand_st_builtin): Likewise.
291 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
293 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
294 introduced in r238381.
296 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
299 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
300 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
302 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
304 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
306 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
307 Add support for vec_extract of vector double or vector long having
308 a variable element number on 64-bit ISA 2.07 systems or newer.
309 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
311 (rs6000_split_vec_extract_var): New function to split a
312 vec_extract built-in function with variable element number.
313 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
315 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
316 (UNSPEC_VSX_EXTRACT): Likewise.
317 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
318 direct move instructions to be generated on 64-bit ISA 2.07
319 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
321 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
322 arguments for vec_extract variable element.
323 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
324 vec_extract with variable element on V2DFmode and V2DImode
326 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
327 -mupper-regs-df requirement, since it isn't needed.
328 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
329 do direct moves on 64-bit systems, which allows optimization of
330 vec_extract on 64-bit ISA 2.07 systems and newer.
332 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
333 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
335 * config/aarch64/aarch64.md
336 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
338 (<optab>qihi2_aarch64): Likewise, and split into two.
339 (extendqihi2_aarch64): New.
340 (zero_extendqihi2_aarch64): New.
341 * config/aarch64/iterators.md (ldrxt): Remove.
342 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
345 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
347 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
349 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
351 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
352 (aarch64_push_reg): New function to push 1 or 2 registers.
353 (aarch64_pop_reg): New function to pop 1 or 2 registers.
354 (aarch64_expand_prologue): Use aarch64_push_regs.
355 (aarch64_expand_epilogue): Use aarch64_pop_regs.
357 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
359 PR tree-optimization/71734
360 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
361 attribute instead of REF_LOOP and use it.
362 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
363 set it for Loops having non-zero safelen attribute.
364 (ref_indep_loop_p): Pass zero as initial value for safelen.
366 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
370 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
371 call using chkp_gimple_call_builtin_p.
372 (chkp_copy_bounds_for_assign): Likewise.
374 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
376 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
377 * config/arm/arm-protos.h (struct tune_params): Likewise.
378 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
379 (cortex_a9_sched_adjust_cost): Likewise.
380 (fa726te_sched_adjust_cost): Likewise.
381 (arm_adjust_cost): Likewise.
382 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
383 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
384 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
385 * config/i386/i386.c (ix86_adjust_cost): Likewise.
386 * config/ia64/ia64.c: Likewise.
387 * config/m68k/m68k.c: Likewise.
388 * config/mep/mep.c (mep_adjust_cost): Likewise.
389 * config/microblaze/microblaze.c (microblaze_adjust_cost):
391 * config/mips/mips.c (mips_adjust_cost): Likewise.
392 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
394 * config/pa/pa.c (pa_adjust_cost): Likewise.
395 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
396 (rs6000_debug_adjust_cost): Likewise.
397 * config/sh/sh.c (sh_adjust_cost): Likewise.
398 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
399 (hypersparc_adjust_cost): Likewise.
400 (sparc_adjust_cost): Likewise.
401 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
402 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
403 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
405 * config/visium/visium.c (visium_adjust_cost): Likewise.
406 * doc/tm.texi: Regenerate.
407 * haifa-sched.c (dep_cost_1): Adjust.
408 * target.def: Merge adjust_cost and adjust_cost_2.
410 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
412 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
414 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
416 * store-motion.c (struct st_expr): Make pattern_regs a vector.
417 (extract_mentioned_regs): Append to a vector instead of
418 returning a rtx_expr_list.
419 (st_expr_entry): Adjust.
420 (free_st_expr_entry): Likewise.
421 (store_ops_ok): Likewise.
422 (store_killed_in_insn): Likewise.
423 (find_moveable_store): Likewise.
425 2016-07-28 Martin Liska <mliska@suse.cz>
427 PR gcov-profile/68025
428 * tree-profile.c (tree_profiling): Respect
429 no_profile_instrument_function attribute.
430 * doc/extend.texi: Document no_profile_instrument_function
433 2016-07-28 Martin Liska <mliska@suse.cz>
435 PR rtl-optimization/70944
436 * combine.c (make_compound_operation):
437 Do not allow make_compound_operation for vector mode
439 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
442 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
443 before calling get_ops.
445 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
447 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
448 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
449 (BITS_PER_UNIT_LOG): Remove.
450 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
451 * expr.c (expand_assignment): Likewise.
452 * stor-layout.c (initialize_sizetypes): Likewise.
454 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
456 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
457 signature of rs6000_expand_vector_extract so that the element
458 number is a RTX instead of a constant integer.
459 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
461 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
462 (altivec_expand_vec_ext_builtin): Likewise.
463 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
464 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
467 2016-07-27 David Malcolm <dmalcolm@redhat.com>
469 * input.c (get_pure_location): Move here from tree.c.
470 (make_location): Likewise. Add header comment.
471 (selftest::test_accessing_ordinary_linemaps): Verify
472 pure_location_p, make_location, get_location_from_adhoc_loc and
474 * input.h (get_pure_location): Move declaration here from tree.h.
475 (get_finish): Likewise for inline function.
476 (make_location): Likewise for declaration.
477 * tree.c (get_pure_location): Move to input.c.
478 (make_location): Likewise.
479 * tree.h (get_pure_location): Move declaration to tree.h.
480 (get_finish): Likewise for inline function.
481 (make_location): Likewise for declaration.
483 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
486 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
488 2016-07-27 David Malcolm <dmalcolm@redhat.com>
490 * system.h (STATIC_ASSERT): Use static_assert if building
493 2016-07-27 Richard Biener <rguenther@suse.de>
495 PR tree-optimization/72517
496 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
497 Revert change to not compute read-read dependences.
499 2016-07-27 Richard Biener <rguenther@suse.de>
501 * predict.c (set_even_probabilities): Make nedges unsigned.
503 2016-07-27 Martin Liska <mliska@suse.cz>
505 * predict.c (set_even_probabilities): Handle unlikely edges.
506 (combine_predictions_for_bb): Likewise.
508 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
511 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
512 __float128 support when we don't have hardware support, so that
513 the IEEE built-in functions like isgreater, first call __unordkf3
514 to make sure neither operand is a NaN, and if both operands are
515 ordered, do the normal comparison.
517 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
519 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
521 (extract_code_and_val_from_cond_with_ops): Verify that name is
522 either cond_op0 or cond_op1.
524 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
526 PR tree-optimization/18046
527 * genmodes.c (emit_mode_size_inline): Emit an assert that
528 verifies that mode is a valid array index.
529 (emit_mode_nuinits_inline): Likewise.
530 (emit_mode_inner_inline): Likewise.
531 (emit_mode_unit_size_inline): Likewise.
532 (emit_mode_unit_precision_inline): Likewise.
533 * tree-vrp.c: Include params.h.
534 (find_switch_asserts): Register edge assertions for the default
535 label which correspond to the anti-ranges of each case label.
536 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
537 * doc/invoke.texi: Document it.
539 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
541 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
542 and unnecessary call to gimple_bb.
544 2016-07-26 Richard Biener <rguenther@suse.de>
546 PR rtl-optimization/71984
547 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
550 2016-07-26 Richard Biener <rguenther@suse.de>
553 * expmed.c (extract_bit_field_1): Constrain the vector mode
554 with element size matching the extraction mode size when
555 choosing a better vector mode to do the extraction from.
557 2016-07-26 Richard Biener <rguenther@suse.de>
558 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
561 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
564 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
566 * tree-ssa-structalias.c (struct scc_info): Change types of
567 members to auto_sbitmap and auto_vec.
568 (scc_info::scc_info): New constructor.
569 (scc_info::~scc_info): New destructor.
570 (init_scc_info): Remove.
571 (free_scc_info): Remove.
572 (find_indirect_cycles): Adjust.
573 (perform_var_substitution): Likewise.
574 (free_var_substitution_info): Likewise.
576 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
578 * tree-outof-ssa.c (struct elim_graph): Change type of members
579 to auto_vec and auto_sbitmap.
580 (elim_graph::elim_graph): New constructor.
581 (delete_elim_graph): Remove.
582 (expand_phi_nodes): Adjust.
584 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
586 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
587 (new_elim_graph): Adjust.
588 (clear_elim_graph): Likewise.
589 (delete_elim_graph): Likewise.
590 (elim_graph_size): Likewise.
591 (elim_graph_add_node): Likewise.
592 (elim_graph_add_edge): Likewise.
593 (elim_graph_remove_succ_edge): Likewise.
594 (eliminate_name): Likewise.
595 (eliminate_build): Likewise.
596 (elim_forward): Likewise.
597 (elim_unvisited_predecessor): Likewise.
598 (elim_backward): Likewise.
599 (elim_create): Likewise.
600 (eliminate_phi): Likewise.
601 (expand_phi_nodes): Likewise.
603 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
605 * bt-load.c (compute_out): Use auto_sbitmap class.
606 (link_btr_uses): Likewise.
607 * cfganal.c (mark_dfs_back_edges): Likewise.
608 (post_order_compute): Likewise.
609 (inverted_post_order_compute): Likewise.
610 (pre_and_rev_post_order_compute_fn): Likewise.
611 (single_pred_before_succ_order): Likewise.
612 * cfgexpand.c (pass_expand::execute): Likewise.
613 * cfgloop.c (verify_loop_structure): Likewise.
614 * cfgloopmanip.c (fix_bb_placements): Likewise.
615 (remove_path): Likewise.
616 (update_dominators_in_loop): Likewise.
617 * cfgrtl.c (break_superblocks): Likewise.
618 * ddg.c (check_sccs): Likewise.
619 (create_ddg_all_sccs): Likewise.
620 * df-core.c (df_worklist_dataflow): Likewise.
621 * dse.c (dse_step3): Likewise.
622 * except.c (eh_region_outermost): Likewise.
623 * function.c (thread_prologue_and_epilogue_insns): Likewise.
624 * gcse.c (prune_expressions): Likewise.
625 (prune_insertions_deletions): Likewise.
626 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
627 * graph.c (draw_cfg_nodes_no_loops): Likewise.
628 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
629 * lcm.c (compute_earliest): Likewise.
630 (compute_farthest): Likewise.
631 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
632 (unroll_loop_runtime_iterations): Likewise.
633 (unroll_loop_stupid): Likewise.
634 * lower-subreg.c (decompose_multiword_subregs): Likewise.
635 * lra-lives.c: Likewise.
636 * lra.c (lra): Likewise.
637 * modulo-sched.c (schedule_reg_moves): Likewise.
638 (optimize_sc): Likewise.
639 (get_sched_window): Likewise.
640 (sms_schedule_by_order): Likewise.
641 (check_nodes_order): Likewise.
642 (order_nodes_of_sccs): Likewise.
643 (order_nodes_in_scc): Likewise.
644 * recog.c (split_all_insns): Likewise.
645 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
646 * reload1.c (reload): Likewise.
647 * sched-rgn.c (haifa_find_rgns): Likewise.
648 (split_edges): Likewise.
649 (compute_trg_info): Likewise.
650 * sel-sched.c (init_seqno): Likewise.
651 * store-motion.c (remove_reachable_equiv_notes): Likewise.
652 * tree-into-ssa.c (update_ssa): Likewise.
653 * tree-ssa-live.c (live_worklist): Likewise.
654 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
655 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
657 (try_peel_loop): Likewise.
658 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
660 * tree-ssa-pre.c (compute_antic): Likewise.
661 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
662 * tree-stdarg.c (reachable_at_most_once): Likewise.
663 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
664 * var-tracking.c (vt_find_locations): Likewise.
666 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
668 * sbitmap.h (auto_sbitmap): New class.
670 2016-07-26 Alan Modra <amodra@gmail.com>
673 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
676 2016-07-25 David Malcolm <dmalcolm@redhat.com>
678 * input.c (selftest::temp_source_file::temp_source_file): Fix
679 missing "%s" in fprintf.
681 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
684 * cselib.c (cselib_process_insn): Invalidate argument slots for
687 2016-07-25 Jiong Wang <jiong.wang@arm.com>
689 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
690 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
691 vmulxh_lane_f16, vmulxh_laneq_f16): New.
693 2016-07-25 Jiong Wang <jiong.wang@arm.com>
695 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
696 * config/aarch64/aarch64.md (fma, fnma): Support HF.
697 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
699 2016-07-25 Jiong Wang <jiong.wang@arm.com>
701 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
702 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
704 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
705 (add<mode>3): Likewise.
706 (sub<mode>3): Likewise.
707 (mul<mode>3): Likewise.
708 (div<mode>3): Likewise.
709 (*div<mode>3): Likewise.
710 (<fmaxmin><mode>3): Extend to HF.
711 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
712 (fabd<mode>3): Likewise.
713 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
714 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
715 (aarch64_fmulx<mode>): Likewise.
716 (aarch64_fac<optab><mode>): Likewise.
717 (aarch64_frecps<mode>): Likewise.
718 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
719 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
720 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
721 (VSDQ_HSDI): Support HI.
722 (fcvt_target, FCVT_TARGET): Likewise.
723 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
724 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
725 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
726 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
727 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
728 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
729 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
732 2016-07-25 Jiong Wang <jiong.wang@arm.com>
734 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
735 * config/aarch64/aarch64-builtins.c (hi_UP): New.
736 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
737 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
739 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
740 (aarch64_cm<optab><mode>): Likewise.
741 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
742 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
743 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
744 (sqrt<mode>2): Likewise.
745 (*sqrt<mode>2): Likewise.
746 (abs<mode>2): Likewise.
747 (<optab><mode>hf2): New pattern for HF mode.
748 (<optab>hihf2): Likewise.
749 * config/aarch64/arm_neon.h: Include arm_fp16.h.
750 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
751 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
753 * config/aarch64/arm_fp16.h: New file.
754 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
755 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
756 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
757 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
758 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
759 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
760 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
761 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
762 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
763 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
764 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
765 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
768 2016-07-25 Jiong Wang <jiong.wang@arm.com>
770 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
771 reduc_smin_scal_): Use VDQIF_F16.
772 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
773 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
775 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
776 * config/aarch64/iterators.md (VDQIF_F16): New.
777 (vp): Support HF modes.
778 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
779 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
781 2016-07-25 Jiong Wang <jiong.wang@arm.com>
783 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
784 "*aarch64_mulx_elt_from_dup<mode>".
785 (*aarch64_mul3_elt<mode>): Update schedule type.
786 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
787 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
788 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
789 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
790 (f, fp): Support HF modes.
791 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
792 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
793 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
794 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
795 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
796 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
798 2016-07-25 Jiong Wang <jiong.wang@arm.com>
800 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
801 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
803 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
806 2016-07-25 Jiong Wang <jiong.wang@arm.com>
808 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
809 * config/aarch64/aarch64-simd.md
810 (aarch64_rsqrts<mode>): Extend to HF modes.
811 (fabd<mode>3): Likewise.
812 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
813 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
814 (aarch64_<maxmin_uns>p<mode>): Likewise.
815 (<su><maxmin><mode>3): Likewise.
816 (<maxmin_uns><mode>3): Likewise.
817 (<fmaxmin><mode>3): Likewise.
818 (aarch64_faddp<mode>): Likewise.
819 (aarch64_fmulx<mode>): Likewise.
820 (aarch64_frecps<mode>): Likewise.
821 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
822 (add<mode>3): Extend to HF modes.
823 (sub<mode>3): Likewise.
824 (mul<mode>3): Likewise.
825 (div<mode>3): Likewise.
826 (*div<mode>3): Likewise.
827 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
829 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
830 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
831 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
832 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
833 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
834 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
835 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
836 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
837 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
838 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
839 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
840 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
841 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
842 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
844 2016-07-25 Jiong Wang <jiong.wang@arm.com>
846 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
847 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
848 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
849 (neg<mode>2): Likewise.
850 (abs<mode>2): Likewise.
851 (<frint_pattern><mode>2): Likewise.
852 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
853 (<optab><VDQF:mode><fcvt_target>2): Likewise.
854 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
855 (ftrunc<VDQF:mode>2): Likewise.
856 (<optab><fcvt_target><VDQF:mode>2): Likewise.
857 (sqrt<mode>2): Likewise.
858 (*sqrt<mode>2): Likewise.
859 (aarch64_frecpe<mode>): Likewise.
860 (aarch64_cm<optab><mode>): Likewise.
861 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
863 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
864 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
866 * config/aarch64/arm_neon.h (vdup_n_f16): New.
867 (vdupq_n_f16): Likewise.
868 (vld1_dup_f16): Use vdup_n_f16.
869 (vld1q_dup_f16): Use vdupq_n_f16.
870 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
871 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
872 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
873 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
874 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
875 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
876 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
877 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
878 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
879 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
880 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
881 vsqrt_f16, vsqrtq_f16): New.
883 2016-07-25 Jiong Wang <jiong.wang@arm.com>
885 * config/aarch64/aarch64-simd.md
886 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
887 (aarch64_ext<mode>): Likewise.
888 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
889 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
890 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
892 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
894 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
895 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
896 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
897 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
898 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
899 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
900 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
902 (vmov_n_f16): Reimplement using vdup_n_f16.
903 (vmovq_n_f16): Reimplement using vdupq_n_f16..
905 2016-07-25 Jiong Wang <jiong.wang@arm.com>
907 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
908 "frame_related_p". Generate CFA annotation when it's necessary.
909 (aarch64_expand_prologue): Use aarch64_add_constant.
910 (aarch64_expand_epilogue): Likewise.
911 (aarch64_output_mi_thunk): Pass "false" when calling
912 aarch64_add_constant.
914 2016-07-25 Jiong Wang <jiong.wang@arm.com>
916 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
919 2016-07-25 Jiong Wang <jiong.wang@arm.com>
921 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
922 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
923 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
924 (aarch64_build_constant): Delete.
926 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
929 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
931 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
932 flag_toplevel_reorder.
934 2016-07-25 Richard Biener <rguenther@suse.de>
936 * cgraph.c (cgraph_node::verify_node): Compare against builtin
937 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
938 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
939 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
940 (streamer_get_builtin_tree): Likewise.
941 (streamer_write_builtin): Likewise.
942 * lto-streamer.h (LTO_builtin_decl): Remove.
943 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
944 (lto_input_scc): Remove LTO_builtin_decl handling.
945 (lto_input_tree_1): Liekwise.
946 * lto-streamer-out.c (lto_output_tree_1): Remove special
947 handling of builtins.
948 (DFS::DFS): Likewise.
949 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
950 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
952 (streamer_write_builtin): Remove.
954 2016-07-25 Martin Liska <mliska@suse.cz>
956 * lto-cgraph.c (input_symtab): Don't call get_working_sets
957 if flag_auto_profile is set to true.
959 2016-07-25 Martin Liska <mliska@suse.cz>
961 PR gcov-profile/71868
962 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
963 have a function with multiple latches, count them all.
965 2016-07-25 Martin Liska <mliska@suse.cz>
967 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
969 2016-07-25 Martin Liska <mliska@suse.cz>
971 PR tree-optimization/71987
972 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
973 just for SSA_NAMEs. Fix GNU coding style.
975 2016-07-25 Martin Liska <mliska@suse.cz>
977 PR gcov-profile/64874
978 * gcov-io.h: Update command about file format.
979 * gcov-iov.c (main): Adapt the numbering scheme.
981 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
984 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
985 whose result is used in PHI.
986 (final_range_test_p): Likewise.
987 (maybe_optimize_range_tests): Likewise.
989 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
991 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
992 Reformat two multi-line strings.
994 2016-07-22 Martin Sebor <msebor@redhat.com>
996 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
998 2016-07-22 Martin Sebor <msebor@redhat.com>
1001 * doc/extend.texi (Compound Literals): Correct and clarify.
1002 (Cast to Union): Same.
1004 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
1006 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1007 comments to explain why certain error messages make mention of
1008 undocumented options.
1009 (rs6000_invalid_builtin): Change error messages to replace mention
1010 of undocumented options with mention of the -mcpu=power9 option
1011 that enables those undocumented options.
1012 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
1013 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
1014 definition of this macro to correct an existing error.
1015 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
1016 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
1017 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
1018 descriptions of built-in functions so that they depend on
1019 -mcpu=power9 instead of on the corresponding undocumented flags.
1020 * doc/invoke.texi (Option Summary): Remove all mention of newly
1022 (IBM RS/6000 and PowerPC Options): Likewise.
1023 * doc/md.texi (Constraints for Particuliar Machines): Remove all
1024 mention of newly undocumented flags.
1026 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
1028 * ipa-cp.c (determine_versionability): Do not create constprop clones,
1029 when target_clones attribute is set.
1031 2016-07-22 Bin Cheng <bin.cheng@arm.com>
1033 * common.opt (funsafe-loop-optimizations): Mark ignore.
1034 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
1035 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
1037 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
1038 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
1040 2016-07-22 Bin Cheng <bin.cheng@arm.com>
1042 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1044 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1046 (number_of_iterations_exit): Warn missed loop optimization for
1047 possible infinite loops.
1049 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
1052 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1053 when to emit a ".machine" pseudo-op.
1055 2016-07-22 Martin Liska <mliska@suse.cz>
1057 PR gcov-profile/69028
1058 PR gcov-profile/62047
1059 * coverage.c (coverage_compute_lineno_checksum): Do not
1060 calculate checksum for fns w/o xloc.file.
1061 (coverage_compute_profile_id): Likewise.
1063 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
1065 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
1066 (avr_secondary_reload): ...and implementation.
1067 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
1068 * config/avr/avr.md (reload_in<mode>): Remove insns.
1069 (adjust_len) [lpm]: Remove insn attribute value.
1070 * config/avr/predicates.md (flash_operand): Remove insn predicate.
1072 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1075 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
1077 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
1078 * calls.c (special_function_p): Remove the special handling of the
1079 "__builtin_" prefix.
1081 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1084 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
1085 if STMT may be an alloca call.
1086 (gimple_alloca_call_p, alloca_call_p): Return only true for the
1087 builtin alloca call.
1088 * calls.h (gimple_maybe_alloca_call_p): New function.
1089 * tree-inline.c (inline_forbidden_p_stmt): Use
1090 gimple_maybe_alloca_call_p here.
1092 2016-07-21 David Malcolm <dmalcolm@redhat.com>
1094 * spellcheck-tree.c (best_macro_match::best_macro_match):
1095 Explictly specify the template arguments when invoking the base
1096 class constructor, to help older C++ compilers.
1098 2016-07-21 Jakub Jelinek <jakub@redhat.com>
1101 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1102 before builtin_decl_implicit.
1104 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1106 * optabs.c (emit_condiitonal_move): Short circuit for identical
1109 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1111 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
1112 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
1113 (noce_conversion_profitable_p): New.
1114 (noce_try_store_flag_constants): Use it.
1115 (noce_try_addcc): Likewise.
1116 (noce_try_store_flag_mask): Likewise.
1117 (noce_try_cmove): Likewise.
1118 (noce_try_cmove_arith): Likewise.
1119 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
1121 (noce_convert_multiple_sets): Move cost model to here, from...
1122 (bb_ok_for_noce_convert_multiple_sets) ...here.
1123 (noce_process_if_block): Update calls for above changes.
1124 (noce_find_if_block): Record new noce_if_info parameters.
1126 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1128 * target.def (max_noce_ifcvt_seq_cost): New.
1129 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
1130 * doc/tm.texi: Regenerate.
1131 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
1132 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
1133 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
1134 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
1135 * doc/invoke.texi: Document new params.
1137 2016-07-21 Richard Biener <rguenther@suse.de>
1139 PR tree-optimization/71947
1140 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
1141 ranges have useful limit_vr information.
1143 2016-07-21 Richard Biener <rguenther@suse.de>
1145 * function-tests.c (build_trivial_generic_function): Set
1146 BLOCK_SUPERCONTEXT of DECL_INITIAL.
1147 * omp-low.c (create_omp_child_function): Likewise.
1148 (grid_expand_target_grid_body): Likewise.
1149 * cgraphunit.c (init_lowered_empty_function): Likewise.
1150 (cgraph_node::expand_thunk): Likewise.
1151 * tree-parloops.c (create_loop_fn): Likewise.
1152 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
1154 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1156 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
1159 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
1161 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
1162 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
1163 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
1164 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
1165 values for insn attribute.
1166 * config/avr/avr.c (avr_out_insert_notbit): New function.
1167 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
1168 ADJUST_LEN_INSV_NOTBIT_0/_7.
1169 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
1171 2016-07-21 Bin Cheng <bin.cheng@arm.com>
1173 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
1174 (chrec_convert_1, chrec_convert): Ditto.
1175 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
1176 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
1177 * tree-vrp.c (adjust_range_with_scev): Ditto.
1178 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
1179 (scev_var_range_cant_overflow): New function.
1180 (scev_probably_wraps_p): New parameter. Call above function.
1181 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
1183 2016-07-21 Bin Cheng <bin.cheng@arm.com>
1185 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1186 by removing computation of may_be_zero.
1188 2016-07-21 Jakub Jelinek <jakub@redhat.com>
1190 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1192 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
1194 Improving concepts performance and diagnostics.
1195 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1196 for constraint satisfaction and subsumption.
1197 * timevar.h (auto_timevar): New constructor that matches the push/pop
1198 pattern of usage in pt.c.
1200 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
1202 * hwint.h (HOST_WIDE_INT_0): New define.
1203 (HOST_WIDE_INT_0U): Ditto.
1204 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
1205 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
1206 * simplify-rtx.c: Ditto.
1207 * tree-object-size.c: Ditto.
1209 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1211 * config/s390/s390.c (s390_encode_section_info): Remove mode size
1214 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
1216 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
1217 * combine.c: Use HOST_WIDE_INT_M1U instead of
1218 ~(unsigned HOST_WIDE_INT) 0.
1219 * double-int.h: Ditto.
1221 * dwarf2asm.c:Ditto.
1223 * genmodes.c: Ditto.
1225 * read-rtl.c: Ditto.
1226 * tree-ssa-loop-ivopts.c: Ditto.
1227 * tree-ssa-loop-prefetch.c: Ditto.
1228 * tree-vect-generic.c: Ditto.
1229 * tree-vect-patterns.c: Ditto.
1232 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1234 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
1235 constant addresses outside [0,0xc0] into a register.
1236 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
1237 cases where the base address register is unused after.
1238 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
1239 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
1240 (avr_out_store_psi_reg_disp_tiny): Same.
1242 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1244 Implement attribute progmem on reduced Tiny cores by adding
1245 flash offset 0x4000 to respective symbols.
1248 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
1249 documentation how it works on reduced Tiny cores.
1250 (AVR Named Address Spaces): No support for reduced Tiny.
1251 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
1252 (avr_address_tiny_pm_p): New static function.
1253 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
1254 if the address is in progmem.
1255 (avr_assemble_integer): Same.
1256 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
1257 for symbol_ref in progmem.
1258 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
1259 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
1260 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
1262 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
1264 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
1265 * configure: Regenerate.
1266 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
1267 (USE_THIN_ARCHIVES): New variable.
1268 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
1269 this archive as a thin archive.
1271 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1273 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
1274 same location as last time, don't skip if we have fix-it hints.
1275 Clarify the skipping logic by converting it from one "if" clause
1276 to repeated "if" clauses.
1277 * spellcheck-tree.c: Include "cpplib.h".
1278 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
1279 (best_macro_match::best_macro_match): New constructor.
1280 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
1281 Move here from c/c-decl.c.
1282 (class best_macro_match): Move here from c/c-decl.c, converting
1283 from a typedef to a subclass, gaining a ctor.
1285 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1287 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
1288 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
1290 (avr_addr_space_diagnose_usage): ...and implementation.
1291 (avr_addr_space_supported_p): New function.
1292 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
1293 report bad address space usage if that space is supported.
1294 (avr_insert_attributes): Same. No more complain about unsupported
1296 * config/avr/avr-c.c (tm_p.h): Include it.
1297 (avr_cpu_cpp_builtins): Only define addr-space related built-in
1298 macro if avr_addr_space_supported_p.
1300 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
1302 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1303 flag_toplevel_reorder.
1305 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1307 * gcc-rich-location.c
1308 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1310 * gcc-rich-location.h
1311 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1313 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1315 * target.def (addr_space): Add new diagnose_usage to hook vector.
1316 * targhooks.c (default_addr_space_diagnose_usage): Add default
1317 implementation and...
1318 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1319 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1320 is some address space, call targetm.addr_space.diagnose_usage.
1321 * doc/tm.texi.in (Named Address Spaces): Add anchor for
1322 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1323 * doc/tm.texi: Regenerate.
1325 2016-07-20 Martin Liska <mliska@suse.cz>
1328 * graphite-isl-ast-to-gimple.c (later_of_the_two):
1329 Properly handly PHI stmts.
1331 2016-07-20 Bin Cheng <bin.cheng@arm.com>
1333 PR tree-optimization/71503
1334 PR tree-optimization/71683
1335 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1338 2016-07-20 Martin Liska <mliska@suse.cz>
1340 * doc/invoke.texi (-fipa-ra): Document when the option is
1341 disabled. Fix a typo.
1343 2016-07-20 Martin Liska <mliska@suse.cz>
1345 * Makefile.in: Include fibonacci_heap.c
1346 * fibonacci_heap.c: New file.
1347 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1348 (fibonacci_heap::union_with): Fix deletion of the second heap.
1349 * selftest-run-tests.c (selftest::run_tests): Incorporate
1350 fibonacci heap tests.
1351 * selftest.h: Declare fibonacci_heap_c_tests.
1353 2016-07-20 Martin Liska <mliska@suse.cz>
1355 * selftest-run-tests.c (selftest::run_tests): New function.
1356 * selftest.h (sreal_c_tests): Declare.
1357 * sreal.c (sreal_verify_basics): New function.
1358 (verify_aritmetics): Likewise.
1359 (sreal_verify_arithmetics): Likewise.
1360 (verify_shifting): Likewise.
1361 (sreal_verify_shifting): Likewise.
1362 (void sreal_c_tests): Likewise.
1364 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1366 PR rtl-optimization/71916
1367 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1368 bb which have a single succ fake edge.
1370 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1373 * dwarf2out.c (gen_subprogram_die): Only call
1374 gen_unspecified_parameters_die while dumping early dwarf.
1376 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1379 * gimple-fold.c (fold_builtin_memory_op): Use
1380 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1382 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1384 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1385 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1386 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1387 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1391 * double-int.c: Ditto.
1393 * dwarf2out.c: Ditto.
1396 * fold-const.c: Ditto.
1397 * function.c: Ditto.
1399 * genmodes.c: Ditto.
1403 * loop-doloop.c: Ditto.
1404 * loop-invariant.c: Ditto.
1411 * simplify-rtx.c: Ditto.
1412 * stor-layout.c: Ditto.
1414 * tree-ssa-loop-ivopts.c: Ditto.
1415 * tree-vect-generic.c: Ditto.
1416 * tree-vect-patterns.c: Ditto.
1421 * wide-int-print.cc: Ditto.
1422 * wide-int.cc: Ditto.
1423 * wide-int.h: Ditto.
1425 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1427 * selftest.c (selftest::assert_streq): Handle NULL values of
1428 val_actual and val_expected.
1430 2016-07-19 Martin Jambor <mjambor@suse.cz>
1433 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1434 rather than cgraph_create_node to get a call graph node.
1436 2016-07-19 Richard Biener <rguenther@suse.de>
1438 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1439 handle all tcc_constant bases and valueize SSA names.
1440 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1443 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1445 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1446 the flags of the exit block and bb2, not just the entry block.
1448 2016-07-19 Richard Biener <rguenther@suse.de>
1450 PR tree-optimization/71901
1451 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1452 align member, group stuff with the bitfield.
1453 (vn_ref_op_align_unit): New inline.
1454 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1455 record element alignment and operand 3 unchanged.
1456 (ao_ref_init_from_vn_reference): Adjust.
1457 (valueize_refs_1): Likewise.
1458 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1460 2016-07-19 Richard Biener <rguenther@suse.de>
1462 PR tree-optimization/71908
1463 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1464 symbolic constants in a more reliable way.
1466 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1468 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1470 (vect_update_inits_of_drs): Likewise.
1471 (vect_create_cond_for_alias_checks): Likewise.
1472 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1474 2016-07-19 Richard Biener <rguenther@suse.de>
1477 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1478 with an abstract origin that is not an inlined function outer
1479 scope add a self-reference as abstract origin.
1480 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1482 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1485 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1486 unintentional System V.4 structure return breakage for structures
1487 with a single floating point element.
1489 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1491 PR tree-optimization/71734
1492 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1493 contains REF, use it to check safelen, assume that safelen value
1494 must be greater 1, fix style.
1495 (ref_indep_loop_p_2): Add REF_LOOP argument.
1496 (ref_indep_loop_p): Pass LOOP as additional argument to
1499 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1501 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1502 allocation in the prologue.
1503 * explow.c (get_dynamic_stack_base): New function to return an address
1504 expression for the dynamic stack base.
1505 (get_dynamic_stack_size): New function to do the required dynamic stack
1506 space size calculations.
1507 (allocate_dynamic_stack_space): Use new functions.
1508 (align_dynamic_address): Move some code from
1509 allocate_dynamic_stack_space to new function.
1510 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1512 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1514 * config/s390/s390.c (s390_encode_section_info): Always set
1515 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1518 2016-07-18 Richard Biener <rguenther@suse.de>
1520 PR tree-optimization/71893
1521 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1522 for sizetype cast added by array_ref_element_size.
1523 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1525 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1527 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1528 register parameters. Remove code to initialize argument pointer
1529 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1530 using a pc-relative branch. Cleanup conditional code.
1531 * config/pa/pa.md (call_mcount): New expander.
1532 (call_mcount_nonpic): New insn.
1533 (call_mcount_pic): New insn and split.
1534 (call_mcount_pic_post_reload): New insn.
1535 (call_mcount_64bit): New insn and split.
1536 (call_mcount_64bit_post_reload): New insn.
1538 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1540 * config/avr/predicates.md (const_m255_to_m1_operand): New.
1541 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1542 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1543 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1544 (*usum_widenqihi3, *udiff_widenqihi3)
1545 (*addhi3_zero_extend.const): New combiner insns.
1546 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1547 just 1 bit is affected.
1548 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1549 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1551 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1553 * omp-low.c (lower_omp_target): Mark data clauses with
1554 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1555 zero-length subarrays.
1557 2016-07-15 Richard Biener <rguenther@suse.de>
1559 PR tree-optimization/71881
1560 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1561 reverse DOM order to make debug temp generation happy.
1563 2016-07-15 Richard Biener <rguenther@suse.de>
1565 PR tree-optimization/71887
1566 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1567 verify it is not zero for division / modulo handling.
1568 (value_replacement): Adjust.
1570 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1571 Julian Brown <julian@codesourcery.com>
1573 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1574 * config/aarch64/aarch64-cost-tables.h
1575 (vulcan_extra_costs): New variable.
1576 * config/aarch64/aarch64.c
1577 (vulcan_addrcost_table): Likewise.
1578 (vulcan_regmove_cost): Likewise.
1579 (vulcan_vector_cost): Likewise.
1580 (vulcan_branch_cost): Likewise.
1581 (vulcan_tunings): Likewise.
1583 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1585 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1586 (output_in_order): Loop over undefined variables too. Output them
1587 via assemble_undefined_decl. Skip variables that correspond to hard
1588 registers or have value-exprs.
1589 * varpool.c (symbol_table::output_variables): Handle undefined
1590 variables together with defined ones.
1592 2016-07-15 Richard Biener <rguenther@suse.de>
1594 * tree-ssa-pre.c (get_representative_for): Make sure to return
1595 the value number of SSA names.
1596 (phi_translate_1): get_representative_for cannot return NULL.
1597 (do_pre_regular_insertion): Remove redundant call to
1598 fully_constant_expression.
1599 (do_pre_partial_partial_insertion): Likewise.
1601 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1603 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1604 (derive_simple_iv_with_niters): New function.
1605 (simple_iv): Rewrite using simple_iv_with_niters.
1606 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1607 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1609 (number_of_iterations_exit): Rewrite using above function.
1610 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1613 2016-07-15 Richard Biener <rguenther@suse.de>
1615 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1618 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1620 PR tree-optimization/71872
1621 * tree-data-ref.c (get_references_in_stmt): Ignore references
1622 with is_gimple_constant get_base_address.
1624 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1626 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1627 (TARGET_HAVE_LDACQD): New macro.
1628 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1629 than TARGET_HAVE_LDACQ.
1630 (arm_load_acquire_exclusivedi): Likewise.
1631 (arm_store_release_exclusivedi): Likewise.
1633 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1635 PR rtl-optimization/71878
1636 * lra-constraints.c (match_reload): Pass information about other
1637 output operands. Create new unique register value if matching input
1638 operand shares same register value as output operand being considered.
1639 (curr_insn_transform): Record output operands already processed.
1641 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1644 PR tree-optimization/70923
1645 * tree-vect-patterns.c: Include mult-synthesis.h.
1646 (target_supports_mult_synth_alg): New function.
1647 (synth_lshift_by_additions): Likewise.
1648 (apply_binop_and_append_stmt): Likewise.
1649 (vect_synth_mult_by_constant): Likewise.
1650 (target_has_vecop_for_code): Likewise.
1651 (vect_recog_mult_pattern): Use above functions to synthesize vector
1652 multiplication by integer constants.
1654 2016-07-14 Alan Modra <amodra@gmail.com>
1656 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1657 gpr alternatives. Correct '*' placement on Y,r alternative.
1658 Add '*' on operand 1 of r,r alternative.
1660 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1662 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1663 * expmed.h: ... Here.
1665 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1667 * gimple.h (stmt_can_terminate_bb_p): New function.
1668 * tree-cfg.c (need_fake_edge_p): Rename to ...
1669 (stmt_can_terminate_bb_p): ... this; return true if stmt can
1670 throw external; handle const and pure calls.
1671 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1673 2016-07-14 Richard Biener <rguenther@suse.de>
1675 PR tree-optimization/71866
1676 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1677 (do_hoist_insertion): Avoid endless recursion when we
1678 didn't insert anything because we managed to simplify
1679 things down to a constant or SSA name.
1680 (fully_constant_expression): Re-write in terms of ...
1681 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
1682 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1683 vn_nary_build_or_lookup_1.
1684 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1685 (vn_nary_build_or_lookup): ... this which now wraps it.
1687 2016-07-14 Alan Modra <amodra@gmail.com>
1690 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1691 with p9_vector override before power9-dform override.
1693 2016-07-13 Andi Kleen <ak@linux.intel.com>
1695 * value-prof.c (gimple_value_profile_transformations): Don't run
1696 when auto_profile is on.
1698 2016-07-13 Andi Kleen <ak@linux.intel.com>
1700 * auto-profile.c (update_inlined_ind_target,
1701 afdo_indirect_call): Print information to dump file.
1703 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1705 * genrecog.c (special_predicate_operand_p): New function.
1706 (predicate_name): Move function.
1707 (validate_pattern): Don't warn about missing mode for all
1708 define_special_predicate predicates.
1710 2016-07-13 Bin Cheng <bin.cheng@arm.com>
1712 * tree-vect-data-refs.c (vect_no_alias_p): New function.
1713 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1714 resolve alias checks which are known at compilation time.
1715 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1716 alias checks are resolved. Move dump info for too many runtime
1717 alias checks to here...
1718 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1720 2016-07-13 Richard Biener <rguenther@suse.de>
1722 PR tree-optimization/24574
1723 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1724 position and add shift, rotate, divison and modulo support
1726 (value_replacement): Pass in argument position to absorbing_element_p.
1728 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1731 * ipa-inline-transform.c (inline_call): Support
1732 instrumented thunks.
1734 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1736 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1737 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1739 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1740 Baseline. Make initial alternative TARGET_32BIT only.
1741 (udivsi3): Likewise.
1742 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1743 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1746 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1748 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1749 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1750 availability with TARGET_HAVE_MOVT.
1751 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1752 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1753 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1755 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1756 extra instruction if MOVW is available. Use a cost variable
1757 incremented by COSTS_N_INSNS (1) when the condition match rather than
1758 returning an arithmetic expression based on COSTS_N_INSNS. Make
1759 constant with bottom half word zero cost 2 instruction if MOVW is
1761 * config/arm/arm.md (define_attr "arch"): Add v8mb.
1762 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1763 target is ARMv8-M Baseline.
1764 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1765 (arm_movtas_ze): Likewise.
1766 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1767 alternative for constants satisfying j constraint.
1768 (thumb1_movsi_insn): Likewise.
1769 (movsi splitter for K alternative): Tighten condition to not trigger
1770 if movt is available and j constraint is satisfied.
1771 (Pe immediate splitter): Likewise.
1772 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1773 constant fitting in an halfword to use MOVW.
1774 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1777 2016-07-13 Richard Biener <rguenther@suse.de>
1780 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1781 gimplifying the LHS. Make sure to gimplify a returning twice
1782 call LHS without using SSA names.
1784 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1786 * tree-data-ref.c (find_data_references_in_stmt): Remove
1787 unnecessary call to vec::release.
1788 (graphite_find_data_references_in_stmt): Likewise.
1789 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1790 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1792 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1794 * cfgexpand.c (expand_used_vars): Make the type of a local
1796 * genmatch.c (lower_for): Likewise.
1797 * haifa-sched.c (haifa_sched_init): Likewise.
1798 (add_to_speculative_block): Likewise.
1799 (create_check_block_twin): Likewise.
1800 * predict.c (handle_missing_profiles): Likewise.
1801 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1802 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1803 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1805 (maybe_lower_iteration_bound): Likewise.
1806 * tree-ssa-sccvn.c (DFS): Likewise.
1807 * tree-stdarg.c (reachable_at_most_once): Likewise.
1808 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1809 (vectorizable_store): Likewise.
1811 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1813 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1814 (sccvn_dom_walker): make cond_stack an auto_vec.
1816 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1818 * ree.c (struct ext_state): Make type of members auto_vec.
1819 (find_and_remove_re): Adjust.
1821 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1823 * cfgexpand.c (struct stack_vars_data): Make type of fields
1825 (expand_used_vars): Adjust.
1827 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1829 * ipa.c (record_cdtor_fn): Adjust.
1830 (build_cdtor_fns): Likewise.
1831 (ipa_cdtor_merge): Make static_ctors and static_dtors local
1834 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1836 * genextract.c (struct accum_extract): Add constructor and make
1840 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1842 * tree.c (struct free_lang_data_d): Add constructor and change
1843 types of members to ones that automatically manage resources.
1844 (fld_worklist_push): Adjust.
1845 (find_decls_types): Likewise.
1846 (find_decls_types_in_eh_region): Likewise.
1847 (free_lang_data_in_cgraph): Stop manually creating and
1848 destroying members of free_lang_data_d.
1850 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
1852 PR rtl-optimization/68961
1853 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1854 peephole variant. Use sse_reg_operand predicates.
1856 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/predicates.md (x86_64_immediate_operand)
1859 <case CONST_INT>: Remove unneeded truncation to DImode.
1860 <case CONST>: Ditto.
1861 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1863 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1866 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1867 The xxperm and xxpermr instructions require that the 2nd input
1868 operand overlap with the output operand, and not the 1st.
1869 (altivec_vperm_v8hiv16qi): Likewise.
1870 (altivec_vperm_<mode>_uns_internal): Likewise.
1871 (altivec_vpermr_<mode>_internal): Likewise.
1872 (vperm_v8hiv4si): Likewise.
1873 (vperm_v16qiv8hi): Likewise.
1875 2016-07-12 Nathan Sidwell <nathan@acm.org>
1877 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1878 when -mno-pic-data-is-text-relative is in effect, by default.
1879 * doc/invoke.texi (mpic-data-is-text-relative): Document new
1880 behavior and clarify.
1882 2016-07-12 Martin Liska <mliska@suse.cz>
1884 * params.def: Add avg-loop niter.
1885 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1886 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1887 * doc/invoke.texi: Document the new parameter.
1889 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1892 * expr.c (store_constructor): Mask sign-extended bits when widening
1893 sub-word constructor element at the start of a word.
1895 2016-07-12 Martin Liska <mliska@suse.cz>
1897 * Makefile.in: Append rule for params-options.h.
1898 * params-options.h: New file.
1900 2016-07-12 Martin Liska <mliska@suse.cz>
1902 * ira-build.c (mark_loops_for_removal): Properly iterate
1905 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1906 Richard Biener <rguenther@suse.de>
1908 PR tree-optimization/23286
1909 PR tree-optimization/70159
1910 * doc/invoke.texi: Document -fcode-hoisting.
1911 * common.opt (fcode-hoisting): New flag.
1912 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1913 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1914 (do_regular_insertion): Rename to ...
1915 (do_pre_regular_insertion): ... this and amend general comments
1916 on insertion strathegy.
1917 (do_partial_partial_insertion): Rename to ...
1918 (do_pre_partial_partial_insertion): ... this.
1919 (do_hoist_insertion): New function.
1920 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1921 and call do_hoist_insertion properly.
1923 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1924 (pass_pre::execute): Register hoist_insert stats.
1926 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1929 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1930 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1931 is different from mode's bitsize. Small cleanup.
1933 2016-07-12 Richard Biener <rguenther@suse.de>
1935 PR rtl-optimization/68961
1936 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1937 to simplify to a non-constant.
1939 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1942 * omp-low.c (expand_omp_target): Gimplify device.
1944 PR tree-optimization/71823
1945 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1946 to get vec_oprnds2 from op2.
1948 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1950 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1951 Hoist common subexpressions.
1952 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1954 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1957 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1958 prevent generation of 'stxsiwx' on pre Power8 hardware.
1960 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1962 * input.c: Include cpplib.h.
1963 (selftest::temp_source_file): New class.
1964 (selftest::temp_source_file::temp_source_file): New ctor.
1965 (selftest::temp_source_file::~temp_source_file): New dtor.
1966 (selftest::should_have_column_data_p): New function.
1967 (selftest::test_should_have_column_data_p): New function.
1968 (selftest::temp_line_table): New class.
1969 (selftest::temp_line_table::temp_line_table): New ctor.
1970 (selftest::temp_line_table::~temp_line_table): New dtor.
1971 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1972 it to create a temp_line_table.
1973 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1974 locations that are known to have column data.
1975 (selftest::line_table_case): New struct.
1976 (selftest::test_reading_source_line): Move tempfile handling
1977 to class temp_source_file.
1978 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1979 (selftest::assert_token_loc_eq): New function.
1980 (ASSERT_TOKEN_LOC_EQ): New macro.
1981 (selftest::test_lexer): New function.
1982 (selftest::boundary_locations): New array.
1983 (selftest::input_c_tests): Call test_should_have_column_data_p.
1984 Loop over a test matrix of interesting values of location and
1985 default_range_bits, calling test_lexer on each case in the matrix.
1986 Move call to test_accessing_ordinary_linemaps into the matrix.
1987 * selftest.h (ASSERT_EQ): Reimplement in terms of...
1988 (ASSERT_EQ_AT): New macro.
1990 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1993 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1994 Don't convert TImode in debug insn.
1996 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1998 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1999 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
2000 (tree_type_common::lang_flag_7): New.
2001 (tree_type_common::spare): Reduce size.
2002 * tree.h (TYPE_ALIGN_OK): Remove.
2003 (TYPE_LANG_FLAG_7): New.
2004 (get_inner_reference): Adjust header.
2005 * print-tree.c (print_node): Adjust.
2006 * expr.c (get_inner_reference): Remove parameter keep_aligning.
2007 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
2008 calls to get_inner_reference.
2009 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
2010 handling of TYPE_ALIGN_OK.
2011 * builtins.c (get_object_alignment_2): Adjust call to
2012 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
2013 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
2015 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
2016 * cfgexpand.c (expand_debug_expr): Likewise.
2017 * dbxout.c (dbxout_expand_expr): Likewise.
2018 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
2019 loc_list_from_tree, fortran_common): Likewise.
2020 * fold-const.c (optimize_bit_field_compare,
2021 decode_field_reference, fold_unary_loc, fold_comparison,
2022 split_address_to_core_and_offset): Likewise.
2023 * gimple-laddress.c (execute): Likewise.
2024 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
2025 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
2026 * hsa-gen.c (gen_hsa_addr): Likewise.
2027 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
2028 * tsan.c (instrument_expr): Likewise.
2029 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
2030 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
2031 * tree-affine.c (tree_to_aff_combination,
2032 get_inner_reference_aff): Adjust calls to get_inner_reference.
2033 * tree-data-ref.c (split_constant_offset_1,
2034 dr_analyze_innermost): Likewise.
2035 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
2036 * tree-sra.c (ipa_sra_check_caller): Likewise.
2037 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
2038 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
2039 bswap_replace): Likewise.
2040 * tree-vect-data-refs.c (vect_check_gather,
2041 vect_analyze_data_refs): Likewise.
2042 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
2043 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
2046 2016-07-11 David Malcolm <dmalcolm@redhat.com>
2048 * Makefile.in (selftest-valgrind): New phony target.
2049 * function-tests.c (selftest::build_cfg): Delete pass instances
2050 created by the test.
2051 (selftest::convert_to_ssa): Likewise.
2052 (selftest::test_expansion_to_rtl): Likewise.
2053 * tree-cfg.c (selftest::test_linear_chain): Release dominator
2055 (selftest::test_diamond): Likewise.
2057 2016-07-11 Richard Biener <rguenther@suse.de>
2059 PR tree-optimization/71816
2060 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
2061 than replacing all of its operands.
2063 2016-07-11 Alan Modra <amodra@gmail.com>
2065 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2066 (ctr<mode>): Add unspec.
2067 (ctr<mode>_internal*): Likewise.
2069 2016-07-08 James Bowman <james.bowman@ftdichip.com>
2071 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
2072 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
2074 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
2076 PR rtl-optimization/71621
2077 * lra-constraints.c (process_alt_operands): Check combination of
2080 2016-07-08 Jason Merrill <jason@redhat.com>
2081 Richard Biener <rguenther@suse.de>
2083 P0145: Refining Expression Order for C++.
2084 * gimplify.c (initial_rhs_predicate_for): New.
2085 (gimplfy_modify_expr): Gimplify RHS before LHS.
2087 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2090 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2091 Allow standard error handling to take over when a wrong number
2092 of arguments is presented to __builtin_vec_ld () or
2093 __builtin_vec_st ().
2095 2016-07-08 Jiong Wang <jiong.wang@arm.com>
2097 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2102 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2103 __builtin_aarch64_fmaxv2sf.
2104 (vmaxnmq_f32): Likewise.
2105 (vmaxnmq_f64): Likewise.
2106 (vminnm_f32): Likewise.
2107 (vminnmq_f32): Likewise.
2108 (vminnmq_f64): Likewise.
2110 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2113 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2114 enable -mfloat128-hardware by default.
2115 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2116 that IEEE 128-bit hardware support needs.
2117 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2118 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2119 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2120 floating point requires.
2121 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2122 -mfloat128 and -mfloat128-hardware changes.
2124 2016-07-08 Alan Hayward <alan.hayward@arm.com>
2126 PR tree-optimization/71667
2127 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
2129 2016-07-08 Martin Liska <mliska@suse.cz>
2132 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2133 folding produces SAVE_EXPRs, thus return false for the type.
2135 2016-07-07 Martin Liska <mliska@suse.cz>
2137 * file-find.c (remove_prefix): New function.
2138 * file-find.h (remove_prefix): Declare the function.
2139 * gcc-ar.c (main): Skip a folder of the wrapper if
2140 a wrapped binary would point to the same file.
2142 2016-07-07 Jan Hubicka <jh@suse.cz>
2144 * tree-scalar-evolution.c (iv_can_overflow_p): export.
2145 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
2146 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
2148 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
2151 * ipa-inline-analysis.c (compute_inline_parameters): Set
2152 local.can_change_signature to false for intrumentation
2155 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2157 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
2158 with TARGET_HAVE_MOVT.
2159 (TARGET_HAVE_MOVT): Define.
2160 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
2161 availability with TARGET_HAVE_MOVT.
2162 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
2164 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
2166 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
2167 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
2168 * config/arm/constraints.md (define_constraint "j"): Use
2169 TARGET_HAVE_MOVT to check MOVT availability.
2171 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2173 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
2175 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2177 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
2178 (armv8-m.main): Likewise.
2179 (armv8-m.main+dsp): Likewise.
2180 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
2181 (FL_FOR_ARCH8M_MAIN): Likewise.
2182 * config/arm/arm-tables.opt: Regenerate.
2183 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
2184 armv8-m.main+dsp to BE8_LINK_SPEC.
2185 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
2186 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
2187 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
2188 Baseline and Mainline.
2189 (arm_option_override_internal): Also disable arm_restrict_it when
2190 !arm_arch_notm. Update comment for -munaligned-access to also cover
2192 (arm_file_start): Increase buffer size for printing architecture name.
2193 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
2194 and armv8-m.main+dsp.
2195 (mno-unaligned-access): Clarify that this is disabled by default for
2196 ARMv8-M Baseline architectures as well.
2198 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2200 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
2201 decide whether to prevent some libgcc routines being included for some
2202 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
2203 link between this condition and the one in
2204 libgcc/config/arm/lib1func.S.
2206 2016-07-07 Richard Biener <rguenther@suse.de>
2208 * tree-ssa-pre.c: Include alias.h.
2209 (compute_avail): If we have multiple VN_REFERENCEs with the
2210 same hashtable entry adjust that to make it a valid replacement
2211 for all of them with respect to alignment and aliasing
2212 when doing insertion.
2213 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
2214 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
2216 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
2220 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2221 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2224 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2226 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
2227 (adjust_mems): Adjust.
2228 (adjust_insn): Likewise.
2229 (prepare_call_arguments): Likewise.
2231 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2233 * gcse.c (struct ls_expr): Make stores field a vector.
2234 (ldst_entry): Adjust.
2235 (free_ldst_entry): Likewise.
2236 (print_ldst_list): Likewise.
2237 (compute_ld_motion_mems): Likewise.
2238 (update_ld_motion_stores): Likewise.
2240 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2242 * gcse.c (struct ls_expr): Remove loads field.
2243 (ldst_entry): Adjust.
2244 (free_ldst_entry): Likewise.
2245 (print_ldst_list): Likewise.
2246 (compute_ld_motion_mems): Likewise.
2248 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2250 * store-motion.c (struct st_expr): Make antic_stores a vector.
2251 (st_expr_entry): Adjust.
2252 (free_st_expr_entry): Likewise.
2253 (print_store_motion_mems): Likewise.
2254 (find_moveable_store): Likewise.
2255 (compute_store_table): Likewise.
2256 (remove_reachable_equiv_notes): Likewise.
2257 (replace_store_insn): Likewise.
2258 (build_store_vectors): Likewise.
2260 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2262 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
2263 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
2265 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
2267 PR tree-optimization/71518
2268 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2269 misalign also for outer loops with negative step.
2271 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
2273 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
2274 (cortex_a53_shift): Add mov_shift.
2275 (cortex_a53_shift_reg): Add new reservation for register shifts.
2276 (cortex_a53_alu): Remove bfm.
2277 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
2278 (cortex_a53_alu_extr): Add new reservation for EXTR.
2279 (bypasses): Improve bypass modelling.
2281 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2284 * config/avr/avr.c (avr_asm_select_section): Strip off
2285 SECTION_DECLARED from flags when calling get_section.
2287 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2289 * tree-vectorizer.h (vect_memory_access_type): Add
2290 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
2291 * tree-vect-stmts.c (compare_step_with_zero): New function.
2292 (perm_mask_for_reverse): Move further up file.
2293 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
2295 (get_negative_load_store_type): New function.
2296 (get_load_store_type): Call it. Add an ncopies argument.
2297 (vectorizable_mask_load_store): Update call accordingly and
2298 remove tests for negative steps.
2299 (vectorizable_store, vectorizable_load): Likewise. Handle new
2300 memory_access_types.
2302 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2304 * tree-vectorizer.h (vect_memory_access_type): New enum.
2305 (_stmt_vec_info): Add a memory_access_type field.
2306 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2307 (vect_model_store_cost): Take an access type instead of a boolean.
2308 (vect_model_load_cost): Likewise.
2309 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2310 vect_model_store_cost and vect_model_load_cost.
2311 * tree-vect-stmts.c (vec_load_store_type): New enum.
2312 (vect_model_store_cost): Take an access type instead of a
2313 store_lanes_p boolean. Simplify tests.
2314 (vect_model_load_cost): Likewise, but for load_lanes_p.
2315 (get_group_load_store_type, get_load_store_type): New functions.
2316 (vectorizable_store): Use get_load_store_type. Record the access
2317 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2318 (vectorizable_load): Likewise.
2319 (vectorizable_mask_load_store): Likewise. Replace is_store
2320 variable with vls_type.
2322 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2324 * tree-vectorizer.h (vect_grouped_load_supported): Add a
2325 single_element_p parameter.
2326 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2327 Check the PR65518 case here rather than in vectorizable_load.
2328 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2329 * tree-vect-stmts.c (vectorizable_load): Likewise.
2331 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2333 * tree-vectorizer.h (gather_scatter_info): New structure.
2334 (vect_check_gather_scatter): Return a bool rather than a decl.
2335 Replace return-by-pointer arguments with a single
2336 gather_scatter_info *.
2337 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2338 (vect_analyze_data_refs): Update call accordingly.
2339 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2340 (vectorizable_mask_load_store): Likewise. Also record the
2341 offset dt and vectype in the gather_scatter_info.
2342 (vectorizable_store): Likewise.
2343 (vectorizable_load): Likewise.
2345 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2347 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2348 strided groups, use the cost of N scalar accesses instead
2349 of ncopies vector accesses.
2350 (vect_model_load_cost): Likewise.
2352 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2354 * tree-vect-stmts.c (vect_cost_group_size): Delete.
2355 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
2356 variable to indicate when once-per-group costs are being used.
2357 (vect_model_load_cost): Likewise. Fix comment and misindented code.
2359 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2361 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2362 peeling-for-gaps condition.
2364 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2366 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2367 element to register if it doesn't match general_operand.
2369 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2370 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2372 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2374 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2375 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2376 (SIGNBIT): New mode iterator.
2377 (Fsignbit): New mode attribute.
2378 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2379 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2380 when direct moves are available.
2381 (signbit<mode>2_dm): New define_insn_and_split).
2382 (signbit<mode>2_dm2): New define_insn.
2384 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2386 PR rtl-optimization/71594
2387 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2388 into subregs of appropriate mode before trying to emit a conditional
2391 2016-07-05 Jan Hubicka <jh@suse.cz>
2393 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2394 (simple_iv): Use it.
2396 2016-07-05 Jan Hubicka <jh@suse.cz>
2398 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2400 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2402 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2405 2016-07-05 Jan Hubicka <jh@suse.cz>
2407 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2410 2016-07-05 Richard Biener <rguenther@suse.de>
2412 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2413 Handle empty else block.
2414 (is_feasible_trace): Likewise.
2415 (split_paths): Likewise.
2417 2016-07-05 Richard Biener <rguenther@suse.de>
2419 * tree-loop-distribution.c (distribute_loop): Fix issue with
2420 the cost model loop.
2422 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2424 * config/arm/neon-testgen.ml: Delete.
2425 * config/arm/neon.ml: Delete.
2427 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2430 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2431 directly using TREE_PURPOSE.
2433 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2435 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2436 * config/aarch64/aarch64_neon.h: Likewise.
2437 * config/aarch64/arm_neon.h: Likewise.
2438 * config/aarch64/atomics.md: Likewise.
2439 * config/aarch64/aarch64-simd-builtins.def: Likewise.
2440 * doc/invoke.texi: Likewise.
2442 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2444 * config/s390/s390.md: Add "z13" cpu_facility.
2445 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2446 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2447 condition" type instructions.
2449 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2450 Jeff Law <law@redhat.com>
2452 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2453 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2455 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2457 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2458 permutation for TARGET_AVX512F.
2459 (ix86_expand_vec_one_operand_perm_avx512): New function.
2460 (expand_vec_perm_1): Invoke introduced function.
2461 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2462 it may be not valid after vectorization.
2464 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2467 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2468 typo in comment. Only force to memory if it is a weak
2471 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2472 Jiong Wang <jiong.wang@arm.com>
2474 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2475 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2476 (AARCH64_FL_F16): New.
2477 (AARCH64_FL_FOR_ARCH8_2): New.
2478 (AARCH64_ISA_8_2): New.
2479 (AARCH64_ISA_F16): New.
2480 (TARGET_FP_F16INST): New.
2481 (TARGET_SIMD_F16INST): New.
2482 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2483 ("fp"): Disabling "fp" also disables "fp16".
2484 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2485 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2486 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2487 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2489 2016-07-04 Jan Beulich <jbeulich@suse.com>
2491 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2493 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2496 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2497 the insns, use an insn form that does not adjust the offset on
2498 little endian systems.
2500 2016-07-01 Jan Beulich <jbeulich@suse.com>
2502 * varasm.c (get_variable_section): Validate initializer in
2503 named .bss-like sections.
2505 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2507 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2508 Exchange the order of the second and third operands in the vpermr
2509 instruction tmeplate.
2511 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2514 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2515 Disallow TDmode values.
2517 2016-07-01 Alan Modra <amodra@gmail.com>
2519 PR rtl-optimization/71709
2520 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2521 being set, not referenced.
2523 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2525 PR tree-optimization/70729
2526 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2527 of loop since it can be not valid after transformation.
2529 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2531 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2532 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2534 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2536 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2539 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2542 * config/rs6000/constraints.md (wY constraint): New constraint to
2543 match the requirements for the LXSD and STXSD instructions.
2544 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2545 predicate to match the requirements for the LXSD and STXSD
2547 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2548 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2549 to make sure that the bottom 2 bits of offset are 0, the address
2550 form is offsettable, and no updating is done in the address mode.
2551 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2552 (movdi_internal32): Likewise
2553 (movdi_internal64): Likewise.
2555 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2557 PR tree-optimization/71707
2558 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2559 strinfo even for ADDR_EXPR ptr.
2561 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2563 * config/rs6000/altivec.md (darn_32): Change the condition to
2564 TARGET_P9_MISC instead of TARGET_MODULO.
2565 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2566 condition expression.
2567 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2568 condition expression.
2569 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2570 (DFP_TEST): New code iterator.
2571 (dfptstsfi_<code>_mode>): New define_expand.
2572 (*dfp_sgnfcnc_<mode>): New define_insn.
2573 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2574 definition next to BU_P9_MISC_1 definition and change the MASK
2575 value to RS6000_BTM_P9_MISC.
2576 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2577 (BU_P9_64BIT_MISC_0): Likewise.
2578 (BU_P9_DFP_MISC_0): New macro definition.
2579 (BU_P9_DFP_MISC_1): New macro definition.
2580 (BU_P9_DFP_MISC_2): New macro definition.
2581 (BU_P9_DFP_OVERLOAD_1): New macro definition.
2582 (BU_P9_DFP_OVERLOAD_2): New macro definition.
2583 (BU_P9_DFP_OVERLOAD_3): New macro definition.
2584 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2585 (TSTSFI_LT_TD): Likewise.
2586 (TSTSFI_EQ_DD): Likewise.
2587 (TSTSFI_EQ_TD): Likewise.
2588 (TSTSFI_GT_DD): Likewise.
2589 (TSTSFI_GT_TD): Likewise.
2590 (TSTSFI_OV_DD): Likewise.
2591 (TSTSFI_OV_TD): Likewise.
2592 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2593 (TSTSFI_LT_DD): Likewise.
2594 (TSTSFI_LT_TD): Likewise.
2595 (TSTSFI_EQ): Likewise.
2596 (TSTSFI_EQ_DD): Likewise.
2597 (TSTSFI_EQ_TD): Likewise.
2598 (TSTSFI_GT): Likewise.
2599 (TSTSFI_GT_DD): Likewise.
2600 (TSTSFI_GT_TD): Likewise.
2601 (TSTSFI_OV): Likewise.
2602 (TSTSFI_OV_DD): Likewise.
2603 (TSTSFI_OV_TD): Likewise.
2604 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2605 overloaded test significance functions.
2606 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2607 OPTION_MASK_P9_MISC into the representation of this mask.
2608 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2610 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2611 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2613 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2614 argument is a 6-bit unsigned literal value if the icode argument
2615 represents a DFP test significance built-in call.
2616 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2617 flag used independently and in combination with the
2618 RS6000_BTM_64BIT flag.
2619 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2620 (rs6000_builtin_mask_names): Add entry for power9-misc
2621 command-line option.
2622 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2623 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2624 RS6000_BTM_P9_MISC macros.
2625 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2626 option and change the description of the -mpower9-vector option to
2627 enable only vector instructions, removing its erroneously claimed
2628 support for scalar instructions.
2629 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2630 the ISA 3.0 digital floating point test significance built-in
2633 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2635 * config/aarch64/aarch64.c (cortexa35_tunings):
2636 Enable AES fusion. Use cortexa57_branch_cost.
2637 (cortexa53_tunings): Use cortexa57_branch_cost.
2638 (cortexa72_tunings): Use cortexa57_branch_cost.
2639 Use AUTOPREFETCHER_WEAK.
2640 (cortexa73_tunings): Use cortexa57_branch_cost.
2642 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2643 James Greenhalgh <james.greenhalgh@arm.com>
2645 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2646 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2647 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2648 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2649 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2650 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2651 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2652 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2653 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2654 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2655 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2656 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2657 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2660 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2661 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2663 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2665 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2667 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2670 * gcc.c (driver::build_option_suggestions): Pass "option" to
2671 add_misspelling_candidates.
2672 * opts-common.c (add_misspelling_candidates): Add "option" param;
2673 use it to avoid adding negated forms for options marked with
2675 * opts.h (add_misspelling_candidates): Add "option" param.
2677 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2680 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2681 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2682 first when permuting bitwise operation with rotate. Cast
2683 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2685 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2687 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2688 for misspelled param names.
2689 * params.c: Include spellcheck.h.
2690 (find_param_fuzzy): New function.
2691 * params.h (find_param_fuzzy): New prototype.
2692 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2693 * spellcheck.h (struct edit_distance_traits<const char *>):
2696 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2698 * config/rs6000/predicates.md (const_0_to_7_operand): New
2699 predicate, recognize 0..7.
2700 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2701 support for doing extracts from V16QImode, V8HImode, V4SImode
2703 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2704 vector extract support.
2705 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2706 for ISA 3.0 vector extract.
2707 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2708 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2709 extracts of a constant element number from small integer vectors
2710 on 64-bit ISA 3.0 systems.
2711 (vsx_extract_<mode>_di): Likewise.
2712 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2713 say when we can do ISA 3.0 vector extracts.
2714 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2715 registers, using the stxsiwx instruction.
2717 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
2719 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2720 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2721 qdf24xx_regmove_cost, qdf24xx_tunings): New.
2722 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2723 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2724 * config/arm/arm.c (arm_qdf24xx_tune): New.
2726 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
2728 * config/aarch64/aarch64.c (cortexa53_tunings):
2729 Increase loop alignment to 8. Set function alignment to 16.
2730 (cortexa35_tunings): Likewise.
2731 (cortexa57_tunings): Increase loop alignment to 8.
2732 (cortexa72_tunings): Likewise.
2733 (cortexa73_tunings): Likewise.
2735 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
2737 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2738 for arm_fp16_ok and arm_fp16_hw.
2739 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2740 arm_fp16_alternative.
2742 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
2744 PR tree-optimization/71655
2745 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2746 types when swapping operands.
2748 2016-06-29 Martin Liska <mliska@suse.cz>
2751 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2752 * ipa-inline-transform.c (inline_call): Remove unnecessary call
2753 of build_optimization_node.
2755 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2757 PR tree-optimization/70729
2758 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2759 independent in loops having positive safelen value.
2760 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2761 it may be not valid after vectorization.
2763 2016-06-29 Jakub Jelinek <jakub@redhat.com>
2765 PR tree-optimization/71625
2766 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
2767 is sorted by ascending list->offset. If PTR is non-NULL and there is
2768 previous strinfo, call get_stridx_plus_constant.
2769 (get_stridx): Pass exp as second argument to get_addr_stridx.
2770 (addr_stridxptr): Add missing list = list->next, so that there can be
2771 more than one entries in the list. Bump limit from 16 to 32. Ensure
2772 the list is sorted by ascending list->offset.
2773 (get_stridx_plus_constant): Adjust so that it can be also called with
2774 ADDR_EXPR instead of SSA_NAME as PTR.
2775 (handle_char_store): Pass NULL_TREE as second argument to
2778 2016-06-29 Richard Biener <rguenther@suse.de>
2780 PR rtl-optimization/68961
2781 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2783 2016-06-29 Richard Biener <rguenther@suse.de>
2786 * alias.c (component_uses_parent_alias_set_from): Handle
2787 type punning through union accesses by using the union alias set.
2788 * gimple.c (gimple_get_alias_set): Remove union type punning case.
2790 2016-07-29 Richard Biener <rguenther@suse.de>
2792 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2793 precision not matching mode precision.
2795 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
2797 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2798 pa_output_arg_descriptor.
2799 (call_val_symref_64bit_post_reload): Likewise.
2800 (call_val_powf_64bit_post_reload): Likewise.
2801 (sibcall_internal_symref_64bit): Likewise.
2802 (sibcall_value_internal_symref_64bit): Likewise.
2804 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2807 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2808 a constant, force its SUBREG_REG into memory or register instead
2811 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2814 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2815 * doc/invoke.texi (AVR Options): Document it.
2817 2016-06-28 Walter Lee <walt@tilera.com>
2819 * config/tilegx/linux.h: Do not include arch/icache.h
2820 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2821 * config/tilepro/linux.h: Do not include arch/icache.h
2822 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2824 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2826 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2827 for big-endian BIT_FIELD_REF.
2829 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2831 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2832 ('size' attribute): Add '128'.
2834 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2835 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2836 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2837 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2838 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2839 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2840 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2841 *trunc<mode>df2_odd): Set size attribute to '128'.
2842 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2843 * config/rs6000/power6.md (power6-fp): Include dfp type.
2844 * config/rs6000/power7.md (power7-fp): Likewise.
2845 * config/rs6000/power8.md (power8-fp): Likewise.
2846 * config/rs6000/power9.md: New file.
2847 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2848 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2849 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2851 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2852 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2853 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2854 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2855 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2856 dfp_dscri_<mode>): Change type attribute to dfp.
2857 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2858 attribute to vecsimple.
2859 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2860 and prefetch streams.
2861 (rs6000_option_override_internal): Remove temporary code setting
2862 tuning to power8. Don't set rs6000_sched_groups for power9.
2863 (last_scheduled_insn): Change to rtx_insn *.
2864 (divide_cnt, vec_load_pendulum): New variables.
2865 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2866 (rs6000_issue_rate): Set issue rate for Power9.
2867 (is_power9_pairable_vec_type): New.
2868 (power9_sched_reorder2): New.
2869 (rs6000_sched_reorder2): Call new function for Power9 specific
2871 (insn_must_be_first_in_group): Remove Power9.
2872 (insn_must_be_last_in_group): Likewise.
2873 (force_new_group): Likewise.
2874 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2875 Initialize divide_cnt/vec_load_pendulum.
2876 (_rs6000_sched_context, rs6000_init_sched_context,
2877 rs6000_set_sched_context): Handle context save/restore of new
2880 2016-06-28 Richard Biener <rguenther@suse.de>
2882 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2883 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2884 COMPONENT_REF operand.
2885 (nonoverlapping_component_refs_p): Likewise.
2886 * stor-layout.c (start_bitfield_representative): Mark
2887 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2889 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2891 * Makefile.in: Don't cat ../stage_current if it does not exist.
2893 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2894 last argument is a bit-field.
2896 PR rtl-optimization/71673
2897 * internal-fn.c (expand_arith_overflow_result_store): Use
2898 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2899 expand_simple_binop.
2902 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2903 expand_ifn_atomic_compare_exchange): New functions.
2904 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2905 * tree.h (build_call_expr_internal_loc): Rename to ...
2906 (build_call_expr_internal_loc_array): ... this. Fix up type of
2908 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2909 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2910 ATOMIC_COMPARE_EXCHANGE result.
2911 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2912 * gimple-fold.h (optimize_atomic_compare_exchange_p,
2913 fold_builtin_atomic_compare_exchange): New prototypes.
2914 * gimple-fold.c (optimize_atomic_compare_exchange_p,
2915 fold_builtin_atomic_compare_exchange): New functions..
2916 * tree-ssa.c (execute_update_addresses_taken): If
2917 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2918 of call when finding addressable vars, and if such var becomes
2919 non-addressable, call fold_builtin_atomic_compare_exchange.
2921 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2924 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2925 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2927 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2929 * config/rs6000/rs6000.md ('type' attribute): Add
2930 veclogical,veccmpfx,vecexts,vecmove insn types.
2931 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2932 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2933 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2934 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2935 *nabs<mode>2_hw): Change type to vecmove.
2936 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2937 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2938 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2939 *ieee_128bit_vsx_abs<mode>2_internal,
2940 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2941 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2942 *ieee128_mtvsrd_32bit): Change type to veclogical.
2943 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2944 *movdi_internal32, *movdi_internal64): Update insn types.
2945 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2946 vsx_extract_<mode>): Change type to veclogical.
2947 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2948 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2949 *vsx_sign_extend_si_v2di): Change type to vecexts.
2950 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2952 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2953 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2954 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2955 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2956 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2957 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2958 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2959 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2960 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2961 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2962 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2963 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2964 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2965 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2966 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2967 (ppc7450-vecsimple): Add veclogical, vecmove.
2968 (ppc7450-veccmp): Add veccmpfx.
2969 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2971 (ppc8540_vector_compare): Add veccmpfx.
2972 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2973 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2974 (cell-vecsimple): Add veclogical, vecmove.
2975 (cell-veccmp): Add veccmpfx.
2976 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2977 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2979 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2980 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2981 (power4-vecsimple): Add veclogical, vecmove.
2982 (power4-veccmp): Add veccmpfx.
2983 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2984 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2985 (power6-vecsimple): Add veclogical, vecmove.
2986 (power6-veccmp): Add veccmpfx.
2987 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2988 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2989 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2990 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2991 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2992 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2993 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2995 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2997 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
3000 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3001 OPTION_MASK_P9_DFORM_VECTOR.
3002 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
3003 disable -mpower9-dform-vector when using reload.
3004 (quad_address_p): Remove 'gpr_p' argument and all associated code.
3005 New 'strict' argument. Update all callers. Add strict addressing
3007 (rs6000_legitimate_offset_address_p): Remove call to
3008 virtual_stack_registers_memory_p.
3009 (rs6000_legitimize_reload_address): Add quad address support.
3010 (rs6000_legitimate_address_p): Move call to quad_address_p above
3011 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
3012 to account for new strict usage.
3013 (rs6000_output_move_128bit): Adjust quad_address_p args to account
3014 for new strict usage.
3015 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
3017 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
3024 * config/i386/i386.c (ix86_spill_class): Disable condition to
3025 always return NO_REGS.
3027 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
3029 * predict.c: Include gimple-pretty-print.h
3030 (predicted_by_loop_heuristics_p): Check also
3031 PRED_LOOP_EXIT_WITH_RECURSION
3032 (predict_loops): Find self recursive calls and use special purpose
3033 predictors for them; dump log about decisions.
3034 (pass_profile::execute): Dump info about #of iterations.
3035 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
3036 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
3038 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
3040 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
3041 output_asm_insn calls and shorten long lines. Output .CALL
3042 argument descriptor using pa_output_arg_descriptor. Add various
3043 inline $$dyncall and other optimizations.
3044 (pa_attr_length_indirect_call): Adjust ordering and lengths.
3046 2016-06-25 Jakub Jelinek <jakub@redhat.com>
3048 PR tree-optimization/71643
3049 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
3052 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
3053 leak a bitmap if dep_bb is NULL.
3055 PR tree-optimization/71631
3056 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
3057 to rewrite_expr_tree even if negate_result, move new_lhs var
3058 declaration and initialization earlier, for powi_result set afterwards
3059 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
3060 if new_lhs != lhs, and don't shadow gsi var.
3062 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
3064 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
3065 Add in_loop parameter.
3066 (predict_loops): Add loop guard heuristics.
3067 * predict.def (PRED_LOOP_GUARD): New heuristics.
3069 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
3071 * predict.c: Include ipa-utils.h
3072 (tree_bb_level_prediction): Predict recursive calls.
3073 (tree_estimate_probability_bb): Skip inexpensive calls for call
3075 * predict.def (PRED_RECURSIVE_CALL): New.
3077 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3079 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3080 (BU_FLOAT128_1): Likewise.
3082 (COPYSIGNQ): Likewise.
3083 (RS6000_BUILTIN_NANQ): Likewise.
3084 (RS6000_BUILTIN_NANSQ): Likewise.
3085 (RS6000_BUILTIN_INFQ): Likewise.
3086 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3087 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3088 (TARGET_FOLD_BUILTIN): New #define.
3089 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3090 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3091 (rs6000_fold_builtin): New target hook implementation, handling
3092 folding of 128-bit NaNs and infinities.
3093 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3094 entries are filled in to avoid problems during bootstrap
3095 self-test; define builtins for 128-bit NaNs and infinities.
3096 (rs6000_opt_mask): Add entry for float128.
3097 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3098 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3099 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3100 (const_str_type_node): New #define.
3101 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3102 to a define_expand that dispatches to either copysign<mode>3_soft
3103 or copysign<mode>3_hard.
3104 (copysign<mode>3_hard): Rename from copysign<mode>3.
3105 (copysign<mode>3_soft): New define_insn.
3106 * doc/extend.texi: Document new builtins.
3108 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3110 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
3111 PRIu64 instead of lu.
3113 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
3116 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
3119 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3121 PR tree-optimization/71647
3122 * omp-low.c (lower_rec_input_clauses): Convert
3123 omp_clause_aligned_alignment (c) to size_type_node for the
3124 last argument of __builtin_assume_aligned.
3126 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
3128 * configure.ac (calling ___tls_get_addr via GOT): New
3129 assembler/linker check.
3130 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
3131 assembler and linker supports calling ___tls_get_addr via GOT.
3132 Otherise, defined to 0.
3133 * config.in: Regenerated.
3134 * configure: Likewise.
3135 * config/i386/constraints.md (Yb): New constraint.
3136 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
3137 (REG_CLASS_NAMES): Likewise.
3138 (REG_CLASS_CONTENTS): Likewise.
3139 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
3140 the b constraint with the Yb constraint. Call ___tls_get_addr
3141 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
3143 (*tls_local_dynamic_base_32_gnu): Likewise.
3144 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
3145 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
3146 (*tls_local_dynamic_base_64_<mode>): Likewise.
3148 2016-06-24 Martin Liska <mliska@suse.cz>
3150 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
3151 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
3153 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
3154 argument to true if the expected number of iterations is
3157 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
3159 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
3160 assemble for 32bit target.
3161 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
3162 and $ld_ix86_gld_32_opt to link for 32bit target.
3163 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
3164 * configure: Regenerate.
3166 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3168 * config/arm/arm.c (int_log2): Delete definition and prototype.
3169 (shift_op): Use exact_log2 instead of int_log2.
3170 (vfp3_const_double_for_fract_bits): Likewise.
3172 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3174 * internal-fn.c (expand_arith_set_overflow): New function.
3175 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3177 (expand_arith_overflow_result_store): Likewise. Handle precision
3178 smaller than mode precision.
3179 * tree-vrp.c (extract_range_basic): For imag part, handle
3180 properly signed 1-bit precision result.
3181 * doc/extend.texi (__builtin_add_overflow): Document that last
3182 argument can't be pointer to enumerated or boolean type.
3183 (__builtin_add_overflow_p): Document that last argument can't
3184 have enumerated or boolean type.
3186 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3187 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3189 * config/rs6000/predicates.md (splat_input_operand): Rework.
3190 Don't allow constants, since the insns that use this predicate
3191 don't support constants. Constants are handled by other insns
3192 that are created via combine. During and after register
3193 allocation, only allow indexed or indirect addresses, and not
3194 general addresses. Only allow modes supported by the hardware.
3195 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
3196 comment. Move check for using VSPLTIS<x> to a common location,
3197 instead of doing it in two different places.
3199 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
3201 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3202 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
3203 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
3204 signature_CENTAUR_ebx.
3206 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
3210 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
3211 (as_ix86_gas_32_opt): This.
3212 (ld_ix86_tls_ldm_opt): Renamed to ...
3213 (ld_ix86_gld_32_opt): This.
3214 (R_386_TLS_LDM reloc): Updated.
3215 (R_386_GOT32X reloc): New assembler/linker check.
3216 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
3217 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
3219 * config.in: Regenerated.
3220 * configure: Likewise.
3221 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
3222 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
3223 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
3224 if ix86_force_load_from_GOT_p returns true.
3225 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
3226 ix86_force_load_from_GOT_p returns true.
3227 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
3228 the external function address via the GOT slot.
3229 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
3230 HAVE_AS_IX86_GOT32X before returning false.
3231 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
3232 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
3234 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
3236 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
3238 2016-06-23 Andi Kleen <ak@linux.intel.com>
3240 * Makefile.in: Regenerate.
3241 * doc/install.texi: Document autoprofiledbootstrap.
3243 2016-06-23 Andi Kleen <ak@linux.intel.com>
3245 * config/i386/gcc-auto-profile: New file.
3247 2016-06-23 Martin Liska <mliska@suse.cz>
3250 * predict.c (predict_loops): Revert the hunk that was removed
3253 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
3255 * config.gcc: Add support for arm*-*-phoenix* targets.
3256 * config/arm/t-phoenix: New.
3257 * config/phoenix.h: New.
3259 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
3260 H.J. Lu <hongjiu.lu@intel.com>
3263 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
3264 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
3265 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
3266 ix86_force_load_from_GOT_p returns true.
3267 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
3268 ix86_force_load_from_GOT_p returns true.
3269 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
3270 ix86_force_load_from_GOT_p returns true.
3271 (ix86_expand_move): Load the external function address via the
3272 GOT slot if ix86_force_load_from_GOT_p returns true.
3273 * config/i386/predicates.md (x86_64_immediate_operand): Return
3274 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
3275 (x86_64_zext_immediate_operand): Ditto.
3277 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
3279 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
3281 2016-06-22 David Malcolm <dmalcolm@redhat.com>
3284 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
3285 * diagnostic.c (pedwarn_at_rich_loc): New function.
3286 * spellcheck.h (best_match::best_match): Add a
3287 "best_distance_so_far" optional parameter.
3288 (best_match::set_best_so_far): New method.
3289 (best_match::get_best_distance): New accessor.
3290 (best_match::get_best_candidate_length): New accessor.
3292 2016-06-22 Nick Clifton <nickc@redhat.com>
3294 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
3295 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
3296 modes are accepted as well.
3297 (ucompare_loc_descriptor): Likewise.
3298 (minmax_loc_descriptor): Likewise.
3299 (clz_loc_descriptor): Likewise.
3300 (popcount_loc_descriptor): Likewise.
3301 (bswap_loc_descriptor): Likewise.
3302 (rotate_loc_descriptor): Likewise.
3303 (mem_loc_descriptor): Likewise.
3304 (loc_descriptor): Likewise.
3306 2016-06-22 David Malcolm <dmalcolm@redhat.com>
3308 * common.opt (fdiagnostics-parseable-fixits): New option.
3309 * diagnostic.c: Include "selftest.h".
3310 (print_escaped_string): New function.
3311 (print_parseable_fixits): New function.
3312 (diagnostic_report_diagnostic): Call print_parseable_fixits.
3313 (selftest::assert_print_escaped_string): New function.
3314 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3315 (selftest::test_print_escaped_string): New function.
3316 (selftest::test_print_parseable_fixits_none): New function.
3317 (selftest::test_print_parseable_fixits_insert): New function.
3318 (selftest::test_print_parseable_fixits_remove): New function.
3319 (selftest::test_print_parseable_fixits_replace): New function.
3320 (selftest::diagnostic_c_tests): New function.
3321 * diagnostic.h (struct diagnostic_context): Add field
3322 "parseable_fixits_p".
3323 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3324 -fdiagnostics-parseable-fixits.
3325 (-fdiagnostics-parseable-fixits): New option.
3326 * opts.c (common_handle_option): Handle
3327 -fdiagnostics-parseable-fixits.
3328 * selftest-run-tests.c (selftest::run_tests): Call
3329 selftest::diagnostic_c_tests.
3330 * selftest.h (selftest::diagnostic_c_tests): New prototype.
3332 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
3334 PR tree-optimization/71488
3335 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3336 comparison of boolean vectors.
3337 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3338 of boolean vectors using bitwise operations.
3340 2016-06-22 Andreas Schwab <schwab@suse.de>
3342 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3345 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
3347 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3349 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3351 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3354 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3356 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3357 * config/arm/arm-cores.def (cortex-a73): New entry.
3358 (cortex-a73.cortex-a35): Likewise.
3359 (cortex-a73.cortex-a53): Likewise.
3360 * config/arm/arm-tables.opt: Regenerate.
3361 * config/arm/arm-tune.md: Likewise.
3362 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3363 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3364 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3365 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3366 * doc/invoke.texi (ARM Options): Document cortex-a73,
3367 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3369 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3371 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3372 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3373 (cortex-a73.cortex-a35): Likewise.
3374 (cortex-a73.cortex-a53): Likewise.
3375 * config/aarch64/aarch64-tune.md: Regenerate.
3376 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3377 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3380 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3382 * configure.ac (gcc_cv_as_compress_debug): Remove
3383 --compress-debug-sections as extra as switch.
3384 Handle gas --compress-debug-sections=type.
3385 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3386 Handle gld --compress-debug-sections=type.
3387 * configure: Regenerate.
3389 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3391 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3393 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3395 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3396 (do_rewrite): likewise.
3398 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3400 * common/config/mep/mep-common.c: Remove.
3401 * config.gcc: Remove mep-* support.
3402 * config/mep/constraints.md: Remove.
3403 * config/mep/default.h: Remove.
3404 * config/mep/intrinsics.h: Remove.
3405 * config/mep/intrinsics.md: Remove.
3406 * config/mep/ivc2-template.h: Remove.
3407 * config/mep/mep-c5.cpu: Remove.
3408 * config/mep/mep-core.cpu: Remove.
3409 * config/mep/mep-default.cpu: Remove.
3410 * config/mep/mep-ext-cop.cpu: Remove.
3411 * config/mep/mep-intrin.h: Remove.
3412 * config/mep/mep-ivc2.cpu: Remove.
3413 * config/mep/mep-pragma.c: Remove.
3414 * config/mep/mep-protos.h: Remove.
3415 * config/mep/mep.c: Remove.
3416 * config/mep/mep.cpu: Remove.
3417 * config/mep/mep.h: Remove.
3418 * config/mep/mep.md: Remove.
3419 * config/mep/mep.opt: Remove.
3420 * config/mep/predicates.md: Remove.
3421 * config/mep/t-mep: Remove.
3422 * doc/install.texi: Remove mep-* documentation.
3423 * doc/md.texi: Likewise.
3425 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3427 * config.gcc: Remove support for avr-rtems.
3428 * config/avr/gen-avr-mmcu-specs.c: Likewise.
3429 * config/avr/rtems.h: Remove.
3430 * config/avr/t-rtems: Remove.
3432 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3434 * config.gcc: Remove m32r-rtems support.
3435 * config/m32r/rtems.h: Remove.
3437 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3439 * config.gcc: Remove h8300-rtems support.
3440 * config/h8300/rtems.h: Remove.
3441 * config/h8300/t-rtems: Remove.
3443 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3445 * config.gcc: Remove support for knetbsd.
3446 * configure.ac: Likewise.
3447 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
3448 * config/knetbsd-gnu.h: Remove.
3449 * configure: Regenerate.
3451 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3453 * config.gcc: Remove support for openbsd 2 and 3.
3454 * config/openbsd-oldgas.h: Remove.
3456 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3458 * config.gcc: Remove interix support.
3459 * config/i386/i386-interix.h: Remove.
3460 * config/i386/interix.opt: Remove.
3461 * config/i386/t-interix: Remove.
3462 * configure: Regenerate.
3463 * configure.ac: Remove interix support.
3464 * doc/install.texi: Remove interix documentation.
3466 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3468 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3469 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3472 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3474 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3475 they are both PLACEHOLDER_EXPRs.
3477 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3479 * stor-layout.c (layout_type): Move setting complex MODE to
3480 layout_type, instead of setting it ahead of time by the caller.
3481 * tree.c (build_complex_type): Likewise.
3483 2016-06-21 Martin Liska <mliska@suse.cz>
3485 * predict.c (force_edge_cold): Replace imposisble with
3488 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3490 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3491 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3493 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3495 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3497 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3498 Ilya Enkovich <ilya.enkovich@intel.com>
3501 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3502 New member function to convert V1TImode register to SUBREG
3503 TImode in debug insn.
3504 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3505 after changing register mode to V1TImode.
3507 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3509 * config/aarch64/aarch64-cores.def (vulcan): New core.
3510 * config/aarch64/aarch64-tune.md: Regenerate.
3511 * doc/invoke.texi: Document vulcan as an available option.
3513 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3515 * cse.c (canon_asm_operands): New function extracted from...
3516 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
3517 either standalone or member of a PARALLEL.
3519 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3522 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3523 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3524 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3526 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3529 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3530 constant addresses if can_create_pseudo_p.
3532 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3534 PR tree-optimization/71588
3535 * tree-ssa-strlen.c (valid_builtin_call): New function.
3536 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3539 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3542 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3543 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3544 for conversion of scalar user var to complex type and use the
3545 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
3548 PR rtl-optimization/71591
3549 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3550 don't run any tests.
3552 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3555 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3556 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
3557 space for PIC with non-v32 and the common non-PIC "jump".
3559 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3562 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3563 returned values and add UN*/LTGT/*ORDERED cases with values matching
3564 D operand modifier on vcmp for AVX.
3566 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3568 * config/aarch64/aarch64.opt
3569 (mpc-relative-literal-loads): Rename internal option name.
3570 * config/aarch64/aarch64.c
3571 (aarch64_nopcrelative_literal_loads): Rename to
3572 aarch64_pcrelative_literal_loads.
3573 (aarch64_expand_mov_immediate): Likewise.
3574 (aarch64_secondary_reload): Likewise.
3575 (aarch64_can_use_per_function_literal_pools_p): Likewise.
3576 (aarch64_override_options_after_change_1): Rename and simplify logic.
3577 (aarch64_classify_symbol): Merge large model checks into switch,
3578 remove pc-relative load check.
3580 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3582 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3583 costs relative to the cost of a register move.
3585 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3587 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3588 (vcvt_n_f64_u64): Likewise.
3589 (vcvt_n_s64_f64): Likewise.
3590 (vcvt_n_u64_f64): Likewise.
3591 (vcvt_f64_s64): Likewise.
3592 (vrecpe_f64): Likewise.
3593 (vcvt_f64_u64): Likewise.
3594 (vrecps_f64): Likewise.
3596 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3598 * config/aarch64/aarch64.md
3599 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3601 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3603 * config/aarch64/aarch64-builtins.c
3604 (aarch64_types_binop_uss_qualifiers): Delete.
3605 (TYPES_BINOP_USS): Likewise.
3606 (aarch64_types_binop_sus_qualifiers): Likewise.
3607 (TYPES_BINOP_SUS): Likewise.
3608 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3609 (TYPES_FCVTIMM_SUS): Likewise.
3610 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3612 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3613 (fcvtzs): Use SHIFTIMM rather than BINOP.
3614 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3616 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3618 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3619 costs relative to the cost of a register move.
3621 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3623 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3624 Allow scalar/single vector modes to be tieable.
3626 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3628 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3630 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3632 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3634 * tree.h (TYPE_ALIGN): Likewise.
3636 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3639 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3641 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3643 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3644 literal" build warnings.
3645 (avr_print_operand_address): Dito.
3647 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3650 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3651 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3653 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3655 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3657 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3660 * reload1.c (reload): Pass 0 to finish_spills when called because
3661 update_eliminables_and_spill returns true and remove did_spill.
3662 (finish_spills): Adjust comment and document GLOBAL parameter.
3664 2016-06-17 DJ Delorie <dj@redhat.com>
3667 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3668 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3669 (umulqihi3_virt): Likewise.
3670 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3671 (umulqihi3_real): Likewise.
3673 2016-06-17 Martin Liska <mliska@suse.cz>
3675 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3677 2016-06-17 Martin Liska <mliska@suse.cz>
3679 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3681 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3683 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3685 (vaddq_f32): Likewise.
3686 (vmul_f32): Likewise.
3687 (vmulq_f32): Likewise.
3688 (vsub_f32): Likewise.
3689 (vsubq_f32): Likewise.
3691 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3693 PR tree-optimization/71347
3694 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3695 cost for all uses in group.
3697 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3699 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3700 insert gimple seq if it's not empty.
3702 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3704 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3706 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3708 (comp_dr_with_seg_len_pair): Ditto.
3709 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
3710 struct dr_with_seg_len_pair against DR_OFFSET.
3711 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3714 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
3716 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3718 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
3720 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3721 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3722 (pa_output_millicode_call): Likewise.
3723 (pa_output_call): Likewise.
3724 (pa_output_indirect_call): Likewise.
3725 (pa_asm_output_mi_thunk): Likewise.
3727 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3729 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3731 2016-06-16 Martin Liska <mliska@suse.cz>
3733 * predict.c (combine_predictions_for_insn): When we find a first
3734 match predictor, we should consider just predictors with
3735 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
3736 DS theory predictor.
3737 (combine_predictions_for_bb): Likewise.
3739 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3741 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3742 with base of reference to struct.
3744 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3746 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3748 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3751 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3752 progmem_swtable_section.
3753 (progmem_swtable_section): Remove.
3754 (avr_asm_function_rodata_section): Remove.
3755 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3756 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3758 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
3760 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3761 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3762 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3763 signature_CENTAUR_ebx.
3764 * config/i386/i386.c (ix86_option_override_internal): Add
3765 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3766 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3767 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3769 2016-06-16 Martin Liska <mliska@suse.cz>
3771 * predict.def: Add fortran loop preheader predictor.
3772 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3773 fold IFN_BUILTIN_EXPECT with a known constant argument.
3775 2016-06-16 Martin Liska <mliska@suse.cz>
3777 * predict.def: Add 'Fortran' to display text of all
3778 PRED_FORTRAN_* predictors.
3780 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3783 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3784 [IA64_BUILTIN_NANSQ]: Ditto.
3785 (ia64_fold_builtin): New function.
3786 (TARGET_FOLD_BUILTIN): New define.
3787 (ia64_init_builtins) Declare const_string_type node.
3788 Add __builtin_nanq and __builtin_nansq builtin functions.
3789 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3791 2016-06-16 Nick Clifton <nickc@redhat.com>
3793 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3794 MSP430_HWMULT_ prefix to enum values.
3795 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3796 * config/msp430/msp430.c: Update use of enum values.
3797 * config/msp430/msp430.md: Likewise.
3798 * config/msp430/msp430.opt: Likewise.
3800 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
3802 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3803 of comparsions in the last iteration.
3805 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3806 Joern Rennecke <joern.rennecke@embecosm.com>
3808 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3810 (arc_needs_pcl_p): Add GOTOFFPC.
3811 (arc_legitimate_pic_addr_p): Likewise.
3812 (arc_output_pic_addr_const): Likewise.
3813 (arc_legitimize_pic_address): Generate a pc-relative address using
3815 (arc_output_libcall): Use @pcl syntax.
3816 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3817 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3818 (*movsi_insn): Use @pcl syntax.
3819 (doloop_begin_i): Likewise.
3821 2016-06-16 Martin Liska <mliska@suse.cz>
3823 * predict.def: Define a new predictor.
3825 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3827 * config/arc/arc.opt (mtp-regno): Update text.
3829 2016-06-16 Renlin Li <renlin.li@arm.com>
3831 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3833 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3836 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3837 (setcc + and peephole2): Likewise.
3839 PR rtl-optimization/71532
3840 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3843 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3845 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3846 DImode constants with XXSPLTIB in vector registers.
3847 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3848 vsx_extract_<mode>_internal{1,2} into a single insn that handles
3849 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3850 extraction of the element at the top of the register as a scalar
3852 (vsx_extract_<mode>_internal1): Likewise.
3853 (vsx_extract_<mode>_internal2): Likewise.
3854 * config/rs6000/constraints.md (wi constraint): Remove a comment
3855 about DImode not being allowed in Altivec registers.
3856 (wB constraint): New constraint for constants that can be
3857 generated in Altivec registers with VSPLTISW/VUPKHSW.
3858 * config/rs6000/predicates.md (xxspltib_constant_split): Update
3860 (xxspltib_constant_nosplit): Likewise.
3861 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3862 support for -mupper-regs-di to enable DImode to go into Altivec
3864 (POWERPC_MASKS): Likewise.
3865 (power7 cpu): Likewise.
3866 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3867 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3868 for DImode being allowed in Altivec registers. Update wi/wj
3869 constraints. Set scalar_in_vmx_p flag.
3870 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3871 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
3872 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3873 (rs6000_opt_masks): Add -mupper-regs-di.
3874 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3875 direct move to use wi and not wj.
3877 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3879 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3880 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3881 any VSX register, instead of just Altivec registers, to allow
3882 either operand to be an Altivec register or both.
3883 (fixuns_trunc<mode>di2_fctiduz): Likewise.
3884 (movdi_internal32): Add support for -mupper-regs-di. Add support
3885 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
3886 the alternatives and attributes to be lined up to be easier to
3888 (movdi_internal64): Likewise.
3889 (64-bit DImode splitters): Change predicates to only split loading
3890 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
3891 load constants in ISA 3.0 or ISA 2.07 respectively.
3892 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3893 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
3894 mention -mcpu=power9 sets these options.
3895 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3898 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3901 * config/avr/avr.c (avr_set_current_function): Warn misspelled
3902 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3903 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3904 by default to warn misspelled interrupt/ signal handler.
3905 * doc/invoke.texi (AVR Options): Document it. Update description
3906 for -nodevicelib option.
3908 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3910 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3911 up parentheses. Use GET_MODE_UNIT_BITSIZE.
3912 (aarch64_<sur>shll2_n<mode>): Likewise.
3914 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3917 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3918 DECL_CONTEXT for copied arguments.
3920 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3922 PR tree-optimization/71483
3923 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3926 2016-06-15 Martin Liska <mliska@suse.cz>
3928 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3929 instead of predict_edge w/o a probability.
3931 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3933 PR tree-optimization/71439
3934 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3937 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3939 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3940 register subregs in SET_SRC.
3942 2016-06-15 Richard Biener <rguenther@suse.de>
3944 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3947 2016-06-15 Richard Biener <rguenther@suse.de>
3949 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3950 not consider dependences between accesses that belong to the
3952 (vect_analyze_data_ref_dependences): Do not analyze read-read
3953 or self-dependences.
3955 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3957 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3959 (find_closest_identifier): Reimplement in terms of
3960 best_match<tree,tree>.
3961 * spellcheck-tree.h: New file.
3962 * spellcheck.c (struct edit_distance_traits<const char *>): New
3964 (find_closest_string): Reimplement in terms of
3965 best_match<const char *, const char *>.
3966 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3967 overload to spellcheck-tree.h.
3968 (find_closest_identifier): Likewise.
3969 (struct edit_distance_traits<T>): New template.
3970 (class best_match): New class.
3972 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3974 * selftest-run-tests.c (selftest::run_tests): Call
3975 selftest::spellcheck_tree_c_tests.
3976 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3977 * spellcheck-tree.c: Include selftest.h and stringpool.h.
3978 (selftest::test_find_closest_identifier): New function.
3979 (selftest::spellcheck_tree_c_tests): New function.
3980 * spellcheck.c (selftest::test_find_closest_string): Verify that
3981 the order of the vec does not affect the results for this case.
3982 (selftest::test_data): New array.
3983 (selftest::test_metric_conditions): New function.
3984 (selftest::spellcheck_c_tests): Add a test of case-comparison.
3985 Call selftest::test_metric_conditions.
3987 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3989 * config/rs6000/rs6000-builtin.def (commentary): Typo.
3990 (BU_P9_MISC_1): Likewise.
3991 (BU_P9_64BIT_MISC_0): Likewise.
3992 (BU_P9_MISC_0): Likewise.
3994 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3996 * gcc-rich-location.c
3997 (gcc_rich_location::add_fixit_misspelled_id): New method.
3998 * gcc-rich-location.h
3999 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
4001 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
4003 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
4004 FreeBSD 11 and above.
4006 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
4008 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
4010 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4012 * expmed.h: Close parenthesis in "at your option" in copyright
4014 * lower-subreg.h: Likewise.
4016 2016-06-14 Richard Biener <rguenther@suse.de>
4019 * genmatch.c (expr::gen_transform): Use in_type for comparisons
4022 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4024 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
4026 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
4028 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
4030 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
4031 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
4033 2016-06-14 Richard Biener <rguenther@suse.de>
4035 PR tree-optimization/71522
4036 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4037 copying into float copying.
4039 2016-06-14 Jakub Jelinek <jakub@redhat.com>
4041 PR tree-optimization/71520
4042 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
4043 (replace_block_by): Move user labels from bb1 to bb2.
4045 2016-06-14 Richard Biener <rguenther@suse.de>
4049 * expr.h (get_bit_range): Declare.
4050 * expr.c (get_bit_range): Export.
4051 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
4052 word_mode again to constrain the bitfield access.
4054 2016-06-14 Richard Biener <rguenther@suse.de>
4056 PR tree-optimization/71521
4057 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4058 division int_const_binop against zero divisor.
4060 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4062 * config/i386/i386.md (signbittf2): New expander.
4063 * config/i386/sse.md (ptesttf2): New insn pattern.
4065 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4068 * input.c (selftest::test_reading_source_line): Avoid reading from
4069 __FILE__ by creating a tempfile with known content and reading
4072 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4074 * pretty-print.c (assert_pp_format_colored): Skip the test if
4076 (test_pp_format): Remove comment about GCC_COLORS.
4078 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4080 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
4081 * pretty-print.c (assert_pp_format_va): Add location param and use
4082 it with ASSERT_STREQ_AT.
4083 (assert_pp_format): Add location param and pass it to
4084 assert_pp_format_va.
4085 (assert_pp_format_colored): Likewise.
4086 (ASSERT_PP_FORMAT_1): New.
4087 (ASSERT_PP_FORMAT_2): New.
4088 (ASSERT_PP_FORMAT_3): New.
4089 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
4090 explicitly, or implicitly via the above macros.
4091 * selftest.c (selftest::pass): Use a selftest::location rather
4093 (selftest::fail): Likewise. Print the function name.
4094 (selftest::fail_formatted): Likewise.
4095 (selftest::assert_streq): Use a selftest::location rather than
4097 * selftest.h (selftest::location): New struct.
4098 (SELFTEST_LOCATION): New macro.
4099 (selftest::pass): Accept a const location & rather than file
4101 (selftest::fail): Likewise.
4102 (selftest::fail_formatted): Likewise.
4103 (selftest::assert_streq): Likewise.
4104 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
4105 (ASSERT_FALSE): Likewise.
4106 (ASSERT_EQ): Likewise.
4107 (ASSERT_NE): Likewise.
4108 (ASSERT_STREQ): Likewise.
4109 (ASSERT_PRED1): Likewise.
4110 (ASSERT_STREQ_AT): New macro.
4112 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4114 * selftest.c (selftest::fail_formatted): New function.
4115 (selftest::assert_streq): New function.
4116 * selftest.h (selftests::fail_formatted): New decl.
4117 (selftest::assert_streq): New decl.
4118 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
4120 2016-06-13 Jeff Law <law@redhat.com>
4122 PR tree-optimization/71403
4123 * tree-ssa-threadbackward.c
4124 (convert_and_register_jump_thread_path): No longer accept reference
4125 to path. Do not pop items off the path anymore.
4126 (fsm_find_control_statement_thread_paths): Do not allow threading
4127 to a deeper loop nest. Pop the last item off the path here rather
4128 than in convert_and_register_jump_thread_path.
4130 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4131 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
4133 [AArch64] Emit division using the Newton series
4135 * config/aarch64/aarch64-protos.h
4136 (cpu_approx_modes): Add new member "division".
4137 (aarch64_emit_approx_div): Declare new function.
4138 * config/aarch64/aarch64.c
4139 (generic_approx_modes): New member "division".
4140 (exynosm1_approx_modes): Likewise.
4141 (xgene1_approx_modes): Likewise.
4142 (aarch64_emit_approx_div): Define new function.
4143 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
4144 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
4145 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
4146 * doc/invoke.texi (-mlow-precision-div): Describe new option.
4148 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4149 Wilco Dijkstra <wilco.dijkstra@arm.com>
4151 [AArch64] Emit square root using the Newton series
4153 * config/aarch64/aarch64-protos.h
4154 (aarch64_emit_approx_rsqrt): Replace with new function
4155 "aarch64_emit_approx_sqrt".
4156 (cpu_approx_modes): New member "sqrt".
4157 * config/aarch64/aarch64.c
4158 (generic_approx_modes): New member "sqrt".
4159 (exynosm1_approx_modes): Likewise.
4160 (xgene1_approx_modes): Likewise.
4161 (aarch64_emit_approx_rsqrt): Replace with new function
4162 "aarch64_emit_approx_sqrt".
4163 (aarch64_override_options_after_change_1): Handle new option.
4164 * config/aarch64/aarch64-simd.md
4165 (rsqrt<mode>2): Use new function instead.
4166 (sqrt<mode>2): New expansion and insn definitions.
4167 * config/aarch64/aarch64.md: Likewise.
4168 * config/aarch64/aarch64.opt
4169 (mlow-precision-sqrt): Add new option description.
4170 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
4172 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4174 [AArch64] Add more choices for the reciprocal square root approximation
4176 Allow a target to prefer such operation depending on the operation mode.
4178 * config/aarch64/aarch64-protos.h
4179 (AARCH64_APPROX_MODE): New macro.
4180 (AARCH64_APPROX_{NONE,ALL}): Likewise.
4181 (cpu_approx_modes): New structure.
4182 (tune_params): New member "approx_modes".
4183 * config/aarch64/aarch64-tuning-flags.def
4184 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
4185 * config/aarch64/aarch64.c
4186 (generic_approx_modes): New core "cpu_approx_modes" structure.
4187 (exynosm1_approx_modes): Likewise.
4188 (xgene1_approx_modes): Likewise.
4189 (generic_tunings): New member "approx_modes".
4190 (cortexa35_tunings): Likewise.
4191 (cortexa53_tunings): Likewise.
4192 (cortexa57_tunings): Likewise.
4193 (cortexa72_tunings): Likewise.
4194 (exynosm1_tunings): Likewise.
4195 (thunderx_tunings): Likewise.
4196 (xgene1_tunings): Likewise.
4197 (use_rsqrt_p): New argument for the mode and use new member from
4199 (aarch64_builtin_reciprocal): Devise mode from builtin.
4200 (aarch64_optab_supported_p): New argument for the mode.
4201 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
4203 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4205 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4206 RS6000_BTM_MODULO flag into the set of flags that are considered
4207 to be part of the common configuration.
4209 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4211 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4212 difference unsigned.
4213 (vec_absdb): New macro for vector absolute difference unsigned
4215 (vec_absdh): New macro for vector absolute difference unsigned
4217 (vec_absdw): New macro for vector absolute difference unsigned word.
4218 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4219 (vadu<mode>3): New insn.
4220 (*p9_vadu<mode>3): New insn.
4221 * config/rs6000/rs6000-builtin.def (vadub): New built-in
4223 (vaduh): New built-in definition.
4224 (vaduw): New built-in definition.
4225 (vadu): New overloaded built-in definition.
4226 (vadub): New overloaded built-in definition.
4227 (vaduh): New overloaded built-in definition.
4228 (vaduw): New overloaded built-in definition.
4229 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4230 overloaded vector absolute difference unsigned functions.
4231 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4232 the ISA 3.0 vector absolute difference unsigned built-in functions.
4234 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
4236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
4237 update shared_lookup_references only once after changing operands.
4239 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
4242 * tree-nested.c (convert_nonlocal_omp_clauses)
4243 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
4245 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
4246 * tree.def (CASE_LABEL_EXPR): Likewise.
4248 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4251 * input.c (test_builtins): Fix an assertion.
4253 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4255 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
4258 (isinf<mode>2): Ditto.
4260 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4262 * ggc-tests.c (test_finalization): Only test need_finalization_p
4263 for GCC_VERSION >= 4003.
4265 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4267 * config/s390/vecintrin.h: Fix file description in comment.
4269 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4271 * config/s390/s390-builtin-types.def: Change builtin type naming
4272 scheme to match builtin-types.def.
4274 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
4276 * fold-const.c (optimize_minmax_comparison): Remove.
4277 (fold_comparison): Remove call to the above.
4278 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
4279 New transformations.
4281 2016-06-13 Alan Hayward <alan.hayward@arm.com>
4283 PR tree-optimization/71416
4284 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
4287 2016-06-13 Martin Liska <mliska@suse.cz>
4289 * predict.c (enum predictor_reason): Prefix enum with REASON_.
4290 (combine_predictions_for_insn): Likewise.
4291 (prune_predictions_for_bb): Likewise.
4292 (combine_predictions_for_bb): Likewise.
4294 2016-06-13 Richard Biener <rguenther@suse.de>
4296 PR tree-optimization/71505
4297 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
4298 assert match comment.
4300 2016-06-13 Marek Polacek <polacek@redhat.com>
4303 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4304 gimplify_switch_expr.
4305 (warn_switch_unreachable_r): New function.
4307 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4310 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4313 2016-06-13 Richard Biener <rguenther@suse.de>
4316 * fold-const.c (fold_unary_loc): Preserve alignment when
4317 folding a VIEW_CONVERT_EXPR into a MEM_REF.
4319 2016-06-13 Martin Liska <mliska@suse.cz>
4322 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4323 w/ -fsanitize=bounds.
4325 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4327 * config/i386/i386.c (ix86_init_builtins): Calculate
4328 FLOAT128_FTYPE_CONST_STRING function type only once.
4329 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4330 built-in functions are available for x86-32 and x86-64 targets.
4332 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4335 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4337 (FLOAT128_FTYPE_CONST_STRING): New function type.
4338 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4339 [IX86_BUILTIN_NANSQ]: Ditto.
4340 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4341 (ix86_init_builtin_types): Declare const_string_type_node.
4342 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4344 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4345 * doc/extend.texi (x86 Built-in Functions): Document
4346 __builtin_nanq and __builtin_nansq.
4348 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4351 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4352 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4353 length for pop patterns.
4354 (arm_attr_length_push_multi): Update comments.
4355 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4357 (*pop_multiple_with_writeback_and_return): Likewise.
4358 (*pop_multiple_with_return): Likewise.
4360 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4363 * fold-const.c (optimize_bit_field_compare): Don't try to use
4364 word_mode unconditionally for reading the bit field, look at
4365 DECL_BIT_FIELD_REPRESENTATIVE instead.
4367 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4370 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4371 vector integer type.
4373 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4376 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4377 without LABEL_DECL, set *handled_ops_p to false instead of true.
4379 2016-06-10 Martin Sebor <msebor@redhat.com>
4382 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4383 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4384 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4386 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4387 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4388 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4389 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4390 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4391 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4392 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4393 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4395 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4397 * config/arm/arm.h (pool_vector_label,
4398 return_used_this_function): Remove.
4400 2016-06-10 Jeff Law <law@redhat.com>
4402 PR tree-optimization/71335
4403 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4404 zero length paths here.
4405 (convert_and_register_jump_thread_path): Remove hacks related to
4406 duplicated blocks in the jump thread path.
4407 (fsm_find_control_statement_thread_paths): Avoid putting the same
4408 block on the thread path twice, but ensure the thread path is
4409 unchanged from the caller's point of view.
4411 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4413 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4414 * predict.def (PRED_LOOP_BRANCH): Remove.
4416 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4418 * Makefile.in (OBJS): Add ggc-tests.o.
4419 (GTFILES): Add ggc-tests.c.
4420 * ggc-tests.c: New file.
4421 * selftest-run-tests.c (selftest::run_tests): Call
4422 selftest::ggc_tests_c_tests.
4423 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4425 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4427 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4429 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4432 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4433 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4435 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4437 * profile.c: Include cfgloop.h.
4438 (branch_prob): Compute estimated number of iterations.
4439 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4440 recompute estimate number of iterations from profile.
4442 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4445 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4446 must be grouped on top of stack. Don't force early clobber
4447 on ordinary reg outputs.
4449 2016-06-10 Richard Biener <rguenther@suse.de>
4451 * targhooks.c (default_builtin_vectorization_cost): Adjust
4454 2016-06-10 Richard Biener <rguenther@suse.de>
4456 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4457 to fold the RHS to a constant if possible.
4459 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4462 * tree-nested.c (convert_nonlocal_omp_clauses)
4463 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4464 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4465 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4467 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4469 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4471 * omp-low.c (scan_sharing_clauses): Don't expect
4474 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4476 PR tree-optimization/71407
4477 PR tree-optimization/71416
4478 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4481 2016-06-10 Richard Biener <rguenther@suse.de>
4484 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4486 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4488 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4490 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4491 Jiong Wang <jiong.wang@arm.com>
4493 PR rtl-optimization/70751
4494 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4495 spilled into memory.
4497 2016-06-09 Jonathan Yong <10walls@gmail.com>
4500 2015-09-21 Jonathan Yong <10walls@gmail.com>
4502 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4503 sysroot/usr/lib/32api for additional win32 libraries,
4504 fixes failing Cygwin bootstrapping.
4506 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4508 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4511 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4514 * pretty-print.c (pp_indent): Specify that %p is printed in a
4515 host-dependent manner.
4516 (test_pp_format): Remove the test for %p.
4518 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4520 * config/mips/mips.c (mips_output_jump): Fix formatting.
4522 2016-06-09 Richard Biener <rguenther@suse.de>
4524 PR tree-optimization/71462
4525 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4528 2016-06-09 Martin Liska <mliska@suse.cz>
4530 * predict.c (dump_prediction): Add new argument.
4531 (enum predictor_reason): New enum.
4532 (struct predictor_hash): New struct.
4533 (predictor_hash::hash): New function.
4534 (predictor_hash::equal): Likewise.
4535 (not_removed_prediction_p): New function.
4536 (prune_predictions_for_bb): Likewise.
4537 (combine_predictions_for_bb): Prune predictions.
4539 2016-06-09 Martin Liska <mliska@suse.cz>
4541 * predict.c (filter_predictions): New function.
4542 (remove_predictions_associated_with_edge): Use the filter
4544 (equal_edge_p): New function.
4546 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4548 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4549 Correct usage of @samp vs @option, add @samp where appropriate.
4550 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4551 Add armv6s-m and document it, as it is no official ARM name.
4553 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4555 * ifcvt.c (struct noce_if_info): Add transform_name field.
4556 (noce_try_move): Set if_info->transform_name to the function name.
4557 (noce_try_ifelse_collapse): Likewise.
4558 (noce_try_store_flag): Likewise.
4559 (noce_try_inverse_constants): Likewise.
4560 (noce_try_store_flag_constants): Likewise.
4561 (noce_try_addcc): Likewise.
4562 (noce_try_store_flag_mask): Likewise.
4563 (noce_try_cmove): Likewise.
4564 (noce_try_cmove_arith): Likewise.
4565 (noce_try_minmax): Likewise.
4566 (noce_try_abs): Likewise.
4567 (noce_try_sign_mask): Likewise.
4568 (noce_try_bitop): Likewise.
4569 (noce_convert_multiple_sets): Likewise.
4570 (noce_process_if_block): Print if_info->transform_name to
4571 dump_file if transformation succeeded.
4573 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4575 * config/arm/cortex-a57.md (cortex_a57_alu):
4578 2016-06-08 Martin Sebor <msebor@redhat.com>
4579 Jakub Jelinek <jakub@redhat.com>
4583 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4584 BUILT_IN_MUL_OVERFLOW_P): New builtins.
4585 * builtins.c: Include gimple-fold.h.
4586 (fold_builtin_arith_overflow): Handle
4587 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4588 (fold_builtin_3): Likewise.
4589 * doc/extend.texi (Integer Overflow Builtins): Document
4590 __builtin_{add,sub,mul}_overflow_p.
4592 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4594 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4595 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4597 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4599 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4600 Rewrite, looking one level down for records and arrays.
4602 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4604 * pretty-print.c: Include "selftest.h".
4605 (pp_format): Fix comment.
4606 (identifier_to_locale): Likewise.
4607 (selftest::test_basic_printing): New function.
4608 (selftest::assert_pp_format): New function.
4609 (selftest::test_pp_format): New function.
4610 (selftest::pretty_print_c_tests): New function.
4611 * selftest-run-tests.c (selftest::run_tests): Call
4612 selftest::pretty_print_c_tests.
4613 * selftest.h (pretty_print_c_tests): New declaration.
4615 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4617 * invoke.texi (max-loop-headers-insns): Document.
4618 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4619 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4620 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4622 2016-06-08 Richard Biener <rguenther@suse.de>
4624 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4625 on strided SLP loads and fall back to scalar loads in case
4626 we can't chunk them.
4628 2016-06-08 Richard Biener <rguenther@suse.de>
4630 PR tree-optimization/71452
4631 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4632 type used for the SSA rewrite has enough precision to cover
4633 the dynamic type of the location.
4635 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4636 Richard Biener <rguenther@suse.de>
4639 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4640 the same as DECL_P (base0) for indirect_base0. Use equality_code
4641 in one further place.
4643 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4645 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4646 to one word if the field is known to overlap other words.
4647 (extract_bit_field_1): Likewise.
4648 (store_split_bit_field): Remove compensating code.
4649 (extract_split_bit_field): Likewise.
4651 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4655 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4657 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4659 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4661 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4662 (arch64_addpv4sf): Delete.
4663 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4664 "gen_aarch64_addpv4sf".
4665 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
4667 (vpadds_f32): Likewise.
4668 (vpaddq_f32): Likewise.
4669 (vpaddq_f64): Likewise.
4671 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4673 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4675 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4676 to VALLF. Rename to "fabd<mode>3".
4677 "*fabd_scalar<mode>3): Delete.
4678 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4680 (vabdd_f64): Likewise.
4681 (vabd_f32): Likewise.
4682 (vabd_f64): Likewise.
4683 (vabdq_f32): Likewise.
4684 (vabdq_f64): Likewise.
4686 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4688 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4690 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4691 "aarch64_rsqrts<mode>".
4692 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4693 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
4695 (vrsqrtsd_f64): Likewise.
4696 (vrsqrts_f32): Likewise.
4697 (vrsqrts_f64): Likewise.
4698 (vrsqrtsq_f32): Likewise.
4699 (vrsqrtsq_f64): Likewise.
4701 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4703 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4705 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4706 "aarch64_rsqrte<mode>".
4707 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4708 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
4710 (vrsqrted_f64): Likewise.
4711 (vrsqrte_f32): Likewise.
4712 (vrsqrte_f64): Likewise.
4713 (vrsqrteq_f32): Likewise.
4714 (vrsqrteq_f64): Likewise.
4716 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4718 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4722 * config/aarch64/aarch64-simd.md
4723 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4724 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4725 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4727 (vcvt_n_f32_u32): Likewise.
4728 (vcvt_n_s32_f32): Likewise.
4729 (vcvt_n_u32_f32): Likewise.
4730 (vcvtq_n_f32_s32): Likewise.
4731 (vcvtq_n_f32_u32): Likewise.
4732 (vcvtq_n_f64_s64): Likewise.
4733 (vcvtq_n_f64_u64): Likewise.
4734 (vcvtq_n_s32_f32): Likewise.
4735 (vcvtq_n_s64_f64): Likewise.
4736 (vcvtq_n_u32_f32): Likewise.
4737 (vcvtq_n_u64_f64): Likewise.
4738 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4739 (VSDQ_SDI): Likewise.
4740 (fcvt_target): Support V4DI, V4SI and V2SI.
4741 (FCVT_TARGET): Likewise.
4743 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4745 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4746 (TYPES_BINOP_SUS): Likewise.
4747 (aarch64_simd_builtin_data): Update include file name.
4748 (aarch64_builtins): Likewise.
4749 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4750 for conversion between scalar float-point and fixed-point.
4754 * config/aarch64/aarch64.md
4755 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4756 pattern for conversion between scalar float to fixed-pointer.
4757 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4758 (UNSPEC_FCVTZS): New UNSPEC enumeration.
4759 (UNSPEC_FCVTZU): Likewise.
4760 (UNSPEC_SCVTF): Likewise.
4761 (UNSPEC_UCVTF): Likewise.
4762 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4764 (vcvtd_n_f64_u64): Likewise.
4765 (vcvtd_n_s64_f64): Likewise.
4766 (vcvtd_n_u64_f64): Likewise.
4767 (vcvtd_n_f32_s32): Likewise.
4768 (vcvts_n_f32_u32): Likewise.
4769 (vcvtd_n_s32_f32): Likewise.
4770 (vcvts_n_u32_f32): Likewise.
4771 * config/aarch64/iterators.md (fcvt_target): Support integer to float
4773 (FCVT_TARGET): Likewise.
4774 (FCVT_FIXED2F): New iterator.
4775 (FCVT_F2FIXED): Likewise.
4776 (fcvt_fixed_insn): New define_int_attr.
4778 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4780 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4781 some statements was removed.
4783 2016-06-08 Alan Hayward <alan.hayward@arm.com>
4785 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4786 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4787 (vect_can_advance_ivs_p): likewise.
4788 (vect_update_ivs_after_vectorizer): likewise.
4789 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4790 (vect_analyze_scalar_cycles_1): likewise.
4791 (vect_analyze_loop_operations): likewise.
4792 (report_vect_op): likewise.
4793 (vect_is_slp_reduction): likewise.
4794 (vect_is_simple_reduction): likewise.
4795 (get_initial_def_for_induction): likewise.
4796 (vect_transform_loop): likewise.
4797 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4798 (vect_recog_sad_pattern): likewise.
4799 (vect_recog_widen_sum_pattern): likewise.
4800 (vect_recog_widening_pattern): likewise.
4801 (vect_recog_divmod_pattern): likewise.
4802 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4803 (vect_analyze_slp_instance): likewise.
4804 (vect_transform_slp_perm_load): likewise.
4805 (vect_schedule_slp_instance): likewise.
4807 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4809 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4810 (return_prediction): PRED_CONST_RETURN predict return as not taken.
4811 * predict.def (PRED_CONTINUE): Change hitrate 50->67
4812 (PRED_LOOP_BRANCH): Document predictor as broken.
4813 (PRED_LOOP_EXIT): Change hitrate 91->92.
4814 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4815 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4816 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4817 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4818 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4819 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4820 (PRED_CALL): Chane hitrate 71->67.
4821 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4822 (PRED_GOTO): Document as unused right now.
4823 (PRED_CONST_RETURN): Change hitrate 67->69
4824 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4825 (PRED_NULL_RETURN): Change hitrate 91->90.
4826 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4827 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4828 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4830 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
4832 * config/rs6000/altivec.h: Add __builtin_vec_mul.
4833 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4834 special case Altivec builtin.
4835 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4836 VSX_BUILTIN_VEC_MUL (replaced with special case code).
4837 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4838 code for ALTIVEC_BUILTIN_VEC_MUL.
4839 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4840 for __builtin_vec_mul.
4842 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
4844 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4847 2016-06-07 David Malcolm <dmalcolm@redhat.com>
4849 * spellcheck.c (selftest::test_find_closest_string): New function.
4850 (spellcheck_c_tests): Call the above.
4852 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4854 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4856 2016-06-07 Jakub Jelinek <jakub@redhat.com>
4858 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4859 Yv=Yv,C alternatives.
4861 2016-06-07 Richard Biener <rguenther@suse.de>
4864 * common.opt (ffast-math): Make Optimization.
4866 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4867 Prachi Godbole <prachi.godbole@imgtec.com>
4869 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4870 `fabs' and `fneg' type attributes.
4871 (p5600_fpu_fabs): Add `fmove' to the comment.
4873 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4875 * gimple.c: Include builtins.h
4876 (gimple_inexpensive_call_p): New function.
4877 * gimple.h (gimple_inexpensive_call_p): Declare.
4878 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4879 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4882 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4884 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4885 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4886 warning_at_rich_loc, warning_n, pedwarn, permerror,
4887 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4888 sorry, fatal_error, internal_error, internal_error_no_backtrace):
4891 2016-06-07 Richard Biener <rguenther@suse.de>
4893 PR tree-optimization/71428
4894 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4895 BIT_FIELD_REF op vs. load.
4897 2016-06-07 Richard Biener <rguenther@suse.de>
4900 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4903 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4905 * config/pa/pa.md (call): Generate indirect long calls to non-local
4906 functions on TARGET_64BIT.
4907 (call_value): Likewise.
4909 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4911 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4912 pattern and subsequent splitters.
4913 (call_val_reg_64bit_post_reload): Likewise.
4915 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4918 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4919 propagate_op_to_single_use.
4921 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4924 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4926 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4928 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4929 (enum x86_dirflag_state): New enum.
4930 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4931 (machine_function): Remove needs_cld.
4932 (ix86_current_function_needs_cld): Remove.
4933 * config/i386/i386.c (ix86_set_func_type): Set
4934 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4935 (ix86_expand_prologue): Do not emit CLD here.
4936 (ix86_dirflag_mode_needed): New function.
4937 (ix86_dirflag_mode_entry): Ditto.
4938 (ix86_mode_needed): Handle X86_DIRFLAG entity.
4939 (ix86_mode_after): Ditto.
4940 (ix86_mode_entry): Ditto.
4941 (ix86_mode_exit): Ditto.
4942 (ix86_emit_mode_set): Ditto.
4943 * config/i386/i386.md (strmov_singleop): Set
4944 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4945 Do not set ix86_current_function_needs_cld.
4947 (strset_singleop): Ditto.
4949 (cmpstrnqi_nz_1): Ditto.
4950 (cmpstrnqi_1): Ditto.
4951 (strlenqi_1): Ditto.
4953 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4955 PR tree-optimization/71259
4956 * tree-vect-slp.c (vect_get_constant_vectors): For
4957 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4958 one for constant op, and use COND_EXPR for non-constant.
4960 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4962 * Makefile.in (OBJS): Add function-tests.o,
4963 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4964 selftest-run-tests.o.
4965 (OBJS-libcommon): Add selftest.o.
4966 (OBJS-libcommon-target): Add selftest.o.
4967 (all.internal): Add "selftest".
4968 (all.cross): Likewise.
4969 (selftest): New phony target.
4970 (s-selftest): New target.
4971 (selftest-gdb): New phony target.
4972 (COLLECT2_OBJS): Add selftest.o.
4973 * bitmap.c: Include "selftest.h".
4974 (selftest::test_gc_alloc): New function.
4975 (selftest::test_set_range): New function.
4976 (selftest::test_clear_bit_in_middle): New function.
4977 (selftest::test_copying): New function.
4978 (selftest::test_bitmap_single_bit_set_p): New function.
4979 (selftest::bitmap_c_tests): New function.
4980 * common.opt (fself-test): New.
4981 * diagnostic-show-locus.c: Include "selftest.h".
4982 (make_range): New function.
4983 (test_range_contains_point_for_single_point): New function.
4984 (test_range_contains_point_for_single_line): New function.
4985 (test_range_contains_point_for_multiple_lines): New function.
4986 (assert_eq): New function.
4987 (test_get_line_width_without_trailing_whitespace): New function.
4988 (selftest::diagnostic_show_locus_c_tests): New function.
4989 * et-forest.c: Include "selftest.h".
4990 (selftest::test_single_node): New function.
4991 (selftest::test_simple_tree): New function.
4992 (selftest::test_disconnected_nodes): New function.
4993 (selftest::et_forest_c_tests): New function.
4994 * fold-const.c: Include "selftest.h".
4995 (selftest::assert_binop_folds_to_const): New function.
4996 (selftest::assert_binop_folds_to_nonlvalue): New function.
4997 (selftest::test_arithmetic_folding): New function.
4998 (selftest::fold_const_c_tests): New function.
4999 * function-tests.c: New file.
5000 * gimple.c: Include "selftest.h".
5001 Include "gimple-pretty-print.h".
5002 (selftest::verify_gimple_pp): New function.
5003 (selftest::test_assign_single): New function.
5004 (selftest::test_assign_binop): New function.
5005 (selftest::test_nop_stmt): New function.
5006 (selftest::test_return_stmt): New function.
5007 (selftest::test_return_without_value): New function.
5008 (selftest::gimple_c_tests): New function.
5009 * hash-map-tests.c: New file.
5010 * hash-set-tests.c: New file.
5011 * input.c: Include "selftest.h".
5012 (selftest::assert_loceq): New function.
5013 (selftest::test_accessing_ordinary_linemaps): New function.
5014 (selftest::test_unknown_location): New function.
5015 (selftest::test_builtins): New function.
5016 (selftest::test_reading_source_line): New function.
5017 (selftest::input_c_tests): New function.
5018 * rtl-tests.c: New file.
5019 * selftest-run-tests.c: New file.
5020 * selftest.c: New file.
5021 * selftest.h: New file.
5022 * spellcheck.c: Include "selftest.h".
5023 (selftest::levenshtein_distance_unit_test_oneway): New function,
5024 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
5025 (selftest::levenshtein_distance_unit_test): Likewise.
5026 (selftest::spellcheck_c_tests): Likewise.
5027 * toplev.c: Include selftest.h.
5028 (toplev::run_self_tests): New.
5029 (toplev::main): Handle -fself-test.
5030 * toplev.h (toplev::run_self_tests): New.
5031 * tree.c: Include "selftest.h".
5032 (selftest::test_integer_constants): New function.
5033 (selftest::test_identifiers): New function.
5034 (selftest::test_labels): New function.
5035 (selftest::tree_c_tests): New function.
5036 * tree-cfg.c: Include "selftest.h".
5037 (selftest::push_fndecl): New function.
5038 (selftest::test_linear_chain): New function.
5039 (selftest::test_diamond): New function.
5040 (selftest::test_fully_connected): New function.
5041 (selftest::tree_cfg_c_tests): New function.
5042 * vec.c: Include "selftest.h".
5043 (selftest::safe_push_range): New function.
5044 (selftest::test_quick_push): New function.
5045 (selftest::test_safe_push): New function.
5046 (selftest::test_truncate): New function.
5047 (selftest::test_safe_grow_cleared): New function.
5048 (selftest::test_pop): New function.
5049 (selftest::test_safe_insert): New function.
5050 (selftest::test_ordered_remove): New function.
5051 (selftest::test_unordered_remove): New function.
5052 (selftest::test_block_remove): New function.
5053 (selftest::reverse_cmp): New function.
5054 (selftest::test_qsort): New function.
5055 (selftest::vec_c_tests): New function.c.
5056 * wide-int.cc: Include selftest.h and wide-int-print.h.
5057 (selftest::from_int <wide_int>): New function.
5058 (selftest::from_int <offset_int>): New function.
5059 (selftest::from_int <widest_int>): New function.
5060 (selftest::assert_deceq): New function.
5061 (selftest::assert_hexeq): New function.
5062 (selftest::test_printing <VALUE_TYPE>): New function template.
5063 (selftest::test_ops <VALUE_TYPE>): New function template.
5064 (selftest::test_comparisons <VALUE_TYPE>): New function template.
5065 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
5067 (selftest::wide_int_cc_tests): New function.
5069 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5072 * ifcvt.c (noce_try_ifelse_collapse): New function.
5074 (noce_process_if_block): Call noce_try_ifelse_collapse.
5075 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
5076 (simplify_ternary_operation): Use the above to simplify
5077 conditional CLZ/CTZ expressions.
5079 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5082 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
5083 define_insn_and_split.
5085 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5088 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
5090 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
5093 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
5094 Implicitly clobber memory for basic asm with non-empty assembler
5095 string. Use targetm.md_asm_adjust also here.
5096 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
5097 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
5098 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
5099 non-empty assembler string.
5100 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
5101 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
5102 (decode_asm_operands): Handle basic asm in PARALLEL block.
5103 (extract_insn): Handle basic asm in PARALLEL block.
5104 * doc/extend.texi: Mention new behavior of basic asm.
5105 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
5106 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
5107 branch_needs_nop_p): Use asm_noperands.
5109 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
5111 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5112 Include the M7 SPARC DFA scheduler.
5113 New attribute v3pipe.
5114 Annotate insns with v3pipe where appropriate.
5115 Define cpu_feature vis4.
5116 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5117 Add (V8QI "8") to vbits.
5118 Add insns {add,sub}v8qi3
5119 Add insns ss{add,sub}v8qi3
5120 Add insns us{add,sub}{v8qi,v4hi}3
5121 Add insns {min,max}{v8qi,v4hi,v2si}3
5122 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5123 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5124 * config/sparc/niagara4.md: Add a comment explaining the
5125 discrepancy between the documented latenty numbers and the
5127 * config/sparc/niagara7.md: New file.
5128 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5129 supports SPARC5 and VIS 4.0 instructions.
5130 * configure: Regenerate.
5131 * config.in: Likewise.
5132 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5133 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5134 TARGET_CPU_niagara7.
5135 (ASM_CPU64_DEFAULT_SPEC): Likewise.
5136 (CPP_CPU_SPEC): Handle niagara7.
5137 (ASM_CPU_SPEC): Likewise.
5138 * config/sparc/sparc-opts.h (processor_type): Add
5140 (mvis4): New option.
5141 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5142 (AS_NIAGARA7_FLAG): Define.
5143 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5144 (CPP_CPU64_DEFAULT_SPEC): Likewise.
5145 (CPP_CPU_SPEC): Handle niagara7.
5146 (ASM_CPU_SPEC): Likewise.
5147 * config/sparc/sparc.c (niagara7_costs): Define.
5148 (sparc_option_override): Handle niagara7 and adjust cache-related
5149 parameters with better values for niagara cpus. Also support VIS4.
5150 (sparc32_initialize_trampoline): Likewise.
5151 (sparc_use_sched_lookahead): Likewise.
5152 (sparc_issue_rate): Likewise.
5153 (sparc_register_move_cost): Likewise.
5154 (dump_target_flag_bits): Support VIS4.
5155 (sparc_vis_init_builtins): Likewise.
5156 (sparc_builtins): Likewise.
5157 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5159 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5161 * config/sparc/sparc.opt (sparc_processor_type): New value
5163 * config/sparc/visintrin.h (__attribute__): Prototypes for the
5165 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5167 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5170 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
5172 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
5174 2016-06-06 Richard Biener <rguenther@suse.de>
5176 PR tree-optimization/71398
5177 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
5180 2016-06-05 James Bowman <james.bowman@ftdichip.com>
5182 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
5183 ft32_expand_prolog, ft32_expand_epilogue):
5184 Handle pretend_args.
5185 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
5186 * config/ft32/ft32.md: Add pretend_returner.
5188 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
5191 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5192 Copy op1 RTX to avoid invalid sharing.
5193 (ix86_expand_vector_move_misalign): Ditto.
5195 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
5197 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
5200 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
5202 * predict.c (predicted_by_loop_heuristics_p): New function.
5203 (predict_iv_comparison): Use it.
5204 (predict_loops): Walk from innermost loops; do not predict edges
5205 leaving multiple loops multiple times; implement
5206 PRED_LOOP_ITERATIONS_MAX heuristics.
5207 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
5209 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
5211 * cfg.c (check_bb_profile): Do not report mismatched profiles when
5212 only edges out of BB are EH edges.
5214 2016-06-04 Martin Sebor <msebor@redhat.com>
5215 Marcin Baczyński <marbacz@gmail.com>
5218 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
5219 a void expression in a void function.
5221 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
5223 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
5224 aux; dump reasons of decisions.
5225 (should_duplicate_loop_header_p): Likewise.
5226 (do_while_loop_p): Likewise.
5227 (ch_base::copy_headers): Dump asi num insns duplicated.
5229 2016-06-04 Jakub Jelinek <jakub@redhat.com>
5231 PR tree-optimization/71405
5232 * tree-ssa.c (execute_update_addresses_taken): For clobber with
5233 incompatible type, build a new clobber with the right type instead
5234 of building a VIEW_CONVERT_EXPR around it.
5236 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
5238 PR tree-optimization/52171
5239 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
5240 by_pieces_ninsns instead of move_by_pieces_ninsns.
5242 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
5244 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
5245 for reg+reg addressing mode.
5247 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5249 * rs6000-c.c (c/c-tree.h): Add #include.
5250 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
5251 in C++ when found in the base position of vec_ld or vec_st.
5253 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
5255 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
5256 use of profile unless profile status is PROFILE_READ.
5257 * profile.c (compute_branch_probabilities): Set profile status
5258 only after reporting predictor hitrates.
5260 2016-06-03 Joseph Myers <joseph@codesourcery.com>
5264 * common.opt (ffp-int-builtin-inexact): New option.
5265 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
5266 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
5267 (ceil@var{m}2): Document dependence on this option.
5268 * ipa-inline-transform.c (inline_call): Handle
5269 flag_fp_int_builtin_inexact.
5270 * ipa-inline.c (can_inline_edge_p): Likewise.
5271 * config/i386/i386.md (rintxf2): Do not test
5272 flag_unsafe_math_optimizations.
5273 (rint<mode>2_frndint): New define_insn.
5274 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
5275 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
5276 for 387 instead of extending and truncating.
5277 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
5278 !flag_trapping_math instead of flag_unsafe_math_optimizations.
5279 Change to frndint<mode>2_<rounding>.
5280 (frndintxf2_<rounding>_i387): Likewise. Change to
5281 frndint<mode>2_<rounding>_i387.
5282 (<rounding_insn>xf2): Likewise.
5283 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
5284 !flag_trapping_math instead of flag_unsafe_math_optimizations for
5285 x87. Test TARGET_ROUND || !flag_trapping_math ||
5286 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
5287 SSE. Use ROUND_NO_EXC in constant operand of
5288 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
5289 for 387 instead of extending and truncating.
5291 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
5292 Julia Koval <julia.koval@intel.com>
5304 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5305 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5306 all registers, except for function return registers if there are
5307 no caller-saved registers.
5308 (ix86_set_func_type): New function.
5309 (ix86_set_current_function): Call ix86_set_func_type to set
5310 no_caller_saved_registers and func_type. Call reinit_regs if
5311 caller-saved registers are changed. Don't allow MPX, SSE, MMX
5312 nor x87 instructions in interrupt handler nor function with
5313 no_caller_saved_registers attribute.
5314 (ix86_function_ok_for_sibcall): Return false if there are no
5315 caller-saved registers.
5316 (type_natural_mode): Don't warn ABI change for MMX in interrupt
5318 (ix86_function_arg_advance): Skip for callee in interrupt handler.
5319 (ix86_function_arg): Return special arguments in interrupt handler.
5320 (ix86_promote_function_mode): Promote pointer to word_mode only
5321 for normal functions.
5322 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5324 (ix86_epilogue_uses): New function.
5325 (ix86_hard_regno_scratch_ok): Likewise.
5326 (ix86_save_reg): Preserve all registers in interrupt handler
5327 after reload. Preserve all registers, except for function return
5328 registers, if there are no caller-saved registers after reload.
5329 (find_drap_reg): Always use callee-saved register if there are
5330 no caller-saved registers.
5331 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5332 for interrupt handler.
5333 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5334 Emit cld instruction if stringops are used in interrupt handler
5335 or interrupt handler isn't a leaf function.
5336 (ix86_expand_epilogue): Generate interrupt return for interrupt
5337 handler and pop the 'ERROR_CODE' off the stack before interrupt
5338 return in exception handler.
5339 (ix86_expand_call): Disallow calling interrupt handler directly.
5340 If there are no caller-saved registers, mark all registers that
5341 are clobbered by the call which returns as clobbered.
5342 (ix86_handle_no_caller_saved_registers_attribute): New function.
5343 (ix86_handle_interrupt_attribute): Likewise.
5344 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5346 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5347 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5348 accumulation in interrupt function if stack may be realigned to
5350 (EPILOGUE_USES): New.
5351 (function_type): New enum.
5352 (machine_function): Add func_type and no_caller_saved_registers.
5353 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5354 (interrupt_return): New pattern.
5355 * doc/extend.texi: Document x86 interrupt and
5356 no_caller_saved_registers attributes.
5358 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5360 PR tree-optimization/52171
5361 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5362 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
5363 Look for constant strings. Move some code to emit_block_cmp_hints
5365 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5366 * defaults.h (COMPARE_MAX_PIECES): New macro.
5367 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5368 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5369 (clear_by_pieces_1): Don't declare. Move definition before use.
5370 (can_do_by_pieces): New static function.
5371 (can_move_by_pieces): Use it. Return bool.
5372 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
5373 OP. All callers changed. Handle COMPARE_BY_PIECES.
5374 (class pieces_addr); New.
5375 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5376 pieces_addr::adjust, pieces_addr::increment_address,
5377 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5379 (class op_by_pieces_d): New.
5380 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5382 (class move_by_pieces_d, class compare_by_pieces_d,
5383 class store_by_pieces_d): New subclasses of op_by_pieces_d.
5384 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5385 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5386 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5387 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5388 compare_by_pieces_d::finish_mode): New member functions.
5389 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5391 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5392 (emit_block_cmp_hints): New function.
5393 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5394 use the newly defined classes.
5395 * expr.h (by_pieces_constfn): New typedef.
5396 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5397 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5398 (move_by_pieces_ninsns): Don't declare.
5399 (can_move_by_pieces): Change return value to bool.
5400 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5401 (compare_by_pieces_branch_ratio): New hook.
5402 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5403 (by_pieces_ninsns): Declare.
5404 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5406 (default_compare_by_pieces_branch_ratio): New function.
5407 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5408 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5409 * doc/tm.texi: Regenerate.
5410 * tree-ssa-strlen.c: Include "builtins.h".
5411 (handle_builtin_memcmp): New static function.
5412 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5413 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5415 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5417 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5418 relevant stmts which are simple and invariant.
5419 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5420 instead of simple and invariant
5422 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5424 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5425 (vectorizable_reduction): Check for new relevant state.
5426 (vectorizable_live_operation): vectorize live stmts using
5427 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
5428 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5429 (vect_stmt_relevant_p): Check for stmts which are only used live.
5430 (process_use): Use of a stmt does not inherit it's live value.
5431 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5432 (vect_analyze_stmt): Check for new relevant state.
5433 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5434 outside the loop, but not inside it.
5436 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5438 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5439 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5440 (vect_get_vec_def_for_operand): Split out code.
5442 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5444 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5446 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5448 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5450 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5452 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5454 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5457 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5458 to noreturn e->callee->decl that has void return type and void
5459 arguments, adjust gimple_call_fntype and remove lhs even if it had
5460 previously addressable type.
5462 2016-06-02 Jeff Law <law@redhat.com>
5464 PR tree-optimization/71328
5465 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5466 error when checking for a jump back onto the copied path.
5468 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5470 * config/microblaze/microblaze.c (get_branch_target): Add return
5471 NULL_RTX for the non-CALL_P case.
5472 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5473 (insert_wic): Remove unused local "j".
5475 2016-06-02 Martin Liska <mliska@suse.cz>
5477 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5479 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5480 Julia Koval <julia.koval@intel.com>
5482 * function.c (assign_parm_setup_stack): Force source into a
5484 * target.def (function_incoming_arg): Update documentation to
5485 allow arbitrary address computation based on hard register.
5486 * doc/tm.texi: Regenerated.
5488 2016-06-02 Martin Liska <mliska@suse.cz>
5490 * predict.c (combine_predictions_for_bb): Fix first match in
5491 cases where a first predictor contains more than one occurence
5492 in list of predictors. Take the best value in such case.
5494 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5496 PR rtl-optimization/71295
5497 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5498 offset would go over the size of the inner mode reject it.
5500 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5502 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5503 x=x,x and v=v,m instead of x=x,m.
5505 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5506 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
5507 alternative to v=rm,C.
5509 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5510 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
5511 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
5512 instead of vex for the last two above mentioned alternatives.
5514 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5517 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5519 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5521 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5523 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5525 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5526 from int to unsigned.
5528 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5530 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5531 alternatives, eliminating preferred register class. Add support
5532 for the MTVSRDD instruction in ISA 3.0.
5533 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5534 reg_or_indexed_operand.
5535 (vsx_splat_v4sf_internal): Likewise.
5537 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5540 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5541 for loading up all 0's or all 1's.
5543 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5545 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5547 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5549 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5551 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5552 * gcc.c (set_source_date_epoch_envvar): New function, sets
5553 the SOURCE_DATE_EPOCH environment variable to the current time.
5555 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5557 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5558 the factor for live Phi nodes.
5560 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5562 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5563 * tree-parloops.c (parallelize_loops): likewise.
5564 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5565 tree_unswitch_outer_loop): likewise.
5567 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5570 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5571 around creation of the temporary.
5573 2016-06-01 Richard Biener <rguenther@suse.de>
5575 PR tree-optimization/71366
5576 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5577 (unloop_loops): Move removing edges here ...
5578 (try_unroll_loop_completely): ... from here.
5579 (try_peel_loop): ... and here.
5580 (tree_unroll_loops_completely_1): Track parent loops via
5581 bitmap of header BBs.
5582 (tree_unroll_loops_completely): Adjust for that.
5584 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5586 * config/rs6000/altivec.h (vec_slv): New macro.
5587 (vec_srv): New macro.
5588 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5589 (UNSPEC_VSRV): New value.
5592 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5593 (vsrv): New builtin definition.
5594 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5595 define argument types for new builtin.
5596 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5598 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5601 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5602 Jocelyn Mayer <l_indien@magic.fr>
5605 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5606 detect processor family for signature_CENTAUR_ebx.
5607 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5608 signature_CENTAUR_ebx.
5609 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5610 <default>: Pass x86-64 for has_longmode.
5612 2016-06-01 Nathan Sidwell <nathan@acm.org>
5614 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5617 2016-06-01 Richard Biener <rguenther@suse.de>
5619 PR tree-optimization/71261
5620 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5621 of stmts successfully put in the bool pattern. Remove
5622 single-use restriction.
5623 (adjust_bool_pattern_cast): Add cast at the use site via the
5624 pattern def sequence.
5625 (adjust_bool_pattern): Remove recursion, maintain a hash-map
5626 of patterned defs. Use the pattern def seqence instead of
5627 multiple independent patterns.
5628 (sort_after_uid): New qsort compare function.
5629 (adjust_bool_stmts): New function to process stmts in the bool
5630 pattern in IL order.
5631 (vect_recog_bool_pattern): Adjust.
5632 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5633 (ifcvt_walk_pattern_tree): Likewise.
5634 (stmt_is_root_of_bool_pattern): Likewise.
5635 (ifcvt_repair_bool_pattern): Likewise.
5636 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5638 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5640 * loop-unroll.c (decide_unroll_constant_iterations,
5641 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5642 likely upper bounds.
5643 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5645 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5647 * tree-core.h (enum omp_clause_code): Remove
5648 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5650 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5652 * config/arm/sync.md (arm_store_exclusive<mode>):
5653 Use 'H' output modifier on operands[2] rather than creating a new
5654 entry in out-of-bounds memory of the operands array.
5655 (arm_store_release_exclusivedi): Likewise.
5657 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5659 * config/arm/arm.c (arm_fusion_enabled_p): New function.
5660 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5661 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5662 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5664 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5666 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5667 into account live statements for mask producers.
5669 2016-06-01 Richard Biener <rguenther@suse.de>
5671 PR tree-optimization/71311
5672 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5673 restrict to non-INTEGER_CST @0.
5675 2016-06-01 Richard Biener <rguenther@suse.de>
5677 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5678 (relational patterns): Use :c to avoid pattern duplications.
5680 2016-06-01 Richard Biener <rguenther@suse.de>
5682 * genmatch.c (comparison_code_p): New predicate.
5683 (swap_tree_comparison): New function.
5684 (commutate): Add for_vec parameter to append new for entries.
5685 Support commutating relational operators by swapping it alongside
5687 (lower_commutative): Adjust.
5688 (dt_simplify::gen): Do not pass artificial operators to gen
5690 (decision_tree::gen): Do not add artificial operators as parameters.
5691 (parser::parse_expr): Verify operator commutativity when :c is
5692 applied. Allow :C to override this.
5693 * match.pd: Adjust patterns to use :C instead of :c where required.
5695 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5697 PR tree-optimization/71077
5698 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5699 the combining step, use boolean_false_node and boolean_true_node
5700 as the designated false/true return values.
5702 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5704 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5705 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5706 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5709 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5711 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5712 of flags impliying the register renaming.
5713 * toplev.c (process_options): Do not imply flag_rename_registers with
5716 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5718 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5719 default implementation.
5721 2016-05-31 Nathan Sidwell <nathan@acm.org>
5723 * dwarf2out.c (cur_line_info_table): Add GTY marker.
5725 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5727 * config/sh/constraints.md (b): Remove constraint.
5728 * config/sh/predicates.md (arith_reg_operand): Remove
5730 * config/sh/sh-modes.def (PDI): Remove.
5731 * config/sh/sh.c (sh_target_reg_class,
5732 sh_optimize_target_register_callee_saved): Remove functions.
5733 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5734 (sh_expand_epilogue): Update comment.
5735 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5736 sh_secondary_reload): Remove TARGET_REGS related code.
5737 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5738 TARGET_REGISTER_P): Remove macros.
5739 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5740 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5741 TR1_REG, TR2_REG): Remove constants.
5742 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5744 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5746 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5747 define_expand patterns.
5748 (adddi3_compact): Rename to adddi3.
5749 (subdi3_compact): Rename to subdi3.
5750 (*negdi2): Rename to negdi2.
5751 (*abs<mode>2): Rename to abs<mode>2.
5753 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5755 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5756 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5757 (atomic_sub_fetchsi): ... this new pattern.
5758 (mvtc): Add CC_REG clobber.
5760 2016-05-31 Marek Polacek <polacek@redhat.com>
5762 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5764 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5766 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5767 aarch64_fusion_enabled_p to check for fusion capabilities.
5769 2016-05-31 Richard Biener <rguenther@suse.de>
5771 PR tree-optimization/71352
5772 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5773 minus one and a negate.
5775 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5777 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5778 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5780 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5781 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5782 Remove use of aarch64_simd_attr_length_move, set length attribute
5784 (*aarch64_be_movoi): Likewise.
5785 (*aarch64_be_movci): Likewise.
5786 (*aarch64_be_movxi): Likewise.
5788 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5790 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5791 It no longer does that.
5792 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5794 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
5796 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5797 attribute __unused__.
5799 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5801 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5802 * config/arm/arm.c (arm_arch_thumb1): Define.
5803 (arm_option_override): Initialize arm_arch_thumb1.
5804 * config/arm/arm.h (arm_arch_thumb1): Declare.
5805 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5806 support Thumb-1 ISA.
5808 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
5811 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5812 `Yv' for scalar operand.
5814 2016-05-31 Tom de Vries <tom@codesourcery.com>
5816 PR tree-optimization/69068
5817 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5818 phis with more than two args.
5820 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5822 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5823 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5826 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5828 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5830 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5832 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5833 cpu_32, cpu_64, tune_32 and tune_64.
5834 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5836 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5838 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5840 2016-05-30 Andi Kleen <ak@linux.intel.com>
5842 * auto-profile.c (read_profile): Replace asserts with errors
5843 when file does not exist.
5844 * gcov-io.c (gcov_read_words): Dito.
5846 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5848 * tree-cfg.c (print_loop): Print likely upper bounds.
5850 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5852 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5853 * opts.c (default_options): Enable peel loops at -O3.
5854 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5855 (try_peel_loop): Do not re-peel already peeled loops;
5856 use likely upper bounds; fix profile updating.
5857 (pass_complete_unroll::execute): Initialize peeled_loops.
5859 2016-05-30 Martin Liska <mliska@suse.cz>
5861 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5862 computed costs by frequency of BB they belong to.
5863 (get_scaled_computation_cost_at): New function.
5865 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5866 Marc Glisse <marc.glisse@inria.fr>
5868 PR tree-optimization/71289
5869 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5871 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5873 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5875 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5877 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5878 for peeled copies; avoid underflow when updating estimates; correctly
5881 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5883 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5884 r236875. Corrected oe3 to oe2 as obvious.
5886 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5890 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5891 that inserted stmt will not dominate stmts that defines its operand.
5892 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5893 (rewrite_expr_tree_parallel): Likewise.
5895 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5898 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5899 all fields including stmt_to_insert are swapped.
5901 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5903 * predict.h (force_edge_cold): Declare.
5904 * predict.c (force_edge_cold): New function.
5905 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5907 (canonicalize_loop_induction_variables): Fix formating.
5909 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5911 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5912 (visium_expand_copysign): Use gen_int_mode directly.
5913 (visium_compute_frame_size): Minor tweaks.
5915 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5917 * tree-vect-loop.c (vect_analyze_loop_2): Use
5918 likely_max_stmt_executions_int.
5920 2016-05-30 Tom de Vries <tom@codesourcery.com>
5922 PR tree-optimization/69067
5923 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5925 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5928 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5929 New peepholes to remove unneeded fild/fistp pairs.
5930 (define_peephole2 atomic_loaddi_fpu): Ditto.
5932 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5934 * predict.c (maybe_hot_frequency_p): Avoid division.
5936 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5938 * doc/install.texi: Use https for shop.fsf.org.
5940 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5942 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5943 likely_max_stmt_executions_int.
5945 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5947 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5948 likely_max_stmt_executions_int.
5950 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5952 * profile.c (compute_branch_probabilities): Do not report hitrates
5954 (branch_prob): Report hitrates here.
5955 * predict.c (gimple_predict_edge): Do not assert profile status;
5956 fix formatting issues.
5958 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5960 * predict.c (edge_predicted_by_p): New function.
5961 (predict_paths_for_bb): Do not put multiple predictions of the same type
5964 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5966 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5969 2016-05-28 Alan Modra <amodra@gmail.com>
5971 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5973 2016-05-28 Alan Modra <amodra@gmail.com>
5975 PR rtl-optimization/71275
5976 * ira.c (ira): Free dominance info.
5978 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5980 * doc/sourcebuild.texi: New address for upstream Go repository.
5982 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5984 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5985 (TARGET_ARM_V7M): Likewise.
5987 2016-05-26 Jeff Law <law@redhat.com>
5989 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5990 (thread_across_edge): Remove calls to find_jump_threads_backwards.
5991 * passes.def: Add jump threading passes before DOM/VRP.
5992 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5993 argument to a basic block from an edge. Remove tests which are
5995 (pass_data_thread_jumps, class pass_thread_jumps): New.
5996 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5997 (make_pass_thread_jumps): Likewise.
5998 * tree-pass.h (make_pass_thread_jumps): Declare.
6000 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
6002 * config/visium/visium-protos.h (split_double_move): Rename into...
6003 (visium_split_double_move): ...this.
6004 (visium_split_double_add): Declare.
6005 * config/visium/visium.c (split_double_move): Rename into...
6006 (visium_split_double_move): ...this.
6007 (visium_split_double_add): New function.
6008 (visium_expand_copysign): Renumber operands for consistency.
6009 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
6010 (DFmode move splitter): Likewise.
6011 (*addi3_insn): Split by means of visium_split_double_add.
6012 (*adddi3_insn_flags): Delete.
6013 (*plus_plus_sltu<subst_arith>): New insn.
6014 (*subdi3_insn): Split by means of visium_split_double_add.
6015 (subdi3_insn_flags): Delete.
6016 (*minus_minus_sltu<subst_arith>): New insn.
6017 (*negdi2_insn): Split by means of visium_split_double_add.
6018 (*negdi2_insn_flags): Delete.
6020 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
6022 * configure.ac: Treat a --with-headers option without argument
6023 the same as the default (i.e. consult sys-include directory).
6024 * configure: Regenerate.
6026 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6028 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
6029 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
6031 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
6032 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
6034 2016-05-27 Jiong Wang <jiong.wang@arm.com>
6037 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
6038 tree-stdarg analysis results.
6039 (aarch64_setup_incoming_varargs): Likewise.
6041 2016-05-27 Jiong Wang <jiong.wang@arm.com>
6043 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
6044 va_list_gpr_counter_field and va_list_fpr_counter_field.
6046 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
6049 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
6050 * config/aarch64/aarch64.c
6051 (aarch64_cannot_change_mode_class): Remove function.
6052 * config/aarch64/aarch64-protos.h
6053 (aarch64_cannot_change_mode_class): Remove.
6055 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6057 * cfgloop.c (record_niter_bound): Record likely upper bounds.
6058 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
6059 get_likely_max_loop_iterations_int): New.
6060 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
6061 any_likely_upper_bound.
6062 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
6064 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
6065 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
6067 (unroll_loop_constant_iterations): Likewise.
6068 (unroll_loop_runtime_iterations): Likewise.
6069 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
6070 * lto-streamer-out.c (output_cfg): Likewise.
6071 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
6073 (canonicalize_loop_induction_variables): Dump likely upper bounds.
6074 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
6075 (likely_max_loop_iterations): New.
6076 (likely_max_loop_iterations_int): New.
6077 (likely_max_stmt_executions): New.
6078 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
6079 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
6080 likely_max_stmt_executions): Declare.
6082 2016-05-27 Marek Polacek <polacek@redhat.com>
6085 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
6087 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6089 * config/s390/s390.md (2x risbg splitters): Use
6090 reg_overlap_mentioned_p instead of rtx_equal_p.
6092 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6094 * combine.c (make_compound_operation): Take known zero bits into
6095 account when checking for possible zero_extend.
6097 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6099 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
6100 Use const_int_operand for operand 2 predicate. Simplify expand code
6103 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
6106 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
6109 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6111 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
6112 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
6113 that returns CC_SESWPmode and CC_ZESWPmode.
6114 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
6116 (aarch64_rtx_costs): Likewise.
6118 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6120 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
6121 for ISA 3.0 min/max support.
6122 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
6123 conditional move support.
6124 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
6125 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
6127 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
6128 conditional moves where the comparison type is different from move
6130 (fp_minmax): New code iterator for smin/smax.
6131 (minmax): New code attributes for min/max.
6132 (SMINMAX): Likewise.
6133 (smax<mode>3): Combine min, max insns into one insn using the
6134 fp_minmax code iterator. Add support for ISA 3.0 min/max
6135 instructions that don't need -ffast-math.
6136 (s<minmax><mode>3): Likewise.
6137 (smax<mode>3_vsx): Likewise.
6138 (smin<mode>3): Likewise.
6139 (s<minmax><mode>3_vsx): Likewise.
6140 (smin<mode>3_vsx): Likewise.
6141 (pre-VSX min/max splitters): Likewise.
6142 (s<minmax><mode>3_fpr): Likewise.
6143 (movsfcc): Rewrite floating point conditional moves to combine
6144 SFmode/DFmode into a single insn.
6145 (mov<mode>cc): Likewise.
6146 (movdfcc): Likewise.
6147 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
6148 SFDF2 iterators to handle all combinations.
6149 (fseldfsf4): Likewise.
6150 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
6151 (fseldfdf4): Likewise.
6152 (fselsfdf4): Likewise.
6153 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
6154 comparison instructions that set a 0/-1 mask, and use it for
6155 floating point conditional move via XXSEL.
6156 (fpmask<mode>): Likewise.
6157 (xxsel<mode>): Likewise.
6158 * config/rs6000/predicates.md (min_max_operator): Delete, no
6160 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
6161 instructions that generate a 0/-1 mask for use with XXSEL.
6162 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
6163 say whether floating point min/max is available, either through
6164 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
6165 (TARGET_MINMAX_DF): Likewise.
6167 2016-05-27 Alan Modra <amodra@gmail.com>
6169 PR rtl-optimization/71275
6170 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
6171 for update_equiv_regs and combine_and_move_insns.
6173 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
6175 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
6176 if_then_else or cond RTXes to calculate attribute value.
6177 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
6178 <attr "length_immediate>: Ditto.
6179 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
6180 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
6181 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
6182 <attr "type">: Ditto.
6183 <attr "prefix_data16">: Ditto.
6184 <attr "prefix_extra">: Ditto.
6185 <attr "length_immediate">: Ditto.
6186 <attr "prefix">: Ditto.
6187 (vec_set<mode>_0) <attr "isa">: Ditto.
6188 <attr "prefix_extra">: Ditto.
6189 <attr "length_immediate">: Ditto.
6190 <attr "prefix">: Ditto.
6191 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
6192 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
6193 (sse2_storelpd) <attr "prefix_data16">: Ditto.
6194 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
6195 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
6196 <attr "length_immediate">: Ditto.
6197 <attr "prefix">: Ditto.
6198 (sse2_movsd) <attr "length_immediate">: Ditto.
6199 <attr "prefix">: Ditto.
6200 (vec_concatv2df) <attr "isa">: Ditto.
6201 <attr "prefix">: Ditto.
6202 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
6203 (*vec_extractv2di_1) <attr "isa">: Ditto.
6204 <attr "type">: Ditto.
6205 <attr "length_immediate">: Ditto.
6206 <attr "prefix_rex">: Ditto.
6207 <attr "prefix_extra">: Ditto.
6208 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
6209 <attr "prefix_extra">: Ditto.
6210 <attr "length_immediate">: Ditto.
6211 (vec_concatv2di) <attr "isa">: Ditto.
6212 <attr "prefix_extra">: Ditto.
6213 <attr "length_immediate">: Ditto.
6214 <attr "prefix">: Ditto.
6216 2016-05-26 Martin Liska <mliska@suse.cz>
6218 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
6220 (operator+): Likewise.
6221 (operator-): Likewise.
6222 (comp_cost::operator+=): Likewise.
6223 (comp_cost::operator-=): Likewise.
6224 (comp_cost::operator/=): Likewise.
6225 (comp_cost::operator*=): Likewise.
6226 (operator<): Likewise.
6227 (operator==): Likewise.
6228 (operator<=): Likewise.
6230 (infinite_cost_p): Likewise.
6231 (add_costs): Likewise.
6232 (sub_costs): Likewise.
6233 (compare_costs): Likewise.
6234 (set_group_iv_cost): Use the newly introduced functions.
6235 (get_address_cost): Likewise.
6236 (get_shiftadd_cost): Likewise.
6237 (force_expr_to_var_cost): Likewise.
6238 (split_address_cost): Likewise.
6239 (ptr_difference_cost): Likewise.
6240 (difference_cost): Likewise.
6241 (get_computation_cost_at): Likewise.
6242 (determine_group_iv_cost_generic): Likewise.
6243 (determine_group_iv_cost_address): Likewise.
6244 (determine_group_iv_cost_cond): Likewise.
6245 (autoinc_possible_for_pair): Likewise.
6246 (determine_group_iv_costs): Likewise.
6247 (cheaper_cost_pair): Likewise.
6248 (iv_ca_recount_cost): Likewise.
6249 (iv_ca_set_no_cp): Likewise.
6250 (iv_ca_set_cp): Likewise.
6251 (iv_ca_cost): Likewise.
6252 (iv_ca_new): Likewise.
6253 (iv_ca_dump): Likewise.
6254 (iv_ca_narrow): Likewise.
6255 (iv_ca_prune): Likewise.
6256 (iv_ca_replace): Likewise.
6257 (try_add_cand_for): Likewise.
6258 (try_improve_iv_set): Likewise.
6259 (find_optimal_iv_set): Likewise.
6261 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
6263 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
6264 that internal functions will clobber all caller-saved registers.
6266 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
6268 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6269 Return a better case_values_threshold when optimizing.
6271 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
6273 * config/aarch64/aarch64-simd.md (aarch64_combinez):
6274 Add ? to integer variant.
6275 (aarch64_combinez_be): Likewise.
6277 2016-05-26 Jakub Jelinek <jakub@redhat.com>
6279 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
6280 instead of x constraint.
6281 (vcvtps2ph256<mask_name>): Likewise.
6283 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
6284 alternative. Formatting fix.
6286 * config/i386/sse.md
6287 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
6289 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
6290 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
6291 maybe_evex prefix instead of vex.
6292 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
6293 EXT_REX_SSE_REG_P (op0) case in the splitter.
6295 2016-05-25 Jeff Law <law@redhat.com>
6297 PR tree-optimization/71272
6298 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
6299 Update comments. Add test for empty path.
6301 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6303 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6304 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6305 special case builtin.
6306 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6307 code for ALTIVEC_BUILTIN_VEC_CMPNE.
6308 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6309 for __builtin_vec_cmpne.
6311 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
6313 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6314 redundant test and bail out if the type of the new operand is not
6315 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6317 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6319 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6320 (x_ix86_target_flags_explicit): Remove.
6321 * config/i386/i386.c (ix86_function_specific_save): Do not copy
6322 x_ix86_target_flags_explicit.
6323 (ix86_function_specific_restore): Ditto.
6325 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6326 H.J. Lu <hongjiu.lu@intel.com>
6329 * common/config/i386/i386-common.c
6330 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6331 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6332 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6333 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6334 (-mgeneral-regs-only): Add new option.
6335 * config/i386/i386.c (ix86_option_override_internal): Don't enable
6336 x87 instructions if only general registers are allowed.
6337 (ix86_target_string): Add ix86_flags argument. Handle additional
6338 flags options through ix86_flags argument. Update all callers.
6339 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6341 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6343 PR rtl-optimization/66940
6344 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6345 decrementing desired_val will not overflow before performing these
6348 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6350 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6351 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6352 * config/i386/i386.c (enum ix86_builtins): Add
6353 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6354 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6355 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6356 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6357 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6358 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6359 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6360 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6361 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6362 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6363 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6364 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6365 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6366 __builtin_ia32_cvtps2dq512_mask.
6367 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6368 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6369 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6370 * config/i386/sse.md
6371 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6373 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6374 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6376 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6377 (avx512f_vec_pack_sfix_v8df): New define_expand.
6378 (avx512f_roundpd512): Rename to ...
6379 (avx512f_round<castmode>512): ... this. Change iterator.
6380 (avx512f_roundps512_sfix): New define_expand.
6381 (round<mode>2_sfix): Change iterator.
6383 2016-05-25 Nick Clifton <nickc@redhat.com>
6385 * config/msp430/msp430.c (msp430_attr): Produce an error if a
6386 static interrupt handler is detected.
6387 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6388 default linker script.
6389 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6390 the low part of a symbolic pointer.
6392 2016-05-25 Richard Biener <rguenther@suse.de>
6394 PR tree-optimization/71261
6395 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6396 interesting stmt instead of immediate uses when looking
6397 for the use operand to replace.
6399 2016-05-25 Martin Liska <mliska@suse.cz>
6401 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6403 2016-05-25 Richard Biener <rguenther@suse.de>
6405 PR tree-optimization/71264
6406 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6409 2016-05-25 Martin Liska <mliska@suse.cz>
6411 PR tree-optimization/71239
6412 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6413 if DECL_SIZE is NULL.
6415 2016-05-25 Richard Biener <rguenther@suse.de>
6417 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6418 * tree-if-conv.c (pass_data_if_conversion): Use it.
6420 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6422 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6423 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6424 * varpool.c (varpool_node::get_availability): Likewise.
6426 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6428 * config/rs6000/altivec.md (VNEG iterator): New iterator for
6429 VNEGW/VNEGD instructions.
6430 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6431 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6432 support for ISA 3.0 VNEGW/VNEGD instructions.
6434 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6436 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6437 pointers inside OACC_DATA regions.
6438 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6439 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6440 (gimplify_adjust_omp_clauses): Fix typo in comment.
6442 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6444 * config/rs6000/altivec.md (VParity): New mode iterator for vector
6445 parity built-in functions.
6446 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6448 (p9v_parity<mode>2): Likewise.
6449 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6451 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6452 (parity<mode>2): ISA 3.0 expander for vector parity.
6453 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6455 (BU_P9_64BIT_MISC_0): Likewise.
6456 (BU_P9_MISC_0): Likewise.
6457 (BU_P9V_AV_1): Likewise.
6458 (BU_P9V_AV_2): Likewise.
6459 (BU_P9V_AV_3): Likewise.
6460 (BU_P9V_AV_P): Likewise.
6461 (BU_P9V_VSX_1): Likewise.
6462 (BU_P9V_OVERLOAD_1): Likewise.
6463 (BU_P9V_OVERLOAD_2): Likewise.
6464 (BU_P9V_OVERLOAD_3): Likewise.
6465 (VCTZB): Add vector count trailing zeros support.
6469 (VPRTYBD): Add vector parity support.
6470 (VPRTYBQ): Likewise.
6471 (VPRTYBW): Likewise.
6472 (VCTZ): Add overloaded vector count trailing zeros support.
6473 (VPRTYB): Add overloaded vector parity support.
6474 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6475 overloaded vector count trailing zeros and parity instructions.
6476 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6477 vector parity support.
6478 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6479 trailing zeros support.
6480 (vec_cntlz): Likewise.
6481 (vec_vctzb): Likewise.
6482 (vec_vctzd): Likewise.
6483 (vec_vctzh): Likewise.
6484 (vec_vctzw): Likewise.
6485 (vec_vprtyb): Add ISA 3.0 vector parity support.
6486 (vec_vprtybd): Likewise.
6487 (vec_vprtybw): Likewise.
6488 (vec_vprtybq): Likewise.
6489 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6490 the ISA 3.0 vector count trailing zeros and vector parity built-in
6493 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6495 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6496 when there is stmt_to_insert.
6498 2016-05-24 Martin Sebor <msebor@redhat.com>
6501 * tree.h (complete_or_array_type_p): New inline function.
6503 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6505 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6506 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6507 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6509 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6510 Limit 1st alternative to noavx isa, split 2nd alternative into one
6511 noavx and one avx alternative, use *x and Bm in the former and
6512 x and m in the latter.
6514 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6515 of sse4 for the first alternative, drop %v from the template
6516 and d operand modifier. Split second alternative into one sse4_noavx
6517 and one avx alternative, use *x instead of *v in the former and v
6518 instead of *v in the latter.
6519 (*sse4_1_extractps): Use noavx isa instead of * for the first
6520 alternative, drop %v from the template. Split second alternative into
6521 one noavx and one avx alternative, use *x instead of *v in the
6522 former and v instead of *v in the latter.
6523 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6524 with noavx and the last one with avx.
6525 (sse4_1_phminposuw): Guard first alternative with noavx isa,
6526 split the second one into one noavx and one avx alternative,
6527 use *x and Bm in the former and x and m in the latter one.
6528 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6531 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6532 first two alternatives to noavx, use *x instead of *v in the second
6533 one, add avx alternative without *.
6534 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6535 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6536 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6538 2016-05-24 Jeff Law <law@redhat.com>
6540 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6541 New function, extracted from...
6542 (fsm_find_control_statement_thread_paths): Here. Use the new function.
6543 Allow simple copies and constant initializations in the SSA chain.
6545 2016-05-24 Marek Polacek <polacek@redhat.com>
6548 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6551 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6554 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6555 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6556 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
6557 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6558 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6560 2016-05-24 Richard Biener <rguenther@suse.de>
6562 PR tree-optimization/71240
6563 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6566 2016-05-24 Richard Biener <rguenther@suse.de>
6568 PR tree-optimization/71230
6569 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6571 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6573 * tree-vectorizer.h (vectorizable_comparison): Delete.
6574 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6575 PURE_SLP_STMT check.
6576 * tree-vect-stmts.c (vectorizable_call): Likewise.
6577 (vectorizable_simd_clone_call): Likewise.
6578 (vectorizable_conversion): Likewise.
6579 (vectorizable_assignment): Likewise.
6580 (vectorizable_shift): Likewise.
6581 (vectorizable_operation): Likewise.
6582 (vectorizable_load): Likewise.
6583 (vectorizable_condition): Likewise.
6584 (vectorizable_store): Likewise. Assert that we don't have
6586 (vectorizable_comparison): Make static. Remove redundant
6587 PURE_SLP_STMT check.
6588 (vect_transform_stmt): Assert that we always have an slp_node
6591 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6593 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
6594 operands[2] against 1 with comparison against CONST1_RTX.
6595 (<shift>di3_neon): Likewise.
6596 * config/arm/predicates.md (const0_operand): Replace with comparison
6599 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6601 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6602 operands[2] against 1 with comparison against CONST1_RTX.
6603 (ashrdi3): Likewise.
6604 (lshrdi3): Likewise.
6605 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6607 (ashrsi3): Likewise.
6608 (lshrsi3): Likewise.
6609 (rotrsi3): Likewise.
6610 (define_split above *compareqi_eq0): Likewise.
6611 (define_split above "prologue"): Likewise.
6612 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6613 * config/arm/predicates.md (shift_operator): Likewise.
6614 (shift_nomul_operator): Likewise.
6615 (sat_shift_operator): Likewise.
6616 (thumb1_cmp_operand): Likewise.
6617 (const_neon_scalar_shift_amount_operand): Replace manual range
6618 check with IN_RANGE.
6619 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6620 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6622 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6624 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6625 with HOST_WIDE_INT_1.
6627 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6628 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6629 (arm_canonicalize_comparison): Likewise.
6630 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6632 (thumb1_size_rtx_costs): Likewise.
6633 (vfp_const_double_index): Replace cast of 1 to unsigned
6634 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6635 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6637 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6638 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6639 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6640 HOST_WIDE_INT with HOST_WIDE_INT_1.
6642 2016-05-24 Marek Polacek <polacek@redhat.com>
6644 * tree-cfg.h (should_remove_lhs_p): New predicate.
6645 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6646 * gimplify.c (gimplify_modify_expr): Likewise.
6647 * tree-cfg.c (verify_gimple_call): Likewise.
6648 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6649 * gimple-fold.c: Include "tree-cfg.h".
6650 (gimple_fold_call): Use should_remove_lhs_p.
6652 2016-05-24 Richard Biener <rguenther@suse.de>
6654 PR tree-optimization/71253
6655 * cfganal.h (control_dependences): Make robust against edge
6657 (control_dependences::control_dependences): Remove edge_list argument.
6658 (control_dependences::get_edge): Remove.
6659 (control_dependences::get_edge_src): Add.
6660 (control_dependences::get_edge_dest): Likewise.
6661 (control_dependences::m_el): Make a vector of edge src/dest index.
6662 * cfganal.c (control_dependences::find_control_dependence): Adjust.
6663 (control_dependences::control_dependences): Likewise.
6664 (control_dependences::~control_dependence): Likewise.
6665 (control_dependences::get_edge): Remove.
6666 (control_dependences::get_edge_src): Add.
6667 (control_dependences::get_edge_dest): Likewise.
6668 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6670 (perform_tree_ssa_dce): Adjust.
6671 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6673 (pass_loop_distribution::execute): Adjust. Do loop destroying
6674 conditional on changed.
6676 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6679 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6680 return. Reindent transformation comment and mention the ARM state
6683 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6686 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6687 after build_and_add_sum creates new use stmt.
6689 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6691 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6692 load_lanes/grouped_load classification comes first. Don't check
6693 whether the vectorization factor is a multiple of the group size
6696 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6698 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6699 GROUP_GAP for single-element interleaving.
6700 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6703 2016-05-24 Richard Biener <rguenther@suse.de>
6707 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6708 bases which are accessed with non-invariant indices.
6709 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6710 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6712 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6715 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6716 (add_to_ops_vec): Add stmt_to_insert.
6717 (add_repeat_to_ops_vec): Init stmt_to_insert.
6718 (insert_stmt_before_use): New.
6719 (transform_add_to_multiply): Remove mult_stmt insertion and add it
6721 (get_ops): Init stmt_to_insert.
6722 (maybe_optimize_range_tests): Likewise.
6723 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6724 (rewrite_expr_tree_parallel): Likewise.
6725 (reassociate_bb): Likewise.
6727 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6730 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6731 ISA 3.0 xxperm fusion alternative.
6732 (altivec_vperm_v8hiv16qi): Likewise.
6733 (altivec_vperm_<mode>_uns_internal): Likewise.
6734 (vperm_v8hiv4si): Likewise.
6735 (vperm_v16qiv8hi): Likewise.
6737 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6738 Kelvin Nilsen <kelvin@gcc.gnu.org>
6740 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6741 vpermr/xxpermr on ISA 3.0.
6742 (altivec_expand_vec_perm_le): Likewise.
6743 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6744 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6747 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
6749 * config/i386/i386.h (IS_STACK_MODE): Enable for
6750 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
6751 SSE_FLOAT_MODE_P macros.
6752 * config/i386/i386.c (ix86_preferred_reload_class): Use
6753 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6754 Cleanup regclass processing for CONST_DOUBLE_P.
6755 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6756 (ix86_rtx_costs): Remove redundant TARGET_80387 check
6757 with IS_STACK_MODE macro.
6758 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6760 (*movdf_internal): Use IS_STACK_MODE macro.
6761 (*movsf_internal): Ditto.
6763 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
6765 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6766 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6768 2016-05-23 Jeff Law <law@redhat.com>
6770 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6772 (fsm_find_control_statement_thread_paths): Call it.
6774 2016-05-23 Martin Jambor <mjambor@suse.cz>
6777 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6778 from_global_constant if t is not NULL.
6780 2016-05-23 Marek Polacek <polacek@redhat.com>
6783 * common.opt (Wswitch-unreachable): New option.
6784 * doc/invoke.texi: Document -Wswitch-unreachable.
6785 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6788 2016-05-23 Bin Cheng <bin.cheng@arm.com>
6790 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6791 TMR_INDEX is non-NULL.
6793 2016-05-23 Richard Biener <rguenther@suse.de>
6795 PR tree-optimization/71230
6796 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6797 (try_special_add_to_ops): ... here. Always test for single-use.
6799 2016-05-23 Martin Jambor <mjambor@suse.cz>
6801 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6802 default block if a PHI node in the original one would be resized.
6804 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6806 PR tree-optimization/58135
6807 * tree-vect-slp.c: When group size is not multiple
6808 of vector size, allow splitting of store group at
6811 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
6813 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6815 2016-05-22 Jakub Jelinek <jakub@redhat.com>
6817 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6818 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6819 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
6822 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6823 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6824 v constraint instead of x and vinserti32x4 insn.
6826 * config/i386/sse.md (i128vldq): New mode iterator.
6827 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6828 avx512dq and avx512vl alternatives.
6830 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6831 constraint, use maybe_evex prefix instead of vex.
6832 (vec_dupv4sf): Use v constraint instead of x for output
6833 operand except for noavx alternative, use Yv constraint
6834 instead of x for input. Use maybe_evex prefix instead of vex.
6835 (*vec_dupv4si): Likewise.
6836 (*vec_dupv2di): Likewise.
6838 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6841 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6842 (linearize_expr_tree): Call try_special_add_to_ops.
6843 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6845 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6847 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6848 to computed stack_usage.
6850 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6853 * config/avr/avr.md (define_expand "mov<mode>"): If the source
6854 operand is subreg (symbol_ref) then move the symbol ref to register.
6856 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
6858 * tree.c (array_at_struct_end_p): Look through MEM_REF.
6860 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6863 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6866 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6868 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6869 ranges by calling get_single_symbol and tidy up. Look more closely
6870 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6872 2016-05-20 Jeff Law <law@redhat.com>
6874 * bitmap.c (bitmap_find_bit): Remove useless test.
6876 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6878 * function.c (thread_prologue_and_epilogue_insns): Commit the
6879 insertion of the epilogue.
6881 2016-05-20 Martin Jambor <mjambor@suse.cz>
6883 PR tree-optimization/70884
6884 * tree-sra.c (initialize_constant_pool_replacements): Do not check
6885 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6886 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6887 of constant pool data as a reason for scalarization.
6889 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6891 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6892 for naked functions.
6893 (thumb1_expand_prologue): Likewise.
6895 2016-05-20 Nathan Sidwell <nathan@acm.org>
6897 * config/nvptx/nptx.c (nvptx_option_override): Only set
6898 flag_toplevel_reorder, if not explicitly specified. Set
6899 flag_no_common, unless explicitly specified.
6901 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6903 * calls.c (can_implement_as_sibling_call_p): Mark param
6904 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6906 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6908 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6909 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6910 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6912 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6913 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6916 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6918 * config/nvptx/nvptx.md (sincossf3): New pattern.
6920 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6922 * calls.c (maybe_complain_about_tail_call): New function.
6923 (initialize_argument_information): Call
6924 maybe_complain_about_tail_call when clearing *may_tailcall.
6925 (can_implement_as_sibling_call_p): Call
6926 maybe_complain_about_tail_call when returning false.
6927 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6928 ensure try_tail_call is set. Call maybe_complain_about_tail_call
6929 if tail-call optimization fails.
6930 * cfgexpand.c (expand_call_stmt): Initialize
6931 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6932 * gimple-pretty-print.c (dump_gimple_call): Dump
6933 gimple_call_must_tail_p.
6934 * gimple.c (gimple_build_call_from_tree): Call
6935 gimple_call_set_must_tail with the value of
6936 CALL_EXPR_MUST_TAIL_CALL.
6937 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6938 (gimple_call_set_must_tail): New function.
6939 (gimple_call_must_tail_p): New function.
6940 * print-tree.c (print_node): Update printing of TREE_STATIC
6941 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6942 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6943 trailing comment listing applicable flags.
6944 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6946 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6948 * calls.c (expand_call): Move "Rest of purposes for tail call
6949 optimizations to fail" to...
6950 (can_implement_as_sibling_call_p): ...this new function, and
6951 split into multiple "if" statements.
6953 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6955 * cfgloop.h (expected_loop_iterations_unbounded,
6956 expected_loop_iterations): Unconstify.
6957 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6958 profile with known upper bound; return 3 when profile is absent.
6959 (expected_loop_iterations): Update.
6961 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6963 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6964 and get_max_loop_iterations_int.
6966 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6968 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6969 realistic upper bounds here.
6971 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6974 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6975 calls if the LHS is variable length or has addressable type.
6976 If targets[0]->decl is a noreturn call with void return type and
6977 zero arguments, adjust fntype and remove lhs in that case.
6979 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6981 PR tree-optimization/71079
6982 PR tree-optimization/71206
6983 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6985 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6987 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6988 (get_vec_alignment_for_array_decl): Likewise.
6989 (get_vec_alignment_for_record_decl): Likewise.
6990 (increase_alignment::execute): Move code to find alignment to
6991 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6992 (type_align_map): New hash_map.
6994 2016-05-20 Richard Guenther <rguenther@suse.de>
6996 PR tree-optimization/29756
6997 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6998 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6999 * fold-const.c (operand_equal_p): Likewise.
7000 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
7001 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
7002 * tree-inline.c (estimate_operator_cost): Likewise.
7003 * tree-pretty-print.c (dump_generic_node): Likewise.
7004 * tree-ssa-operands.c (get_expr_operands): Likewise.
7005 * cfgexpand.c (expand_debug_expr): Likewise.
7006 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7007 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
7008 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
7009 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
7010 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
7011 (execute_update_addresses_taken): Do it.
7013 2016-05-20 Richard Biener <rguenther@suse.de>
7015 PR tree-optimization/71185
7016 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
7017 register operations.
7019 2016-05-20 Richard Biener <rguenther@suse.de>
7021 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
7022 gimple_seq_add_seq_without_update.
7023 (release_bb_predicate): Assert we have no operands to free.
7024 (if_convertible_loop_p_1): Calculate post dominators later.
7025 Do not free BB predicates here.
7026 (combine_blocks): Do not recompute BB predicates.
7027 (version_loop_for_if_conversion): Save BB predicates around
7030 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7032 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
7033 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
7034 code. Ignore sibcalls on EDGE_IGNORE edges.
7035 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
7036 on edges for sibcalls that run without prologue. The rest of the
7037 function is combined from...
7038 (fix_fake_fallthrough_edge): ... this, and ...
7039 (try_shrink_wrapping): ... a part of this. Remove the bb_with
7040 function argument, make it a local variable.
7042 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
7044 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
7045 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
7046 for 32-bit mode and SEH for 64-bit.
7047 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
7048 TARGET_64BIT_DEFAULT.
7050 2016-05-19 Ryan Burn <contact@rnburn.com>
7052 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
7053 * gengtype.c (open_base_files): Add cilk.h to ifiles.
7055 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
7057 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
7058 force pending loads from memory.
7060 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
7062 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
7063 (UNSPEC_DARN_32): New unspec constant.
7064 (UNSPEC_DARN_RAW): New unspec constant.
7065 (darn_32): New instruction.
7066 (darn_raw): New instruction.
7067 (darn): New instruction.
7068 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
7069 support and documentation for this macro.
7070 (BU_P9_MISC_1): New macro definition.
7071 (BU_P9_64BIT_MISC_0): New macro definition.
7072 (BU_P9_MISC_0): New macro definition.
7073 (darn_32): New builtin definition.
7074 (darn_raw): New builtin definition.
7075 (darn): New builtin definition.
7076 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
7077 RS6000_BUILTIN_0 directives to surround each occurrence of
7078 #include "rs6000-builtin.def".
7079 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
7080 RS6000_BTM_64BIT flags to the returned mask, depending on
7082 (def_builtin): Correct an error in the assignments made to the
7083 debugging variable attr_string.
7084 (rs6000_expand_builtin): Add support for no-operand built-in
7086 (builtin_function_type): Remove fatal_error assertion that is no
7088 (rs6000_common_init_builtins): Add support for no-operand built-in
7090 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
7092 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
7094 (RS6000_BTM_64BIT): New macro definition.
7095 * doc/extend.texi: Document __builtin_darn (void),
7096 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
7099 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
7101 * tree-vect-loop.c (vect_analyze_loop_2): Use also
7102 max_loop_iterations_int.
7104 2016-05-19 Marek Polacek <polacek@redhat.com>
7106 PR tree-optimization/71031
7107 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
7108 condition and adjust the code a bit.
7110 2016-05-19 Martin Liska <mliska@suse.cz>
7112 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
7113 auto_vec instead of vec.
7115 2016-05-19 Martin Liska <mliska@suse.cz>
7117 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
7119 2016-05-19 Martin Liska <mliska@suse.cz>
7121 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
7123 2016-05-19 Martin Liska <mliska@suse.cz>
7125 * ipa-pure-const.c (set_function_state): Remove an existing
7127 (remove_node_data): Do not free it as it's released
7128 in set_function_state.
7130 2016-05-19 Martin Liska <mliska@suse.cz>
7132 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
7135 2016-05-19 Martin Liska <mliska@suse.cz>
7137 * omp-simd-clone.c (simd_clone_adjust): Release vector.
7139 2016-05-19 Martin Liska <mliska@suse.cz>
7141 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
7142 an auto_vec instead of re-creating it.
7144 2016-05-19 Martin Liska <mliska@suse.cz>
7146 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
7147 auto_vec instead of vec.
7149 2016-05-19 Martin Liska <mliska@suse.cz>
7151 * lto-section-in.c (lto_get_section_data): Call
7152 lto_check_version with additional argument.
7153 * lto-streamer.c (lto_check_version): Add new argument.
7154 * lto-streamer.h (lto_check_version): Likewise.
7156 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7158 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
7159 Don't add cost of inner memory when handling sign-extended loads.
7161 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
7163 PR rtl-optimization/71148
7164 * cse.c (cse_main): Free dominance info.
7165 (rest_of_handle_cse): Don't free dominance info.
7166 (rest_of_handle_cse2): Likewise.
7167 (rest_of_handle_cse_after_global_opts): Likewise.
7169 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7172 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
7173 NULL_TREE early if NEON is not available. Remove now redundant check
7174 in ARM_CHECK_BUILTIN_MODE.
7176 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
7179 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
7180 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
7181 * doc/cpp.texi: Document new macros.
7183 2016-05-19 Bin Cheng <bin.cheng@arm.com>
7185 PR tree-optimization/69848
7186 * tree-vect-loop.c (vectorizable_reduction): Don't factor
7187 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
7189 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7191 * function.c (thread_prologue_and_epilogue_insn): Move the
7192 "goto epilogue_done" one block later.
7194 2016-05-19 Richard Biener <rguenther@suse.de>
7196 PR tree-optimization/70729
7197 * passes.def: Move LIM pass before PRE. Remove no longer
7198 required copyprop and move first DCE out of the loop pipeline.
7200 2016-05-18 David Malcolm <dmalcolm@redhat.com>
7203 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
7204 (OBJS-libcommon-target): ...here.
7205 * opts-common.c: Include spellcheck.h.
7206 (cmdline_handle_error): Build a vec of valid options and use it
7207 to suggest provide hints for misspelled arguments.
7209 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7212 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
7213 lhs if it has TREE_ADDRESSABLE type.
7215 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
7218 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
7219 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
7221 2016-05-18 Martin Jambor <mjambor@suse.cz>
7224 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
7225 input for NOP_EXPR pass-through functions.
7226 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
7227 aggregate global constant VAR_DECLs in constant jump functions.
7229 2016-05-18 Martin Jambor <mjambor@suse.cz>
7232 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
7233 from TREE_READONLY parameters.
7235 2016-05-18 Martin Jambor <mjambor@suse.cz>
7238 * cgraph.h (cgraph_indirect_call_info): New field
7239 guaranteed_unmodified.
7240 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
7241 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7243 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
7244 pass the parameter value to ipa_find_agg_cst_for_param.
7245 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
7246 guaranteed_unmodified, store AA results there instead of bailing out
7248 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
7249 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
7250 (find_constructor_constant_at_offset): New function.
7251 (ipa_find_agg_cst_from_init): Likewise.
7252 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
7253 static initializers of contants, report back through a new paameter
7254 from_global_constant if that was the case.
7255 (try_make_edge_direct_simple_call): Also pass parameter value to
7256 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7258 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
7259 (ipa_read_indirect_edge_info): Likewise.
7260 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
7261 (ipa_load_from_parm_agg): Likewise.
7263 2016-05-18 Jiong Wang <jiong.wang@arm.com>
7265 PR rtl-optimization/71150
7266 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
7269 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7272 * config/rs6000/constraints.md (wE constraint): New constraint
7273 for a vector constant that can be loaded with XXSPLTIB.
7274 (wM constraint): New constraint for a vector constant of a 1's.
7275 (wS constraint): New constraint for a vector constant that can be
7276 loaded with XXSPLTIB and a vector sign extend instruction.
7277 * config/rs6000/predicates.md (xxspltib_constant_split): New
7278 predicates for wE/wS constraints.
7279 (xxspltib_constant_nosplit): Likewise.
7280 (easy_vector_constant): Add support for constants that can be
7281 loaded via XXSPLTIB.
7282 (all_ones_constant): New predicate for vector constant with all
7284 (splat_input_operand): Add support for ISA 3.0 word splat operations.
7285 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
7286 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
7287 instruction and possibly with a sign extension.
7288 (output_vec_const_move): Add support for XXSPLTIB. If we are
7289 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
7290 instead of XXLXOR/XXLORC.
7291 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
7293 (rs6000_legitimize_reload_address): Likewise.
7294 (rs6000_output_move_128bit): Use output_vec_const_move to emit
7296 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
7297 combine VSX_M and VSX_M2 into one iterator.
7299 (VSINT_84): New iterators for loading constants with XXSPLTIB.
7300 (VSINT_842): Likewise.
7301 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7302 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7303 XXSPLTIB instruction.
7304 (xxspltib_<mode>_nosplit): Likewise.
7305 (xxspltib_<mode>_split): New insn to load up constants with
7306 XXSPLTIB and a sign extend instruction.
7307 (vsx_mov<mode>): Replace single move that handled all vector types
7308 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
7309 moves (when -mvsx-timode is in effect) into the main vector
7310 moves. Eliminate separate moves for <VSr> <VSa>, where the
7311 preferred register class (<VSr>) is listed first, and the
7312 secondary register class (<VSa>) is listed second with a '?' to
7313 discourage use. Prefer loading 0/-1 in any VSX register for ISA
7314 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7315 that if the register was involved in a slow operation, the
7316 clear/set operation does not wait for the slow operation to
7317 finish. Adjust the length attributes for 32-bit mode. Use
7318 rs6000_output_move_128bit and drop the use of the string
7319 instructions for 32-bit movti when -mvsx-timode is in effect. Use
7320 spacing so that the alternatives and attributes don't generate
7321 long lines, and put things in columns, so that it is easier to
7322 match up the operands and attributes with the insn alternatives.
7323 (vsx_mov<mode>_64bit): Likewise.
7324 (vsx_mov<mode>_32bit): Likewise.
7325 (vsx_movti_64bit): Fold movti into normal vector moves.
7326 (vsx_movti_32bit): Likewise.
7327 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7329 (vsx_splat_v4si_internal): Likewise.
7330 (vsx_splat_v4sf_internal): Likewise.
7331 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7332 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7333 extend vector elements.
7334 (vsx_sign_extend_hi_<mode>): Likewise.
7335 (vsx_sign_extend_si_v2di): Likewise.
7336 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7338 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7339 constraints. Add trailing period to wL documentation.
7341 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
7344 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7345 * tree-dfa.c (replace_abnormal_ssa_names): New function.
7346 * tree-call-cdce.c: Include tree-dfa.h.
7347 (can_guard_call_p): New function, extracted from...
7348 (can_use_internal_fn): ...here.
7349 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7351 (shrink_wrap_one_built_in_call): Likewise.
7352 (use_internal_fn): Likewise.
7353 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7354 and return void. Call replace_abnormal_ssa_names.
7355 (pass_call_cdce::execute): Check can_guard_call_p during the
7356 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
7357 will always change something.
7359 2016-05-18 Martin Jambor <mjambor@suse.cz>
7362 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7363 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7365 2016-05-18 Martin Jambor <mjambor@suse.cz>
7368 * ipa-inline.h (condition): New field size.
7369 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7370 for comaprison and store it into the new condition.
7371 (evaluate_conditions_for_known_args): Use condition size to check
7372 access sizes for all but CHANGED conditions.
7373 (unmodified_parm_1): New parameter size_p, store access size into it.
7374 (unmodified_parm): Likewise.
7375 (unmodified_parm_or_parm_agg_item): Likewise.
7376 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7377 (set_cond_stmt_execution_predicate): Extract access sizes and store
7379 (set_switch_stmt_execution_predicate): Likewise.
7380 (will_be_nonconstant_expr_predicate): Likewise.
7381 (will_be_nonconstant_predicate): Likewise.
7382 (inline_read_section): Stream condition size.
7383 (inline_write_summary): Likewise.
7385 2016-05-18 Richard Biener <rguenther@suse.de>
7387 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7388 condition cost to PHI cost instead of total_cost.
7390 2016-05-18 Martin Liska <mliska@suse.cz>
7393 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7396 2016-05-18 Richard Biener <rguenther@suse.de>
7398 * lto-streamer.h (LTO_major_version): Bump to 6.
7400 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7402 * function.c (make_split_prologue_seq, make_prologue_seq,
7403 make_epilogue_seq): New functions, factored out from...
7404 (thread_prologue_and_epilogue_insns): Here.
7406 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7408 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7409 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7410 of before. Add a comment.
7412 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7414 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7415 expression pointer, not pointer to the pointer.
7417 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7419 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7420 (avx2_pbroadcast<mode>): Add another alternative with v instead
7421 of x constraints in it, using <pbroadcast_evex_isa> isa.
7422 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7424 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7425 constraint x instead of v in second alternative, add avx512bw
7428 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7429 constraint x instead of v in second alternative, add avx512bw
7432 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7433 constraint x instead of v in second alternative, add avx512bw
7436 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7437 avx512bw alternative.
7439 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7441 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7443 (define_insn "*andnottf3"): Ditto.
7444 (define_insn "*<code><mode>3"/any_logic): Ditto.
7445 (define_insn "*<code>tf3"/any_logic): Ditto.
7446 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7447 operand to block AVX-512VL insn variant emit when it is not enabled.
7449 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7451 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7452 constraint fot SF mode.
7454 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7455 Kirill Yukhin <kirill.yukhin@intel.com>
7457 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7459 (define_insn "rsqrt14<mode>"): Ditto.
7460 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7461 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7462 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7463 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7464 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7466 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7467 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7468 * config/i386/i386.c (ix86_print_operand): Expand check for size
7469 override codes for Intel syntax.
7471 2016-05-18 Richard Biener <rguenther@suse.de>
7473 PR tree-optimization/71168
7474 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7475 initialization earlier.
7477 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7479 * config/aarch64/aarch64-simd.md
7480 (aarch64_reduc_plus_internal<mode>): Rename to...
7481 (reduc_plus_scal): ...This, and remove previous implementation.
7483 2016-05-18 Richard Biener <rguenther@suse.de>
7485 * passes.def: Put late dse and cd_dce in canonical order.
7487 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7489 * ipa-inline-transform.c (preserve_function_body_p): Look for
7490 first non-thunk clone.
7491 (save_function_body): Save into first non-thunk.
7492 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7494 (lto_output_node): Inline thunks don't need body in every
7496 * lto-streamer-in.c: Do not fixup thunk clones.
7497 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7499 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7502 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7505 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7506 (reassociate_bb): Call transform_add_to_multiply.
7508 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7510 * config/aarch64/aarch64.c (all_extensions): Removed unused
7513 2016-05-17 Nathan Sidwell <nathan@acm.org>
7515 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7516 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7518 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7520 PR tree-optimization/54579
7522 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7524 2016-05-17 Marek Polacek <polacek@redhat.com>
7527 * tree-inline.c (expand_call_inline): Call
7528 maybe_remove_unused_call_args.
7530 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7532 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7533 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7534 * doc/md.texi (fmin@var{m}3): Likewise.
7536 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7538 * match.pd (X & C): New transformation.
7540 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7542 * match.pd (~X & Y): New transformation.
7544 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7546 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7547 information for new SSA_NAME.
7548 (simplify_conversion_using_ranges): Get range through get_range_info
7549 instead of get_value_range.
7551 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7553 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7554 Remove inline assembly.
7555 (vmvn_s16): Likewise.
7556 (vmvn_s32): Likewise.
7557 (vmvn_u8): Likewise.
7558 (vmvn_u16): Likewise.
7559 (vmvn_u32): Likewise.
7560 (vmvnq_s8): Likewise.
7561 (vmvnq_s16): Likewise.
7562 (vmvnq_s32): Likewise.
7563 (vmvnq_u8): Likewise.
7564 (vmvnq_u16): Likewise.
7565 (vmvnq_u32): Likewise.
7566 (vmvn_p8): Likewise.
7567 (vmvnq_p16): Likewise.
7569 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7571 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7573 (vmul_n_s16): Likewise.
7574 (vmul_n_s32): Likewise.
7575 (vmul_n_u16): Likewise.
7576 (vmul_n_u32): Likewise.
7577 (vmulq_n_f32): Likewise.
7578 (vmulq_n_f64): Likewise.
7579 (vmulq_n_s16): Likewise.
7580 (vmulq_n_s32): Likewise.
7581 (vmulq_n_u16): Likewise.
7582 (vmulq_n_u32): Likewise.
7584 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7586 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7587 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7589 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7591 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7592 to *aarch64_fma4_elt_from_dup<mode>.
7593 (*aarch64_fnma4_elt_to_128df): Rename to
7594 *aarch64_fnma4_elt_from_dup<mode>.
7595 * config/aarch64/arm_neon.h (vfma_n_f64): New.
7596 (vfms_n_f32): Likewise.
7597 (vfms_n_f64): Likewise.
7598 (vfmsq_n_f32): Likewise.
7599 (vfmsq_n_f64): Likewise.
7601 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7603 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7605 2016-05-17 Richard Biener <rguenther@suse.de>
7607 PR tree-optimization/71132
7608 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7609 Only add control dependences for blocks in the loop.
7610 (build_rdg): Adjust.
7611 (generate_code_for_partition): Return whether loop should
7612 be destroyed and delay that.
7613 (distribute_loop): Likewise.
7614 (pass_loop_distribution::execute): Record loops to be destroyed
7615 and perform delayed destroying of loops.
7617 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7620 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7622 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7624 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7626 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7629 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7630 insertion point for instructions generated by validize_mem.
7632 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7634 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7637 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7639 * config/aarch64/aarch64.c
7640 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7641 rather than a macro.
7643 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7645 * doc/invoke.texi (AArch64 Options): Various updates.
7647 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7649 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7650 into instrumentation thunks.
7651 * cif-code.def (CIF_CHKP): New.
7653 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7655 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7657 2016-05-16 Martin Jambor <mjambor@suse.cz>
7659 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7660 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7662 2016-05-16 Marek Polacek <polacek@redhat.com>
7664 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7667 2016-05-16 Martin Jambor <mjambor@suse.cz>
7670 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7671 the outlined kernel function.
7673 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7675 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7676 (ISA_HAS_DLSA): Ditto.
7678 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7680 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7682 2016-05-16 Nathan Sidwell <nathan@acm.org>
7684 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7685 (nvptx_name_replacement): Restore. Add comment.
7686 (write_fn_proto, write_fn_proto_from_insn,
7687 nvptx_output_call_insn): Restore
7688 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7690 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7692 * config/aarch64/aarch64.md
7693 (add<mode>3_compareC_cconly_imm): Remove use of %w.
7694 (add<mode>3_compareC_imm): Likewise.
7695 (<optab>si3_uxtw): Split into register and immediate variants.
7696 (andsi3_compare0_uxtw): Likewise.
7697 (and<mode>3_compare0): Likewise.
7698 (and<mode>3nr_compare0): Likewise.
7699 (stack_protect_test_<mode>): Don't use %x for memory operands.
7701 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7703 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7705 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7707 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7708 Split integer shifts into shift_reg and bfm.
7709 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7710 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7711 (ror<mode>3_insn): Likewise.
7712 (<optab>si3_insn_uxtw): Likewise.
7713 (<optab><mode>3_insn): Change to rotate_imm.
7714 (extr<mode>5_insn_alt): Likewise.
7715 (extrsi5_insn_uxtw): Likewise.
7716 (extrsi5_insn_uxtw_alt): Likewise.
7718 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7720 * doc/tm.texi: Regenerate.
7721 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7722 (TARGET_INVALID_RETURN_TYPE): Remove.
7723 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7724 TARGET_INVALID_RETURN_TYPE.
7725 * target.def (invalid_parameter_type): Remove.
7726 (invalid_return_type): Remove.
7728 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7730 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7731 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7733 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7735 (preserve_function_body_p): No need to preserve function body
7736 * cif-codes.def (CIF_THUNK): Remove.
7737 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7739 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7741 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7743 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7745 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7748 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7750 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7751 (inline_small_functions): Do not look for function symbol when
7754 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7756 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7759 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7760 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7761 Jiong Wang <jiong.wang@arm.com>
7763 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7764 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7765 Define __ARM_FP16_ARGS when appropriate.
7766 * config/arm/arm.c (arm_invalid_parameter_type): Remove
7768 (arm_invalid_return_type): Likewise.
7769 (TARGET_INVALID_PARAMETER_TYPE): Remove.
7770 (TARGET_INVALID_RETURN_TYPE): Remove.
7771 (aapcs_vfp_sub_candidate): Allow HFmode.
7772 (aapcs_vfp_allocate): Add comment. Support HFmode.
7773 (aapcs_vfp_allocate_return_reg): Likewise.
7774 (struct aapcs_cp_arg_layout): Slightly reword comments for
7775 is_return_candidate and allocate_return_reg.
7776 (output_mov_vfp): Update assert.
7777 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7779 (arm_invalid_parameter_type): Remove.
7780 (amr_invalid_return_type): Remove.
7781 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7782 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7783 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7785 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7787 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7788 * config/aarch64/arch64-protos.h
7789 (aarch64_legitimize_reload_address): Remove.
7790 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7793 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
7795 * configure.ac: Add ACX_NONCANONICAL_HOST.
7796 * configure: Regenerate.
7797 * Makefile.in: Set host_noncanonical.
7799 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
7802 * config/i386/i386.md (*movtf_internal): Before register allocation,
7803 do not allow FP constants for CM_MEDIUM memory model, allow only
7804 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7805 (*movxf_internal): Ditto.
7806 (*movdf_internal): Ditto.
7807 (*movsf_internal): Ditto.
7809 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7811 PR rtl-optimization/67483
7812 * combine.c (make_compound_operation): Don't call extract_left_shift
7813 with negative shift amounts.
7815 2016-05-13 Jakub Jelinek <jakub@redhat.com>
7818 * fold-const.c (fold_checksum_tree): Allow modification
7819 of TYPE_ALIAS_SET during folding.
7821 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7822 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7823 (ix86_split_to_parts): Likewise. Fix up formatting.
7825 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
7827 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7828 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7831 2016-05-13 Nathan Sidwell <nathan@acm.org>
7833 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7834 (nvptx_name_replacement): Delete.
7835 (write_fn_proto, write_fn_proto_from_insn,
7836 nvptx_output_call_insn): Remove nvptx_name_replacement call.
7837 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7838 * langhooks.c (add_builtin_funcction_common): Call
7839 targetm.mangle_decl_assembler_name.
7841 * config/nvptx/nvptx.c (write_fn_proto): Handle
7842 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7844 2016-05-13 Martin Liska <mliska@suse.cz>
7846 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7847 and PRIu64 in printf format.
7849 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7851 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7854 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7856 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7857 Change --param max-completely-peeled-times to
7858 --param max-completely-peel-times in dump file printing.
7860 2016-05-13 Richard Biener <rguenther@suse.de>
7862 PR tree-optimization/42587
7863 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7864 (find_bswap_or_nop_1): Likewise.
7865 (bswap_replace): Likewise.
7867 2016-05-13 Martin Liska <mliska@suse.cz>
7869 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7870 Initialize a variable with default value.
7872 2016-05-13 Martin Liska <mliska@suse.cz>
7874 * doc/invoke.texi: Enhance explanation of error recovery
7877 2016-05-13 Martin Liska <mliska@suse.cz>
7879 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7880 (struct cost_pair): Change inv_expr_id (int) to inv_expr
7881 (iv_inv_expr_ent *).
7882 (struct iv_inv_expr_ent): Comment struct fields.
7883 (sort_iv_inv_expr_ent): New function.
7884 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7885 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7886 a hash_map between iv_inv_expr_ent and number of usages.
7887 (niter_for_exit): Fix coding style.
7888 (tree_ssa_iv_optimize_init): Use renamed variable.
7889 (determine_base_object): Fix coding style.
7890 (alloc_iv): Likewise.
7891 (find_interesting_uses_outside): Likewise.
7892 (add_candidate_1): Likewise.
7893 (add_standard_iv_candidates): Likewise.
7894 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7895 (prepare_decl_rtl): Fix coding style.
7896 (get_address_cost): Likewise.
7897 (get_shiftadd_cost): Likewise.
7898 (force_expr_to_var_cost): Likewise.
7899 (compare_aff_trees): Likewise.
7900 (get_expr_id): Restructure the function.
7901 (get_loop_invariant_expr_id): Renamed to
7902 get_loop_invariant_expr.
7903 (get_computation_cost_at): Replace usage of inv_expr_id with
7905 (get_computation_cost): Likewise.
7906 (determine_group_iv_cost_generic): Likewise.
7907 (determine_group_iv_cost_address): Likewise.
7908 (iv_period): Fix coding style.
7909 (iv_elimination_compare_lt): Likewise.
7910 (may_eliminate_iv): Likewise.
7911 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
7913 (determine_group_iv_costs): Dump invariant expressions.
7914 (iv_ca_recount_cost): Use the newly added hash_map.
7915 (iv_ca_set_remove_invariants): Fix coding style.
7916 (iv_ca_set_add_invariants): Fix coding style.
7917 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7919 (iv_ca_set_cp): Likewise.
7920 (iv_ca_new): Initialize the newly added hash_map and remove
7921 initialization of fields.
7922 (iv_ca_free): Delete the hash_map.
7923 (iv_ca_dump): Dump invariant expressions.
7924 (iv_ca_extend): Fix coding style.
7925 (try_add_cand_for): Likewise.
7926 (create_new_ivs): Dump information about # of avg iterations and
7927 # of used invariant expressions.
7928 (rewrite_use_compare): Fix coding style.
7929 (free_loop_data): Set default value for max_inv_expr_id.
7931 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7933 * cse.c (rest_of_handle_cse): Use cleanup_cfg
7934 returned value cse_cfg_altered computation.
7935 (rest_of_handle_cse2): Likewise.
7936 (rest_of_handle_cse_after_global_opts): Likewise.
7938 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7941 * config/arm/arm.c (arm32_output_mi_thunk): New.
7942 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7943 to split Thumb1 vs TARGET_32BIT functionality.
7944 (arm_thumb1_mi_thunk): New.
7946 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7948 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7951 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7954 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7956 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7958 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7959 (expand_builtin_trap): Emit a regular call.
7960 (set_builtin_user_assembler_name): Remove obsolete cases.
7961 * dse.c (scan_insn): Adjust.
7962 * except.c: Include calls.h.
7963 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7964 emit a regular call to setjmp.
7965 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7966 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7967 (emit_block_move_via_libcall): Delete.
7968 (block_move_fn): Delete.
7969 (init_block_move_fn): Likewise.
7970 (emit_block_move_libcall_fn): Likewise.
7971 (emit_block_op_via_libcall): New function.
7972 (set_storage_via_libcall): Tidy up and use memset builtin.
7973 (block_clear_fn): Delete.
7974 (init_block_clear_fn): Likewise.
7975 (clear_storage_libcall_fn): Likewise.
7976 (expand_assignment): Call emit_block_move_via_libcall.
7977 Do not include gt-expr.h.
7978 * expr.h (emit_block_op_via_libcall): Declare.
7979 (emit_block_copy_via_libcall): New inline function.
7980 (emit_block_move_via_libcall): Likewise.
7981 (emit_block_comp_via_libcall): Likewise.
7982 (block_clear_fn): Delete.
7983 (init_block_move_fn): Likewise.
7984 (init_block_clear_fn): Likewise.
7985 (emit_block_move_via_libcall): Likewise.
7986 (set_storage_via_libcall): Add default parameter value.
7987 * libfuncs.h (enum libfunc_index): Remove obsolete values.
7988 (abort_libfunc): Delete.
7989 (memcpy_libfunc): Likewise.
7990 (memmove_libfunc): Likewise.
7991 (memcmp_libfunc): Likewise.
7992 (memset_libfunc): Likewise.
7993 (setbits_libfunc): Likewise.
7994 (setjmp_libfunc): Likewise.
7995 (longjmp_libfunc): Likewise.
7996 (profile_function_entry_libfunc): Likewise.
7997 (profile_function_exit_libfunc): Likewise.
7998 (gcov_flush_libfunc): Likewise.
7999 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
8000 and DECL_VISIBILITY on the declaration.
8001 (init_optabs): Do not initialize obsolete libfuncs.
8002 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
8003 * tree-core.h (ECF_RET1): Define.
8004 (ECF_TM_PURE): Adjust.
8005 (ECF_TM_BUILTIN): Likewise.
8006 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
8007 (build_common_builtin_nodes): Initialize abort builtin.
8008 Add ECF_RET1 on memcpy, memmove and memset builtins.
8009 Pass final flags for alloca and alloca_with_align builtins.
8010 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
8012 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
8013 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
8014 set_storage_via_libcall and call emit_block_copy_via_libcall.
8016 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
8018 * config/i386/i386.md (*call_got_x32): Change operand 0 to
8019 DImode before it is passed to ix86_output_call_operand.
8020 (*call_value_got_x32): Ditto for operand 1.
8022 2016-05-12 Jiong Wang <jiong.wang@arm.com>
8024 PR rtl-optimization/70904
8025 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
8026 reload for wide mode.
8028 2016-05-12 Marek Polacek <polacek@redhat.com>
8031 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
8032 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
8033 * langhooks.h (incomplete_type_error): Likewise.
8034 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
8035 parameter, pass it down to incomplete_type_error.
8036 * tree.h (size_in_bytes): New inline overload.
8037 (size_in_bytes_loc): Renamed from size_in_bytes.
8039 2016-05-12 Richard Biener <rguenther@suse.de>
8041 PR tree-optimization/71059
8042 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
8043 nary before looking up or entering the expression into the VN
8045 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
8046 Make sure to re-use NARYs without result as inserted by
8049 2016-05-12 Richard Biener <rguenther@suse.de>
8051 PR tree-optimization/71062
8052 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8054 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8055 vars_contains_restrict if the var is a restrict tag.
8056 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
8057 do not disambiguate pointers against it.
8058 (dump_points_to_solution): Re-structure and adjust for new
8059 vars_contains_restrict flag.
8060 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8062 2016-05-12 Martin Liska <mliska@suse.cz>
8064 * doc/invoke.texi: Explain connection between
8065 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
8067 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
8069 PR tree-optimization/71006
8070 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8071 consider COND_EXPR as a mask producer.
8073 2016-05-12 Marek Polacek <polacek@redhat.com>
8076 * opts.c (common_handle_option): Detect missing argument for --help^.
8078 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8081 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
8082 when popping the PC and within an interrupt handler routine.
8083 Add missing tab to output of "ldmfd".
8084 (output_return_instruction): Output LDMFD with SP update rather
8085 than POP when returning from interrupt handler.
8087 2016-05-12 Jakub Jelinek <jakub@redhat.com>
8089 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
8090 TARGET_64BIT && TARGET_AVX512DQ.
8091 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
8092 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
8093 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
8094 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
8095 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
8096 (*vec_extractv4si_zext): Add avx512dq alternative.
8097 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
8098 use v instead of x constraint in other alternatives where possible.
8100 * config/i386/sse.md (sse2_loadld): Use v instead of x
8101 constraint in alternatives 0,1,4.
8103 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
8104 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
8105 v constraints instead of x and <pinsr_evex_isa> isa attribute.
8108 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
8109 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
8110 is not emitted unless TARGET_AVX512BW.
8111 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
8112 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
8113 for the result operand.
8115 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
8116 constraint instead of x in avx alternatives. Use maybe_evex instead
8119 * config/i386/constraints.md (Yv): New constraint.
8120 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
8121 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
8122 * config/i386/i386.md (avx512fvecmode): New mode attr.
8123 (*pushtf): Use v constraint instead of x.
8124 (*movtf_internal): Likewise. For TARGET_AVX512VL and
8125 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
8126 (*absneg<mode>2): Use Yv constraint instead of x constraint.
8127 (*absnegtf2_sse): Likewise.
8128 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
8129 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
8130 avx512f alternatives.
8131 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
8133 2016-05-12 Richard Biener <rguenther@suse.de>
8135 PR tree-optimization/71060
8136 * tree-data-ref.c (initialize_data_dependence_relation): Do not
8137 require exact match of DR_BASE_OBJECT but only matching address and
8140 2016-05-12 Richard Biener <rguenther@suse.de>
8142 PR tree-optimization/70986
8143 * cfganal.c: Include cfgloop.h.
8144 (dfs_find_deadend): Prefer to take edges exiting loops.
8146 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8148 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
8149 compile and run time.
8151 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
8154 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
8156 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
8158 * config/i386/i386.c (legitimize_pic_address): Use
8159 copy_to_suggested_reg instead of gen_movsi.
8161 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8163 * config/rs6000/predicates.md (quad_memory_operand): Move most of
8164 the code into quad_address_p and call it to share code with
8165 vsx_quad_dform_memory_operand.
8166 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
8168 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
8169 bit instead of being a separate word. Split -mpower9-dform into
8170 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8171 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
8172 for the register class supporting 128-bit quad word memory offsets.
8173 (mode_supports_vsx_dform_quad): Helper function to return if the
8174 register class uses quad word memory offsets.
8175 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
8176 (rs6000_debug_reg_global): Always print if we are using LRA or not.
8177 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
8178 instructions are enabled, set up the appropriate addr_masks for
8180 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
8181 -mpower9-dform-scalar, instead of -mpower9-dform.
8182 (rs6000_option_override_internal): Split -mpower9-dform into two
8183 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
8184 -mpower9-dform switch sets or clears both. If we are not using
8185 the LRA register allocator, do not enable -mpower9-dform-vector by
8186 default. If we are using LRA, enable -mpower9-dform-vector and
8187 -mvsx-timode if it is appropriate. Issue a warning if either
8188 -mpower9-dform-vector or -mvsx-timode are explicitly used without
8190 (quad_address_offset_p): New helper function to return if the
8191 offset is legal for quad word memory instructions.
8192 (quad_address_p): New function to determin if GPR or vector
8193 register quad word memory addresses are legal.
8194 (mem_operand_gpr): Validate quad word address offsets.
8195 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
8196 d-form (register + offset) instructions.
8197 (offsettable_ok_by_alignment): Likewise.
8198 (rs6000_legitimate_offset_address_p): Likewise.
8199 (legitimate_lo_sum_address_p): Likewise.
8200 (rs6000_legitimize_address): Likewise.
8201 (rs6000_legitimize_reload_address): Add more debug statements for
8203 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
8204 d-form instructions.
8205 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
8206 d-form instructions. Distinguish different cases in debug
8207 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
8208 d-form instructions.
8209 (rs6000_preferred_reload_class): Likewise.
8210 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
8211 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
8212 of the ISA 2.06 indexed memory instructions.
8213 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
8214 use them to save/restore the saved vector registers instead of
8215 using Altivec instructions.
8216 (rs6000_emit_epilogue): Likewise.
8217 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
8218 (rs6000_opt_masks): Split -mpower9-dform into
8219 -mpower9-dform-scalar and -mpower9-dform-vector.
8220 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
8222 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
8223 ISA 3.0 vector indexed memory instructions, and fold the code into
8224 the normal mov<mode> patterns.
8225 (p9_vecstore_<mode>): Likewise.
8226 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
8228 (vsx_movti_64bit): Likewise.
8229 (vsx_movti_32bit): Likewise.
8230 * config/rs6000/constraints.md (wO constraint): New constraint for
8231 ISA 3.0 vector d-form support.
8232 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
8233 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
8234 include -mpower9-dform-vector until we switch over to LRA.
8235 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
8236 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8237 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
8238 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8239 for -mpower9-dform and -mlra.
8240 * doc/md.texi (wO constraint): Document wO constraint.
8242 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
8244 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
8245 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
8246 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
8247 Move handling of non-insn arguments inline into the sole user:
8248 (output_trans_func): ...here.
8249 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
8250 in emitted function prototype.
8251 (output_internal_insn_latency_func): Ditto. Simplify.
8252 (output_internal_maximal_insn_latency_func): Ditto. Delete
8253 always-unused argument.
8254 (output_insn_latency_func): Ditto.
8255 (output_maximal_insn_latency_func): Ditto.
8257 2016-05-11 Richard Biener <rguenther@suse.de>
8259 PR tree-optimization/71055
8260 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
8261 sth with precision not equal to access size verify we don't chop
8264 2016-05-11 Richard Biener <rguenther@suse.de>
8267 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
8268 (dwarf2out_finish): Move retry_incomplete_types call ...
8269 (dwarf2out_early_finish): ... here.
8271 2016-05-11 Richard Biener <rguenther@suse.de>
8274 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
8275 if the langhook insists on it.
8276 * fold-const.c (make_bit_field_ref): Add arg for the original
8277 reference and preserve its alias-set.
8278 (decode_field_reference): Take exp by reference and adjust it
8279 to the original memory reference.
8280 (optimize_bit_field_compare): Adjust callers.
8281 (fold_truth_andor_1): Likewise.
8282 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
8284 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
8287 * cfgrtl.h (delete_insn_and_edges): Now return bool.
8288 * cfgrtl.c (delete_insn_and_edges): Likewise.
8289 * config/i386/i386.c (convert_scalars_to_vector): Remove
8291 * cse.c (cse_insn): Compute cse_cfg_altered.
8292 (delete_trivially_dead_insns): Likewise.
8293 (cse_cc_succs): Likewise.
8294 (rest_of_handle_cse): Free dominance info if required.
8295 (rest_of_handle_cse2): Likewise.
8296 (rest_of_handle_cse_after_global_opts): Likewise.
8298 2016-05-11 Alan Modra <amodra@gmail.com>
8300 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8301 abi_v4_pass_in_fpr): New functions.
8302 (rs6000_function_arg_boundary): Exclude complex IBM long double
8303 from 64-bit alignment when ABI_V4.
8304 (rs6000_function_arg, rs6000_function_arg_advance_1,
8305 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8307 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
8309 PR rtl-optimization/71028
8310 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8311 jump with just a return in the fallthrough block if the branch
8312 block contains just a return as well.
8314 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
8316 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8317 * match.pd ((X & Y) ^ Y): ... this.
8318 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8319 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8321 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8323 * read-md.c (require_char_ws): New function.
8324 (read_string): Simplify using require_char_ws.
8325 (handle_constants): Likewise.
8326 (handle_enum): Likewise.
8327 (handle_file): Likewise.
8328 * read-md.h (require_char_ws): New declaration.
8329 * read-rtl.c (read_conditions): Simplify using require_char_ws.
8330 (read_mapping): Likewise.
8331 (read_rtx_code): Likewise.
8332 (read_nested_rtx): Likewise.
8334 2016-05-10 James Norris <jnorris@codesourcery.com>
8336 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8337 if offloading is enabled and -fopenacc or -fopenmp is specified.
8338 (CRTOFFLOADEND): Likewise.
8339 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8340 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8342 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
8344 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8345 gotoff_operand code paths. Use copy_to_suggested_regs and
8346 expand_simple_binop where appropriate. Cleanup.
8348 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8351 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8353 (dimode_scalar_chain::vector_const_cost): New.
8354 (dimode_scalar_chain::compute_convert_gain): Handle constants.
8355 (dimode_scalar_chain::convert_op): Likewise.
8356 (dimode_scalar_chain::convert_insn): Likewise.
8358 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8360 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8361 unary operation, not a binary one.
8363 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8366 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8367 calls with type casted fndecl.
8369 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8371 PR tree-optimization/70786
8372 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8373 * calls.c (initialize_argument_information): Bind bounds
8374 with corresponding args passed by reference.
8376 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8379 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8380 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8381 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8384 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8387 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8388 code for a zero scale factor.
8389 (vsx_xvcvdpuxds_scale): Likewise.
8391 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8393 * diagnostic-show-locus.c (layout::layout): Call show_ruler
8394 if show_ruler_p was set on the context.
8395 (layout::show_ruler): New method.
8396 * diagnostic.h (struct diagnostic_context): Add field
8399 2016-05-10 Richard Biener <rguenther@suse.de>
8401 PR tree-optimization/71039
8402 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8403 (chk_uses): New function.
8404 (propagate_with_phi): Verify we can safely replicate the lhs of an
8405 aggregate assignment on all incoming edges.
8407 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8409 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8411 (rx_atomic_sequence): New class.
8412 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8413 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8415 (rx_atomic_sequence::rx_atomic_sequence,
8416 rx_atomic_sequence::~rx_atomic_sequence): New functions.
8417 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8418 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8419 CTRLREG_INTB): New constants.
8420 (FETCHOP): New code iterator.
8421 (fethcop_name, fetchop_name2): New iterator code attributes.
8422 (QIHI): New mode iterator.
8423 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8424 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8425 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8427 2016-05-10 Martin Liska <mliska@suse.cz>
8429 * tree-inline.c (remap_dependence_clique): Do not remap
8430 debugging statements.
8432 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8434 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8435 ("*fixuns_truncdfdi2_z13")
8436 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8437 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8438 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8440 2016-05-10 Richard Biener <rguenther@suse.de>
8442 PR tree-optimization/70497
8443 PR tree-optimization/28367
8444 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8446 (visit_reference_op_load): ... here.
8447 (vn_reference_lookup_3): Use it to handle subreg-like accesses
8448 with simplified BIT_FIELD_REFs.
8449 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8450 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8453 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8455 * dwarf2out.c (add_abstract_origin_attribute): Adjust
8456 documentation comment. For BLOCK nodes, add a
8457 DW_AT_abstract_origin attribute that points to the DIE generated
8458 for the origin BLOCK.
8459 (gen_lexical_block_die): Call add_abstract_origin_attribute for
8460 blocks from inlined functions.
8462 2016-05-10 Alan Modra <amodra@gmail.com>
8465 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8466 regrename modifying insns saving lr before __morestack call.
8467 * config/rs6000/rs6000.md (split_stack_return): Similarly for
8468 insns restoring lr after __morestack call.
8470 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8472 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8473 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8475 * config/i386/sse.md (vec_interleave_high<mode>,
8476 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8477 <avx512>_vpermt2var<mode>3_maskz): Likewise.
8479 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8481 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8482 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8483 parallel reassociation for power8 and forward.
8485 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8487 * config/i386/i386.md (absneg splitters with general regs): Use
8488 general_reg_operand predicate.
8489 (btsq peephole2): Use x86_64_immediate_operand to check if new
8490 value is suitable for immediate operand. Generate emitted insn
8491 using RTL expressions.
8492 (btcq peephole2): Ditto.
8493 (btrq peephole2): Ditto. Generate correct immediate operand
8496 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8498 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8501 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8503 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8504 pointer dereference.
8506 2016-05-09 Richard Biener <rguenther@suse.de>
8508 PR tree-optimization/70985
8509 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8510 op0 isn't a gimple register.
8512 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8514 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8515 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8516 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8517 (i6400_fpu_mult): New cpu units.
8518 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8519 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8520 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8521 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8522 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8523 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8524 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8525 (i6400_msa_long_float4, i6400_msa_long_float5)
8526 (i6400_msa_long_float8, i6400_msa_fdiv_df)
8527 (i6400_msa_fdiv_sf): New reservations.
8528 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8529 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8530 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8531 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8532 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8533 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8534 (msa_short_cmp, msa_short_float2, msa_short_logic3)
8535 (msa_short_store4, msa_long_load, msa_short_store)
8536 (msa_long_logic, msa_long_float2, msa_long_float4)
8537 (msa_long_float5, msa_long_float8, msa_long_mult)
8538 (msa_long_fdiv, msa_long_div): New reservations.
8540 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
8541 Sameera Deshpande <sameera.deshpande@imgtec.com>
8542 Matthew Fortune <matthew.fortune@imgtec.com>
8543 Graham Stott <graham.stott@imgtec.com>
8544 Chao-ying Fu <chao-ying.fu@imgtec.com>
8546 * config.gcc: Add MSA header file for mips*-*-* target.
8547 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8548 (Ubv8i, Urv8): New constraints.
8549 * config/mips/mips-ftypes.def: Add function types for MSA
8551 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8552 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8553 * config/mips/mips-msa.md: New file.
8554 * config/mips/mips-protos.h
8555 (mips_split_128bit_const_insns): New prototype.
8556 (mips_msa_idiv_insns): Likewise.
8557 (mips_split_128bit_move): Likewise.
8558 (mips_split_128bit_move_p): Likewise.
8559 (mips_split_msa_copy_d): Likewise.
8560 (mips_split_msa_insert_d): Likewise.
8561 (mips_split_msa_fill_d): Likewise.
8562 (mips_expand_msa_branch): Likewise.
8563 (mips_const_vector_same_val_p): Likewise.
8564 (mips_const_vector_same_bytes_p): Likewise.
8565 (mips_const_vector_same_int_p): Likewise.
8566 (mips_const_vector_shuffle_set_p): Likewise.
8567 (mips_const_vector_bitimm_set_p): Likewise.
8568 (mips_const_vector_bitimm_clr_p): Likewise.
8569 (mips_msa_vec_parallel_const_half): Likewise.
8570 (mips_msa_output_division): Likewise.
8571 (mips_ldst_scaled_shift): Likewise.
8572 (mips_expand_vec_cond_expr): Likewise.
8573 * config/mips/mips.c (enum mips_builtin_type): Add
8574 MIPS_BUILTIN_MSA_TEST_BRANCH.
8575 (mips_gen_const_int_vector_shuffle): New prototype.
8576 (mips_const_vector_bitimm_set_p): New function.
8577 (mips_const_vector_bitimm_clr_p): Likewise.
8578 (mips_const_vector_same_val_p): Likewise.
8579 (mips_const_vector_same_bytes_p): Likewise.
8580 (mips_const_vector_same_int_p): Likewise.
8581 (mips_const_vector_shuffle_set_p): Likewise.
8582 (mips_symbol_insns): Forbid loading symbols via immediate for
8584 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8586 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8588 (mips_lx_address_p): Add support load indexed address for MSA.
8589 (mips_address_insns): Add calculation of instructions needed for
8590 stores and loads for MSA.
8591 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
8592 CONST_VECTOR for MSA and let it fall through.
8593 (mips_ldst_scaled_shift): New function.
8594 (mips_subword_at_byte): Likewise.
8595 (mips_msa_idiv_insns): Likewise.
8596 (mips_legitimize_move): Validate MSA moves.
8597 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
8598 calculation of costs for MSA division.
8599 (mips_split_move_p): Check if MSA moves need splitting.
8600 (mips_split_move): Split MSA moves if necessary.
8601 (mips_split_128bit_move_p): New function.
8602 (mips_split_128bit_move): Likewise.
8603 (mips_split_msa_copy_d): Likewise.
8604 (mips_split_msa_insert_d): Likewise.
8605 (mips_split_msa_fill_d): Likewise.
8606 (mips_output_move): Handle MSA moves.
8607 (mips_expand_msa_branch): New function.
8608 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8609 Reinstate 'y' modifier.
8610 (mips_file_start): Add MSA .gnu_attribute.
8611 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8613 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8614 (mips_class_max_nregs): Add register size for MSA supported mode.
8615 (mips_cannot_change_mode_class): Allow conversion between MSA
8616 vector modes and TImode.
8617 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8619 (mips_secondary_reload_class): Force MSA loads/stores via memory.
8620 (mips_preferred_simd_mode): Add preffered modes for MSA.
8621 (mips_vector_mode_supported_p): Add MSA supported modes.
8622 (mips_autovectorize_vector_sizes): New function.
8623 (mips_msa_output_division): Likewise.
8624 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8625 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8626 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8627 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8628 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8629 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8630 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8631 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8632 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8633 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8634 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8635 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8636 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8637 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8638 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8639 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8640 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8641 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8642 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8643 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8644 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8645 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8646 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8647 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8648 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8649 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8650 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8651 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8652 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8653 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8654 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8655 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8656 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8657 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8658 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8659 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8660 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8661 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8662 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8663 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8664 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8665 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8666 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8667 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8668 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8669 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8670 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8671 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8672 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8673 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8674 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8675 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8676 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8677 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8678 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8679 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8680 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8681 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8682 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8683 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8684 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8685 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8686 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8687 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8688 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8689 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8690 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8691 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8692 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8693 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8694 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8695 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8696 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8697 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8698 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8699 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8700 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8701 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8702 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8703 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8704 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8705 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8706 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8707 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8708 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8709 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8710 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8711 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8712 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8713 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8714 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8715 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8716 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8717 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8718 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8719 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8720 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8721 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8722 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8723 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8724 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8725 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8726 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8727 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8728 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8729 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8730 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8731 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8732 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8733 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8734 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8735 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8736 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8737 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8738 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8739 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8740 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8741 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8742 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8743 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8744 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8745 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8746 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8747 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8748 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8749 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8750 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8751 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8752 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8753 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8754 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8755 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8756 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8757 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8758 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8759 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8760 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8761 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8762 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8763 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8764 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8765 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8766 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8767 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8768 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8769 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8770 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8771 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8772 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8773 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8774 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8776 (mips_get_builtin_decl_index): New array.
8777 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8778 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8779 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8780 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8781 (mips_init_builtins): Initialize mips_get_builtin_decl_index
8783 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8785 (mips_expand_builtin_insn): Prepare operands for
8786 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8787 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8788 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8789 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8790 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8791 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8792 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8793 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8794 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8795 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8796 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8797 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8798 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8799 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8800 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8801 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8802 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8803 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8804 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8805 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8806 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8807 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8808 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8809 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8810 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8811 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8812 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8813 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8814 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8815 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8816 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8817 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8818 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8819 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8820 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8821 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8822 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8823 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8824 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8825 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8826 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8827 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8828 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8829 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8830 These are set implicitly and an error is reported if overridden.
8831 (mips_expand_builtin_msa_test_branch): New function.
8832 (mips_expand_msa_shuffle): Likewise.
8833 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8834 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8835 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8836 (mips_expand_vec_unpack): Add support for MSA.
8837 (mips_expand_vector_init): Likewise.
8838 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8839 instead of const0_rtx.
8840 (mips_msa_vec_parallel_const_half): New function.
8841 (mips_gen_const_int_vector): Likewise.
8842 (mips_gen_const_int_vector_shuffle): Likewise.
8843 (mips_expand_msa_cmp): Likewise.
8844 (mips_expand_vec_cond_expr): Likewise.
8845 * config/mips/mips.h
8846 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8847 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8849 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8850 (ISA_HAS_MSA): New macro.
8851 (UNITS_PER_MSA_REG): Likewise.
8852 (BITS_PER_MSA_REG): Likewise.
8853 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8854 (MSA_REG_FIRST): New macro.
8855 (MSA_REG_LAST): Likewise.
8856 (MSA_REG_NUM): Likewise.
8857 (MSA_REG_P): Likewise.
8858 (MSA_REG_RTX_P): Likewise.
8859 (MSA_SUPPORTED_MODE_P): Likewise.
8860 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8861 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8862 * config/mips/mips.md: Include mips-msa.md.
8863 (alu_type): Add simd_add.
8864 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8865 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8866 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8867 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8868 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8869 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8870 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8871 simd_move, simd_load, simd_store. Choose "multi" for moves
8873 (qword_mode): New attribute.
8874 (insn_count): Add instruction count for quad moves.
8875 Increase the count for MIPS SIMD division.
8876 (UNITMODE): Add UNITMODEs for vector types.
8877 (addsub): New code iterator.
8878 * config/mips/mips.opt (mmsa): New option.
8879 * config/mips/msa.h: New file.
8880 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8882 * config/mips/mti-linux.h: Likewise.
8883 * config/mips/predicates.md
8884 (const_msa_branch_operand): New constraint.
8885 (const_uimm3_operand): Likewise.
8886 (const_uimm4_operand): Likewise.
8887 (const_uimm5_operand): Likewise.
8888 (const_uimm8_operand): Likewise.
8889 (const_imm5_operand): Likewise.
8890 (aq10b_operand): Likewise.
8891 (aq10h_operand): Likewise.
8892 (aq10w_operand): Likewise.
8893 (aq10d_operand): Likewise.
8894 (const_m1_operand): Likewise.
8895 (reg_or_m1_operand): Likewise.
8896 (const_exp_2_operand): Likewise.
8897 (const_exp_4_operand): Likewise.
8898 (const_exp_8_operand): Likewise.
8899 (const_exp_16_operand): Likewise.
8900 (const_vector_same_val_operand): Likewise.
8901 (const_vector_same_simm5_operand): Likewise.
8902 (const_vector_same_uimm5_operand): Likewise.
8903 (const_vector_same_uimm6_operand): Likewise.
8904 (const_vector_same_uimm8_operand): Likewise.
8905 (par_const_vector_shf_set_operand): Likewise.
8906 (reg_or_vector_same_val_operand): Likewise.
8907 (reg_or_vector_same_simm5_operand): Likewise.
8908 (reg_or_vector_same_uimm6_operand): Likewise.
8909 * doc/extend.texi (MIPS SIMD Architecture Functions): New
8911 * doc/invoke.texi (-mmsa): Document new option.
8913 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8915 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8916 * configure: Regenerate.
8917 * config.in: Regenerate.
8918 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8920 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8921 (ENDFILE_VTV_SPEC): Define.
8923 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8925 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8926 registers in all interrupt handlers if necessary.
8927 (rl78_option_override): Add warning.
8928 (MUST_SAVE_MDUC_REGISTERS): New macro.
8929 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8930 * config/rl78/rl78.c (check_mduc_usage): New function.
8931 (mduc_regs): New structure to hold MDUC register data.
8932 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8933 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8934 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8935 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8936 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8937 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8939 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8941 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8942 (tree-ssa-loop-niter.h): Ditto.
8943 (idx_within_array_bound, ref_within_array_bound): New functions.
8944 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8945 Factor out check on writable base object to ...
8946 (base_object_writable): ... here.
8948 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8950 * config/arm/arm.md (probe_stack): Add modes to set source
8953 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8955 * regrename.c (base_reg_class_for_rename): New static function.
8956 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8958 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8960 * cgraph.c (thunk_adjust): Export.
8961 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8962 * cgraphunit.c (thunk_adjust): Export.
8963 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8965 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8967 * tree-inline.c (expand_call_inline): Expand thunks inline.
8969 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8972 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8973 (*sse2_vd_cvtss2sd): Ditto.
8974 * config/i386/i386.md
8975 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8976 Generate *sse2_vd_cvtsd2ss pattern.
8977 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8978 Generate *sse2_vd_cvtss2sd pattern.
8980 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8982 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8983 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
8986 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8988 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8989 * config/sh/sh.c: Define and declare variables on first use throughout
8991 (current_function_interrupt): Change to bool type.
8992 (frame_insn): Rename to emit_frame_insn and update users.
8993 (push_regs): Use bool for 'interrupt_handler' argument.
8994 (save_schedule_s): Remove.
8995 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8996 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8997 targetm.asm_out.unaligned_op.di.
8998 (gen_far_branch): Remove redundant forward declaration.
8999 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
9000 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
9001 (sh_set_return_address, sh_function_ok_for_sibcall,
9002 scavenge_reg): Update comments.
9003 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
9004 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
9005 (sh_attr_renesas_p): Remove unnecessary parentheses.
9006 (branch_dest): Simplify.
9007 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
9008 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
9009 (CUMULATIVE_ARGS): Change macro to typedef.
9010 (current_function_interrupt): Change to bool type.
9011 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
9012 Surround with __cplusplus ifdef.
9013 (sh_compare_op0, sh_compare_op1): Remove.
9014 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
9016 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
9018 * config/arm/arm.md: (arch): Add neon.
9019 (arch_enabled): Return yes for arch neon when TARGET_NEON.
9020 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
9021 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
9022 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
9023 attributes for alt renumbering. Mark alt 3 as non-predicable.
9024 (thumb2_movdf_vfp): Likewise.
9026 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
9028 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
9029 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
9030 (*andqi_1): Add preferred_for_speed attribute to disparage
9031 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
9032 (*<code>qi_1): Ditto.
9033 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
9034 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
9035 (*ashlqi3_1): Ditto.
9036 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
9037 Add preferred_for_size attribute to disparage alternative 0 and
9038 preferred_for_speed attribute to disparage alternative 1 for
9039 TARGET_PARTIAL_REG_STALL targets.
9041 2016-05-07 Tom de Vries <tom@codesourcery.com>
9043 PR tree-optimization/70956
9044 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
9047 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
9049 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
9050 * config/sh/sh.c (sh_cbranch_distance): Implement it.
9051 * config/sh/sh.md (branch_zero): Remove define_attr.
9052 (define_delay): Disable delay slot if branch distance is one insn.
9054 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9056 * config/i386/i386.md (LEAMODE): New mode attribute.
9057 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
9058 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
9059 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
9060 operand 2 predicate.
9061 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
9062 (*lea<mode>_general_3): Ditto.
9063 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
9065 2016-05-06 Jakub Jelinek <jakub@redhat.com>
9067 * genmddump.c (main): Convert argv from char ** to const char **.
9069 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9071 * coretypes.h (OVERRIDE): New macro.
9074 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
9076 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
9077 allow coalescing if the types are compatible.
9079 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9081 * pass_manager.h (pass_manager::register_pass_name): New method.
9082 (pass_manager::get_pass_by_name): New method.
9083 (pass_manager::create_pass_tab): New method.
9084 (pass_manager::m_name_to_pass_map): New field.
9085 * passes.c (name_to_pass_map): Delete global in favor of field
9086 "m_name_to_pass_map" of pass_manager.
9087 (register_pass_name): Rename from a function to...
9088 (pass_manager::register_pass_name): ...this method, updating
9089 for renaming of global "name_to_pass_map" to field
9090 "m_name_to_pass_map".
9091 (create_pass_tab): Rename from a function to...
9092 (pass_manager::create_pass_tab): ...this method, updating
9093 for renaming of global "name_to_pass_map" to field.
9094 (get_pass_by_name): Rename from a function to...
9095 (pass_manager::get_pass_by_name): ...this method.
9096 (enable_disable_pass): Convert use of get_pass_by_name to
9097 a method call, locating the pass_manager singleton.
9099 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9101 * genattr-common.c (main): Convert argv from char ** to const char **.
9102 * genattr.c (main): Likewise.
9103 * genattrtab.c (main): Likewise.
9104 * genautomata.c (initiate_automaton_gen): Likewise.
9106 * gencodes.c (main): Likewise.
9107 * genconditions.c (main): Likewise.
9108 * genconfig.c (main): Likewise.
9109 * genconstants.c (main): Likewise.
9110 * genemit.c (main): Likewise.
9111 * genenums.c (main): Likewise.
9112 * genextract.c (main): Likewise.
9113 * genflags.c (main): Likewise.
9114 * genmddeps.c (main): Likewise.
9115 * genopinit.c (main): Likewise.
9116 * genoutput.c (main): Likewise.
9117 * genpeep.c (main): Likewise.
9118 * genpreds.c (main): Likewise.
9119 * genrecog.c (main): Likewise.
9120 * gensupport.c (init_rtx_reader_args_cb): Likewise.
9121 (init_rtx_reader_args): Likewise.
9122 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9123 (init_rtx_reader_args): Likewise.
9124 * gentarget-def.c (main): Likewise.
9125 * read-md.c (read_md_files): Likewise.
9126 * read-md.h (read_md_files): Likewise.
9128 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9130 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
9131 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
9132 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
9133 Remove unused predicate.
9134 (register_and_not_fp_reg_operand): Ditto.
9136 2016-05-06 Martin Liska <mliska@suse.cz>
9138 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
9139 instead of vec as the vector is local to the function.
9141 2016-05-06 Jakub Jelinek <jakub@redhat.com>
9143 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
9144 avx512bw alternative.
9146 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
9147 before the ashr<mode>3 pattern.
9149 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
9150 v instead of x in vex or maybe_vex alternatives, use
9151 maybe_evex instead of vex in prefix.
9153 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
9154 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
9155 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
9156 in vex or maybe_vex alternatives, use maybe_evex instead of vex
9159 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
9160 v instead of x in vex or maybe_vex alternatives, use
9161 maybe_evex instead of vex in prefix.
9163 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
9164 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
9165 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
9166 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
9167 alternatives, use maybe_evex instead of vex in prefix.
9169 * config/i386/sse.md (vec_interleave_lowv4sf,
9170 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
9171 v instead of x in vex or maybe_vex alternatives, use
9172 maybe_evex instead of vex in prefix.
9174 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
9175 v instead of x in vex or maybe_vex alternatives, use
9176 maybe_evex instead of vex in prefix.
9178 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
9179 v constraint instead of x.
9181 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
9183 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
9184 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
9187 2016-05-06 Richard Biener <rguenther@suse.de>
9189 PR tree-optimization/70948
9190 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9191 Properly clobber all fields of va_list for __builtin_va_start.
9193 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9196 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
9197 loop latch destination.
9199 2016-05-06 Martin Liska <mliska@suse.cz>
9201 * tree-ssa-uninit.c: Apply manual changes
9202 to the GNU coding style.
9203 (prune_uninit_phi_opnds): Rename from
9204 prune_uninit_phi_opnds_in_unrealizable_paths.
9206 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9208 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
9209 mspace): Remove deprecated options.
9210 * doc/invoke.texi (SH options): Remove -mspace.
9212 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9214 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
9216 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9218 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
9219 corresponding combine split pattern.
9221 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9224 * config/sh/predicates.md (long_displacement_mem_operand): New.
9225 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
9226 Add movi20, movi20s alternatives. Adjust length attribute for
9228 (movsi_ie): Allow for any FPU. Adjust length attribute for
9230 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
9231 attribute for alternatives.
9232 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
9233 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
9234 length attribute for alternatives.
9236 2016-05-06 Richard Biener <rguenther@suse.de>
9238 PR tree-optimization/70960
9239 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
9241 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9244 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
9245 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
9247 2016-05-06 Marek Polacek <polacek@redhat.com>
9250 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
9252 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9255 * config/sh/sh.md (*rotcr): Add another variant.
9257 2016-05-06 Richard Biener <rguenther@suse.de>
9260 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
9262 2016-05-06 Richard Biener <rguenther@suse.de>
9265 * fold-const.c (split_tree): Always convert to the original type
9268 2016-05-06 Richard Biener <rguenther@suse.de>
9270 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
9271 (fwprop_addr): Likewise.
9273 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9276 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
9278 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
9279 * config/i386/i386.md (push mem splitter): Use find_constant_src in
9280 the splitter condition.
9281 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
9282 the splitter condition.
9283 (FP float_extend load splitter): Ditto.
9285 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
9287 * config/i386/i386.md (peehole2 patterns): Change true_regnum
9288 to REGNO in all peephole2 patterns.
9289 (post-reload splitters): Change true_regnum to REGNO in
9290 post-reload splitters.
9291 (zero_extend splitters): Use general_reg_operand and
9292 nonimmediate_gr_operand predicates.
9294 2016-05-05 Jakub Jelinek <jakub@redhat.com>
9296 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
9297 v constraint instead of x.
9299 2016-05-05 Alan Modra <amodra@gmail.com>
9302 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9303 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
9304 TARGET_NO_FP_IN_TOC for -mrelocatable.
9305 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9306 TARGET_RELOCATABLE test.
9307 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9308 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9309 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9310 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9311 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9312 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9313 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9314 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9315 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9316 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9318 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9319 (rs6000_stack_info): Likewise.
9320 (rs6000_elf_asm_out_constructor): Likewise.
9321 (rs6000_elf_asm_out_destructor): Likewise.
9322 (rs6000_elf_declare_function_name): Likewise.
9323 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9324 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9327 2016-05-05 Alan Modra <amodra@gmail.com>
9329 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9331 2016-05-05 Alan Modra <amodra@gmail.com>
9333 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9334 out-of-line gpr restore for one or two regs if that would add
9337 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
9340 * config/i386/i386.md
9341 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9342 Change to post-epilogue_completed late splitter. Use sse_reg_operand
9343 as operand 0 predicate.
9344 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9346 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9347 Ditto. Emit the pattern using RTX.
9349 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9350 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
9351 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
9352 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9354 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9355 sse_reg_operand as operand 0 predicate.
9357 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9358 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
9359 instead of gen_rtx_REG.
9360 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9363 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9365 * function.c (emit_use_return_register_into_block): Delete.
9366 (gen_return_pattern): Delete.
9367 (emit_return_into_block): Delete.
9368 (active_insn_between): Delete.
9369 (convert_jumps_to_returns): Delete.
9370 (emit_return_for_exit): Delete.
9371 (thread_prologue_and_epilogue_insns): Delete all code dealing with
9372 simple_return for shrink-wrapped blocks.
9373 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9374 end of blocks that need one.
9375 (get_unconverted_simple_return): Delete.
9376 (convert_to_simple_return): Delete.
9377 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9378 (convert_to_simple_return): Ditto.
9380 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9382 * cfgcleanup.c (bb_is_just_return): New function.
9383 (try_optimize_cfg): Simplify jumps to return, branches to return,
9384 and branches around return.
9386 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9388 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9391 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9395 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9396 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9397 assert flags & OEP_HASH_CHECK, instead of asserting it
9398 never happens. Handle TARGET_EXPR.
9399 * fold-const.c (operand_equal_p): For hash verification,
9400 or in OEP_HASH_CHECK into flags.
9402 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9404 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9406 (compute_samebase_partition_bases): Fix typo.
9408 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9410 * config/i386/sse.md (vec_interleave_highv8sf,
9411 vec_interleave_lowv8sf, vec_interleave_highv4df,
9412 vec_interleave_lowv4df): Remove constraints from expanders.
9414 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9416 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9418 * tree-inline.c (expand_call_inline): Fix path dealing with
9419 making lhs of call statement undefined.
9421 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9423 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9424 Check availability on NODE, too.
9425 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9426 (cgraph_node::call_for_symbol_and_aliases): Likewise.
9427 (varpool_node::call_for_symbol_and_aliase): Likewise.
9428 * ipa-pure-const.c (add_new_function): Analyze all bodies.
9429 (propagate_pure_const): Propagate across interposable functions, too.
9430 (skip_function_for_local_pure_const): Do not skip interposable bodies
9432 (pass_local_pure_const::execute): Update.
9434 2016-05-04 Marek Polacek <polacek@redhat.com>
9436 * doc/invoke.texi: Document -Wdangling-else.
9438 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9440 * config.gcc: Error out when conflicting multilib is detected. Do not
9441 loop over multilibs since no combination is legal.
9443 2016-05-04 Alan Modra <amodra@gmail.com>
9445 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9446 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9447 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9450 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9452 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9453 Clean up p5600 comments.
9455 2016-05-04 Richard Biener <rguenther@suse.de>
9457 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9458 constructor simplifications.
9459 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9461 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9463 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9464 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9465 result.set_rtx is null instead of aborting.
9466 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9468 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9469 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9470 *mov<mode>_store_postinc): New patterns.
9472 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9474 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
9475 as commutative. Check both conversions are NOP.
9476 ((A & B) OP (C & B)): Remove.
9478 2016-05-04 Alan Modra <amodra@gmail.com>
9480 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9482 2016-05-04 Alan Modra <amodra@gmail.com>
9485 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9486 when cr2,3,4 are all fixed regs.
9488 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9490 PR rtl-optimization/57193
9491 * opts.c (default_options_table): Revert OPT_frename_registers change.
9492 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9494 2016-05-03 Martin Sebor <msebor@redhat.com>
9497 * builtins.c (fold_builtin_FILE): New function.
9498 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9499 (fold_builtin_0): Call them.
9500 * gimplify.c (gimplify_call_expr): Remove the handling of
9501 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9504 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9505 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9509 * doc/extend.texi (Function Names as Strings): Update __func__,
9510 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9513 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9514 Richard Biener <rguenther@suse.de>
9516 PR tree-optimization/70916
9517 * tree-if-conv.c: Include cfganal.h.
9518 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9519 and remove_fake_exit_edges around the optimization pass.
9521 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9523 * cgraph.c (symbol_table::create_edge): Set inline_failed.
9524 (cgraph_edge::make_direct): Likewise.
9525 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9526 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9527 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9528 (CIF_THUNK): New code.
9529 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9530 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9531 (compute_inline_parameters): Set inline_failed for thunks.
9532 (inline_analyze_function): Cleanup.
9533 * ipa-inline.c (can_inline_edge_p): Do not deal with
9534 call_stmt_cannot_inline_p.
9535 (can_early_inline_edge_p): Likewise.
9536 (early_inliner): Initialize inline_failed.
9537 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9539 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9541 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9542 from nonimm_ssenomem_operand.
9543 (nonimm_ssenomem_operand): New predicate.
9544 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9545 as operand 0 predicate.
9546 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9547 Disable unsupported alternatives using "enabled" attribute.
9548 Use register_ssemem_operand as operand 0 predicate.
9549 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9551 2016-05-03 Marek Polacek <polacek@redhat.com>
9554 * input.c (expansion_point_location): New function.
9555 * input.h (expansion_point_location): Declare.
9557 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9559 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9560 occurence with frame_offset_ ones.
9562 2016-05-03 Alan Modra <amodra@gmail.com>
9564 PR rtl-optimization/70890
9565 * ira.c (combine_and_move_insns): When moving def_insn, remove
9568 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9570 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9571 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9572 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9573 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9575 2016-05-03 Alan Modra <amodra@gmail.com>
9577 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9578 for SAVE_MULTIPLE/STORE_MULTIPLE.
9580 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9582 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9583 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9585 2016-05-03 Richard Biener <rguenther@suse.de>
9587 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9589 (gimplify_arg): Likewise.
9590 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9591 re-writing the result to a decl if required.
9592 (internal_get_tmp_var): Add allow_ssa parameter
9593 and override into_ssa with it.
9594 (get_formal_tmp_var): Adjust.
9595 (get_initialized_tmp_var): Add allow_ssa parameter.
9596 (gimplify_arg): Add allow_ssa parameter and avoid generating
9597 SSA names for the result false.
9598 (gimplify_call_expr): If the call may return twice do not
9599 gimplify parameters into SSA.
9600 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9601 (gimplify_modify_expr): Adjust assert. For noreturn calls
9602 with a SSA name LHS adjust its def.
9603 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9604 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9605 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9606 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9607 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
9608 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
9609 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9610 (optimize_target_teams): Do not allow SSA names for clause operands.
9611 (gimplify_expr): Likewise for where we mark the result addressable.
9612 * passes.def (pass_init_datastructures): Remove.
9613 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9614 (rewrite_stmt): Likewise.
9615 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9616 (replace_locals_op): Replace SSA names.
9617 (copy_gimple_seq_and_replace_locals): Init src_cfun.
9618 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9619 * cgraph.c (release_function_body): Free CFG annotations only
9620 when we have a CFG. Simplify.
9621 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9622 force_gimple_operand instead of get_initialized_tmp_var.
9623 * tree-pass.h (make_pass_init_datastructures): Remove.
9624 * tree-ssa.c (execute_init_datastructures): Remove.
9625 (pass_data_init_datastructures): Likewise.
9626 (class pass_init_datastructures): Likewise.
9627 (make_pass_init_datastructures): Likewise.
9628 * omp-low.c (create_omp_child_function): Init SSA data structures.
9629 (grid_expand_target_grid_body): Likewise.
9630 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9631 name before adding it to names_to_release.
9632 (remove_bb): Always release SSA defs.
9633 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9634 before dereferencing it.
9635 * cgraphunit.c (init_lowered_empty_function): Always
9636 int SSA data structures.
9637 * tree-ssanames.c (release_defs): Remove assert that we are in
9639 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9641 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9642 Uros Bizjak <ubizjak@gmail.com>
9644 PR rtl-optimization/70467
9645 * config/i386/predicates.md (x86_64_hilo_int_operand,
9646 x86_64_hilo_general_operand): New predicates.
9647 * config/i386/constraints.md (Wd): New constraint.
9648 * config/i386/i386.md (mode attr di): Use Wd instead of e.
9649 (general_hilo_operand): New mode attr.
9650 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9651 instead of <general_operand>.
9652 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9653 x86_64_hilo_general_operand instead of <general_operand>.
9655 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9657 PR tree-optimization/70916
9658 * tree-if-conv.c (constant_or_ssa_name): Removed.
9659 (fold_build_cond_expr): Use is_gimple_val instead of
9660 constant_or_ssa_name.
9662 PR tree-optimization/70916
9663 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9664 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9667 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9668 (optimize_atomic_bit_test_and): New function.
9669 (pass_fold_builtins::execute): Use it.
9670 * optabs.def (atomic_bit_test_and_set_optab,
9671 atomic_bit_test_and_complement_optab,
9672 atomic_bit_test_and_reset_optab): New optabs.
9673 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9674 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9675 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9676 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9677 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9678 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9679 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9680 * doc/md.texi (atomic_bit_test_and_set@var{mode},
9681 atomic_bit_test_and_complement@var{mode},
9682 atomic_bit_test_and_reset@var{mode}): Document.
9683 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9684 atomic_bit_test_and_complement<mode>,
9685 atomic_bit_test_and_reset<mode>): New expanders.
9686 (atomic_bit_test_and_set<mode>_1,
9687 atomic_bit_test_and_complement<mode>_1,
9688 atomic_bit_test_and_reset<mode>_1): New insns.
9690 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9692 PR rtl-optimization/70687
9693 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
9694 instead of unsigned HOST_WIDE_INT.
9696 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9698 PR rtl-optimization/44281
9699 * hard-reg-set.h (struct target_hard_regs): New field
9700 x_fixed_nonglobal_reg_set.
9701 (fixed_nonglobal_reg_set): New macro.
9702 * reginfo.c (init_reg_sets_1): Initialize it.
9703 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9705 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9707 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9709 PR tree-optimization/56541
9710 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9711 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9712 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9713 (any_complicated_phi): new static variable.
9714 (aggressive_if_conv): delete.
9715 (if_convertible_phi_p): support phis with more than two arguments.
9716 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9717 critical pred edges.
9718 (ifcvt_split_critical_edges): support phis with more than two
9719 arguments by checking new parameter. only split critical edges
9721 (tree_if_conversion): handle simd pragma marked loop using new
9722 local variable aggressive_if_conv. check any_complicated_phi.
9724 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9726 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9729 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9731 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9734 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
9736 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9737 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9738 define_insn_and_split.
9739 (mulsi3_i): New define_insn_and_split.
9740 (mulsi3_call): Convert to define_insn.
9741 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9744 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9746 * machmode.h (mode_complex): Add support to give the complex mode
9748 (GET_MODE_COMPLEX_MODE): Likewise.
9749 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9750 stored by build_complex_type and gfc_build_complex_type instead of
9751 trying to figure out the appropriate mode based on the size. Raise
9752 an assertion error, if the type was not set.
9753 * genmodes.c (struct mode_data): Add field for the complex type of
9755 (blank_mode): Likewise.
9756 (make_complex_modes): Remember the complex mode created in the
9758 (emit_mode_complex): Write out the mode_complex array to map a
9759 type mode to the complex version.
9760 (emit_insn_modes_c): Likewise.
9761 * tree.c (build_complex_type): Set the complex type to use before
9762 calling layout_type.
9763 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9764 support for __float128 complex datatypes.
9765 (rs6000_hard_regno_mode_ok): Likewise.
9766 (rs6000_setup_reg_addr_masks): Likewise.
9767 (rs6000_complex_function_value): Likewise.
9768 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9769 __float128 and __ibm128 complex.
9770 (FLOAT128_IBM_P): Likewise.
9771 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9772 * doc/extend.texi (Additional Floating Types): Document that
9773 -mfloat128 must be used to enable __float128. Document complex
9774 __float128 and __ibm128 support.
9776 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9779 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9780 char/short arguments promoted to int because of promote_prototypes.
9782 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9784 * config/i386/predicates.md (register_ssemem_operand): New predicate.
9785 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9786 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9787 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
9788 alternatives using "enabled" attribute. Use register_ssemem_operand
9789 as operand 1 predicate.
9790 (*cmpi<unord>xf_i387): Split XFmode pattern from
9791 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9792 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9793 *absneg<mode>2_i387. Disable unsupported alternatives using
9794 "enabled" attribute.
9795 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9797 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9799 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9801 (oacc_loop_process): Check mask for loop termination.
9803 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9805 * cif-code.def (CIF_THUNK): Add.
9806 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9809 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9811 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9812 (dump_inline_summary): Dump it.
9813 (fp_expression_p): New predicate.
9814 (estimate_function_body_sizes): Use it.
9815 (inline_merge_summary): Merge fp_expressions.
9816 (inline_read_section): Read fp_expressions.
9817 (inline_write_summary): Write fp_expressions.
9818 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9819 codegen boundary if either caller or callee is !fp_expressions.
9820 * ipa-inline.h (inline_summary): Add fp_expressions.
9821 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9822 to fp_expressions be sure the fp generation flags are updated.
9824 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9826 PR rtl-optimization/70467
9827 * cse.c (cse_insn): Handle no-op MEM moves after folding.
9829 PR rtl-optimization/70467
9830 * ipa-pure-const.c (check_call): Handle internal calls even in
9831 ipa mode like in local mode.
9833 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9835 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9837 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9839 * match.pd (X u< X, X u> X): New transformations.
9841 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9843 * flag-types.h (enum warn_strict_overflow_code): Move ...
9844 * coretypes.h: ... here.
9845 * fold-const.h (fold_overflow_warning): Declare.
9846 * fold-const.c (fold_overflow_warning): Make non-static.
9847 (fold_comparison): Move the transformation of X +- C1 CMP C2
9848 into X CMP C2 -+ C1 ...
9849 * match.pd: ... here.
9850 * gimple-fold.c (fold_stmt_1): Protect with
9851 fold_defer_overflow_warnings.
9853 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9855 * omp-low.c (struct oacc_loop): Add 'inner' field.
9856 (new_oacc_loop_raw): Initialize it to zero.
9857 (oacc_loop_fixed_partitions): Initialize it.
9858 (oacc_loop_auto_partitions): Partition outermost loop to outermost
9859 available partitioning.
9861 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9863 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9865 (umulsidi3): Likewise.
9866 (indirect_jump): Fix jump instruction assembly patterns.
9868 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9871 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9872 (nvptx_function_value): Assert non-NULL cfun.
9874 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9876 PR rtl-optimization/70886
9877 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9879 * cselib.h (rtx_equal_for_cselib_1): Declare.
9880 (rtx_equal_for_cselib_p: New inline function.
9881 * cselib.c (rtx_equal_for_cselib_p): Delete.
9882 (rtx_equal_for_cselib_1): Make public.
9884 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9886 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9887 (register_mixssei387nonimm_operand): Remove predicate.
9888 * config/i386/i386.md (*fop_<mode>_comm): Merge from
9889 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
9890 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
9891 for TARGET_MIX_SSE_I387 alternatives.
9892 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9893 Disable unsupported alternatives using "enabled" attribute. Use
9894 nonimm_ssenomem_operand as operand 1 predicate. Also check
9895 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9897 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9899 * tree.c (cst_and_fits_in_hwi): Simplify.
9901 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9903 * tree.h (wi::to_wide): New function.
9904 * expr.c (expand_expr_real_1): Use wi::to_wide.
9905 * fold-const.c (int_const_binop_1): Likewise.
9906 (extract_muldiv_1): Likewise.
9908 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9910 * wide-int.h: Update offset_int and widest_int documentation.
9911 (WI_SIGNED_SHIFT_RESULT): New macro.
9912 (wi::binary_shift): Define signed_shift_result_type for
9913 shifts on offset_int- and widest_int-like types.
9914 (generic_wide_int): Support <<= and >>= if << and >> are supported.
9915 * tree.h (int_bit_position): Use shift operators instead of wi::
9917 * alias.c (adjust_offset_for_component_ref): Likewise.
9918 * expr.c (get_inner_reference): Likewise.
9919 * fold-const.c (fold_comparison): Likewise.
9920 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9921 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9922 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9923 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9924 (stmt_kills_ref_p): Likewise.
9925 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9926 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9927 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9928 (ao_ref_init_from_vn_reference): Likewise.
9930 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9932 * wide-int.h: Update offset_int and widest_int documentation.
9933 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9934 (wi::binary_traits): Allow ordered comparisons between offset_int and
9935 offset_int, between widest_int and widest_int, and between either
9936 of these types and basic C types.
9937 (operator <, <=, >, >=): Define for the same combinations.
9938 * tree.h (tree_int_cst_lt): Use comparison operators instead
9939 of wi:: comparisons.
9940 (tree_int_cst_le): Likewise.
9941 * gimple-fold.c (fold_array_ctor_reference): Likewise.
9942 (fold_nonarray_ctor_reference): Likewise.
9943 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9944 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9945 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9946 * tree-sra.c (completely_scalarize): Likewise.
9947 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9948 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9949 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9950 (check_for_binary_op_overflow): Likewise.
9951 (search_for_addr_array): Likewise.
9952 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9954 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9956 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9957 (arc_save_restore): Likewise.
9958 (arc_dwarf_register_span): Likewise.
9959 (arc_output_pic_addr_const): Initialize suffix variable.
9961 2016-05-02 Martin Liska <mliska@suse.cz>
9963 * symbol-summary.h (function_summary::function_summary):
9964 Remove checking assert for all cgraph nodes.
9965 (function_summary::get): Check summary_uid.
9966 (symtab_insertion): Check summary_uid.
9968 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9970 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9971 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9973 (arc_dwarf_register_span): Remove enum keyword.
9974 (compact_memory_operand_p): New function.
9975 * config/arc/arc.h (reg_class): Add code density register classes.
9976 (REG_CLASS_NAMES): Likewise.
9977 (REG_CLASS_CONTENTS): Likewise.
9978 * config/arc/arc.md (*movqi_insn): Add code density instructions.
9979 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9980 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9981 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9982 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9984 (h, Rcd, Rsd, Rzd): New register constraints.
9985 (T): Use compact_memory_operand_p function.
9986 * config/arc/predicates.md (compact_load_memory_operand): Remove.
9988 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9990 * config/sh/sh.md (*negnegt, *movtt): Remove.
9992 2016-05-02 Marek Polacek <polacek@redhat.com>
9993 Tom de Vries <tom@codesourcery.com>
9995 PR tree-optimization/70700
9996 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9997 bigger than FIRST_REF_NODE.
9999 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
10002 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
10004 (prepare_cbranch_operands): Don't use scratch register. Assume that
10005 function is used when pseudos can be created.
10006 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
10007 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
10008 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
10009 define_expand. Allow it only when pseudos can be created.
10010 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
10012 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
10014 * config/i386/constraints.md (BC): Only allow -1 operands.
10015 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
10016 Add "enabled" attribute. Update XI mode attribute calculation.
10017 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
10018 (*movoi_internal_avx): Update XI mode attribute calculation.
10019 (*movti_internal): Ditto.
10021 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10023 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
10024 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
10026 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
10028 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
10029 statement on instruction code. Remove trailing spaces.
10030 (altivec_expand_stv_builtin): Likewise.
10032 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10034 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10035 (TARGET_FPU_DOUBLE): Simplify.
10036 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
10037 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
10038 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
10039 with 'TARGET_FPU_DOUBLE'.
10040 * config/sh/sh.md: Likewise.
10042 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
10044 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
10045 SH_DIV_STR_FOR_SIZE): Remove.
10046 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
10047 SH_DIV_STR_FOR_SIZE): Remove.
10049 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10051 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
10052 logical_reg_operand): Delete.
10053 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
10054 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
10055 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
10056 match_operand and match_test.
10057 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
10058 variables on their first use. Return bool values.
10059 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
10060 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
10061 arith_reg_operand for input operand. Remove empty constraints.
10063 (*xorsi3_compact): Rename to xorsi3.
10064 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
10065 (*zero_extend<mode>si2_disp_mem): Update comment.
10068 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
10070 * config/sh/t-sh: Remove SH5 support.
10071 * config.gcc: Likewise.
10072 * configure: Likewise.
10074 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10076 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
10078 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
10080 * config/sh/sh.c (register_sh_passes, sh_option_override,
10081 sh_print_operand, prepare_move_operands,
10082 sh_can_follow_jump): Remove TARGET_SH1 checks.
10083 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
10084 PROMOTE_MODE): Likewise.
10085 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
10088 2016-04-30 Alan Modra <amodra@gmail.com>
10090 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
10091 restoring when fixed_reg_p, but allow out-of-line or stmw save.
10092 Check for user regs later to avoid unnecessary looping over regs.
10093 Merge user reg check with non-saved reg check. Don't force
10094 inline VR restore when static chain used.
10095 (rs6000_frame_related): Omit eh_frame info for user regs when
10097 (fixed_regs_p): Delete.
10099 2016-04-30 Alan Modra <amodra@gmail.com>
10101 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
10102 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
10105 2016-04-30 Alan Modra <amodra@gmail.com>
10108 * config/rs6000/rs6000.c (fixed_reg_p): New function.
10109 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
10112 2016-04-30 Alan Modra <amodra@gmail.com>
10114 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10115 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
10116 flag_pic test for Darwin.
10118 2016-04-30 Alan Modra <amodra@gmail.com>
10120 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
10121 throw_calls_crossed.
10122 (REG_FREQ_CALLS_CROSSED): Delete.
10123 (REG_N_THROWING_CALLS_CROSSED): Delete.
10124 * regstat.c (regstat_bb_compute_ri): Don't calculate
10125 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
10126 (dump_reg_info): Don't print call cross frequency.
10127 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
10128 and REG_N_THROWING_CALLS_CROSSED.
10130 2016-04-30 Alan Modra <amodra@gmail.com>
10132 * regs.h (struct reg_info_t): Delete live_length.
10133 (REG_LIVE_LENGTH): Delete macro.
10134 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
10135 local_live, local_processed and local_live_last_luid params.
10136 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
10138 (regstat_compute_ri): Adjust for above. Don't set
10140 (dump_reg_info): Don't print live length.
10141 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
10142 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
10143 Localize loop_depth var.
10145 2016-04-30 Alan Modra <amodra@gmail.com>
10147 * ira.c (enum valid_equiv): New.
10148 (validate_equiv_mem): Return enum.
10149 (update_equiv_mem): Create replacement in more cases.
10150 (add_store_equivs): Update validate_equiv_mem call.
10152 2016-04-30 Alan Modra <amodra@gmail.com>
10154 * ira.c (combine_and_move_insns): Rather than scanning insns,
10155 use DF infrastucture to find use and def insns.
10157 2016-04-30 Alan Modra <amodra@gmail.com>
10159 ira.c (combine_and_move_insns): Move invariant conditions..
10160 (ira.c): ..to here. Call combine_and_move_insns before
10161 add_store_equivs. Call grow_reg_equivs later. Allocate
10162 req_equiv later using max_reg_num() rather than global max_regno.
10163 (contains_replace_regs): Delete.
10164 (add_store_equivs): Remove contains_replace_regs test.
10166 2016-04-30 Alan Modra <amodra@gmail.com>
10168 * ira.c (struct equiv_mem_data): New.
10169 (equiv_mem, equiv_mem_modified): Delete static vars.
10170 (validate_equiv_mem_from_store): Use "data" param to communicate..
10171 (validate_equiv_mem): ..from here.
10173 2016-04-30 Alan Modra <amodra@gmail.com>
10175 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
10177 (update_reg_equivs): ..here. Move allocation and freeing of
10178 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
10179 end_alias_analysis to..
10182 2016-04-30 Alan Modra <amodra@gmail.com>
10184 * ira.c (pdx_subregs): Delete.
10185 (struct equivalence): Add pdx_subregs field.
10186 (set_paradoxical_subreg): Remove pdx_subregs param. Update
10187 pdx_subregs access.
10188 (update_equiv_regs): Don't create or free pdx_subregs. Update
10189 pdx_subregs access.
10191 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10193 * config/rs6000/altivec.h: Change definitions of vec_xl and
10195 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
10196 (LD_ELEMREV_V2DI): New.
10197 (LD_ELEMREV_V4SF): New.
10198 (LD_ELEMREV_V4SI): New.
10199 (LD_ELEMREV_V8HI): New.
10200 (LD_ELEMREV_V16QI): New.
10201 (ST_ELEMREV_V2DF): New.
10202 (ST_ELEMREV_V2DI): New.
10203 (ST_ELEMREV_V4SF): New.
10204 (ST_ELEMREV_V4SI): New.
10205 (ST_ELEMREV_V8HI): New.
10206 (ST_ELEMREV_V16QI): New.
10209 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10210 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
10211 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
10212 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
10213 (altivec_expand_builtin): Add handling for
10214 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
10215 (rs6000_invalid_builtin): Add error-checking for
10216 RS6000_BTM_P9_VECTOR.
10217 (altivec_init_builtins): Define builtins used to implement vec_xl
10219 (rs6000_builtin_mask_names): Define power9-vector.
10220 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
10221 (RS6000_BTM_P9_VECTOR): Define.
10222 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
10223 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
10224 (vsx_ld_elemrev_v2df): Likewise.
10225 (vsx_ld_elemrev_v4sf): Likewise.
10226 (vsx_ld_elemrev_v4si): Likewise.
10227 (vsx_ld_elemrev_v8hi): Likewise.
10228 (vsx_ld_elemrev_v16qi): Likewise.
10229 (vsx_st_elemrev_v2df): Likewise.
10230 (vsx_st_elemrev_v2di): Likewise.
10231 (vsx_st_elemrev_v4sf): Likewise.
10232 (vsx_st_elemrev_v4si): Likewise.
10233 (vsx_st_elemrev_v8hi): Likewise.
10234 (vsx_st_elemrev_v16qi): Likewise.
10235 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
10238 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
10240 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
10242 (simplify_control_stmt_condition_1): ... here. Recurse into
10243 BIT_AND_EXPRs and BIT_IOR_EXPRs.
10245 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
10248 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
10249 (zero_extendqi<mode>2_dot): Revert earlier conversion from
10250 define_insn_and_split to define_insn.
10251 (zero_extendqi<mode>2_dot2): Same.
10252 (extendqi<mode>2_dot): Same.
10253 (extendqi<mode>2_dot2): Same.
10255 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10257 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
10258 (probe_stack): New expander.
10259 (probe_stack_<mode>): New insn pattern.
10261 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10263 * config/i386/i386.md
10264 (operations with memory inputs setting flags peephole2):
10265 Remove uneeded REG_P checks. Cleanup pattern generation.
10267 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
10269 * tree-vect-loop.c (vect_transform_loop): Fix
10270 nb_iterations_upper_bound computation for vectorized loop.
10272 2016-04-29 Marek Polacek <polacek@redhat.com>
10273 Jakub Jelinek <jakub@redhat.com>
10276 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
10277 TARGET_EXPR_SLOT as a base.
10279 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10281 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
10282 with 'rCm2' constraints to limit possible immediate size.
10283 (*load_zeroextendqisi_update): Likewise.
10284 (*load_signextendqisi_update): Likewise.
10285 (*loadhi_update): Likewise.
10286 (*load_zeroextendhisi_update): Likewise.
10287 (*load_signextendhisi_update): Likewise.
10288 (*loadsi_update): Likewise.
10289 (*loadsf_update): Likewise.
10291 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10293 * config/i386/predicates.md (constm1_operand): Fix comparison.
10295 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10297 * testsuite/gcc.target/arc/ieee_eq.c: New test.
10299 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
10301 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10302 remaining SH5 related settings.
10303 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10304 shmedia_prepare_call_address): Delete.
10305 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10306 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10307 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10308 UNSUPPORTED_SH2A): Remove m5 checks.
10309 (sh_divide_strategy_e): Remove SH5 division strategies.
10310 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10311 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10313 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10315 * config/s390/s390.c (s390_rtx_costs): Update documentation.
10317 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10319 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10320 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10321 Change lder to ldr.
10322 * config/s390/vector.md ("mov<mode>"): Likewise.
10324 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
10326 * config/s390/constraints.md ("U", "W"): Invoke
10327 s390_mem_constraint with "ZR" and "ZT".
10328 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10329 addresses when using LRA. Accept also short displacements for S
10330 and T constraints. Do not check for long displacement target for
10331 S and T constraints.
10332 (s390_mem_constraint): Remove handling of U and W constraints.
10333 * config/s390/s390.md (various patterns): Remove the short
10334 displacement constraints (Q and R) if a long displacement
10335 constraint is present. Add longdisp as required CPU capability.
10336 * config/s390/vector.md: Likewise.
10337 * config/s390/vx-builtins.md: Likewise.
10339 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10342 * reload1.c (reload): Call finish_spills before
10343 restarting reload loop. Skip select_reload_regs
10344 if update_eliminables_and_spill returns true.
10346 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10348 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10349 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10350 (umulhisi3_imm): Update predicates and constraint letters.
10351 (umulhisi3_reg): Declare instruction as commutative.
10352 * config/arc/constraints.md (J12, J16): New constraints.
10353 * config/arc/predicates.md (short_unsigned_const_operand): New
10355 (arc_short_operand): Likewise.
10356 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10358 2016-04-29 Richard Biener <rguenther@suse.de>
10360 PR tree-optimization/13962
10361 PR tree-optimization/65686
10362 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10363 * tree-ssa-alias.c (ptrs_compare_unequal): New function
10364 using PTA to compare pointers.
10365 * match.pd: Add pattern for pointer equality compare simplification
10366 using ptrs_compare_unequal.
10368 2016-04-29 Richard Biener <rguenther@suse.de>
10370 * stor-layout.c (layout_type): Do not build a pointer-to-element
10373 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10375 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10376 Use SWI mode iterator. Use general_reg_operand predicate.
10377 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10378 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
10381 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10383 PR middle-end/70843
10384 * fold-const.c (operand_equal_p): Don't verify hash value equality
10386 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10389 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10392 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10393 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10394 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10395 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10396 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10398 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10400 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10401 to info. Don't initialize separate fields to 0. Clean up
10404 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10406 * config/i386/i386.md (peephole2s for operations with memory inputs):
10407 Use SWI mode iterator.
10408 (peephole2s for operations with memory outputs): Ditto.
10409 Do not check for stack checking probe.
10411 (probe_stack): Remove expander.
10413 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10414 Andrew Burgess <andrew.burgess@embecosm.com>
10416 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10417 operands as 32-bits.
10419 2016-04-28 Jason Merrill <jason@redhat.com>
10421 * gdbinit.in: Skip line-map.h.
10423 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10424 Andrew Burgess <andrew.burgess@embecosm.com>
10426 * config/arc/arc.c (arc_conditional_register_usage): Take
10427 TARGET_RRQ_CLASS into account.
10428 (arc_print_operand): Support printing 'p' and 's' operands.
10429 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10431 (TARGET_RRQ_CLASS): Define.
10432 (IS_POWEROF2_OR_0_P): Define.
10433 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10435 (*tst_movb): New define_insn.
10436 (*tst): Avoid recognition if it could prevent '*tst_movb'
10437 combination; replace c/CnL with c/Chs alternative.
10438 (*tst_bitfield_tst): New define_insn.
10439 (*tst_bitfield_asr): New define_insn.
10440 (*tst_bitfield): New define_insn.
10441 (andsi3_i): Add Rrq variant.
10442 (extzv): New define_expand.
10443 (insv): New define_expand.
10444 (*insv_i): New define_insn.
10445 (*movb): New define_insn.
10446 (*movb_signed): New define_insn.
10447 (*movb_high): New define_insn.
10448 (*movb_high_signed): New define_insn.
10449 (*movb_high_signed + 1): New define_split pattern.
10450 (*mrgb): New define_insn.
10451 (*mrgb + 1): New define_peephole2 pattern.
10452 (*mrgb + 2): New define_peephole2 pattern.
10453 * config/arc/arc.opt (mbitops): New option for nps400, uses
10454 TARGET_NPS_BITOPS_DEFAULT.
10455 * config/arc/constraints.md (q): Make register class conditional.
10456 (Rrq): New register constraint.
10457 (Chs): New constraint.
10458 (Clo): New constraint.
10459 (Chi): New constraint.
10460 (Cbf): New constraint.
10461 (Cbn): New constraint.
10462 (C18): New constraint.
10463 (Cbi): New constraint.
10465 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10467 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10469 (bitmap_intersection_of_preds): Ditto.
10470 (bitmap_union_of_succs): Ditto.
10471 (bitmap_union_of_preds): Ditto.
10472 * sbitmap.c (do_popcount): Delete.
10473 (BITMAP_DEBUGGING): Delete.
10474 (sbitmap_verify_popcount): Delete.
10475 (sbitmap_alloc): Don't initialize the popcount field.
10476 (sbitmap_alloc_with_popcount): Delete.
10477 (sbitmap_resize): Don't resize the popcount array.
10478 (sbitmap_vector_alloc): Don't initialize the popcount field.
10479 (bitmap_copy): Don't copy the popcount array.
10480 (bitmap_clear): Don't clear the popcount array.
10481 (bitmap_clear): Delete the popcount array handling.
10482 (bitmap_ior_and_compl): Delete the popcount assert.
10483 (bitmap_not): Ditto.
10484 (bitmap_and_compl): Ditto.
10485 (bitmap_and): Delete the popcount array handling.
10486 (bitmap_xor): Ditto.
10487 (bitmap_ior): Ditto.
10488 (bitmap_or_and): Delete the popcount assert.
10489 (bitmap_and_or): Ditto.
10490 (popcount_table): Delete.
10491 (sbitmap_elt_popcount): Delete.
10492 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10493 (bitmap_set_bit): Delete the popcount assert.
10494 (bitmap_clear_bit): Ditto.
10495 (sbitmap_free): Don't free the popcount array.
10496 (sbitmap_alloc_with_popcount): Delete declaration.
10497 (sbitmap_popcount): Ditto.
10499 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10500 Andrew Burgess <andrew.burgess@embecosm.com>
10502 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10503 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10504 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10505 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10506 * config/arc/arc.opt (mcmem): New option.
10507 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10508 supply length for r/m alternative.
10509 (*extendqisi2_ac): Likewise.
10510 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10512 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10513 (movhi_insn): Likewise.
10514 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10515 (*zero_extendqihi2_i): Add r/Ucm alternative.
10516 (*zero_extendqisi2_ac): Likewise.
10517 (*zero_extendhisi2_i): Likewise.
10518 * config/arc/constraints.md (Uex): New memory constraint.
10519 (Ucm): New define_constraint.
10520 * config/arc/predicates.md (long_immediate_loadstore_operand):
10521 Return 0 for MEM with cmem_address address.
10522 (cmem_address_0): New predicates.
10523 (cmem_address_1): Likewise.
10524 (cmem_address_2): Likewise.
10525 (cmem_address): Likewise.
10527 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10529 * config/rs6000/rs6000.c (machine_function): Rename
10530 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10531 (rs6000_stack_info): Adjust.
10533 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10534 Andrew Burgess <andrew.burgess@embecosm.com>
10536 * config/arc/constraints.md (Usd): Convert to define_constraint.
10540 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10543 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10544 Add new peephole2 where the first insn is *mov<mode>_or instead of
10545 *mov<mode>_internal.
10547 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10549 * tracer.c (bb_seen): Make static.
10551 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10553 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10554 support, setup defaults.
10555 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10556 * config/arc/arc.c (arc_init): Add NPS400 support.
10557 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10558 (TARGET_ARC700): NPS400 is also an ARC700.
10559 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10561 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10564 * config/nds32/nds32.md (casesi): Don't access the operands array
10567 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10569 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10570 (or $-1,reg peephole2): Ditto.
10571 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10573 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10575 * doc/extend.texi (Common Function Attributes) [optimize]:
10576 Discourage use of the optimize attribute.
10578 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10580 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10581 special case builtin.
10582 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10583 ALTIVEC_BUILTIN_VEC_ADDE.
10584 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10585 support for ALTIVEC_BUILTIN_VEC_ADDE.
10586 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10587 for __builtin_vec_adde.
10589 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10591 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10592 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10594 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10597 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10598 attributes): Document cilkplus_runtime.
10600 2016-04-28 Martin Jambor <mjambor@suse.cz>
10602 * tree-cfg.c (verify_expr): Verify that local declarations belong to
10603 this function. Call verify_expr on MEM_REFs and bases of other
10604 handled_components.
10606 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10608 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10609 for WORD_REGISTER_OPERATIONS to runtime check.
10611 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10613 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10615 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10617 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10618 big-endian compilation.
10619 * config/arc/arc.md (addf3): Likewise.
10620 (subdf3): Likewise.
10621 (muldf3): Likewise.
10623 2016-04-28 Richard Biener <rguenther@suse.de>
10625 PR tree-optimization/70840
10626 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10627 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10628 Mark x * pow(x,c) -> pow(x,c+1) commutative.
10629 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10631 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10633 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10634 and explain why in a comment.
10636 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10638 * config/arc/arc.md (cpu_facility): Add fpx variant.
10639 (subdf3): Prohibit use reverse sub when assist operations option
10641 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10642 instructions only when FPX is enabled.
10643 * testsuite/gcc.target/arc/trsub.c: New test.
10645 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10647 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10648 mult_operator when calculating "type" attribute.
10649 (*fop_<mode>_1_i387): Ditto.
10650 (*fop_xf_1_i387): Ditto.
10651 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10652 Use std::swap to swap operands. Use RTL expressions to generate
10655 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10656 Joern Rennecke <joern.rennecke@embecosm.com>
10658 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10660 (emit_pic_move): Remove.
10661 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10662 * config/arc/arc.c (emit_pic_move): Removed.
10663 (TARGET_HAVE_TLS): Define.
10664 (arc_conditional_register_usage): Test for arc_tp_regno.
10665 (arc_print_operand, arc_print_operand_address): Handle TLS
10667 (arc_needs_pcl_p): New function.
10668 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10669 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10670 (arc_raw_symbolic_reference_mentioned_p): Likewise.
10671 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10672 (arc_legitimize_tls_address): Likewise.
10673 (DTPOFF_ZERO_SYM): Define.
10674 (arc_legitimize_pic_address): Make it static, handle TLS cases.
10675 (arc_output_pic_addr_const): Print TLS unspecs.
10676 (prepare_pic_move): New function, replaces emit_pic_move.
10677 (arc_legitimate_constant_p): Handle TLS unspecs.
10678 (arc_legitimate_address_p): Likewise.
10679 (arc_rewrite_small_data_p): Use assert for TLS constants.
10680 (prepare_move_operands): Use prepare_pic_move.
10681 (arc_legitimize_address): Legitimize tls addresses.
10682 (arc_epilogue_uses): Check for arc_tp_regno.
10683 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10684 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10686 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10688 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10689 %(arc_tls_extra_start_spec).
10690 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10691 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10693 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10694 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10695 (UNSPEC_TLS_OFF): Add.
10697 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10698 (get_thread_pointersi): New patterns.
10699 * config/arc/arc.opt (mtp-regno): New option.
10700 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10701 (move_dest_operand): Likewise.
10702 * configure: Regenerate.
10703 * configure.ac: Add arc*-*-* case to test for tls.
10704 * doc/invoke.texi (ARC options): Document mtp-regno.
10706 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10708 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10709 the new ARC HS SIMD instructions.
10710 (arc_preferred_simd_mode): New function.
10711 (arc_autovectorize_vector_sizes): Likewise.
10712 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10713 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10714 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10715 (arc_init_builtins): Add new SIMD builtin types.
10716 (arc_split_move): Handle 64 bit vector moves.
10717 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10718 (TARGET_PLUS_QMACW): Define.
10719 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10720 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10721 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10722 (VSUBADD4H): New builtins.
10723 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10724 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10726 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
10727 Matthias Klose <doko@debian.org>
10729 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10731 2016-04-28 Richard Biener <rguenther@suse.de>
10733 PR middle-end/70777
10734 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10737 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
10739 * common/config/sh/sh-common.c: Remove SH5 support.
10740 * config/sh/constraints.md: Likewise.
10741 * config/sh/config/sh/elf.h: Likewise.
10742 * config/sh/linux.h: Likewise.
10743 * config/sh/netbsd-elf.h: Likewise.
10744 * config/sh/predicates.md: Likewise.
10745 * config/sh/sh-c.c: Likewise.
10746 * config/sh/sh-protos.h: Likewise.
10747 * config/sh/sh.c: Likewise.
10748 * config/sh/sh.h: Likewise.
10749 * config/sh/sh.md: Likewise.
10750 * config/sh/sh.opt: Likewise.
10751 * config/sh/sync.md: Likewise.
10752 * config/sh/sh64.h: Delete.
10753 * config/sh/shmedia.h: Likewise.
10754 * config/sh/shmedia.md: Likewise.
10755 * config/sh/sshmedia.h: Likewise.
10756 * config/sh/t-netbsd-sh5-64: Likewise.
10757 * config/sh/t-sh64: Likewise.
10758 * config/sh/ushmedia.h: Likewise.
10760 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10762 * config/i386/i386.md (sign_extend to memory peephole2s): Use
10763 general_reg_operand instead of register_operand predicate.
10765 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10767 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10769 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
10771 * match.pd (A - B > A, A + B < A): New transformations.
10773 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
10775 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10776 which defaults to true. Emit an outer pair of parentheses only if
10777 EMIT_PARENS. When continuing a chain of && or || (or & or |),
10778 don't emit parentheses for the right-hand operand.
10780 2016-04-27 Jeff Law <law@redhat.com>
10782 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10784 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10786 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10787 (altivec_lvx_<mode>_internal): Document.
10788 (altivec_lvx_<mode>_2op): New define_insn.
10789 (altivec_lvx_<mode>_1op): Likewise.
10790 (altivec_lvx_<mode>_2op_si): Likewise.
10791 (altivec_lvx_<mode>_1op_si): Likewise.
10792 (altivec_stvx_<mode>): Remove.
10793 (altivec_stvx_<mode>_internal): Document.
10794 (altivec_stvx_<mode>_2op): New define_insn.
10795 (altivec_stvx_<mode>_1op): Likewise.
10796 (altivec_stvx_<mode>_2op_si): Likewise.
10797 (altivec_stvx_<mode>_1op_si): Likewise.
10798 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10799 Expand vec_ld and vec_st during parsing.
10800 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10802 (altivec_expand_stvx_be): Likewise.
10803 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10804 address-masking behavior in RTL.
10805 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10806 address-masking behavior in RTL.
10807 (altivec_expand_builtin): Change builtin code arguments for calls
10808 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10809 (insn_is_swappable_p): Avoid incorrect swap optimization in the
10810 presence of lvx/stvx patterns.
10811 (alignment_with_canonical_addr): New function.
10812 (alignment_mask): Likewise.
10813 (find_alignment_op): Likewise.
10814 (recombine_lvx_pattern): Likewise.
10815 (recombine_stvx_pattern): Likewise.
10816 (recombine_lvx_stvx_patterns): Likewise.
10817 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10818 stvx patterns from expand.
10819 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10821 (vector_altivec_store_<mode>): Likewise.
10823 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
10825 * config/aarch64/aarch64.md
10826 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10827 remove the "fp" attributes.
10828 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10829 add the "simd" attributes.
10830 (*movdf_aarch64): Likewise.
10831 (*movtf_aarch64): Remove the "fp" attributes.
10832 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10833 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10835 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10837 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10838 rtx to rtx_code_label *.
10839 * rtl.h (maybe_set_first_label_num): Likewise.
10841 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10843 * df-core.c (df_add_problem): Make the problem param be const.
10844 (df_remove_problem): Make local "problem" be const.
10845 * df-problems.c (problem_RD): Make const.
10846 (problem_LR): Likewise.
10847 (problem_LIVE): Likewise.
10848 (problem_MIR): Likewise.
10849 (problem_CHAIN): Likewise.
10850 (problem_WORD_LR): Likewise.
10851 (problem_NOTE): Likewise.
10852 (problem_MD): Likewise.
10853 * df-scan.c (problem_SCAN): Likewise.
10854 * df.h (struct df_problem): Make field "dependent_problem" be
10856 (struct dataflow): Likewise for field "problem".
10857 (df_add_problem): Make param const.
10859 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10861 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10862 inter-unit moves to/from vector registers are enabled. Do not disable
10865 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10867 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10868 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10870 (enum df_problem_id): ...this new enum.
10871 (struct df_problem): Convert field "id" from "int" to
10872 enum df_problem_id.
10874 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10876 * rtl.def: Update comment for "things in the instruction chain" to
10877 reflect the removal of the leading "i" field for INSN_UID in
10878 r210360. Fix bogus apostrophe.
10880 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10882 * config/i386/i386.md
10883 (lea arith with mem operand + setcc peephole2): Set operator mode.
10885 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10888 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10889 (dimode_scalar_to_vector_candidate_p): This.
10890 (timode_scalar_to_vector_candidate_p): New function.
10891 (scalar_to_vector_candidate_p): Likewise.
10892 (timode_check_non_convertible_regs): Likewise.
10893 (timode_remove_non_convertible_regs): Likewise.
10894 (remove_non_convertible_regs): Likewise.
10895 (remove_non_convertible_regs): Renamed to ...
10896 (dimode_remove_non_convertible_regs): This.
10897 (scalar_chain::~scalar_chain): Make it virtual.
10898 (scalar_chain::compute_convert_gain): Make it pure virtual.
10899 (scalar_chain::mark_dual_mode_def): Likewise.
10900 (scalar_chain::convert_insn): Likewise.
10901 (scalar_chain::convert_registers): Likewise.
10902 (scalar_chain::add_to_queue): Make it protected.
10903 (scalar_chain::emit_conversion_insns): Likewise.
10904 (scalar_chain::replace_with_subreg): Likewise.
10905 (scalar_chain::replace_with_subreg_in_insn): Likewise.
10906 (scalar_chain::convert_op): Likewise.
10907 (scalar_chain::convert_reg): Likewise.
10908 (scalar_chain::make_vector_copies): Likewise.
10909 (scalar_chain::convert_registers): New pure virtual function.
10910 (class dimode_scalar_chain): New class.
10911 (class timode_scalar_chain): Likewise.
10912 (scalar_chain::mark_dual_mode_def): Renamed to ...
10913 (dimode_scalar_chain::mark_dual_mode_def): This.
10914 (timode_scalar_chain::mark_dual_mode_def): New function.
10915 (timode_scalar_chain::convert_insn): Likewise.
10916 (dimode_scalar_chain::convert_registers): Likewise.
10917 (scalar_chain::compute_convert_gain): Renamed to ...
10918 (dimode_scalar_chain::compute_convert_gain): This.
10919 (scalar_chain::replace_with_subreg): Renamed to ...
10920 (dimode_scalar_chain::replace_with_subreg): This.
10921 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10922 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10923 (scalar_chain::make_vector_copies): Renamed to ...
10924 (dimode_scalar_chain::make_vector_copies): This.
10925 (scalar_chain::convert_reg): Renamed to ...
10926 (dimode_scalar_chain::convert_reg ): This.
10927 (scalar_chain::convert_op): Renamed to ...
10928 (dimode_scalar_chain::convert_op): This.
10929 (scalar_chain::convert_insn): Renamed to ...
10930 (dimode_scalar_chain::convert_insn): This.
10931 (scalar_chain::convert): Call convert_registers.
10932 (convert_scalars_to_vector): Change to scalar_chain pointer to
10933 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10934 in 32-bit mode. Delete scalar_chain pointer. Call
10935 free_dominance_info in 64-bit mode.
10936 (pass_stv::gate): Remove TARGET_64BIT check.
10937 (ix86_option_override): Put the 64-bit STV pass before the CSE
10940 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10942 * dwarf2out.h (struct dw_loc_descr_node): Remove the
10943 dw_loc_frame_offset field.
10944 * dwarf2out.c (new_loc_descr): Likewise.
10945 (resolve_args_picking_1): Turn the VISITED hash set into a
10946 FRAME_OFFSET hash map. Use it to associate a frame offset to
10947 visited nodes. Remove uses of the CHECKING_P macro.
10948 (resolve_args_picking): Update call to resolve_args_picking_1.
10950 2016-04-27 Martin Liska <mliska@suse.cz>
10952 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10953 (free_loop_data): Release vuses of groups.
10955 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10957 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10958 instead of redundant use_id and boolean have_use_for.
10959 (struct iv_use): Change sub_id into group_id. Remove field next.
10960 Move fields: related_cands, n_map_members, cost_map and selected
10962 (struct iv_group): ... here. New structure.
10963 (struct iv_common_cand): Use structure declaration directly.
10964 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10965 (MAX_CONSIDERED_USES): Rename macro to ...
10966 (MAX_CONSIDERED_GROUPS): ... here.
10967 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10968 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10969 (dump_uses): Rename to ...
10970 (dump_groups): ... here. Update all uses.
10971 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10972 (find_induction_variables): Refactor format of dump information.
10973 (record_sub_use): Delete.
10974 (record_use): Update all uses.
10975 (record_group): New function.
10976 (record_group_use, find_interesting_uses_op): Call above functions.
10978 (find_interesting_uses_cond): Ditto.
10979 (group_compare_offset): New function.
10980 (split_all_small_groups): Rename to ...
10981 (split_small_address_groups_p): ... here. Update all uses.
10982 (split_address_groups): Update all uses.
10983 (find_interesting_uses): Refactor format of dump information.
10984 (add_candidate_1): Update all uses. Remove redundant check on iv,
10986 (add_candidate, record_common_cand): Remove redundant assert.
10987 (add_iv_candidate_for_biv): Update use.
10988 (add_iv_candidate_derived_from_uses): Update all uses.
10989 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10990 (alloc_use_cost_map): Ditto.
10991 (set_use_iv_cost, get_use_iv_cost): Rename to ...
10992 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
10993 (determine_use_iv_cost_generic): Ditto.
10994 (determine_group_iv_cost_generic): Ditto.
10995 (determine_use_iv_cost_address): Ditto.
10996 (determine_group_iv_cost_address): Ditto.
10997 (determine_use_iv_cost_condition): Ditto.
10998 (determine_group_iv_cost_cond): Ditto.
10999 (determine_use_iv_cost): Ditto.
11000 (determine_group_iv_cost): Ditto.
11001 (set_autoinc_for_original_candidates): Update all uses.
11002 (find_iv_candidates): Update all uses. Refactor dump information.
11003 (determine_use_iv_costs): Ditto.
11004 (determine_iv_costs): Ditto.
11005 (iv_ca_cand_for_use): Rename to ...
11006 (iv_ca_cand_for_group): ... here. Update all uses.
11007 (iv_ca_add_use, iv_ca_add_group): Ditto.
11008 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
11009 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
11010 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
11011 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
11012 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
11013 (create_new_iv, adjust_iv_update_pos): Ditto.
11014 (rewrite_use_address): Delete.
11015 (rewrite_use_address_1): Rename to ...
11016 (rewrite_use_address): ... here.
11017 (rewrite_use_compare): Update all uses.
11018 (rewrite_use): Delete.
11019 (rewrite_uses): Rename to ...
11020 (rewrite_groups): ... here. Update all uses.
11021 (remove_unused_ivs, free_loop_data): Update all uses.
11022 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
11024 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11026 * rtlanal.c (nonzero_bits1): Convert preprocessor check
11027 for WORD_REGISTER_OPERATIONS to runtime check.
11029 2016-04-27 Richard Biener <rguenther@suse.de>
11032 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
11033 aggregate_value_p to determine if a function result is
11034 returned by reference.
11035 (ipa_pta_execute): Functions having their address taken are
11036 not automatically nonlocal.
11038 2016-04-27 Jakub Jelinek <jakub@redhat.com>
11041 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
11042 * fold-const.c (operand_equal_p): If flag_checking and
11043 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
11044 and if it returns non-zero, assert iterative_hash_expr on both
11047 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
11049 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
11051 2016-04-27 Nick Clifton <nickc@redhat.com>
11053 PR middle-end/49889
11054 * varasm.c (merge_weak): Generate an error if an attempt is made
11055 to convert a non-weak static function into a weak, public function.
11057 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11059 * params.def (MAX_PARTITION_SIZE): New param.
11060 * doc/invoke.texi: Document lto-max-partition.
11062 2016-04-27 Richard Biener <rguenther@suse.de>
11065 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
11066 function cummulating used_from_other_partition, externally_visible
11067 and force_output from aliases.
11068 (refered_from_nonlocal_var): Likewise.
11069 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
11070 node flags properly.
11072 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
11074 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
11075 (-Wmemset-elt-size): New item.
11077 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
11080 * stor-layout.h (internal_reference_types): Delete.
11081 * stor-layout.c (reference_types_internal): Likewise.
11082 (internal_reference_types): Likewise.
11083 (layout_type) <REFERENCE_TYPE>: Adjust.
11085 2016-04-27 Jakub Jelinek <jakub@redhat.com>
11088 * tree.h (inchash::add_expr): Add FLAGS argument.
11089 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
11090 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
11091 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
11092 Formatting fix. Adjust recursive calls. For tcc_comparison,
11093 if swap_tree_comparison (code) is smaller than code, hash that
11094 and arguments in the other order. Hash CONVERT_EXPR the same
11095 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
11096 of ADDR_EXPR of decl as the decl itself. Add or remove
11097 OEP_ADDRESS_OF from recursive flags as needed. For
11098 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
11099 operands commutatively and only the third one normally.
11100 For internal CALL_EXPR hash in CALL_EXPR_IFN.
11102 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
11104 * config/rtems.h (LIB_SPEC): Add -latomic.
11106 2016-04-27 Joel Sherrill <joel@rtems.org>
11108 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
11109 xilink.ld and flags not relevant to RTEMS.
11111 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11113 * toplev.c (backend_init_target): Avoid calling init_reload when using
11116 2016-04-26 Jakub Jelinek <jakub@redhat.com>
11118 * reorg.c (try_merge_delay_insns): Declare i and j inside the
11119 for loops rather than one for the whole function.
11121 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
11123 * match.pd (X + CST CMP X): New transformation.
11125 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
11127 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
11128 * fold-const.c (fold_binary_loc): Remove 2 transformations
11129 superseded by match.pd.
11130 * match.pd (x+x -> x*2): Generalize to integers.
11132 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
11134 * config/i386/i386.md (operation on memory peephole): Duplicate an
11135 existing peephole and adapt it to match lea rather than an operation
11138 PR rtl-optimization/57193
11139 * opts.c (default_options_table): Add OPT_frename_registers at -O2
11141 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
11143 2016-04-26 Bin Cheng <bin.cheng@arm.com>
11145 * tree-if-conv.c (any_pred_load_store): New static variable.
11146 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
11147 any_pred_load_store instead of and_mask_load_store.
11148 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
11149 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
11150 (combine_blocks, tree_if_conversion): Ditto.
11152 2016-04-26 Bin Cheng <bin.cheng@arm.com>
11154 PR tree-optimization/70771
11155 PR tree-optimization/70775
11156 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
11157 virtual PHI nodes. Delete parameter.
11158 (if_convertible_loop_p_1): Delete argument to above function.
11159 (predicate_all_scalar_phis): Delete code handling single-argument
11161 (tree_if_conversion): Mark and update virtual SSA.
11163 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11166 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
11167 (x86_elf_aligned_common): Rename to ...
11168 (x86_elf_aligned_decl_common): ... this.
11169 Add decl arg. Switch to .lbss for largecomm object. Use
11170 LARGECOMM_SECTION_ASM_OP.
11171 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
11173 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
11174 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
11176 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11177 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
11179 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11182 * config/i386/i386.c (SECTION_LARGE): Define.
11183 (x86_64_elf_select_section): Set it for large data/bss sections.
11184 Only clear SECTION_WRITE for .lrodata.
11185 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
11187 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
11188 * varasm.c (default_elf_asm_named_section): Grow flagchars.
11189 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
11191 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
11192 * doc/tm.texi: Regenerate.
11194 2016-04-26 Jakub Jelinek <jakub@redhat.com>
11197 * configure.ac (--enable-checking): Document extra flag, for
11198 non-release builds default to --enable-checking=yes,extra.
11199 If misc checking and extra checking, define CHECKING_P to 2 instead
11201 * common.opt (fchecking=): Add.
11202 * doc/invoke.texi (-fchecking=): Document.
11203 * doc/install.texi: Document --enable-checking changes.
11204 * configure: Regenerated.
11205 * config.in: Regenerated.
11207 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11209 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
11210 attribute instead of which_alternative.
11211 * config/i386/sse.md (*mov<mode>_internal): Ditto.
11212 Use EXT_REX_SSE_REG_P where appropriate.
11214 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11216 * config/i386/predicates.md (const0_operand): Do not match
11217 const_wide_int code.
11218 (const1_operand): Ditto.
11220 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11222 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
11223 for SSE constm1 operands and TARGET_AVX512VL.
11224 (*movti_internal): Ditto.
11225 (*mov<mode>_or): Use constm1_operand predicate.
11226 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
11227 for SSE vector_all_ones operands and TARGET_AVX512VL.
11228 * config/i386/predicates.md (constm1_operand): New predicate.
11229 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
11230 emission of constant -1 load.
11232 2016-04-25 Jason Merrill <jason@redhat.com>
11234 * gdbinit.in: Skip is-a.h.
11236 * attribs.c (register_scoped_attributes): Fix logic.
11237 * attribs.h: Declare register_scoped_attributes.
11239 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11241 * config/rs6000/rs6000-builtin.def: Correct pasto error for
11242 stxvd2x and stxvw4x built-in functions.
11244 2016-04-25 DJ Delorie <dj@redhat.com>
11246 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
11247 (ashrhi3): Likewise.
11248 (lshrhi3): Likewise.
11250 2016-04-25 Richard Biener <rguenther@suse.de>
11252 PR tree-optimization/70780
11253 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
11254 wasn't visited yet.
11255 (compute_antic): Mark blocks with abnormal preds as visited as
11256 they have a final empty antic-in solution already.
11258 2016-04-25 Michael Collison <michael.collison@linaro.org>
11260 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
11262 2016-04-25 Michael Collison <michael.collison@linaro.org>
11264 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
11265 mode is VQI to improve mixed mode vectorization.
11266 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
11267 define_insn to match low half of signed vaddw.
11268 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
11269 define_insn to match high half of signed vaddw.
11270 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
11271 define_insn to match low half of unsigned vaddw.
11272 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
11273 define_insn to match high half of unsigned vaddw.
11274 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
11275 (arm_simd_check_vect_par_cnst_half_p): Likewise.
11276 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
11278 (arm_simd_check_vect_par_cnst_half_p): Likewise.
11279 * config/arm/predicates.md (vect_par_constant_high): Support
11280 big endian and simplify by calling
11281 arm_simd_check_vect_par_cnst_half
11282 (vect_par_constant_low): Likewise.
11284 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11286 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
11287 predicate for operand 2.
11289 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
11290 H.J. Lu <hongjiu.lu@intel.com>
11292 * config/i386/i386-protos.h (standard_sse_constant_p): Add
11293 machine_mode argument.
11294 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
11295 constm1_rtx operands. For VOIDmode constants, get mode from
11296 pred_mode. Check mode size if the mode is supported by ABI.
11297 (standard_sse_constant_opcode): Do not use standard_constant_p.
11298 Strictly check ABI support for all-ones operands.
11299 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
11300 immediates. Update calls to standard_sse_constant_p.
11301 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11302 (ix86_rtx_costs): Ditto.
11303 * config/i386/i386.md (*movxi_internal_avx512f): Use
11304 nonimmediate_or_sse_const_operand instead of vector_move_operand.
11305 Use (v,BC) alternative instead of (v,C). Use register_operand
11306 checks instead of MEM_P.
11307 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11308 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
11309 isa attribute. Use register_operand checks instead of MEM_P.
11310 (*movti_internal): Use nonimmediate_or_sse_const_operand for
11311 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
11312 alternative and corresponding sse2 isa attribute.
11313 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11314 to standard_sse_constant_p.
11315 (FP constant splitters): Ditto.
11316 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11318 * config/i386/predicates.md (constm1_operand): Remove.
11319 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11320 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11321 vector_all_ones_operand instead of constm1_operand.
11323 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11325 * print-rtl.c (print_rtx_insn_vec): New function.
11326 * print-rtl.h: New prototype.
11327 * store-motion.c (struct st_expr): Make avail_stores a vector.
11328 (st_expr_entry): Adjust.
11329 (free_st_expr_entry): Likewise.
11330 (print_store_motion_mems): Likewise.
11331 (find_moveable_store): Likewise.
11332 (compute_store_table): Likewise.
11333 (delete_store): Likewise.
11334 (build_store_vectors): Likewise.
11336 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11338 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11340 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11342 * vec.h (vec_safe_contains): New function.
11343 (vec::contains): Likewise.
11344 (vec::begin): Likewise.
11345 (vec::end): Likewise.
11347 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11350 * cfgexpand.c (expand_stack_vars): Fix typo.
11352 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11354 * system.h (list, map, set, vector): Include conditionally.
11355 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11356 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11357 * ipa-icf.c (INCLUDE_LIST): Define.
11358 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11359 * config/sh/sh.c (INCLUDE_VECTOR): Define.
11360 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11361 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11362 * cp/logic.cc (INCLUDE_LIST): Define.
11363 * fortran/trans-common.c (INCLUDE_MAP): Define.
11365 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11367 * auto-profile.c: Remove <string.h> include.
11368 * ipa-icf-gimple.c: Remove <list> include.
11369 * diagnostic.c: Remove <new> include.
11370 * genmatch.c: Likewise.
11371 * pretty-print.c: Likewise.
11372 * toplev.c: Likewise
11373 * c/c-objc-common.c: Likewise.
11374 * cp/error.c: Likewise.
11375 * fortran/error.c: Likewise.
11377 2016-04-22 Richard Biener <rguenther@suse.de>
11379 * lto-streamer-in.c (input_ssa_names): Do not allocate
11380 GIMPLE_NOP for all SSA names.
11381 * lto-streamer-out.c (output_ssa_names): Do not output
11382 SSA names that should have been released.
11384 2016-04-22 Richard Biener <rguenther@suse.de>
11386 PR tree-optimization/70740
11387 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11390 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11393 * config/i386/predicates.md (call_insn_operand): Replace
11394 sibcall_memory_operand with memory_operand.
11396 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11398 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11399 has_single_use() tests.
11400 (register_edge_assert_for_1): Likewise.
11401 (find_assert_locations_1): Check the liveness bitmap instead of
11402 checking has_single_use().
11404 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11407 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11408 Extract AVX-512BW constraint from AVX.
11410 2016-04-21 Richard Biener <rguenther@suse.de>
11412 PR tree-optimization/70725
11413 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11414 for phi_convertible_by_degenerating_args.
11415 (predicate_all_scalar_phis): Handle single-argument PHIs.
11417 2016-04-21 Richard Biener <rguenther@suse.de>
11419 PR middle-end/70747
11420 * fold-const.c (fold_comparison): Return properly typed
11423 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11425 PR tree-optimization/70715
11426 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11427 after expanding BASE using expand_simple_operations.
11429 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11431 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11432 New transformations.
11434 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11436 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11438 2016-04-20 Jan Hubicka <jh@suse.cz>
11440 * ipa-inline.c (can_inline_edge_p): Pass caller info to
11441 ultiimate_alias_target.
11442 (update_callee_keys): Likewise.
11443 (lookup_recursive_calls): Likewise.
11444 (speculation_useful_p): Likewise.
11446 2016-04-20 Jan Hubicka <jh@suse.cz>
11449 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11450 (set_nothrow_flag_1): ... this; handle interposition correctly;
11451 recurse on aliases and thunks.
11452 (cgraph_node::set_nothrow_flag): New.
11453 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11454 functions compiled with non-call exceptions that binds to current
11456 (propagate_nothrow): Be safe WRT interposition.
11457 * cgraph.h (set_nothrow_flag): Update prototype.
11459 2016-04-18 Jan Hubicka <jh@suse.cz>
11461 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11462 max_loop_iterations_int.
11463 (tree_unswitch_outer_loop): Likewise.
11465 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11467 PR tree-optimization/69489
11468 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11469 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11470 Revise dump message.
11471 (if_convertible_bb_p): Remove check on edge count of basic block's
11474 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11476 PR tree-optimization/56625
11477 PR tree-optimization/69489
11478 * tree-data-ref.h (DR_INNERMOST): New macro.
11479 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11480 hashing struct innermost_loop_behavior.
11481 (ref_DR_map): Remove.
11482 (innermost_DR_map): New map.
11483 (baseref_DR_map): Revise comment.
11484 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11485 to innermost_DR_map accroding to its innermost loop behavior.
11486 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11487 to its innermost loop behavior.
11488 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11489 Add initialization for innermost_DR_map. Record memory reference
11490 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11491 have innermost loop behavior.
11492 (if_convertible_loop_p): Remove release for ref_DR_map. Release
11495 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11497 * config/i386/i386.md (*lea<mode>_general_1): Rename from
11498 *lea_general_1. Use explicit SWI12 mode interator.
11499 (*lea<mode>_general_2): Rename from *lea_general_2.
11500 Use explicit SWI12 mode interator.
11501 (*lea<mode>_general_3): Rename from *lea_general_3.
11502 Use explicit SWI12 mode interator.
11503 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11504 Use explicit SWI12 mode interator.
11505 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11506 Use explicit SWI48 mode interator.
11508 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11510 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11511 Short-cut unaligned load and store cases. Handle all integer
11513 (ix86_expand_vector_move_misalign): Short-cut unaligned load
11514 and store cases. Call ix86_avx256_split_vector_move_misalign
11515 directly without checking mode class.
11517 2016-04-20 Andrew Pinski <apinski@cavium.com>
11518 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11521 * config/aarch64/aarch64.md (sibcall): Force call
11522 address to be DImode for ILP32.
11523 (sibcall_value): Likewise.
11525 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11527 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11529 2016-04-20 Richard Biener <rguenther@suse.de>
11531 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11532 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11533 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11534 (maybe_push_res_to_seq): Adjust.
11535 * gimple-fold.c (maybe_build_generic_op): Likewise.
11537 2016-04-20 Marek Polacek <polacek@redhat.com>
11539 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11542 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11544 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11545 use kmovw to support AVX512F target.
11547 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11549 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11551 2016-04-20 Marek Polacek <polacek@redhat.com>
11553 PR tree-optimization/70725
11554 * tree-if-conv.c (is_false_predicate): New function.
11555 (predicate_mem_writes): Use it.
11557 2016-04-20 Richard Biener <rguenther@suse.de>
11559 PR tree-optimization/70726
11560 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11561 shift amounts from a pattern stmt operand.
11563 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11566 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11567 stack_restore_from_fpr pattern when restoring r15.
11568 (s390_optimize_prologue): Strip away the memory barrier in the
11569 parallel when trying to get rid of restore insns.
11570 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11571 definition for loading the stack pointer from an FPR. Compared to
11572 the normal move insn this pattern includes a full memory barrier.
11574 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11576 PR middle-end/70680
11577 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11578 implicitly linear or lastprivate iterator on the outer context.
11580 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11582 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11584 * config/i386/i386.md (ssememalign): Removed.
11585 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11587 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11590 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11591 const short * to __builtin_ia32_loaddquhi512_mask.
11592 (_mm512_maskz_loadu_epi16): Likewise.
11593 (_mm512_mask_storeu_epi16): Pass short * to
11594 __builtin_ia32_storedquhi512_mask.
11595 (_mm512_mask_loadu_epi8): Pass const char * to
11596 __builtin_ia32_loaddquqi512_mask.
11597 (_mm512_maskz_loadu_epi8): Likewise.
11598 (_mm512_mask_storeu_epi8): Pass char * to
11599 __builtin_ia32_storedquqi512_mask.
11600 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11601 const double * to __builtin_ia32_loadupd512_mask.
11602 (_mm512_mask_loadu_pd): Likewise.
11603 (_mm512_maskz_loadu_pd): Likewise.
11604 (_mm512_storeu_pd): Pass double * to
11605 __builtin_ia32_storeupd512_mask.
11606 (_mm512_mask_storeu_pd): Likewise.
11607 (_mm512_loadu_ps): Pass const float * to
11608 __builtin_ia32_loadups512_mask.
11609 (_mm512_mask_loadu_ps): Likewise.
11610 (_mm512_maskz_loadu_ps): Likewise.
11611 (_mm512_storeu_ps): Pass float * to
11612 __builtin_ia32_storeups512_mask.
11613 (_mm512_mask_storeu_ps): Likewise.
11614 (_mm512_mask_loadu_epi64): Pass const long long * to
11615 __builtin_ia32_loaddqudi512_mask.
11616 (_mm512_maskz_loadu_epi64): Likewise.
11617 (_mm512_mask_storeu_epi64): Pass long long *
11618 to __builtin_ia32_storedqudi512_mask.
11619 (_mm512_loadu_si512): Pass const int * to
11620 __builtin_ia32_loaddqusi512_mask.
11621 (_mm512_mask_loadu_epi32): Likewise.
11622 (_mm512_maskz_loadu_epi32): Likewise.
11623 (_mm512_storeu_si512): Pass int * to
11624 __builtin_ia32_storedqusi512_mask.
11625 (_mm512_mask_storeu_epi32): Likewise.
11626 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11627 char * to __builtin_ia32_storedquqi256_mask.
11628 (_mm_mask_storeu_epi8): Likewise.
11629 (_mm256_mask_loadu_epi16): Pass const short * to
11630 __builtin_ia32_loaddquhi256_mask.
11631 (_mm256_maskz_loadu_epi16): Likewise.
11632 (_mm_mask_loadu_epi16): Pass const short * to
11633 __builtin_ia32_loaddquhi128_mask.
11634 (_mm_maskz_loadu_epi16): Likewise.
11635 (_mm256_mask_loadu_epi8): Pass const char * to
11636 __builtin_ia32_loaddquqi256_mask.
11637 (_mm256_maskz_loadu_epi8): Likewise.
11638 (_mm_mask_loadu_epi8): Pass const char * to
11639 __builtin_ia32_loaddquqi128_mask.
11640 (_mm_maskz_loadu_epi8): Likewise.
11641 (_mm256_mask_storeu_epi16): Pass short * to.
11642 __builtin_ia32_storedquhi256_mask.
11643 (_mm_mask_storeu_epi16): Pass short * to.
11644 __builtin_ia32_storedquhi128_mask.
11645 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11646 const double * to __builtin_ia32_loadupd256_mask.
11647 (_mm256_maskz_loadu_pd): Likewise.
11648 (_mm_mask_loadu_pd): Pass onst double * to
11649 __builtin_ia32_loadupd128_mask.
11650 (_mm_maskz_loadu_pd): Likewise.
11651 (_mm256_mask_storeu_pd): Pass double * to
11652 __builtin_ia32_storeupd256_mask.
11653 (_mm_mask_storeu_pd): Pass double * to
11654 __builtin_ia32_storeupd128_mask.
11655 (_mm256_mask_loadu_ps): Pass const float * to
11656 __builtin_ia32_loadups256_mask.
11657 (_mm256_maskz_loadu_ps): Likewise.
11658 (_mm_mask_loadu_ps): Pass const float * to
11659 __builtin_ia32_loadups128_mask.
11660 (_mm_maskz_loadu_ps): Likewise.
11661 (_mm256_mask_storeu_ps): Pass float * to
11662 __builtin_ia32_storeups256_mask.
11663 (_mm_mask_storeu_ps): ass float * to
11664 __builtin_ia32_storeups128_mask.
11665 (_mm256_mask_loadu_epi64): Pass const long long * to
11666 __builtin_ia32_loaddqudi256_mask.
11667 (_mm256_maskz_loadu_epi64): Likewise.
11668 (_mm_mask_loadu_epi64): Pass const long long * to
11669 __builtin_ia32_loaddqudi128_mask.
11670 (_mm_maskz_loadu_epi64): Likewise.
11671 (_mm256_mask_storeu_epi64): Pass long long * to
11672 __builtin_ia32_storedqudi256_mask.
11673 (_mm_mask_storeu_epi64): Pass long long * to
11674 __builtin_ia32_storedqudi128_mask.
11675 (_mm256_mask_loadu_epi32): Pass const int * to
11676 __builtin_ia32_loaddqusi256_mask.
11677 (_mm256_maskz_loadu_epi32): Likewise.
11678 (_mm_mask_loadu_epi32): Pass const int * to
11679 __builtin_ia32_loaddqusi128_mask.
11680 (_mm_maskz_loadu_epi32): Likewise.
11681 (_mm256_mask_storeu_epi32): Pass int * to
11682 __builtin_ia32_storedqusi256_mask.
11683 (_mm_mask_storeu_epi32): Pass int * to
11684 __builtin_ia32_storedqusi128_mask.
11685 * config/i386/i386-builtin-types.def (PCSHORT): New.
11686 (PINT64): Likewise.
11687 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11688 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11689 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11690 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11691 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11692 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11693 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11694 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11695 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11696 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11697 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11698 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11699 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11700 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11701 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11702 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11703 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11704 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11705 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11706 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11707 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11708 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11709 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11710 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11711 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11712 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11713 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11714 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11715 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11716 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11717 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11718 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11719 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11720 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11721 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11722 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11723 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11724 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11725 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11726 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11727 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11728 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11729 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11730 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11731 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11732 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11733 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11734 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11735 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11737 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11738 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11740 (ix86_expand_vector_move_misalign): Likewise.
11741 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11742 to scalar function prototype for unaligned load/store builtins.
11743 (ix86_expand_special_args_builtin): Updated.
11744 * config/i386/sse.md (UNSPEC_LOADU): Removed.
11745 (UNSPEC_STOREU): Likewise.
11746 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11747 (VI_ULOADSTORE_F_AVX512VL): Likewise.
11748 (ssescalarsize): Handle V4TI, V2TI and V1TI.
11749 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11750 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11751 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11752 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11753 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11754 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11755 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11756 (<avx512>_storedqu<mode>_mask): Likewise.
11757 (*sse4_2_pcmpestr_unaligned): Likewise.
11758 (*sse4_2_pcmpistr_unaligned): Likewise.
11759 (*mov<mode>_internal): Renamed to ...
11760 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
11761 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11762 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11763 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11765 2016-04-19 Richard Biener <rguenther@suse.de>
11767 PR tree-optimization/70171
11768 * tree-ssa-phiprop.c: Include stor-layout.h.
11769 (phiprop_insert_phi): Handle the aggregate copy case.
11770 (propagate_with_phi): Likewise.
11772 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
11774 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11775 instead of simplify_gen_subreg (... , 0).
11776 (ix86_delegitimize_address): Ditto.
11777 (ix86_split_divmod): Ditto.
11778 (ix86_split_copysign_const): Ditto.
11779 (ix86_split_copysign_var): Ditto.
11780 (ix86_expand_args_builtin): Ditto.
11781 (ix86_expand_round_builtin): Ditto.
11782 (ix86_expand_special_args_builtin): Ditto.
11783 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11784 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11785 (udivmodqi4): Ditto.
11786 (absneg splitters): Ditto.
11787 (*jcc_bt<mode>_1): Ditto.
11789 2016-04-19 Richard Biener <rguenther@suse.de>
11791 PR tree-optimization/70724
11792 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11793 restoring out from ...
11794 (free_scc_vn): ... here.
11795 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11796 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11798 (pass_fre::execute): Restore SSA info.
11800 2016-04-19 Richard Biener <rguenther@suse.de>
11802 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11803 * gimple-walk.c (walk_gimple_op): Initialize it.
11804 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11805 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11806 remapping SSA names of defs.
11807 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11810 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
11812 PR middle-end/70689
11813 * lra-constraints.c (equiv_substition_p): New.
11814 (process_alt_operands): Use it.
11815 (swap_operands): Swap it.
11816 (curr_insn_transform): Update it.
11818 2016-04-18 Michael Matz <matz@suse.de>
11820 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11821 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11822 * tree-core.h (tree_type_common.align): Use bit-field.
11823 (tree_type_common.spare): New.
11824 (tree_decl_common.off_align): Make smaller.
11825 (tree_decl_common.align): Use bit-field.
11827 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11828 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11829 (scan_sharing_clauses): Ditto.
11830 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11831 (omp_finish_file): Ditto.
11832 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11833 (layout_decl): Ditto.
11834 (relayout_decl): Ditto.
11835 (finalize_record_size): Use SET_TYPE_ALIGN.
11836 (finalize_type_size): Ditto.
11837 (finish_builtin_struct): Ditto.
11838 (layout_type): Ditto.
11839 (initialize_sizetypes): Ditto.
11840 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11841 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11842 (lookup_field_for_decl): Use SET_DECL_ALIGN.
11843 (get_chain_field): Ditto.
11844 (get_trampoline_type): Ditto.
11845 (get_nl_goto_field): Ditto.
11846 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11848 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11849 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11850 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11851 (build_qualified_type): Use SET_TYPE_ALIGN.
11852 (build_aligned_type, build_range_type_1): Ditto.
11853 (build_atomic_base): Ditto.
11854 (build_common_tree_nodes): Ditto.
11855 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11856 (expand_one_stack_var_at): Ditto.
11857 * coverage.c (build_var): Use SET_DECL_ALIGN.
11858 * except.c (init_eh): Ditto.
11859 * function.c (assign_parm_setup_block): Ditto.
11860 * symtab.c (increase_alignment_1): Ditto.
11861 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11862 * tree-vect-stmts.c (ensure_base_align): Ditto.
11863 * varasm.c (align_variable): Ditto.
11864 (assemble_variable): Ditto.
11865 (build_constant_desc): Ditto.
11866 (output_constant_def_contents): Ditto.
11868 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11869 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11870 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11871 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11872 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11874 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11877 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11878 replace %vmovsd with "%vmovq".
11879 (vec_concatv2df): Likewise.
11881 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11883 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11884 (*vec_extractv2si_0): Ditto.
11885 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11886 (zero_extended_scalar_load_operand splitters): Ditto.
11887 (vec_extract splitters): Ditto.
11888 (*vec_extractv4si_0_zext): Ditto.
11889 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11890 and lowpart_subreg.
11891 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11892 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11893 (*sse4_1_extractps): Use lowpart_subreg.
11894 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11896 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11898 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11900 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11901 Mention Solaris 11 packaging changes.
11902 Update gas and gld requirements.
11903 Remove reference to pre-Solaris 10 bug.
11904 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11906 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11909 2016-04-17 Jan Hubicka <jh@suse.cz>
11911 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11912 max_loop_iterations_int.
11914 2016-04-18 Richard Biener <rguenther@suse.de>
11916 PR tree-optimization/43434
11917 * tree-ssa-structalias.c (struct vls_data): New.
11918 (visit_loadstore): Handle all pointer-based accesses.
11919 (compute_dependence_clique): Compute a bitmap of restrict tags
11920 assigned bases and pass it to visit_loadstore.
11922 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11925 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11926 armv8.1-a and armv8.1-a+crc.
11928 2016-04-18 Richard Biener <rguenther@suse.de>
11930 PR tree-optimization/70701
11931 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11932 references after translating through a memcpy.
11934 2016-04-18 Richard Biener <rguenther@suse.de>
11936 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11937 (compute_antic): ... here. For partial antic use regular
11938 postorder and scrap iteration.
11939 (compute_partial_antic_aux): Remove unused return value.
11940 (init_pre): Do not allocate postorder.
11941 (fini_pre): Do not free postorder.
11943 2016-04-18 Richard Biener <rguenther@suse.de>
11945 PR middle-end/37870
11946 * expmed.c (extract_bit_field_1): Remove broken case
11947 using a wider MODE_INT mode.
11949 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11951 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11952 unless compiling with at least GCC-4.8.
11954 2016-04-17 Jan Hubicka <jh@suse.cz>
11957 * graphite.c (graphite_finalize): Update call to
11958 tree_estimate_probability.
11959 * predict.h (tree_estimate_probability): Update prototype.
11961 2016-04-17 Jan Hubicka <jh@suse.cz>
11963 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11964 (tree_estimate_probability): Likewise.
11965 (pass_profile::execute): Update.
11966 (report_predictor_hitrates): New function.
11967 * profile.c (compute_branch_probabilities): Use it.
11968 * predict.h (report_predictor_hitrates): Declare.
11970 2016-04-17 Jan Hubicka <jh@suse.cz>
11973 * cgraph.h (cgraph_node::set_const_flag,
11974 cgraph_node::set_pure_flag): Update prototype to return bool;
11976 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11977 of interposable symbol are interposable, too.
11978 (cgraph_set_const_flag_1): Rename to ...
11979 (set_const_flag_1): ... this one; change to self recursive function
11980 instead of call_for_symbol_thunks_and_aliases. Handle correctly
11981 clearnig the flag in all variants and also virtual thunks of const
11982 functions are pure; track if any change was done.
11983 (cgraph_node::set_const_flag): Update.
11984 (struct set_pure_flag_info): New struct.
11985 (cgraph_set_pure_flag_1): Rename to ...
11986 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11987 rather than pointer encoded flags; track if any changes was done;
11988 handle correctly clearning flag and setting flag of aliases already
11990 (cgraph_node::set_pure_flag): Update.
11991 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11993 2016-04-17 Tom de Vries <tom@codesourcery.com>
11996 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11997 backslash in label.
11999 2016-04-17 Tom de Vries <tom@codesourcery.com>
12001 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
12002 '{}<> ' as escape-for-record.
12004 2016-04-17 Tom de Vries <tom@codesourcery.com>
12006 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
12009 2016-04-17 Tom de Vries <tom@codesourcery.com>
12012 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
12013 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
12014 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
12015 * passes.c (finish_optimization_passes): Only call
12016 finish_graph_dump_file if dfi->graph_dump_initialized.
12017 (execute_function_dump, pass_init_dump_file): Use
12018 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
12020 2016-04-17 Tom de Vries <tom@codesourcery.com>
12022 PR tree-optimization/70256
12023 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
12024 (debug_varmap): New function.
12026 2016-04-17 Tom de Vries <tom@codesourcery.com>
12029 * passes.c (pass_manager::register_pass): Propagate pflags.
12031 2016-04-17 Tom de Vries <tom@codesourcery.com>
12034 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
12035 * passes.c (pass_manager::pass_manager): Declare and init p_start in
12036 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
12037 check if it's equal to p_start.
12038 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
12040 2016-04-15 Jan Hubicka <jh@suse.cz>
12043 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
12044 function does not bind to current def.
12045 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
12046 handle conservatively calls to functions that does not need to bind
12048 (check_call): Update call of worse_state.
12049 (ignore_edge_for_nothrow): Update.
12050 (ignore_edge_for_pure_const): Likewise.
12051 (propagate_pure_const): Update calls to worse_state.
12052 (skip_function_for_local_pure_const): Reformat comments.
12054 2016-04-15 Jan Hubicka <jh@suse.cz>
12057 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
12058 (cgraph_node::function_symbol): Likewise.
12059 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12060 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
12061 (symtab_node::ultimate_alias_target): Add REF parameter.
12062 (symtab_node::binds_to_current_def_p): Declare.
12063 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
12064 (cgraph_node::function_symbol): Likewise.
12065 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12066 (cgraph_node::get_availability): Likewise.
12067 (cgraph_edge::binds_to_current_def_p): New inline function.
12068 (varpool_node::get_availability): Add REF parameter.
12069 (varpool_node::ultimate_alias_target): Likewise.
12070 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
12071 (symtab_node::binds_to_current_def_p): Likewise.
12072 * varpool.c (varpool_node::get_availability): Likewise.
12074 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
12077 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
12078 Fix mode size check.
12080 2016-04-15 Jakub Jelinek <jakub@redhat.com>
12082 * BASE-VER: Set to 7.0.0.
12084 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
12086 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
12088 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12090 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
12091 architecture revisions.
12093 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
12095 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
12096 * config/i386/i386.c (ix86_using_red_zone): No longer static.
12097 * config/i386/i386.md (stack decrement to push peepholes): Guard
12098 with !x86_using_red_zone ().
12100 2016-04-15 Jakub Jelinek <jakub@redhat.com>
12103 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
12104 to dump_generic_node.
12105 (NIY): Pass also flags to do_niy.
12107 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
12109 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
12110 (simd_clone_vector_of_formal_parm_types)
12111 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
12112 (simd_clone_mangle, simd_clone_create)
12113 (simd_clone_adjust_return_type, create_tmp_simd_array)
12114 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
12115 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
12116 (ipa_simd_modify_function_body, simd_clone_linear_addend)
12117 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
12118 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
12119 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
12120 * omp-simd-clone.c: ... this new file.
12121 (simd_clone_vector_of_formal_parm_types): Make it static.
12122 * Makefile.in (OBJS): Add omp-simd-clone.o.
12124 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
12127 * config/i386/sse.md: Use proper memory operand modifiers.
12130 2016-04-15 Richard Biener <rguenther@suse.de>
12131 Alan Modra <amodra@gmail.com>
12133 PR tree-optimization/70130
12134 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
12135 when alignment stays not the same and no not use the realign
12138 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12141 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12142 direct move handlers for KFmode. Change TFmode handlers test from
12143 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
12145 2016-04-14 Jakub Jelinek <jakub@redhat.com>
12148 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
12149 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
12150 (inlined_polymorphic_ctor_dtor_block_p): Use it.
12151 * tree-ssa-live.c (remove_unused_scope_block_p): When
12152 in_ctor_dtor_block, avoid discarding not just BLOCKs with
12153 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
12154 block_ultimate_origin is FUNCTION_DECL.
12155 (remove_unused_locals): If current_function_decl is
12156 polymorphic_ctor_dtor_p, pass initial true to
12157 remove_unused_scope_block_p' is_ctor_dtor_block.
12159 2016-04-14 Martin Sebor <msebor@redhat.com>
12164 * doc/extend.texi (Variable Length): Revert.
12166 2016-04-14 Marek Polacek <polacek@redhat.com>
12167 Jan Hubicka <hubicka@ucw.cz>
12170 * tree.c (verify_type): Disable the canonical type of main variant
12173 2016-04-14 Jason Merrill <jason@redhat.com>
12175 * cfgexpand.c, expr.c: Revert previous change.
12177 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12179 PR middle-end/70643
12180 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
12181 when building a mem ref for the incoming reduction variable.
12183 2016-04-14 Richard Biener <rguenther@suse.de>
12185 PR tree-optimization/70614
12186 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
12187 loop if the evolution dropped to chrec_dont_know.
12188 (interpret_condition_phi): Likewise.
12190 2016-04-14 Richard Biener <rguenther@suse.de>
12192 PR tree-optimization/70623
12193 * tree-ssa-pre.c (changed_blocks): Make global ...
12194 (compute_antic): ... local here. Move and fix worklist
12195 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
12196 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
12197 worklist handling, dump when ANTIC_IN changed.
12198 (compute_partial_antic_aux): Remove worklist handling.
12199 (init_pre): Do not compute post dominators. Add a comment about
12200 the CFG order chosen.
12201 (fini_pre): Do not free post dominators.
12203 2016-04-13 Martin Sebor <msebor@redhat.com>
12208 * doc/extend.texi (Variable Length): Document C++ specifics.
12210 2016-04-13 Jakub Jelinek <jakub@redhat.com>
12213 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
12214 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
12215 eh edges have been purged.
12218 * tree-sra.c (create_access_replacement,
12219 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
12221 * tree-pretty-print.c (dump_fancy_name): New function.
12222 (dump_decl_name, dump_generic_node): Use it.
12224 2016-04-13 Jason Merrill <jason@redhat.com>
12226 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
12227 * expr.c (expand_expr_real_1): Likewise.
12229 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
12231 * config/i386/i386.md (kunpckhi): Swap operands.
12232 (kunpcksi): Likewise.
12233 (kunpckdi): Likewise.
12234 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
12235 (vec_pack_trunc_<mode>): Likewise.
12237 2016-04-13 Jakub Jelinek <jakub@redhat.com>
12240 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
12242 PR middle-end/70633
12243 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
12244 gimplification turns some element into non-constant.
12247 * rtl.h (convert_memory_address_addr_space_1): New prototype.
12248 * explow.c (convert_memory_address_addr_space_1): No longer static,
12249 add NO_EMIT argument and don't call convert_modes if true, pass
12250 it down recursively, remove break after return.
12251 (convert_memory_address_addr_space): Adjust caller.
12252 * simplify-rtx.c (simplify_unary_operation_1): Call
12253 convert_memory_address_addr_space_1 instead of convert_memory_address,
12254 if it returns NULL, don't simplify.
12256 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
12259 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
12261 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12263 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12264 Bump the upper SIMDLEN limits, so that if the return type or
12265 characteristic type if the return type is void can be passed in
12266 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
12269 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12272 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
12273 Do not use "=" constraint on an input constraint.
12274 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12275 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12276 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
12277 generates (neg (abs ...)) instead of (abs ...).
12279 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12281 PR rtl-optimization/70596
12282 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
12283 just invalidate LRA data and reset them. Adjust dump wording.
12285 2016-04-12 Martin Liska <mliska@suse.cz>
12288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12290 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12292 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12293 max_loop_iterations_int.
12294 (tree_unswitch_outer_loop): Likewise.
12295 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12296 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12298 2016-04-12 Tom de Vries <tom@codesourcery.com>
12300 PR tree-optimization/68756
12301 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12302 instead of new_name.
12304 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12306 PR tree-optimization/70602
12307 * tree-sra.c (generate_subtree_copies): Don't write anything into
12308 constant pool decls.
12310 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12311 regardless whether there are depend clauses or not.
12313 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12316 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12317 target attribute and pragma from changing the -mfloat128
12318 and -mfloat128-hardware options.
12320 * doc/extend.texi (Additional Floating Types): Document PowerPC
12321 __float128 restrictions.
12323 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12326 * config/aarch64/driver-aarch64.c
12327 (aarch64_get_extension_string_for_isa_flags): New.
12328 (arch_extension): Rename to...
12329 (aarch64_arch_extension): ...This.
12330 (ext_to_feat_string): Rename to...
12331 (aarch64_extensions): ...This.
12332 (aarch64_core_data): Keep track of architecture extension flags.
12333 (cpu_data): Rename to...
12334 (aarch64_cpu_data): ...This.
12335 (aarch64_arch_driver_info): Keep track of architecture extension
12337 (get_arch_name_from_id): Rename to...
12338 (get_arch_from_id): ...This, change return type.
12339 (host_detect_local_cpu): Update and reformat for renames, handle
12340 extensions through common infrastructure.
12342 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12345 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12346 track of a canonical flag name.
12347 (all_extensions): Likewise.
12348 (arch_to_arch_name): Also track extension flags enabled by the arch.
12349 (all_architectures): Likewise.
12350 (aarch64_parse_extension): Move to here.
12351 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12353 (aarch64_rewrite_selected_cpu): Update for above change.
12354 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12355 are handled, such that the single explicit value enabled by an
12356 extension is kept seperate from the implicit values it also enables.
12357 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12359 (aarch64_parse_extension): New.
12360 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12361 here to config/aarch64/aarch64-protos.h.
12362 (aarch64_parse_extension): Move from here to
12363 common/config/aarch64/aarch64-common.c.
12364 (aarch64_option_print): Update.
12365 (aarch64_declare_function_name): Likewise.
12366 (aarch64_start_file): Likewise.
12367 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12368 the canonical flag for extensions.
12369 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12372 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12374 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12377 2016-04-09 Tom de Vries <tom@codesourcery.com>
12379 PR tree-optimization/68953
12380 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12381 first to last subscript.
12383 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12385 PR tree-optimization/70586
12386 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12389 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12393 PR tree-optimization/70373
12394 PR middle-end/70533
12395 PR middle-end/70534
12396 PR middle-end/70535
12397 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12398 clauses for acc parallel reductions as necessary. Error on those
12400 * omp-low.c (scan_sharing_clauses): Don't install variables which
12401 are used in acc parallel reductions.
12402 (lower_rec_input_clauses): Remove dead code.
12403 (lower_oacc_reductions): Add support for reference reductions.
12404 (lower_reduction_clauses): Remove dead code.
12405 (lower_omp_target): Don't remap variables appearing in acc parallel
12407 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12409 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12411 PR middle-end/70593
12412 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12413 with multiple SSA_NAME defs, force the outputs other than first
12414 to be live before calling live_track_process_def on each output.
12416 PR rtl-optimization/70574
12417 * fwprop.c (forward_propagate_and_simplify): Don't add
12418 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12419 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12420 paradoxical subregs within *loc.
12422 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12424 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12425 -ftree-parallelize-loops={0,1}.
12426 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12427 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12428 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12429 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12430 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12432 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12435 * asan.c (instrument_derefs): If we get unknown location, extract it
12436 with EXPR_LOCATION.
12437 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12439 2016-04-08 Tom de Vries <tom@codesourcery.com>
12441 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12442 implicit firstprivate clause.
12444 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12447 * config/arm/thumb2.md (tst + branch-> lsls + branch
12448 peephole below *orsi_not_shiftsi_si): Require that condition
12449 register is dead after the peephole.
12450 (second peephole after the above): Likewise.
12452 2016-04-08 Alan Modra <amodra@gmail.com>
12455 * builtins.c (fold_builtin_classify): For IBM extended precision,
12456 look at just the high-order double to test for NaN.
12457 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
12458 test just the high double for Inf but both doubles for subnormal
12461 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12463 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12464 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12465 node->simdclone->mask_mode != VOIDmode masks.
12466 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
12467 earlier, use it instead of node->simdclone.
12468 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12469 Set clonei->mask_mode.
12471 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12474 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12475 Pass it through to cp_parser_already_scoped_statement.
12476 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
12477 it through to cp_parser_statement.
12478 (cp_parser_statement): Pass IF_P through to
12479 cp_parser_iteration_statement.
12480 (cp_parser_pragma): Adjust call to
12481 cp_parser_iteration_statement.
12483 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12486 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12487 resolve a future -Wparentheses warning.
12488 * omp-low.c (scan_sharing_clauses): Likewise.
12489 * tree-parloops.c (eliminate_local_variables): Likewise.
12491 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12493 PR rtl-optimization/70398
12494 * lra-constraints.c (process_address_1): Check zero scale and code
12495 for reloading with zero scale.
12497 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12499 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12500 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12502 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12504 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12505 Add support for AVX512F clones, include them by default for
12506 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
12507 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12510 PR middle-end/70550
12511 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12512 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12513 firstprivate clauses.
12514 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12515 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12516 (lower_omp_target): Set TREE_NO_WARNING for
12517 non-addressable possibly uninitialized vars which are copied into
12518 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12520 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12522 * config/pa/predicates.md (integer_store_memory_operand): Accept
12523 REG+D operands with a large offset when reload_in_progress is true.
12524 (floating_point_store_memory_operand): Likewise.
12526 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12529 * match.pd (nested int casts): Limit to GIMPLE.
12531 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12534 * ipa-devirt.c (maybe_record_node): Fix comment; use
12535 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12537 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12539 PR rtl-optimization/70542
12540 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12541 if there are any uses other than insn or debug insns.
12543 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12544 Jakub Jelinek <jakub@redhat.com>
12546 PR tree-optimization/70509
12547 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12548 Shift HOST_WIDE_INT_1U instead of 1.
12550 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12552 PR tree-optimization/70509
12553 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12554 of the vector base type for index.
12556 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12559 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12561 2016-04-05 Richard Biener <rguenther@suse.de>
12563 PR tree-optimization/70526
12564 * tree-sra.c (build_ref_for_offset): Use prev_base to
12565 extract the alias pointer type.
12567 2016-04-05 Richard Biener <rguenther@suse.de>
12569 * dse.c (struct store_info): Remove alias_set member.
12570 (struct read_info_type): Likewise.
12571 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12572 spill_deleted, clear_alias_set_lookup): Remove.
12573 (get_group_info): Remove dead base == NULL_RTX case.
12574 (dse_step0): Remove initialization of removed variables.
12575 (delete_dead_store_insn): Reomve alias set dumping.
12576 (free_read_records): Remove alias_set handling.
12577 (canon_address): Remove alias_set_out parameter.
12578 (record_store): Remove spill_alias_set, it's always zero.
12579 (check_mem_read_rtx): Likewise.
12580 (dse_step2): Rename from ...
12581 (dse_step2_nospill): ... this. Adjust.
12582 (scan_stores): Rename from ...
12583 (scan_stores_nospill): ... this.
12584 (scan_reads): Rename from ...
12585 (scan_reads_nospill): ... this.
12586 (scan_stores_spill, scan_reads_spill): Remove.
12587 (dse_step3_scan): Remove for_spills argument which is always false.
12588 (dse_step3): Likewise.
12589 (dse_step5): Rename from ...
12590 (dse_step5_nospill): ... this. Remove alias_set handling.
12591 (rest_of_handle_dse): Adjust.
12593 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12596 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12597 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12598 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12599 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12601 2016-04-05 Richard Biener <rguenther@suse.de>
12603 PR middle-end/70499
12604 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12605 non-register type temporaries into SSA.
12607 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12610 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12611 calls when sanitizing.
12612 (possible_polymorphic_call_target_p): Fix formatting.
12614 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12615 Jakub Jelinek <jakub@redhat.com>
12617 PR middle-end/70457
12618 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12619 to ensure a call statement is compatible with a built-in's
12621 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12624 2016-04-04 Richard Biener <rguenther@suse.de>
12626 PR rtl-optimization/70484
12627 * rtl.h (canon_output_dependence): Declare.
12628 * alias.c (canon_output_dependence): New function.
12629 * dse.c (record_store): Use canon_output_dependence rather
12630 than canon_true_dependence.
12632 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12635 * cgraph.h (symtab_node::copy_visibility_from): New function.
12636 * symtab.c (symtab_node::copy_visibility_from): New function.
12637 * ipa-visibility.c (optimize_weakref): New function.
12638 (function_and_variable_visibility): Use it.
12640 2016-04-04 Martin Liska <mliska@suse.cz>
12643 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12644 value that is really in range handled by SBR instruction.
12645 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12646 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12647 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12649 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12653 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12654 set, but not for SP_REG operands.
12656 2016-04-02 Martin Sebor <msebor@redhat.com>
12659 * fold-const.c (maybe_nonzero_address): New function.
12660 (fold_comparison): Call it. Fold equality and relational
12661 expressions involving null pointers.
12662 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12664 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12666 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12667 the "Y" constraint (scalar FP 0.0 immediate).
12669 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12670 Add the "const_double" to the list of operand constraints.
12672 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12674 PR rtl-optimization/70467
12675 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12676 If low word of the last operand is 0, just emit addition/subtraction
12679 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12682 * config/s390/s390.c (s390_expand_insv): Check for everything
12683 constant instead of just VOIDmode stuff.
12685 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12688 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12690 2016-04-01 Nathan Sidwell <nathan@acm.org>
12692 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12694 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12696 PR rtl-optimization/70461
12697 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12700 2016-03-31 Martin Liska <mliska@suse.cz>
12703 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12704 a tree value or an immediate integer value to a buffer
12705 that is eventually copied to a BRIG section.
12706 (emit_immediate_operand): Call the function here.
12707 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12708 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12709 of class' fields that are removed.
12710 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12711 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12712 m_brig_repr_size fields.
12714 2016-03-31 Martin Liska <mliska@suse.cz>
12717 * hsa-gen.c (hsa_function_representation::update_dominance): New
12719 (convert_addr_to_flat_segment): Likewise.
12720 (gen_hsa_memory_set): New alignment argument.
12721 (gen_hsa_ctor_assignment): Likewise.
12722 (gen_hsa_insns_for_single_assignment): Provide alignment
12723 to gen_hsa_ctor_assignment.
12724 (gen_hsa_insns_for_direct_call): Add new argument.
12725 (expand_lhs_of_string_op): New function.
12726 (expand_string_operation_builtin): Likewise.
12727 (expand_memory_copy): New function.
12728 (expand_memory_set): New function.
12729 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12730 (convert_switch_statements): Change signature.
12731 (generate_hsa): Use a return value of the function.
12732 (pass_gen_hsail::execute): Do not call
12733 convert_switch_statements here.
12734 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12735 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12736 (hsa_function_representation::update_dominance): New function.
12738 2016-03-31 Martin Liska <mliska@suse.cz>
12741 * hsa-brig.c (emit_directive_variable): Emit alignment
12742 according to hsa_symbol::m_align.
12743 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12744 (dump_hsa_symbol): Dump alignment of HSA symbols.
12745 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12746 (gen_hsa_addr_with_align): New function.
12747 (hsa_bitmemref_alignment): Use newly added function.
12748 (gen_hsa_insns_for_load): Likewise.
12749 (gen_hsa_insns_for_store): Likewise.
12750 (gen_hsa_memory_copy): New argument added.
12751 (gen_hsa_insns_for_single_assignment): Respect
12752 alignment for assignments processed via gen_hsa_memory_copy.
12753 (gen_hsa_insns_for_direct_call): Likewise.
12754 (gen_hsa_insns_for_return): Likewise.
12755 (gen_function_def_parameters): Set default alignment.
12756 * hsa.c (hsa_object_alignment): New function.
12757 (hsa_byte_alignment): Pasted function.
12758 * hsa.h (hsa_symbol::m_align): New field.
12760 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12762 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12763 scratch field for goto case.
12765 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
12767 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12769 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
12772 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12773 (scalar_chain::convert_insn): Call convert_op for reg
12774 moves to handle undefined registers.
12776 2016-03-31 Nathan Sidwell <nathan@acm.org>
12779 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12780 Assert we don't want to move backwards.
12782 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
12785 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12787 2016-03-31 Jakub Jelinek <jakub@redhat.com>
12789 PR rtl-optimization/70460
12790 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12791 with operand from REG_LABEL_OPERAND, instead substitute
12792 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12793 Don't do anything for REG_NON_LOCAL_GOTO jumps.
12795 2016-03-31 Martin Liska <mliska@suse.cz>
12797 * passes.c (execute_one_pass): Do not call
12798 todo_after for a discarded function.
12800 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12802 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12803 (no_cost, infinite_cost): Initialize the new field.
12804 (get_computation_cost_at): Record setup cost.
12805 (determine_use_iv_cost_address): Skip cost computation for sub
12806 uses if we can estimate it without losing accuracy.
12808 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12810 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12812 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12813 max_loop_iterations_int.
12814 (tree_unswitch_outer_loop): Likewise.
12815 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12816 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12818 2016-03-30 Richard Biener <rguenther@suse.de>
12820 PR middle-end/70450
12821 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12823 2016-03-30 Jakub Jelinek <jakub@redhat.com>
12826 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12827 in gen_blendm expander.
12829 2016-03-30 Nick Clifton <nickc@redhat.com>
12832 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12833 case where we are already provided with an SImode SUBREG.
12835 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
12838 * config/i386/i386.c (ix86_expand_epilogue): Properly check
12839 conflict between DRAP register and __builtin_eh_return.
12841 2016-03-30 Michael Matz <matz@suse.de>
12842 Richard Biener <rguenther@suse.de>
12845 * ipa-polymorphic-call.c (struct type_change_info): Change
12846 speculative to an unsigned allowing to limit the work we do.
12847 (csftc_abort_walking_p): New inline function..
12848 (check_stmt_for_type_change): Limit the number of may-defs
12849 skipped for speculative devirtualization to
12850 max-speculative-devirt-maydefs.
12851 * params.def (max-speculative-devirt-maydefs): New param.
12852 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12854 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
12857 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12860 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
12862 PR tree-optimization/59124
12863 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12864 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12866 2016-03-29 Jeff Law <law@redhat.com>
12868 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12870 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12872 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12875 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12877 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12878 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12879 gcrt0.o if linking dynamically.
12881 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12884 * ipa-devirt.c (methods_equal_p): New function.
12885 (compare_virtual_tables): Use it.
12886 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12887 * cgraphclones.c (clone_function_name_1): Use
12888 symbol_table::symbol_suffix_separator.
12889 * coverage.c (build_var): Likewise.
12890 * symtab.c (symbol_table::symbol_suffix_separator): New.
12892 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12894 PR rtl-optimization/70429
12895 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12896 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12897 mode != result_mode.
12900 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12902 PR tree-optimization/70405
12903 * ssa-iterators.h (num_imm_uses): Add missing braces.
12905 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12907 PR rtl-optimization/68695
12908 * ira-color.c (allocno_copy_cost_saving): New.
12909 (improve_allocation): Use it.
12911 2016-03-29 Richard Henderson <rth@redhat.com>
12913 PR middle-end/70355
12914 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12916 2016-03-29 Richard Biener <rguenther@suse.de>
12918 PR middle-end/70424
12919 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12920 use alignment returned by get_pointer_alignment_1 if it is
12921 bigger than BITS_PER_UNIT.
12922 * builtins.c (get_pointer_alignment_1): Do not return true
12923 for alignment extracted from SSA info.
12925 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12927 * config/ft32/ft32.opt (mnodiv): New.
12928 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12929 * doc/invoke.texi (FT32 Options -mnodiv): New.
12931 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12934 * config/i386/i386.md (define_split, andn): Fix modes.
12936 2016-03-26 Richard Biener <rguenther@suse.de>
12937 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12940 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12942 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12943 as 2nd argument to cl_optimization_restore().
12945 2016-03-25 Richard Henderson <rth@redhat.com>
12948 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12949 * config/aarch64/aarch64-protos.h: Declare it.
12950 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12952 2016-03-25 Alan Modra <amodra@gmail.com>
12955 * config/rs6000/constraints.md (j): Simplify.
12956 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12958 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12959 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12960 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12961 in all constraint alternatives.
12962 (movtd_64bit_nodm): Delete "j" constraint alternative.
12964 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12966 * tree-ssa-propagate.c: Enhance docs for
12967 SSA_PROP_NOT_INTERESTING.
12969 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12971 * doc/extend.texi: Fix typo in documentation to pure attribute.
12973 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12976 * config/pa/pa.md (bswapdi2): Use a scratch register.
12978 2016-03-24 Richard Henderson <rth@redhat.com>
12980 PR middle-end/69845
12981 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12984 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12986 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12987 using ix86_expand_binary_operator instead of gen_andsi3.
12989 2016-03-24 Richard Biener <rguenther@suse.de>
12991 PR tree-optimization/70396
12992 * tree-vect-stmts.c (vectorizable_comparison): Use
12993 get_vectype_for_scalar_type.
12995 2016-03-24 Richard Biener <rguenther@suse.de>
12997 PR middle-end/70370
12998 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12999 with register bases.
13001 2016-03-24 Richard Biener <rguenther@suse.de>
13003 PR tree-optimization/70372
13004 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
13005 build_all_ones_cst to also handle vector types correctly.
13007 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13010 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
13013 2016-03-23 Marek Polacek <polacek@redhat.com>
13016 * doc/invoke.texi: Document -Wignored-attributes.
13018 2016-03-23 Bin Cheng <bin.cheng@arm.com>
13020 PR tree-optimization/69042
13021 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
13022 parameter from 30 to 40.
13024 2016-03-23 Bin Cheng <bin.cheng@arm.com>
13026 PR tree-optimization/69042
13027 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
13028 for use with constant offset stripped in base.
13030 2016-03-23 Richard Biener <rguenther@suse.de>
13032 PR middle-end/70251
13033 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
13034 mode compatibility check.
13035 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13037 2016-03-23 Jeff Law <law@redhat.com>
13039 PR tree-optimization/64058
13040 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
13042 (struct ssa_conflicts): Move up earlier in the file.
13043 (conflicts_, var_map_): New static variables.
13044 (initialize_conflict_count): New function to initialize the
13045 CONFLICT_COUNT field for each conflict pair.
13046 (compare_pairs): Lazily initialize the conflict count and use it
13047 as the first tie-breaker.
13048 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
13049 and wipe conflicts_ and map_ around the call to qsort. Remove
13050 special case for 2 coalesce pairs.
13051 * bitmap.c (bitmap_count_unique_bits): New function.
13052 (bitmap_count_bits_in_word): New function, extracted from
13054 (bitmap_count_bits): Use bitmap_count_bits_in_word.
13055 * bitmap.h (bitmap_count_unique_bits): Declare it.
13057 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
13060 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
13061 transparent alias chain for decl assembler name.
13062 * config/sol2.c (solaris_assemble_visibility): Likewise.
13064 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13066 * config/arm/arm1020e.md (1020call_op): Reduce reservation
13068 (v10_fdivs): Likewise.
13069 (v10_fdivd): Likewise.
13071 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13074 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
13075 to not call fclose twice on file.
13077 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13079 PR tree-optimization/70354
13080 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13081 oprnd0 is wider than oprnd1 and there is a cast from the wider
13082 type to oprnd1, mask it with the mask of the narrower type.
13085 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
13086 Optimize TARGET_STV splitters, if high or low word of last argument
13089 2016-03-22 Jeff Law <law@redhat.com>
13092 tree-ssa-threadbackward.c
13093 (fsm_find_control_statement_thread_paths): Correctly distinguish
13094 between old style jump threads vs FSM jump threads.
13096 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13099 * config/i386/i386.c (scalar_chain::convert_op): Support
13100 uninitialized register usage case.
13102 2016-03-22 Richard Biener <rguenther@suse.de>
13104 PR middle-end/70251
13105 * genmatch.c (gen_transform): Adjust last parameter to a three-state
13107 (capture::gen_transform): ... to change behavior when substituting
13108 a condition into cond or not-cond expr context.
13109 (dt_simplify::gen_1): Adjust.
13110 * gimple-match-head.c: Include gimplify.h for unshare_expr.
13111 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
13112 last change and instead change to
13113 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
13114 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13116 2016-03-22 Anthony Green <green@moxielogic.com>
13118 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
13119 issue for moxiebox targets.
13120 (CC1PLUS_SPEC): Ditto.
13122 2016-03-22 Richard Biener <rguenther@suse.de>
13124 PR middle-end/70333
13125 * fold-const.c (extract_muldiv_1): Properly perform multiplication
13128 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
13130 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
13132 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
13135 * config/i386/i386.c (def_builtin): Handle
13136 OPTION_MASK_ISA_AVX512VL to be and-ed with other
13138 (const struct builtin_description bdesc_special_args[]):
13139 Remove duplicate ISA bits.
13141 2016-03-22 Jakub Jelinek <jakub@redhat.com>
13144 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
13145 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
13146 in a way that works also for AVX512BW.
13149 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
13150 instead of source if operands[1] is xmm16 and above and
13151 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
13152 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
13155 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
13156 on assign if (*from_p) is a comparison, set it to
13157 TREE_NO_WARNING (*from_p).
13159 2016-03-21 Jakub Jelinek <jakub@redhat.com>
13161 PR middle-end/70326
13162 * lra.c (restore_scratches): Ignore deleted insns.
13164 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
13165 Jakub Jelinek <jakub@redhat.com>
13167 PR tree-optimization/70317
13168 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
13171 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
13174 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
13175 of ix86_expand_move.
13177 (movti): Use general_operand for operand 1 predicate.
13179 2016-03-21 Martin Liska <mliska@suse.cz>
13181 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
13183 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
13185 2016-03-21 Martin Liska <mliska@suse.cz>
13188 * ipa-icf.c (sem_function::parse): Skip static
13189 constructors and destructors.
13191 2016-03-21 Jakub Jelinek <jakub@redhat.com>
13194 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
13195 function-like macro, peek following token(s) if it is followed
13196 by CPP_OPEN_PAREN token with optional padding in between, and
13197 if not, don't treat it like a macro.
13199 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
13200 Alexander Monakov <amonakov@ispras.ru>
13202 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
13203 for the stabs debug format.
13205 2016-03-21 Richard Biener <rguenther@suse.de>
13207 PR tree-optimization/70310
13208 * tree-vect-generic.c (expand_vector_condition): Fold the built
13211 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
13214 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
13215 Block third alternative for AVX-512VL target,
13217 2016-03-21 Martin Liska <mliska@suse.cz>
13220 * hsa-brig.c (emit_function_directives): Mark unemitted
13221 global variables for emission.
13222 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
13223 (get_symbol_for_decl): Likewise.
13224 * hsa.h (struct hsa_symbol): New flag.
13226 2016-03-21 Richard Biener <rguenther@suse.de>
13228 PR tree-optimization/70288
13229 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
13230 we do not estimate unsimplified all-constant conditionals or
13231 switches as optimized away.
13233 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
13235 PR rtl-optimization/69102
13236 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
13237 when we have a readonly dependency context.
13239 2016-03-18 Jeff Law <law@redhat.com>
13241 PR rtl-optimization/70263
13242 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
13243 (update_equiv_regs): When trying to move a store to after the insn
13244 that sets the source of the store, make sure the store occurs after
13245 the insn that sets the source of the store. When successful note
13246 the REG_EQUIV note created in the dump file.
13248 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
13249 Bernd Schmidt <bschmidt@redhat.com>
13251 * doc/extend.texi: Document more potential problems with basic asms.
13253 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
13255 PR rtl-optimization/70278
13256 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
13259 2016-03-18 Jason Merrill <jason@redhat.com>
13261 * calls.c (load_register_parameters): Fix zero size sibcall logic.
13263 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
13265 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
13266 values to 128b regs.
13268 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13270 PR tree-optimization/70252
13271 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
13272 boolean vector has a proper number of elements.
13273 (supportable_narrowing_operation): Likewise.
13275 2016-03-18 Tom de Vries <tom@codesourcery.com>
13278 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
13280 2016-03-18 Jakub Jelinek <jakub@redhat.com>
13282 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
13283 instead of replace_rtx for DEBUG_INSNs.
13285 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13287 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
13288 load type reservations.
13290 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
13293 * config/pa/constraints.md: Revert 2015-02-13 change. Use
13294 define_constraint for "Q" and "T" constraints.
13296 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
13298 Tweak the pipeline model for Exynos M1
13300 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
13303 2016-03-17 David Malcolm <dmalcolm@redhat.com>
13306 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13307 where one or both locations aren't within a line_map.
13309 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
13312 * opts.c (finish_options): Don't set flag_pie to the default if
13313 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
13316 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
13318 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13319 true as ALL_REGS argument to replace_rtx.
13321 2016-03-17 Richard Biener <rguenther@suse.de>
13324 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13327 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13330 * rtl.h (replace_rtx): Add ALL_REGS argument.
13331 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
13332 equality and assert mode is the same, instead of just rtx pointer
13334 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13335 true as ALL_REGS argument to replace_rtx.
13337 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
13339 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13340 for boolean vector with vector mode only.
13341 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13343 2016-03-17 Nick Clifton <nickc@redhat.com>
13346 * config/rx/rx.c (rx_print_integer): Print negative constants in
13349 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13352 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13354 2016-03-16 Richard Henderson <rth@redhat.com>
13355 Richard Biener <rguenth@suse.de>
13357 PR middle-end/70240
13358 PR middle-end/68215
13360 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13361 first operand as is_gimple_condexpr.
13363 PR middle-end/70240
13364 PR middle-end/68215
13366 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
13367 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13368 Do not gimplify the result.
13369 (do_unop): Adjust call to tree_vec_extract.
13370 (do_binop): Likewise.
13371 (do_compare): Likewise.
13372 (do_plus_minus): Likewise.
13373 (do_negate): Likewise.
13374 (expand_vector_condition): Likewise.
13375 (do_cond): Likewise.
13377 2016-03-16 Richard Henderson <rth@redhat.com>
13380 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13381 (aarch64_classify_address): Use it.
13382 (aarch64_legitimize_address): Force all subexpressions of PLUS
13383 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
13385 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13386 Richard Biener <rguenth@suse.de>
13389 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13390 return to even if only REGNO is equal, and assert
13393 2016-03-11 Jeff Law <law@redhat.com>
13395 PR rtl-optimization/70224
13396 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13398 2016-03-16 Richard Henderson <rth@redhat.com>
13400 PR middle-end/70199
13401 * function.h (struct function): Add has_forced_label_in_static.
13402 * gimplify.c (force_labels_r): Set it.
13403 * lto-streamer-in.c (input_struct_function_base): Read it.
13404 * lto-streamer-out.c (output_struct_function_base): Write it.
13405 * tree-inline.c (has_label_address_in_static_1): Remove.
13406 (copy_forbidden): Remove fndecl parameter; test
13407 has_forced_label_in_static.
13408 (inline_forbidden_p): Update call to copy_forbidden.
13409 (tree_versionable_function_p): Likewise.
13410 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13411 (chkp_versioning): Likewise.
13412 * tree-inline.h (copy_forbidden): Update decl.
13414 2016-03-16 Marek Polacek <polacek@redhat.com>
13417 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13418 function being thunked if the result type doesn't have fixed size.
13419 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13420 doesn't have fixed size.
13422 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13424 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13425 reporting malformed loop nest.
13427 2016-03-16 Tom de Vries <tom@codesourcery.com>
13430 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13431 nodes.length () == 1 test to before first nodes[0] access.
13433 2016-03-16 Tom de Vries <tom@codesourcery.com>
13435 PR tree-optimization/68715
13436 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13437 single_pred_p test.
13439 2016-03-16 Tom de Vries <tom@codesourcery.com>
13441 PR tree-optimization/68809
13442 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13445 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13446 Sandra Loosemore <sandra@codesourcery.com>
13448 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13449 on leaf attribute. Mention ELF interposition problems.
13451 2016-03-16 Alan Modra <amodra@gmail.com>
13453 PR rtl-optimization/69195
13454 PR rtl-optimization/47992
13455 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13458 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13461 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13463 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13465 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13467 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13469 PR rtl-optimization/70222
13470 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13471 optimization if mode is different from result_mode, queue up masking
13472 of the result in outer_op. Formatting fix.
13474 PR middle-end/70239
13475 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13478 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13480 PR rtl-optimization/69032
13481 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13482 looping backwards over basic block insns.
13484 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13487 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13488 to non-speculative when propagating trap bits.
13490 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13492 PR rtl-optimization/63384
13493 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13494 DEBUG_INSN_P insns.
13496 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13499 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13500 factored out from ...
13501 (sched_analyze_insn): ... here.
13502 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13503 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13504 get_implicit_reg_pending_clobbers in it.
13505 (setup_id_reg_sets): Use setup_id_implicit_regs.
13506 (deps_init_id): Ditto.
13508 2016-03-15 Tom de Vries <tom@codesourcery.com>
13511 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13513 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13514 execute_function_dump.
13515 (execute_one_pass): Don't dump function if it will be dumped after ipa
13518 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13520 * genrecog.c (match_pattern_2): If pred is NULL don't call
13521 safe_predicate_mode on it.
13523 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13525 PR middle-end/70219
13526 * lra-constraints.c (delete_move_and_clobber): Change assertion
13527 to also allow dregno == 0.
13529 2016-03-14 Richard Henderson <rth@redhat.com>
13532 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13533 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13534 (reassociate_bb): Use optimize_vec_cond_expr; avoid
13535 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13538 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13541 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13543 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13545 * lra-constraints.c (split_reg): For hard regs, try to find the
13546 biggest single-register mode used in the function.
13548 2016-03-14 Richard Biener <rguenther@suse.de>
13550 PR tree-optimization/56365
13551 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13552 constants to compare against.
13554 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13557 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13558 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13559 (define_split for the GPR case): Use int_reg_operand instead of
13560 gpc_reg_operand for the output.
13562 2016-03-14 Tom de Vries <tom@codesourcery.com>
13564 PR tree-optimization/70045
13565 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13566 create_empty_if_region_on_edge argument.
13568 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13570 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13571 (STACK_CHECK_PROTECT): Likewise.
13572 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13573 (STACK_CHECK_PROTECT): Likewise.
13574 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13575 (STACK_CHECK_PROTECT): Likewise.
13576 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13577 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13578 (STACK_CHECK_PROTECT): Likewise.
13580 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13582 PR rtl-optimization/69307
13583 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13584 registers in modes that span more than one register.
13586 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13589 * lra-constraints.c (delete_move_and_clobber): New.
13590 (remove_inheritance_pseudos): Use it.
13592 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13595 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13596 the libcall is LCT_THROW.
13597 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13598 for the checking routine.
13600 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13603 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13604 optimization if we have direct move.
13605 (roundu32<mode>2_fprs): Likewise.
13607 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13610 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13612 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13613 Arguments swapped. All callers changed. Take reg_renumber into
13614 account, and Calculate and compare register ranges for hard regs.
13616 2016-03-11 Jeff Law <law@redhat.com>
13618 PR tree-optimization/70190
13619 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13620 Handle cases where we can not extract the taken edge, even though we
13621 found a constant value.
13623 PR tree-optimization/64058
13624 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13625 (num_coalesce_pairs): Move up earlier in file.
13626 (find_coalesce_pair): Initialize the INDEX field for each pair
13628 (compare_pairs): No longer sort on the elements in each pair.
13629 Instead break ties with the index of the coalesce pair.
13631 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13634 * config/aarch64/aarch64-protos.h
13635 (aarch64_save_restore_target_globals): New prototype.
13636 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13637 Call the above when popping pragma.
13638 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13640 (aarch64_set_current_function): Rewrite using the above.
13642 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13644 PR tree-optimization/70177
13645 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13646 (extract_ops_from_tree): ... this. In the 2 argument
13647 overload remove _1 suffix.
13648 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13649 (extract_ops_from_tree): ... this.
13650 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13652 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13653 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13654 extract_ops_from_tree instead of 2 operand one.
13656 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13658 PR tree-optimization/70013
13659 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13660 for constant-pool entries.
13662 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13664 PR rtl-optimization/70174
13665 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13666 followed by gen_lowpart on force_reg instead of just gen_lowpart.
13668 PR tree-optimization/70169
13669 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13670 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
13673 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13674 Jakub Jelinek <jakub@redhat.com>
13677 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13678 of uninitialized values.
13680 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13682 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13684 ("*trunctddd2"): New pattern definition.
13685 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13688 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13690 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13691 definitions for BFP and DFP rounding modes.
13692 ("fixuns_truncdddi2", "fixuns_trunctddi2")
13693 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13694 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13695 ("fix_trunctf<mode>2"): Use the new constants instead of magic
13698 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13700 * config/s390/constraints.md: Adjust comment.
13701 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
13702 s390_decompose_addrstyle_without_index.
13703 * config/s390/predicates.md (shift_count_or_setmem_operand):
13704 Rename to setmem_operand.
13705 * config/s390/s390-protos.h
13706 (s390_decompose_shift_count): Rename to
13707 s390_decompose_addrstyle_without_index.
13708 * config/s390/s390.c (s390_decompose_shift_count)
13709 (s390_mem_constraint, print_shift_count_operand)
13710 (print_operand_address, print_operand): Rename
13711 s390_decompose_shift_count to
13712 s390_decompose_addrstyle_without_index and rename
13713 print_shift_count_operand to print_addrstyle_operand troughout the
13715 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13716 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13717 Rename shift_count_or_setmem_operand to setmem_operand.
13718 * config/s390/vx-builtins.md ("vec_insert<mode>")
13719 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13722 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13725 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13726 Handle overlapping retval and newval.
13728 2016-03-10 Nick Clifton <nickc@redhat.com>
13731 * config/aarch64/aarch64.c
13732 (aarch64_override_options_after_change_1): When forcing
13733 flag_omit_frame_pointer to be true, use a special value that can
13734 be detected if this function is called again, thus preventing
13735 flag_omit_leaf_frame_pointer from being forced to be false.
13737 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13739 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13740 Set x_flag_omit_leaf_frame_pointer when handling
13741 -momit-leaf-frame-pointer.
13743 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13746 * cgraph.c (cgraph_node::dump): Dump split_part and
13747 indirect_call_target.
13748 * cgraph.h (cgraph_node): Add indirect_call_target flag.
13749 * ipa.c (has_addr_references_p): Cleanup.
13750 (is_indirect_call_target_p): New.
13751 (walk_polymorphic_call_targets): Do not mark virtuals that may be
13752 called indirectly as local.
13753 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13755 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13758 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13759 on cxa_pure_virtual.
13761 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13764 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13766 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13769 * tree.c (need_assembler_name_p): Only record main variant type names.
13771 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13774 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13775 Always define to 0 or 1.
13776 (TARGET_FIX_ERR_A53_843419): New macro.
13777 * config/aarch64/aarch64-elf-raw.h
13778 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13779 * config/aarch64/aarch64-linux.h: Likewise.
13780 * config/aarch64/aarch64.c
13781 (aarch64_override_options_after_change_1): Do not default
13782 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13784 (aarch64_attributes): Handle fix-cortex-a53-843419.
13785 (aarch64_can_inline_p): Likewise.
13786 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13788 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
13789 Jakub Jelinek <jakub@redhat.com>
13791 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13792 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13793 DECL_COMMONS if flag_unconstrained_commons is set.
13794 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13795 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13796 (funconstrained-commons): Document.
13798 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13800 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13801 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13803 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
13805 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13806 has a proper number of elements.
13808 2016-03-10 Alan Modra <amodra@gmail.com>
13810 PR rtl-optimization/69195
13811 PR rtl-optimization/47992
13812 * ira.c (recorded_label_ref): Delete.
13813 (update_equiv_regs): Return void.
13814 (indirect_jump_optimize): New function.
13815 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13816 before regstat_compute_ri. Don't rebuild_jump_labels here.
13817 Delete update_regstat.
13819 2016-03-10 Richard Biener <rguenther@suse.de>
13821 PR tree-optimization/70128
13822 * tree-ssa-structalias.c (set_uids_in_ptset): Set
13823 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13825 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13827 PR tree-optimization/70152
13828 * tree-sra.c (replace_removed_params_ssa_names): Copy over
13829 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13832 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13833 instead of gen_sse2_loadlpd.
13834 * config/i386/sse.md (*vec_concatv2df): Rename to...
13835 (vec_concatv2df): ... this.
13837 PR tree-optimization/70127
13838 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13840 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13844 * diagnostic-show-locus.c (compatible_locations_p): New function.
13845 (layout::layout): Sanitize ranges using compatible_locations_p.
13847 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13851 * diagnostic-show-locus.c (layout_range::layout_range): Replace
13852 location_range param with three const expanded_locations * and a
13854 (layout::layout): Replace call to
13855 rich_location::lazily_expand_location with get_expanded_location.
13856 Extract the range and perform location expansion here, passing
13857 the results to the layout_range ctor.
13858 * diagnostic.c (source_range::debug): Delete.
13859 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13860 of rich_location::get_expanded_location.
13861 * gcc-rich-location.c (get_range_for_expr): Delete.
13862 (gcc_rich_location::add_expr): Reimplement to avoid the
13863 rich_location::add_range overload that took a location_range,
13864 passing a location_t instead.
13866 2016-03-09 Richard Biener <rguenther@suse.de>
13867 Jakub Jelinek <jakub@redhat.com>
13869 PR tree-optimization/70138
13870 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13871 Also skip vect_double_reduction_def.
13873 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13876 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13877 if the operand is "m".
13879 2016-03-09 Nathan Sidwell <nathan@acm.org>
13881 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13883 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13885 * config/i386/i386.c (processor_target_table): Fix cost table
13886 intialization order for znver1.
13888 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13890 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13891 - becuase -> because.
13892 * ipa-reference.c (ignore_module_statics): Likewise.
13893 * cgraph.c (cgraph_node::get_body): Likewise.
13894 * ipa-inline.c (early_inliner): Likewise.
13895 * ipa-devirt.c (types_same_for_odr): Likewise.
13896 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13897 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13899 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13901 * tree-ssa-math-opts.c: Fix typo in comment.
13903 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13906 * config/i386/i386.c (scalar_chain::make_vector_copies,
13907 scalar_chain::convert_reg): Call end_sequence in between
13908 get_insns and emit_conversion_insns rather than after both
13911 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13914 * config/i386/i386.h (machine_function): Add
13915 pc_thunk_call_expanded flag.
13916 (ix86_pc_thunk_call_expanded): New define.
13917 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13918 (*set_got): Rename insn pattern from set_got.
13919 (*set_got_labelled): Rename inst pattern from set_got_labelled.
13920 * config/i386/i386.c (ix86_compute_frame_layout): Use
13921 ix86_pc_thunk_call_expanded to prevent red-zone.
13923 2016-03-07 Martin Jambor <mjambor@suse.cz>
13925 * hsa.h (hsa_get_ctor_statements): Declare.
13926 (hsa_get_dtor_statements): Likewise.
13927 (hsa_get_kernel_dispatch_type): Likewise.
13928 * hsa.c (hsa_get_ctor_statements): New function.
13929 (hsa_get_dtor_statements): Likewise.
13930 (hsa_get_kernel_dispatch_type): Likewise.
13931 * hsa-brig.c (hsa_cdtor_statements): Removed.
13932 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13933 hsa_get_dtor_statements.
13934 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13935 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13937 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13939 * config/arm/arm-cores.def (cortex-r8): New.
13940 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13941 * config/arm/arm-tune.md: Likewise.
13942 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13944 2016-03-07 Martin Sebor <msebor@redhat.com>
13946 PR rtl-optimization/19705
13947 * doc/invoke.texi (Options That Control Optimization): Clarify
13948 -fno-branch-count-reg.
13950 2016-02-26 Richard Biener <rguenther@suse.de>
13951 Jeff Law <law@redhat.com>
13953 PR tree-optimization/69740
13954 * cfghooks.c (remove_edge): Request loop fixups if we delete
13955 an edge that might turn an irreducible loop into a natural
13957 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13958 Move after definition of loops_state_clear.
13960 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13962 PR rtl-optimization/69052
13963 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13966 2016-03-07 Tom de Vries <tom@codesourcery.com>
13968 PR tree-optimization/70116
13969 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13970 is_tm_ending stmts and ubsan/asan internal functions.
13971 (find_duplicate): Use it. Don't test is_tm_ending here.
13973 2016-03-07 Richard Biener <rguenther@suse.de>
13975 PR tree-optimization/70115
13976 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13977 (propagate_constants_for_unrolling): Use replace_uses_by.
13979 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13981 PR middle-end/69916
13982 * omp-low.c (struct oacc_loop): Add ifns.
13983 (new_oacc_loop_raw): Initialize it.
13984 (finish_oacc_loop): Clear mask & flags if no ifns.
13985 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13986 (oacc_loop_xform_loop): Add ifns arg & adjust.
13987 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13989 2016-03-07 Richard Henderson <rth@redhat.com>
13992 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13993 (insert_value_copy_on_edge): Likewise.
13995 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13997 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13999 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14002 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
14004 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14006 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
14008 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14010 Fix sseimul type attribute.
14011 * config/i386/znver1.md
14012 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
14013 znver1_sseimul_avx256_load) : Fix the type attribute.
14014 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
14015 pipe usage and latency.
14017 2016-03-05 Jakub Jelinek <jakub@redhat.com>
14020 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
14021 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
14024 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
14027 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
14029 PR rtl-optimization/69941
14030 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
14031 the reg share its mode.
14033 2016-03-04 Jeff Law <law@redhat.com>
14035 PR tree-optimization/69196
14036 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14037 If the both SSA_NAMEs are anonymous, then consider them unassociated
14038 and include the PHI in the statement count.
14040 2016-03-05 Tom de Vries <tom@codesourcery.com>
14042 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
14043 construct in oacc routine. Check for oacc region in oacc routine.
14045 2016-03-04 Jakub Jelinek <jakub@redhat.com>
14048 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
14049 2016-02-22 changes, instead don't recurse if RECUR is already true.
14050 Don't change *dynamic_check if RECUR. Adjust recursive caller
14051 to pass true to the new argument.
14052 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
14055 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14056 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
14058 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
14060 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
14062 PR rtl-optimization/57676
14063 * lra-assigns.c (lra_assign): Guard test for maximum iterations
14064 with flag_checking.
14066 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
14068 * tree-vect-patterns.c (search_type_for_mask): Handle
14069 comparison of booleans.
14071 2016-03-04 Jakub Jelinek <jakub@redhat.com>
14073 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
14077 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
14078 all other ops that have dw_val_class_die_ref operands,
14079 and DW_OP_GNU_entry_value.
14081 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14083 PR rtl-optimization/69904
14084 * config/arm/arm.c (arm_cannot_copy_insn_p):
14085 Return true for load-exclusive instructions.
14087 2016-03-03 Jakub Jelinek <jakub@redhat.com>
14090 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
14091 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
14092 the pattern no matter if it is used just by non-pattern, pattern
14094 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
14095 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14096 oprnd1 def_stmt is in pattern, don't look through it.
14098 2016-03-03 Marek Polacek <polacek@redhat.com>
14100 PR middle-end/70050
14101 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
14103 2016-03-03 Martin Liska <mliska@suse.cz>
14105 PR tree-optimization/70043
14106 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
14107 previous statement if we see a debug statement.
14109 2016-03-03 Richard Biener <rguenther@suse.de>
14111 PR tree-optimization/55936
14112 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
14113 parameter and guard unsafe equivalence use.
14114 (vrp_evaluate_conditional_warnv_with_ops): Always use
14115 safe equivalences but not via the quadratic compare_names
14118 2016-03-03 Michael Collison <michael.collison@linaro.org>
14121 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
14122 for operand 1 to s_register_operand. Change predicate for operand
14123 2 to arm_not_immediate_operand.
14125 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
14127 * doc/tm.texi: Regenerated.
14129 2016-03-02 Richard Henderson <rth@redhat.com>
14132 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
14133 simplification when all args are positive non-fixed registers.
14135 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14137 * target.def (lra_p): Specify that new ports should use LRA.
14139 2016-03-02 Jakub Jelinek <jakub@redhat.com>
14142 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
14143 gimplify_type_sizes the type they refer to.
14144 (omp_notice_variable): Handle reference vars to VLAs.
14145 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
14146 reference to VLA decls in the second pass instead of first pass.
14148 2016-03-02 Tom de Vries <tom@codesourcery.com>
14150 PR tree-optimization/68659
14151 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
14152 new_expr == NULL_TREE.
14153 (get_new_name): Handle ADDR_EXPR.
14155 2016-03-02 Bin Cheng <bin.cheng@arm.com>
14157 PR rtl-optimization/69052
14158 * loop-invariant.c (canonicalize_address): New function.
14159 (inv_can_prop_to_addr_use): Check validity of address expression
14160 which is canonicalized by above function.
14162 2016-03-02 Alan Modra <amodra@gmail.com>
14165 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
14168 2016-03-02 Jakub Jelinek <jakub@redhat.com>
14171 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
14172 (*movhi_internal): Put mask moves from and to memory separately
14173 from moves from/to GPRs.
14175 2016-03-02 Richard Biener <rguenther@suse.de>
14177 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
14178 GENERIC expressions in GIMPLE.
14180 2016-03-02 Richard Biener <rguenther@suse.de>
14182 * config/i386/i386.c (type_natural_mode): Fix typo.
14184 2016-03-02 Nick Clifton <nickc@redhat.com>
14186 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
14188 2016-03-02 Richard Biener <rguenther@suse.de>
14189 Uros Bizjak <ubizjak@gmail.com>
14192 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
14194 2016-03-02 Richard Biener <rguenther@suse.de>
14196 PR middle-end/67278
14197 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
14199 2016-03-02 Marek Polacek <polacek@redhat.com>
14202 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
14203 "is promoted to" warning.
14205 2016-03-01 DJ Delorie <dj@redhat.com>
14207 * config.gcc: Deprecate mep-*.
14209 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
14211 PR middle-end/70025
14212 * lra-constraints.c (regno_val_use_in): New.
14213 (match_reload): Use it instead of regno_use_in.
14215 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
14217 PR rtl-optimization/70007
14218 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
14219 references present in REG_EQUAL notes attached to non-SET patterns.
14221 2016-03-01 Jeff Law <law@redhat.com>
14223 PR tree-optimization/69196
14224 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14225 Appropriately clamp the number of statements to copy when the
14226 thread path does not traverse a loop backedge.
14228 PR tree-optimization/69196
14229 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14230 Do count some PHIs in the thread path against the insn count. Decrease
14231 final statement count by one as the control statement in the last
14232 block will get removed. Remove special cased code for handling PHIs
14235 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
14238 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
14239 asm dialect alternatives to explicit GOTPCREL calls.
14241 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
14244 * ira.c (do_reload): Issue warning for generic stack checking here...
14245 * reload1.c (reload): ...instead of here and streamline it.
14247 2016-03-01 Nick Clifton <nickc@redhat.com>
14249 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
14251 2016-03-01 Richard Biener <rguenther@suse.de>
14253 PR tree-optimization/69983
14254 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
14255 types and fall back to operand_equal_p.
14257 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14260 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14262 * config/s390/constraints.md ("jm8"): New constraint.
14263 * config/s390/predicates.md ("const_int_8bitset_operand"): New
14265 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
14267 ("*setmem_long<setmem_and>"): New pattern.
14268 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
14270 ("*setmem_long_31z<setmem_and>"): New pattern.
14271 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
14272 New substitution rules with the required attributes.
14275 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14278 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14280 * gensupport.c (process_substs_on_one_elem): Split loop to
14281 complete mark_operands_used_in_match_dup on all expressions in the
14283 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14284 and remove function.
14286 2016-03-01 Richard Biener <rguenther@suse.de>
14288 PR middle-end/70022
14289 * fold-const.c (fold_indirect_ref_1): Fix range checking for
14290 vector BIT_FIELD_REF extract.
14292 2016-03-01 Richard Biener <rguenther@suse.de>
14294 PR tree-optimization/69994
14295 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
14297 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14299 PR tree-optimization/69956
14300 * tree-vect-stmts.c (supportable_widening_operation): Support
14301 multi-step conversion of boolean vectors.
14302 (supportable_narrowing_operation): Likewise.
14304 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14306 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14309 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14311 * config/s390/subst.md (DSI_VI): New mode iterator.
14312 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14313 * config/s390/vector.md ("vec_set<mode>"): Move expander before
14314 the insn definition.
14315 ("*vec_set<mode>"): Change predicate and add alternative to
14316 support only either register or const_int operands as element
14318 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14320 ("vec_extract<mode>"): New expander.
14321 ("*vec_extract<mode>"): New insn definition supporting reg and
14322 const_int element selectors.
14323 ("*vec_extract<mode>_plus"): New insn definition supporting
14324 reg+const_int element selectors.
14325 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14326 following expander+insn definition.
14327 ("<vec_shifts_name><mode>3"): New expander.
14328 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14330 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14332 * config/s390/s390.md ("*tabort_1"): Change predicate to
14333 nonmemory_operand. Add a second alternative to cover
14334 register as well as const int operands.
14335 ("*tabort_1_plus"): New pattern definition.
14337 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14339 * config/s390/s390.md ("*ashrdi3_cc_31")
14340 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14341 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14342 Merge insn definitions into ...
14343 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14344 New pattern definition.
14345 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14346 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14347 ("*ashr<mode>3_and"): Merge insn definitions into ...
14348 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14349 New pattern definition.
14350 * config/s390/subst.md ("addr_style_op_cc_subst")
14351 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14352 substitutions patterns plus attributes.
14353 Add ashiftrt to SUBST iterator.
14355 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14357 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14358 op2 to nonmemory_operand.
14359 ("*<shift>di3_31", "*<shift>di3_31_and"):
14360 Merge into single pattern definition ...
14361 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14362 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14363 pattern definition ...
14364 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14365 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14368 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14370 * config/s390/predicates.md (const_int_6bitset_operand): New
14372 * config/s390/s390.md: Include subst.md.
14373 ("rotl<mode>3"): New expander.
14374 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14376 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14377 * config/s390/subst.md: New file.
14379 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14381 * config/s390/s390.md ("op_type", "atype", "length" attributes):
14382 Remove RRR type. It doesn't really exist.
14383 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14385 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14386 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14387 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14388 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14389 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14390 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14391 `enabled' attribute.
14393 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14395 * gensupport.c (process_substs_on_one_elem): Split loop to
14396 complete mark_operands_used_in_match_dup on all expressions in the
14398 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14399 and remove function.
14401 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14404 * config/sparc/sparc.c (NWORDS_UP): Rename to...
14405 (CEIL_NWORDS): ...this. Use CEIL macro.
14406 (compute_fp_layout): Adjust to above renaming.
14407 (function_arg_union_value): Likewise.
14408 (sparc_arg_partial_bytes): Likewise.
14409 (sparc_function_arg_advance): Likewise.
14411 2016-02-29 Jeff Law <law@redhat.com>
14413 PR tree-optimization/70005
14414 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14415 where an object with a boolean range is compared against a value
14418 PR tree-optimization/69999
14419 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14420 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14423 2016-02-29 Richard Biener <rguenther@suse.de>
14425 PR tree-optimization/69994
14426 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14427 (get_unary_op): Look through nop conversions.
14428 (ops_equal_values_p): New function, look for equality diregarding
14430 (eliminate_plus_minus_pair): Use ops_equal_values_p
14431 (repropagate_negates): Do not use get_unary_op here.
14433 2016-02-29 Martin Liska <mliska@suse.cz>
14435 * system.h: Poison ENABLE_CHECKING macro.
14437 2016-02-29 Martin Liska <mliska@suse.cz>
14439 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14440 is presented in dump flags.
14441 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14442 (hsa_regalloc): Likewise.
14444 2016-02-19 Richard Biener <rguenther@suse.de>
14446 PR tree-optimization/69980
14447 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14448 permutation of those we need to keep.
14450 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14453 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14454 (NWORDS_UP): ...this
14455 (init_cumulative_args): Minor tweaks.
14456 (sparc_promote_function_mode): Likewise.
14457 (scan_record_type): Delete.
14458 (traverse_record_type): New function template.
14459 (classify_data_t): New structure type.
14460 (classify_registers): New inline function.
14461 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14462 exhausted. Instantiate traverse_record_type on classify_registers and
14463 deal with the case of a structure passed in slot #15 with no FP field
14465 (assign_data_t): New structure type.
14466 (compute_int_layout): New static function.
14467 (compute_fp_layout): Likewise.
14468 (count_registers): New inline function.
14469 (assign_int_registers): New static function.
14470 (assign_fp_registers): Likewise.
14471 (assign_registers): New inline function.
14472 (function_arg_record_value_1): Delete.
14473 (function_arg_record_value_2): Likewise.
14474 (function_arg_record_value_3): Likewise.
14475 (function_arg_record_value): Adjust to above changes. Instantiate
14476 traverse_record_type on count_registers to first count the number of
14477 registers to be used and then on assign_registers to assign them.
14478 (function_arg_union_value): Adjust to above renaming.
14479 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
14480 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
14481 case of a structure passed in slot #15
14482 (sparc_function_arg_advance): Likewise.
14483 (function_arg_padding): Minor tweak.
14485 2016-02-29 Richard Biener <rguenther@suse.de>
14487 PR tree-optimization/69720
14488 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14489 the adjustment_def path for possibly vectorized defs.
14490 (vect_create_epilog_for_reduction): Handle vectorized initial
14493 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14495 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14497 2016-02-27 Jeff Law <law@redhat.com>
14500 2016-02-26 Richard Biener <rguenther@suse.de>
14501 Jeff Law <law@redhat.com>
14503 PR tree-optimization/69740
14504 * cfghooks.c (remove_edge): Request loop fixups if we delete
14505 an edge that might turn an irreducible loop into a natural
14508 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14510 PR rtl-optimization/69896
14511 * tree-vect-generic.c (get_compute_type): Avoid single element
14514 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14516 Rename the AArch64 tuning option and related functions to enable the
14517 Newton series for the reciprocal square root to reflect its
14518 approximative characteristic.
14520 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14521 function to "aarch64_emit_approx_rsqrt".
14522 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14523 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14524 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14525 (xgene1_tunings): Likewise.
14526 (use_rsqrt_p): Likewise.
14527 (aarch64_emit_swrsqrt): Use new function name.
14528 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14529 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14530 text explaining this option.
14531 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14533 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14536 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14537 complain about -mallow-movmisalign without -mvsx if
14538 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14540 2016-02-26 Joel Sherrill <joel@rtems.org>
14542 * config.gcc: Add x86_64-*-rtems*.
14543 * config/i386/rtems-64.h: New file.
14545 2016-02-26 Joel Sherrill <joel@rtems.org>
14547 * config.gcc: Add aarch64-*-rtems*.
14548 * config/aarch64/rtems.h: New file.
14550 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14553 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14554 shift amount using %h. Add comment.
14556 2016-02-26 Richard Biener <rguenther@suse.de>
14557 Jeff Law <law@redhat.com>
14559 PR tree-optimization/69740
14560 * cfghooks.c (remove_edge): Request loop fixups if we delete
14561 an edge that might turn an irreducible loop into a natural
14564 2016-02-26 Martin Jambor <mjambor@suse.cz>
14566 PR middle-end/69920
14567 * tree-sra.c (sra_modify_assign): Do not remove loads of
14568 uninitialized aggregates to SSA_NAMEs.
14570 2016-02-26 Richard Henderson <rth@redhat.com>
14573 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14574 pseudo in case the target rtx matches the source of the left
14577 2016-02-26 Martin Jambor <mjambor@suse.cz>
14580 * hsa.h (hsa_type_packed_p): Declare.
14581 * hsa.c (hsa_type_packed_p): New function.
14582 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14584 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14585 * hsa-brig.c (emit_basic_insn): Likewise.
14587 2016-02-26 Martin Jambor <mjambor@suse.cz>
14590 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14592 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14594 2016-02-26 Martin Jambor <mjambor@suse.cz>
14596 * hsa.h (is_a_helper): New overload for hsa_op_immed for
14597 hsa_op_with_type operands.
14598 (hsa_unsigned_type_for_type): Declare.
14599 * hsa.c (hsa_unsigned_type_for_type): New function.
14600 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14601 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14602 the finalizer. Do not emit extra move.
14604 2016-02-26 Martin Jambor <mjambor@suse.cz>
14606 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14607 atomic operations in private segment.
14609 2016-02-26 Martin Jambor <mjambor@suse.cz>
14611 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14612 statements to wi->info. Also disallow omp simd constructs.
14613 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14614 for not gridifying. Dump special string for omp_for.
14616 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14619 * config/aarch64/aarch64.c (aarch64_set_current_function):
14620 Save/restore target globals when switching to
14621 target_option_default_node.
14623 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14626 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14627 Return 0 if !SHIFT_COUNT_TRUNCATED.
14629 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14630 Eric Botcazou <ebotcazou@adacore.com>
14632 PR rtl-optimization/69891
14633 * dse.c (scan_insn): If we can't figure out memset arguments
14634 or they are non-constant, call clear_rhs_from_active_local_stores.
14636 2016-02-26 Martin Liska <mliska@suse.cz>
14638 * doc/extend.texi: Mention clog10, clog10f an clog10l
14639 in Builtins section.
14641 2016-02-26 Martin Liska <mliska@suse.cz>
14643 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14645 (resolve_args_picking_1): Likewise.
14646 * dwarf2out.h (struct GTY): Likewise.
14648 2016-02-26 Martin Liska <mliska@suse.cz>
14650 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14651 with flag_checking.
14652 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14654 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14655 Martin Liska <mliska@suse.cz>
14657 * doc/install.texi: Mention --enable-valgrind-annotations.
14659 2016-02-26 Richard Biener <rguenther@suse.de>
14661 PR tree-optimization/69551
14662 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14663 looking through aliases adjust DECL_PT_UID to refer to the
14664 ultimate alias target.
14666 2016-02-25 Martin Liska <mliska@suse.cz>
14668 PR middle-end/69919
14669 * alloc-pool.c (after_memory_report): New variable.
14670 * alloc-pool.h (base_pool_allocator ::release): Do not use
14671 the infrastructure if after_memory_report.
14672 * toplev.c (toplev::main): Mark after memory report.
14674 2016-02-25 Richard Biener <rguenther@suse.de>
14676 PR tree-optimization/48795
14677 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14679 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14682 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
14683 offloading is enabled and -fopenacc or -fopenmp is specified.
14684 (CRTOFFLOADEND): Likewise.
14685 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14686 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14687 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14688 (offload_objects_file_name): New static var.
14689 (tool_cleanup): Remove offload_objects_file_name file.
14690 (find_offloadbeginend): Replace with ...
14691 (find_crtoffloadtable): ... this.
14692 (run_gcc): Remove offload_argc and offload_argv.
14693 Get offload_objects_file_name from -foffload-objects=... option.
14694 Read names of object files with offload from this file, pass them to
14695 compile_images_for_offload_targets. Don't call find_offloadbeginend and
14696 don't pass offloadbegin and offloadend to the linker. Don't pass
14697 offload non-LTO files to the linker, because now they're not claimed.
14699 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
14702 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14703 on builtin_unreachable.
14705 2016-02-25 Jakub Jelinek <jakub@redhat.com>
14707 PR rtl-optimization/69896
14708 * regcprop.c: Include cfgrtl.h.
14709 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14710 than remembered mode, either delete it (if noop_move_p), or
14711 treat like copy_p but not noop_p instruction.
14713 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14716 * dwarf2out.c (gen_variable_die): Work around buggy LTO
14717 - allow NULL decl for Fortran DW_TAG_common_block variables.
14719 2016-02-24 Jason Merrill <jason@redhat.com>
14721 * common.opt (flifetime-dse): Add -flifetime-dse=1.
14723 2016-02-24 Richard Biener <rguenther@suse.de>
14724 Jakub Jelinek <jakub@redhat.com>
14726 PR middle-end/69760
14727 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14728 conditionally executed ops to well-defined overflow behavior.
14730 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14732 PR middle-end/69915
14733 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14736 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14738 PR rtl-optimization/69886
14739 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14740 argument. Use it when checking validity of set instructions.
14741 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14742 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14744 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14745 * store-motion.c (find_moveable_store): Update
14746 can_assign_to_reg_without_clobbers_p callsite.
14748 2016-02-24 Richard Biener <rguenther@suse.de>
14750 PR middle-end/68963
14751 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14753 (record_nonwrapping_iv): Do not fall back to the low/high bound
14754 for non-constant IV bases if the stmt is not always executed.
14756 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14758 * config/arm/arm-cores.def (cortex-a32): New entry.
14759 * config/arm/arm-tables.opt: Regenerate.
14760 * config/arm/arm-tune.md: Regenerate.
14761 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14762 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14763 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14764 for -mcpu and -mtune.
14766 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14769 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14770 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14771 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14772 (atomic_loaddi_1): Delete.
14773 (atomic_loaddi): Rewrite expander using the above changes.
14775 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14778 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14781 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14782 Richard Biener <rguenth@suse.de>
14784 PR middle-end/69909
14785 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14786 set_mem_attributes if tem is SSA_NAME which got expanded
14789 2016-02-24 Richard Biener <rguenther@suse.de>
14791 PR tree-optimization/69907
14792 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14793 end of permutations for BB vectorization.
14795 2016-02-24 Christian Bruel <christian.bruel@st.com>
14797 * config/arm/arm-c.c (arm_option_override): Initialize
14798 target_option_current_node.
14799 * config/arm/arm.c (arm_pragma_target_parse): Replace
14800 build_target_option_node call by target_option_current_node.
14801 Set target_option_current_node.
14804 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
14807 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14808 define_insn_and_split to define_insn.
14809 (zero_extendqi<mode>2_dot2): Same.
14810 (extendqi<mode>2_dot): Same.
14811 (extendqi<mode>2_dot2): Same.
14813 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14815 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14816 and add bypass for AES{D,E} and AESMC pairs.
14817 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14820 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14822 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14823 series for reciprocal square root in Exynos M1.
14825 2016-02-23 Martin Sebor <msebor@redhat.com>
14828 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14829 __builtin_alloca_with_align.
14831 2016-02-23 Richard Henderson <rth@redhat.com>
14833 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14834 (ix86_register_pragmas): Remove __seg_tls.
14835 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14836 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14837 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14838 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14839 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14840 * doc/extend.texi (__seg_tls): Remove item.
14842 2016-02-23 Richard Biener <rguenther@suse.de>
14844 * alloc-pool.h (struct allocation_object): Make id member
14845 conditional on CHECKING_P again.
14846 (get_instance): Adjust.
14847 (base_pool_allocator): Likewise.
14849 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
14851 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14852 (parallelize_loops): In OpenACC kernels mode, set n_threads to
14854 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14856 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14858 2016-02-23 Richard Biener <rguenther@suse.de>
14860 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14861 * bitmap.h (struct bitmap_usage): Likewise.
14862 (bitmap_move): Declare.
14863 * bitmap.c (register_overhead): Take size_t argument.
14864 (bitmap_move): New function.
14865 * df-problems.c (df_rd_transfer_function): Use bitmap_move
14866 to properly account overhead.
14867 * tree.c (free_node): Use tree_size.
14869 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14872 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14873 when inverting comparison.
14876 * common.opt (Wunreachable-code): Add Warning flag.
14878 2016-02-23 Mark Wielaard <mjw@redhat.com>
14879 Jakub Jelinek <jakub@redhat.com>
14882 * cgraphunit.c (check_global_declaration): Check main_input_filename
14883 and DECL_SOURCE_FILE are not NULL.
14885 2016-02-23 Martin Jambor <mjambor@suse.cz>
14887 PR tree-optimization/69666
14888 * tree-sra.c (sra_modify_assign): Do not attempt to create
14889 default_def replacements for unscalarizable regions.
14891 2016-02-20 Mark Wielaard <mjw@redhat.com>
14894 * cgraphunit.c (check_global_declaration): Check level of
14895 warn_unused_const_variable and main_input_filename.
14896 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14897 (-Wunused-variable): For C implies -Wunused-const-variable=1.
14898 (-Wunused-const-variable): Explain levels 1 and 2.
14900 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14903 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14904 identical arguments. Formatting and spelling fixes.
14907 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14912 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14913 and m68k-devices.def.
14914 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14915 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14917 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14919 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14920 and HImode registers.
14922 2016-02-22 Richard Biener <rguenther@suse.de>
14924 PR tree-optimization/69882
14925 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14926 preserve permutations present because of gaps.
14927 (vect_supported_load_permutation_p): Always continue checking
14928 permutations after vect_attempt_slp_rearrange_stmts.
14930 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14932 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14933 min_profitable_estimate, rather than min_profitable_iters.
14935 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14938 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14939 SImode for last match_operand.
14941 2016-02-22 Martin Liska <mliska@suse.cz>
14943 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14944 return bitsize - 1 as the return value.
14946 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14950 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14951 Handle negative shift counts.
14952 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14953 force_reg on the shift constant.
14954 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
14955 (lshrsi3_d): Handle negative shift counts.
14957 2016-02-22 Richard Biener <rguenther@suse.de>
14958 Tom de Vries <tom@codesourcery.com>
14960 * graph.c: Include dumpfile.h.
14961 (print_graph_cfg): Split into three overloads.
14962 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14964 2016-02-22 Tom de Vries <tom@codesourcery.com>
14966 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14969 2016-02-22 Richard Biener <rguenther@suse.de>
14972 * ipa-inline-transform.c (inline_call): When not updating
14973 overall summaries adjust self size by the growth estimate.
14974 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14975 hash-set, do not update overall summaries here. Renamed from ...
14976 (inline_to_all_callers): ... this which is now wrapping the
14977 above and performing delayed overall summary update.
14978 (early_inline_small_functions): Delay updating of the overall
14981 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14983 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14986 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14989 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14990 :%* in %:gt() argument.
14991 (greater_than_spec_func): Adjust for expecting only numbers,
14992 if there are more than two numbers, compare the last two.
14994 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14996 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14997 -Wnarrowing with -std.
14999 2016-02-19 Jakub Jelinek <jakub@redhat.com>
15002 * expr.c (store_field): Don't use bit-field path if exp is
15003 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
15004 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
15005 and the assignment can be performed by bitwise copy. Formatting
15008 PR middle-end/69838
15009 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
15010 call copy_reg_eh_region_note_forward on before and/or after sequences
15011 and remove note from insn if it no longer can throw.
15014 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
15015 if TARGET_AVX512BW.
15017 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15019 * config/s390/vector.md: Add missing commutative operand markers
15020 to the patterns which qualify for one.
15021 * config/s390/vx-builtins.md: Likewise.
15023 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15025 * config/s390/vector.md (VI, VI_QHS): Add single element vector
15026 types to mode iterators.
15027 (vec_double): ... and mode attribute.
15028 * config/s390/vx-builtins.md (non_vec_int): Likewise.
15030 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15032 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
15033 Change the predicate of op2 from nonimmediate to general and let
15034 reload fix it if necessary.
15036 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15038 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
15040 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15042 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
15045 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15047 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
15048 * config/s390/s390.c (s390_expand_vec_movstr): New function.
15049 * config/s390/s390.md ("movstr<P:mode>"): Call
15050 s390_expand_vec_movstr.
15052 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15054 * config/s390/s390.md: Add missing output modifier for operand 1
15055 to print it as address properly.
15057 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15059 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
15060 * config/s390/2964.md: New file.
15061 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
15062 of insn grouping attributes depending on the CPU level.
15063 (s390_get_unit_mask): New function.
15064 (s390_sched_score): Remove the OOO from the scheduling macros.
15065 Add loop to calculate a score for the instruction mix.
15066 (s390_sched_reorder): Likewise plus improve debug output.
15067 (s390_sched_variable_issue): Rename macros as above. Calculate
15068 the unit distances after actually scheduling an insn. Improve
15070 (s390_sched_init): Clear last_scheduled_unit_distance array.
15071 * config/s390/s390.md: Include 2964.md.
15073 2016-02-18 Jakub Jelinek <jakub@redhat.com>
15076 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
15077 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
15078 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
15079 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
15080 *avx512f_<code>v8div16qi2_mask_1): New insns.
15082 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15085 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
15088 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
15089 earlyclobber from target. Use wF constraint for fused memory
15091 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
15093 2016-02-18 Jakub Jelinek <jakub@redhat.com>
15094 Martin Liska <mliska@suse.cz>
15097 * cfgexpand.c (asan_sanitize_stack_p): New function.
15098 (partition_stack_vars): Use the function.
15099 (expand_stack_vars): Likewise.
15100 (defer_stack_allocation): Likewise.
15101 (expand_used_vars): Likewise.
15103 2016-02-18 Richard Biener <rguenther@suse.de>
15105 PR middle-end/69553
15106 * fold-const.c (operand_equal_p): Properly compare offsets for
15107 IMAGPART_EXPR and ARRAY_REF.
15109 2016-02-18 Nick Clifton <nickc@redhat.com>
15113 * config/arm/arm.c (arm_option_override_internal): Disable
15114 interworking if the target does not support thumb instructions.
15115 (arm_reload_in_hi): Handle the case where a register to register
15116 move needs reloading because there is no simple pattern to handle
15118 (arm_reload_out_hi): Likewise.
15120 2016-02-18 Richard Biener <rguenther@suse.de>
15122 PR middle-end/69854
15123 * match.pd: Don't use fold_binary or fold_unary for folding
15126 2016-02-17 Jakub Jelinek <jakub@redhat.com>
15129 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
15130 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
15131 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
15132 warn on gimple_no_warning_p statements.
15134 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
15136 * doc/extend.texi (C++ Attributes): Correct description of
15137 warn_unused type attribute.
15139 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15141 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
15142 correct instruction.
15144 2016-02-17 Richard Biener <rguenther@suse.de>
15146 PR rtl-optimization/69609
15147 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
15148 (find_traces_1_round): When ending a trace update cached priority
15150 (bb_to_key): Use cached priority when available.
15151 (copy_bb): Initialize cached priority.
15152 (reorder_basic_blocks_software_trace_cache): Likewise.
15154 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15157 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
15159 (aarch64_comparison_operator): Break overly long line into two.
15160 (aarch64_comparison_operation): Likewise.
15161 * config/aarch64/aarch64.md (cstorecc4): Use
15162 aarch64_comparison_operator_mode instead of
15163 aarch64_comparison_operator.
15164 (cstore<mode>4): Likewise.
15165 (aarch64_cstore<mode>): Likewise.
15166 (*cstoresi_insn_uxtw): Likewise.
15167 (cstore<mode>_neg): Likewise.
15168 (*cstoresi_neg_uxtw): Likewise.
15170 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15173 * config/arm/predicates.md (arm_comparison_operator_mode):
15175 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
15176 instead of arm_comparison_operator.
15177 (*mov_negscc): Likewise.
15178 (*mov_notscc): Likewise.
15179 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
15180 (*thumb2_mov_negscc): Likewise.
15181 (*thumb2_mov_negscc_strict_it): Likewise.
15182 (*thumb2_mov_notscc): Likewise.
15183 (*thumb2_mov_notscc_strict_it): Likewise.
15185 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
15187 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
15188 Add missing return.
15190 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
15192 * config/visium/visium.c (machine_libfunc_index): New enum.
15193 (machine_libfuncs): New structure.
15194 (visium_libfuncs): New static variable.
15195 (TARGET_INIT_LIBFUNCS): Define to...
15196 (visium_init_libfuncs): ...this. New function.
15197 (expand_block_move_4): Use the appropriate libfunc.
15198 (expand_block_move_2): Likewise.
15199 (expand_block_move_1): Likewise.
15200 (expand_block_set_4): Likewise.
15201 (expand_block_set_2): Likewise.
15202 (expand_block_set_1): Likewise.
15203 (visium_trampoline_init): Likewise.
15205 2016-02-17 Nick Clifton <nickc@redhat.com>
15207 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
15208 TI's devices.csv file as of March 2016.
15210 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
15213 * opts-global.c (handle_common_deferred_options): Introduce and
15214 initialize two global variables to remember command-line options
15215 specifying a stack-limiting register.
15216 * opts.h: Add extern declarations of the two new global variables.
15217 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
15218 variable based on the values of the two new global variables.
15220 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15223 * common.opt (Wnonnull-compare): New warning.
15224 * doc/invoke.texi (-Wnonnull): Remove text about comparison
15225 of arguments against NULL.
15226 (-Wnonnull-compare): Document.
15227 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
15228 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
15229 * passes.def (pass_warn_nonnull_compare): Add.
15230 * gimple-ssa-nonnull-compare.c: New file.
15232 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15234 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
15235 AARCH64_EXTRA_TUNE_RECIP_SQRT.
15237 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15239 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
15240 reciprocal sqrt for -mlow-precision-recip-sqrt.
15242 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15243 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15245 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
15246 always use lane loads to construct non-constant vectors.
15248 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15250 * config/aarch64/aarch64.md
15251 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
15252 constraints for operand 3.
15253 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
15255 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15256 Richard Biener <rguenther@suse.de>
15258 PR tree-optimization/69820
15259 * tree-vect-patterns.c (type_conversion_p): Return false if
15260 *orig_type is unsigned single precision or boolean.
15261 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
15264 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15266 PR rtl-optimization/69764
15267 PR rtl-optimization/69771
15268 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
15269 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
15271 2016-02-16 Richard Biener <rguenther@suse.de>
15273 PR tree-optimization/69776
15274 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
15276 (indirect_refs_may_alias_p): Likewise.
15277 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
15278 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
15279 according to tbaa_p.
15280 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
15281 (optimize_stmt): For redundant store discovery do not allow tbaa.
15283 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
15285 PR tree-optimization/69714
15286 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
15287 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
15289 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
15291 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
15292 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
15293 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
15294 * config/arc/arc.c (arc_init): Check FPU options.
15295 (get_arc_condition_code): Handle new CC_FPU* modes.
15296 (arc_select_cc_mode): Likewise.
15297 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
15298 register pair only. Allow access for ARCv2 accumulator.
15299 (gen_compare_reg): Whenever we have FPU support use FPU compare
15301 (arc_reorg): Don't generate brcc insns when FPU compare
15302 instructions are involved.
15303 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15304 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15305 floating point emulation.
15306 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15307 (REVERSE_CONDITION): Add new CC_FPU* modes.
15308 (TARGET_FP_SP_BASE): Define.
15309 (TARGET_FP_DP_BASE): Likewise.
15310 (TARGET_FP_SP_FUSED): Likewise.
15311 (TARGET_FP_DP_FUSED): Likewise.
15312 (TARGET_FP_SP_CONV): Likewise.
15313 (TARGET_FP_DP_CONV): Likewise.
15314 (TARGET_FP_SP_SQRT): Likewise.
15315 (TARGET_FP_DP_SQRT): Likewise.
15316 (TARGET_FP_DP_AX): Likewise.
15317 * config/arc/arc.md (ARCV2_ACC): New constant.
15318 (type): New fpu type attribute.
15319 (SDF): Conditional iterator.
15320 (cstore<mode>, cbranch<mode>): Change expand condition.
15321 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15322 handles FPU/FPX cases as well.
15323 * config/arc/arc.opt (mfpu): New option.
15324 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15326 (adddf3, muldf3, subdf3): Removed.
15327 * config/arc/predicates.md (proper_comparison_operator): Recognize
15329 * config/arc/fpu.md: New file.
15330 * doc/invoke.texi (ARC Options): Document mfpu option.
15332 2016-02-16 Richard Biener <rguenther@suse.de>
15334 PR rtl-optimization/69291
15335 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15336 noce_operand_ok check.
15338 2016-02-16 Tom de Vries <tom@codesourcery.com>
15341 * omp-low.c (simd_clone_create): Remove call to
15342 symtab->call_cgraph_insertion_hooks.
15344 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15346 PR tree-optimization/69802
15347 * tree-ssa-reassoc.c (update_range_test): If op is
15348 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15349 op == 1 test of precision 1 integral op, otherwise handle
15350 that case as op itself. Fix up formatting.
15351 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15354 2016-02-16 Richard Biener <rguenther@suse.de>
15356 PR tree-optimization/69586
15357 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15358 types for conversion sources.
15360 2016-02-16 Richard Biener <rguenther@suse.de>
15362 PR middle-end/69801
15363 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15364 mask OEP_ADDRESS_OF.
15366 2016-02-16 Alan Modra <amodra@gmail.com>
15369 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15370 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15371 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15373 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15374 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15375 (p8_fmrgow_<mode>): Likewise.
15376 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
15378 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15379 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15380 to use movdi_internal64. Remove op0_di.
15381 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15383 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15385 Add support for the FCCMP insn types
15387 * config/aarch64/aarch64.md (fccmp): Change insn type.
15388 (fccmpe): Likewise.
15389 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15390 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15391 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15392 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15393 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15394 * config/arm/types.md (fccmps): Add new insn type.
15395 (fccmpd): Likewise.
15397 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15399 * alias.c (get_alias_set): Fix a typo in comment.
15401 2016-02-15 Richard Biener <rguenther@suse.de>
15403 PR tree-optimization/69595
15404 * match.pd: Complete range test simplification to true.
15406 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15408 PR rtl-optimization/69648
15409 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15410 pic_offset_table_rtx.
15412 PR rtl-optimization/69752
15413 * ira.c (update_equiv_regs): When looking for more than a single SET,
15414 also take other side effects into account.
15416 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15418 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15419 for z900+ CPUs in 31-bit mode.
15421 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15423 * common/config/s390/s390-common.c (s390_supports_split_stack):
15425 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15426 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15427 * config/s390/s390.c (struct machine_function): New field
15428 split_stack_varargs_pointer.
15429 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15430 in s390_emit_prologue.
15431 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15433 (morestack_ref): New global.
15434 (SPLIT_STACK_AVAILABLE): New macro.
15435 (s390_expand_split_stack_prologue): New function.
15436 (s390_live_on_entry): New function.
15437 (s390_va_start): Use split-stack vararg pointer if appropriate.
15438 (s390_asm_file_end): Emit the split-stack note sections.
15439 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15440 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15441 (UNSPECV_SPLIT_STACK_CALL): New unspec.
15442 (UNSPECV_SPLIT_STACK_DATA): New unspec.
15443 (split_stack_prologue): New expand.
15444 (split_stack_space_check): New expand.
15445 (split_stack_data): New insn.
15446 (split_stack_call): New expand.
15447 (split_stack_call_*): New insn.
15448 (split_stack_cond_call): New expand.
15449 (split_stack_cond_call_*): New insn.
15451 2016-02-15 Richard Biener <rguenther@suse.de>
15453 PR tree-optimization/69783
15454 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15455 Add trivially correct cases.
15457 2016-02-15 Tom de Vries <tom@codesourcery.com>
15460 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15462 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15464 2016-02-15 Richard Biener <rguenther@suse.de>
15466 PR tree-optimization/69776
15467 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15468 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15469 indicate whether we can use TBAA to disambiguate against stores.
15470 Use alias-set zero if not.
15471 (visit_reference_op_store): Do not use TBAA when looking up
15473 * tree-ssa-pre.c (compute_avail): Use TBAA here.
15474 (eliminate_dom_walker::before_dom_children): But not when looking
15475 up redundant stores.
15477 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15479 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15481 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15483 * config/i386/znver1.md
15484 (znver1_pop, znver1_pop_mem,
15485 znver1_load_imov_double_store,
15486 znver1_load_imov_direct_store,
15487 znver1_load_imov_direct_load,
15488 znver1_load_imov_double_load): Add new.
15489 (znver1_insn, znver1_insn_load): Add icmov type.
15490 (znver1_sseavx_fma,
15491 znver1_sseavx_fma_load,
15493 znver1_avx256_fma_load): Fix pipe usage.
15495 2016-02-14 Alan Modra <amodra@gmail.com>
15498 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15499 with an invalid hard reg, reload just the reg not the entire
15500 pre/post-inc/dec address expression.
15502 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15505 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15506 fixed R1_REG scratch reg.
15507 (sibcall_value_pcrel_fdpic): Likewise.
15509 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15513 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15515 2016-02-12 Walter Lee <walt@tilera.com>
15517 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15518 * config/tilegx/t-tilegx: Likewise.
15520 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15523 * diagnostic-show-locus.c (struct line_span): New struct.
15524 (layout::get_first_line): Delete.
15525 (layout::get_last_line): Delete.
15526 (layout::get_num_line_spans): New member function.
15527 (layout::get_line_span): Likewise.
15528 (layout::print_heading_for_line_span_index_p): Likewise.
15529 (layout::get_expanded_location): Likewise.
15530 (layout::calculate_line_spans): Likewise.
15531 (layout::m_first_line): Delete.
15532 (layout::m_last_line): Delete.
15533 (layout::m_line_spans): New field.
15534 (layout::layout): Update comment. Replace m_first_line and
15535 m_last_line with m_line_spans, replacing their initialization
15536 with a call to calculate_line_spans.
15537 (diagnostic_show_locus): When printing source lines and
15538 annotations, rather than looping over a single span
15539 of lines, instead loop over each line_span within
15540 the layout, with an inner loop over the lines within them.
15541 Call the context's start_span callback when changing line spans.
15542 * diagnostic.c (diagnostic_initialize): Initialize start_span.
15543 (diagnostic_build_prefix): Break out the building of the location
15544 part of the string into...
15545 (diagnostic_get_location_text): ...this new function, rewriting
15546 it from nested ternary expressions to a sequence of "if"
15548 (default_diagnostic_start_span_fn): New function.
15549 * diagnostic.h (diagnostic_start_span_fn): New typedef.
15550 (diagnostic_context::start_span): New field.
15551 (default_diagnostic_start_span_fn): New prototype.
15553 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15556 * gcc.c (driver::finalize): Fix cleanup of "specs".
15558 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15562 * gcc.c (driver::driver): Initialize m_option_suggestions.
15563 (driver::~driver): Clean up m_option_suggestions.
15564 (suggest_option): Convert to...
15565 (driver::suggest_option): ...this, and split out into
15566 driver::build_option_suggestions and find_closest_string.
15567 (driver::build_option_suggestions): New function, from
15568 first half of suggest_option. Special-case
15569 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15570 the sanitizer_opts array. For options of enum types, add the
15571 various enum values to the candidate strings.
15572 (driver::handle_unrecognized_options): Remove "const".
15573 * gcc.h (driver::handle_unrecognized_options): Likewise.
15574 (driver::build_option_suggestions): New decl.
15575 (driver::suggest_option): New decl.
15576 (driver::m_option_suggestions): New field.
15577 * opts-common.c (add_misspelling_candidates): New function.
15578 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15579 and make non-static.
15580 * opts.h (sanitizer_opts): New array decl.
15581 (add_misspelling_candidates): New function decl.
15582 * spellcheck.c (find_closest_string): New function.
15583 * spellcheck.h (find_closest_string): New function decl.
15585 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15587 PR rtl-optimization/69764
15588 PR rtl-optimization/69771
15589 * optabs.c (expand_binop_directly): For shift_optab_p, force
15590 convert_modes with VOIDmode if xop1 has VOIDmode.
15592 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15595 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15596 to correctly determine instrumentation thunks.
15598 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15601 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15602 type by reference, force lhs on the call.
15605 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15606 Compute retval and retbnd early in all cases if split_part_return_p
15607 and return_bb is not EXIT. Remove all clobber stmts and reset
15608 all debug stmts that refer to SSA_NAMEs defined in split part,
15609 except if it is retval, in that case replace the old retval with the
15610 lhs of the call to the split part.
15612 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15615 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15617 PR middle-end/66726
15618 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15619 whose result is used in PHI.
15620 (maybe_optimize_range_tests): Likewise.
15621 (final_range_test_p): Likweise.
15623 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15625 PR middle-end/66726
15626 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15627 whose result is used in PHI.
15628 (maybe_optimize_range_tests): Likewise.
15629 (final_range_test_p): Likweise.
15631 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15633 * cgraph.c: Spelling fixes - behaviour -> behavior and
15634 neighbour -> neighbor.
15635 * target.def: Likewise.
15636 * sel-sched.c: Likewise.
15637 * config/mips/mips.c: Likewise.
15638 * config/arc/arc.md: Likewise.
15639 * config/arm/cortex-a57.md: Likewise.
15640 * config/arm/arm.c: Likewise.
15641 * config/arm/neon.md: Likewise.
15642 * config/arm/arm-c.c: Likewise.
15643 * config/vms/vms-c.c: Likewise.
15644 * config/s390/s390.c: Likewise.
15645 * config/i386/znver1.md: Likewise.
15646 * config/i386/i386.c: Likewise.
15647 * config/ia64/hpux-unix2003.h: Likewise.
15648 * config/msp430/msp430.md: Likewise.
15649 * config/rx/rx.c: Likewise.
15650 * config/rx/rx.md: Likewise.
15651 * config/aarch64/aarch64-simd.md: Likewise.
15652 * config/aarch64/aarch64.c: Likewise.
15653 * config/nvptx/nvptx.c: Likewise.
15654 * config/bfin/bfin.c: Likewise.
15655 * config/cris/cris.opt: Likewise.
15656 * config/rs6000/rs6000.c: Likewise.
15657 * target.h: Likewise.
15658 * spellcheck.c: Likewise.
15659 * ira-build.c: Likewise.
15660 * tree-inline.c: Likewise.
15661 * builtins.c: Likewise.
15662 * lra-constraints.c: Likewise.
15663 * explow.c: Likewise.
15664 * hwint.h: Likewise.
15665 * targhooks.c: Likewise.
15666 * tree-vect-data-refs.c: Likewise.
15667 * expr.c: Likewise.
15668 * doc/tm.texi: Likewise.
15669 * doc/extend.texi: Likewise.
15670 * doc/install.texi: Likewise.
15671 * doc/md.texi: Likewise.
15672 * tree-ssa-tail-merge.c: Likewise.
15673 * sched-int.h: Likewise.
15674 * match.pd: Likewise.
15675 * sched-ebb.c: Likewise.
15676 * target.def (omit_struct_return_reg): Likewise.
15677 * gimple-ssa-isolate-paths.c: Likewise.
15678 (find_implicit_erroneous_behaviour): Renamed to...
15679 (find_implicit_erroneous_behavior): ... this.
15680 (find_explicit_erroneous_behaviour): Renamed to...
15681 (find_explicit_erroneous_behavior): ... this.
15682 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15684 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15686 PR rtl-optimization/64682
15687 PR rtl-optimization/69567
15688 PR rtl-optimization/69737
15689 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15690 in I2 as well, just lose it.
15692 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15694 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15696 (aarch64_last_printed_tune_string): Likewise.
15697 (aarch64_declare_function_name): Only output .arch assembler
15698 directive if it will be different from the previously output
15699 directive. Same for .tune comment but only if -dA is set.
15700 (aarch64_start_file): New function.
15701 (TARGET_ASM_FILE_START): Define.
15703 2016-02-11 David Malcolm <dmalcolm@redhat.com>
15706 * Makefile.in (PLUGIN_HEADERS): Add params.list.
15708 2016-02-11 Jakub Jelinek <jakub@redhat.com>
15711 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15712 -Wmaybe-uninitialized warning.
15714 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
15717 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15719 2016-02-11 Richard Biener <rguenther@suse.de>
15721 PR rtl-optimization/69291
15722 * ifcvt.c (noce_try_store_flag_constants): Do not allow
15723 subexpressions affected by changing the result.
15725 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
15728 * lra-constraints.c (curr_insn_transform): Find in/out operands
15729 for secondary memory moves. Update dups.
15731 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15733 PR tree-optimization/69652
15734 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15735 to nested loop, did source re-formatting, skip debug statements,
15736 add check on statement with volatile operand, remove dead scalar
15739 2016-02-10 Jakub Jelinek <jakub@redhat.com>
15740 Patrick Palka <ppalka@gcc.gnu.org>
15744 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15745 calls if the return type is TREE_ADDRESSABLE.
15746 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15747 * ipa-split.c (split_function): Fix doubled "we" in comment.
15748 Use void return type for the split part even if
15749 !split_point->split_part_set_retval.
15751 2016-02-10 Bin Cheng <bin.cheng@arm.com>
15753 PR tree-optimization/68021
15754 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15755 when computing the value of biv cand by itself.
15757 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15759 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15760 (cortexa57_tunings): Likewise.
15761 (cortexa72_tunings): Likewise.
15762 (arch_macro_fusion_pair_p): Add support for AES fusion.
15763 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15764 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15765 Allow virtual registers before reload so early scheduling works.
15766 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15767 correct latency and pipeline.
15768 (cortex_a57_crypto_complex): Likewise.
15769 (cortex_a57_crypto_xor): Likewise.
15770 (define_bypass): Add AES bypass.
15772 2016-02-10 Richard Biener <rguenther@suse.de>
15774 PR tree-optimization/69726
15775 * passes.def: Add DCE pass before late uninit.
15776 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15777 really fixup if-conversions job.
15779 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15781 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15782 (arm_cortex_a57_tune): Likewise.
15783 (aarch_macro_fusion_pair_p): Add support for AES fusion.
15784 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15786 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
15788 * timevar.def (TV_PHASE_DBGINFO): Delete.
15789 (TV_PHASE_CHECK_DBGINFO): Likewise.
15790 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15792 2016-02-10 Richard Biener <rguenther@suse.de>
15794 PR tree-optimization/69719
15795 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15796 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15798 2016-02-09 Andrew Pinski <apinski@cavium.com>
15801 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15802 get_vcond_mask_icode returns false.
15804 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15807 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15808 an ADDIS that adds a pointer to a large constant that sets the
15809 upper16 bits with a load operation.
15811 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15814 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15816 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15818 (vzipq_s16): Likewise.
15819 (vzipq_s32): Likewise.
15820 (vzipq_f32): Likewise.
15821 (vzipq_u8): Likewise.
15822 (vzipq_u16): Likewise.
15823 (vzipq_u32): Likewise.
15824 (vzipq_p8): Likewise.
15825 (vzipq_p16): Likewise.
15827 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15830 * config/arm/arm.c (neon_endian_lane_map): New function.
15831 (neon_vector_pair_endian_lane_map): New function.
15832 (arm_evpc_neon_vuzp): Allow for big endian lane order.
15833 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15835 (vuzpq_s16): Likewise.
15836 (vuzpq_s32): Likewise.
15837 (vuzpq_f32): Likewise.
15838 (vuzpq_u8): Likewise.
15839 (vuzpq_u16): Likewise.
15840 (vuzpq_u32): Likewise.
15841 (vuzpq_p8): Likewise.
15842 (vuzpq_p16): Likewise.
15844 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
15847 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15850 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
15852 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15853 truncate const_int operand 1 to QImode.
15855 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
15857 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15858 corresponding to an abnormal edge.
15860 2016-02-09 Tom de Vries <tom@codesourcery.com>
15862 PR tree-optimization/69599
15863 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15865 (find_func_aliases_for_builtin_call, find_func_clobbers)
15866 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
15869 2016-02-09 Richard Biener <rguenther@suse.de>
15871 PR tree-optimization/69715
15872 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15873 LHS on calls as non-rewritable.
15875 2016-02-09 Tom de Vries <tom@codesourcery.com>
15878 * lto-wrapper.c (append_diag_options): New function.
15879 (compile_offload_image): Call append_diag_options.
15881 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15884 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15885 Minor copy-edit to fix verb tenses.
15887 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15889 PR tree-optimization/69209
15890 * ipa-split.c (split_function): If split part is not
15891 returning retval, retval has gimple type but is not
15892 gimple value, force it into a SSA_NAME first.
15894 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15896 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15899 2016-02-08 Jason Merrill <jason@redhat.com>
15902 * convert.c (convert_to_integer_1): Check dofold on truncation
15904 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15905 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15906 Rename from *_nofold.
15907 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15908 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15910 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15913 * tree.c (build_common_tree_nodes): Remove short_double argument.
15914 All callers changed.
15915 * tree.h (build_common_tree_nodes): Adjust declaration.
15916 * doc/invoke.texi (-fshort-double): Remove documentation.
15917 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15918 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15919 * lto-wrapper.c (merge_and_complain, append_compiler_options)
15920 (append_linker_options): Don't handle OPT_fshort_double.
15922 PR rtl-optimization/68730
15923 * lra-remat.c (insn_to_cand_activation): New static variable.
15924 (lra_remat): Allocate and free it.
15925 (create_cand): New arg activation. Initialize a field in
15926 insn_to_cand_activation if it is nonnull.
15927 (create_cands): Pass the activation insn to create_cand when making
15928 a candidate involving an output reload. Reorganize code a little.
15929 (do_remat): Keep track of active status of candidates in a separate
15932 2016-02-08 Richard Biener <rguenther@suse.de>
15934 PR tree-optimization/69719
15935 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15936 Properly use absolute of the difference of the two offsets to
15937 compare or adjust the segment length.
15939 2016-02-08 Richard Biener <rguenther@suse.de>
15940 Jeff Law <law@redhat.com>
15943 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15944 types for anonymous SSA names.
15946 2016-02-08 Richard Biener <rguenther@suse.de>
15948 PR rtl-optimization/69274
15949 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15951 2016-02-08 Jeff Law <law@redhat.com>
15953 PR tree-optimization/65917
15954 * tree-ssa-dom.c (record_temporary_equivalences): Record both
15955 equivalences from if (x == y) style conditionals.
15956 (loop_depth_of_name): Remove.
15957 (record_equality): Remove loop depth check.
15958 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15959 (const_and_copies::record_const_or_copy_raw): New member function.
15960 * tree-ssa-scopedtables.c
15961 (const_and_copies::record_const_or_copy_raw): New, factored out of
15962 (const_and_copies::record_const_or_copy): Call new member function.
15964 2016-02-05 Jeff Law <law@redhat.com>
15966 PR tree-optimization/68541
15967 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15968 (count_stmts_in_block): New function.
15969 (poor_ifcvt_candidate_code): Likewise.
15970 (is_feasible_trace): Add some heuristics to determine when path
15971 splitting is profitable.
15972 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15973 is a diamond with a single exit.
15975 2016-02-05 Martin Sebor <msebor@redhat.com>
15978 * doc/invoke.texi: Update -Wplacement-new to take an optional
15981 2016-02-06 Richard Henderson <rth@redhat.com>
15984 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15985 out of non-standard address spaces.
15987 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15989 PR rtl-optimization/69691
15990 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15992 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15994 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15995 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15996 (*ieee128_mfvsrd_64bit): Likewise.
15997 (*ieee128_mfvsrd_32bit): Likewise.
15999 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
16003 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
16005 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16006 instrumented_version.
16008 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
16010 * doc/invoke.texi (Optimize Options): In table of --param options
16011 rename second occurrence of tracer-min-branch-ratio to
16012 tracer-min-branch-probability, rename
16013 tracer-min-branch-ratio-feedback to
16014 tracer-min-branch-probability-feedback and clarify description,
16015 rename sched-spec-state-edge-prob-cutoff to
16016 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
16017 to selsched-insns-to-rename, rename lto-minpartition to
16018 lto-min-partition, delete reorder-blocks-duplicate and
16019 reorder-blocks-duplicate-feedback.
16021 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16023 * config/s390/s390.c (s390_register_info_set_ranges): Remove
16026 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
16028 * doc/extend.texi: S/390: Correct some typos.
16030 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16032 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
16034 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16037 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
16038 (s390_register_info_gprtofpr): Use new macros above.
16039 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
16041 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
16042 its name. Adjust restore and save gpr ranges.
16043 (s390_register_info_set_ranges): New function.
16044 (s390_register_info): Use new macros above. Call
16045 s390_register_info_set_ranges.
16046 (s390_optimize_register_info): Likewise.
16047 (s390_hard_regno_rename_ok): Use new macros.
16048 (s390_hard_regno_scratch_ok): Likewise.
16049 (s390_emit_epilogue): Likewise.
16050 (s390_can_use_return_insn): Likewise.
16051 (s390_optimize_prologue): Likewise.
16052 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
16054 2016-02-05 Jakub Jelinek <jakub@redhat.com>
16057 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
16059 (ix86_option_override_internal): Disable TARGET_STV even for
16060 -m{incoming,preferred}-stack-boundary=3.
16062 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16064 * config.gcc: Mark deprecated rtems targets as obsolete.
16066 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
16068 PR rtl-optimization/64682
16069 PR rtl-optimization/69567
16070 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
16071 before I2 only if the register is both used and set in I2.
16073 2016-02-04 DJ Delorie <dj@redhat.com>
16075 * config/msp430/msp430.c (msp430_start_function): Add function type.
16077 2016-02-04 Jakub Jelinek <jakub@redhat.com>
16080 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
16082 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
16084 PR rtl-optimization/69577
16086 2015-10-29 Richard Henderson <rth@redhat.com>
16090 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
16091 sse check to the exact conditions of PR 67609.
16093 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16096 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
16097 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
16098 not allowed into the traditional Altivec registers.
16099 (movtd_64bit_nodm): Likewise.
16100 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16102 2016-02-04 David Malcolm <dmalcolm@redhat.com>
16104 * config/aarch64/cortex-a57-fma-steering.c
16105 (aarch64_register_fma_steering): Remove "static" from arguments
16108 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
16111 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
16112 twice when complex.
16114 2016-02-04 Mike Frysinger <vapier@gentoo.org>
16116 * doc/invoke.texi: Delete -mno-fma4.
16118 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
16120 PR rtl-optimization/69577
16121 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
16122 (find_subregs_of_mode): Update accordingly. Iterate over partial
16125 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
16127 * config/arm/arm-protos.h (neon_reinterpret): Remove.
16128 * config/arm/arm.c (neon_reinterpret): Remove.
16129 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
16130 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
16131 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
16132 vreinterpretti): Remove.
16133 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
16134 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16135 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
16136 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
16137 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
16138 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
16139 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16140 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
16141 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
16142 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
16143 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
16144 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
16145 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
16146 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
16147 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
16148 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
16149 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
16150 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
16151 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
16152 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
16153 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
16154 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
16155 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
16156 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
16157 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
16158 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
16159 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
16160 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
16161 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
16162 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
16163 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
16164 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
16165 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
16166 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
16167 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
16168 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
16169 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
16170 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
16171 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
16172 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
16173 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
16174 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
16175 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
16176 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
16177 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
16178 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
16179 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
16180 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
16181 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
16182 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
16183 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
16184 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
16185 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
16186 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
16187 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
16188 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
16189 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
16190 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
16191 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
16192 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
16193 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
16194 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
16195 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
16196 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
16197 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
16198 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
16199 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
16200 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
16201 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
16202 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
16203 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
16204 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
16205 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
16206 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
16207 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
16208 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
16209 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
16210 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
16211 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
16212 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
16213 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
16214 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
16215 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
16216 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
16217 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
16218 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
16219 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
16220 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
16221 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
16222 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
16223 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
16224 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
16225 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
16226 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
16227 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
16228 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
16229 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
16230 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
16231 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
16232 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
16233 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
16234 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
16235 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
16237 2016-02-04 Martin Liska <mliska@suse.cz>
16240 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
16241 that are gimple_store_p.
16242 (maybe_instrument_call): Likewise.
16244 2016-02-04 Bin Cheng <bin.cheng@arm.com>
16246 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
16247 register scaling out of memory reference and comment why.
16249 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16253 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
16254 folding the source of a SET.
16256 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16260 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
16261 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
16263 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
16267 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
16270 2016-02-04 Christian Bruel <christian.bruel@st.com>
16272 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
16273 * config/arm/arm.c (arm_set_current_function): Likewise.
16275 2016-02-04 Jakub Jelinek <jakub@redhat.com>
16276 Ilya Enkovich <enkovich.gnu@gmail.com>
16277 H.J. Lu <hongjiu.lu@intel.com>
16280 * config/i386/i386.c (convert_scalars_to_vector): Remove
16281 stack alignment fixes.
16282 (ix86_option_override_internal): Disable TARGET_STV if stack
16283 might not be aligned enough.
16284 (ix86_minimum_alignment): Assert that TARGET_STV is false.
16286 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
16288 * config/i386/x86-tune.def: Disable default prefetching
16291 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16292 Vladimir Makarov <vmakarov@redhat.com>
16295 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
16296 in validating fused toc addresses.
16298 2016-02-03 Jakub Jelinek <jakub@redhat.com>
16301 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16302 range->m_caret fields if range->m_show_caret_p is false.
16305 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16306 Force oldval into register if it does not satisfy reg_or_short_operand
16307 predicate. Fix up formatting.
16309 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
16310 Alexandre Oliva <aoliva@redhat.com>
16313 * lra-constraints.c (simplify_operand_subreg): Check additionally
16314 address validity after potential reloading.
16315 (process_address_1): Check insns validity. In case of failure do
16318 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
16321 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16324 2016-02-02 Jakub Jelinek <jakub@redhat.com>
16326 * wide-int.cc (canonize_uhwi): New function.
16327 (wi::divmod_internal): Use it.
16329 2016-02-02 James Norris <jnorris@codesourcery.com
16331 * gimplify.c (omp_notice_variable): Add usage check.
16333 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
16335 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16336 like LE, GE, LT, GT when emitting relational operator.
16338 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16340 * ira-costs.c (find_costs_and_classes): Add extra argument.
16341 * target.def (ira_change_pseudo_allocno_class): Add parameter.
16342 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16343 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16344 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16345 Add best_class parameter, and return it if not ALL_REGS.
16346 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16348 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16349 Update target hook.
16351 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16353 * config/aarch64/aarch64.c
16354 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16355 (aarch64_ira_change_pseudo_allocno_class): New function.
16357 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16360 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16362 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16364 * config/avr/avr.c (avr_option_override): Set
16365 PARAM_ALLOW_STORE_DATA_RACES to 1.
16367 2016-02-02 Richard Biener <rguenther@suse.de>
16369 PR tree-optimization/69595
16370 * match.pd: Add range test simplifications to true/false.
16372 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16374 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16375 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16378 2016-02-02 Richard Biener <rguenther@suse.de>
16380 PR tree-optimization/69606
16381 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16382 info on the result before moving a stmt.
16384 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16386 PR middle-end/68542
16387 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16388 branch with vector comparison.
16389 * config/i386/sse.md (VI48_AVX): New mode iterator.
16390 (define_expand "cbranch<mode>4): Add support for conditional branch
16391 with vector comparison.
16392 * tree-vect-loop.c (optimize_mask_stores): New function.
16393 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16394 has_mask_store field of vect_info.
16395 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16396 vectorized loops having masked stores after vec_info destroy.
16397 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16398 correspondent macros.
16399 (optimize_mask_stores): Add prototype.
16401 2016-02-02 Alan Modra <amodra@gmail.com>
16404 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16407 2016-02-02 Alan Modra <amodra@gmail.com>
16410 * config/rs6000/rs6000.c (need_toc_init): New var, set it
16411 whenever toc_label_name used.
16412 (rs6000_file_start): Don't set up toc section here,
16413 (rs6000_output_function_epilogue): do so here instead,
16414 (rs6000_xcoff_file_start): and here.
16415 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16416 (load_toc_aix_di): Likewise.
16418 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16420 PR rtl-optimization/69592
16421 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16422 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16423 (num_sign_bit_copies_binary_arith_p): New inline function.
16424 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16426 2016-02-01 Jeff Law <law@redhat.com>
16428 PR tree-optimization/69580
16429 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16430 * tree-ssa-threadbackward.c
16431 (fsm_find_control_statement_thread_paths): Do not try to walk
16432 through large PHI nodes.
16434 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16436 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16437 when count is incremented above limit, don't analyze further
16440 * omp-low.c (oacc_parse_default_dims): Avoid
16441 -Wsign-compare warning, make sure value fits into int
16442 rather than just unsigned int.
16444 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16446 PR tree-optimization/67921
16447 * fold-const.c (split_tree): New parameters. Convert pointer
16448 type variable part to proper type before negating.
16449 (fold_binary_loc): Pass new arguments to split_tree.
16451 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16453 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16454 (nvptx_goacc_validate_dims): Extend to handle global defaults.
16455 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16456 * doc/tm.texti: Rebuilt.
16457 * doc/invoke.texi (fopenacc-dim): Document.
16458 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16459 (append_compiler_options): Likewise.
16460 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16461 (oacc_parse_default_dims): New.
16462 (oacc_validate_dims): Add USED arg. Select non-unity default when
16464 (oacc_loop_fixed_partitions): Return mask of used partitions.
16465 (oacc_loop_auto_partitions): Emit dump info.
16466 (oacc_loop_partition): Return mask of used partitions.
16467 (execute_oacc_device_lower): Parse default dimension arg. Adjust
16468 loop partitioning and validation calls.
16470 2016-02-01 Richard Biener <rguenther@suse.de>
16472 PR middle-end/69556
16473 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16475 2016-02-01 Richard Biener <rguenther@suse.de>
16477 PR tree-optimization/69574
16478 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16479 of asserting return chrec_dont_know.
16481 2016-02-01 Martin Liska <mliska@suse.cz>
16483 * mem-stats-traits.h: Add copyright header.
16484 * mem-stats.h: Likewise.
16486 2016-02-01 Richard Biener <rguenther@suse.de>
16488 PR tree-optimization/69579
16489 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16490 Do not propagate through abnormal PHI results.
16492 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16494 * postreload.c (reload_cse_simplify): Remove dead code.
16496 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16498 PR rtl-optimization/69570
16499 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16500 if there is more than one set, not if there is a single set.
16502 2016-02-01 Richard Henderson <rth@redhat.com>
16505 * combine.c (make_compound_operation): When looking through a
16506 subreg, make sure to re-extend to the width of the outer mode.
16508 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16510 PR tree-optimization/69546
16511 * wide-int.cc (wi::divmod_internal): For unsigned division
16512 where both operands fit into uhwi, if o1 is 1 and o0 has
16513 msb set, if divident_prec is larger than bits per hwi,
16514 clear another quotient word and return 2 instead of 1.
16515 Similarly for remainder with msb in HWI set, if dividend_prec
16516 is larger than bits per hwi.
16518 2016-01-29 Martin Jambor <mjambor@suse.cz>
16520 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16521 Use short lowercase names.
16522 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
16523 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16524 acq_rel one. Protect warning agains segfaults if
16525 get_memory_order_name returns NULL.
16526 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16527 with release semantics. Do not warn if get_memory_order already did.
16528 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16529 semantics. Fix check for relaxed or acquire semantics. Do not warn
16530 if get_memory_order already did.
16532 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16534 * doc/install.texi: Document that isl-0.16 is supported.
16536 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16539 * config/i386/constraints.md (Bm): Describe as special memory
16541 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16542 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16543 * genpreds.c (struct constraint_data): Add is_special_memory.
16544 (have_special_memory_constraints, special_memory_start): New
16546 (special_memory_end): Ditto.
16547 (add_constraint): Add new arg is_special_memory. Add code to
16548 process its true value. Update have_special_memory_constraints.
16549 (process_define_constraint): Pass the new arg.
16550 (process_define_register_constraint): Ditto.
16551 (choose_enum_order): Process special memory.
16552 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16553 function insn_extra_special_memory_constraint.
16554 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16555 * gensupport.c (process_rtx): Process
16556 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16557 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16558 * ira-lives.c (single_reg_class): Use
16559 insn_extra_special_memory_constraint.
16560 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16561 * lra-constraints.c (process_alt_operands): Ditto.
16562 (curr_insn_transform): Use insn_extra_special_memory_constraint.
16563 * recog.c (asm_operand_ok, preprocess_constraints): Process
16565 * reload.c (find_reloads): Ditto.
16566 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16567 * stmt.c (parse_input_constraint): Use
16568 insn_extra_special_memory_constraint.
16570 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16573 * lra-splill.c (lra_final_code_change): Revert r229087 by
16574 removing all sub-registers.
16576 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16579 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16581 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16584 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16585 SSE1, copy target into the temporary reg first before recursing
16588 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16590 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16593 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16595 * ginclude/stdarg.h: Test __cplusplus instead of
16596 __GXX_EXPERIMENTAL_CXX0X__.
16598 2016-01-29 Richard Biener <rguenther@suse.de>
16600 PR tree-optimization/69547
16601 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16602 Do not mark clobbers necessary.
16603 (mark_all_reaching_defs_necessary_1): Likewise.
16605 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16607 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16608 declaration name with %qs and print it in both error messages.
16609 Also fix indentation.
16611 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16614 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16615 trailing blank line from error message.
16617 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16620 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16623 2016-01-29 Richard Biener <rguenther@suse.de>
16625 PR middle-end/69537
16626 * match.pd: Allow all integral types when simplifying a
16627 widening or sign-changing conversion.
16629 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16631 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16632 back to setting codegen_error to fail codegen.
16634 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16637 * config/i386/constraints.md (C): Only accept constant zero operand.
16638 (BC): New constraint.
16639 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16640 instead of C constraint.
16641 * doc/md.texi (Machine Constraints): Update description
16644 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16647 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16649 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16651 PR middle-end/69542
16652 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16655 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16657 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16658 branches if using guessed profile.
16660 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16662 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16664 2016-01-28 Richard Henderson <rth@redhat.com>
16667 * config/aarch64/aarch64-modes.def (CC_Cmode): New
16668 * config/aarch64/aarch64-protos.h: Update.
16669 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16670 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16671 (aarch64_get_condition_code_1): Handle CC_Cmode.
16672 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16673 (*add<mode>3_compareC_cconly_imm): New.
16674 (*add<mode>3_compareC_cconly): New.
16675 (*add<mode>3_compareC_imm): New.
16676 (add<mode>3_compareC): New.
16677 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16678 to be first. Use aarch64_carry_operation.
16679 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16680 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16681 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16682 (subti3): Use subdi3_compare1.
16683 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16684 (sub<mode>3_compare1): New.
16685 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16686 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16687 (*subsi3_carryin_uxtw): Likewise.
16688 (*ngc<mode>, *ngcsi_uxtw): Likewise.
16689 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16690 * config/aarch64/iterators.md (DWI): New.
16691 * config/aarch64/predicates.md (aarch64_carry_operation): New.
16692 (aarch64_borrow_operation): New.
16694 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16696 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16697 message when isl does not return a valid schedule.
16699 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16701 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16702 Remove comments from class declarations: they are already in the code
16705 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16707 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16709 (ternary_op_to_tree): Same.
16710 (unary_op_to_tree): Same.
16711 (nary_op_to_tree): Same.
16712 (gcc_expression_from_isl_expr_op): Same.
16713 (gcc_expression_from_isl_expression): Same.
16714 (graphite_create_new_loop): Same.
16715 (graphite_create_new_loop_guard): Same.
16716 (build_iv_mapping): Same.
16717 (graphite_create_new_guard): Same.
16718 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16719 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16721 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16723 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16724 instead of setting codegen_error to fail codegen.
16726 2016-01-28 Jason Merrill <jason@redhat.com>
16728 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16730 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16732 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16733 Remove CONST_INT_P check in CCMP cost calculation.
16735 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16737 * config/aarch64/aarch64.c (generic_vector_cost):
16738 Set vec_permute_cost.
16739 (cortexa57_vector_cost): Likewise.
16740 (exynosm1_vector_cost): Likewise.
16741 (xgene1_vector_cost): Likewise.
16742 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16743 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16744 Add vec_permute_cost entry.
16746 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16748 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16750 (add<mode>3_compare0): Likewise.
16751 (addsi3_compare0_uxtw): Likewise.
16752 (add<mode>3nr_compare0): Likewise.
16753 (compare_neg<mode>): Likewise.
16754 (<optab><mode>3): Likewise.
16756 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
16758 * tree-vect-stmts.c (vectorizable_comparison): Add
16759 NULL check for vectype.
16761 2016-01-28 Richard Biener <rguenther@suse.de>
16763 PR tree-optimization/69466
16764 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16765 Account for PHIs we couldn't duplicate.
16767 2016-01-28 Martin Liska <mliska@suse.cz>
16770 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16771 instead of ENABLE_VALGRIND_CHECKING.
16773 2016-01-27 Richard Henderson <rth@redhat.com>
16776 * lra-remat.c (subreg_regs): New.
16777 (dump_candidates_and_remat_bb_data): Dump it.
16778 (operand_to_remat): Reject if operand in subreg_regs.
16779 (set_bb_regs): Collect subreg_regs.
16780 (lra_remat): Init and free subreg_regs. Compute
16781 calculate_local_reg_remat_bb_data before create_cands.
16783 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
16786 * config/i386/i386.c (ix86_update_stack_boundary): Don't
16787 change stack_alignment_needed for __tls_get_addr call.
16789 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
16791 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16793 2016-01-27 Jeff Law <law@redhat.com>
16795 PR tree-optimization/68398
16796 PR tree-optimization/69196
16797 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16798 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16799 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16800 Only count PHIs in the last block in the path. The others will
16801 const/copy propagate away. Add heuristic to allow more irreducible
16802 subloops to be created when it is likely profitable to do so.
16804 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16805 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
16806 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
16808 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16811 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16812 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16813 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16814 * tree-streamer-in.c: Include asan.h.
16815 (streamer_get_builtin_tree): For builtins in sanitizer
16816 range call initialize_sanitizer_builtins and retry.
16818 2016-01-27 Ian Lance Taylor <iant@google.com>
16820 * common.opt (fkeep-gc-roots-live): New undocumented option.
16821 * tree-ssa-loop-ivopts.c (add_candidate_1): If
16822 -fkeep-gc-roots-live, skip pointers.
16823 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16826 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
16829 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16830 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16832 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
16835 * configure.ac: NetBSD provides SSP in its C library.
16836 * configure: Updated.
16838 2016-01-27 Richard Biener <rguenther@suse.de>
16840 PR tree-optimization/69166
16841 * tree-vect-loop.c (vect_is_simple_reduction): Always check
16842 reduction code for commutativity / associativity.
16844 2016-01-27 Martin Jambor <mjambor@suse.cz>
16846 PR tree-optimization/69355
16847 * tree-sra.c (analyze_access_subtree): Correct hole detection when
16848 total_scalarization fails.
16850 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
16852 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16855 2016-01-27 Christian Bruel <christian.bruel@st.com>
16858 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16859 Move arm_reset_previous_fndecl and set_target_option_current_node in
16860 the conditional part. Call save_restore_target_globals.
16861 * config/arm/arm.c (arm_set_current_function):
16862 Refactor to better support #pragma target and attribute mix.
16863 Call save_restore_target_globals.
16864 * config/arm/arm-protos.h (save_restore_target_globals): New function.
16866 2016-01-27 Martin Liska <mliska@suse.cz>
16868 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16869 reference for an HSA kernel and its host function.
16871 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16873 PR tree-optimization/69399
16874 * wide-int.h (wi::lrshift): For larger precisions, only
16875 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16877 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16879 * config/arc/predicates.md (proper_comparison_operator): Reject
16880 constant-constant comparison.
16882 2016-01-26 Tom de Vries <tom@codesourcery.com>
16884 PR tree-optimization/69110
16885 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16886 DR_NUM_DIMENSIONS == 0.
16888 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16889 Sebastian Pop <s.pop@samsung.com>
16891 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16892 isl_ast_op_cond and isl_ast_op_select.
16893 (gcc_expression_from_isl_expr_op): Same.
16895 2016-01-26 Jason Merrill <jason@redhat.com>
16898 * tree.c (recompute_constructor_flags): Split out from
16900 (verify_constructor_flags): New.
16901 * tree.h: Declare them.
16903 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16905 PR rtl-optimization/69217
16906 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16907 are no TYPE_FIELDS set for the record type.
16909 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16913 toc_label_name unconditionally.
16914 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16915 SYMBOL_REF string. Use toc_label_name instead of constructing
16917 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16918 constructing LCTOC1.
16920 2016-01-26 Martin Sebor <msebor@redhat.com>
16923 * doc/extend.texi (Common Type Attributes): Move text that talks about
16924 attribute packed from attribute aligned to the section discussing
16925 the former attribute for clarity.
16927 2016-01-26 Richard Henderson <rth@redhat.com>
16929 PR middle-end/60908
16930 * trans-mem.c (tm_region_init): Mark entry block as visited.
16932 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16935 * diagnostic-show-locus.c (layout::print_source_line): Replace
16936 call to pp_newline with call to layout::print_newline.
16937 (layout::print_annotation_line): Likewise.
16938 (layout::move_to_column): Likewise.
16939 (layout::print_any_fixits): After printing any fixits, print a
16940 trailing newline, if necessary.
16941 (layout::print_newline): New method, resetting any colorization
16943 (diagnostic_show_locus): Move the pp_newline to before the
16944 early bailout. Remove dummy block enclosing the layout instance.
16945 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16946 of pp_newline_and_flush with pp_flush.
16947 (diagnostic_append_note): Delete use of pp_newline.
16948 (diagnostic_append_note_at_rich_loc): Delete.
16949 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16950 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16951 when newline characters are added to the buffer.
16953 2016-01-26 Michael Matz <matz@suse.de>
16955 * configure.ac (ac_cv_std_swap_in_utility): New test.
16956 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16957 * configure: Regenerate.
16958 * config.in: Regenerate.
16960 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16962 * config/arc/arc.md (cstoresi4): Force operand into register.
16963 (arcset<code>): Fix predicate.
16964 (arcsetltu): Likewise.
16965 (arcsetgeu): Likewise.
16966 (arcsethi): Likewise.
16967 (arcsetls): Likewise.
16969 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16971 PR tree-optimization/69483
16972 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16973 if base has error_mark_node type.
16975 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16978 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16979 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16981 (vget_lane_f16): Handle big-endian.
16982 (vgetq_lane_f16): Likewise.
16983 (vset_lane_f16): Likewise.
16984 (vsetq_lane_f16): Likewise.
16985 * config/arm/iterators.md (VQXMOV): Add V8HF.
16986 (VDQ): Add V4HF and V8HF.
16987 (V_reg): Handle V4HF and V8HF.
16988 (Is_float_mode): Likewise.
16989 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16990 neon_vdup_nv8hf): New patterns.
16991 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16992 Use VD_LANE iterator.
16993 (neon_vld1_dup<mode>): Use VQ2 iterator.
16995 2016-01-26 Nathan Sidwell <nathan@acm.org>
16997 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16998 (set_oacc_fn_attrib): Add IS_KERNEL arg.
16999 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
17000 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
17001 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
17002 (oacc_validate_dims): Add LEVEL arg, don't return level.
17003 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
17004 oacc_validate_dims.
17005 (execute_oacc_device_lower): Adjust, add more dump output.
17006 * tree-ssa-loop.c (gate_oacc_kernels): Use
17007 oacc_fn_attrib_kernels_p.
17008 * tree-parloops.c (create_parallel_loop): Adjust
17009 set_oacc_fn_attrib call.
17011 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17014 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
17015 (append_compiler_options): Handle -fcilkplus.
17016 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
17018 2016-01-26 Nick Clifton <nickc@redhat.com>
17021 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
17022 been marked as DECL_ONE_ONLY but we do not the means to make it
17023 so, then do not allow it to bind locally.
17025 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17028 * opts.h (parse_sanitizer_options): New prototype.
17029 * opts.c (sanitizer_opts): New array.
17030 (parse_sanitizer_options): New function.
17031 (common_handle_option): Use parse_sanitizer_options.
17033 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
17036 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
17037 alignment adjustment to ...
17038 (ix86_update_stack_boundary): Here. Don't over-align stack for
17040 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
17041 if __tls_get_addr is called.
17043 2016-01-26 Christian Bruel <christian.bruel@st.com>
17045 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
17047 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
17049 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
17051 2016-01-26 Richard Biener <rguenther@suse.de>
17053 PR middle-end/69467
17054 * match.pd: Guard X * CST CMP 0 pattern with single_use.
17056 2016-01-26 Richard Biener <rguenther@suse.de>
17058 PR tree-optimization/69452
17059 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
17060 (move_computations_dom_walker::before_dom_children): Rename
17062 (move_computations_worker): This.
17063 (move_computations): Perform an RPO rather than a DOM walk.
17065 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17068 * combine.c (combine_instructions): For REG_EQUAL note with
17069 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
17070 to the underlying register.
17071 * doc/rtl.texi (REG_EQUAL): Document the behavior of
17072 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
17074 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
17077 * config/aarch64/aarch64-builtins.c
17078 (aarch64_init_simd_builtin_types): Do not set structural
17079 equality to __Poly{8,16,64,128}_t types.
17081 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
17083 PR tree-optimization/69400
17084 * wide-int.cc (wi_pack): Take the precision as argument and
17085 perform canonicalization here rather than in the callers.
17086 Use the main loop to handle all full-width HWIs. Add a
17087 zero HWI if in_len isn't a full result.
17088 (wi::divmod_internal): Update accordingly.
17089 (wi::mul_internal): Likewise. Simplify.
17091 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
17092 Sebastian Pop <s.pop@samsung.com>
17094 * graphite-poly.c (apply_poly_transforms): Simplify.
17095 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
17096 (print_isl_map): Same.
17097 (print_isl_union_map): Same.
17098 (print_isl_schedule): New.
17099 (debug_isl_schedule): New.
17100 * graphite-dependences.c (scop_get_reads): Do not call
17101 isl_union_map_add_map that is undocumented isl functionality.
17102 (scop_get_must_writes): Same.
17103 (scop_get_may_writes): Same.
17104 (scop_get_original_schedule): Remove.
17105 (scop_get_dependences): Do not call isl_union_map_compute_flow that
17106 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
17107 (compute_deps): Remove.
17108 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
17109 (debug_schedule_ast): New.
17110 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
17111 set_separate_option.
17112 (graphite_regenerate_ast_isl): Add dump.
17113 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
17114 from scop->transformed_schedule.
17115 (graphite_regenerate_ast_isl): Add more dump.
17116 * graphite-optimize-isl.c (optimize_isl): Set
17117 scop->transformed_schedule. Check whether schedules are equal.
17118 (apply_poly_transforms): Move here.
17119 * graphite-poly.c (apply_poly_transforms): ... from here.
17120 (free_poly_bb): Static.
17121 (free_scop): Static.
17122 (pbb_number_of_iterations_at_time): Remove.
17123 (print_isl_ast): New.
17124 (debug_isl_ast): New.
17125 (debug_scop_pbb): New.
17126 * graphite-scop-detection.c (print_edge): Move.
17127 (print_sese): Move.
17128 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
17129 (build_scop_scattering): Remove.
17130 (create_pw_aff_from_tree): Assert instead of bailing out.
17131 (add_condition_to_pbb): Remove unused code, do not fail.
17132 (add_conditions_to_domain): Same.
17133 (add_conditions_to_constraints): Remove.
17134 (build_scop_context): New.
17135 (add_iter_domain_dimension): New.
17136 (build_iteration_domains): Initialize pbb->iterators.
17137 Call add_conditions_to_domain.
17140 (index_outermost_in_loop): New.
17141 (index_pbb_in_loop): New.
17142 (outermost_pbb_in): New.
17143 (add_in_sequence): New.
17144 (add_outer_projection): New.
17145 (outer_projection_mupa): New.
17146 (add_loop_schedule): New.
17147 (build_schedule_pbb): New.
17148 (build_schedule_loop): New.
17149 (embed_in_surrounding_loops): New.
17150 (build_schedule_loop_nest): New.
17151 (build_original_schedule): New.
17152 (build_poly_scop): Call build_original_schedule.
17153 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
17154 (free_poly_dr): Remove.
17155 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
17156 (free_poly_bb): Remove.
17157 (debug_loop_vec): Remove.
17158 (print_isl_ast): Declare.
17159 (debug_isl_ast): Declare.
17160 (scop_do_interchange): Remove.
17161 (scop_do_strip_mine): Remove.
17162 (scop_do_block): Remove.
17163 (flatten_all_loops): Remove.
17164 (optimize_isl): Remove.
17165 (pbb_number_of_iterations_at_time): Remove.
17166 (debug_scop_pbb): Declare.
17167 (print_schedule_ast): Declare.
17168 (debug_schedule_ast): Declare.
17169 (struct scop): Remove schedule. Add original_schedule,
17170 transformed_schedule.
17171 (free_gimple_poly_bb): Remove.
17172 (print_generated_program): Remove.
17173 (debug_generated_program): Remove.
17174 (unify_scattering_dimensions): Remove.
17175 * sese.c (print_edge): ... here.
17176 (print_sese): ... here.
17177 (debug_edge): ... here.
17178 (debug_sese): ... here.
17179 * sese.h (print_edge): Declare.
17180 (print_sese): Declare.
17181 (dump_edge): Declare.
17182 (dump_sese): Declare.
17184 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
17185 Sebastian Pop <s.pop@samsung.com>
17187 * Makefile.in: Set ISLVER in site.exp.
17189 2016-01-25 Jakub Jelinek <jakub@redhat.com>
17191 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
17192 DECL_VALUE_EXPR of new_var even for the non-array case. Look
17193 through DECL_VALUE_EXPR for expansion.
17195 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
17197 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
17198 the frame info after reload completed.
17200 2016-01-25 Jeff Law <law@redhat.com>
17202 PR tree-optimization/69196
17203 PR tree-optimization/68398
17204 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
17205 tree-ssa-threadupdate.c.
17206 (determine_bb_domination_status): Prototype
17207 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
17208 (determine_bb_domination_status): No longer static.
17209 (valid_jump_thread_path): Remove code to detect characteristics
17210 of the jump thread path not associated with correctness.
17211 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
17212 Correct test for thread path length. Count PHIs for real operands as
17213 statements that need to be copied. Do not count ASSERT_EXPRs.
17214 Look at all the blocks in the thread path. Compute and selectively
17215 filter thread paths based on threading through the latch, threading
17216 a multiway branch or crossing a multiway branch.
17218 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17220 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
17221 decl with __attribute__ ((unused)) annotation.
17223 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
17226 * tree-vect-stmts.c (vectorizable_condition): Check vectype
17227 of operands is compatible with a statement vectype.
17229 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
17231 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
17232 improve wording for mixed storage order support.
17234 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
17236 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
17237 (vcvt_u64_f64): Likewise.
17238 (vcvta_s64_f64): Likewise.
17239 (vcvta_u64_f64): Likewise.
17240 (vcvtm_s64_f64): Likewise.
17241 (vcvtm_u64_f64): Likewise.
17242 (vcvtn_s64_f64): Likewise.
17243 (vcvtn_u64_f64): Likewise.
17244 (vcvtp_s64_f64): Likewise.
17245 (vcvtp_u64_f64): Likewise.
17247 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
17249 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
17250 (arc_init): Check validity mll64 option.
17251 (arc_save_restore): Use double load/store instruction.
17252 (arc_expand_movmem): Likewise.
17253 (arc_split_move): Don't split if we have double load/store
17254 instructions. Returns a boolean.
17255 (arc_process_double_reg_moves): Change function to return boolean
17256 instead of a sequence of instructions.
17257 (arc_dwarf_register_span): New function.
17258 * config/arc/arc-protos.h (arc_split_move): Change prototype.
17259 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
17260 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
17261 (*movdf_insn): Likewise.
17262 * config/arc/arc.opt (mll64): New option.
17263 * config/arc/predicates.md (even_register_operand): New predicate.
17264 * doc/invoke.texi (ARC Options): Add mll64 documentation.
17266 2016-01-25 Richard Biener <rguenther@suse.de>
17269 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
17270 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
17272 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
17274 2016-01-25 Richard Biener <rguenther@suse.de>
17276 PR tree-optimization/69376
17277 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
17279 (VN_INFO_ANTI_RANGE_P): New inline.
17280 (VN_INFO_RANGE_TYPE): Likewise.
17281 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
17282 SSA_NAME_ANTI_RANGE_P.
17283 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
17284 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17285 Properly query VN_INFO_RANGE_TYPE.
17287 2016-01-25 Nick Clifton <nickc@redhat.com>
17290 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
17292 2016-01-23 Tom de Vries <tom@codesourcery.com>
17294 PR tree-optimization/69426
17295 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
17298 2016-01-23 Jakub Jelinek <jakub@redhat.com>
17300 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17301 "the the" with "the" in the comments.
17302 * ipa-devirt.c (build_type_inheritance_graph,
17303 update_type_inheritance_graph): Likewise.
17304 * tree.c (build_function_type_list_1): Likewise.
17305 * cfgloopmanip.c (scale_loop_profile): Likewise.
17306 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17307 * gimple-ssa-split-paths.c
17308 (find_block_to_duplicate_for_splitting_paths): Likewise.
17309 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17310 * expr.c (convert_move): Likewise.
17311 * var-tracking.c (vt_stack_adjustments): Likewise.
17312 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17313 * tree-vrp.c (test_for_singularity): Likewise.
17315 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17316 directly instead of building a temporary tree.
17319 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17320 remove <algorithm> include.
17322 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17325 * config/i386/i386.c: Include dojump.h.
17326 (expand_small_movmem_or_setmem,
17327 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17329 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17330 if dynamic_check != -1.
17332 2016-01-21 Jeff Law <law@redhat.com>
17334 PR middle-end/69347
17335 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17336 record_temporary_equivalences. Rewritten to avoid unnecessary calls
17337 into dominated_by_p.
17338 (cprop_into_successor_phis): Avoid unnecessary tests.
17340 2016-01-22 Richard Henderson <rth@redhat.com>
17343 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17344 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17346 2016-01-22 Michael Matz <matz@suse.de>
17348 * system.h (string, algorithm): Include only conditionally.
17349 (new): Include always under C++.
17350 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17351 * final.c (toplevel): Ditto.
17352 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17353 * genconditions.c (write_header): Make gencondmd.c define
17355 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17357 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17358 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17360 2016-01-22 Christian Bruel <christian.bruel@st.com>
17363 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17365 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17368 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17369 define_insn_and_split. Ensure operands[1] and operands[0] do not
17370 get assigned the same register.
17372 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17374 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17376 2016-01-22 Christian Bruel <christian.bruel@st.com>
17378 * config/arm/arm-c.c (arm_pragma_target_parse):
17379 Remove warn_builtin_macro_redefined overwrite.
17381 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17383 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17384 flag_non_call_exceptions compatibility.
17386 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17389 * dwarf2out.c (add_child_die_after): New function.
17390 (dwarf_qual_info_t): New type.
17391 (dwarf_qual_info): New variable.
17392 (qualified_die_p): New function.
17393 (modified_type_die): For -fdebug-types-section, ensure
17394 canonical order of qualifiers. Put qualified DIEs adjacent
17395 to the corresponding non-qualified type DIE and search there
17396 for existing qualified DIEs.
17398 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17400 * doc/extend.texi (scalar_storage_order type attribute): Document
17401 restriction on type punning and aliasing, and remove future tense.
17403 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17406 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17409 2016-01-21 Jeff Law <law@redhat.com>
17411 PR middle-end/69347
17412 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17413 useless call to record_temporary_equivalences.
17414 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17415 allocate 10 slots in the bb_path vector and let it grow as needed.
17416 (fsm_find_control_statement_thread_paths): Similarly for the next_path
17419 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17421 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17423 * configure: Regenerate.
17425 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17427 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17428 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17430 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17432 PR middle-end/66178
17433 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17434 drop EXPAND_INITIALIZER.
17435 * rtl.h (contains_symbolic_reference_p): Declare.
17436 * rtlanal.c (contains_symbolic_reference_p): New function.
17437 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17438 a subtraction into a NOT if symbolic constants are involved.
17440 2016-01-21 Anton Blanchard <anton@samba.org>
17441 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17444 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17446 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17449 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17451 * config/microblaze/microblaze.c
17452 (get_branch_target): New.
17453 (insert_wic_for_ilb_runout): New.
17455 (microblaze_machine_dependent_reorg): New.
17456 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17457 * config/microblaze/microblaze.md
17458 (UNSPEC_IPREFETCH): Define.
17459 (iprefetch): New pattern
17460 * config/microblaze/microblaze.opt
17461 (mxl-prefetch): New flag.
17463 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17465 * config/microblaze/microblaze.h
17466 (FIXED_REGISTERS): Update in macro.
17467 (CALL_USED_REGISTERS): Update in macro.
17469 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17471 PR rtl-optimization/68920
17472 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17475 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17477 PR rtl-optimization/68990
17478 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17479 pseudo instead of inheritance ones.
17481 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17482 Nick Clifton <nickc@redhat.com>
17486 * config/mips/mips.c (mips_compute_frame_info): Initialise
17487 args_size and hard_frame_pointer_offset fields of the frame
17488 structure before calling mips_global_pointer.
17490 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17492 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17494 * configure: Regenerate.
17496 2016-01-21 Richard Biener <rguenther@suse.de>
17498 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17500 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17502 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17503 to actually emit the .size directive.
17505 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17506 Jakub Jelinek <jakub@redhat.com>
17510 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17511 args array size by one to avoid buffer overflow.
17513 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17515 * config/s390/s390.md (pool_section_start): Use switch_to_section
17516 to select proper read-only data section instead of hardcoding
17518 (pool_section_end): Use switch_to_section to match the above.
17520 2016-01-21 Richard Biener <rguenther@suse.de>
17522 PR tree-optimization/69378
17523 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17524 (set_ssa_val_to): Use it for dominance checks taking into
17525 account not executable edges.
17527 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17530 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17531 for bitsize instead of GET_MODE_PRECISION (mode).
17533 2016-01-20 Martin Sebor <msebor@redhat.com>
17536 * extend.texi (__sync Builtins): Clarify the semantics of
17537 __sync_fetch_and_OP built-ins on pointers.
17538 (__atomic Builtins): Same.
17540 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17541 Sebastian Pop <s.pop@samsung.com>
17543 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17544 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17545 (is_valid_rename): Same.
17546 (translate_isl_ast_to_gimple::get_rename): Same.
17547 (translate_isl_ast_to_gimple::rename_all_uses): Same.
17548 (translate_isl_ast_to_gimple::rename_uses): Same.
17549 (get_new_name): Check for close_phi nodes.
17550 (copy_loop_phi_args): Use phi_node_kind.
17551 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17552 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17554 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17555 Sebastian Pop <s.pop@samsung.com>
17557 Revert commit r229783.
17558 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17559 Remove use of parameter_rename_map.
17560 (copy_def): Remove.
17561 (copy_internal_parameters): Remove.
17562 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17563 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17564 (free_sese_info): Do not free parameter_rename_map.
17565 (set_rename): Do not use parameter_rename_map.
17566 (rename_uses): Update call to set_rename.
17567 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17568 * sese.h (parameter_rename_map_t): Remove.
17569 (struct sese_info_t): Remove field parameter_rename_map.
17571 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17572 Sebastian Pop <s.pop@samsung.com>
17574 * graphite-isl-ast-to-gimple.c: Fix comment.
17575 * graphite-scop-detection.c (defined_in_loop_p): New.
17576 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17577 names defined in loop.
17579 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17580 Sebastian Pop <s.pop@samsung.com>
17582 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17583 Discard unstructured if-then-else regions.
17585 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17586 Sebastian Pop <s.pop@samsung.com>
17588 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17589 (cleanup_loop_iter_dom): Remove.
17590 (build_loop_iteration_domains): Remove.
17591 (build_scop_context): Remove.
17592 (build_scop_iteration_domain): Remove.
17593 (add_loop_constraints): New.
17594 (build_iteration_domains): New.
17595 (build_poly_scop): Call build_iteration_domains.
17597 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17598 Sebastian Pop <s.pop@samsung.com>
17600 * graphite-scop-detection.c
17601 (scop_detection::harmful_loop_in_region): Free dom and loops.
17602 (scop_detection::loop_body_is_valid_scop): Free bbs.
17604 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17605 Sebastian Pop <s.pop@samsung.com>
17607 * graphite-scop-detection.c (record_loop_in_sese): New.
17608 (gather_bbs::before_dom_children): Call record_loop_in_sese.
17609 (build_scops): Remove call to build_sese_loop_nests.
17610 * sese.c (sese_record_loop): Remove.
17611 (build_sese_loop_nests): Remove.
17612 (new_sese_info): Remove region->loops.
17613 (free_sese_info): Same.
17614 * sese.h (sese_contains_loop): Same.
17615 (build_sese_loop_nests): Remove.
17616 (sese_contains_loop): Remove.
17618 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17619 Sebastian Pop <s.pop@samsung.com>
17621 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17622 loop_is_valid_in_scop.
17623 (scop_detection::harmful_stmt_in_region): Renamed
17624 harmful_loop_in_region.
17625 Call loop_is_valid_in_scop.
17627 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17628 Sebastian Pop <s.pop@samsung.com>
17630 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17633 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17634 Sebastian Pop <s.pop@samsung.com>
17636 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17637 * graphite.h (struct poly_bb): Remove field is_reduction.
17638 (PBB_IS_REDUCTION): Remove.
17640 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17641 Sebastian Pop <s.pop@samsung.com>
17643 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17644 (add_pdr_constraints): Same.
17645 (scop_get_reads): Same.
17646 (scop_get_must_writes): Same.
17647 (scop_get_may_writes): Same.
17648 (scop_get_original_schedule): Same.
17649 (extend_schedule): Same.
17650 (apply_schedule_on_deps): Same.
17651 (carries_deps): Same.
17652 (compute_deps): Same.
17653 (scop_get_dependences): Same.
17654 * graphite-isl-ast-to-gimple.c
17655 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17656 * graphite-optimize-isl.c (get_schedule_for_band): Same.
17657 (get_schedule_for_band_list): Same.
17658 (get_schedule_map): Same.
17659 (apply_schedule_map_to_scop): Same.
17660 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17661 (build_loop_iteration_domains): Same.
17662 (add_condition_to_pbb): Same.
17663 (add_param_constraints): Same.
17664 (pdr_add_memory_accesses): Same.
17665 (pdr_add_data_dimensions): Same.
17667 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17669 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17672 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17674 * common.opt (feliminate-dwarf2-dups): Replace references to
17675 "DWARF 2" with just "DWARF".
17676 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17677 * doc/extend.texi: Likewise.
17678 * doc/cpp.texi: Likewise.
17679 * doc/invoke.texi: Likewise.
17680 (Option Summary): Add -gdwarf to list of Debugging Options.
17681 (Debugging Options): Document -gdwarf.
17682 * doc/contrib.texi: Spell "DWARF" like that.
17684 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17686 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17687 warning. Fix up formatting.
17689 PR middle-end/67653
17690 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17691 attempt to mark memory input operand addressable and
17692 call prepare_gimple_addressable in that case. Don't adjust
17693 input_location for diagnostics, use error_at instead.
17695 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17697 * config/rs6000/ppc-auxv.h: New file.
17698 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17699 (cpu_is): Likewise.
17700 (cpu_supports): Likewise.
17701 * config/rs6000/rs6000.c: include "ppc-auxv.h".
17702 (cpu_is_info): New variable.
17703 (cpu_supports_info): Likewise.
17704 (tcb_verification_symbol): Likewise.
17705 (cpu_builtin_p): Likewise.
17706 (cpu_expand_builtin): New function.
17707 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17708 (rs6000_init_builtins): Likewise.
17709 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17710 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17711 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17712 * configure: Regenerate.
17713 * config.in: Likewise.
17714 * doc/extend.texi (PowerPC Built-in Functions): Document
17715 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17717 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
17720 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17722 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17725 2016-01-20 Richard Henderson <rth@redhat.com>
17731 * tree.c (tm_define_builtin): New.
17732 (find_tm_vector_type): New.
17733 (build_tm_vector_builtins): New.
17734 (build_common_builtin_nodes): Call it.
17736 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
17738 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17739 (arm_fp_ok): Likewise.
17740 (arm_fp): Likewise.
17741 (arm_crypto): Likewise.
17743 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17744 Richard Biener <rguenther@suse.de>
17746 PR tree-optimization/69328
17747 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17748 vectors have same number of elements.
17749 (vectorizable_condition): Fix masked version recognition.
17751 2016-01-20 Richard Biener <rguenther@suse.de>
17753 PR tree-optimization/69345
17754 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17755 (VN_INFO_PTR_INFO): Likewise.
17756 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17757 info when it is equal between non-dominating SSA names.
17758 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17759 Make sure to look at original SSA infos.
17761 2016-01-20 Jeff Law <law@redhat.com>
17764 * config/m68k/predicates.md (pow2_m1_operand): New predicate
17766 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17767 (pc_or_label_operand): New predicate.
17768 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17769 tests for small integers that are 2^n - 1.
17771 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
17773 * doc/invoke.texi (Options Summary): Add '.' after @xref.
17775 2016-01-19 Jeff Law <law@redhat.com>
17777 PR middle-end/69347
17778 * tree-ssa-threadbackwards.c
17779 (fsm_find_control_statement_thread_paths): Do not try to lookup
17780 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17782 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17784 * doc/lto.texi: Remove text that says only Gold has linker plugin
17787 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
17789 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17790 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17791 the DIE accordingly.
17792 (modified_type_die): Add REVERSE parameter and pass it recursively,
17793 as well as to base_type_die. Adjust presence check accordingly.
17794 (base_type_for_mode): Adjust call to modified_type_die.
17795 (add_type_attribute): Add REVERSE parameter and pass it to
17797 (generic_parameter_die): Adjust call to add_type_attribute.
17798 (add_scalar_info): Likewise.
17799 (add_subscript_info): Likewise.
17800 (gen_array_type_die): Likewise.
17801 (gen_descr_array_type_die): Likewise.
17802 (gen_entry_point_die): Likewise.
17803 (gen_enumeration_type_die): Likewise.
17804 (gen_formal_parameter_die): Likewise.
17805 (gen_subprogram_die): Likewise.
17806 (gen_variable_die ): Likewise.
17807 (gen_const_die): Likewise.
17808 (gen_field_die): Likewise.
17809 (gen_pointer_type_die): Likewise.
17810 (gen_reference_type_die): Likewise.
17811 (gen_ptr_to_mbr_type_die): Likewise.
17812 (gen_inheritance_die): Likewise.
17813 (gen_subroutine_type_die): Likewise.
17814 (gen_typedef_die): Likewise.
17815 (force_type_die): Adjust call to modified_type_die.
17817 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
17819 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17820 flow throughout the file. Fix broken link to Objective-C 2.0
17822 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17825 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17827 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17829 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17832 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17833 (maybe_record_node): Record cxa_pure_virtual as the only possible
17834 target if there are not ohter candidates.
17835 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17837 2016-01-19 Richard Biener <rguenther@suse.de>
17839 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17840 (get_memory_order): Likewise.
17842 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
17844 * tree-vect-stmts.c (vectorizable_store): Check
17847 2016-01-19 David Malcolm <dmalcolm@redhat.com>
17850 * gcc.c (driver::decode_argv): Add call to
17851 init_opts_obstack before init_options_struct.
17852 * opts.c (init_opts_obstack): Remove idempotency.
17853 (init_options_struct): Replace call to init_opts_obstack
17854 with a gcc_assert to verify that it has already been called.
17855 * toplev.c (toplev::main): Add call to init_opts_obstack before
17856 calls to init_options_struct.
17857 (toplev::finalize): Move cleanup of opts_obstack next to
17858 cleanup of save_decoded_options, clearing the latter, and
17859 save_decoded_options_count.
17861 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17864 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17865 attribute to unconditional. Remove %? from output template.
17867 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17868 Jiong Wang <jiong.wang@arm.com>
17870 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17871 generated from different expand order.
17873 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17875 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17876 Add support for CCMP costing.
17878 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17880 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17881 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17882 (fccmpe<mode>): Likewise.
17883 (fcmp): Rename to fcmp and globalize pattern.
17885 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17886 (aarch64_gen_ccmp_next): Add FP support.
17888 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17890 * target.def (gen_ccmp_first): Update documentation.
17891 (gen_ccmp_next): Likewise.
17892 * doc/tm.texi (gen_ccmp_first): Update documentation.
17893 (gen_ccmp_next): Likewise.
17894 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17895 expand_ccmp_expr_1. Improve comments.
17896 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17897 (ccmp_ior<mode>): Remove pattern.
17898 (cmp<mode>): Remove expand.
17899 (cmp): Globalize pattern.
17900 (cstorecc4): Use cc_register.
17901 (mov<mode>cc): Remove ccmp_cc_register check.
17902 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17903 Simplify after removal of CC_DNE/* modes.
17904 (aarch64_ccmp_mode_to_code): Remove.
17905 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
17906 In 'k' case use integer as condition.
17907 (aarch64_nzcv_codes): Remove inverted cases.
17908 (aarch64_code_to_ccmode): Remove.
17909 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
17910 comparison with CC register to be used in folowing CCMP/branch/CSEL.
17911 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17912 pattern. Return the comparison with CC register. Invert conditions
17913 when bitcode is OR.
17914 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17915 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17917 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17919 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17920 instrumented_version.
17922 2016-01-19 Richard Biener <rguenther@suse.de>
17924 PR tree-optimization/69336
17925 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17926 handled components with get_ref_base_and_extent.
17927 (equal_mem_array_ref_p): Adjust.
17929 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17932 * shrink-wrap.c: Include valtrack.h.
17933 (move_insn_for_shrink_wrap): Add DEBUG argument. If
17934 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17935 in between insn and where it will be moved to. Call
17936 dead_debug_insert_temp.
17937 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
17938 first and dead_debug_local_finish at the end.
17939 For uses and defs bitmap, handle all regs in between REGNO and
17940 END_REGNO, not just the first one.
17942 2016-01-19 Richard Biener <rguenther@suse.de>
17944 PR tree-optimization/69352
17945 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17946 (equal_mem_array_ref_p): Constrain size and max size properly.
17947 Compare the reverse flag.
17949 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17951 * ira.c (ira): Update regstat data if we deleted insns.
17953 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17955 PR rtl-optimization/68955
17956 PR rtl-optimization/64557
17957 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17958 here. Fix up formatting.
17959 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17961 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17964 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17965 assume that the node has body.
17966 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17969 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17971 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17974 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17976 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17977 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17979 2016-01-19 Martin Jambor <mjambor@suse.cz>
17980 Martin Liska <mliska@suse.cz>
17981 Michael Matz <matz@suse.de>
17983 * Makefile.in (OBJS): Add new source files.
17984 (GTFILES): Add hsa.c.
17985 * common.opt (disable_hsa): New variable.
17986 (-Whsa): New warning.
17987 * config.in (ENABLE_HSA): New.
17988 * configure.ac: Treat hsa differently from other accelerators.
17989 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17990 $enable_offloading.
17991 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17992 * doc/install.texi (Configuration): Document --with-hsa-runtime,
17993 --with-hsa-runtime-include, --with-hsa-runtime-lib and
17994 --with-hsa-kmt-lib.
17995 * doc/invoke.texi (-Whsa): Document.
17996 (hsa-gen-debug-stores): Likewise.
17997 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17998 to invoke offload compiler for hsa acclerator.
17999 * opts.c (common_handle_option): Determine whether HSA offloading
18000 should be performed.
18001 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
18002 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
18003 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
18004 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
18005 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
18006 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
18007 GF_OMP_FOR_KIND_GRID_LOOP.
18008 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
18009 (pp_gimple_stmt_1): Likewise.
18010 * gimple-walk.c (walk_gimple_stmt): Likewise.
18011 * gimple.c (gimple_build_omp_grid_body): New function.
18012 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
18013 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
18014 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
18015 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
18016 GF_OMP_TEAMS_GRID_PHONY.
18017 (gimple_statement_omp_single_layout): Updated comments.
18018 (gimple_build_omp_grid_body): New function.
18019 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
18020 (gimple_omp_for_grid_phony): New function.
18021 (gimple_omp_for_set_grid_phony): Likewise.
18022 (gimple_omp_parallel_grid_phony): Likewise.
18023 (gimple_omp_parallel_set_grid_phony): Likewise.
18024 (gimple_omp_teams_grid_phony): Likewise.
18025 (gimple_omp_teams_set_grid_phony): Likewise.
18026 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
18027 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
18028 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
18029 (BUILT_IN_GOMP_TARGET): Updated type.
18030 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
18031 (adjust_for_condition): New function.
18032 (get_omp_for_step_from_incr): Likewise.
18033 (extract_omp_for_data): Moved parts to adjust_for_condition and
18034 get_omp_for_step_from_incr.
18035 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
18036 (fixup_child_record_type): Bail out if receiver_decl is NULL.
18037 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
18038 (scan_omp_parallel): Do not create child functions for phony
18040 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
18041 (scan_omp_1_op): Checking assert we are not remapping to
18042 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
18043 (parallel_needs_hsa_kernel_p): New function.
18044 (expand_parallel_call): Register apprpriate parallel child
18045 functions as HSA kernels.
18046 (grid_launch_attributes_trees): New type.
18047 (grid_attr_trees): New variable.
18048 (grid_create_kernel_launch_attr_types): New function.
18049 (grid_insert_store_range_dim): Likewise.
18050 (grid_get_kernel_launch_attributes): Likewise.
18051 (get_target_argument_identifier_1): Likewise.
18052 (get_target_argument_identifier): Likewise.
18053 (get_target_argument_value): Likewise.
18054 (push_target_argument_according_to_value): Likewise.
18055 (get_target_arguments): Likewise.
18056 (expand_omp_target): Call get_target_arguments instead of looking
18057 up for teams and thread limit.
18058 (grid_expand_omp_for_loop): New function.
18059 (grid_arg_decl_map): New type.
18060 (grid_remap_kernel_arg_accesses): New function.
18061 (grid_expand_target_kernel_body): New function.
18062 (expand_omp): Call it.
18063 (lower_omp_for): Do not emit phony constructs.
18064 (lower_omp_taskreg): Do not emit phony constructs but create for them
18065 a temporary variable receiver_decl.
18066 (lower_omp_taskreg): Do not emit phony constructs.
18067 (lower_omp_teams): Likewise.
18068 (lower_omp_grid_body): New function.
18069 (lower_omp_1): Call it.
18070 (grid_reg_assignment_to_local_var_p): New function.
18071 (grid_seq_only_contains_local_assignments): Likewise.
18072 (grid_find_single_omp_among_assignments_1): Likewise.
18073 (grid_find_single_omp_among_assignments): Likewise.
18074 (grid_find_ungridifiable_statement): Likewise.
18075 (grid_target_follows_gridifiable_pattern): Likewise.
18076 (grid_remap_prebody_decls): Likewise.
18077 (grid_copy_leading_local_assignments): Likewise.
18078 (grid_process_kernel_body_copy): Likewise.
18079 (grid_attempt_target_gridification): Likewise.
18080 (grid_gridify_all_targets_stmt): Likewise.
18081 (grid_gridify_all_targets): Likewise.
18082 (execute_lower_omp): Call grid_gridify_all_targets.
18083 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
18084 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
18085 (tree_omp_clause): Added union field dimension.
18086 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
18087 * tree.c (omp_clause_num_ops): Added number of arguments of
18088 OMP_CLAUSE__GRIDDIM_.
18089 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
18090 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
18091 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
18092 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
18093 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
18094 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
18095 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
18096 * tree-pass.h (make_pass_gen_hsail): Declare.
18097 (make_pass_ipa_hsa): Likewise.
18098 * ipa-hsa.c: New file.
18099 * lto-section-in.c (lto_section_name): Add hsa section name.
18100 * lto-streamer.h (lto_section_type): Add hsa section.
18101 * timevar.def (TV_IPA_HSA): New.
18102 * hsa-brig-format.h: New file.
18103 * hsa-brig.c: New file.
18104 * hsa-dump.c: Likewise.
18105 * hsa-gen.c: Likewise.
18108 * toplev.c (compile_file): Call hsa_output_brig.
18109 * hsa-regalloc.c: New file.
18111 2016-01-18 Jeff Law <law@redhat.com>
18113 PR tree-optimization/69320
18114 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
18115 ranged object, do nothing if the RHS constant is not [0..1].
18116 (optimize_stmt): Comparing a boolean ranged object against a
18117 constant outside [0..1] results in a compile-time constant.
18119 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
18122 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
18124 * doc/invoke.texi (Invoking GCC): Add new section to menu.
18125 (Option Summary): Update to reflect new section and moved options.
18126 (C++ Dialect Options): Move -fstats to new section.
18127 (Debugging Options): Move all dump, statistics, and other GCC
18128 developer options to new section. Rewrite section introduction
18129 and re-order remaining options to put the more basic ones first.
18130 (Optimization Options): Move -fira-verbose and -flto-report* to
18132 (Developer Options): New section incorporating moved options.
18133 * doc/cppopts.texi (-dM): Update cross-reference.
18135 2016-01-18 Richard Henderson <rth@redhat.com>
18138 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
18139 operands to pseudo only if CSE is expected. Split long immediate
18140 operands only after reload, and for the stack pointer.
18141 (*add<GPI>3_pluslong): Remove.
18142 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
18143 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
18144 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
18145 (*add<GPI>3 peepholes): New.
18146 (*add<GPI>3 splitters): New.
18147 * config/aarch64/constraints.md (Upl): New.
18148 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
18150 2016-01-18 Richard Biener <rguenther@suse.de>
18152 PR tree-optimization/69297
18153 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
18155 (vect_bb_vectorization_profitable_p): Clear visited flag again.
18157 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
18159 PR middle-end/68542
18160 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
18161 of mixind vector and scalar types.
18162 (fold_relational_const): Add handling of vector
18163 comparison with boolean result.
18164 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
18165 comparison of vector operands with boolean result for EQ/NE only.
18166 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
18167 (verify_gimple_cond): Likewise.
18168 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
18171 2016-01-18 Joseph Myers <joseph@codesourcery.com>
18173 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
18176 2016-01-18 Richard Biener <rguenther@suse.de>
18178 PR middle-end/69308
18179 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
18181 2016-01-18 Tom de Vries <tom@codesourcery.com>
18183 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
18185 2016-01-18 Tom de Vries <tom@codesourcery.com>
18187 * omp-low.c (set_oacc_fn_attrib): Make extern.
18188 * omp-low.h (set_oacc_fn_attrib): Declare.
18189 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
18190 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
18191 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
18192 Add and handle function parameter oacc_kernels_p.
18193 (find_reduc_addr, get_omp_data_i_param): New function.
18194 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
18195 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
18196 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
18197 Calculate dominance info. Skip loops that are not in a kernels region
18198 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
18199 (pass_parallelize_loops::execute): Call parallelize_loops with
18200 oacc_kernels_p argument.
18201 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
18202 New member function.
18203 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
18204 * passes.def: Add argument to pass_parallelize_loops instantation.
18206 2016-01-18 Tom de Vries <tom@codesourcery.com>
18208 * tree-parloops.c (pass_parallelize_loops::execute): Allow
18209 pass_parallelize_loops to be run outside the loop pipeline.
18211 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18213 * tree-scalar-evolution.c (follow_copies_to_constant): New.
18214 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
18216 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18219 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
18220 using get_ref_base_and_extent.
18221 (equal_mem_array_ref_p): New.
18222 (hashable_expr_equal_p): Add call to previous.
18224 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18227 * tree-sra.c (disqualified_constants, constant_decl_p): New.
18228 (sra_initialize): Allocate disqualified_constants.
18229 (sra_deinitialize): Free disqualified_constants.
18230 (disqualify_candidate): Update disqualified_constants when appropriate.
18231 (create_access): Scan for constant-pool entries as we go along.
18232 (scalarizable_type_p): Add check against type_contains_placeholder_p.
18233 (maybe_add_sra_candidate): Allow constant-pool entries.
18234 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
18235 (initialize_constant_pool_replacements): New.
18236 (sra_modify_assign): Avoid mangling assignments created by previous,
18237 and don't generate writes into constant pool.
18238 (sra_modify_function_body): Call initialize_constant_pool_replacements.
18240 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18242 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
18243 andnot instruction.
18244 (scalar_chain::convert_op): Likewise.
18245 * config/i386/i386.md (*andndi3_doubleword): New.
18247 2016-01-18 Richard Biener <rguenther@suse.de>
18249 PR tree-optimization/69170
18250 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
18251 building a vector from scalar results of a pattern stmt.
18253 2016-01-18 Jakub Jelinek <jakub@redhat.com>
18255 * haifa-sched.c (autopref_multipass_init): Work around
18256 -Wmaybe-uninitialized warning.
18258 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
18260 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
18261 against the constant 0.
18263 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18265 PR tree-optimization/68799
18266 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
18267 look up phi candidates in the statement-candidate map.
18268 (phi_add_costs): Likewise.
18269 (record_phi_increments): Likewise.
18270 (phi_incr_cost): Likewise.
18271 (ncd_with_phi): Likewise.
18272 (all_phi_incrs_profitable): Likewise.
18274 2016-01-17 Jakub Jelinek <jakub@redhat.com>
18276 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
18277 -Wmaybe-uninitialized warning.
18279 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
18281 * doc/invoke.texi (Invoking GCC): Add new section to menu.
18282 (Option Summary): Update to reflect new section and moved options.
18283 (C++ Dialect Options): Move -fvtable-verify and related options.
18284 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
18285 and profiling-related options.
18286 (Optimization Options): Move profile generation options and
18287 -fstack-protector and related options.
18288 (Instrumentation Options): New section incorporating moved options.
18289 (Code Generation Options): Move -finstrument-functions and
18290 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
18292 2016-01-16 Tom de Vries <tom@codesourcery.com>
18294 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
18296 2016-01-16 Tom de Vries <tom@codesourcery.com>
18298 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
18300 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
18302 * hash-table.h (hash_table::empty): Turn into an inline wrapper
18303 that checks whether the table is already empty. Rename the
18304 original implementation to...
18305 (hash_table::empty_slot): ...this new private function.
18307 2016-01-15 David Malcolm <dmalcolm@redhat.com>
18309 PR diagnostic/68899
18310 * diagnostic-show-locus.c (layout::print_source_line): Move x
18311 offset of line until after call to
18312 get_line_width_without_trailing_whitespace.
18314 2016-01-15 Jeff Law <law@redhat.com>
18316 PR tree-optimization/69270
18317 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18318 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
18319 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18320 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18321 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18322 ssa_name_has_boolean_range and constant_boolean_node.
18324 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
18326 PR rtl-optimization/69030
18327 * lra-spills.c (remove_pseudos): Check nrefs and make the function
18329 (spill_pseudos): Delete debug insn for dead pseudo.
18330 (lra_spill): Initiate spill_hard_reg and slots memory separately.
18332 2016-01-15 Jiong Wang <jiong.wang@arm.com>
18334 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18336 (TYPES_UNOPUS): Likewise.
18337 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18338 builtin type, from UNOP to UNOPUS.
18339 (lbtruncuv4sf): Likewise.
18340 (lbtruncuv2df): Likewise.
18341 (lrounduv2sf): Likewise.
18342 (lrounduv4sf): Likewise.
18343 (lrounduv2df): Likewise.
18344 (lroundusf): Likewise.
18345 (lroundusf): Likewise.
18346 (lceiluv2sf): Likewise.
18347 (lceiluv4sf): Likewise.
18348 (lceiluv2df): Likewise.
18349 (lceilusf): Likewise.
18350 (lceiludf): Likewise.
18351 (lflooruv2sf): Likewise.
18352 (lflooruv4sf): Likewise.
18353 (lflooruv2df): Likewise.
18354 (lfloorusf): Likewise.
18355 (lfloorudf): Likewise.
18356 (lfrintnuv2sf): Likewise.
18357 (lfrintnuv4sf): Likewise.
18358 (lfrintnuv2df): Likewise.
18359 (lfrintnusf): Likewise.
18360 (lfrintnudf): Likewise.
18361 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18363 (vcvtq_u32_f32): Likewise.
18364 (vcvtq_u64_f64): Likewise.
18365 (vcvta_u32_f32): Likewise.
18366 (vcvtaq_u32_f32): Likewise.
18367 (vcvtaq_u64_f64): Likewise.
18368 (vcvtm_u32_f32): Likewise.
18369 (vcvtmq_u32_f32): Likewise.
18370 (vcvtmq_u64_f64): Likewise.
18371 (vcvtn_u32_f32): Likwise.
18372 (vcvtnq_u32_f32): Likewise.
18373 (vcvtnq_u64_f64): Likewise.
18374 (vcvtp_u32_f32): Likewise.
18375 (vcvtpq_u32_f32): Likewise.
18376 (vcvtpq_u64_f64): Likewise.
18377 (vcvtmd_u64_f64): Likewise.
18378 (vcvtms_u32_f32): Likewise.
18379 (vcvtad_u64_f64): Likewise.
18380 (vcvtas_u32_f32): Likewise.
18381 (vcvtnd_u64_f64): Likewise.
18382 (vcvtns_u32_f32): Likewise.
18383 (vcvtpd_u64_f64): Likewise.
18384 (vcvtps_u32_f32): Likewise.
18386 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18389 CSEL of zero_extended registers.
18391 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18393 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18394 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18396 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18398 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18399 false when argument string is not found in the attributes table
18402 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18405 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18406 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18407 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18408 precision estimate.
18410 2016-01-15 Richard Biener <rguenther@suse.de>
18412 PR tree-optimization/66856
18413 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18414 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18415 (vect_create_new_slp_node): Increment stmt reference count.
18416 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18417 an SLP tree before swapping operands.
18418 (vect_build_slp_tree): Likewise.
18419 (destroy_bb_vec_info): Free stmt info after SLP instances.
18420 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18421 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18422 (STMT_VINFO_NUM_SLP_USES): New macro.
18424 2016-01-15 Richard Biener <rguenther@suse.de>
18427 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18428 (add_linkage_name): ... here.
18429 (gen_typedef_die): Use add_linkage_name_raw instead of
18430 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18433 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18435 * gimplify.c (oacc_default_clause): Decode reference and pointer
18436 types for both kernels and parallel regions.
18438 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18440 PR middle-end/69246
18441 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18443 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18445 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18446 (convert_scalars_to_vector): Likewise.
18448 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18450 * doc/extend.texi (Type Traits): Fix grammar.
18452 2016-01-15 Martin Jambor <mjambor@suse.cz>
18454 * tree-inline.c (remap_decl): Use existing dclarations if
18455 remapping a type and prevent_decl_creation_for_types.
18456 (replace_locals_stmt): Do an initial remapping of non-VLA typed
18457 decls first. Do real remapping with
18458 prevent_decl_creation_for_types set.
18459 * tree-inline.h (copy_body_data): New field
18460 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18463 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18465 * config/s390/s390.opt (mmvcle): More verbose help text.
18467 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18469 * config/s390/s390.opt: Add period to -mzvector option text.
18471 2016-01-15 Richard Biener <rguenther@suse.de>
18473 PR tree-optimization/68961
18474 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18475 of invariants in stores again.
18477 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18479 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18481 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18483 * config/i386/i386.c (ix86_expand_branch): Don't split
18484 DI mode xor instruction to SI mode.
18486 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18489 * ipa-icf.c (sem_function::merge): Virtual functions may become
18490 reachable even if they address is not taken and there are no
18493 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18495 * lto-streamer-out.c (subtract_estimated_size): New function.
18496 (get_symbol_initial_value): Use it.
18498 2016-01-15 Christian Bruel <christian.bruel@st.com>
18501 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18502 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18503 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18504 use add_builtin_function_ext_scope instead of add_builtin_function.
18505 (neon_set_p, neon_crypto_set_p): Remove.
18506 (arm_init_builtins): Always call arm_init_neon_builtins and
18507 arm_init_crypto_builtins.
18508 (arm_expand_builtin): Check that builtins are allowed for the arch.
18509 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18510 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18511 arm_init_neon_builtins call.
18513 2016-01-15 Richard Biener <rguenther@suse.de>
18515 PR tree-optimization/69117
18516 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18517 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18518 of the leader conservatively.
18519 (free_scc_vn): Restore original SSA name infos.
18521 2016-01-14 Jeff Law <law@redhat.com>
18523 PR tree-optimization/69270
18524 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18525 single bit of precision, verify it's also unsigned.
18526 (record_edge_info): Use constant_boolean_node rather than fold_convert
18527 to convert boolean_true/boolean_false to the right type.
18529 2016-01-14 Richard Henderson <rth@redhat.com>
18532 * loop-doloop.c (record_reg_sets): New.
18533 (doloop_optimize): Reject the transform if the sequence
18534 clobbers registers live at the end of the loop block.
18535 (doloop_optimize_loops): Enable df_live if needed.
18537 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18539 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18540 * config/rs6000/rs6000.c: Likewise.
18541 * config/rs6000/rs6000.h: Likewise.
18542 * config/rs6000/rs6000.md: Likewise.
18543 * doc/extend.texi: Likewsie.
18545 2016-01-14 Jeff Law <law@redhat.com>
18547 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18550 2016-01-14 Richard Henderson <rth@redhat.com>
18554 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18555 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18556 instead of builtin_decl_declared_p to test for declaration.
18558 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18560 * doc/loop.texi (Loop Analysis and Representation): Document
18561 loop_depth function.
18563 2016-01-14 Tom de Vries <tom@codesourcery.com>
18565 PR tree-optimization/68773
18566 * omp-low.c (expand_omp_target): Don't set force_output.
18567 * varpool.c (varpool_node::get_create): Same.
18568 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18569 offload_funcs with force_output.
18571 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18574 * lra-eliminations.c (move_plus_up): Don't change anything if either
18575 the outer or inner subreg mode is not MODE_INT.
18576 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18577 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18579 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18581 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18582 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18583 reduc_uplus_@var{m}): Remove.
18584 * expr.c (expand_expr_real_2): Remove expansion path for
18585 reduc_[us](min|max|plus) optabs.
18586 * optabs-tree.c (scalar_reduc_to_vector): Remove.
18587 * optabs-tree.h (scalar_reduc_to_vector): Remove.
18588 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18589 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18590 * tree-vect-loop.c (vectorizable_reduction): Remove test for
18591 reduc_[us](min|max|plus) optabs.
18593 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18595 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18596 (reduc_plus_scal_v2sf): New.
18597 (reduc_smax_v2sf): Rename to...
18598 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18599 (reduc_smin_v2sf): Rename to...
18600 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18602 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18604 * alias.c (compare_base_symbol_refs): New function.
18605 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18608 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18610 PR middle-end/68146
18611 PR tree-optimization/69155
18612 * tree-complex.c: Include cfganal.h.
18613 (phis_to_revisit): New variable.
18614 (extract_component): Add phiarg_p argument. Assert that returned
18615 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18616 (update_phi_components): Partly rewrite to use loop over real/imag
18617 components instead of code duplication. If extract_component returns
18618 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18619 create_tmp_reg into the PHI node instead, and mention the phi triplet
18620 in phis_to_revisit.
18621 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
18622 in phis_to_revisit at the end.
18624 2016-01-14 Richard Biener <rguenther@suse.de>
18626 PR tree-optimization/68060
18627 * tree-vect-loop.c (vect_is_simple_reduction): Check the
18628 outer loop reduction is only used in the inner loop before
18629 detecting a double reduction.
18631 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18634 * combine.c (expand_field_assignment): Punt if compute_mode is
18635 unsupported scalar mode.
18637 2016-01-14 Richard Biener <rguenther@suse.de>
18639 PR tree-optimization/66856
18640 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18641 SLP node only if it built successfully.
18642 (vect_analyze_slp_instance): Adjust.
18644 2016-01-14 Jeff Law <law@redhat.com>
18646 PR tree-optimization/69270
18647 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18648 (record_edge_info): Use it. Convert boolean_{true,false}_node
18649 to the type of op0.
18651 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18654 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18655 use block_ultimate_origin
18656 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18658 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18660 * doc/invoke.texi (Submodel Options): Rename section to
18661 "Machine-Dependent Options" to better reflect its content.
18662 Rewrite introductory text to remove archaic CPU names.
18665 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18667 * doc/invoke.texi (Code Gen Options): Move section up in file,
18668 before target-specific options. Update menu and option summary
18669 to reflect the new section ordering.
18671 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18673 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18674 (C++ Dialect Options): Add cross-reference to -std option.
18675 * doc/standards.texi (C++ Language): Document C++14 support.
18677 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18679 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18680 for pack/unpack functions for __ibm128.
18681 (PACK_IF): Likewise.
18682 (UNPACK_IF): Likewise.
18684 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18685 support for __ibm128 pack/unpack functions.
18686 (rs6000_invalid_builtin): Likewise.
18687 (rs6000_init_builtins): Likewise.
18688 (rs6000_opt_masks): Likewise.
18690 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18691 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18693 (RS6000_BTM_COMMON): Likewise.
18695 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18696 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18697 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18698 128-bit floating point. Add support for the double values to be
18699 in Altivec registers for TF/IF packing and unpacking, but restrict
18700 TD packing sub-fields to be FPR registers. Don't allow overlapped
18701 register support for packing. Allow pack inputs to be memory
18702 locations. Don't build generator functions for unpack<mode>_dm
18703 and unpack<mode>_nodm.
18704 (unpack<mode>_dm): Likewise.
18705 (unpack<mode>_nodm): Likewise.
18706 (pack<mode>): Likewise.
18708 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18709 built-in functions to pack/unpack explicit __ibm128 values.
18710 (__builtin_unpack_ibm128): Likewise.
18712 * doc/extend.texi (PowerPC Built-in Functions): Document
18713 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18715 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
18718 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18719 Add new arg loc and pass it down as context.
18720 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18721 to the location to use for the warning.
18722 (check_function_arguments): New arg loc. All callers changed. Pass
18723 it to check_function_nonnull.
18724 * c-common.h (check_function_arguments): Adjust declaration.
18726 2016-01-13 Jakub Jelinek <jakub@redhat.com>
18728 PR tree-optimization/69156
18729 * gimple.c (validate_type): Removed.
18730 (gimple_builtin_call_types_compatible_p): Use
18731 useless_type_conversion_p instead of validate_type.
18732 * value-prof.c (gimple_stringop_fixed_value): Fold
18733 icall_size to correct type.
18735 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18737 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18740 2016-01-13 Richard Henderson <rth@redhat.com>
18743 * target.def (builtin_tm_load, builtin_tm_store): Remove.
18744 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18745 (ix86_builtin_tm_store): Remove.
18746 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18747 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18748 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18749 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18750 * doc/tm.texi: Rebuild.
18752 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18753 (BUILT_IN_TM_MEMCPY_RTWN): New.
18754 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18755 fallback from vector to integer helpers.
18756 (build_tm_load): Handle vector types directly, instead of
18758 (build_tm_store): Likewise.
18759 (expand_assign_tm): Prepare for register types not handled by
18760 the above. Copy them to memory and use memcpy.
18761 * tree.c (tm_define_builtin): New.
18762 (find_tm_vector_type): New.
18763 (build_tm_vector_builtins): New.
18764 (build_common_builtin_nodes): Call it.
18766 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
18768 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18769 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
18771 2016-01-13 Tom de Vries <tom@codesourcery.com>
18773 PR tree-optimization/69169
18774 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18775 handled_struct_type param.
18776 (create_variable_info_for, intra_create_variable_infos): Call
18777 create_variable_info_for_1 with extra arg.
18779 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
18781 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18782 and "armv8.1-a+crc" entries.
18784 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
18787 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18788 Change first operand predicate from register_or_constm1_operand
18789 to register_operand.
18790 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18791 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18792 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18793 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18794 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18795 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18796 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18797 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18798 comparison with constm1_rtx from vec_prefetch_gen part.
18800 2016-01-13 Richard Biener <rguenther@suse.de>
18802 PR tree-optimization/69013
18803 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18804 Exchange assert for a test.
18806 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18809 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18811 2016-01-13 Richard Biener <rguenther@suse.de>
18813 PR tree-optimization/69242
18814 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18815 assert with a check.
18817 2016-01-13 Richard Biener <rguenther@suse.de>
18819 PR tree-optimization/69186
18820 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18821 Properly guard vect_update_misalignment_for_peel call.
18823 2016-01-12 Jeff Law <law@redhat.com>
18825 PR tree-optimization/pr67755
18826 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18827 "need_profile_correction".
18828 (thread_block_1): Initialize new field to false by default. If we
18829 have multiple thread paths through a common joiner to different
18830 final targets, then set new field to true.
18831 (compute_path_counts): Only do count adjustment when it's really
18834 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18836 * doc/invoke.texi (Spec Files): Move section down in file, past
18837 all command-line option descriptions.
18839 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18841 PR middle-end/54809
18842 * doc/gty.texi: Remove documentation of mark_hook.
18843 * gengtype.c (struct write_types_data): Remove code to support
18844 mark_hook attribute.
18845 (walk_type): Likewise.
18846 (write_func_for_structure): Likewise.
18848 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18850 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18851 Directory Options, and -specs= to Overall Options.
18852 (Overall Options): Adjust similarly. Reorder to group related
18853 options together. Make -specs= cross-reference the spec file details.
18854 (Directory Options): Adjust similarly.
18856 2016-01-12 Jeff Law <law@redhat.com>
18858 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18860 2016-01-12 Olivier Hainque <hainque@adacore.com>
18862 * gcc.c (spec_undefvar_allowed): New global.
18863 (process_command): Set to true when running for --version or --help,
18865 (getenv_spec_function): When the variable is not defined, use the
18866 variable name as the variable value if we're allowed not to issue
18869 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18871 PR tree-optimization/68911
18872 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18873 information computed for expression "init + nit * step".
18875 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18877 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
18878 about name of GCC executable. Remove deleted node from menu.
18879 (Directory Options) <-B>: Remove cross-reference to deleted node.
18880 (Target Options): Delete section.
18882 2016-01-12 Christian Bruel <christian.bruel@st.com>
18885 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18886 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18888 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18891 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18892 aligned_mem is properly set for AVX512-VL floating point masked
18896 * ifcvt.c (cond_exec_process_if_block): When removing the last
18897 insn from then_bb, remove also any possible barriers that follow it.
18899 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18903 * config/i386/iamcu.h (SIZE_TYPE): New macro.
18904 (PTRDIFF_TYPE): Likewise.
18905 (WCHAR_TYPE): Likewise.
18906 (WCHAR_TYPE_SIZE): Likewise.
18907 (STDINT_LONG32): Likewise.
18909 2016-01-12 Richard Biener <rguenther@suse.de>
18911 PR tree-optimization/69053
18912 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18913 convert initial value for cond reductions.
18915 2016-01-12 Richard Biener <rguenther@suse.de>
18917 PR tree-optimization/69007
18918 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18919 widen_sum after dot_prod and sad.
18921 2016-01-12 Richard Biener <rguenther@suse.de>
18923 PR tree-optimization/69168
18924 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18925 pattern stmt SLP type.
18926 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18927 end up unused so cope with that case.
18929 2016-01-12 Richard Biener <rguenther@suse.de>
18931 PR tree-optimization/69157
18932 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18933 stmts def type only during analyze phase.
18934 (vectorizable_call): Likewise.
18935 (vectorizable_simd_clone_call): Likewise.
18936 (vectorizable_conversion): Likewise.
18937 (vectorizable_assignment): Likewise.
18938 (vectorizable_shift): Likewise.
18939 (vectorizable_operation): Likewise.
18940 (vectorizable_store): Likewise.
18941 (vectorizable_load): Likewise.
18943 2016-01-12 Richard Biener <rguenther@suse.de>
18945 PR tree-optimization/69174
18946 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18948 (vectorizable_load): Properly compute the number of loads needed
18949 for permuted strided SLP loads and do not spuriously assign
18950 to SLP_TREE_VEC_STMTS.
18952 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18954 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18955 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18956 (MD_EXEC_PREFIX): Remove.
18957 (MD_STARTFILE_PREFIX) Removee.
18958 (FILE_NAME_ABSOLUTE_P): Remove.
18959 (CPP_SPEC): Do not read macros from sys/version.h.
18960 (LINK_COMMAND_SPEC): Remove.
18961 (LOCAL_INCLUDE_DIR): Remove.
18962 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18963 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18964 (POST_LINK_SPEC): Define to invoke stubify after linker
18965 (LIBSTDCXX): Remove define
18966 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18967 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18968 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18969 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18970 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18971 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18972 (i386_djgpp_asm_named_section): Add propotype of new procedure
18974 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18975 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18976 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18977 in config/i386/djgpp.h).
18978 (STANDARD_STARTFILE_PREFIX_2): Define identical to
18979 STANDARD_STARTFILE_PREFIX_1.
18980 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18981 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18982 installation errors.
18983 (MAX_OFILE_ALIGNMENT): Define to 128.
18984 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18986 * config/i386/djgpp.c: New file. Add implementation of
18987 i386_djgpp_asm_named_section.
18989 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18991 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18992 Add rule for building djgpp.o.
18994 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18996 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18997 (rtx_is_swappable_p): Reductions are swappable.
18998 (insn_is_swappable_p): V2DF reductions are swappable.
19000 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
19002 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
19003 reloads for other unsupported memory operands.
19005 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19006 Jim Wilson <jim.wilson@linaro.org>
19009 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
19010 copy_to_mode_reg instead of force_reg.
19012 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
19015 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
19016 TARGET_80387 is true.
19018 2016-01-11 Jakub Jelinek <jakub@redhat.com>
19021 * lra-eliminations.c (move_plus_up): Only move plus up
19022 if subreg of the constant can be simplified into constant
19023 and use the simplified subreg of the constant instead of
19024 the original constant.
19026 * fold-const.c (fold_convertible_p): Don't return true
19027 for conversion of VECTOR_TYPE to same sized integral type.
19028 (fold_convert_loc): Fix up formatting. Fold conversion of
19029 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
19030 instead of NOP_EXPR.
19032 PR tree-optimization/69214
19033 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
19034 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19037 PR tree-optimization/69207
19038 * tree-vect-slp.c (vect_get_constant_vectors): For
19039 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
19040 fold_convertible_p to vector_type's element type, and always
19041 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
19043 2016-01-11 Richard Biener <rguenther@suse.de>
19045 PR tree-optimization/69173
19046 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
19047 fixup the cycle if all stmts are in a pattern.
19049 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
19051 PR middle-end/68999
19052 * alias.c (base_alias_check): Move check for addresses with
19053 alignment ANDs before the call for compare_base_decls.
19054 (memrefs_conflict_p): Return -1 for different decls
19055 that went through alignment adjustments.
19057 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19059 PR rtl-optimization/68796
19060 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
19061 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
19062 and QImode comparisons against zero with CC_NZmode.
19063 * config/aarch64/iterators.md (short_mask): New mode_attr.
19065 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
19067 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
19068 (<avx512>_store<mode>_mask): Likewise.
19070 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
19071 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19073 PR rtl-optimization/68841
19074 * ifcvt.c (struct noce_if_info): Add orig_x field.
19075 (bbs_ok_for_cmove_arith): Add to_rename parameter.
19076 Don't record conflicts on to_rename if it's present.
19077 Allow memory destinations in sets.
19078 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
19079 blocks, passing orig_x to the checks.
19080 (noce_process_if_block): Set if_info->orig_x appropriately.
19082 2016-01-11 Tom de Vries <tom@codesourcery.com>
19084 PR tree-optimization/69069
19085 * tree-parloops.c (create_parallel_loop): Add missing phi args.
19087 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19089 PR rtl-optimization/68920
19090 * config/i386/i386.c (ix86_option_override_internal): Restrict number
19091 of conditional moves for RTL if-conversion to 1 for
19092 TARGET_ONE_IF_CONV_INSN.
19093 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
19094 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
19095 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
19096 parameter to restirct number of conditional moves for
19098 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
19099 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
19102 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
19105 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
19106 onepart vars. Fix typo in comment. Fix reversed condition in
19108 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
19111 * var-tracking.c (dump_onepart_variable_differences): New.
19112 (dataflow_set_different): If a detailed dump is requested,
19113 delay early returns and dump differences between onepart
19114 variables present before and after, and added variables.
19116 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
19119 * expr.c (expand_expr_real_1): For boolean vector constants
19120 with a scalar mode use const_scalar_mask_from_tree.
19121 (const_scalar_mask_from_tree): New.
19122 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
19123 assigned to a mask type to handle constants.
19125 2016-01-11 Martin Jambor <mjambor@suse.cz>
19128 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
19129 useless parameters if we cannot change function signature.
19131 2016-01-11 Martin Jambor <mjambor@suse.cz>
19134 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
19137 2016-01-11 Tom de Vries <tom@codesourcery.com>
19139 PR tree-optimization/69109
19140 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
19143 2016-01-11 Tom de Vries <tom@codesourcery.com>
19145 PR tree-optimization/69108
19146 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
19147 res is not used in a phi.
19149 2016-01-11 Yury Gribov <y.gribov@samsung.com>
19152 * common.opt (frandom-seed): Fix parameter name.
19153 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
19155 2016-01-11 Tom de Vries <tom@codesourcery.com>
19157 PR tree-optimization/69058
19158 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
19161 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
19163 * config/arc/arc.opt (mdiv-rem): Add period to the end.
19164 (mcode-density): Likewise.
19166 2016-01-10 Tom de Vries <tom@codesourcery.com>
19168 PR tree-optimization/69062
19169 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
19170 (parallelize_loops): Don't paralelize loop that has phi with address
19173 2016-01-10 Tom de Vries <tom@codesourcery.com>
19175 PR tree-optimization/69039
19176 * tree-parloops.c (try_create_reduction_list): Only allow single exit
19179 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
19181 PR middle-end/68743
19182 * match.pd: Require target has function_c99_misc before doing
19183 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
19185 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
19187 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
19189 * configure: Regenerate.
19191 2016-01-09 Jakub Jelinek <jakub@redhat.com>
19193 PR middle-end/50865
19194 PR tree-optimization/69097
19195 * fold-const.h (expr_not_equal_to): New prototype.
19196 * fold-const.c: Include stringpool.h and tree-ssanames.h.
19197 (expr_not_equal_to): New function.
19198 * match.pd (X % -Y is the same as X % Y): Don't optimize
19199 unless X is known not to be equal to minimum or Y is known
19200 not to be equal to -1.
19201 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
19202 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
19203 (simplify_stmt_using_ranges): Adjust caller.
19204 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
19205 substitute_and_fold.
19207 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
19209 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
19212 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19214 PR tree-optimization/69167
19215 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
19216 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
19218 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
19220 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
19221 Richard Biener <rguenther@suse.de>
19223 PR tree-optimization/68707
19224 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
19225 instances that can be handled via vect_load_lanes.
19227 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
19229 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
19230 if we can't determine address equivalence.
19231 * alias.c (compare_base_decl): Update for changed return value of
19232 symtab_node::equal_address_to.
19234 2016-01-08 Jason Merrill <jason@redhat.com>
19238 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
19239 * expr.c (store_field): Not here.
19240 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
19241 call with TREE_ADDRESSABLE type.
19242 * tree-cfg.c (verify_gimple_call): Adjust.
19244 2016-01-08 Olivier Hainque <hainque@adacore.com>
19246 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
19249 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
19251 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
19252 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
19253 (reduc_smin_v2sf): Rename to...
19254 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
19255 (reduc_splus_v2sf): Rename to...
19256 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
19258 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19260 PR tree-optimization/69162
19261 * gimplify.c (gimplify_va_arg_expr): Encode original type of
19262 valist argument in another argument.
19263 (gimplify_modify_expr): Adjust for the above change. Cleanup.
19264 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
19265 to determine the va_list type, build a MEM_REF instead of
19266 build_fold_indirect_ref.
19268 PR tree-optimization/69172
19269 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
19272 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
19274 PR tree-optimization/67781
19275 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
19276 and cmpnop in two steps: first the ones not accessed in original
19277 gimple expression in a endian independent way and then the ones not
19278 accessed in the final result in an endian-specific way.
19280 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19282 PR tree-optimization/69083
19283 * tree-vect-slp.c (vect_get_constant_vectors): For
19284 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
19285 element type. If op is fold_convertible_p to vector_type's element
19286 type, use NOP_EXPR instead of VCE.
19288 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
19290 PR rtl-optimization/67778
19291 PR rtl-optimization/68634
19292 PR rtl-optimization/68909
19293 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
19294 block from the stack until done with it. Remove a superfluous
19295 bitmap set. Remove a superfluous bitmap test.
19297 2016-01-07 Martin Sebor <msebor@redhat.com>
19300 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19301 constraint on the type of arguments.
19303 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
19305 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19306 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19307 unaligned_access on the gcc_options set.
19308 * config/arm/arm.c (arm_option_override_internal): Use
19309 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19311 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19314 * config/i386/i386.c (ix86_frame_pointer_required): Enable
19315 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19317 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19320 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19323 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19324 depending on frame_pointer_needed before remaining integer and SSE
19325 registers are saved.
19327 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
19330 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19332 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
19335 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19336 Use the "xBm" constraint.
19337 (float<sseintvecmodelower><mode>2<mask_name><round_name):
19339 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19340 (sse_cvtsi2ssq<round_name>): Likewise.
19341 (sse_cvtss2si<round_name>): Likewise.
19342 (sse_cvtss2siq<round_name>): Likewise.
19343 (sse2_cvtsi2sdq<round_name>): Likewise.
19344 (sse2_cvtsd2si<round_name>): Likewise.
19345 (sse2_cvtsd2siq<round_name>): Likewise.
19346 * config/i386/subst.md (round_nimm_scalar_predicate): New
19349 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19351 PR middle-end/67639
19352 * varasm.c (make_decl_rtl): Mark invalid register vars as
19355 PR rtl-optimization/66206
19356 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19357 All callers changed.
19359 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19361 PR tree-optimization/69141
19362 * tree-ssa-pre.c: Include langhooks.h.
19363 (eliminate_dom_walker::before_dom_children): Use
19364 lang_hooks.decl_printable_name instead of
19365 cgraph_node::get ()->name ().
19367 PR middle-end/68960
19368 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19369 it and DECL_ALIGN too.
19371 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19373 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19375 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19378 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19379 depending on frame_pointer_needed before remaining integer and SSE
19380 registers are saved.
19382 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19384 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19385 mode iterator with VSX_M2.
19386 (*p9_vecstore_<mode>): Likewise.
19387 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19388 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19389 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19390 (define_split for VSX_LE128 stores): Likewise.
19391 (define_peephole2 for TImode LE swaps): Likewise.
19392 (define_split for VSX_LE128 post-reload stores): Likewise.
19394 2016-01-06 Marek Polacek <polacek@redhat.com>
19397 * convert.c (convert_to_integer_1): Adjust call to
19398 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
19399 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
19400 EXPR instead of ARG.
19401 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19403 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19406 * doc/extend.texi (RL78 Variable Attributes): New section.
19408 2016-01-05 Marek Polacek <polacek@redhat.com>
19411 * builtins.c (get_memmodel): Use expansion point location rather than
19412 the input location. Call warning_at rather than warning.
19413 (expand_builtin_atomic_compare_exchange): Likewise.
19414 (expand_builtin_atomic_load): Likewise.
19415 (expand_builtin_atomic_store): Likewise.
19416 (expand_builtin_atomic_clear): Likewise.
19418 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19421 * config/i386/i386.c (ix86_expand_vector_logical_operator):
19422 Replace nonimmediate_operand with vector_operand.
19423 * config/i386/predicates.md (vector_operand): New predicate.
19424 (general_vector_operand): Replace nonimmediate_operand with
19426 * config/i386/sse.md: Replace nonimmediate_operand with
19427 vector_operand and m constraint with Bm constraint on SSE
19428 patterns with 16-byte memory operand.
19429 * config/i386/subst.md (round_nimm_predicate): Replace
19430 nonimmediate_operand with vector_operand.
19431 (round_saeonly_nimm_predicate): Likewise.
19432 (round_saeonly_nimm_scalar_predicate): New.
19434 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19437 * config/i386/constraints.md (Bm): New constraint.
19438 * config/i386/predicates.md (vector_memory_operand): New
19440 * config/i386/sse.md: Replace xm with xBm in plusminus and
19441 any_logic patterns.
19443 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19446 * doc/extend.texi (V850 Function Attributes): New section.
19447 (V850 Variable Attributes): New section.
19449 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19452 * doc/extend.texi (MicroBlaze Function Attributes): Document
19453 interrupt_handler and fast_interrupt attributes.
19455 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19458 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19459 for local symbolic operands.
19460 * config/ia64/predicates.md (local_symbolic_operand64): New
19463 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19465 PR rtl-optimization/68651
19466 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19469 2016-01-05 Nathan Sidwell <nathan@acm.org>
19471 * alias.c (compare_base_decls): Use symtab_node::get.
19473 2016-01-05 Nick Clifton <nickc@redhat.com>
19476 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19477 secondary_reload_info structure.
19480 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19481 decls if weak support is available.
19483 2016-01-04 Martin Sebor <msebor@redhat.com>
19485 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19487 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19489 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19490 OPTION_MASK_P9_DFORM.
19492 * config/rs6000/constraints.md (wo constraint): New constraint for
19495 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19497 (rs6000_init_hard_regno_mode_ok): Likewise.
19499 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19502 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19503 expanders not to have constraints. Add support for ISA 3.0 xxperm
19504 instruction. Add support for fusing xxlor with xxperm.
19505 (altivec_vperm_<mode>_internal): Likewise.
19506 (altivec_vperm_v8hiv16qi): Likewise.
19507 (altivec_vperm_<mode>v16q): Likewise.
19508 (altivec_vperm_<mode>_uns): Likewise.
19509 (vperm_v8hiv4si): Likewise.
19510 (vperm_v16qiv8hi): Likewise.
19512 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19514 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19516 Update copyright years.
19518 * gcc.c (process_command): Update copyright notice dates.
19519 * gcov-dump.c (print_version): Ditto.
19520 * gcov.c (print_version): Ditto.
19521 * gcov-tool.c (print_version): Ditto.
19522 * gengtype.c (create_file): Ditto.
19523 * doc/cpp.texi: Bump @copying's copyright year.
19524 * doc/cppinternals.texi: Ditto.
19525 * doc/gcc.texi: Ditto.
19526 * doc/gccint.texi: Ditto.
19527 * doc/gcov.texi: Ditto.
19528 * doc/install.texi: Ditto.
19529 * doc/invoke.texi: Ditto.
19531 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19533 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19534 modes larger than TImode as TImode if NEON is not enabled.
19536 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19539 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19540 mode for %f0-%f31 only if TARGET_FPU.
19542 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19545 * config/sparc/sparc.c (scan_record_type): Take into account subfields
19546 to compute the PACKED_P predicate.
19547 (function_arg_record_value): Minor tweaks.
19549 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19551 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19552 option for arm*-*-* targets.
19554 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19556 * doc/extend.texi (Common Function Attributes): Move docs for
19557 MSP430-specific attributes to....
19558 (MSP430 Function Attributes): ...here. Delete the redundant
19559 entries and copy-edit the remaining text.
19560 (MSP430 Variable Attributes): Use uniform format for index
19561 entries and add a cross-reference to the corresponding function
19564 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19566 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19568 (x86 Options): Likewise.
19570 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19574 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19575 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19576 to corresponding attribute.
19578 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19580 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19581 to correct alphabetization of table. Copy-edit and correct
19583 <stack_protect>: Likewise.
19584 <target_clones>: Likewise.
19586 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19587 Correct punctuation.
19588 (Code Gen Options) <-fno-plt>: Copy-edit.
19590 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19593 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19594 SI values. Explicitly convert SI to DI and vice-versa.
19596 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19598 PR tree-optimization/69070
19599 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19600 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19603 * ubsan.c (ubsan_instrument_float_cast): Call
19604 initialize_sanitizer_builtins.
19607 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19609 Copyright (C) 2016 Free Software Foundation, Inc.
19611 Copying and distribution of this file, with or without modification,
19612 are permitted in any medium without royalty provided the copyright
19613 notice and this notice are preserved.