pr70963.c: Require at least power8 at both compile and run time.
[gcc.git] / gcc / ChangeLog
1 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2
3 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4 compile and run time.
5
6 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7
8 PR c/43651
9 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
10
11 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
12
13 * config/i386/i386.c (legitimize_pic_address): Use
14 copy_to_suggested_reg instead of gen_movsi.
15
16 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17
18 * config/rs6000/predicates.md (quad_memory_operand): Move most of
19 the code into quad_address_p and call it to share code with
20 vsx_quad_dform_memory_operand.
21 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
22 d-form support.
23 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24 bit instead of being a separate word. Split -mpower9-dform into
25 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
26 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
27 for the register class supporting 128-bit quad word memory
28 offsets.
29 (mode_supports_vsx_dform_quad): Helper function to return if the
30 register class uses quad word memory offsets.
31 (rs6000_debug_addr_mask): Add support for quad word memory
32 offsets.
33 (rs6000_debug_reg_global): Always print if we are using LRA or
34 not.
35 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
36 instructions are enabled, set up the appropriate addr_masks for
37 128-bit types.
38 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
39 -mpower9-dform-scalar, instead of -mpower9-dform.
40 (rs6000_option_override_internal): Split -mpower9-dform into two
41 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
42 -mpower9-dform switch sets or clears both. If we are not using
43 the LRA register allocator, do not enable -mpower9-dform-vector by
44 default. If we are using LRA, enable -mpower9-dform-vector and
45 -mvsx-timode if it is appropriate. Issue a warning if either
46 -mpower9-dform-vector or -mvsx-timode are explicitly used without
47 enabling LRA.
48 (quad_address_offset_p): New helper function to return if the
49 offset is legal for quad word memory instructions.
50 (quad_address_p): New function to determin if GPR or vector
51 register quad word memory addresses are legal.
52 (mem_operand_gpr): Validate quad word address offsets.
53 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
54 d-form (register + offset) instructions.
55 (offsettable_ok_by_alignment): Likewise.
56 (rs6000_legitimate_offset_address_p): Likewise.
57 (legitimate_lo_sum_address_p): Likewise.
58 (rs6000_legitimize_address): Likewise.
59 (rs6000_legitimize_reload_address): Add more debug statements for
60 -mdebug=addr.
61 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
62 d-form instructions.
63 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
64 d-form instructions. Distinguish different cases in debug
65 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
66 d-form instructions.
67 (rs6000_preferred_reload_class): Likewise.
68 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
69 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
70 of the ISA 2.06 indexed memory instructions.
71 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
72 use them to save/restore the saved vector registers instead of
73 using Altivec instructions.
74 (rs6000_emit_epilogue): Likewise.
75 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
76 (rs6000_opt_masks): Split -mpower9-dform into
77 -mpower9-dform-scalar and -mpower9-dform-vector.
78 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
79 was not selected.
80 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
81 ISA 3.0 vector indexed memory instructions, and fold the code into
82 the normal mov<mode> patterns.
83 (p9_vecstore_<mode>): Likewise.
84 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
85 instructions.
86 (vsx_movti_64bit): Likewise.
87 (vsx_movti_32bit): Likewise.
88 * config/rs6000/constraints.md (wO constraint): New constraint for
89 ISA 3.0 vector d-form support.
90 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
91 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
92 include -mpower9-dform-vector until we switch over to LRA.
93 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
94 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
95 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
96 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
97 for -mpower9-dform and -mlra.
98 * doc/md.texi (wO constraint): Document wO constraint.
99
100 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
101
102 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
103 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
104 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
105 Move handling of non-insn arguments inline into the sole user:
106 (output_trans_func): ...here.
107 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
108 in emitted function prototype.
109 (output_internal_insn_latency_func): Ditto. Simplify.
110 (output_internal_maximal_insn_latency_func): Ditto. Delete
111 always-unused argument.
112 (output_insn_latency_func): Ditto.
113 (output_maximal_insn_latency_func): Ditto.
114
115 2016-05-11 Richard Biener <rguenther@suse.de>
116
117 PR tree-optimization/71055
118 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
119 sth with precision not equal to access size verify we don't chop
120 off bits.
121
122 2016-05-11 Richard Biener <rguenther@suse.de>
123
124 PR debug/71057
125 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
126 (dwarf2out_finish): Move retry_incomplete_types call ...
127 (dwarf2out_early_finish): ... here.
128
129 2016-05-11 Richard Biener <rguenther@suse.de>
130
131 PR middle-end/71002
132 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
133 if the langhook insists on it.
134 * fold-const.c (make_bit_field_ref): Add arg for the original
135 reference and preserve its alias-set.
136 (decode_field_reference): Take exp by reference and adjust it
137 to the original memory reference.
138 (optimize_bit_field_compare): Adjust callers.
139 (fold_truth_andor_1): Likewise.
140 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
141
142 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
143
144 PR middle-end/70807
145 * cfgrtl.h (delete_insn_and_edges): Now return bool.
146 * cfgrtl.c (delete_insn_and_edges): Likewise.
147 * config/i386/i386.c (convert_scalars_to_vector): Remove
148 redundant code.
149 * cse.c (cse_insn): Compute cse_cfg_altered.
150 (delete_trivially_dead_insns): Likewise.
151 (cse_cc_succs): Likewise.
152 (rest_of_handle_cse): Free dominance info if required.
153 (rest_of_handle_cse2): Likewise.
154 (rest_of_handle_cse_after_global_opts): Likewise.
155
156 2016-05-11 Alan Modra <amodra@gmail.com>
157
158 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
159 abi_v4_pass_in_fpr): New functions.
160 (rs6000_function_arg_boundary): Exclude complex IBM long double
161 from 64-bit alignment when ABI_V4.
162 (rs6000_function_arg, rs6000_function_arg_advance_1,
163 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
164
165 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
166
167 PR rtl-optimization/71028
168 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
169 jump with just a return in the fallthrough block if the branch
170 block contains just a return as well.
171
172 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
173
174 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
175 * match.pd ((X & Y) ^ Y): ... this.
176 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
177 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
178
179 2016-05-10 David Malcolm <dmalcolm@redhat.com>
180
181 * read-md.c (require_char_ws): New function.
182 (read_string): Simplify using require_char_ws.
183 (handle_constants): Likewise.
184 (handle_enum): Likewise.
185 (handle_file): Likewise.
186 * read-md.h (require_char_ws): New declaration.
187 * read-rtl.c (read_conditions): Simplify using require_char_ws.
188 (read_mapping): Likewise.
189 (read_rtx_code): Likewise.
190 (read_nested_rtx): Likewise.
191
192 2016-05-10 James Norris <jnorris@codesourcery.com>
193
194 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
195 if offloading is enabled and -fopenacc or -fopenmp is specified.
196 (CRTOFFLOADEND): Likewise.
197 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
198 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
199
200 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
201
202 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
203 gotoff_operand code paths. Use copy_to_suggested_regs and
204 expand_simple_binop where appropriate. Cleanup.
205
206 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
207
208 PR target/70799
209 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
210 integer constants.
211 (dimode_scalar_chain::vector_const_cost): New.
212 (dimode_scalar_chain::compute_convert_gain): Handle constants.
213 (dimode_scalar_chain::convert_op): Likewise.
214 (dimode_scalar_chain::convert_insn): Likewise.
215
216 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
217
218 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
219 unary operation, not a binary one.
220
221 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
222
223 PR middle-end/70877
224 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
225 calls with type casted fndecl.
226
227 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
228
229 PR tree-optimization/70786
230 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
231 * gcc/calls.c (initialize_argument_information): Bind bounds
232 with corresponding args passed by reference.
233
234 2016-05-10 Jakub Jelinek <jakub@redhat.com>
235
236 PR target/70927
237 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
238 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
239 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
240 accordingly.
241
242 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
243
244 PR target/70963
245 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
246 code for a zero scale factor.
247 (vsx_xvcvdpuxds_scale): Likewise.
248
249 2016-05-10 David Malcolm <dmalcolm@redhat.com>
250
251 * diagnostic-show-locus.c (layout::layout): Call show_ruler
252 if show_ruler_p was set on the context.
253 (layout::show_ruler): New method.
254 * diagnostic.h (struct diagnostic_context): Add field
255 "show_ruler_p".
256
257 2016-05-10 Richard Biener <rguenther@suse.de>
258
259 PR tree-optimization/71039
260 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
261 (chk_uses): New function.
262 (propagate_with_phi): Verify we can safely replicate the lhs of an
263 aggregate assignment on all incoming edges.
264
265 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
266
267 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
268 Forward declare.
269 (rx_atomic_sequence): New class.
270 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
271 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
272 non-inline.
273 (rx_atomic_sequence::rx_atomic_sequence,
274 rx_atomic_sequence::~rx_atomic_sequence): New functions.
275 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
276 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
277 CTRLREG_INTB): New constants.
278 (FETCHOP): New code iterator.
279 (fethcop_name, fetchop_name2): New iterator code attributes.
280 (QIHI): New mode iterator.
281 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
282 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
283 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
284
285 2016-05-10 Martin Liska <mliska@suse.cz>
286
287 * tree-inline.c (remap_dependence_clique): Do not remap
288 debugging statements.
289
290 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
291
292 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
293 ("*fixuns_truncdfdi2_z13")
294 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
295 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
296 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
297
298 2016-05-10 Richard Biener <rguenther@suse.de>
299
300 PR tree-optimization/70497
301 PR tree-optimization/28367
302 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
303 split out from ...
304 (visit_reference_op_load): ... here.
305 (vn_reference_lookup_3): Use it to handle subreg-like accesses
306 with simplified BIT_FIELD_REFs.
307 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
308 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
309 correctly.
310
311 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
312
313 * dwarf2out.c (add_abstract_origin_attribute): Adjust
314 documentation comment. For BLOCK nodes, add a
315 DW_AT_abstract_origin attribute that points to the DIE generated
316 for the origin BLOCK.
317 (gen_lexical_block_die): Call add_abstract_origin_attribute for
318 blocks from inlined functions.
319
320 2016-05-10 Alan Modra <amodra@gmail.com>
321
322 PR target/70947
323 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
324 regrename modifying insns saving lr before __morestack call.
325 * config/rs6000/rs6000.md (split_stack_return): Similarly for
326 insns restoring lr after __morestack call.
327
328 2016-05-09 Jakub Jelinek <jakub@redhat.com>
329
330 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
331 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
332 expanders.
333 * config/i386/sse.md (vec_interleave_high<mode>,
334 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
335 <avx512>_vpermt2var<mode>3_maskz): Likewise.
336
337 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
338
339 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
340 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
341 parallel reassociation for power8 and forward.
342
343 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
344
345 * config/i386/i386.md (absneg splitters with general regs): Use
346 general_reg_operand predicate.
347 (btsq peephole2): Use x86_64_immediate_operand to check if new
348 value is suitable for immediate operand. Generate emitted insn
349 using RTL expressions.
350 (btcq peephole2): Ditto.
351 (btrq peephole2): Ditto. Generate correct immediate operand
352 for AND masking.
353
354 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
355
356 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
357 bitpos.
358
359 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
360
361 * tree-affine.c (wide_int_constant_multiple_p): Add missing
362 pointer dereference.
363
364 2016-05-09 Richard Biener <rguenther@suse.de>
365
366 PR tree-optimization/70985
367 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
368 op0 isn't a gimple register.
369
370 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
371
372 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
373 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
374 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
375 (i6400_fpu_mult): New cpu units.
376 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
377 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
378 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
379 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
380 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
381 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
382 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
383 (i6400_msa_long_float4, i6400_msa_long_float5)
384 (i6400_msa_long_float8, i6400_msa_fdiv_df)
385 (i6400_msa_fdiv_sf): New reservations.
386 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
387 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
388 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
389 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
390 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
391 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
392 (msa_short_cmp, msa_short_float2, msa_short_logic3)
393 (msa_short_store4, msa_long_load, msa_short_store)
394 (msa_long_logic, msa_long_float2, msa_long_float4)
395 (msa_long_float5, msa_long_float8, msa_long_mult)
396 (msa_long_fdiv, msa_long_div): New reservations.
397
398 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
399 Sameera Deshpande <sameera.deshpande@imgtec.com>
400 Matthew Fortune <matthew.fortune@imgtec.com>
401 Graham Stott <graham.stott@imgtec.com>
402 Chao-ying Fu <chao-ying.fu@imgtec.com>
403
404 * config.gcc: Add MSA header file for mips*-*-* target.
405 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
406 (Ubv8i, Urv8): New constraints.
407 * config/mips/mips-ftypes.def: Add function types for MSA
408 builtins.
409 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
410 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
411 * config/mips/mips-msa.md: New file.
412 * config/mips/mips-protos.h
413 (mips_split_128bit_const_insns): New prototype.
414 (mips_msa_idiv_insns): Likewise.
415 (mips_split_128bit_move): Likewise.
416 (mips_split_128bit_move_p): Likewise.
417 (mips_split_msa_copy_d): Likewise.
418 (mips_split_msa_insert_d): Likewise.
419 (mips_split_msa_fill_d): Likewise.
420 (mips_expand_msa_branch): Likewise.
421 (mips_const_vector_same_val_p): Likewise.
422 (mips_const_vector_same_bytes_p): Likewise.
423 (mips_const_vector_same_int_p): Likewise.
424 (mips_const_vector_shuffle_set_p): Likewise.
425 (mips_const_vector_bitimm_set_p): Likewise.
426 (mips_const_vector_bitimm_clr_p): Likewise.
427 (mips_msa_vec_parallel_const_half): Likewise.
428 (mips_msa_output_division): Likewise.
429 (mips_ldst_scaled_shift): Likewise.
430 (mips_expand_vec_cond_expr): Likewise.
431 * config/mips/mips.c (enum mips_builtin_type): Add
432 MIPS_BUILTIN_MSA_TEST_BRANCH.
433 (mips_gen_const_int_vector_shuffle): New prototype.
434 (mips_const_vector_bitimm_set_p): New function.
435 (mips_const_vector_bitimm_clr_p): Likewise.
436 (mips_const_vector_same_val_p): Likewise.
437 (mips_const_vector_same_bytes_p): Likewise.
438 (mips_const_vector_same_int_p): Likewise.
439 (mips_const_vector_shuffle_set_p): Likewise.
440 (mips_symbol_insns): Forbid loading symbols via immediate for
441 MSA.
442 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
443 stores.
444 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
445 MSA.
446 (mips_lx_address_p): Add support load indexed address for MSA.
447 (mips_address_insns): Add calculation of instructions needed for
448 stores and loads for MSA.
449 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
450 CONST_VECTOR for MSA and let it fall through.
451 (mips_ldst_scaled_shift): New function.
452 (mips_subword_at_byte): Likewise.
453 (mips_msa_idiv_insns): Likewise.
454 (mips_legitimize_move): Validate MSA moves.
455 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
456 calculation of costs for MSA division.
457 (mips_split_move_p): Check if MSA moves need splitting.
458 (mips_split_move): Split MSA moves if necessary.
459 (mips_split_128bit_move_p): New function.
460 (mips_split_128bit_move): Likewise.
461 (mips_split_msa_copy_d): Likewise.
462 (mips_split_msa_insert_d): Likewise.
463 (mips_split_msa_fill_d): Likewise.
464 (mips_output_move): Handle MSA moves.
465 (mips_expand_msa_branch): New function.
466 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
467 Reinstate 'y' modifier.
468 (mips_file_start): Add MSA .gnu_attribute.
469 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
470 FPRs.
471 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
472 (mips_class_max_nregs): Add register size for MSA supported mode.
473 (mips_cannot_change_mode_class): Allow conversion between MSA
474 vector modes and TImode.
475 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
476 instruction.
477 (mips_secondary_reload_class): Force MSA loads/stores via memory.
478 (mips_preferred_simd_mode): Add preffered modes for MSA.
479 (mips_vector_mode_supported_p): Add MSA supported modes.
480 (mips_autovectorize_vector_sizes): New function.
481 (mips_msa_output_division): Likewise.
482 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
483 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
484 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
485 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
486 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
487 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
488 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
489 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
490 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
491 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
492 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
493 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
494 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
495 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
496 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
497 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
498 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
499 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
500 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
501 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
502 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
503 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
504 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
505 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
506 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
507 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
508 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
509 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
510 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
511 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
512 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
513 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
514 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
515 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
516 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
517 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
518 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
519 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
520 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
521 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
522 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
523 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
524 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
525 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
526 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
527 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
528 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
529 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
530 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
531 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
532 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
533 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
534 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
535 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
536 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
537 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
538 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
539 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
540 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
541 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
542 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
543 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
544 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
545 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
546 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
547 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
548 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
549 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
550 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
551 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
552 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
553 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
554 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
555 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
556 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
557 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
558 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
559 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
560 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
561 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
562 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
563 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
564 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
565 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
566 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
567 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
568 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
569 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
570 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
571 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
572 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
573 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
574 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
575 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
576 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
577 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
578 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
579 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
580 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
581 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
582 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
583 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
584 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
585 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
586 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
587 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
588 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
589 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
590 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
591 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
592 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
593 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
594 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
595 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
596 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
597 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
598 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
599 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
600 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
601 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
602 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
603 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
604 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
605 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
606 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
607 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
608 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
609 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
610 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
611 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
612 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
613 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
614 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
615 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
616 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
617 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
618 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
619 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
620 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
621 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
622 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
623 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
624 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
625 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
626 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
627 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
628 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
629 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
630 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
631 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
632 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
633 move_v builtins.
634 (mips_get_builtin_decl_index): New array.
635 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
636 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
637 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
638 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
639 (mips_init_builtins): Initialize mips_get_builtin_decl_index
640 array.
641 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
642 hook.
643 (mips_expand_builtin_insn): Prepare operands for
644 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
645 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
646 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
647 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
648 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
649 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
650 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
651 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
652 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
653 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
654 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
655 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
656 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
657 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
658 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
659 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
660 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
661 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
662 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
663 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
664 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
665 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
666 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
667 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
668 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
669 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
670 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
671 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
672 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
673 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
674 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
675 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
676 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
677 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
678 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
679 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
680 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
681 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
682 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
683 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
684 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
685 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
686 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
687 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
688 These are set implicitly and an error is reported if overridden.
689 (mips_expand_builtin_msa_test_branch): New function.
690 (mips_expand_msa_shuffle): Likewise.
691 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
692 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
693 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
694 (mips_expand_vec_unpack): Add support for MSA.
695 (mips_expand_vector_init): Likewise.
696 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
697 instead of const0_rtx.
698 (mips_msa_vec_parallel_const_half): New function.
699 (mips_gen_const_int_vector): Likewise.
700 (mips_gen_const_int_vector_shuffle): Likewise.
701 (mips_expand_msa_cmp): Likewise.
702 (mips_expand_vec_cond_expr): Likewise.
703 * config/mips/mips.h
704 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
705 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
706 specified.
707 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
708 (ISA_HAS_MSA): New macro.
709 (UNITS_PER_MSA_REG): Likewise.
710 (BITS_PER_MSA_REG): Likewise.
711 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
712 (MSA_REG_FIRST): New macro.
713 (MSA_REG_LAST): Likewise.
714 (MSA_REG_NUM): Likewise.
715 (MSA_REG_P): Likewise.
716 (MSA_REG_RTX_P): Likewise.
717 (MSA_SUPPORTED_MODE_P): Likewise.
718 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
719 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
720 * config/mips/mips.md: Include mips-msa.md.
721 (alu_type): Add simd_add.
722 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
723 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
724 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
725 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
726 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
727 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
728 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
729 simd_move, simd_load, simd_store. Choose "multi" for moves
730 for "qword_mode".
731 (qword_mode): New attribute.
732 (insn_count): Add instruction count for quad moves.
733 Increase the count for MIPS SIMD division.
734 (UNITMODE): Add UNITMODEs for vector types.
735 (addsub): New code iterator.
736 * config/mips/mips.opt (mmsa): New option.
737 * config/mips/msa.h: New file.
738 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
739 specified.
740 * config/mips/mti-linux.h: Likewise.
741 * config/mips/predicates.md
742 (const_msa_branch_operand): New constraint.
743 (const_uimm3_operand): Likewise.
744 (const_uimm4_operand): Likewise.
745 (const_uimm5_operand): Likewise.
746 (const_uimm8_operand): Likewise.
747 (const_imm5_operand): Likewise.
748 (aq10b_operand): Likewise.
749 (aq10h_operand): Likewise.
750 (aq10w_operand): Likewise.
751 (aq10d_operand): Likewise.
752 (const_m1_operand): Likewise.
753 (reg_or_m1_operand): Likewise.
754 (const_exp_2_operand): Likewise.
755 (const_exp_4_operand): Likewise.
756 (const_exp_8_operand): Likewise.
757 (const_exp_16_operand): Likewise.
758 (const_vector_same_val_operand): Likewise.
759 (const_vector_same_simm5_operand): Likewise.
760 (const_vector_same_uimm5_operand): Likewise.
761 (const_vector_same_uimm6_operand): Likewise.
762 (const_vector_same_uimm8_operand): Likewise.
763 (par_const_vector_shf_set_operand): Likewise.
764 (reg_or_vector_same_val_operand): Likewise.
765 (reg_or_vector_same_simm5_operand): Likewise.
766 (reg_or_vector_same_uimm6_operand): Likewise.
767 * doc/extend.texi (MIPS SIMD Architecture Functions): New
768 section.
769 * doc/invoke.texi (-mmsa): Document new option.
770
771 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
772
773 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
774 * configure: Regenerate.
775 * config.in: Regenerate.
776 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
777 on -fvtable-verify.
778 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
779 (ENDFILE_VTV_SPEC): Define.
780
781 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
782
783 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
784 registers in all interrupt handlers if necessary.
785 (rl78_option_override): Add warning.
786 (MUST_SAVE_MDUC_REGISTERS): New macro.
787 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
788 * config/rl78/rl78.c (check_mduc_usage): New function.
789 (mduc_regs): New structure to hold MDUC register data.
790 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
791 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
792 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
793 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
794 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
795 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
796
797 2016-05-09 Bin Cheng <bin.cheng@arm.com>
798
799 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
800 (tree-ssa-loop-niter.h): Ditto.
801 (idx_within_array_bound, ref_within_array_bound): New functions.
802 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
803 Factor out check on writable base object to ...
804 (base_object_writable): ... here.
805
806 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
807
808 * config/arm/arm.md (probe_stack): Add modes to set source
809 and destination.
810
811 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
812
813 * regrename.c (base_reg_class_for_rename): New static function.
814 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
815
816 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
817
818 * cgraph.c (thunk_adjust): Export.
819 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
820 * cgraphunit.c (thunk_adjust): Export.
821 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
822 thunks.
823 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
824 inlinable.
825 * tree-inline.c (expand_call_inline): Expand thunks inline.
826
827 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
828
829 PR target/70998
830 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
831 (*sse2_vd_cvtss2sd): Ditto.
832 * config/i386/i386.md
833 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
834 Generate *sse2_vd_cvtsd2ss pattern.
835 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
836 Generate *sse2_vd_cvtss2sd pattern.
837
838 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
839
840 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
841 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
842 users.
843
844 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
845
846 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
847 * config/sh/sh.c: Define and declare variables on first use throughout
848 the file.
849 (current_function_interrupt): Change to bool type.
850 (frame_insn): Rename to emit_frame_insn and update users.
851 (push_regs): Use bool for 'interrupt_handler' argument.
852 (save_schedule_s): Remove.
853 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
854 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
855 targetm.asm_out.unaligned_op.di.
856 (gen_far_branch): Remove redundant forward declaration.
857 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
858 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
859 (sh_set_return_address, sh_function_ok_for_sibcall,
860 scavenge_reg): Update comments.
861 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
862 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
863 (sh_attr_renesas_p): Remove unnecessary parentheses.
864 (branch_dest): Simplify.
865 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
866 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
867 (CUMULATIVE_ARGS): Change macro to typedef.
868 (current_function_interrupt): Change to bool type.
869 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
870 Surround with __cplusplus ifdef.
871 (sh_compare_op0, sh_compare_op1): Remove.
872 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
873
874 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
875
876 * config/arm/arm.md: (arch): Add neon.
877 (arch_enabled): Return yes for arch neon when TARGET_NEON.
878 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
879 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
880 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
881 attributes for alt renumbering. Mark alt 3 as non-predicable.
882 (thumb2_movdf_vfp): Likewise.
883
884 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
885
886 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
887 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
888 (*andqi_1): Add preferred_for_speed attribute to disparage
889 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
890 (*<code>qi_1): Ditto.
891 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
892 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
893 (*ashlqi3_1): Ditto.
894 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
895 Add preferred_for_size attribute to disparage alternative 0 and
896 preferred_for_speed attribute to disparage alternative 1 for
897 TARGET_PARTIAL_REG_STALL targets.
898
899 2016-05-07 Tom de Vries <tom@codesourcery.com>
900
901 PR tree-optimization/70956
902 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
903 def.
904
905 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
906
907 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
908 * config/sh/sh.c (sh_cbranch_distance): Implement it.
909 * config/sh/sh.md (branch_zero): Remove define_attr.
910 (define_delay): Disable delay slot if branch distance is one insn.
911
912 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
913
914 * config/i386/i386.md (LEAMODE): New mode attribute.
915 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
916 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
917 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
918 operand 2 predicate.
919 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
920 (*lea<mode>_general_3): Ditto.
921 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
922
923 2016-05-06 Jakub Jelinek <jakub@redhat.com>
924
925 * genmddump.c (main): Convert argv from char ** to const char **.
926
927 2016-05-06 David Malcolm <dmalcolm@redhat.com>
928
929 * coretypes.h (OVERRIDE): New macro.
930 (FINAL): New macro.
931
932 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
933
934 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
935 allow coalescing if the types are compatible.
936
937 2016-05-06 David Malcolm <dmalcolm@redhat.com>
938
939 * pass_manager.h (pass_manager::register_pass_name): New method.
940 (pass_manager::get_pass_by_name): New method.
941 (pass_manager::create_pass_tab): New method.
942 (pass_manager::m_name_to_pass_map): New field.
943 * passes.c (name_to_pass_map): Delete global in favor of field
944 "m_name_to_pass_map" of pass_manager.
945 (register_pass_name): Rename from a function to...
946 (pass_manager::register_pass_name): ...this method, updating
947 for renaming of global "name_to_pass_map" to field
948 "m_name_to_pass_map".
949 (create_pass_tab): Rename from a function to...
950 (pass_manager::create_pass_tab): ...this method, updating
951 for renaming of global "name_to_pass_map" to field.
952 (get_pass_by_name): Rename from a function to...
953 (pass_manager::get_pass_by_name): ...this method.
954 (enable_disable_pass): Convert use of get_pass_by_name to
955 a method call, locating the pass_manager singleton.
956
957 2016-05-06 David Malcolm <dmalcolm@redhat.com>
958
959 * genattr-common.c (main): Convert argv from char ** to const char **.
960 * genattr.c (main): Likewise.
961 * genattrtab.c (main): Likewise.
962 * genautomata.c (initiate_automaton_gen): Likewise.
963 (main): Likewise.
964 * gencodes.c (main): Likewise.
965 * genconditions.c (main): Likewise.
966 * genconfig.c (main): Likewise.
967 * genconstants.c (main): Likewise.
968 * genemit.c (main): Likewise.
969 * genenums.c (main): Likewise.
970 * genextract.c (main): Likewise.
971 * genflags.c (main): Likewise.
972 * genmddeps.c (main): Likewise.
973 * genopinit.c (main): Likewise.
974 * genoutput.c (main): Likewise.
975 * genpeep.c (main): Likewise.
976 * genpreds.c (main): Likewise.
977 * genrecog.c (main): Likewise.
978 * gensupport.c (init_rtx_reader_args_cb): Likewise.
979 (init_rtx_reader_args): Likewise.
980 * gensupport.h (init_rtx_reader_args_cb): Likewise.
981 (init_rtx_reader_args): Likewise.
982 * gentarget-def.c (main): Likewise.
983 * read-md.c (read_md_files): Likewise.
984 * read-md.h (read_md_files): Likewise.
985
986 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
987
988 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
989 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
990 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
991 Remove unused predicate.
992 (register_and_not_fp_reg_operand): Ditto.
993
994 2016-05-06 Martin Liska <mliska@suse.cz>
995
996 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
997 instead of vec as the vector is local to the function.
998
999 2016-05-06 Jakub Jelinek <jakub@redhat.com>
1000
1001 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
1002 avx512bw alternative.
1003
1004 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
1005 before the ashr<mode>3 pattern.
1006
1007 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
1008 v instead of x in vex or maybe_vex alternatives, use
1009 maybe_evex instead of vex in prefix.
1010
1011 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
1012 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
1013 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
1014 in vex or maybe_vex alternatives, use maybe_evex instead of vex
1015 in prefix.
1016
1017 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
1018 v instead of x in vex or maybe_vex alternatives, use
1019 maybe_evex instead of vex in prefix.
1020
1021 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
1022 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
1023 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
1024 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
1025 alternatives, use maybe_evex instead of vex in prefix.
1026
1027 * config/i386/sse.md (vec_interleave_lowv4sf,
1028 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
1029 v instead of x in vex or maybe_vex alternatives, use
1030 maybe_evex instead of vex in prefix.
1031
1032 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
1033 v instead of x in vex or maybe_vex alternatives, use
1034 maybe_evex instead of vex in prefix.
1035
1036 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
1037 v constraint instead of x.
1038
1039 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
1040
1041 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
1042 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
1043 equality first.
1044
1045 2016-05-06 Richard Biener <rguenther@suse.de>
1046
1047 PR tree-optimization/70948
1048 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1049 Properly clobber all fields of va_list for __builtin_va_start.
1050
1051 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1052
1053 PR debug/70935
1054 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
1055 loop latch destination.
1056
1057 2016-05-06 Martin Liska <mliska@suse.cz>
1058
1059 * tree-ssa-uninit.c: Apply manual changes
1060 to the GNU coding style.
1061 (prune_uninit_phi_opnds): Rename from
1062 prune_uninit_phi_opnds_in_unrealizable_paths.
1063
1064 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1065
1066 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
1067 mspace): Remove deprecated options.
1068 * doc/invoke.texi (SH options): Remove -mspace.
1069
1070 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1071
1072 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
1073
1074 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1075
1076 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
1077 corresponding combine split pattern.
1078
1079 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1080
1081 PR target/58219
1082 * config/sh/predicates.md (long_displacement_mem_operand): New.
1083 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
1084 Add movi20, movi20s alternatives. Adjust length attribute for
1085 alternatives.
1086 (movsi_ie): Allow for any FPU. Adjust length attribute for
1087 alternatives.
1088 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
1089 attribute for alternatives.
1090 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
1091 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
1092 length attribute for alternatives.
1093
1094 2016-05-06 Richard Biener <rguenther@suse.de>
1095
1096 PR tree-optimization/70960
1097 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
1098
1099 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1100
1101 PR target/52933
1102 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
1103 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
1104
1105 2016-05-06 Marek Polacek <polacek@redhat.com>
1106
1107 PR sanitizer/70875
1108 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
1109
1110 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1111
1112 PR target/54089
1113 * config/sh/sh.md (*rotcr): Add another variant.
1114
1115 2016-05-06 Richard Biener <rguenther@suse.de>
1116
1117 PR middle-end/70931
1118 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
1119
1120 2016-05-06 Richard Biener <rguenther@suse.de>
1121
1122 PR middle-end/70941
1123 * fold-const.c (split_tree): Always convert to the original type
1124 before negating.
1125
1126 2016-05-06 Richard Biener <rguenther@suse.de>
1127
1128 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
1129 (fwprop_addr): Likewise.
1130
1131 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
1132
1133 PR target/70873
1134 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
1135 New prototype.
1136 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
1137 * config/i386/i386.md (push mem splitter): Use find_constant_src in
1138 the splitter condition.
1139 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
1140 the splitter condition.
1141 (FP float_extend load splitter): Ditto.
1142
1143 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
1144
1145 * config/i386/i386.md (peehole2 patterns): Change true_regnum
1146 to REGNO in all peephole2 patterns.
1147 (post-reload splitters): Change true_regnum to REGNO in
1148 post-reload splitters.
1149 (zero_extend splitters): Use general_reg_operand and
1150 nonimmediate_gr_operand predicates.
1151
1152 2016-05-05 Jakub Jelinek <jakub@redhat.com>
1153
1154 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
1155 v constraint instead of x.
1156
1157 2016-05-05 Alan Modra <amodra@gmail.com>
1158
1159 PR target/68662
1160 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1161 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
1162 TARGET_NO_FP_IN_TOC for -mrelocatable.
1163 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
1164 TARGET_RELOCATABLE test.
1165 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1166 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1167 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1168 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1169 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1170 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1171 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1172 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1173 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
1174 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
1175 Likewise.
1176 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
1177 (rs6000_stack_info): Likewise.
1178 (rs6000_elf_asm_out_constructor): Likewise.
1179 (rs6000_elf_asm_out_destructor): Likewise.
1180 (rs6000_elf_declare_function_name): Likewise.
1181 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
1182 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
1183 Don't define.
1184
1185 2016-05-05 Alan Modra <amodra@gmail.com>
1186
1187 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
1188
1189 2016-05-05 Alan Modra <amodra@gmail.com>
1190
1191 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
1192 out-of-line gpr restore for one or two regs if that would add
1193 a save of lr.
1194
1195 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
1196
1197 PR target/70873
1198 * config/i386/i386.md
1199 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
1200 Change to post-epilogue_completed late splitter. Use sse_reg_operand
1201 as operand 0 predicate.
1202 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
1203 Ditto.
1204 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
1205 Ditto. Emit the pattern using RTX.
1206
1207 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
1208 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
1209 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
1210 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
1211 Ditto.
1212 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
1213 sse_reg_operand as operand 0 predicate.
1214
1215 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
1216 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
1217 instead of gen_rtx_REG.
1218 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
1219 Ditto.
1220
1221 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1222
1223 * function.c (emit_use_return_register_into_block): Delete.
1224 (gen_return_pattern): Delete.
1225 (emit_return_into_block): Delete.
1226 (active_insn_between): Delete.
1227 (convert_jumps_to_returns): Delete.
1228 (emit_return_for_exit): Delete.
1229 (thread_prologue_and_epilogue_insns): Delete all code dealing with
1230 simple_return for shrink-wrapped blocks.
1231 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
1232 end of blocks that need one.
1233 (get_unconverted_simple_return): Delete.
1234 (convert_to_simple_return): Delete.
1235 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
1236 (convert_to_simple_return): Ditto.
1237
1238 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1239
1240 * cfgcleanup.c (bb_is_just_return): New function.
1241 (try_optimize_cfg): Simplify jumps to return, branches to return,
1242 and branches around return.
1243
1244 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1245
1246 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
1247 branch to a return.
1248
1249 2016-05-04 Jakub Jelinek <jakub@redhat.com>
1250
1251 PR c++/70906
1252 PR c++/70933
1253 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
1254 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
1255 assert flags & OEP_HASH_CHECK, instead of asserting it
1256 never happens. Handle TARGET_EXPR.
1257 * fold-const.c (operand_equal_p): For hash verification,
1258 or in OEP_HASH_CHECK into flags.
1259
1260 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
1261
1262 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
1263 comment.
1264 (compute_samebase_partition_bases): Fix typo.
1265
1266 2016-05-04 Jakub Jelinek <jakub@redhat.com>
1267
1268 * config/i386/sse.md (vec_interleave_highv8sf,
1269 vec_interleave_lowv8sf, vec_interleave_highv4df,
1270 vec_interleave_lowv4df): Remove constraints from expanders.
1271
1272 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
1273
1274 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
1275
1276 * tree-inline.c (expand_call_inline): Fix path dealing with
1277 making lhs of call statement undefined.
1278
1279 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
1280
1281 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1282 Check availability on NODE, too.
1283 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
1284 (cgraph_node::call_for_symbol_and_aliases): Likewise.
1285 (varpool_node::call_for_symbol_and_aliase): Likewise.
1286 * ipa-pure-const.c (add_new_function): Analyze all bodies.
1287 (propagate_pure_const): Propagate across interposable functions, too.
1288 (skip_function_for_local_pure_const): Do not skip interposable bodies
1289 with aliases.
1290 (pass_local_pure_const::execute): Update.
1291
1292 2016-05-04 Marek Polacek <polacek@redhat.com>
1293
1294 * doc/invoke.texi: Document -Wdangling-else.
1295
1296 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1297
1298 * config.gcc: Error out when conflicting multilib is detected. Do not
1299 loop over multilibs since no combination is legal.
1300
1301 2016-05-04 Alan Modra <amodra@gmail.com>
1302
1303 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
1304 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
1305 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
1306 Align .toc.
1307
1308 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
1309
1310 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
1311 Clean up p5600 comments.
1312
1313 2016-05-04 Richard Biener <rguenther@suse.de>
1314
1315 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
1316 constructor simplifications.
1317 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
1318
1319 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
1320
1321 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
1322 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
1323 result.set_rtx is null instead of aborting.
1324 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
1325 Always enable.
1326 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
1327 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
1328 *mov<mode>_store_postinc): New patterns.
1329
1330 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
1331
1332 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
1333 as commutative. Check both conversions are NOP.
1334 ((A & B) OP (C & B)): Remove.
1335
1336 2016-05-04 Alan Modra <amodra@gmail.com>
1337
1338 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
1339
1340 2016-05-04 Alan Modra <amodra@gmail.com>
1341
1342 PR target/70866
1343 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
1344 when cr2,3,4 are all fixed regs.
1345
1346 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
1347
1348 PR rtl-optimization/57193
1349 * opts.c (default_options_table): Revert OPT_frename_registers change.
1350 * doc/invoke.texi (-frename-registers, -O2): Likewise.
1351
1352 2016-05-03 Martin Sebor <msebor@redhat.com>
1353
1354 PR c++/66561
1355 * builtins.c (fold_builtin_FILE): New function.
1356 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
1357 (fold_builtin_0): Call them.
1358 * gimplify.c (gimplify_call_expr): Remove the handling of
1359 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
1360
1361 PR c++/66561
1362 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
1363 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
1364 constants.
1365
1366 PR c++/66639
1367 * doc/extend.texi (Function Names as Strings): Update __func__,
1368 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
1369 constants.
1370
1371 2016-05-03 Jakub Jelinek <jakub@redhat.com>
1372 Richard Biener <rguenther@suse.de>
1373
1374 PR tree-optimization/70916
1375 * tree-if-conv.c: Include cfganal.h.
1376 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
1377 and remove_fake_exit_edges around the optimization pass.
1378
1379 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
1380
1381 * cgraph.c (symbol_table::create_edge): Set inline_failed.
1382 (cgraph_edge::make_direct): Likewise.
1383 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
1384 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
1385 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
1386 (CIF_THUNK): New code.
1387 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
1388 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
1389 (compute_inline_parameters): Set inline_failed for thunks.
1390 (inline_analyze_function): Cleanup.
1391 * ipa-inline.c (can_inline_edge_p): Do not deal with
1392 call_stmt_cannot_inline_p.
1393 (can_early_inline_edge_p): Likewise.
1394 (early_inliner): Initialize inline_failed.
1395 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
1396
1397 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
1398
1399 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
1400 from nonimm_ssenomem_operand.
1401 (nonimm_ssenomem_operand): New predicate.
1402 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
1403 as operand 0 predicate.
1404 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
1405 Disable unsupported alternatives using "enabled" attribute.
1406 Use register_ssemem_operand as operand 0 predicate.
1407 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
1408
1409 2016-05-03 Marek Polacek <polacek@redhat.com>
1410
1411 PR c/70859
1412 * input.c (expansion_point_location): New function.
1413 * input.h (expansion_point_location): Declare.
1414
1415 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
1416
1417 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
1418 occurence with frame_offset_ ones.
1419
1420 2016-05-03 Alan Modra <amodra@gmail.com>
1421
1422 PR rtl-optimization/70890
1423 * ira.c (combine_and_move_insns): When moving def_insn, remove
1424 equivs on use_insn.
1425
1426 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
1427
1428 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
1429 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
1430 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
1431 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
1432
1433 2016-05-03 Alan Modra <amodra@gmail.com>
1434
1435 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
1436 for SAVE_MULTIPLE/STORE_MULTIPLE.
1437
1438 2016-05-03 Jakub Jelinek <jakub@redhat.com>
1439
1440 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
1441 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
1442
1443 2016-05-03 Richard Biener <rguenther@suse.de>
1444
1445 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
1446 default true.
1447 (gimplify_arg): Likewise.
1448 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
1449 re-writing the result to a decl if required.
1450 (internal_get_tmp_var): Add allow_ssa parameter
1451 and override into_ssa with it.
1452 (get_formal_tmp_var): Adjust.
1453 (get_initialized_tmp_var): Add allow_ssa parameter.
1454 (gimplify_arg): Add allow_ssa parameter and avoid generating
1455 SSA names for the result false.
1456 (gimplify_call_expr): If the call may return twice do not
1457 gimplify parameters into SSA.
1458 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
1459 (gimplify_modify_expr): Adjust assert. For noreturn calls
1460 with a SSA name LHS adjust its def.
1461 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
1462 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
1463 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
1464 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
1465 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
1466 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
1467 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
1468 (optimize_target_teams): Do not allow SSA names for clause operands.
1469 (gimplify_expr): Likewise for where we mark the result addressable.
1470 * passes.def (pass_init_datastructures): Remove.
1471 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
1472 (rewrite_stmt): Likewise.
1473 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
1474 (replace_locals_op): Replace SSA names.
1475 (copy_gimple_seq_and_replace_locals): Init src_cfun.
1476 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
1477 * cgraph.c (release_function_body): Free CFG annotations only
1478 when we have a CFG. Simplify.
1479 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
1480 force_gimple_operand instead of get_initialized_tmp_var.
1481 * tree-pass.h (make_pass_init_datastructures): Remove.
1482 * tree-ssa.c (execute_init_datastructures): Remove.
1483 (pass_data_init_datastructures): Likewise.
1484 (class pass_init_datastructures): Likewise.
1485 (make_pass_init_datastructures): Likewise.
1486 * omp-low.c (create_omp_child_function): Init SSA data structures.
1487 (grid_expand_target_grid_body): Likewise.
1488 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
1489 name before adding it to names_to_release.
1490 (remove_bb): Always release SSA defs.
1491 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
1492 before dereferencing it.
1493 * cgraphunit.c (init_lowered_empty_function): Always
1494 int SSA data structures.
1495 * tree-ssanames.c (release_defs): Remove assert that we are in
1496 SSA form.
1497 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
1498
1499 2016-05-03 Jakub Jelinek <jakub@redhat.com>
1500 Uros Bizjak <ubizjak@gmail.com>
1501
1502 PR rtl-optimization/70467
1503 * config/i386/predicates.md (x86_64_hilo_int_operand,
1504 x86_64_hilo_general_operand): New predicates.
1505 * config/i386/constraints.md (Wd): New constraint.
1506 * config/i386/i386.md (mode attr di): Use Wd instead of e.
1507 (general_hilo_operand): New mode attr.
1508 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
1509 instead of <general_operand>.
1510 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
1511 x86_64_hilo_general_operand instead of <general_operand>.
1512
1513 2016-05-03 Jakub Jelinek <jakub@redhat.com>
1514
1515 PR tree-optimization/70916
1516 * tree-if-conv.c (constant_or_ssa_name): Removed.
1517 (fold_build_cond_expr): Use is_gimple_val instead of
1518 constant_or_ssa_name.
1519
1520 PR tree-optimization/70916
1521 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
1522 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
1523
1524 PR target/49244
1525 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
1526 (optimize_atomic_bit_test_and): New function.
1527 (pass_fold_builtins::execute): Use it.
1528 * optabs.def (atomic_bit_test_and_set_optab,
1529 atomic_bit_test_and_complement_optab,
1530 atomic_bit_test_and_reset_optab): New optabs.
1531 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
1532 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
1533 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
1534 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
1535 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
1536 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
1537 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
1538 * doc/md.texi (atomic_bit_test_and_set@var{mode},
1539 atomic_bit_test_and_complement@var{mode},
1540 atomic_bit_test_and_reset@var{mode}): Document.
1541 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
1542 atomic_bit_test_and_complement<mode>,
1543 atomic_bit_test_and_reset<mode>): New expanders.
1544 (atomic_bit_test_and_set<mode>_1,
1545 atomic_bit_test_and_complement<mode>_1,
1546 atomic_bit_test_and_reset<mode>_1): New insns.
1547
1548 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
1549
1550 PR rtl-optimization/70687
1551 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
1552 instead of unsigned HOST_WIDE_INT.
1553
1554 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
1555
1556 PR rtl-optimization/44281
1557 * hard-reg-set.h (struct target_hard_regs): New field
1558 x_fixed_nonglobal_reg_set.
1559 (fixed_nonglobal_reg_set): New macro.
1560 * reginfo.c (init_reg_sets_1): Initialize it.
1561 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
1562 of fixed_reg_set.
1563 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
1564
1565 2016-05-03 Bin Cheng <bin.cheng@arm.com>
1566
1567 PR tree-optimization/56541
1568 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
1569 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
1570 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
1571 (any_complicated_phi): new static variable.
1572 (aggressive_if_conv): delete.
1573 (if_convertible_phi_p): support phis with more than two arguments.
1574 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
1575 critical pred edges.
1576 (ifcvt_split_critical_edges): support phis with more than two
1577 arguments by checking new parameter. only split critical edges
1578 if needed.
1579 (tree_if_conversion): handle simd pragma marked loop using new
1580 local variable aggressive_if_conv. check any_complicated_phi.
1581
1582 2016-05-03 Bin Cheng <bin.cheng@arm.com>
1583
1584 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
1585 before using it.
1586
1587 2016-05-03 Bin Cheng <bin.cheng@arm.com>
1588
1589 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
1590 cbase.
1591
1592 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
1593
1594 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
1595 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
1596 define_insn_and_split.
1597 (mulsi3_i): New define_insn_and_split.
1598 (mulsi3_call): Convert to define_insn.
1599 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
1600 Remove constraints.
1601
1602 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1603
1604 * machmode.h (mode_complex): Add support to give the complex mode
1605 for a given mode.
1606 (GET_MODE_COMPLEX_MODE): Likewise.
1607 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
1608 stored by build_complex_type and gfc_build_complex_type instead of
1609 trying to figure out the appropriate mode based on the size. Raise
1610 an assertion error, if the type was not set.
1611 * genmodes.c (struct mode_data): Add field for the complex type of
1612 the given type.
1613 (blank_mode): Likewise.
1614 (make_complex_modes): Remember the complex mode created in the
1615 base type.
1616 (emit_mode_complex): Write out the mode_complex array to map a
1617 type mode to the complex version.
1618 (emit_insn_modes_c): Likewise.
1619 * tree.c (build_complex_type): Set the complex type to use before
1620 calling layout_type.
1621 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
1622 support for __float128 complex datatypes.
1623 (rs6000_hard_regno_mode_ok): Likewise.
1624 (rs6000_setup_reg_addr_masks): Likewise.
1625 (rs6000_complex_function_value): Likewise.
1626 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
1627 __float128 and __ibm128 complex.
1628 (FLOAT128_IBM_P): Likewise.
1629 (ALTIVEC_ARG_MAX_RETURN): Likewise.
1630 * doc/extend.texi (Additional Floating Types): Document that
1631 -mfloat128 must be used to enable __float128. Document complex
1632 __float128 and __ibm128 support.
1633
1634 2016-05-02 Jakub Jelinek <jakub@redhat.com>
1635
1636 PR target/49244
1637 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
1638 char/short arguments promoted to int because of promote_prototypes.
1639
1640 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
1641
1642 * config/i386/predicates.md (register_ssemem_operand): New predicate.
1643 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
1644 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
1645 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
1646 alternatives using "enabled" attribute. Use register_ssemem_operand
1647 as operand 1 predicate.
1648 (*cmpi<unord>xf_i387): Split XFmode pattern from
1649 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
1650 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
1651 *absneg<mode>2_i387. Disable unsupported alternatives using
1652 "enabled" attribute.
1653 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
1654
1655 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
1656
1657 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
1658 marker.
1659 (oacc_loop_process): Check mask for loop termination.
1660
1661 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
1662
1663 * cif-code.def (CIF_THUNK): Add.
1664 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
1665 accidental change.
1666
1667 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
1668
1669 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
1670 (dump_inline_summary): Dump it.
1671 (fp_expression_p): New predicate.
1672 (estimate_function_body_sizes): Use it.
1673 (inline_merge_summary): Merge fp_expressions.
1674 (inline_read_section): Read fp_expressions.
1675 (inline_write_summary): Write fp_expressions.
1676 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
1677 codegen boundary if either caller or callee is !fp_expressions.
1678 * ipa-inline.h (inline_summary): Add fp_expressions.
1679 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
1680 to fp_expressions be sure the fp generation flags are updated.
1681
1682 2016-05-02 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR rtl-optimization/70467
1685 * cse.c (cse_insn): Handle no-op MEM moves after folding.
1686
1687 PR rtl-optimization/70467
1688 * ipa-pure-const.c (check_call): Handle internal calls even in
1689 ipa mode like in local mode.
1690
1691 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1692
1693 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
1694
1695 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
1696
1697 * match.pd (X u< X, X u> X): New transformations.
1698
1699 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
1700
1701 * flag-types.h (enum warn_strict_overflow_code): Move ...
1702 * coretypes.h: ... here.
1703 * fold-const.h (fold_overflow_warning): Declare.
1704 * fold-const.c (fold_overflow_warning): Make non-static.
1705 (fold_comparison): Move the transformation of X +- C1 CMP C2
1706 into X CMP C2 -+ C1 ...
1707 * match.pd: ... here.
1708 * gimple-fold.c (fold_stmt_1): Protect with
1709 fold_defer_overflow_warnings.
1710
1711 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
1712
1713 * omp-low.c (struct oacc_loop): Add 'inner' field.
1714 (new_oacc_loop_raw): Initialize it to zero.
1715 (oacc_loop_fixed_partitions): Initialize it.
1716 (oacc_loop_auto_partitions): Partition outermost loop to outermost
1717 available partitioning.
1718
1719 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
1720
1721 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
1722 register_operand.
1723 (umulsidi3): Likewise.
1724 (indirect_jump): Fix jump instruction assembly patterns.
1725
1726 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
1727
1728 PR target/70860
1729 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
1730 (nvptx_function_value): Assert non-NULL cfun.
1731
1732 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
1733
1734 PR rtl-optimization/70886
1735 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
1736
1737 * cselib.h (rtx_equal_for_cselib_1): Declare.
1738 (rtx_equal_for_cselib_p: New inline function.
1739 * cselib.c (rtx_equal_for_cselib_p): Delete.
1740 (rtx_equal_for_cselib_1): Make public.
1741
1742 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
1743
1744 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
1745 (register_mixssei387nonimm_operand): Remove predicate.
1746 * config/i386/i386.md (*fop_<mode>_comm): Merge from
1747 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
1748 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
1749 for TARGET_MIX_SSE_I387 alternatives.
1750 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
1751 Disable unsupported alternatives using "enabled" attribute. Use
1752 nonimm_ssenomem_operand as operand 1 predicate. Also check
1753 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
1754
1755 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1756
1757 * tree.c (cst_and_fits_in_hwi): Simplify.
1758
1759 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1760
1761 * tree.h (wi::to_wide): New function.
1762 * expr.c (expand_expr_real_1): Use wi::to_wide.
1763 * fold-const.c (int_const_binop_1): Likewise.
1764 (extract_muldiv_1): Likewise.
1765
1766 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1767
1768 * wide-int.h: Update offset_int and widest_int documentation.
1769 (WI_SIGNED_SHIFT_RESULT): New macro.
1770 (wi::binary_shift): Define signed_shift_result_type for
1771 shifts on offset_int- and widest_int-like types.
1772 (generic_wide_int): Support <<= and >>= if << and >> are supported.
1773 * tree.h (int_bit_position): Use shift operators instead of wi::
1774 shifts.
1775 * alias.c (adjust_offset_for_component_ref): Likewise.
1776 * expr.c (get_inner_reference): Likewise.
1777 * fold-const.c (fold_comparison): Likewise.
1778 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
1779 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
1780 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1781 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1782 (stmt_kills_ref_p): Likewise.
1783 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
1784 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
1785 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1786 (ao_ref_init_from_vn_reference): Likewise.
1787
1788 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
1789
1790 * wide-int.h: Update offset_int and widest_int documentation.
1791 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
1792 (wi::binary_traits): Allow ordered comparisons between offset_int and
1793 offset_int, between widest_int and widest_int, and between either
1794 of these types and basic C types.
1795 (operator <, <=, >, >=): Define for the same combinations.
1796 * tree.h (tree_int_cst_lt): Use comparison operators instead
1797 of wi:: comparisons.
1798 (tree_int_cst_le): Likewise.
1799 * gimple-fold.c (fold_array_ctor_reference): Likewise.
1800 (fold_nonarray_ctor_reference): Likewise.
1801 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
1802 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
1803 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
1804 * tree-sra.c (completely_scalarize): Likewise.
1805 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
1806 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
1807 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
1808 (check_for_binary_op_overflow): Likewise.
1809 (search_for_addr_array): Likewise.
1810 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
1811
1812 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
1813
1814 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
1815 (arc_save_restore): Likewise.
1816 (arc_dwarf_register_span): Likewise.
1817 (arc_output_pic_addr_const): Initialize suffix variable.
1818
1819 2016-05-02 Martin Liska <mliska@suse.cz>
1820
1821 * symbol-summary.h (function_summary::function_summary):
1822 Remove checking assert for all cgraph nodes.
1823 (function_summary::get): Check summary_uid.
1824 (symtab_insertion): Check summary_uid.
1825
1826 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
1827
1828 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
1829 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
1830 bmaskn instruction.
1831 (arc_dwarf_register_span): Remove enum keyword.
1832 (compact_memory_operand_p): New function.
1833 * config/arc/arc.h (reg_class): Add code density register classes.
1834 (REG_CLASS_NAMES): Likewise.
1835 (REG_CLASS_CONTENTS): Likewise.
1836 * config/arc/arc.md (*movqi_insn): Add code density instructions.
1837 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
1838 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
1839 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
1840 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
1841 constraints.
1842 (h, Rcd, Rsd, Rzd): New register constraints.
1843 (T): Use compact_memory_operand_p function.
1844 * config/arc/predicates.md (compact_load_memory_operand): Remove.
1845
1846 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
1847
1848 * config/sh/sh.md (*negnegt, *movtt): Remove.
1849
1850 2016-05-02 Marek Polacek <polacek@redhat.com>
1851 Tom de Vries <tom@codesourcery.com>
1852
1853 PR tree-optimization/70700
1854 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
1855 bigger than FIRST_REF_NODE.
1856
1857 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
1858
1859 PR target/52898
1860 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
1861 TARGET_CMPEQDI_T.
1862 (prepare_cbranch_operands): Don't use scratch register. Assume that
1863 function is used when pseudos can be created.
1864 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
1865 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
1866 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
1867 define_expand. Allow it only when pseudos can be created.
1868 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
1869
1870 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
1871
1872 * config/i386/constraints.md (BC): Only allow -1 operands.
1873 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
1874 Add "enabled" attribute. Update XI mode attribute calculation.
1875 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
1876 (*movoi_internal_avx): Update XI mode attribute calculation.
1877 (*movti_internal): Ditto.
1878
1879 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
1880
1881 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
1882 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
1883
1884 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
1885
1886 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
1887 statement on instruction code. Remove trailing spaces.
1888 (altivec_expand_stv_builtin): Likewise.
1889
1890 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
1891
1892 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
1893 (TARGET_FPU_DOUBLE): Simplify.
1894 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
1895 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
1896 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
1897 with 'TARGET_FPU_DOUBLE'.
1898 * config/sh/sh.md: Likewise.
1899
1900 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
1901
1902 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
1903 SH_DIV_STR_FOR_SIZE): Remove.
1904 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
1905 SH_DIV_STR_FOR_SIZE): Remove.
1906
1907 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
1908
1909 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
1910 logical_reg_operand): Delete.
1911 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
1912 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
1913 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
1914 match_operand and match_test.
1915 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
1916 variables on their first use. Return bool values.
1917 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
1918 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
1919 arith_reg_operand for input operand. Remove empty constraints.
1920 (xorsi3): Delete.
1921 (*xorsi3_compact): Rename to xorsi3.
1922 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
1923 (*zero_extend<mode>si2_disp_mem): Update comment.
1924 (mov_nop): Delete.
1925
1926 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1927
1928 * config/sh/t-sh: Remove SH5 support.
1929 * config.gcc: Likewise.
1930 * configure: Likewise.
1931
1932 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1933
1934 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
1935
1936 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1937
1938 * config/sh/sh.c (register_sh_passes, sh_option_override,
1939 sh_print_operand, prepare_move_operands,
1940 sh_can_follow_jump): Remove TARGET_SH1 checks.
1941 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
1942 PROMOTE_MODE): Likewise.
1943 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
1944 movdi): Likewise.
1945
1946 2016-04-30 Alan Modra <amodra@gmail.com>
1947
1948 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
1949 restoring when fixed_reg_p, but allow out-of-line or stmw save.
1950 Check for user regs later to avoid unnecessary looping over regs.
1951 Merge user reg check with non-saved reg check. Don't force
1952 inline VR restore when static chain used.
1953 (rs6000_frame_related): Omit eh_frame info for user regs when
1954 saving.
1955 (fixed_regs_p): Delete.
1956
1957 2016-04-30 Alan Modra <amodra@gmail.com>
1958
1959 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
1960 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
1961 Update all uses.
1962
1963 2016-04-30 Alan Modra <amodra@gmail.com>
1964
1965 PR target/69645
1966 * config/rs6000/rs6000.c (fixed_reg_p): New function.
1967 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
1968 Update all uses.
1969
1970 2016-04-30 Alan Modra <amodra@gmail.com>
1971
1972 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
1973 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
1974 flag_pic test for Darwin.
1975
1976 2016-04-30 Alan Modra <amodra@gmail.com>
1977
1978 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
1979 throw_calls_crossed.
1980 (REG_FREQ_CALLS_CROSSED): Delete.
1981 (REG_N_THROWING_CALLS_CROSSED): Delete.
1982 * regstat.c (regstat_bb_compute_ri): Don't calculate
1983 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
1984 (dump_reg_info): Don't print call cross frequency.
1985 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
1986 and REG_N_THROWING_CALLS_CROSSED.
1987
1988 2016-04-30 Alan Modra <amodra@gmail.com>
1989
1990 * regs.h (struct reg_info_t): Delete live_length.
1991 (REG_LIVE_LENGTH): Delete macro.
1992 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
1993 local_live, local_processed and local_live_last_luid params.
1994 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
1995 Formatting fixes.
1996 (regstat_compute_ri): Adjust for above. Don't set
1997 REG_LIVE_LENGTH.
1998 (dump_reg_info): Don't print live length.
1999 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
2000 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
2001 Localize loop_depth var.
2002
2003 2016-04-30 Alan Modra <amodra@gmail.com>
2004
2005 * ira.c (enum valid_equiv): New.
2006 (validate_equiv_mem): Return enum.
2007 (update_equiv_mem): Create replacement in more cases.
2008 (add_store_equivs): Update validate_equiv_mem call.
2009
2010 2016-04-30 Alan Modra <amodra@gmail.com>
2011
2012 * ira.c (combine_and_move_insns): Rather than scanning insns,
2013 use DF infrastucture to find use and def insns.
2014
2015 2016-04-30 Alan Modra <amodra@gmail.com>
2016
2017 ira.c (combine_and_move_insns): Move invariant conditions..
2018 (ira.c): ..to here. Call combine_and_move_insns before
2019 add_store_equivs. Call grow_reg_equivs later. Allocate
2020 req_equiv later using max_reg_num() rather than global max_regno.
2021 (contains_replace_regs): Delete.
2022 (add_store_equivs): Remove contains_replace_regs test.
2023
2024 2016-04-30 Alan Modra <amodra@gmail.com>
2025
2026 * ira.c (struct equiv_mem_data): New.
2027 (equiv_mem, equiv_mem_modified): Delete static vars.
2028 (validate_equiv_mem_from_store): Use "data" param to communicate..
2029 (validate_equiv_mem): ..from here.
2030
2031 2016-04-30 Alan Modra <amodra@gmail.com>
2032
2033 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
2034 split out from..
2035 (update_reg_equivs): ..here. Move allocation and freeing of
2036 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
2037 end_alias_analysis to..
2038 (ira): ..here.
2039
2040 2016-04-30 Alan Modra <amodra@gmail.com>
2041
2042 * ira.c (pdx_subregs): Delete.
2043 (struct equivalence): Add pdx_subregs field.
2044 (set_paradoxical_subreg): Remove pdx_subregs param. Update
2045 pdx_subregs access.
2046 (update_equiv_regs): Don't create or free pdx_subregs. Update
2047 pdx_subregs access.
2048
2049 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2050
2051 * config/rs6000/altivec.h: Change definitions of vec_xl and
2052 vec_xst.
2053 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
2054 (LD_ELEMREV_V2DI): New.
2055 (LD_ELEMREV_V4SF): New.
2056 (LD_ELEMREV_V4SI): New.
2057 (LD_ELEMREV_V8HI): New.
2058 (LD_ELEMREV_V16QI): New.
2059 (ST_ELEMREV_V2DF): New.
2060 (ST_ELEMREV_V2DI): New.
2061 (ST_ELEMREV_V4SF): New.
2062 (ST_ELEMREV_V4SI): New.
2063 (ST_ELEMREV_V8HI): New.
2064 (ST_ELEMREV_V16QI): New.
2065 (XL): New.
2066 (XST): New.
2067 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2068 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
2069 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
2070 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
2071 (altivec_expand_builtin): Add handling for
2072 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
2073 (rs6000_invalid_builtin): Add error-checking for
2074 RS6000_BTM_P9_VECTOR.
2075 (altivec_init_builtins): Define builtins used to implement vec_xl
2076 and vec_xst.
2077 (rs6000_builtin_mask_names): Define power9-vector.
2078 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
2079 (RS6000_BTM_P9_VECTOR): Define.
2080 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
2081 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
2082 (vsx_ld_elemrev_v2df): Likewise.
2083 (vsx_ld_elemrev_v4sf): Likewise.
2084 (vsx_ld_elemrev_v4si): Likewise.
2085 (vsx_ld_elemrev_v8hi): Likewise.
2086 (vsx_ld_elemrev_v16qi): Likewise.
2087 (vsx_st_elemrev_v2df): Likewise.
2088 (vsx_st_elemrev_v2di): Likewise.
2089 (vsx_st_elemrev_v4sf): Likewise.
2090 (vsx_st_elemrev_v4si): Likewise.
2091 (vsx_st_elemrev_v8hi): Likewise.
2092 (vsx_st_elemrev_v16qi): Likewise.
2093 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
2094 grammar.
2095
2096 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
2097
2098 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
2099 out into ...
2100 (simplify_control_stmt_condition_1): ... here. Recurse into
2101 BIT_AND_EXPRs and BIT_IOR_EXPRs.
2102
2103 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
2104
2105 PR target/69810
2106 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
2107 (zero_extendqi<mode>2_dot): Revert earlier conversion from
2108 define_insn_and_split to define_insn.
2109 (zero_extendqi<mode>2_dot2): Same.
2110 (extendqi<mode>2_dot): Same.
2111 (extendqi<mode>2_dot2): Same.
2112
2113 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
2114
2115 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
2116 (probe_stack): New expander.
2117 (probe_stack_<mode>): New insn pattern.
2118
2119 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
2120
2121 * config/i386/i386.md
2122 (operations with memory inputs setting flags peephole2):
2123 Remove uneeded REG_P checks. Cleanup pattern generation.
2124
2125 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
2126
2127 * tree-vect-loop.c (vect_transform_loop): Fix
2128 nb_iterations_upper_bound computation for vectorized loop.
2129
2130 2016-04-29 Marek Polacek <polacek@redhat.com>
2131 Jakub Jelinek <jakub@redhat.com>
2132
2133 PR sanitizer/70342
2134 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
2135 TARGET_EXPR_SLOT as a base.
2136
2137 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
2140 with 'rCm2' constraints to limit possible immediate size.
2141 (*load_zeroextendqisi_update): Likewise.
2142 (*load_signextendqisi_update): Likewise.
2143 (*loadhi_update): Likewise.
2144 (*load_zeroextendhisi_update): Likewise.
2145 (*load_signextendhisi_update): Likewise.
2146 (*loadsi_update): Likewise.
2147 (*loadsf_update): Likewise.
2148
2149 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
2150
2151 * config/i386/predicates.md (constm1_operand): Fix comparison.
2152
2153 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
2154
2155 * testsuite/gcc.target/arc/ieee_eq.c: New test.
2156
2157 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
2158
2159 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2160 remaining SH5 related settings.
2161 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
2162 shmedia_prepare_call_address): Delete.
2163 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
2164 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
2165 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
2166 UNSUPPORTED_SH2A): Remove m5 checks.
2167 (sh_divide_strategy_e): Remove SH5 division strategies.
2168 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
2169 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
2170
2171 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2172
2173 * config/s390/s390.c (s390_rtx_costs): Update documentation.
2174
2175 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2176
2177 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
2178 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
2179 Change lder to ldr.
2180 * config/s390/vector.md ("mov<mode>"): Likewise.
2181
2182 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * config/s390/constraints.md ("U", "W"): Invoke
2185 s390_mem_constraint with "ZR" and "ZT".
2186 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
2187 addresses when using LRA. Accept also short displacements for S
2188 and T constraints. Do not check for long displacement target for
2189 S and T constraints.
2190 (s390_mem_constraint): Remove handling of U and W constraints.
2191 * config/s390/s390.md (various patterns): Remove the short
2192 displacement constraints (Q and R) if a long displacement
2193 constraint is present. Add longdisp as required CPU capability.
2194 * config/s390/vector.md: Likewise.
2195 * config/s390/vx-builtins.md: Likewise.
2196
2197 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2198
2199 PR target/60040
2200 * reload1.c (reload): Call finish_spills before
2201 restarting reload loop. Skip select_reload_regs
2202 if update_eliminables_and_spill returns true.
2203
2204 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
2205
2206 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
2207 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
2208 (umulhisi3_imm): Update predicates and constraint letters.
2209 (umulhisi3_reg): Declare instruction as commutative.
2210 * config/arc/constraints.md (J12, J16): New constraints.
2211 * config/arc/predicates.md (short_unsigned_const_operand): New
2212 predicate.
2213 (arc_short_operand): Likewise.
2214 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
2215
2216 2016-04-29 Richard Biener <rguenther@suse.de>
2217
2218 PR tree-optimization/13962
2219 PR tree-optimization/65686
2220 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
2221 * tree-ssa-alias.c (ptrs_compare_unequal): New function
2222 using PTA to compare pointers.
2223 * match.pd: Add pattern for pointer equality compare simplification
2224 using ptrs_compare_unequal.
2225
2226 2016-04-29 Richard Biener <rguenther@suse.de>
2227
2228 * stor-layout.c (layout_type): Do not build a pointer-to-element
2229 type for arrays.
2230
2231 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
2232
2233 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
2234 Use SWI mode iterator. Use general_reg_operand predicate.
2235 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
2236 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
2237 predicates.
2238
2239 2016-04-29 Jakub Jelinek <jakub@redhat.com>
2240
2241 PR middle-end/70843
2242 * fold-const.c (operand_equal_p): Don't verify hash value equality
2243 if arg0 == arg1.
2244 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
2245 and OMP_CLAUSE.
2246
2247 2016-04-28 Jakub Jelinek <jakub@redhat.com>
2248
2249 PR target/70858
2250 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
2251 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
2252 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
2253 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
2254 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
2255
2256 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
2257
2258 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
2259 to info. Don't initialize separate fields to 0. Clean up
2260 formatting a bit.
2261
2262 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
2263
2264 * config/i386/i386.md (peephole2s for operations with memory inputs):
2265 Use SWI mode iterator.
2266 (peephole2s for operations with memory outputs): Ditto.
2267 Do not check for stack checking probe.
2268
2269 (probe_stack): Remove expander.
2270
2271 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2272 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
2275 operands as 32-bits.
2276
2277 2016-04-28 Jason Merrill <jason@redhat.com>
2278
2279 * gdbinit.in: Skip line-map.h.
2280
2281 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2282 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * config/arc/arc.c (arc_conditional_register_usage): Take
2285 TARGET_RRQ_CLASS into account.
2286 (arc_print_operand): Support printing 'p' and 's' operands.
2287 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
2288 as 0.
2289 (TARGET_RRQ_CLASS): Define.
2290 (IS_POWEROF2_OR_0_P): Define.
2291 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
2292 alternatives.
2293 (*tst_movb): New define_insn.
2294 (*tst): Avoid recognition if it could prevent '*tst_movb'
2295 combination; replace c/CnL with c/Chs alternative.
2296 (*tst_bitfield_tst): New define_insn.
2297 (*tst_bitfield_asr): New define_insn.
2298 (*tst_bitfield): New define_insn.
2299 (andsi3_i): Add Rrq variant.
2300 (extzv): New define_expand.
2301 (insv): New define_expand.
2302 (*insv_i): New define_insn.
2303 (*movb): New define_insn.
2304 (*movb_signed): New define_insn.
2305 (*movb_high): New define_insn.
2306 (*movb_high_signed): New define_insn.
2307 (*movb_high_signed + 1): New define_split pattern.
2308 (*mrgb): New define_insn.
2309 (*mrgb + 1): New define_peephole2 pattern.
2310 (*mrgb + 2): New define_peephole2 pattern.
2311 * config/arc/arc.opt (mbitops): New option for nps400, uses
2312 TARGET_NPS_BITOPS_DEFAULT.
2313 * config/arc/constraints.md (q): Make register class conditional.
2314 (Rrq): New register constraint.
2315 (Chs): New constraint.
2316 (Clo): New constraint.
2317 (Chi): New constraint.
2318 (Cbf): New constraint.
2319 (Cbn): New constraint.
2320 (C18): New constraint.
2321 (Cbi): New constraint.
2322
2323 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
2324
2325 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
2326 dst->popcount.
2327 (bitmap_intersection_of_preds): Ditto.
2328 (bitmap_union_of_succs): Ditto.
2329 (bitmap_union_of_preds): Ditto.
2330 * sbitmap.c (do_popcount): Delete.
2331 (BITMAP_DEBUGGING): Delete.
2332 (sbitmap_verify_popcount): Delete.
2333 (sbitmap_alloc): Don't initialize the popcount field.
2334 (sbitmap_alloc_with_popcount): Delete.
2335 (sbitmap_resize): Don't resize the popcount array.
2336 (sbitmap_vector_alloc): Don't initialize the popcount field.
2337 (bitmap_copy): Don't copy the popcount array.
2338 (bitmap_clear): Don't clear the popcount array.
2339 (bitmap_clear): Delete the popcount array handling.
2340 (bitmap_ior_and_compl): Delete the popcount assert.
2341 (bitmap_not): Ditto.
2342 (bitmap_and_compl): Ditto.
2343 (bitmap_and): Delete the popcount array handling.
2344 (bitmap_xor): Ditto.
2345 (bitmap_ior): Ditto.
2346 (bitmap_or_and): Delete the popcount assert.
2347 (bitmap_and_or): Ditto.
2348 (popcount_table): Delete.
2349 (sbitmap_elt_popcount): Delete.
2350 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
2351 (bitmap_set_bit): Delete the popcount assert.
2352 (bitmap_clear_bit): Ditto.
2353 (sbitmap_free): Don't free the popcount array.
2354 (sbitmap_alloc_with_popcount): Delete declaration.
2355 (sbitmap_popcount): Ditto.
2356
2357 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2358 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
2361 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
2362 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
2363 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
2364 * config/arc/arc.opt (mcmem): New option.
2365 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
2366 supply length for r/m alternative.
2367 (*extendqisi2_ac): Likewise.
2368 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
2369 r/Uex alternative.
2370 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
2371 (movhi_insn): Likewise.
2372 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
2373 (*zero_extendqihi2_i): Add r/Ucm alternative.
2374 (*zero_extendqisi2_ac): Likewise.
2375 (*zero_extendhisi2_i): Likewise.
2376 * config/arc/constraints.md (Uex): New memory constraint.
2377 (Ucm): New define_constraint.
2378 * config/arc/predicates.md (long_immediate_loadstore_operand):
2379 Return 0 for MEM with cmem_address address.
2380 (cmem_address_0): New predicates.
2381 (cmem_address_1): Likewise.
2382 (cmem_address_2): Likewise.
2383 (cmem_address): Likewise.
2384
2385 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
2386
2387 * config/rs6000/rs6000.c (machine_function): Rename
2388 insn_chain_scanned_p to spe_insn_chain_scanned_p.
2389 (rs6000_stack_info): Adjust.
2390
2391 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2392 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * config/arc/constraints.md (Usd): Convert to define_constraint.
2395 (Us<): Likewise.
2396 (Us>): Likewise.
2397
2398 2016-04-28 Jakub Jelinek <jakub@redhat.com>
2399
2400 PR target/70821
2401 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
2402 Add new peephole2 where the first insn is *mov<mode>_or instead of
2403 *mov<mode>_internal.
2404
2405 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
2406
2407 * tracer.c (bb_seen): Make static.
2408
2409 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
2412 support, setup defaults.
2413 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
2414 * config/arc/arc.c (arc_init): Add NPS400 support.
2415 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
2416 (TARGET_ARC700): NPS400 is also an ARC700.
2417 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
2418
2419 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
2420
2421 PR target/70668
2422 * config/nds32/nds32.md (casesi): Don't access the operands array
2423 out of bounds.
2424
2425 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
2426
2427 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
2428 (or $-1,reg peephole2): Ditto.
2429 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
2430
2431 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2432
2433 * doc/extend.texi (Common Function Attributes) [optimize]:
2434 Discourage use of the optimize attribute.
2435
2436 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
2437
2438 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
2439 special case builtin.
2440 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
2441 ALTIVEC_BUILTIN_VEC_ADDE.
2442 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2443 support for ALTIVEC_BUILTIN_VEC_ADDE.
2444 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2445 for __builtin_vec_adde.
2446
2447 2016-04-28 Jakub Jelinek <jakub@redhat.com>
2448
2449 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
2450 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
2451
2452 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2453
2454 PR testsuite/70595
2455 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2456 attributes): Document cilkplus_runtime.
2457
2458 2016-04-28 Martin Jambor <mjambor@suse.cz>
2459
2460 * tree-cfg.c (verify_expr): Verify that local declarations belong to
2461 this function. Call verify_expr on MEM_REFs and bases of other
2462 handled_components.
2463
2464 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2465
2466 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
2467 for WORD_REGISTER_OPERATIONS to runtime check.
2468
2469 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
2470
2471 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
2472
2473 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
2474
2475 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
2476 big-endian compilation.
2477 * config/arc/arc.md (addf3): Likewise.
2478 (subdf3): Likewise.
2479 (muldf3): Likewise.
2480
2481 2016-04-28 Richard Biener <rguenther@suse.de>
2482
2483 PR tree-optimization/70840
2484 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
2485 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
2486 Mark x * pow(x,c) -> pow(x,c+1) commutative.
2487 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
2488
2489 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2490
2491 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
2492 and explain why in a comment.
2493
2494 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
2495
2496 * config/arc/arc.md (cpu_facility): Add fpx variant.
2497 (subdf3): Prohibit use reverse sub when assist operations option
2498 is enabled.
2499 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
2500 instructions only when FPX is enabled.
2501 * testsuite/gcc.target/arc/trsub.c: New test.
2502
2503 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
2504
2505 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
2506 mult_operator when calculating "type" attribute.
2507 (*fop_<mode>_1_i387): Ditto.
2508 (*fop_xf_1_i387): Ditto.
2509 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
2510 Use std::swap to swap operands. Use RTL expressions to generate
2511 converted pattern.
2512
2513 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
2514 Joern Rennecke <joern.rennecke@embecosm.com>
2515
2516 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
2517 declaration.
2518 (emit_pic_move): Remove.
2519 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
2520 * config/arc/arc.c (emit_pic_move): Removed.
2521 (TARGET_HAVE_TLS): Define.
2522 (arc_conditional_register_usage): Test for arc_tp_regno.
2523 (arc_print_operand, arc_print_operand_address): Handle TLS
2524 unspecs.
2525 (arc_needs_pcl_p): New function.
2526 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
2527 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
2528 (arc_raw_symbolic_reference_mentioned_p): Likewise.
2529 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
2530 (arc_legitimize_tls_address): Likewise.
2531 (DTPOFF_ZERO_SYM): Define.
2532 (arc_legitimize_pic_address): Make it static, handle TLS cases.
2533 (arc_output_pic_addr_const): Print TLS unspecs.
2534 (prepare_pic_move): New function, replaces emit_pic_move.
2535 (arc_legitimate_constant_p): Handle TLS unspecs.
2536 (arc_legitimate_address_p): Likewise.
2537 (arc_rewrite_small_data_p): Use assert for TLS constants.
2538 (prepare_move_operands): Use prepare_pic_move.
2539 (arc_legitimize_address): Legitimize tls addresses.
2540 (arc_epilogue_uses): Check for arc_tp_regno.
2541 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
2542 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
2543 Define.
2544 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
2545 Likewise.
2546 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
2547 %(arc_tls_extra_start_spec).
2548 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
2549 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
2550 (EH_USES): Define.
2551 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
2552 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
2553 (UNSPEC_TLS_OFF): Add.
2554 (R10_REG): Define.
2555 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
2556 (get_thread_pointersi): New patterns.
2557 * config/arc/arc.opt (mtp-regno): New option.
2558 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
2559 (move_dest_operand): Likewise.
2560 * configure: Regenerate.
2561 * configure.ac: Add arc*-*-* case to test for tls.
2562 * doc/invoke.texi (ARC options): Document mtp-regno.
2563
2564 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
2565
2566 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
2567 the new ARC HS SIMD instructions.
2568 (arc_preferred_simd_mode): New function.
2569 (arc_autovectorize_vector_sizes): Likewise.
2570 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
2571 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2572 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
2573 (arc_init_builtins): Add new SIMD builtin types.
2574 (arc_split_move): Handle 64 bit vector moves.
2575 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
2576 (TARGET_PLUS_QMACW): Define.
2577 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
2578 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
2579 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
2580 (VSUBADD4H): New builtins.
2581 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
2582 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
2583
2584 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2585 Matthias Klose <doko@debian.org>
2586
2587 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
2588
2589 2016-04-28 Richard Biener <rguenther@suse.de>
2590
2591 PR middle-end/70777
2592 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
2593 canonicalization.
2594
2595 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
2596
2597 * common/config/sh/sh-common.c: Remove SH5 support.
2598 * config/sh/constraints.md: Likewise.
2599 * config/sh/config/sh/elf.h: Likewise.
2600 * config/sh/linux.h: Likewise.
2601 * config/sh/netbsd-elf.h: Likewise.
2602 * config/sh/predicates.md: Likewise.
2603 * config/sh/sh-c.c: Likewise.
2604 * config/sh/sh-protos.h: Likewise.
2605 * config/sh/sh.c: Likewise.
2606 * config/sh/sh.h: Likewise.
2607 * config/sh/sh.md: Likewise.
2608 * config/sh/sh.opt: Likewise.
2609 * config/sh/sync.md: Likewise.
2610 * config/sh/sh64.h: Delete.
2611 * config/sh/shmedia.h: Likewise.
2612 * config/sh/shmedia.md: Likewise.
2613 * config/sh/sshmedia.h: Likewise.
2614 * config/sh/t-netbsd-sh5-64: Likewise.
2615 * config/sh/t-sh64: Likewise.
2616 * config/sh/ushmedia.h: Likewise.
2617
2618 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
2619
2620 * config/i386/i386.md (sign_extend to memory peephole2s): Use
2621 general_reg_operand instead of register_operand predicate.
2622
2623 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2624
2625 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
2626
2627 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
2628
2629 * match.pd (A - B > A, A + B < A): New transformations.
2630
2631 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
2632
2633 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
2634 which defaults to true. Emit an outer pair of parentheses only if
2635 EMIT_PARENS. When continuing a chain of && or || (or & or |),
2636 don't emit parentheses for the right-hand operand.
2637
2638 2016-04-27 Jeff Law <law@redhat.com>
2639
2640 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
2641
2642 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2643
2644 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
2645 (altivec_lvx_<mode>_internal): Document.
2646 (altivec_lvx_<mode>_2op): New define_insn.
2647 (altivec_lvx_<mode>_1op): Likewise.
2648 (altivec_lvx_<mode>_2op_si): Likewise.
2649 (altivec_lvx_<mode>_1op_si): Likewise.
2650 (altivec_stvx_<mode>): Remove.
2651 (altivec_stvx_<mode>_internal): Document.
2652 (altivec_stvx_<mode>_2op): New define_insn.
2653 (altivec_stvx_<mode>_1op): Likewise.
2654 (altivec_stvx_<mode>_2op_si): Likewise.
2655 (altivec_stvx_<mode>_1op_si): Likewise.
2656 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2657 Expand vec_ld and vec_st during parsing.
2658 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
2659 changes.
2660 (altivec_expand_stvx_be): Likewise.
2661 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
2662 address-masking behavior in RTL.
2663 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
2664 address-masking behavior in RTL.
2665 (altivec_expand_builtin): Change builtin code arguments for calls
2666 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
2667 (insn_is_swappable_p): Avoid incorrect swap optimization in the
2668 presence of lvx/stvx patterns.
2669 (alignment_with_canonical_addr): New function.
2670 (alignment_mask): Likewise.
2671 (find_alignment_op): Likewise.
2672 (recombine_lvx_pattern): Likewise.
2673 (recombine_stvx_pattern): Likewise.
2674 (recombine_lvx_stvx_patterns): Likewise.
2675 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
2676 stvx patterns from expand.
2677 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
2678 expansions.
2679 (vector_altivec_store_<mode>): Likewise.
2680
2681 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
2682
2683 * config/aarch64/aarch64.md
2684 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
2685 remove the "fp" attributes.
2686 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
2687 add the "simd" attributes.
2688 (*movdf_aarch64): Likewise.
2689 (*movtf_aarch64): Remove the "fp" attributes.
2690 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
2691 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
2692
2693 2016-04-27 David Malcolm <dmalcolm@redhat.com>
2694
2695 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
2696 rtx to rtx_code_label *.
2697 * rtl.h (maybe_set_first_label_num): Likewise.
2698
2699 2016-04-27 David Malcolm <dmalcolm@redhat.com>
2700
2701 * df-core.c (df_add_problem): Make the problem param be const.
2702 (df_remove_problem): Make local "problem" be const.
2703 * df-problems.c (problem_RD): Make const.
2704 (problem_LR): Likewise.
2705 (problem_LIVE): Likewise.
2706 (problem_MIR): Likewise.
2707 (problem_CHAIN): Likewise.
2708 (problem_WORD_LR): Likewise.
2709 (problem_NOTE): Likewise.
2710 (problem_MD): Likewise.
2711 * df-scan.c (problem_SCAN): Likewise.
2712 * df.h (struct df_problem): Make field "dependent_problem" be
2713 const.
2714 (struct dataflow): Likewise for field "problem".
2715 (df_add_problem): Make param const.
2716
2717 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
2718
2719 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
2720 inter-unit moves to/from vector registers are enabled. Do not disable
2721 for TARGET_MMX.
2722
2723 2016-04-27 David Malcolm <dmalcolm@redhat.com>
2724
2725 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
2726 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
2727 #define to...
2728 (enum df_problem_id): ...this new enum.
2729 (struct df_problem): Convert field "id" from "int" to
2730 enum df_problem_id.
2731
2732 2016-04-27 David Malcolm <dmalcolm@redhat.com>
2733
2734 * rtl.def: Update comment for "things in the instruction chain" to
2735 reflect the removal of the leading "i" field for INSN_UID in
2736 r210360. Fix bogus apostrophe.
2737
2738 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
2739
2740 * config/i386/i386.md
2741 (lea arith with mem operand + setcc peephole2): Set operator mode.
2742
2743 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
2744
2745 PR target/70155
2746 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
2747 (dimode_scalar_to_vector_candidate_p): This.
2748 (timode_scalar_to_vector_candidate_p): New function.
2749 (scalar_to_vector_candidate_p): Likewise.
2750 (timode_check_non_convertible_regs): Likewise.
2751 (timode_remove_non_convertible_regs): Likewise.
2752 (remove_non_convertible_regs): Likewise.
2753 (remove_non_convertible_regs): Renamed to ...
2754 (dimode_remove_non_convertible_regs): This.
2755 (scalar_chain::~scalar_chain): Make it virtual.
2756 (scalar_chain::compute_convert_gain): Make it pure virtual.
2757 (scalar_chain::mark_dual_mode_def): Likewise.
2758 (scalar_chain::convert_insn): Likewise.
2759 (scalar_chain::convert_registers): Likewise.
2760 (scalar_chain::add_to_queue): Make it protected.
2761 (scalar_chain::emit_conversion_insns): Likewise.
2762 (scalar_chain::replace_with_subreg): Likewise.
2763 (scalar_chain::replace_with_subreg_in_insn): Likewise.
2764 (scalar_chain::convert_op): Likewise.
2765 (scalar_chain::convert_reg): Likewise.
2766 (scalar_chain::make_vector_copies): Likewise.
2767 (scalar_chain::convert_registers): New pure virtual function.
2768 (class dimode_scalar_chain): New class.
2769 (class timode_scalar_chain): Likewise.
2770 (scalar_chain::mark_dual_mode_def): Renamed to ...
2771 (dimode_scalar_chain::mark_dual_mode_def): This.
2772 (timode_scalar_chain::mark_dual_mode_def): New function.
2773 (timode_scalar_chain::convert_insn): Likewise.
2774 (dimode_scalar_chain::convert_registers): Likewise.
2775 (scalar_chain::compute_convert_gain): Renamed to ...
2776 (dimode_scalar_chain::compute_convert_gain): This.
2777 (scalar_chain::replace_with_subreg): Renamed to ...
2778 (dimode_scalar_chain::replace_with_subreg): This.
2779 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
2780 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
2781 (scalar_chain::make_vector_copies): Renamed to ...
2782 (dimode_scalar_chain::make_vector_copies): This.
2783 (scalar_chain::convert_reg): Renamed to ...
2784 (dimode_scalar_chain::convert_reg ): This.
2785 (scalar_chain::convert_op): Renamed to ...
2786 (dimode_scalar_chain::convert_op): This.
2787 (scalar_chain::convert_insn): Renamed to ...
2788 (dimode_scalar_chain::convert_insn): This.
2789 (scalar_chain::convert): Call convert_registers.
2790 (convert_scalars_to_vector): Change to scalar_chain pointer to
2791 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
2792 in 32-bit mode. Delete scalar_chain pointer. Call
2793 free_dominance_info in 64-bit mode.
2794 (pass_stv::gate): Remove TARGET_64BIT check.
2795 (ix86_option_override): Put the 64-bit STV pass before the CSE
2796 pass.
2797
2798 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
2799
2800 * dwarf2out.h (struct dw_loc_descr_node): Remove the
2801 dw_loc_frame_offset field.
2802 * dwarf2out.c (new_loc_descr): Likewise.
2803 (resolve_args_picking_1): Turn the VISITED hash set into a
2804 FRAME_OFFSET hash map. Use it to associate a frame offset to
2805 visited nodes. Remove uses of the CHECKING_P macro.
2806 (resolve_args_picking): Update call to resolve_args_picking_1.
2807
2808 2016-04-27 Martin Liska <mliska@suse.cz>
2809
2810 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
2811 (free_loop_data): Release vuses of groups.
2812
2813 2016-04-27 Bin Cheng <bin.cheng@arm.com>
2814
2815 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
2816 instead of redundant use_id and boolean have_use_for.
2817 (struct iv_use): Change sub_id into group_id. Remove field next.
2818 Move fields: related_cands, n_map_members, cost_map and selected
2819 to ...
2820 (struct iv_group): ... here. New structure.
2821 (struct iv_common_cand): Use structure declaration directly.
2822 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
2823 (MAX_CONSIDERED_USES): Rename macro to ...
2824 (MAX_CONSIDERED_GROUPS): ... here.
2825 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
2826 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
2827 (dump_uses): Rename to ...
2828 (dump_groups): ... here. Update all uses.
2829 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
2830 (find_induction_variables): Refactor format of dump information.
2831 (record_sub_use): Delete.
2832 (record_use): Update all uses.
2833 (record_group): New function.
2834 (record_group_use, find_interesting_uses_op): Call above functions.
2835 Update all uses.
2836 (find_interesting_uses_cond): Ditto.
2837 (group_compare_offset): New function.
2838 (split_all_small_groups): Rename to ...
2839 (split_small_address_groups_p): ... here. Update all uses.
2840 (split_address_groups): Update all uses.
2841 (find_interesting_uses): Refactor format of dump information.
2842 (add_candidate_1): Update all uses. Remove redundant check on iv,
2843 base and step.
2844 (add_candidate, record_common_cand): Remove redundant assert.
2845 (add_iv_candidate_for_biv): Update use.
2846 (add_iv_candidate_derived_from_uses): Update all uses.
2847 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
2848 (alloc_use_cost_map): Ditto.
2849 (set_use_iv_cost, get_use_iv_cost): Rename to ...
2850 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
2851 (determine_use_iv_cost_generic): Ditto.
2852 (determine_group_iv_cost_generic): Ditto.
2853 (determine_use_iv_cost_address): Ditto.
2854 (determine_group_iv_cost_address): Ditto.
2855 (determine_use_iv_cost_condition): Ditto.
2856 (determine_group_iv_cost_cond): Ditto.
2857 (determine_use_iv_cost): Ditto.
2858 (determine_group_iv_cost): Ditto.
2859 (set_autoinc_for_original_candidates): Update all uses.
2860 (find_iv_candidates): Update all uses. Refactor dump information.
2861 (determine_use_iv_costs): Ditto.
2862 (determine_iv_costs): Ditto.
2863 (iv_ca_cand_for_use): Rename to ...
2864 (iv_ca_cand_for_group): ... here. Update all uses.
2865 (iv_ca_add_use, iv_ca_add_group): Ditto.
2866 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
2867 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
2868 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
2869 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
2870 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
2871 (create_new_iv, adjust_iv_update_pos): Ditto.
2872 (rewrite_use_address): Delete.
2873 (rewrite_use_address_1): Rename to ...
2874 (rewrite_use_address): ... here.
2875 (rewrite_use_compare): Update all uses.
2876 (rewrite_use): Delete.
2877 (rewrite_uses): Rename to ...
2878 (rewrite_groups): ... here. Update all uses.
2879 (remove_unused_ivs, free_loop_data): Update all uses.
2880 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
2881
2882 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2883
2884 * rtlanal.c (nonzero_bits1): Convert preprocessor check
2885 for WORD_REGISTER_OPERATIONS to runtime check.
2886
2887 2016-04-27 Richard Biener <rguenther@suse.de>
2888
2889 PR ipa/70760
2890 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
2891 aggregate_value_p to determine if a function result is
2892 returned by reference.
2893 (ipa_pta_execute): Functions having their address taken are
2894 not automatically nonlocal.
2895
2896 2016-04-27 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR sanitizer/70683
2899 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
2900 * fold-const.c (operand_equal_p): If flag_checking and
2901 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
2902 and if it returns non-zero, assert iterative_hash_expr on both
2903 args is the same.
2904
2905 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2906
2907 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
2908
2909 2016-04-27 Nick Clifton <nickc@redhat.com>
2910
2911 PR middle-end/49889
2912 * varasm.c (merge_weak): Generate an error if an attempt is made
2913 to convert a non-weak static function into a weak, public function.
2914
2915 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2916
2917 * params.def (MAX_PARTITION_SIZE): New param.
2918 * doc/invoke.texi: Document lto-max-partition.
2919
2920 2016-04-27 Richard Biener <rguenther@suse.de>
2921
2922 PR ipa/70785
2923 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
2924 function cummulating used_from_other_partition, externally_visible
2925 and force_output from aliases.
2926 (refered_from_nonlocal_var): Likewise.
2927 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
2928 node flags properly.
2929
2930 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2931
2932 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
2933 (-Wmemset-elt-size): New item.
2934
2935 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
2936
2937 PR ada/70759
2938 * stor-layout.h (internal_reference_types): Delete.
2939 * stor-layout.c (reference_types_internal): Likewise.
2940 (internal_reference_types): Likewise.
2941 (layout_type) <REFERENCE_TYPE>: Adjust.
2942
2943 2016-04-27 Jakub Jelinek <jakub@redhat.com>
2944
2945 PR sanitizer/70683
2946 * tree.h (inchash::add_expr): Add FLAGS argument.
2947 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
2948 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
2949 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
2950 Formatting fix. Adjust recursive calls. For tcc_comparison,
2951 if swap_tree_comparison (code) is smaller than code, hash that
2952 and arguments in the other order. Hash CONVERT_EXPR the same
2953 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
2954 of ADDR_EXPR of decl as the decl itself. Add or remove
2955 OEP_ADDRESS_OF from recursive flags as needed. For
2956 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
2957 operands commutatively and only the third one normally.
2958 For internal CALL_EXPR hash in CALL_EXPR_IFN.
2959
2960 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2961
2962 * config/rtems.h (LIB_SPEC): Add -latomic.
2963
2964 2016-04-27 Joel Sherrill <joel@rtems.org>
2965
2966 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
2967 xilink.ld and flags not relevant to RTEMS.
2968
2969 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2970
2971 * toplev.c (backend_init_target): Avoid calling init_reload when using
2972 LRA.
2973
2974 2016-04-26 Jakub Jelinek <jakub@redhat.com>
2975
2976 * reorg.c (try_merge_delay_insns): Declare i and j inside the
2977 for loops rather than one for the whole function.
2978
2979 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
2980
2981 * match.pd (X + CST CMP X): New transformation.
2982
2983 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
2984
2985 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
2986 * fold-const.c (fold_binary_loc): Remove 2 transformations
2987 superseded by match.pd.
2988 * match.pd (x+x -> x*2): Generalize to integers.
2989
2990 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
2991
2992 * config/i386/i386.md (operation on memory peephole): Duplicate an
2993 existing peephole and adapt it to match lea rather than an operation
2994 that clobbers CC.
2995
2996 PR rtl-optimization/57193
2997 * opts.c (default_options_table): Add OPT_frename_registers at -O2
2998 and above.
2999 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
3000
3001 2016-04-26 Bin Cheng <bin.cheng@arm.com>
3002
3003 * tree-if-conv.c (any_pred_load_store): New static variable.
3004 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
3005 any_pred_load_store instead of and_mask_load_store.
3006 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
3007 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
3008 (combine_blocks, tree_if_conversion): Ditto.
3009
3010 2016-04-26 Bin Cheng <bin.cheng@arm.com>
3011
3012 PR tree-optimization/70771
3013 PR tree-optimization/70775
3014 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
3015 virtual PHI nodes. Delete parameter.
3016 (if_convertible_loop_p_1): Delete argument to above function.
3017 (predicate_all_scalar_phis): Delete code handling single-argument
3018 PHIs.
3019 (tree_if_conversion): Mark and update virtual SSA.
3020
3021 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3022
3023 PR target/61821
3024 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
3025 (x86_elf_aligned_common): Rename to ...
3026 (x86_elf_aligned_decl_common): ... this.
3027 Add decl arg. Switch to .lbss for largecomm object. Use
3028 LARGECOMM_SECTION_ASM_OP.
3029 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
3030 renaming.
3031 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
3032 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
3033 Pass new decl arg.
3034 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3035 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
3036
3037 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038
3039 PR target/59407
3040 * config/i386/i386.c (SECTION_LARGE): Define.
3041 (x86_64_elf_select_section): Set it for large data/bss sections.
3042 Only clear SECTION_WRITE for .lrodata.
3043 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
3044 data/bss sections.
3045 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
3046 * varasm.c (default_elf_asm_named_section): Grow flagchars.
3047 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
3048 SECTION_MACH_DEP.
3049 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
3050 * doc/tm.texi: Regenerate.
3051
3052 2016-04-26 Jakub Jelinek <jakub@redhat.com>
3053
3054 PR bootstrap/70704
3055 * configure.ac (--enable-checking): Document extra flag, for
3056 non-release builds default to --enable-checking=yes,extra.
3057 If misc checking and extra checking, define CHECKING_P to 2 instead
3058 of 1.
3059 * common.opt (fchecking=): Add.
3060 * doc/invoke.texi (-fchecking=): Document.
3061 * doc/install.texi: Document --enable-checking changes.
3062 * configure: Regenerated.
3063 * config.in: Regenerated.
3064
3065 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
3066
3067 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
3068 attribute instead of which_alternative.
3069 * config/i386/sse.md (*mov<mode>_internal): Ditto.
3070 Use EXT_REX_SSE_REG_P where appropriate.
3071
3072 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
3073
3074 * config/i386/predicates.md (const0_operand): Do not match
3075 const_wide_int code.
3076 (const1_operand): Ditto.
3077
3078 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
3079
3080 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
3081 for SSE constm1 operands and TARGET_AVX512VL.
3082 (*movti_internal): Ditto.
3083 (*mov<mode>_or): Use constm1_operand predicate.
3084 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
3085 for SSE vector_all_ones operands and TARGET_AVX512VL.
3086 * config/i386/predicates.md (constm1_operand): New predicate.
3087 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
3088 emission of constant -1 load.
3089
3090 2016-04-25 Jason Merrill <jason@redhat.com>
3091
3092 * gdbinit.in: Skip is-a.h.
3093
3094 * attribs.c (register_scoped_attributes): Fix logic.
3095 * attribs.h: Declare register_scoped_attributes.
3096
3097 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3098
3099 * config/rs6000/rs6000-builtin.def: Correct pasto error for
3100 stxvd2x and stxvw4x built-in functions.
3101
3102 2016-04-25 DJ Delorie <dj@redhat.com>
3103
3104 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
3105 (ashrhi3): Likewise.
3106 (lshrhi3): Likewise.
3107
3108 2016-04-25 Richard Biener <rguenther@suse.de>
3109
3110 PR tree-optimization/70780
3111 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
3112 wasn't visited yet.
3113 (compute_antic): Mark blocks with abnormal preds as visited as
3114 they have a final empty antic-in solution already.
3115
3116 2016-04-25 Michael Collison <michael.collison@linaro.org>
3117
3118 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
3119
3120 2016-04-25 Michael Collison <michael.collison@linaro.org>
3121
3122 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
3123 mode is VQI to improve mixed mode vectorization.
3124 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
3125 define_insn to match low half of signed vaddw.
3126 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
3127 define_insn to match high half of signed vaddw.
3128 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
3129 define_insn to match low half of unsigned vaddw.
3130 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
3131 define_insn to match high half of unsigned vaddw.
3132 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
3133 (arm_simd_check_vect_par_cnst_half_p): Likewise.
3134 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
3135 for new function.
3136 (arm_simd_check_vect_par_cnst_half_p): Likewise.
3137 * config/arm/predicates.md (vect_par_constant_high): Support
3138 big endian and simplify by calling
3139 arm_simd_check_vect_par_cnst_half
3140 (vect_par_constant_low): Likewise.
3141
3142 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
3143
3144 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
3145 predicate for operand 2.
3146
3147 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
3148 H.J. Lu <hongjiu.lu@intel.com>
3149
3150 * config/i386/i386-protos.h (standard_sse_constant_p): Add
3151 machine_mode argument.
3152 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
3153 constm1_rtx operands. For VOIDmode constants, get mode from
3154 pred_mode. Check mode size if the mode is supported by ABI.
3155 (standard_sse_constant_opcode): Do not use standard_constant_p.
3156 Strictly check ABI support for all-ones operands.
3157 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
3158 immediates. Update calls to standard_sse_constant_p.
3159 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
3160 (ix86_rtx_costs): Ditto.
3161 * config/i386/i386.md (*movxi_internal_avx512f): Use
3162 nonimmediate_or_sse_const_operand instead of vector_move_operand.
3163 Use (v,BC) alternative instead of (v,C). Use register_operand
3164 checks instead of MEM_P.
3165 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
3166 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
3167 isa attribute. Use register_operand checks instead of MEM_P.
3168 (*movti_internal): Use nonimmediate_or_sse_const_operand for
3169 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
3170 alternative and corresponding sse2 isa attribute.
3171 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
3172 to standard_sse_constant_p.
3173 (FP constant splitters): Ditto.
3174 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
3175 (C): Ditto.
3176 * config/i386/predicates.md (constm1_operand): Remove.
3177 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
3178 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
3179 vector_all_ones_operand instead of constm1_operand.
3180
3181 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3182
3183 * print-rtl.c (print_rtx_insn_vec): New function.
3184 * print-rtl.h: New prototype.
3185 * store-motion.c (struct st_expr): Make avail_stores a vector.
3186 (st_expr_entry): Adjust.
3187 (free_st_expr_entry): Likewise.
3188 (print_store_motion_mems): Likewise.
3189 (find_moveable_store): Likewise.
3190 (compute_store_table): Likewise.
3191 (delete_store): Likewise.
3192 (build_store_vectors): Likewise.
3193
3194 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3195
3196 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
3197
3198 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3199
3200 * vec.h (vec_safe_contains): New function.
3201 (vec::contains): Likewise.
3202 (vec::begin): Likewise.
3203 (vec::end): Likewise.
3204
3205 2016-04-23 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR sanitizer/70712
3208 * cfgexpand.c (expand_stack_vars): Fix typo.
3209
3210 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3211
3212 * system.h (list, map, set, vector): Include conditionally.
3213 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
3214 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
3215 * ipa-icf.c (INCLUDE_LIST): Define.
3216 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
3217 * config/sh/sh.c (INCLUDE_VECTOR): Define.
3218 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
3219 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
3220 * cp/logic.cc (INCLUDE_LIST): Define.
3221 * fortran/trans-common.c (INCLUDE_MAP): Define.
3222
3223 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3224
3225 * auto-profile.c: Remove <string.h> include.
3226 * ipa-icf-gimple.c: Remove <list> include.
3227 * diagnostic.c: Remove <new> include.
3228 * genmatch.c: Likewise.
3229 * pretty-print.c: Likewise.
3230 * toplev.c: Likewise
3231 * c/c-objc-common.c: Likewise.
3232 * cp/error.c: Likewise.
3233 * fortran/error.c: Likewise.
3234
3235 2016-04-22 Richard Biener <rguenther@suse.de>
3236
3237 * lto-streamer-in.c (input_ssa_names): Do not allocate
3238 GIMPLE_NOP for all SSA names.
3239 * lto-streamer-out.c (output_ssa_names): Do not output
3240 SSA names that should have been released.
3241
3242 2016-04-22 Richard Biener <rguenther@suse.de>
3243
3244 PR tree-optimization/70740
3245 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
3246 VDEF.
3247
3248 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
3249
3250 PR target/70750
3251 * config/i386/predicates.md (call_insn_operand): Replace
3252 sibcall_memory_operand with memory_operand.
3253
3254 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
3255
3256 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
3257 has_single_use() tests.
3258 (register_edge_assert_for_1): Likewise.
3259 (find_assert_locations_1): Check the liveness bitmap instead of
3260 checking has_single_use().
3261
3262 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
3263
3264 PR target/70728
3265 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
3266 Extract AVX-512BW constraint from AVX.
3267
3268 2016-04-21 Richard Biener <rguenther@suse.de>
3269
3270 PR tree-optimization/70725
3271 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
3272 for phi_convertible_by_degenerating_args.
3273 (predicate_all_scalar_phis): Handle single-argument PHIs.
3274
3275 2016-04-21 Richard Biener <rguenther@suse.de>
3276
3277 PR middle-end/70747
3278 * fold-const.c (fold_comparison): Return properly typed
3279 constant boolean.
3280
3281 2016-04-21 Bin Cheng <bin.cheng@arm.com>
3282
3283 PR tree-optimization/70715
3284 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
3285 after expanding BASE using expand_simple_operations.
3286
3287 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
3288
3289 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
3290 New transformations.
3291
3292 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
3293
3294 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
3295
3296 2016-04-20 Jan Hubicka <jh@suse.cz>
3297
3298 * ipa-inline.c (can_inline_edge_p): Pass caller info to
3299 ultiimate_alias_target.
3300 (update_callee_keys): Likewise.
3301 (lookup_recursive_calls): Likewise.
3302 (speculation_useful_p): Likewise.
3303
3304 2016-04-20 Jan Hubicka <jh@suse.cz>
3305
3306 PR ipa/70018
3307 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
3308 (set_nothrow_flag_1): ... this; handle interposition correctly;
3309 recurse on aliases and thunks.
3310 (cgraph_node::set_nothrow_flag): New.
3311 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
3312 functions compiled with non-call exceptions that binds to current
3313 def.
3314 (propagate_nothrow): Be safe WRT interposition.
3315 * cgraph.h (set_nothrow_flag): Update prototype.
3316
3317 2016-04-18 Jan Hubicka <jh@suse.cz>
3318
3319 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3320 max_loop_iterations_int.
3321 (tree_unswitch_outer_loop): Likewise.
3322
3323 2016-04-20 Bin Cheng <bin.cheng@arm.com>
3324
3325 PR tree-optimization/69489
3326 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
3327 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
3328 Revise dump message.
3329 (if_convertible_bb_p): Remove check on edge count of basic block's
3330 predecessors.
3331
3332 2016-04-20 Bin Cheng <bin.cheng@arm.com>
3333
3334 PR tree-optimization/56625
3335 PR tree-optimization/69489
3336 * tree-data-ref.h (DR_INNERMOST): New macro.
3337 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
3338 hashing struct innermost_loop_behavior.
3339 (ref_DR_map): Remove.
3340 (innermost_DR_map): New map.
3341 (baseref_DR_map): Revise comment.
3342 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
3343 to innermost_DR_map accroding to its innermost loop behavior.
3344 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
3345 to its innermost loop behavior.
3346 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
3347 Add initialization for innermost_DR_map. Record memory reference
3348 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
3349 have innermost loop behavior.
3350 (if_convertible_loop_p): Remove release for ref_DR_map. Release
3351 innermost_DR_map.
3352
3353 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
3354
3355 * config/i386/i386.md (*lea<mode>_general_1): Rename from
3356 *lea_general_1. Use explicit SWI12 mode interator.
3357 (*lea<mode>_general_2): Rename from *lea_general_2.
3358 Use explicit SWI12 mode interator.
3359 (*lea<mode>_general_3): Rename from *lea_general_3.
3360 Use explicit SWI12 mode interator.
3361 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
3362 Use explicit SWI12 mode interator.
3363 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
3364 Use explicit SWI48 mode interator.
3365
3366 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
3367
3368 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3369 Short-cut unaligned load and store cases. Handle all integer
3370 vector modes.
3371 (ix86_expand_vector_move_misalign): Short-cut unaligned load
3372 and store cases. Call ix86_avx256_split_vector_move_misalign
3373 directly without checking mode class.
3374
3375 2016-04-20 Andrew Pinski <apinski@cavium.com>
3376 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3377
3378 PR target/64971
3379 * config/aarch64/aarch64.md (sibcall): Force call
3380 address to be DImode for ILP32.
3381 (sibcall_value): Likewise.
3382
3383 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
3384
3385 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
3386
3387 2016-04-20 Richard Biener <rguenther@suse.de>
3388
3389 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
3390 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
3391 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
3392 (maybe_push_res_to_seq): Adjust.
3393 * gimple-fold.c (maybe_build_generic_op): Likewise.
3394
3395 2016-04-20 Marek Polacek <polacek@redhat.com>
3396
3397 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
3398 rather than true.
3399
3400 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
3401
3402 * config/i386/sse.md (vec_unpacks_lo_hi): Always
3403 use kmovw to support AVX512F target.
3404
3405 2016-04-20 Bin Cheng <bin.cheng@arm.com>
3406
3407 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
3408
3409 2016-04-20 Marek Polacek <polacek@redhat.com>
3410
3411 PR tree-optimization/70725
3412 * tree-if-conv.c (is_false_predicate): New function.
3413 (predicate_mem_writes): Use it.
3414
3415 2016-04-20 Richard Biener <rguenther@suse.de>
3416
3417 PR tree-optimization/70726
3418 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
3419 shift amounts from a pattern stmt operand.
3420
3421 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3422
3423 PR target/70674
3424 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
3425 stack_restore_from_fpr pattern when restoring r15.
3426 (s390_optimize_prologue): Strip away the memory barrier in the
3427 parallel when trying to get rid of restore insns.
3428 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
3429 definition for loading the stack pointer from an FPR. Compared to
3430 the normal move insn this pattern includes a full memory barrier.
3431
3432 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR middle-end/70680
3435 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
3436 implicitly linear or lastprivate iterator on the outer context.
3437
3438 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
3439
3440 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
3441 alignment check.
3442 * config/i386/i386.md (ssememalign): Removed.
3443 * config/i386/sse.md: Remove ssememalign attribute from patterns.
3444
3445 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
3446
3447 PR target/69201
3448 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
3449 const short * to __builtin_ia32_loaddquhi512_mask.
3450 (_mm512_maskz_loadu_epi16): Likewise.
3451 (_mm512_mask_storeu_epi16): Pass short * to
3452 __builtin_ia32_storedquhi512_mask.
3453 (_mm512_mask_loadu_epi8): Pass const char * to
3454 __builtin_ia32_loaddquqi512_mask.
3455 (_mm512_maskz_loadu_epi8): Likewise.
3456 (_mm512_mask_storeu_epi8): Pass char * to
3457 __builtin_ia32_storedquqi512_mask.
3458 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
3459 const double * to __builtin_ia32_loadupd512_mask.
3460 (_mm512_mask_loadu_pd): Likewise.
3461 (_mm512_maskz_loadu_pd): Likewise.
3462 (_mm512_storeu_pd): Pass double * to
3463 __builtin_ia32_storeupd512_mask.
3464 (_mm512_mask_storeu_pd): Likewise.
3465 (_mm512_loadu_ps): Pass const float * to
3466 __builtin_ia32_loadups512_mask.
3467 (_mm512_mask_loadu_ps): Likewise.
3468 (_mm512_maskz_loadu_ps): Likewise.
3469 (_mm512_storeu_ps): Pass float * to
3470 __builtin_ia32_storeups512_mask.
3471 (_mm512_mask_storeu_ps): Likewise.
3472 (_mm512_mask_loadu_epi64): Pass const long long * to
3473 __builtin_ia32_loaddqudi512_mask.
3474 (_mm512_maskz_loadu_epi64): Likewise.
3475 (_mm512_mask_storeu_epi64): Pass long long *
3476 to __builtin_ia32_storedqudi512_mask.
3477 (_mm512_loadu_si512): Pass const int * to
3478 __builtin_ia32_loaddqusi512_mask.
3479 (_mm512_mask_loadu_epi32): Likewise.
3480 (_mm512_maskz_loadu_epi32): Likewise.
3481 (_mm512_storeu_si512): Pass int * to
3482 __builtin_ia32_storedqusi512_mask.
3483 (_mm512_mask_storeu_epi32): Likewise.
3484 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
3485 char * to __builtin_ia32_storedquqi256_mask.
3486 (_mm_mask_storeu_epi8): Likewise.
3487 (_mm256_mask_loadu_epi16): Pass const short * to
3488 __builtin_ia32_loaddquhi256_mask.
3489 (_mm256_maskz_loadu_epi16): Likewise.
3490 (_mm_mask_loadu_epi16): Pass const short * to
3491 __builtin_ia32_loaddquhi128_mask.
3492 (_mm_maskz_loadu_epi16): Likewise.
3493 (_mm256_mask_loadu_epi8): Pass const char * to
3494 __builtin_ia32_loaddquqi256_mask.
3495 (_mm256_maskz_loadu_epi8): Likewise.
3496 (_mm_mask_loadu_epi8): Pass const char * to
3497 __builtin_ia32_loaddquqi128_mask.
3498 (_mm_maskz_loadu_epi8): Likewise.
3499 (_mm256_mask_storeu_epi16): Pass short * to.
3500 __builtin_ia32_storedquhi256_mask.
3501 (_mm_mask_storeu_epi16): Pass short * to.
3502 __builtin_ia32_storedquhi128_mask.
3503 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
3504 const double * to __builtin_ia32_loadupd256_mask.
3505 (_mm256_maskz_loadu_pd): Likewise.
3506 (_mm_mask_loadu_pd): Pass onst double * to
3507 __builtin_ia32_loadupd128_mask.
3508 (_mm_maskz_loadu_pd): Likewise.
3509 (_mm256_mask_storeu_pd): Pass double * to
3510 __builtin_ia32_storeupd256_mask.
3511 (_mm_mask_storeu_pd): Pass double * to
3512 __builtin_ia32_storeupd128_mask.
3513 (_mm256_mask_loadu_ps): Pass const float * to
3514 __builtin_ia32_loadups256_mask.
3515 (_mm256_maskz_loadu_ps): Likewise.
3516 (_mm_mask_loadu_ps): Pass const float * to
3517 __builtin_ia32_loadups128_mask.
3518 (_mm_maskz_loadu_ps): Likewise.
3519 (_mm256_mask_storeu_ps): Pass float * to
3520 __builtin_ia32_storeups256_mask.
3521 (_mm_mask_storeu_ps): ass float * to
3522 __builtin_ia32_storeups128_mask.
3523 (_mm256_mask_loadu_epi64): Pass const long long * to
3524 __builtin_ia32_loaddqudi256_mask.
3525 (_mm256_maskz_loadu_epi64): Likewise.
3526 (_mm_mask_loadu_epi64): Pass const long long * to
3527 __builtin_ia32_loaddqudi128_mask.
3528 (_mm_maskz_loadu_epi64): Likewise.
3529 (_mm256_mask_storeu_epi64): Pass long long * to
3530 __builtin_ia32_storedqudi256_mask.
3531 (_mm_mask_storeu_epi64): Pass long long * to
3532 __builtin_ia32_storedqudi128_mask.
3533 (_mm256_mask_loadu_epi32): Pass const int * to
3534 __builtin_ia32_loaddqusi256_mask.
3535 (_mm256_maskz_loadu_epi32): Likewise.
3536 (_mm_mask_loadu_epi32): Pass const int * to
3537 __builtin_ia32_loaddqusi128_mask.
3538 (_mm_maskz_loadu_epi32): Likewise.
3539 (_mm256_mask_storeu_epi32): Pass int * to
3540 __builtin_ia32_storedqusi256_mask.
3541 (_mm_mask_storeu_epi32): Pass int * to
3542 __builtin_ia32_storedqusi128_mask.
3543 * config/i386/i386-builtin-types.def (PCSHORT): New.
3544 (PINT64): Likewise.
3545 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
3546 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
3547 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
3548 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
3549 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
3550 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
3551 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
3552 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
3553 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
3554 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
3555 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
3556 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
3557 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
3558 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
3559 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
3560 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
3561 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
3562 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
3563 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
3564 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
3565 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
3566 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
3567 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
3568 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
3569 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
3570 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
3571 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
3572 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
3573 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
3574 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
3575 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
3576 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
3577 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
3578 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
3579 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
3580 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
3581 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
3582 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
3583 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
3584 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
3585 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
3586 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
3587 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
3588 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
3589 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
3590 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
3591 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
3592 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
3593 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
3594 use UNSPEC_STOREU.
3595 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
3596 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
3597 load nor store.
3598 (ix86_expand_vector_move_misalign): Likewise.
3599 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
3600 to scalar function prototype for unaligned load/store builtins.
3601 (ix86_expand_special_args_builtin): Updated.
3602 * config/i386/sse.md (UNSPEC_LOADU): Removed.
3603 (UNSPEC_STOREU): Likewise.
3604 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
3605 (VI_ULOADSTORE_F_AVX512VL): Likewise.
3606 (ssescalarsize): Handle V4TI, V2TI and V1TI.
3607 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
3608 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
3609 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
3610 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
3611 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
3612 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
3613 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
3614 (<avx512>_storedqu<mode>_mask): Likewise.
3615 (*sse4_2_pcmpestr_unaligned): Likewise.
3616 (*sse4_2_pcmpistr_unaligned): Likewise.
3617 (*mov<mode>_internal): Renamed to ...
3618 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
3619 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
3620 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
3621 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
3622
3623 2016-04-19 Richard Biener <rguenther@suse.de>
3624
3625 PR tree-optimization/70171
3626 * tree-ssa-phiprop.c: Include stor-layout.h.
3627 (phiprop_insert_phi): Handle the aggregate copy case.
3628 (propagate_with_phi): Likewise.
3629
3630 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
3631
3632 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
3633 instead of simplify_gen_subreg (... , 0).
3634 (ix86_delegitimize_address): Ditto.
3635 (ix86_split_divmod): Ditto.
3636 (ix86_split_copysign_const): Ditto.
3637 (ix86_split_copysign_var): Ditto.
3638 (ix86_expand_args_builtin): Ditto.
3639 (ix86_expand_round_builtin): Ditto.
3640 (ix86_expand_special_args_builtin): Ditto.
3641 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
3642 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
3643 (udivmodqi4): Ditto.
3644 (absneg splitters): Ditto.
3645 (*jcc_bt<mode>_1): Ditto.
3646
3647 2016-04-19 Richard Biener <rguenther@suse.de>
3648
3649 PR tree-optimization/70724
3650 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
3651 restoring out from ...
3652 (free_scc_vn): ... here.
3653 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
3654 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
3655 tail merging.
3656 (pass_fre::execute): Restore SSA info.
3657
3658 2016-04-19 Richard Biener <rguenther@suse.de>
3659
3660 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
3661 * gimple-walk.c (walk_gimple_op): Initialize it.
3662 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
3663 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
3664 remapping SSA names of defs.
3665 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
3666 adjustment.
3667
3668 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
3669
3670 PR middle-end/70689
3671 * lra-constraints.c (equiv_substition_p): New.
3672 (process_alt_operands): Use it.
3673 (swap_operands): Swap it.
3674 (curr_insn_transform): Update it.
3675
3676 2016-04-18 Michael Matz <matz@suse.de>
3677
3678 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
3679 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
3680 * tree-core.h (tree_type_common.align): Use bit-field.
3681 (tree_type_common.spare): New.
3682 (tree_decl_common.off_align): Make smaller.
3683 (tree_decl_common.align): Use bit-field.
3684
3685 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
3686 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
3687 (scan_sharing_clauses): Ditto.
3688 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
3689 (omp_finish_file): Ditto.
3690 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
3691 (layout_decl): Ditto.
3692 (relayout_decl): Ditto.
3693 (finalize_record_size): Use SET_TYPE_ALIGN.
3694 (finalize_type_size): Ditto.
3695 (finish_builtin_struct): Ditto.
3696 (layout_type): Ditto.
3697 (initialize_sizetypes): Ditto.
3698 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
3699 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
3700 (lookup_field_for_decl): Use SET_DECL_ALIGN.
3701 (get_chain_field): Ditto.
3702 (get_trampoline_type): Ditto.
3703 (get_nl_goto_field): Ditto.
3704 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
3705 SET_DECL_ALIGN.
3706 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
3707 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
3708 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
3709 (build_qualified_type): Use SET_TYPE_ALIGN.
3710 (build_aligned_type, build_range_type_1): Ditto.
3711 (build_atomic_base): Ditto.
3712 (build_common_tree_nodes): Ditto.
3713 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
3714 (expand_one_stack_var_at): Ditto.
3715 * coverage.c (build_var): Use SET_DECL_ALIGN.
3716 * except.c (init_eh): Ditto.
3717 * function.c (assign_parm_setup_block): Ditto.
3718 * symtab.c (increase_alignment_1): Ditto.
3719 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
3720 * tree-vect-stmts.c (ensure_base_align): Ditto.
3721 * varasm.c (align_variable): Ditto.
3722 (assemble_variable): Ditto.
3723 (build_constant_desc): Ditto.
3724 (output_constant_def_contents): Ditto.
3725
3726 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
3727 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
3728 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
3729 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
3730 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
3731
3732 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
3733
3734 PR target/70708
3735 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
3736 replace %vmovsd with "%vmovq".
3737 (vec_concatv2df): Likewise.
3738
3739 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
3740
3741 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
3742 (*vec_extractv2si_0): Ditto.
3743 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
3744 (zero_extended_scalar_load_operand splitters): Ditto.
3745 (vec_extract splitters): Ditto.
3746 (*vec_extractv4si_0_zext): Ditto.
3747 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
3748 and lowpart_subreg.
3749 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
3750 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
3751 (*sse4_1_extractps): Use lowpart_subreg.
3752 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
3753
3754 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3755
3756 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
3757 gld requirements.
3758 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
3759 Mention Solaris 11 packaging changes.
3760 Update gas and gld requirements.
3761 Remove reference to pre-Solaris 10 bug.
3762 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
3763 systems and bugs.
3764 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
3765 with cc.
3766
3767 2016-04-17 Jan Hubicka <jh@suse.cz>
3768
3769 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
3770 max_loop_iterations_int.
3771
3772 2016-04-18 Richard Biener <rguenther@suse.de>
3773
3774 PR tree-optimization/43434
3775 * tree-ssa-structalias.c (struct vls_data): New.
3776 (visit_loadstore): Handle all pointer-based accesses.
3777 (compute_dependence_clique): Compute a bitmap of restrict tags
3778 assigned bases and pass it to visit_loadstore.
3779
3780 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
3781
3782 PR target/70711
3783 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
3784 armv8.1-a and armv8.1-a+crc.
3785
3786 2016-04-18 Richard Biener <rguenther@suse.de>
3787
3788 PR tree-optimization/70701
3789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
3790 references after translating through a memcpy.
3791
3792 2016-04-18 Richard Biener <rguenther@suse.de>
3793
3794 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
3795 (compute_antic): ... here. For partial antic use regular
3796 postorder and scrap iteration.
3797 (compute_partial_antic_aux): Remove unused return value.
3798 (init_pre): Do not allocate postorder.
3799 (fini_pre): Do not free postorder.
3800
3801 2016-04-18 Richard Biener <rguenther@suse.de>
3802
3803 PR middle-end/37870
3804 * expmed.c (extract_bit_field_1): Remove broken case
3805 using a wider MODE_INT mode.
3806
3807 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
3808
3809 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
3810 unless compiling with at least GCC-4.8.
3811
3812 2016-04-17 Jan Hubicka <jh@suse.cz>
3813
3814 PR bootstrap/70706
3815 * graphite.c (graphite_finalize): Update call to
3816 tree_estimate_probability.
3817 * predict.h (tree_estimate_probability): Update prototype.
3818
3819 2016-04-17 Jan Hubicka <jh@suse.cz>
3820
3821 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
3822 (tree_estimate_probability): Likewise.
3823 (pass_profile::execute): Update.
3824 (report_predictor_hitrates): New function.
3825 * profile.c (compute_branch_probabilities): Use it.
3826 * predict.h (report_predictor_hitrates): Declare.
3827
3828 2016-04-17 Jan Hubicka <jh@suse.cz>
3829
3830 PR ipa/70018
3831 * cgraph.h (cgraph_node::set_const_flag,
3832 cgraph_node::set_pure_flag): Update prototype to return bool;
3833 update comment.
3834 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
3835 of interposable symbol are interposable, too.
3836 (cgraph_set_const_flag_1): Rename to ...
3837 (set_const_flag_1): ... this one; change to self recursive function
3838 instead of call_for_symbol_thunks_and_aliases. Handle correctly
3839 clearnig the flag in all variants and also virtual thunks of const
3840 functions are pure; track if any change was done.
3841 (cgraph_node::set_const_flag): Update.
3842 (struct set_pure_flag_info): New struct.
3843 (cgraph_set_pure_flag_1): Rename to ...
3844 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
3845 rather than pointer encoded flags; track if any changes was done;
3846 handle correctly clearning flag and setting flag of aliases already
3847 declared const.
3848 (cgraph_node::set_pure_flag): Update.
3849 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
3850
3851 2016-04-17 Tom de Vries <tom@codesourcery.com>
3852
3853 PR other/70433
3854 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
3855 backslash in label.
3856
3857 2016-04-17 Tom de Vries <tom@codesourcery.com>
3858
3859 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
3860 '{}<> ' as escape-for-record.
3861
3862 2016-04-17 Tom de Vries <tom@codesourcery.com>
3863
3864 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
3865 structure.
3866
3867 2016-04-17 Tom de Vries <tom@codesourcery.com>
3868
3869 PR other/70185
3870 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
3871 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
3872 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
3873 * passes.c (finish_optimization_passes): Only call
3874 finish_graph_dump_file if dfi->graph_dump_initialized.
3875 (execute_function_dump, pass_init_dump_file): Use
3876 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
3877
3878 2016-04-17 Tom de Vries <tom@codesourcery.com>
3879
3880 PR tree-optimization/70256
3881 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
3882 (debug_varmap): New function.
3883
3884 2016-04-17 Tom de Vries <tom@codesourcery.com>
3885
3886 PR other/70183
3887 * passes.c (pass_manager::register_pass): Propagate pflags.
3888
3889 2016-04-17 Tom de Vries <tom@codesourcery.com>
3890
3891 PR other/68875
3892 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
3893 * passes.c (pass_manager::pass_manager): Declare and init p_start in
3894 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
3895 check if it's equal to p_start.
3896 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
3897
3898 2016-04-15 Jan Hubicka <jh@suse.cz>
3899
3900 PR ipa/70018
3901 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
3902 function does not bind to current def.
3903 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
3904 handle conservatively calls to functions that does not need to bind
3905 to current def.
3906 (check_call): Update call of worse_state.
3907 (ignore_edge_for_nothrow): Update.
3908 (ignore_edge_for_pure_const): Likewise.
3909 (propagate_pure_const): Update calls to worse_state.
3910 (skip_function_for_local_pure_const): Reformat comments.
3911
3912 2016-04-15 Jan Hubicka <jh@suse.cz>
3913
3914 PR ipa/70018
3915 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
3916 (cgraph_node::function_symbol): Likewise.
3917 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
3918 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
3919 (symtab_node::ultimate_alias_target): Add REF parameter.
3920 (symtab_node::binds_to_current_def_p): Declare.
3921 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
3922 (cgraph_node::function_symbol): Likewise.
3923 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
3924 (cgraph_node::get_availability): Likewise.
3925 (cgraph_edge::binds_to_current_def_p): New inline function.
3926 (varpool_node::get_availability): Add REF parameter.
3927 (varpool_node::ultimate_alias_target): Likewise.
3928 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
3929 (symtab_node::binds_to_current_def_p): Likewise.
3930 * varpool.c (varpool_node::get_availability): Likewise.
3931
3932 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
3933
3934 PR target/70662
3935 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
3936 Fix mode size check.
3937
3938 2016-04-15 Jakub Jelinek <jakub@redhat.com>
3939
3940 * BASE-VER: Set to 7.0.0.
3941
3942 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
3943
3944 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
3945
3946 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3947
3948 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
3949 architecture revisions.
3950
3951 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
3952
3953 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
3954 * config/i386/i386.c (ix86_using_red_zone): No longer static.
3955 * config/i386/i386.md (stack decrement to push peepholes): Guard
3956 with !x86_using_red_zone ().
3957
3958 2016-04-15 Jakub Jelinek <jakub@redhat.com>
3959
3960 PR c++/70675
3961 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
3962 to dump_generic_node.
3963 (NIY): Pass also flags to do_niy.
3964
3965 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
3966
3967 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
3968 (simd_clone_vector_of_formal_parm_types)
3969 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
3970 (simd_clone_mangle, simd_clone_create)
3971 (simd_clone_adjust_return_type, create_tmp_simd_array)
3972 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
3973 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
3974 (ipa_simd_modify_function_body, simd_clone_linear_addend)
3975 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
3976 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
3977 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
3978 * omp-simd-clone.c: ... this new file.
3979 (simd_clone_vector_of_formal_parm_types): Make it static.
3980 * Makefile.in (OBJS): Add omp-simd-clone.o.
3981
3982 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
3983
3984 PR target/70662
3985 * config/i386/sse.md: Use proper memory operand modifiers.
3986
3987
3988 2016-04-15 Richard Biener <rguenther@suse.de>
3989 Alan Modra <amodra@gmail.com>
3990
3991 PR tree-optimization/70130
3992 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
3993 when alignment stays not the same and no not use the realign
3994 scheme then.
3995
3996 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3997
3998 PR target/70669
3999 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4000 direct move handlers for KFmode. Change TFmode handlers test from
4001 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
4002
4003 2016-04-14 Jakub Jelinek <jakub@redhat.com>
4004
4005 PR c++/70594
4006 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
4007 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
4008 (inlined_polymorphic_ctor_dtor_block_p): Use it.
4009 * tree-ssa-live.c (remove_unused_scope_block_p): When
4010 in_ctor_dtor_block, avoid discarding not just BLOCKs with
4011 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
4012 block_ultimate_origin is FUNCTION_DECL.
4013 (remove_unused_locals): If current_function_decl is
4014 polymorphic_ctor_dtor_p, pass initial true to
4015 remove_unused_scope_block_p' is_ctor_dtor_block.
4016
4017 2016-04-14 Martin Sebor <msebor@redhat.com>
4018
4019 PR c++/69517
4020 PR c++/70019
4021 PR c++/70588
4022 * doc/extend.texi (Variable Length): Revert.
4023
4024 2016-04-14 Marek Polacek <polacek@redhat.com>
4025 Jan Hubicka <hubicka@ucw.cz>
4026
4027 PR c++/70029
4028 * tree.c (verify_type): Disable the canonical type of main variant
4029 check.
4030
4031 2016-04-14 Jason Merrill <jason@redhat.com>
4032
4033 * cfgexpand.c, expr.c: Revert previous change.
4034
4035 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4036
4037 PR middle-end/70643
4038 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4039 when building a mem ref for the incoming reduction variable.
4040
4041 2016-04-14 Richard Biener <rguenther@suse.de>
4042
4043 PR tree-optimization/70614
4044 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4045 loop if the evolution dropped to chrec_dont_know.
4046 (interpret_condition_phi): Likewise.
4047
4048 2016-04-14 Richard Biener <rguenther@suse.de>
4049
4050 PR tree-optimization/70623
4051 * tree-ssa-pre.c (changed_blocks): Make global ...
4052 (compute_antic): ... local here. Move and fix worklist
4053 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4054 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
4055 worklist handling, dump when ANTIC_IN changed.
4056 (compute_partial_antic_aux): Remove worklist handling.
4057 (init_pre): Do not compute post dominators. Add a comment about
4058 the CFG order chosen.
4059 (fini_pre): Do not free post dominators.
4060
4061 2016-04-13 Martin Sebor <msebor@redhat.com>
4062
4063 PR c++/69517
4064 PR c++/70019
4065 PR c++/70588
4066 * doc/extend.texi (Variable Length): Document C++ specifics.
4067
4068 2016-04-13 Jakub Jelinek <jakub@redhat.com>
4069
4070 PR c++/70641
4071 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4072 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
4073 eh edges have been purged.
4074
4075 PR c++/70594
4076 * tree-sra.c (create_access_replacement,
4077 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4078 gets fancy name.
4079 * tree-pretty-print.c (dump_fancy_name): New function.
4080 (dump_decl_name, dump_generic_node): Use it.
4081
4082 2016-04-13 Jason Merrill <jason@redhat.com>
4083
4084 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4085 * expr.c (expand_expr_real_1): Likewise.
4086
4087 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
4088
4089 * config/i386/i386.md (kunpckhi): Swap operands.
4090 (kunpcksi): Likewise.
4091 (kunpckdi): Likewise.
4092 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4093 (vec_pack_trunc_<mode>): Likewise.
4094
4095 2016-04-13 Jakub Jelinek <jakub@redhat.com>
4096
4097 PR debug/70628
4098 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4099
4100 PR middle-end/70633
4101 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4102 gimplification turns some element into non-constant.
4103
4104 PR debug/70628
4105 * rtl.h (convert_memory_address_addr_space_1): New prototype.
4106 * explow.c (convert_memory_address_addr_space_1): No longer static,
4107 add NO_EMIT argument and don't call convert_modes if true, pass
4108 it down recursively, remove break after return.
4109 (convert_memory_address_addr_space): Adjust caller.
4110 * simplify-rtx.c (simplify_unary_operation_1): Call
4111 convert_memory_address_addr_space_1 instead of convert_memory_address,
4112 if it returns NULL, don't simplify.
4113
4114 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
4115
4116 PR target/70630
4117 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4118
4119 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4120
4121 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4122 Bump the upper SIMDLEN limits, so that if the return type or
4123 characteristic type if the return type is void can be passed in
4124 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4125 allowed.
4126
4127 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4128
4129 PR target/70640
4130 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4131 Do not use "=" constraint on an input constraint.
4132 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4133 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4134 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4135 generates (neg (abs ...)) instead of (abs ...).
4136
4137 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4138
4139 PR rtl-optimization/70596
4140 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4141 just invalidate LRA data and reset them. Adjust dump wording.
4142
4143 2016-04-12 Martin Liska <mliska@suse.cz>
4144
4145 Revert
4146 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4147
4148 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4149 estimates here.
4150 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4151 max_loop_iterations_int.
4152 (tree_unswitch_outer_loop): Likewise.
4153 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4154 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4155
4156 2016-04-12 Tom de Vries <tom@codesourcery.com>
4157
4158 PR tree-optimization/68756
4159 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4160 instead of new_name.
4161
4162 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4163
4164 PR tree-optimization/70602
4165 * tree-sra.c (generate_subtree_copies): Don't write anything into
4166 constant pool decls.
4167
4168 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4169 regardless whether there are depend clauses or not.
4170
4171 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4172
4173 PR target/70381
4174 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4175 target attribute and pragma from changing the -mfloat128
4176 and -mfloat128-hardware options.
4177
4178 * doc/extend.texi (Additional Floating Types): Document PowerPC
4179 __float128 restrictions.
4180
4181 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4182
4183 PR target/70133
4184 * config/aarch64/driver-aarch64.c
4185 (aarch64_get_extension_string_for_isa_flags): New.
4186 (arch_extension): Rename to...
4187 (aarch64_arch_extension): ...This.
4188 (ext_to_feat_string): Rename to...
4189 (aarch64_extensions): ...This.
4190 (aarch64_core_data): Keep track of architecture extension flags.
4191 (cpu_data): Rename to...
4192 (aarch64_cpu_data): ...This.
4193 (aarch64_arch_driver_info): Keep track of architecture extension
4194 flags.
4195 (get_arch_name_from_id): Rename to...
4196 (get_arch_from_id): ...This, change return type.
4197 (host_detect_local_cpu): Update and reformat for renames, handle
4198 extensions through common infrastructure.
4199
4200 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4201
4202 PR target/70133
4203 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4204 track of a canonical flag name.
4205 (all_extensions): Likewise.
4206 (arch_to_arch_name): Also track extension flags enabled by the arch.
4207 (all_architectures): Likewise.
4208 (aarch64_parse_extension): Move to here.
4209 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4210 rework.
4211 (aarch64_rewrite_selected_cpu): Update for above change.
4212 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4213 are handled, such that the single explicit value enabled by an
4214 extension is kept seperate from the implicit values it also enables.
4215 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4216 to here.
4217 (aarch64_parse_extension): New.
4218 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4219 here to config/aarch64/aarch64-protos.h.
4220 (aarch64_parse_extension): Move from here to
4221 common/config/aarch64/aarch64-common.c.
4222 (aarch64_option_print): Update.
4223 (aarch64_declare_function_name): Likewise.
4224 (aarch64_start_file): Likewise.
4225 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4226 the canonical flag for extensions.
4227 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4228 flags.
4229
4230 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4231
4232 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4233 AARCH64_FL_CRC.
4234
4235 2016-04-09 Tom de Vries <tom@codesourcery.com>
4236
4237 PR tree-optimization/68953
4238 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4239 first to last subscript.
4240
4241 2016-04-09 Jakub Jelinek <jakub@redhat.com>
4242
4243 PR tree-optimization/70586
4244 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4245 for any calls.
4246
4247 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4248
4249 PR lto/70289
4250 PR ipa/70348
4251 PR tree-optimization/70373
4252 PR middle-end/70533
4253 PR middle-end/70534
4254 PR middle-end/70535
4255 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4256 clauses for acc parallel reductions as necessary. Error on those
4257 that are private.
4258 * omp-low.c (scan_sharing_clauses): Don't install variables which
4259 are used in acc parallel reductions.
4260 (lower_rec_input_clauses): Remove dead code.
4261 (lower_oacc_reductions): Add support for reference reductions.
4262 (lower_reduction_clauses): Remove dead code.
4263 (lower_omp_target): Don't remap variables appearing in acc parallel
4264 reductions.
4265 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4266
4267 2016-04-08 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR middle-end/70593
4270 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4271 with multiple SSA_NAME defs, force the outputs other than first
4272 to be live before calling live_track_process_def on each output.
4273
4274 PR rtl-optimization/70574
4275 * fwprop.c (forward_propagate_and_simplify): Don't add
4276 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4277 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4278 paradoxical subregs within *loc.
4279
4280 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
4281
4282 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4283 -ftree-parallelize-loops={0,1}.
4284 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4285 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4286 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4287 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4288 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4289
4290 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
4291
4292 PR sanitizer/70541
4293 * asan.c (instrument_derefs): If we get unknown location, extract it
4294 with EXPR_LOCATION.
4295 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4296
4297 2016-04-08 Tom de Vries <tom@codesourcery.com>
4298
4299 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4300 implicit firstprivate clause.
4301
4302 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4303
4304 PR target/70566
4305 * config/arm/thumb2.md (tst + branch-> lsls + branch
4306 peephole below *orsi_not_shiftsi_si): Require that condition
4307 register is dead after the peephole.
4308 (second peephole after the above): Likewise.
4309
4310 2016-04-08 Alan Modra <amodra@gmail.com>
4311
4312 PR target/70117
4313 * builtins.c (fold_builtin_classify): For IBM extended precision,
4314 look at just the high-order double to test for NaN.
4315 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
4316 test just the high double for Inf but both doubles for subnormal
4317 limit.
4318
4319 2016-04-07 Jakub Jelinek <jakub@redhat.com>
4320
4321 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4322 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4323 node->simdclone->mask_mode != VOIDmode masks.
4324 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
4325 earlier, use it instead of node->simdclone.
4326 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4327 Set clonei->mask_mode.
4328
4329 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
4330
4331 PR c/70436
4332 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4333 Pass it through to cp_parser_already_scoped_statement.
4334 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
4335 it through to cp_parser_statement.
4336 (cp_parser_statement): Pass IF_P through to
4337 cp_parser_iteration_statement.
4338 (cp_parser_pragma): Adjust call to
4339 cp_parser_iteration_statement.
4340
4341 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
4342
4343 PR c/70436
4344 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4345 resolve a future -Wparentheses warning.
4346 * omp-low.c (scan_sharing_clauses): Likewise.
4347 * tree-parloops.c (eliminate_local_variables): Likewise.
4348
4349 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
4350
4351 PR rtl-optimization/70398
4352 * lra-constraints.c (process_address_1): Check zero scale and code
4353 for reloading with zero scale.
4354
4355 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
4356
4357 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4358 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4359
4360 2016-04-06 Jakub Jelinek <jakub@redhat.com>
4361
4362 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4363 Add support for AVX512F clones, include them by default for
4364 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
4365 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4366 up to 128.
4367
4368 PR middle-end/70550
4369 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4370 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4371 firstprivate clauses.
4372 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4373 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4374 (lower_omp_target): Set TREE_NO_WARNING for
4375 non-addressable possibly uninitialized vars which are copied into
4376 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4377
4378 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
4379
4380 * config/pa/predicates.md (integer_store_memory_operand): Accept
4381 REG+D operands with a large offset when reload_in_progress is true.
4382 (floating_point_store_memory_operand): Likewise.
4383
4384 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4385
4386 PR c++/70336
4387 * match.pd (nested int casts): Limit to GIMPLE.
4388
4389 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
4390
4391 PR ipa/66223
4392 * ipa-devirt.c (maybe_record_node): Fix comment; use
4393 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
4394
4395 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4396
4397 PR rtl-optimization/70542
4398 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
4399 if there are any uses other than insn or debug insns.
4400
4401 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
4402 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR tree-optimization/70509
4405 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
4406 Shift HOST_WIDE_INT_1U instead of 1.
4407
4408 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
4409
4410 PR tree-optimization/70509
4411 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
4412 of the vector base type for index.
4413
4414 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
4415
4416 PR target/70510
4417 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
4418
4419 2016-04-05 Richard Biener <rguenther@suse.de>
4420
4421 PR tree-optimization/70526
4422 * tree-sra.c (build_ref_for_offset): Use prev_base to
4423 extract the alias pointer type.
4424
4425 2016-04-05 Richard Biener <rguenther@suse.de>
4426
4427 * dse.c (struct store_info): Remove alias_set member.
4428 (struct read_info_type): Likewise.
4429 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
4430 spill_deleted, clear_alias_set_lookup): Remove.
4431 (get_group_info): Remove dead base == NULL_RTX case.
4432 (dse_step0): Remove initialization of removed variables.
4433 (delete_dead_store_insn): Reomve alias set dumping.
4434 (free_read_records): Remove alias_set handling.
4435 (canon_address): Remove alias_set_out parameter.
4436 (record_store): Remove spill_alias_set, it's always zero.
4437 (check_mem_read_rtx): Likewise.
4438 (dse_step2): Rename from ...
4439 (dse_step2_nospill): ... this. Adjust.
4440 (scan_stores): Rename from ...
4441 (scan_stores_nospill): ... this.
4442 (scan_reads): Rename from ...
4443 (scan_reads_nospill): ... this.
4444 (scan_stores_spill, scan_reads_spill): Remove.
4445 (dse_step3_scan): Remove for_spills argument which is always false.
4446 (dse_step3): Likewise.
4447 (dse_step5): Rename from ...
4448 (dse_step5_nospill): ... this. Remove alias_set handling.
4449 (rest_of_handle_dse): Adjust.
4450
4451 2016-04-05 Jakub Jelinek <jakub@redhat.com>
4452
4453 PR target/70525
4454 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
4455 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
4456 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
4457 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
4458
4459 2016-04-05 Richard Biener <rguenther@suse.de>
4460
4461 PR middle-end/70499
4462 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
4463 non-register type temporaries into SSA.
4464
4465 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
4466
4467 PR ipa/66223
4468 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
4469 calls when sanitizing.
4470 (possible_polymorphic_call_target_p): Fix formatting.
4471
4472 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4473 Jakub Jelinek <jakub@redhat.com>
4474
4475 PR middle-end/70457
4476 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
4477 to ensure a call statement is compatible with a built-in's
4478 prototype.
4479 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
4480 Likewise.
4481
4482 2016-04-04 Richard Biener <rguenther@suse.de>
4483
4484 PR rtl-optimization/70484
4485 * rtl.h (canon_output_dependence): Declare.
4486 * alias.c (canon_output_dependence): New function.
4487 * dse.c (record_store): Use canon_output_dependence rather
4488 than canon_true_dependence.
4489
4490 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4491
4492 PR ipa/68881
4493 * cgraph.h (symtab_node::copy_visibility_from): New function.
4494 * symtab.c (symtab_node::copy_visibility_from): New function.
4495 * ipa-visibility.c (optimize_weakref): New function.
4496 (function_and_variable_visibility): Use it.
4497
4498 2016-04-04 Martin Liska <mliska@suse.cz>
4499
4500 PR hsa/70402
4501 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
4502 value that is really in range handled by SBR instruction.
4503 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
4504 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
4505 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
4506
4507 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
4508
4509 PR target/70416
4510 PR target/67391
4511 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
4512 set, but not for SP_REG operands.
4513
4514 2016-04-02 Martin Sebor <msebor@redhat.com>
4515
4516 PR c++/67376
4517 * fold-const.c (maybe_nonzero_address): New function.
4518 (fold_comparison): Call it. Fold equality and relational
4519 expressions involving null pointers.
4520 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
4521
4522 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
4523
4524 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
4525 the "Y" constraint (scalar FP 0.0 immediate).
4526
4527 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
4528 Add the "const_double" to the list of operand constraints.
4529
4530 2016-04-01 Jakub Jelinek <jakub@redhat.com>
4531
4532 PR rtl-optimization/70467
4533 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
4534 If low word of the last operand is 0, just emit addition/subtraction
4535 for the high word.
4536
4537 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4538
4539 PR target/70404
4540 * config/s390/s390.c (s390_expand_insv): Check for everything
4541 constant instead of just VOIDmode stuff.
4542
4543 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4544
4545 PR target/70496
4546 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
4547
4548 2016-04-01 Nathan Sidwell <nathan@acm.org>
4549
4550 * tree.def (TRY_CATCH_EXPR): Correct documentation.
4551
4552 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
4553
4554 PR rtl-optimization/70461
4555 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
4556 is necessary.
4557
4558 2016-03-31 Martin Liska <mliska@suse.cz>
4559
4560 PR hsa/70399
4561 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
4562 a tree value or an immediate integer value to a buffer
4563 that is eventually copied to a BRIG section.
4564 (emit_immediate_operand): Call the function here.
4565 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
4566 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
4567 of class' fields that are removed.
4568 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
4569 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
4570 m_brig_repr_size fields.
4571
4572 2016-03-31 Martin Liska <mliska@suse.cz>
4573
4574 PR hsa/70391
4575 * hsa-gen.c (hsa_function_representation::update_dominance): New
4576 function.
4577 (convert_addr_to_flat_segment): Likewise.
4578 (gen_hsa_memory_set): New alignment argument.
4579 (gen_hsa_ctor_assignment): Likewise.
4580 (gen_hsa_insns_for_single_assignment): Provide alignment
4581 to gen_hsa_ctor_assignment.
4582 (gen_hsa_insns_for_direct_call): Add new argument.
4583 (expand_lhs_of_string_op): New function.
4584 (expand_string_operation_builtin): Likewise.
4585 (expand_memory_copy): New function.
4586 (expand_memory_set): New function.
4587 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
4588 (convert_switch_statements): Change signature.
4589 (generate_hsa): Use a return value of the function.
4590 (pass_gen_hsail::execute): Do not call
4591 convert_switch_statements here.
4592 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
4593 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
4594 (hsa_function_representation::update_dominance): New function.
4595
4596 2016-03-31 Martin Liska <mliska@suse.cz>
4597
4598 PR hsa/70391
4599 * hsa-brig.c (emit_directive_variable): Emit alignment
4600 according to hsa_symbol::m_align.
4601 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
4602 (dump_hsa_symbol): Dump alignment of HSA symbols.
4603 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
4604 (gen_hsa_addr_with_align): New function.
4605 (hsa_bitmemref_alignment): Use newly added function.
4606 (gen_hsa_insns_for_load): Likewise.
4607 (gen_hsa_insns_for_store): Likewise.
4608 (gen_hsa_memory_copy): New argument added.
4609 (gen_hsa_insns_for_single_assignment): Respect
4610 alignment for assignments processed via gen_hsa_memory_copy.
4611 (gen_hsa_insns_for_direct_call): Likewise.
4612 (gen_hsa_insns_for_return): Likewise.
4613 (gen_function_def_parameters): Set default alignment.
4614 * hsa.c (hsa_object_alignment): New function.
4615 (hsa_byte_alignment): Pasted function.
4616 * hsa.h (hsa_symbol::m_align): New field.
4617
4618 2016-03-31 Bin Cheng <bin.cheng@arm.com>
4619
4620 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
4621 scratch field for goto case.
4622
4623 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
4624
4625 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
4626
4627 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
4628
4629 PR target/70442
4630 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
4631 (scalar_chain::convert_insn): Call convert_op for reg
4632 moves to handle undefined registers.
4633
4634 2016-03-31 Nathan Sidwell <nathan@acm.org>
4635
4636 PR c++/70393
4637 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
4638 Assert we don't want to move backwards.
4639
4640 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
4641
4642 PR target/70453
4643 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
4644
4645 2016-03-31 Jakub Jelinek <jakub@redhat.com>
4646
4647 PR rtl-optimization/70460
4648 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
4649 with operand from REG_LABEL_OPERAND, instead substitute
4650 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
4651 Don't do anything for REG_NON_LOCAL_GOTO jumps.
4652
4653 2016-03-31 Martin Liska <mliska@suse.cz>
4654
4655 * passes.c (execute_one_pass): Do not call
4656 todo_after for a discarded function.
4657
4658 2016-03-31 Bin Cheng <bin.cheng@arm.com>
4659
4660 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
4661 (no_cost, infinite_cost): Initialize the new field.
4662 (get_computation_cost_at): Record setup cost.
4663 (determine_use_iv_cost_address): Skip cost computation for sub
4664 uses if we can estimate it without losing accuracy.
4665
4666 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
4667
4668 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4669 estimates here.
4670 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4671 max_loop_iterations_int.
4672 (tree_unswitch_outer_loop): Likewise.
4673 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4674 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4675
4676 2016-03-30 Richard Biener <rguenther@suse.de>
4677
4678 PR middle-end/70450
4679 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
4680
4681 2016-03-30 Jakub Jelinek <jakub@redhat.com>
4682
4683 PR target/70421
4684 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
4685 in gen_blendm expander.
4686
4687 2016-03-30 Nick Clifton <nickc@redhat.com>
4688
4689 PR target/62254
4690 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
4691 case where we are already provided with an SImode SUBREG.
4692
4693 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
4694
4695 PR target/70439
4696 * config/i386/i386.c (ix86_expand_epilogue): Properly check
4697 conflict between DRAP register and __builtin_eh_return.
4698
4699 2016-03-30 Michael Matz <matz@suse.de>
4700 Richard Biener <rguenther@suse.de>
4701
4702 PR ipa/12392
4703 * ipa-polymorphic-call.c (struct type_change_info): Change
4704 speculative to an unsigned allowing to limit the work we do.
4705 (csftc_abort_walking_p): New inline function..
4706 (check_stmt_for_type_change): Limit the number of may-defs
4707 skipped for speculative devirtualization to
4708 max-speculative-devirt-maydefs.
4709 * params.def (max-speculative-devirt-maydefs): New param.
4710 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
4711
4712 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
4713
4714 PR target/63890
4715 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
4716 and TARGET_MACHO.
4717
4718 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
4719
4720 PR tree-optimization/59124
4721 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
4722 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
4723
4724 2016-03-29 Jeff Law <law@redhat.com>
4725
4726 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
4727
4728 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4729
4730 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
4731 to HOST_WIDE_INT.
4732
4733 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4734
4735 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
4736 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
4737 gcrt0.o if linking dynamically.
4738
4739 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4740
4741 PR ipa/70283
4742 * ipa-devirt.c (methods_equal_p): New function.
4743 (compare_virtual_tables): Use it.
4744 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
4745 * cgraphclones.c (clone_function_name_1): Use
4746 symbol_table::symbol_suffix_separator.
4747 * coverage.c (build_var): Likewise.
4748 * symtab.c (symbol_table::symbol_suffix_separator): New.
4749
4750 2016-03-29 Jakub Jelinek <jakub@redhat.com>
4751
4752 PR rtl-optimization/70429
4753 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
4754 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
4755 mode != result_mode.
4756
4757 PR c++/70353
4758 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
4759
4760 PR tree-optimization/70405
4761 * ssa-iterators.h (num_imm_uses): Add missing braces.
4762
4763 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
4764
4765 PR rtl-optimization/68695
4766 * ira-color.c (allocno_copy_cost_saving): New.
4767 (improve_allocation): Use it.
4768
4769 2016-03-29 Richard Henderson <rth@redhat.com>
4770
4771 PR middle-end/70355
4772 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
4773
4774 2016-03-29 Richard Biener <rguenther@suse.de>
4775
4776 PR middle-end/70424
4777 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
4778 use alignment returned by get_pointer_alignment_1 if it is
4779 bigger than BITS_PER_UNIT.
4780 * builtins.c (get_pointer_alignment_1): Do not return true
4781 for alignment extracted from SSA info.
4782
4783 2016-03-28 James Bowman <james.bowman@ftdichip.com>
4784
4785 * config/ft32/ft32.opt (mnodiv): New.
4786 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
4787 * doc/invoke.texi (FT32 Options -mnodiv): New.
4788
4789 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
4790
4791 PR target/70406
4792 * config/i386/i386.md (define_split, andn): Fix modes.
4793
4794 2016-03-26 Richard Biener <rguenther@suse.de>
4795 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4796
4797 PR ipa/70366
4798 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
4799 instead of
4800 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
4801 as 2nd argument to cl_optimization_restore().
4802
4803 2016-03-25 Richard Henderson <rth@redhat.com>
4804
4805 PR target/70120
4806 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
4807 * config/aarch64/aarch64-protos.h: Declare it.
4808 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
4809
4810 2016-03-25 Alan Modra <amodra@gmail.com>
4811
4812 PR target/70052
4813 * config/rs6000/constraints.md (j): Simplify.
4814 * config/rs6000/predicates.md (easy_fp_constant): Exclude
4815 decimal float 0.D.
4816 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
4817 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
4818 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
4819 in all constraint alternatives.
4820 (movtd_64bit_nodm): Delete "j" constraint alternative.
4821
4822 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
4823
4824 * tree-ssa-propagate.c: Enhance docs for
4825 SSA_PROP_NOT_INTERESTING.
4826
4827 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
4828
4829 * doc/extend.texi: Fix typo in documentation to pure attribute.
4830
4831 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
4832
4833 PR target/70319
4834 * config/pa/pa.md (bswapdi2): Use a scratch register.
4835
4836 2016-03-24 Richard Henderson <rth@redhat.com>
4837
4838 PR middle-end/69845
4839 * fold-const.c (extract_muldiv_1): Correct test for multiplication
4840 overflow.
4841
4842 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
4843
4844 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
4845 using ix86_expand_binary_operator instead of gen_andsi3.
4846
4847 2016-03-24 Richard Biener <rguenther@suse.de>
4848
4849 PR tree-optimization/70396
4850 * tree-vect-stmts.c (vectorizable_comparison): Use
4851 get_vectype_for_scalar_type.
4852
4853 2016-03-24 Richard Biener <rguenther@suse.de>
4854
4855 PR middle-end/70370
4856 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
4857 with register bases.
4858
4859 2016-03-24 Richard Biener <rguenther@suse.de>
4860
4861 PR tree-optimization/70372
4862 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
4863 build_all_ones_cst to also handle vector types correctly.
4864
4865 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4866
4867 PR target/70381
4868 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
4869 -mfloat128 here.
4870
4871 2016-03-23 Marek Polacek <polacek@redhat.com>
4872
4873 PR c++/69884
4874 * doc/invoke.texi: Document -Wignored-attributes.
4875
4876 2016-03-23 Bin Cheng <bin.cheng@arm.com>
4877
4878 PR tree-optimization/69042
4879 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
4880 parameter from 30 to 40.
4881
4882 2016-03-23 Bin Cheng <bin.cheng@arm.com>
4883
4884 PR tree-optimization/69042
4885 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
4886 for use with constant offset stripped in base.
4887
4888 2016-03-23 Richard Biener <rguenther@suse.de>
4889
4890 PR middle-end/70251
4891 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
4892 mode compatibility check.
4893 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4894
4895 2016-03-23 Jeff Law <law@redhat.com>
4896
4897 PR tree-optimization/64058
4898 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
4899 CONFLICT_COUNT.
4900 (struct ssa_conflicts): Move up earlier in the file.
4901 (conflicts_, var_map_): New static variables.
4902 (initialize_conflict_count): New function to initialize the
4903 CONFLICT_COUNT field for each conflict pair.
4904 (compare_pairs): Lazily initialize the conflict count and use it
4905 as the first tie-breaker.
4906 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
4907 and wipe conflicts_ and map_ around the call to qsort. Remove
4908 special case for 2 coalesce pairs.
4909 * bitmap.c (bitmap_count_unique_bits): New function.
4910 (bitmap_count_bits_in_word): New function, extracted from
4911 bitmap_count_bits.
4912 (bitmap_count_bits): Use bitmap_count_bits_in_word.
4913 * bitmap.h (bitmap_count_unique_bits): Declare it.
4914
4915 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4916
4917 PR target/69917
4918 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
4919 transparent alias chain for decl assembler name.
4920 * config/sol2.c (solaris_assemble_visibility): Likewise.
4921
4922 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4923
4924 * config/arm/arm1020e.md (1020call_op): Reduce reservation
4925 duration.
4926 (v10_fdivs): Likewise.
4927 (v10_fdivd): Likewise.
4928
4929 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4930
4931 PR driver/70132
4932 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
4933 to not call fclose twice on file.
4934
4935 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4936
4937 PR tree-optimization/70354
4938 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4939 oprnd0 is wider than oprnd1 and there is a cast from the wider
4940 type to oprnd1, mask it with the mask of the narrower type.
4941
4942 PR target/70321
4943 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
4944 Optimize TARGET_STV splitters, if high or low word of last argument
4945 is 0 or -1.
4946
4947 2016-03-22 Jeff Law <law@redhat.com>
4948
4949 PR target/70232
4950 tree-ssa-threadbackward.c
4951 (fsm_find_control_statement_thread_paths): Correctly distinguish
4952 between old style jump threads vs FSM jump threads.
4953
4954 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
4955
4956 PR target/70302
4957 * config/i386/i386.c (scalar_chain::convert_op): Support
4958 uninitialized register usage case.
4959
4960 2016-03-22 Richard Biener <rguenther@suse.de>
4961
4962 PR middle-end/70251
4963 * genmatch.c (gen_transform): Adjust last parameter to a three-state
4964 int...
4965 (capture::gen_transform): ... to change behavior when substituting
4966 a condition into cond or not-cond expr context.
4967 (dt_simplify::gen_1): Adjust.
4968 * gimple-match-head.c: Include gimplify.h for unshare_expr.
4969 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
4970 last change and instead change to
4971 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
4972 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
4973
4974 2016-03-22 Anthony Green <green@moxielogic.com>
4975
4976 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
4977 issue for moxiebox targets.
4978 (CC1PLUS_SPEC): Ditto.
4979
4980 2016-03-22 Richard Biener <rguenther@suse.de>
4981
4982 PR middle-end/70333
4983 * fold-const.c (extract_muldiv_1): Properly perform multiplication
4984 in the wide type.
4985
4986 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
4987
4988 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
4989
4990 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
4991
4992 PR target/70325
4993 * config/i386/i386.c (def_builtin): Handle
4994 OPTION_MASK_ISA_AVX512VL to be and-ed with other
4995 bits.
4996 (const struct builtin_description bdesc_special_args[]):
4997 Remove duplicate ISA bits.
4998
4999 2016-03-22 Jakub Jelinek <jakub@redhat.com>
5000
5001 PR target/70329
5002 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
5003 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
5004 in a way that works also for AVX512BW.
5005
5006 PR target/70300
5007 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
5008 instead of source if operands[1] is xmm16 and above and
5009 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
5010 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
5011
5012 PR c++/70295
5013 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
5014 on assign if (*from_p) is a comparison, set it to
5015 TREE_NO_WARNING (*from_p).
5016
5017 2016-03-21 Jakub Jelinek <jakub@redhat.com>
5018
5019 PR middle-end/70326
5020 * lra.c (restore_scratches): Ignore deleted insns.
5021
5022 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
5023 Jakub Jelinek <jakub@redhat.com>
5024
5025 PR tree-optimization/70317
5026 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
5027 to HONOR_NANS.
5028
5029 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
5030
5031 PR target/70327
5032 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5033 of ix86_expand_move.
5034 (movoi): Ditto.
5035 (movti): Use general_operand for operand 1 predicate.
5036
5037 2016-03-21 Martin Liska <mliska@suse.cz>
5038
5039 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5040 insns.
5041 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5042
5043 2016-03-21 Martin Liska <mliska@suse.cz>
5044
5045 PR ipa/70306
5046 * ipa-icf.c (sem_function::parse): Skip static
5047 constructors and destructors.
5048
5049 2016-03-21 Jakub Jelinek <jakub@redhat.com>
5050
5051 PR target/70296
5052 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5053 function-like macro, peek following token(s) if it is followed
5054 by CPP_OPEN_PAREN token with optional padding in between, and
5055 if not, don't treat it like a macro.
5056
5057 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
5058 Alexander Monakov <amonakov@ispras.ru>
5059
5060 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5061 for the stabs debug format.
5062
5063 2016-03-21 Richard Biener <rguenther@suse.de>
5064
5065 PR tree-optimization/70310
5066 * tree-vect-generic.c (expand_vector_condition): Fold the built
5067 condition.
5068
5069 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
5070
5071 PR target/70293
5072 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5073 Block third alternative for AVX-512VL target,
5074
5075 2016-03-21 Martin Liska <mliska@suse.cz>
5076
5077 PR hsa/70234
5078 * hsa-brig.c (emit_function_directives): Mark unemitted
5079 global variables for emission.
5080 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5081 (get_symbol_for_decl): Likewise.
5082 * hsa.h (struct hsa_symbol): New flag.
5083
5084 2016-03-21 Richard Biener <rguenther@suse.de>
5085
5086 PR tree-optimization/70288
5087 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5088 we do not estimate unsimplified all-constant conditionals or
5089 switches as optimized away.
5090
5091 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
5092
5093 PR rtl-optimization/69102
5094 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5095 when we have a readonly dependency context.
5096
5097 2016-03-18 Jeff Law <law@redhat.com>
5098
5099 PR rtl-optimization/70263
5100 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5101 (update_equiv_regs): When trying to move a store to after the insn
5102 that sets the source of the store, make sure the store occurs after
5103 the insn that sets the source of the store. When successful note
5104 the REG_EQUIV note created in the dump file.
5105
5106 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
5107 Bernd Schmidt <bschmidt@redhat.com>
5108
5109 * doc/extend.texi: Document more potential problems with basic asms.
5110
5111 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
5112
5113 PR rtl-optimization/70278
5114 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5115 VOIDmode.
5116
5117 2016-03-18 Jason Merrill <jason@redhat.com>
5118
5119 * calls.c (load_register_parameters): Fix zero size sibcall logic.
5120
5121 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
5122
5123 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5124 values to 128b regs.
5125
5126 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5127
5128 PR tree-optimization/70252
5129 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5130 boolean vector has a proper number of elements.
5131 (supportable_narrowing_operation): Likewise.
5132
5133 2016-03-18 Tom de Vries <tom@codesourcery.com>
5134
5135 PR ipa/70269
5136 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5137
5138 2016-03-18 Jakub Jelinek <jakub@redhat.com>
5139
5140 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5141 instead of replace_rtx for DEBUG_INSNs.
5142
5143 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5144
5145 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5146 load type reservations.
5147
5148 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
5149
5150 PR target/70188
5151 * config/pa/constraints.md: Revert 2015-02-13 change. Use
5152 define_constraint for "Q" and "T" constraints.
5153
5154 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
5155
5156 Tweak the pipeline model for Exynos M1
5157
5158 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
5159 model.
5160
5161 2016-03-17 David Malcolm <dmalcolm@redhat.com>
5162
5163 PR c/70264
5164 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5165 where one or both locations aren't within a line_map.
5166
5167 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
5168
5169 PR driver/70192
5170 * opts.c (finish_options): Don't set flag_pie to the default if
5171 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
5172 if it is -1.
5173
5174 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
5175
5176 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5177 true as ALL_REGS argument to replace_rtx.
5178
5179 2016-03-17 Richard Biener <rguenther@suse.de>
5180
5181 PR debug/70271
5182 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5183 last.
5184
5185 2016-03-17 Jakub Jelinek <jakub@redhat.com>
5186
5187 PR target/70245
5188 * rtl.h (replace_rtx): Add ALL_REGS argument.
5189 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
5190 equality and assert mode is the same, instead of just rtx pointer
5191 equality.
5192 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5193 true as ALL_REGS argument to replace_rtx.
5194
5195 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5196
5197 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5198 for boolean vector with vector mode only.
5199 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5200
5201 2016-03-17 Nick Clifton <nickc@redhat.com>
5202
5203 PR target/70162
5204 * config/rx/rx.c (rx_print_integer): Print negative constants in
5205 decimal.
5206
5207 2016-03-17 Jakub Jelinek <jakub@redhat.com>
5208
5209 PR target/70261
5210 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5211
5212 2016-03-16 Richard Henderson <rth@redhat.com>
5213 Richard Biener <rguenth@suse.de>
5214
5215 PR middle-end/70240
5216 PR middle-end/68215
5217 PR tree-opt/68714
5218 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5219 first operand as is_gimple_condexpr.
5220
5221 PR middle-end/70240
5222 PR middle-end/68215
5223 Revert r231575
5224 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
5225 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5226 Do not gimplify the result.
5227 (do_unop): Adjust call to tree_vec_extract.
5228 (do_binop): Likewise.
5229 (do_compare): Likewise.
5230 (do_plus_minus): Likewise.
5231 (do_negate): Likewise.
5232 (expand_vector_condition): Likewise.
5233 (do_cond): Likewise.
5234
5235 2016-03-16 Richard Henderson <rth@redhat.com>
5236
5237 PR target/70048
5238 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5239 (aarch64_classify_address): Use it.
5240 (aarch64_legitimize_address): Force all subexpressions of PLUS
5241 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
5242
5243 2016-03-16 Jakub Jelinek <jakub@redhat.com>
5244 Richard Biener <rguenth@suse.de>
5245
5246 PR target/70245
5247 * rtlanal.c (replace_rtx): For REG, if from is a REG,
5248 return to even if only REGNO is equal, and assert
5249 mode is the same.
5250
5251 2016-03-11 Jeff Law <law@redhat.com>
5252
5253 PR rtl-optimization/70224
5254 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5255
5256 2016-03-16 Richard Henderson <rth@redhat.com>
5257
5258 PR middle-end/70199
5259 * function.h (struct function): Add has_forced_label_in_static.
5260 * gimplify.c (force_labels_r): Set it.
5261 * lto-streamer-in.c (input_struct_function_base): Read it.
5262 * lto-streamer-out.c (output_struct_function_base): Write it.
5263 * tree-inline.c (has_label_address_in_static_1): Remove.
5264 (copy_forbidden): Remove fndecl parameter; test
5265 has_forced_label_in_static.
5266 (inline_forbidden_p): Update call to copy_forbidden.
5267 (tree_versionable_function_p): Likewise.
5268 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5269 (chkp_versioning): Likewise.
5270 * tree-inline.h (copy_forbidden): Update decl.
5271
5272 2016-03-16 Marek Polacek <polacek@redhat.com>
5273
5274 PR c/70093
5275 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5276 function being thunked if the result type doesn't have fixed size.
5277 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5278 doesn't have fixed size.
5279
5280 2016-03-16 Bin Cheng <bin.cheng@arm.com>
5281
5282 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5283 reporting malformed loop nest.
5284
5285 2016-03-16 Tom de Vries <tom@codesourcery.com>
5286
5287 PR lto/70187
5288 * ipa-devirt.c (possible_polymorphic_call_targets): Move
5289 nodes.length () == 1 test to before first nodes[0] access.
5290
5291 2016-03-16 Tom de Vries <tom@codesourcery.com>
5292
5293 PR tree-optimization/68715
5294 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5295 single_pred_p test.
5296
5297 2016-03-16 Tom de Vries <tom@codesourcery.com>
5298
5299 PR tree-optimization/68809
5300 * graphite-scop-detection.c (same_close_phi_node): Test if result types
5301 are the same.
5302
5303 2016-03-16 Carlos O'Donell <carlos@redhat.com>
5304 Sandra Loosemore <sandra@codesourcery.com>
5305
5306 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5307 on leaf attribute. Mention ELF interposition problems.
5308
5309 2016-03-16 Alan Modra <amodra@gmail.com>
5310
5311 PR rtl-optimization/69195
5312 PR rtl-optimization/47992
5313 * ira.c (indirect_jump_optimize): Ignore artificial defs.
5314 Add comments.
5315
5316 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
5317
5318 PR bootstrap/69513
5319 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5320
5321 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5322
5323 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5324
5325 2016-03-15 Jakub Jelinek <jakub@redhat.com>
5326
5327 PR rtl-optimization/70222
5328 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5329 optimization if mode is different from result_mode, queue up masking
5330 of the result in outer_op. Formatting fix.
5331
5332 PR middle-end/70239
5333 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5334 of safe_grow.
5335
5336 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5337
5338 PR rtl-optimization/69032
5339 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5340 looping backwards over basic block insns.
5341
5342 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5343
5344 PR target/66660
5345 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5346 to non-speculative when propagating trap bits.
5347
5348 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5349
5350 PR rtl-optimization/63384
5351 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5352 DEBUG_INSN_P insns.
5353
5354 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
5355
5356 PR target/64411
5357 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5358 factored out from ...
5359 (sched_analyze_insn): ... here.
5360 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5361 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5362 get_implicit_reg_pending_clobbers in it.
5363 (setup_id_reg_sets): Use setup_id_implicit_regs.
5364 (deps_init_id): Ditto.
5365
5366 2016-03-15 Tom de Vries <tom@codesourcery.com>
5367
5368 PR ipa/70161
5369 * cgraph.c (cgraph_node::get_body): Save, reset and restore
5370 dump_file_name.
5371 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5372 execute_function_dump.
5373 (execute_one_pass): Don't dump function if it will be dumped after ipa
5374 transform.
5375
5376 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5377
5378 * genrecog.c (match_pattern_2): If pred is NULL don't call
5379 safe_predicate_mode on it.
5380
5381 2016-03-14 Jakub Jelinek <jakub@redhat.com>
5382
5383 PR middle-end/70219
5384 * lra-constraints.c (delete_move_and_clobber): Change assertion
5385 to also allow dregno == 0.
5386
5387 2016-03-14 Richard Henderson <rth@redhat.com>
5388
5389 PR tree-opt/68714
5390 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
5391 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
5392 (reassociate_bb): Use optimize_vec_cond_expr; avoid
5393 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
5394 on vectors.
5395
5396 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
5397
5398 PR target/70083
5399 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
5400 regs.
5401 (lra_create_live_ranges_1): initialize hard register biggest_mode to
5402 VOIDmode.
5403 * lra-constraints.c (split_reg): For hard regs, try to find the
5404 biggest single-register mode used in the function.
5405
5406 2016-03-14 Richard Biener <rguenther@suse.de>
5407
5408 PR tree-optimization/56365
5409 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
5410 constants to compare against.
5411
5412 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
5413
5414 PR target/70098
5415 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
5416 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
5417 (define_split for the GPR case): Use int_reg_operand instead of
5418 gpc_reg_operand for the output.
5419
5420 2016-03-14 Tom de Vries <tom@codesourcery.com>
5421
5422 PR tree-optimization/70045
5423 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
5424 create_empty_if_region_on_edge argument.
5425
5426 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
5429 (STACK_CHECK_PROTECT): Likewise.
5430 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5431 (STACK_CHECK_PROTECT): Likewise.
5432 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5433 (STACK_CHECK_PROTECT): Likewise.
5434 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
5435 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5436 (STACK_CHECK_PROTECT): Likewise.
5437
5438 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
5439
5440 PR rtl-optimization/69307
5441 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
5442 registers in modes that span more than one register.
5443
5444 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
5445
5446 PR target/69614
5447 * lra-constraints.c (delete_move_and_clobber): New.
5448 (remove_inheritance_pseudos): Use it.
5449
5450 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
5451
5452 PR ada/70017
5453 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
5454 the libcall is LCT_THROW.
5455 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
5456 for the checking routine.
5457
5458 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5459
5460 PR target/70131
5461 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
5462 optimization if we have direct move.
5463 (roundu32<mode>2_fprs): Likewise.
5464
5465 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
5466
5467 PR target/70123
5468 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
5469 be rematerialized.
5470 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
5471 Arguments swapped. All callers changed. Take reg_renumber into
5472 account, and Calculate and compare register ranges for hard regs.
5473
5474 2016-03-11 Jeff Law <law@redhat.com>
5475
5476 PR tree-optimization/70190
5477 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5478 Handle cases where we can not extract the taken edge, even though we
5479 found a constant value.
5480
5481 PR tree-optimization/64058
5482 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
5483 (num_coalesce_pairs): Move up earlier in file.
5484 (find_coalesce_pair): Initialize the INDEX field for each pair
5485 discovered.
5486 (compare_pairs): No longer sort on the elements in each pair.
5487 Instead break ties with the index of the coalesce pair.
5488
5489 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5490
5491 PR target/70002
5492 * config/aarch64/aarch64-protos.h
5493 (aarch64_save_restore_target_globals): New prototype.
5494 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
5495 Call the above when popping pragma.
5496 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
5497 New function.
5498 (aarch64_set_current_function): Rewrite using the above.
5499
5500 2016-03-11 Jakub Jelinek <jakub@redhat.com>
5501
5502 PR tree-optimization/70177
5503 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
5504 (extract_ops_from_tree): ... this. In the 2 argument
5505 overload remove _1 suffix.
5506 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
5507 (extract_ops_from_tree): ... this.
5508 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
5509 Adjust callers.
5510 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5511 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
5512 extract_ops_from_tree instead of 2 operand one.
5513
5514 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
5515
5516 PR tree-optimization/70013
5517 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
5518 for constant-pool entries.
5519
5520 2016-03-11 Jakub Jelinek <jakub@redhat.com>
5521
5522 PR rtl-optimization/70174
5523 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
5524 followed by gen_lowpart on force_reg instead of just gen_lowpart.
5525
5526 PR tree-optimization/70169
5527 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
5528 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
5529 for unknown codes.
5530
5531 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
5532 Jakub Jelinek <jakub@redhat.com>
5533
5534 PR target/70160
5535 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
5536 of uninitialized values.
5537
5538 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5539
5540 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
5541 define_expand.
5542 ("*trunctddd2"): New pattern definition.
5543 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
5544 TD->DD truncation.
5545
5546 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5547
5548 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
5549 definitions for BFP and DFP rounding modes.
5550 ("fixuns_truncdddi2", "fixuns_trunctddi2")
5551 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
5552 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
5553 ("fix_trunctf<mode>2"): Use the new constants instead of magic
5554 numbers.
5555
5556 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5557
5558 * config/s390/constraints.md: Adjust comment.
5559 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
5560 s390_decompose_addrstyle_without_index.
5561 * config/s390/predicates.md (shift_count_or_setmem_operand):
5562 Rename to setmem_operand.
5563 * config/s390/s390-protos.h
5564 (s390_decompose_shift_count): Rename to
5565 s390_decompose_addrstyle_without_index.
5566 * config/s390/s390.c (s390_decompose_shift_count)
5567 (s390_mem_constraint, print_shift_count_operand)
5568 (print_operand_address, print_operand): Rename
5569 s390_decompose_shift_count to
5570 s390_decompose_addrstyle_without_index and rename
5571 print_shift_count_operand to print_addrstyle_operand troughout the
5572 file.
5573 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
5574 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
5575 Rename shift_count_or_setmem_operand to setmem_operand.
5576 * config/s390/vx-builtins.md ("vec_insert<mode>")
5577 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
5578 nonmemory_operand.
5579
5580 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5581
5582 PR target/70168
5583 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5584 Handle overlapping retval and newval.
5585
5586 2016-03-10 Nick Clifton <nickc@redhat.com>
5587
5588 PR target/7044
5589 * config/aarch64/aarch64.c
5590 (aarch64_override_options_after_change_1): When forcing
5591 flag_omit_frame_pointer to be true, use a special value that can
5592 be detected if this function is called again, thus preventing
5593 flag_omit_leaf_frame_pointer from being forced to be false.
5594
5595 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5596
5597 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5598 Set x_flag_omit_leaf_frame_pointer when handling
5599 -momit-leaf-frame-pointer.
5600
5601 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5602
5603 PR lto/69589
5604 * cgraph.c (cgraph_node::dump): Dump split_part and
5605 indirect_call_target.
5606 * cgraph.h (cgraph_node): Add indirect_call_target flag.
5607 * ipa.c (has_addr_references_p): Cleanup.
5608 (is_indirect_call_target_p): New.
5609 (walk_polymorphic_call_targets): Do not mark virtuals that may be
5610 called indirectly as local.
5611 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
5612
5613 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5614
5615 PR ipa/69630
5616 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5617 on cxa_pure_virtual.
5618
5619 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5620
5621 PR lto/69589
5622 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
5623
5624 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
5625
5626 PR lto/69589
5627 * tree.c (need_assembler_name_p): Only record main variant type names.
5628
5629 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
5630
5631 PR target/70113.
5632 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
5633 Always define to 0 or 1.
5634 (TARGET_FIX_ERR_A53_843419): New macro.
5635 * config/aarch64/aarch64-elf-raw.h
5636 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
5637 * config/aarch64/aarch64-linux.h: Likewise.
5638 * config/aarch64/aarch64.c
5639 (aarch64_override_options_after_change_1): Do not default
5640 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
5641 843419 is on.
5642 (aarch64_attributes): Handle fix-cortex-a53-843419.
5643 (aarch64_can_inline_p): Likewise.
5644 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
5645
5646 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
5647 Jakub Jelinek <jakub@redhat.com>
5648
5649 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
5650 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
5651 DECL_COMMONS if flag_unconstrained_commons is set.
5652 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5653 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
5654 (funconstrained-commons): Document.
5655
5656 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
5657
5658 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
5659 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
5660
5661 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5662
5663 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
5664 has a proper number of elements.
5665
5666 2016-03-10 Alan Modra <amodra@gmail.com>
5667
5668 PR rtl-optimization/69195
5669 PR rtl-optimization/47992
5670 * ira.c (recorded_label_ref): Delete.
5671 (update_equiv_regs): Return void.
5672 (indirect_jump_optimize): New function.
5673 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
5674 before regstat_compute_ri. Don't rebuild_jump_labels here.
5675 Delete update_regstat.
5676
5677 2016-03-10 Richard Biener <rguenther@suse.de>
5678
5679 PR tree-optimization/70128
5680 * tree-ssa-structalias.c (set_uids_in_ptset): Set
5681 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
5682
5683 2016-03-09 Jakub Jelinek <jakub@redhat.com>
5684
5685 PR tree-optimization/70152
5686 * tree-sra.c (replace_removed_params_ssa_names): Copy over
5687 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
5688
5689 PR target/70086
5690 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
5691 instead of gen_sse2_loadlpd.
5692 * config/i386/sse.md (*vec_concatv2df): Rename to...
5693 (vec_concatv2df): ... this.
5694
5695 PR tree-optimization/70127
5696 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
5697
5698 2016-03-09 David Malcolm <dmalcolm@redhat.com>
5699
5700 PR c/68473
5701 PR c++/70105
5702 * diagnostic-show-locus.c (compatible_locations_p): New function.
5703 (layout::layout): Sanitize ranges using compatible_locations_p.
5704
5705 2016-03-09 David Malcolm <dmalcolm@redhat.com>
5706
5707 PR c/68473
5708 PR c++/70105
5709 * diagnostic-show-locus.c (layout_range::layout_range): Replace
5710 location_range param with three const expanded_locations * and a
5711 bool.
5712 (layout::layout): Replace call to
5713 rich_location::lazily_expand_location with get_expanded_location.
5714 Extract the range and perform location expansion here, passing
5715 the results to the layout_range ctor.
5716 * diagnostic.c (source_range::debug): Delete.
5717 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
5718 of rich_location::get_expanded_location.
5719 * gcc-rich-location.c (get_range_for_expr): Delete.
5720 (gcc_rich_location::add_expr): Reimplement to avoid the
5721 rich_location::add_range overload that took a location_range,
5722 passing a location_t instead.
5723
5724 2016-03-09 Richard Biener <rguenther@suse.de>
5725 Jakub Jelinek <jakub@redhat.com>
5726
5727 PR tree-optimization/70138
5728 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5729 Also skip vect_double_reduction_def.
5730
5731 2016-03-09 Jakub Jelinek <jakub@redhat.com>
5732
5733 PR target/70049
5734 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
5735 if the operand is "m".
5736
5737 2016-03-09 Nathan Sidwell <nathan@acm.org>
5738
5739 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
5740
5741 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5742
5743 * config/i386/i386.c (processor_target_table): Fix cost table
5744 intialization order for znver1.
5745
5746 2016-03-08 Jakub Jelinek <jakub@redhat.com>
5747
5748 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
5749 - becuase -> because.
5750 * ipa-reference.c (ignore_module_statics): Likewise.
5751 * cgraph.c (cgraph_node::get_body): Likewise.
5752 * ipa-inline.c (early_inliner): Likewise.
5753 * ipa-devirt.c (types_same_for_odr): Likewise.
5754 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5755 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
5756
5757 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5758
5759 * tree-ssa-math-opts.c: Fix typo in comment.
5760
5761 2016-03-08 Jakub Jelinek <jakub@redhat.com>
5762
5763 PR target/70110
5764 * config/i386/i386.c (scalar_chain::make_vector_copies,
5765 scalar_chain::convert_reg): Call end_sequence in between
5766 get_insns and emit_conversion_insns rather than after both
5767 calls.
5768
5769 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
5770
5771 PR target/70064
5772 * config/i386/i386.h (machine_function): Add
5773 pc_thunk_call_expanded flag.
5774 (ix86_pc_thunk_call_expanded): New define.
5775 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
5776 (*set_got): Rename insn pattern from set_got.
5777 (*set_got_labelled): Rename inst pattern from set_got_labelled.
5778 * config/i386/i386.c (ix86_compute_frame_layout): Use
5779 ix86_pc_thunk_call_expanded to prevent red-zone.
5780
5781 2016-03-07 Martin Jambor <mjambor@suse.cz>
5782
5783 * hsa.h (hsa_get_ctor_statements): Declare.
5784 (hsa_get_dtor_statements): Likewise.
5785 (hsa_get_kernel_dispatch_type): Likewise.
5786 * hsa.c (hsa_get_ctor_statements): New function.
5787 (hsa_get_dtor_statements): Likewise.
5788 (hsa_get_kernel_dispatch_type): Likewise.
5789 * hsa-brig.c (hsa_cdtor_statements): Removed.
5790 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
5791 hsa_get_dtor_statements.
5792 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
5793 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
5794
5795 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
5796
5797 * config/arm/arm-cores.def (cortex-r8): New.
5798 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
5799 * config/arm/arm-tune.md: Likewise.
5800 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
5801
5802 2016-03-07 Martin Sebor <msebor@redhat.com>
5803
5804 PR rtl-optimization/19705
5805 * doc/invoke.texi (Options That Control Optimization): Clarify
5806 -fno-branch-count-reg.
5807
5808 2016-02-26 Richard Biener <rguenther@suse.de>
5809 Jeff Law <law@redhat.com>
5810
5811 PR tree-optimization/69740
5812 * cfghooks.c (remove_edge): Request loop fixups if we delete
5813 an edge that might turn an irreducible loop into a natural
5814 loop.
5815 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
5816 Move after definition of loops_state_clear.
5817
5818 2016-03-07 Bin Cheng <bin.cheng@arm.com>
5819
5820 PR rtl-optimization/69052
5821 * rtlanal.c (commutative_operand_precedence): Set higher precedence
5822 to CONST_WIDE_INT.
5823
5824 2016-03-07 Tom de Vries <tom@codesourcery.com>
5825
5826 PR tree-optimization/70116
5827 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
5828 is_tm_ending stmts and ubsan/asan internal functions.
5829 (find_duplicate): Use it. Don't test is_tm_ending here.
5830
5831 2016-03-07 Richard Biener <rguenther@suse.de>
5832
5833 PR tree-optimization/70115
5834 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
5835 (propagate_constants_for_unrolling): Use replace_uses_by.
5836
5837 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
5838
5839 PR middle-end/69916
5840 * omp-low.c (struct oacc_loop): Add ifns.
5841 (new_oacc_loop_raw): Initialize it.
5842 (finish_oacc_loop): Clear mask & flags if no ifns.
5843 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
5844 (oacc_loop_xform_loop): Add ifns arg & adjust.
5845 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
5846
5847 2016-03-07 Richard Henderson <rth@redhat.com>
5848
5849 PR rtl-opt/70061
5850 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
5851 (insert_value_copy_on_edge): Likewise.
5852
5853 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5854
5855 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
5856
5857 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5858
5859 PR target/62281
5860 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
5861
5862 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5863
5864 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
5865
5866 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5867
5868 Fix sseimul type attribute.
5869 * config/i386/znver1.md
5870 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
5871 znver1_sseimul_avx256_load) : Fix the type attribute.
5872 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
5873 pipe usage and latency.
5874
5875 2016-03-05 Jakub Jelinek <jakub@redhat.com>
5876
5877 PR c++/70084
5878 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
5879 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
5880 to the right type.
5881
5882 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
5883
5884 PR c/69973
5885 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
5886
5887 PR rtl-optimization/69941
5888 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
5889 the reg share its mode.
5890
5891 2016-03-04 Jeff Law <law@redhat.com>
5892
5893 PR tree-optimization/69196
5894 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5895 If the both SSA_NAMEs are anonymous, then consider them unassociated
5896 and include the PHI in the statement count.
5897
5898 2016-03-05 Tom de Vries <tom@codesourcery.com>
5899
5900 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
5901 construct in oacc routine. Check for oacc region in oacc routine.
5902
5903 2016-03-04 Jakub Jelinek <jakub@redhat.com>
5904
5905 PR target/70062
5906 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
5907 2016-02-22 changes, instead don't recurse if RECUR is already true.
5908 Don't change *dynamic_check if RECUR. Adjust recursive caller
5909 to pass true to the new argument.
5910 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
5911
5912 PR target/70059
5913 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5914 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
5915 fixes.
5916 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
5917
5918 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
5919
5920 PR rtl-optimization/57676
5921 * lra-assigns.c (lra_assign): Guard test for maximum iterations
5922 with flag_checking.
5923
5924 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
5925
5926 * tree-vect-patterns.c (search_type_for_mask): Handle
5927 comparison of booleans.
5928
5929 2016-03-04 Jakub Jelinek <jakub@redhat.com>
5930
5931 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
5932 Fix @xref usage.
5933
5934 PR debug/69947
5935 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
5936 all other ops that have dw_val_class_die_ref operands,
5937 and DW_OP_GNU_entry_value.
5938
5939 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5940
5941 PR rtl-optimization/69904
5942 * config/arm/arm.c (arm_cannot_copy_insn_p):
5943 Return true for load-exclusive instructions.
5944
5945 2016-03-03 Jakub Jelinek <jakub@redhat.com>
5946
5947 PR target/70021
5948 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
5949 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
5950 the pattern no matter if it is used just by non-pattern, pattern
5951 or mix thereof.
5952 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
5953 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5954 oprnd1 def_stmt is in pattern, don't look through it.
5955
5956 2016-03-03 Marek Polacek <polacek@redhat.com>
5957
5958 PR middle-end/70050
5959 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
5960
5961 2016-03-03 Martin Liska <mliska@suse.cz>
5962
5963 PR tree-optimization/70043
5964 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
5965 previous statement if we see a debug statement.
5966
5967 2016-03-03 Richard Biener <rguenther@suse.de>
5968
5969 PR tree-optimization/55936
5970 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
5971 parameter and guard unsafe equivalence use.
5972 (vrp_evaluate_conditional_warnv_with_ops): Always use
5973 safe equivalences but not via the quadratic compare_names
5974 helper.
5975
5976 2016-03-03 Michael Collison <michael.collison@linaro.org>
5977
5978 PR target/70014
5979 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
5980 for operand 1 to s_register_operand. Change predicate for operand
5981 2 to arm_not_immediate_operand.
5982
5983 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 * doc/tm.texi: Regenerated.
5986
5987 2016-03-02 Richard Henderson <rth@redhat.com>
5988
5989 PR rtl-opt/67145
5990 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
5991 simplification when all args are positive non-fixed registers.
5992
5993 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5994
5995 * target.def (lra_p): Specify that new ports should use LRA.
5996
5997 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5998
5999 PR libgomp/69555
6000 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
6001 gimplify_type_sizes the type they refer to.
6002 (omp_notice_variable): Handle reference vars to VLAs.
6003 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
6004 reference to VLA decls in the second pass instead of first pass.
6005
6006 2016-03-02 Tom de Vries <tom@codesourcery.com>
6007
6008 PR tree-optimization/68659
6009 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
6010 new_expr == NULL_TREE.
6011 (get_new_name): Handle ADDR_EXPR.
6012
6013 2016-03-02 Bin Cheng <bin.cheng@arm.com>
6014
6015 PR rtl-optimization/69052
6016 * loop-invariant.c (canonicalize_address): New function.
6017 (inv_can_prop_to_addr_use): Check validity of address expression
6018 which is canonicalized by above function.
6019
6020 2016-03-02 Alan Modra <amodra@gmail.com>
6021
6022 PR ipa/69990
6023 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
6024 larger alignment.
6025
6026 2016-03-02 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR target/70028
6029 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
6030 (*movhi_internal): Put mask moves from and to memory separately
6031 from moves from/to GPRs.
6032
6033 2016-03-02 Richard Biener <rguenther@suse.de>
6034
6035 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6036 GENERIC expressions in GIMPLE.
6037
6038 2016-03-02 Richard Biener <rguenther@suse.de>
6039
6040 * config/i386/i386.c (type_natural_mode): Fix typo.
6041
6042 2016-03-02 Nick Clifton <nickc@redhat.com>
6043
6044 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6045
6046 2016-03-02 Richard Biener <rguenther@suse.de>
6047 Uros Bizjak <ubizjak@gmail.com>
6048
6049 PR target/67278
6050 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6051
6052 2016-03-02 Richard Biener <rguenther@suse.de>
6053
6054 PR middle-end/67278
6055 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6056
6057 2016-03-02 Marek Polacek <polacek@redhat.com>
6058
6059 PR c/67854
6060 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6061 "is promoted to" warning.
6062
6063 2016-03-01 DJ Delorie <dj@redhat.com>
6064
6065 * config.gcc: Deprecate mep-*.
6066
6067 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
6068
6069 PR middle-end/70025
6070 * lra-constraints.c (regno_val_use_in): New.
6071 (match_reload): Use it instead of regno_use_in.
6072
6073 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
6074
6075 PR rtl-optimization/70007
6076 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6077 references present in REG_EQUAL notes attached to non-SET patterns.
6078
6079 2016-03-01 Jeff Law <law@redhat.com>
6080
6081 PR tree-optimization/69196
6082 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6083 Appropriately clamp the number of statements to copy when the
6084 thread path does not traverse a loop backedge.
6085
6086 PR tree-optimization/69196
6087 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6088 Do count some PHIs in the thread path against the insn count. Decrease
6089 final statement count by one as the control statement in the last
6090 block will get removed. Remove special cased code for handling PHIs
6091 in the last block.
6092
6093 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
6094
6095 PR target/70027
6096 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6097 asm dialect alternatives to explicit GOTPCREL calls.
6098
6099 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
6100
6101 PR ada/70017
6102 * ira.c (do_reload): Issue warning for generic stack checking here...
6103 * reload1.c (reload): ...instead of here and streamline it.
6104
6105 2016-03-01 Nick Clifton <nickc@redhat.com>
6106
6107 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6108
6109 2016-03-01 Richard Biener <rguenther@suse.de>
6110
6111 PR tree-optimization/69983
6112 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6113 types and fall back to operand_equal_p.
6114
6115 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6116
6117 Revert
6118 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6119
6120 * config/s390/constraints.md ("jm8"): New constraint.
6121 * config/s390/predicates.md ("const_int_8bitset_operand"): New
6122 predicate.
6123 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6124 into ...
6125 ("*setmem_long<setmem_and>"): New pattern.
6126 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6127 into ...
6128 ("*setmem_long_31z<setmem_and>"): New pattern.
6129 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6130 New substitution rules with the required attributes.
6131
6132
6133 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6134
6135 Revert
6136 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6137
6138 * gensupport.c (process_substs_on_one_elem): Split loop to
6139 complete mark_operands_used_in_match_dup on all expressions in the
6140 vector first.
6141 (adjust_operands_numbers): Inline into process_substs_on_one_elem
6142 and remove function.
6143
6144 2016-03-01 Richard Biener <rguenther@suse.de>
6145
6146 PR middle-end/70022
6147 * fold-const.c (fold_indirect_ref_1): Fix range checking for
6148 vector BIT_FIELD_REF extract.
6149
6150 2016-03-01 Richard Biener <rguenther@suse.de>
6151
6152 PR tree-optimization/69994
6153 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6154
6155 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6156
6157 PR tree-optimization/69956
6158 * tree-vect-stmts.c (supportable_widening_operation): Support
6159 multi-step conversion of boolean vectors.
6160 (supportable_narrowing_operation): Likewise.
6161
6162 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6163
6164 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6165 anymore.
6166
6167 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6168
6169 * config/s390/subst.md (DSI_VI): New mode iterator.
6170 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6171 * config/s390/vector.md ("vec_set<mode>"): Move expander before
6172 the insn definition.
6173 ("*vec_set<mode>"): Change predicate and add alternative to
6174 support only either register or const_int operands as element
6175 selector.
6176 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6177 operands.
6178 ("vec_extract<mode>"): New expander.
6179 ("*vec_extract<mode>"): New insn definition supporting reg and
6180 const_int element selectors.
6181 ("*vec_extract<mode>_plus"): New insn definition supporting
6182 reg+const_int element selectors.
6183 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6184 following expander+insn definition.
6185 ("<vec_shifts_name><mode>3"): New expander.
6186 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6187
6188 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6189
6190 * config/s390/s390.md ("*tabort_1"): Change predicate to
6191 nonmemory_operand. Add a second alternative to cover
6192 register as well as const int operands.
6193 ("*tabort_1_plus"): New pattern definition.
6194
6195 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6196
6197 * config/s390/s390.md ("*ashrdi3_cc_31")
6198 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6199 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6200 Merge insn definitions into ...
6201 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6202 New pattern definition.
6203 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6204 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6205 ("*ashr<mode>3_and"): Merge insn definitions into ...
6206 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6207 New pattern definition.
6208 * config/s390/subst.md ("addr_style_op_cc_subst")
6209 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6210 substitutions patterns plus attributes.
6211 Add ashiftrt to SUBST iterator.
6212
6213 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6214
6215 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6216 op2 to nonmemory_operand.
6217 ("*<shift>di3_31", "*<shift>di3_31_and"):
6218 Merge into single pattern definition ...
6219 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6220 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6221 pattern definition ...
6222 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6223 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6224 iterator.
6225
6226 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6227
6228 * config/s390/predicates.md (const_int_6bitset_operand): New
6229 predicate.
6230 * config/s390/s390.md: Include subst.md.
6231 ("rotl<mode>3"): New expander.
6232 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6233 ...
6234 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6235 * config/s390/subst.md: New file.
6236
6237 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6238
6239 * config/s390/s390.md ("op_type", "atype", "length" attributes):
6240 Remove RRR type. It doesn't really exist.
6241 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6242 attributes.
6243 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6244 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6245 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6246 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6247 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6248 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6249 `enabled' attribute.
6250
6251 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6252
6253 * gensupport.c (process_substs_on_one_elem): Split loop to
6254 complete mark_operands_used_in_match_dup on all expressions in the
6255 vector first.
6256 (adjust_operands_numbers): Inline into process_substs_on_one_elem
6257 and remove function.
6258
6259 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
6260
6261 PR target/69706
6262 * config/sparc/sparc.c (NWORDS_UP): Rename to...
6263 (CEIL_NWORDS): ...this. Use CEIL macro.
6264 (compute_fp_layout): Adjust to above renaming.
6265 (function_arg_union_value): Likewise.
6266 (sparc_arg_partial_bytes): Likewise.
6267 (sparc_function_arg_advance): Likewise.
6268
6269 2016-02-29 Jeff Law <law@redhat.com>
6270
6271 PR tree-optimization/70005
6272 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6273 where an object with a boolean range is compared against a value
6274 outside [0..1].
6275
6276 PR tree-optimization/69999
6277 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6278 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6279 loop cleanups.
6280
6281 2016-02-29 Richard Biener <rguenther@suse.de>
6282
6283 PR tree-optimization/69994
6284 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6285 (get_unary_op): Look through nop conversions.
6286 (ops_equal_values_p): New function, look for equality diregarding
6287 nop conversions.
6288 (eliminate_plus_minus_pair): Use ops_equal_values_p
6289 (repropagate_negates): Do not use get_unary_op here.
6290
6291 2016-02-29 Martin Liska <mliska@suse.cz>
6292
6293 * system.h: Poison ENABLE_CHECKING macro.
6294
6295 2016-02-29 Martin Liska <mliska@suse.cz>
6296
6297 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6298 is presented in dump flags.
6299 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6300 (hsa_regalloc): Likewise.
6301
6302 2016-02-19 Richard Biener <rguenther@suse.de>
6303
6304 PR tree-optimization/69980
6305 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6306 permutation of those we need to keep.
6307
6308 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
6309
6310 PR target/69706
6311 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6312 (NWORDS_UP): ...this
6313 (init_cumulative_args): Minor tweaks.
6314 (sparc_promote_function_mode): Likewise.
6315 (scan_record_type): Delete.
6316 (traverse_record_type): New function template.
6317 (classify_data_t): New structure type.
6318 (classify_registers): New inline function.
6319 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6320 exhausted. Instantiate traverse_record_type on classify_registers and
6321 deal with the case of a structure passed in slot #15 with no FP field
6322 in the first word.
6323 (assign_data_t): New structure type.
6324 (compute_int_layout): New static function.
6325 (compute_fp_layout): Likewise.
6326 (count_registers): New inline function.
6327 (assign_int_registers): New static function.
6328 (assign_fp_registers): Likewise.
6329 (assign_registers): New inline function.
6330 (function_arg_record_value_1): Delete.
6331 (function_arg_record_value_2): Likewise.
6332 (function_arg_record_value_3): Likewise.
6333 (function_arg_record_value): Adjust to above changes. Instantiate
6334 traverse_record_type on count_registers to first count the number of
6335 registers to be used and then on assign_registers to assign them.
6336 (function_arg_union_value): Adjust to above renaming.
6337 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
6338 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
6339 case of a structure passed in slot #15
6340 (sparc_function_arg_advance): Likewise.
6341 (function_arg_padding): Minor tweak.
6342
6343 2016-02-29 Richard Biener <rguenther@suse.de>
6344
6345 PR tree-optimization/69720
6346 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6347 the adjustment_def path for possibly vectorized defs.
6348 (vect_create_epilog_for_reduction): Handle vectorized initial
6349 defs properly.
6350
6351 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
6352
6353 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6354
6355 2016-02-27 Jeff Law <law@redhat.com>
6356
6357 Revert
6358 2016-02-26 Richard Biener <rguenther@suse.de>
6359 Jeff Law <law@redhat.com>
6360
6361 PR tree-optimization/69740
6362 * cfghooks.c (remove_edge): Request loop fixups if we delete
6363 an edge that might turn an irreducible loop into a natural
6364 loop.
6365
6366 2016-02-27 Jakub Jelinek <jakub@redhat.com>
6367
6368 PR rtl-optimization/69896
6369 * tree-vect-generic.c (get_compute_type): Avoid single element
6370 vector types.
6371
6372 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
6373
6374 Rename the AArch64 tuning option and related functions to enable the
6375 Newton series for the reciprocal square root to reflect its
6376 approximative characteristic.
6377
6378 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6379 function to "aarch64_emit_approx_rsqrt".
6380 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6381 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6382 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6383 (xgene1_tunings): Likewise.
6384 (use_rsqrt_p): Likewise.
6385 (aarch64_emit_swrsqrt): Use new function name.
6386 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
6387 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
6388 text explaining this option.
6389 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
6390
6391 2016-02-26 Jakub Jelinek <jakub@redhat.com>
6392
6393 PR target/69969
6394 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6395 complain about -mallow-movmisalign without -mvsx if
6396 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
6397
6398 2016-02-26 Joel Sherrill <joel@rtems.org>
6399
6400 * config.gcc: Add x86_64-*-rtems*.
6401 * gcc/config/i386/rtems-64.h: New file.
6402
6403 2016-02-26 Joel Sherrill <joel@rtems.org>
6404
6405 * config.gcc: Add aarch64-*-rtems*.
6406 * gcc/config/aarch64/rtems.h: New file.
6407
6408 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
6409
6410 PR target/69946
6411 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
6412 shift amount using %h. Add comment.
6413
6414 2016-02-26 Richard Biener <rguenther@suse.de>
6415 Jeff Law <law@redhat.com>
6416
6417 PR tree-optimization/69740
6418 * cfghooks.c (remove_edge): Request loop fixups if we delete
6419 an edge that might turn an irreducible loop into a natural
6420 loop.
6421
6422 2016-02-26 Martin Jambor <mjambor@suse.cz>
6423
6424 PR middle-end/69920
6425 * tree-sra.c (sra_modify_assign): Do not remove loads of
6426 uninitialized aggregates to SSA_NAMEs.
6427
6428 2016-02-26 Richard Henderson <rth@redhat.com>
6429
6430 PR target/69709
6431 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
6432 pseudo in case the target rtx matches the source of the left
6433 shift.
6434
6435 2016-02-26 Martin Jambor <mjambor@suse.cz>
6436
6437 PR hsa/69568
6438 * hsa.h (hsa_type_packed_p): Declare.
6439 * hsa.c (hsa_type_packed_p): New function.
6440 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
6441 loads.
6442 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
6443 * hsa-brig.c (emit_basic_insn): Likewise.
6444
6445 2016-02-26 Martin Jambor <mjambor@suse.cz>
6446
6447 pr hsa/69674
6448 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
6449 pointers.
6450 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
6451
6452 2016-02-26 Martin Jambor <mjambor@suse.cz>
6453
6454 * hsa.h (is_a_helper): New overload for hsa_op_immed for
6455 hsa_op_with_type operands.
6456 (hsa_unsigned_type_for_type): Declare.
6457 * hsa.c (hsa_unsigned_type_for_type): New function.
6458 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
6459 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
6460 the finalizer. Do not emit extra move.
6461
6462 2016-02-26 Martin Jambor <mjambor@suse.cz>
6463
6464 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
6465 atomic operations in private segment.
6466
6467 2016-02-26 Martin Jambor <mjambor@suse.cz>
6468
6469 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
6470 statements to wi->info. Also disallow omp simd constructs.
6471 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
6472 for not gridifying. Dump special string for omp_for.
6473
6474 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6475
6476 PR target/69245
6477 * config/aarch64/aarch64.c (aarch64_set_current_function):
6478 Save/restore target globals when switching to
6479 target_option_default_node.
6480
6481 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6482
6483 PR target/69613
6484 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
6485 Return 0 if !SHIFT_COUNT_TRUNCATED.
6486
6487 2016-02-26 Jakub Jelinek <jakub@redhat.com>
6488 Eric Botcazou <ebotcazou@adacore.com>
6489
6490 PR rtl-optimization/69891
6491 * dse.c (scan_insn): If we can't figure out memset arguments
6492 or they are non-constant, call clear_rhs_from_active_local_stores.
6493
6494 2016-02-26 Martin Liska <mliska@suse.cz>
6495
6496 * doc/extend.texi: Mention clog10, clog10f an clog10l
6497 in Builtins section.
6498
6499 2016-02-26 Martin Liska <mliska@suse.cz>
6500
6501 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
6502 CHECKING_P.
6503 (resolve_args_picking_1): Likewise.
6504 * dwarf2out.h (struct GTY): Likewise.
6505
6506 2016-02-26 Martin Liska <mliska@suse.cz>
6507
6508 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
6509 with flag_checking.
6510 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6511
6512 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
6513 Martin Liska <mliska@suse.cz>
6514
6515 * doc/install.texi: Mention --enable-valgrind-annotations.
6516
6517 2016-02-26 Richard Biener <rguenther@suse.de>
6518
6519 PR tree-optimization/69551
6520 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
6521 looking through aliases adjust DECL_PT_UID to refer to the
6522 ultimate alias target.
6523
6524 2016-02-25 Martin Liska <mliska@suse.cz>
6525
6526 PR middle-end/69919
6527 * alloc-pool.c (after_memory_report): New variable.
6528 * alloc-pool.h (base_pool_allocator ::release): Do not use
6529 the infrastructure if after_memory_report.
6530 * toplev.c (toplev::main): Mark after memory report.
6531
6532 2016-02-25 Richard Biener <rguenther@suse.de>
6533
6534 PR tree-optimization/48795
6535 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
6536
6537 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6538
6539 PR driver/68463
6540 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
6541 offloading is enabled and -fopenacc or -fopenmp is specified.
6542 (CRTOFFLOADEND): Likewise.
6543 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
6544 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
6545 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
6546 (offload_objects_file_name): New static var.
6547 (tool_cleanup): Remove offload_objects_file_name file.
6548 (find_offloadbeginend): Replace with ...
6549 (find_crtoffloadtable): ... this.
6550 (run_gcc): Remove offload_argc and offload_argv.
6551 Get offload_objects_file_name from -foffload-objects=... option.
6552 Read names of object files with offload from this file, pass them to
6553 compile_images_for_offload_targets. Don't call find_offloadbeginend and
6554 don't pass offloadbegin and offloadend to the linker. Don't pass
6555 offload non-LTO files to the linker, because now they're not claimed.
6556
6557 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
6558
6559 PR ipa/69630
6560 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6561 on builtin_unreachable.
6562
6563 2016-02-25 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR rtl-optimization/69896
6566 * regcprop.c: Include cfgrtl.h.
6567 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
6568 than remembered mode, either delete it (if noop_move_p), or
6569 treat like copy_p but not noop_p instruction.
6570
6571 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6572
6573 PR debug/69705
6574 * dwarf2out.c (gen_variable_die): Work around buggy LTO
6575 - allow NULL decl for Fortran DW_TAG_common_block variables.
6576
6577 2016-02-24 Jason Merrill <jason@redhat.com>
6578
6579 * common.opt (flifetime-dse): Add -flifetime-dse=1.
6580
6581 2016-02-24 Richard Biener <rguenther@suse.de>
6582 Jakub Jelinek <jakub@redhat.com>
6583
6584 PR middle-end/69760
6585 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
6586 conditionally executed ops to well-defined overflow behavior.
6587
6588 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6589
6590 PR middle-end/69915
6591 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
6592 elements.
6593
6594 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6595
6596 PR rtl-optimization/69886
6597 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
6598 argument. Use it when checking validity of set instructions.
6599 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
6600 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
6601 callsite.
6602 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
6603 * store-motion.c (find_moveable_store): Update
6604 can_assign_to_reg_without_clobbers_p callsite.
6605
6606 2016-02-24 Richard Biener <rguenther@suse.de>
6607
6608 PR middle-end/68963
6609 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
6610 bogus check.
6611 (record_nonwrapping_iv): Do not fall back to the low/high bound
6612 for non-constant IV bases if the stmt is not always executed.
6613
6614 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6615
6616 * config/arm/arm-cores.def (cortex-a32): New entry.
6617 * config/arm/arm-tables.opt: Regenerate.
6618 * config/arm/arm-tune.md: Regenerate.
6619 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
6620 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
6621 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
6622 for -mcpu and -mtune.
6623
6624 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6625
6626 PR target/69875
6627 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
6628 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
6629 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
6630 (atomic_loaddi_1): Delete.
6631 (atomic_loaddi): Rewrite expander using the above changes.
6632
6633 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6634
6635 PR c/69918
6636 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
6637 2 to 3.
6638
6639 2016-02-24 Jakub Jelinek <jakub@redhat.com>
6640 Richard Biener <rguenth@suse.de>
6641
6642 PR middle-end/69909
6643 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
6644 set_mem_attributes if tem is SSA_NAME which got expanded
6645 as a MEM.
6646
6647 2016-02-24 Richard Biener <rguenther@suse.de>
6648
6649 PR tree-optimization/69907
6650 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
6651 end of permutations for BB vectorization.
6652
6653 2016-02-24 Christian Bruel <christian.bruel@st.com>
6654
6655 * config/arm/arm-c.c (arm_option_override): Initialize
6656 target_option_current_node.
6657 * config/arm/arm.c (arm_pragma_target_parse): Replace
6658 build_target_option_node call by target_option_current_node.
6659 Set target_option_current_node.
6660 Fix comments.
6661
6662 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
6663
6664 PR target/69810
6665 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
6666 define_insn_and_split to define_insn.
6667 (zero_extendqi<mode>2_dot2): Same.
6668 (extendqi<mode>2_dot): Same.
6669 (extendqi<mode>2_dot2): Same.
6670
6671 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
6672
6673 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
6674 and add bypass for AES{D,E} and AESMC pairs.
6675 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
6676 and AESMC pairs.
6677
6678 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
6679
6680 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
6681 series for reciprocal square root in Exynos M1.
6682
6683 2016-02-23 Martin Sebor <msebor@redhat.com>
6684
6685 PR c/69759
6686 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
6687 __builtin_alloca_with_align.
6688
6689 2016-02-23 Richard Henderson <rth@redhat.com>
6690
6691 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
6692 (ix86_register_pragmas): Remove __seg_tls.
6693 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
6694 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
6695 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
6696 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
6697 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
6698 * doc/extend.texi (__seg_tls): Remove item.
6699
6700 2016-02-23 Richard Biener <rguenther@suse.de>
6701
6702 * alloc-pool.h (struct allocation_object): Make id member
6703 conditional on CHECKING_P again.
6704 (get_instance): Adjust.
6705 (base_pool_allocator): Likewise.
6706
6707 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6708
6709 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
6710 (parallelize_loops): In OpenACC kernels mode, set n_threads to
6711 zero.
6712 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
6713 flag_openacc.
6714 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6715
6716 2016-02-23 Richard Biener <rguenther@suse.de>
6717
6718 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
6719 * bitmap.h (struct bitmap_usage): Likewise.
6720 (bitmap_move): Declare.
6721 * bitmap.c (register_overhead): Take size_t argument.
6722 (bitmap_move): New function.
6723 * df-problems.c (df_rd_transfer_function): Use bitmap_move
6724 to properly account overhead.
6725 * tree.c (free_node): Use tree_size.
6726
6727 2016-02-23 Jakub Jelinek <jakub@redhat.com>
6728
6729 PR c++/69902
6730 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
6731 when inverting comparison.
6732
6733 PR c/69900
6734 * common.opt (Wunreachable-code): Add Warning flag.
6735
6736 2016-02-23 Mark Wielaard <mjw@redhat.com>
6737 Jakub Jelinek <jakub@redhat.com>
6738
6739 PR c/69911
6740 * cgraphunit.c (check_global_declaration): Check main_input_filename
6741 and DECL_SOURCE_FILE are not NULL.
6742
6743 2016-02-23 Martin Jambor <mjambor@suse.cz>
6744
6745 PR tree-optimization/69666
6746 * tree-sra.c (sra_modify_assign): Do not attempt to create
6747 default_def replacements for unscalarizable regions.
6748
6749 2016-02-20 Mark Wielaard <mjw@redhat.com>
6750
6751 PR c/28901
6752 * cgraphunit.c (check_global_declaration): Check level of
6753 warn_unused_const_variable and main_input_filename.
6754 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
6755 (-Wunused-variable): For C implies -Wunused-const-variable=1.
6756 (-Wunused-const-variable): Explain levels 1 and 2.
6757
6758 2016-02-22 Jakub Jelinek <jakub@redhat.com>
6759
6760 PR target/69888
6761 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
6762 identical arguments. Formatting and spelling fixes.
6763
6764 PR target/69885
6765 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
6766 be specified.
6767
6768 PR target/69894
6769 PR target/69895
6770 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
6771 and m68k-devices.def.
6772 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
6773 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
6774
6775 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6776
6777 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
6778 and HImode registers.
6779
6780 2016-02-22 Richard Biener <rguenther@suse.de>
6781
6782 PR tree-optimization/69882
6783 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
6784 preserve permutations present because of gaps.
6785 (vect_supported_load_permutation_p): Always continue checking
6786 permutations after vect_attempt_slp_rearrange_stmts.
6787
6788 2016-02-22 Bin Cheng <bin.cheng@arm.com>
6789
6790 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
6791 min_profitable_estimate, rather than min_profitable_iters.
6792
6793 2016-02-22 Jakub Jelinek <jakub@redhat.com>
6794
6795 PR target/69885
6796 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
6797 SImode for last match_operand.
6798
6799 2016-02-22 Martin Liska <mliska@suse.cz>
6800
6801 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
6802 return bitsize - 1 as the return value.
6803
6804 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
6805
6806 PR target/69806
6807 PR target/54089
6808 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
6809 Handle negative shift counts.
6810 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
6811 force_reg on the shift constant.
6812 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
6813 (lshrsi3_d): Handle negative shift counts.
6814
6815 2016-02-22 Richard Biener <rguenther@suse.de>
6816 Tom de Vries <tom@codesourcery.com>
6817
6818 * graph.c: Include dumpfile.h.
6819 (print_graph_cfg): Split into three overloads.
6820 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
6821
6822 2016-02-22 Tom de Vries <tom@codesourcery.com>
6823
6824 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
6825 dump-fn.
6826
6827 2016-02-22 Richard Biener <rguenther@suse.de>
6828
6829 PR ipa/37448
6830 * ipa-inline-transform.c (inline_call): When not updating
6831 overall summaries adjust self size by the growth estimate.
6832 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
6833 hash-set, do not update overall summaries here. Renamed from ...
6834 (inline_to_all_callers): ... this which is now wrapping the
6835 above and performing delayed overall summary update.
6836 (early_inline_small_functions): Delay updating of the overall
6837 summary.
6838
6839 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6840
6841 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
6842 variable.
6843
6844 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6845
6846 PR driver/69805
6847 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
6848 :%* in %:gt() argument.
6849 (greater_than_spec_func): Adjust for expecting only numbers,
6850 if there are more than two numbers, compare the last two.
6851
6852 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
6853
6854 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
6855 -Wnarrowing with -std.
6856
6857 2016-02-19 Jakub Jelinek <jakub@redhat.com>
6858
6859 PR c++/69851
6860 * expr.c (store_field): Don't use bit-field path if exp is
6861 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
6862 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
6863 and the assignment can be performed by bitwise copy. Formatting
6864 fix.
6865
6866 PR middle-end/69838
6867 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
6868 call copy_reg_eh_region_note_forward on before and/or after sequences
6869 and remove note from insn if it no longer can throw.
6870
6871 PR target/69820
6872 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
6873 if TARGET_AVX512BW.
6874
6875 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6876
6877 * config/s390/vector.md: Add missing commutative operand markers
6878 to the patterns which qualify for one.
6879 * config/s390/vx-builtins.md: Likewise.
6880
6881 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6882
6883 * config/s390/vector.md (VI, VI_QHS): Add single element vector
6884 types to mode iterators.
6885 (vec_double): ... and mode attribute.
6886 * config/s390/vx-builtins.md (non_vec_int): Likewise.
6887
6888 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6889
6890 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
6891 Change the predicate of op2 from nonimmediate to general and let
6892 reload fix it if necessary.
6893
6894 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6895
6896 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
6897
6898 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6899
6900 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
6901 mode.
6902
6903 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6904
6905 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
6906 * config/s390/s390.c (s390_expand_vec_movstr): New function.
6907 * config/s390/s390.md ("movstr<P:mode>"): Call
6908 s390_expand_vec_movstr.
6909
6910 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6911
6912 * config/s390/s390.md: Add missing output modifier for operand 1
6913 to print it as address properly.
6914
6915 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6916
6917 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
6918 * config/s390/2964.md: New file.
6919 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
6920 of insn grouping attributes depending on the CPU level.
6921 (s390_get_unit_mask): New function.
6922 (s390_sched_score): Remove the OOO from the scheduling macros.
6923 Add loop to calculate a score for the instruction mix.
6924 (s390_sched_reorder): Likewise plus improve debug output.
6925 (s390_sched_variable_issue): Rename macros as above. Calculate
6926 the unit distances after actually scheduling an insn. Improve
6927 debug output.
6928 (s390_sched_init): Clear last_scheduled_unit_distance array.
6929 * config/s390/s390.md: Include 2964.md.
6930
6931 2016-02-18 Jakub Jelinek <jakub@redhat.com>
6932
6933 PR target/69671
6934 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
6935 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
6936 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
6937 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
6938 *avx512f_<code>v8div16qi2_mask_1): New insns.
6939
6940 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6941
6942 PR target/68404
6943 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
6944 2016-02-09 change.
6945
6946 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
6947 earlyclobber from target. Use wF constraint for fused memory
6948 address.
6949 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6950
6951 2016-02-18 Jakub Jelinek <jakub@redhat.com>
6952 Martin Liska <mliska@suse.cz>
6953
6954 PR sanitizer/69863
6955 * cfgexpand.c (asan_sanitize_stack_p): New function.
6956 (partition_stack_vars): Use the function.
6957 (expand_stack_vars): Likewise.
6958 (defer_stack_allocation): Likewise.
6959 (expand_used_vars): Likewise.
6960
6961 2016-02-18 Richard Biener <rguenther@suse.de>
6962
6963 PR middle-end/69553
6964 * fold-const.c (operand_equal_p): Properly compare offsets for
6965 IMAGPART_EXPR and ARRAY_REF.
6966
6967 2016-02-18 Nick Clifton <nickc@redhat.com>
6968
6969 PR target/62254
6970 PR target/69610
6971 * config/arm/arm.c (arm_option_override_internal): Disable
6972 interworking if the target does not support thumb instructions.
6973 (arm_reload_in_hi): Handle the case where a register to register
6974 move needs reloading because there is no simple pattern to handle
6975 it.
6976 (arm_reload_out_hi): Likewise.
6977
6978 2016-02-18 Richard Biener <rguenther@suse.de>
6979
6980 PR middle-end/69854
6981 * match.pd: Don't use fold_binary or fold_unary for folding
6982 constants.
6983
6984 2016-02-17 Jakub Jelinek <jakub@redhat.com>
6985
6986 PR c++/69850
6987 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
6988 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
6989 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
6990 warn on gimple_no_warning_p statements.
6991
6992 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
6993
6994 * doc/extend.texi (C++ Attributes): Correct description of
6995 warn_unused type attribute.
6996
6997 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6998
6999 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
7000 correct instruction.
7001
7002 2016-02-17 Richard Biener <rguenther@suse.de>
7003
7004 PR rtl-optimization/69609
7005 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
7006 (find_traces_1_round): When ending a trace update cached priority
7007 of successors.
7008 (bb_to_key): Use cached priority when available.
7009 (copy_bb): Initialize cached priority.
7010 (reorder_basic_blocks_software_trace_cache): Likewise.
7011
7012 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7013
7014 PR target/69161
7015 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
7016 New predicate.
7017 (aarch64_comparison_operator): Break overly long line into two.
7018 (aarch64_comparison_operation): Likewise.
7019 * config/aarch64/aarch64.md (cstorecc4): Use
7020 aarch64_comparison_operator_mode instead of
7021 aarch64_comparison_operator.
7022 (cstore<mode>4): Likewise.
7023 (aarch64_cstore<mode>): Likewise.
7024 (*cstoresi_insn_uxtw): Likewise.
7025 (cstore<mode>_neg): Likewise.
7026 (*cstoresi_neg_uxtw): Likewise.
7027
7028 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7029
7030 PR target/69161
7031 * config/arm/predicates.md (arm_comparison_operator_mode):
7032 New predicate.
7033 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7034 instead of arm_comparison_operator.
7035 (*mov_negscc): Likewise.
7036 (*mov_notscc): Likewise.
7037 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7038 (*thumb2_mov_negscc): Likewise.
7039 (*thumb2_mov_negscc_strict_it): Likewise.
7040 (*thumb2_mov_notscc): Likewise.
7041 (*thumb2_mov_notscc_strict_it): Likewise.
7042
7043 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
7044
7045 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7046 Add missing return.
7047
7048 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
7049
7050 * config/visium/visium.c (machine_libfunc_index): New enum.
7051 (machine_libfuncs): New structure.
7052 (visium_libfuncs): New static variable.
7053 (TARGET_INIT_LIBFUNCS): Define to...
7054 (visium_init_libfuncs): ...this. New function.
7055 (expand_block_move_4): Use the appropriate libfunc.
7056 (expand_block_move_2): Likewise.
7057 (expand_block_move_1): Likewise.
7058 (expand_block_set_4): Likewise.
7059 (expand_block_set_2): Likewise.
7060 (expand_block_set_1): Likewise.
7061 (visium_trampoline_init): Likewise.
7062
7063 2016-02-17 Nick Clifton <nickc@redhat.com>
7064
7065 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7066 TI's devices.csv file as of March 2016.
7067
7068 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
7069
7070 PR Target/48344
7071 * opts-global.c (handle_common_deferred_options): Introduce and
7072 initialize two global variables to remember command-line options
7073 specifying a stack-limiting register.
7074 * opts.h: Add extern declarations of the two new global variables.
7075 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7076 variable based on the values of the two new global variables.
7077
7078 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7079
7080 PR c/69835
7081 * common.opt (Wnonnull-compare): New warning.
7082 * doc/invoke.texi (-Wnonnull): Remove text about comparison
7083 of arguments against NULL.
7084 (-Wnonnull-compare): Document.
7085 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7086 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7087 * passes.def (pass_warn_nonnull_compare): Add.
7088 * gimple-ssa-nonnull-compare.c: New file.
7089
7090 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7091
7092 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7093 AARCH64_EXTRA_TUNE_RECIP_SQRT.
7094
7095 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7096
7097 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7098 reciprocal sqrt for -mlow-precision-recip-sqrt.
7099
7100 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7101 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7102
7103 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7104 always use lane loads to construct non-constant vectors.
7105
7106 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7107
7108 * config/aarch64/aarch64.md
7109 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7110 constraints for operand 3.
7111 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7112
7113 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7114 Richard Biener <rguenther@suse.de>
7115
7116 PR tree-optimization/69820
7117 * tree-vect-patterns.c (type_conversion_p): Return false if
7118 *orig_type is unsigned single precision or boolean.
7119 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7120 Formatting fix.
7121
7122 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7123
7124 PR rtl-optimization/69764
7125 PR rtl-optimization/69771
7126 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7127 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7128
7129 2016-02-16 Richard Biener <rguenther@suse.de>
7130
7131 PR tree-optimization/69776
7132 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7133 sets from caller.
7134 (indirect_refs_may_alias_p): Likewise.
7135 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7136 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7137 according to tbaa_p.
7138 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7139 (optimize_stmt): For redundant store discovery do not allow tbaa.
7140
7141 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
7142
7143 PR tree-optimization/69714
7144 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7145 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7146
7147 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
7148
7149 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7150 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7151 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7152 * config/arc/arc.c (arc_init): Check FPU options.
7153 (get_arc_condition_code): Handle new CC_FPU* modes.
7154 (arc_select_cc_mode): Likewise.
7155 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7156 register pair only. Allow access for ARCv2 accumulator.
7157 (gen_compare_reg): Whenever we have FPU support use FPU compare
7158 instructions.
7159 (arc_reorg): Don't generate brcc insns when FPU compare
7160 instructions are involved.
7161 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7162 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7163 floating point emulation.
7164 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7165 (REVERSE_CONDITION): Add new CC_FPU* modes.
7166 (TARGET_FP_SP_BASE): Define.
7167 (TARGET_FP_DP_BASE): Likewise.
7168 (TARGET_FP_SP_FUSED): Likewise.
7169 (TARGET_FP_DP_FUSED): Likewise.
7170 (TARGET_FP_SP_CONV): Likewise.
7171 (TARGET_FP_DP_CONV): Likewise.
7172 (TARGET_FP_SP_SQRT): Likewise.
7173 (TARGET_FP_DP_SQRT): Likewise.
7174 (TARGET_FP_DP_AX): Likewise.
7175 * config/arc/arc.md (ARCV2_ACC): New constant.
7176 (type): New fpu type attribute.
7177 (SDF): Conditional iterator.
7178 (cstore<mode>, cbranch<mode>): Change expand condition.
7179 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7180 handles FPU/FPX cases as well.
7181 * config/arc/arc.opt (mfpu): New option.
7182 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7183 Renamed.
7184 (adddf3, muldf3, subdf3): Removed.
7185 * config/arc/predicates.md (proper_comparison_operator): Recognize
7186 CC_FPU* modes.
7187 * config/arc/fpu.md: New file.
7188 * doc/invoke.texi (ARC Options): Document mfpu option.
7189
7190 2016-02-16 Richard Biener <rguenther@suse.de>
7191
7192 PR rtl-optimization/69291
7193 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7194 noce_operand_ok check.
7195
7196 2016-02-16 Tom de Vries <tom@codesourcery.com>
7197
7198 PR lto/67709
7199 * omp-low.c (simd_clone_create): Remove call to
7200 symtab->call_cgraph_insertion_hooks.
7201
7202 2016-02-16 Jakub Jelinek <jakub@redhat.com>
7203
7204 PR tree-optimization/69802
7205 * tree-ssa-reassoc.c (update_range_test): If op is
7206 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7207 op == 1 test of precision 1 integral op, otherwise handle
7208 that case as op itself. Fix up formatting.
7209 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7210 up formatting.
7211
7212 2016-02-16 Richard Biener <rguenther@suse.de>
7213
7214 PR tree-optimization/69586
7215 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7216 types for conversion sources.
7217
7218 2016-02-16 Richard Biener <rguenther@suse.de>
7219
7220 PR middle-end/69801
7221 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7222 mask OEP_ADDRESS_OF.
7223
7224 2016-02-16 Alan Modra <amodra@gmail.com>
7225
7226 PR target/68973
7227 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7228 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7229 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7230 (p8_mtvsrwz): New.
7231 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7232 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7233 (p8_fmrgow_<mode>): Likewise.
7234 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
7235 changes.
7236 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7237 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7238 to use movdi_internal64. Remove op0_di.
7239 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7240
7241 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
7242
7243 Add support for the FCCMP insn types
7244
7245 * config/aarch64/aarch64.md (fccmp): Change insn type.
7246 (fccmpe): Likewise.
7247 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7248 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7249 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7250 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7251 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7252 * config/arm/types.md (fccmps): Add new insn type.
7253 (fccmpd): Likewise.
7254
7255 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7256
7257 * alias.c (get_alias_set): Fix a typo in comment.
7258
7259 2016-02-15 Richard Biener <rguenther@suse.de>
7260
7261 PR tree-optimization/69595
7262 * match.pd: Complete range test simplification to true.
7263
7264 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
7265
7266 PR rtl-optimization/69648
7267 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7268 pic_offset_table_rtx.
7269
7270 PR rtl-optimization/69752
7271 * ira.c (update_equiv_regs): When looking for more than a single SET,
7272 also take other side effects into account.
7273
7274 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
7275
7276 * config/s390/s390.c (s390_function_profiler): Add a new sequence
7277 for z900+ CPUs in 31-bit mode.
7278
7279 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
7280
7281 * common/config/s390/s390-common.c (s390_supports_split_stack):
7282 New function.
7283 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7284 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7285 * config/s390/s390.c (struct machine_function): New field
7286 split_stack_varargs_pointer.
7287 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7288 in s390_emit_prologue.
7289 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7290 vararg pointer.
7291 (morestack_ref): New global.
7292 (SPLIT_STACK_AVAILABLE): New macro.
7293 (s390_expand_split_stack_prologue): New function.
7294 (s390_live_on_entry): New function.
7295 (s390_va_start): Use split-stack vararg pointer if appropriate.
7296 (s390_asm_file_end): Emit the split-stack note sections.
7297 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7298 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7299 (UNSPECV_SPLIT_STACK_CALL): New unspec.
7300 (UNSPECV_SPLIT_STACK_DATA): New unspec.
7301 (split_stack_prologue): New expand.
7302 (split_stack_space_check): New expand.
7303 (split_stack_data): New insn.
7304 (split_stack_call): New expand.
7305 (split_stack_call_*): New insn.
7306 (split_stack_cond_call): New expand.
7307 (split_stack_cond_call_*): New insn.
7308
7309 2016-02-15 Richard Biener <rguenther@suse.de>
7310
7311 PR tree-optimization/69783
7312 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7313 Add trivially correct cases.
7314
7315 2016-02-15 Tom de Vries <tom@codesourcery.com>
7316
7317 PR lto/69655
7318 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7319 do_force_output.
7320 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7321
7322 2016-02-15 Richard Biener <rguenther@suse.de>
7323
7324 PR tree-optimization/69776
7325 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7326 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7327 indicate whether we can use TBAA to disambiguate against stores.
7328 Use alias-set zero if not.
7329 (visit_reference_op_store): Do not use TBAA when looking up
7330 redundant stores.
7331 * tree-ssa-pre.c (compute_avail): Use TBAA here.
7332 (eliminate_dom_walker::before_dom_children): But not when looking
7333 up redundant stores.
7334
7335 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
7336
7337 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7338
7339 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7340
7341 * config/i386/znver1.md
7342 (znver1_pop, znver1_pop_mem,
7343 znver1_load_imov_double_store,
7344 znver1_load_imov_direct_store,
7345 znver1_load_imov_direct_load,
7346 znver1_load_imov_double_load): Add new.
7347 (znver1_insn, znver1_insn_load): Add icmov type.
7348 (znver1_sseavx_fma,
7349 znver1_sseavx_fma_load,
7350 znver1_avx256_fma,
7351 znver1_avx256_fma_load): Fix pipe usage.
7352
7353 2016-02-14 Alan Modra <amodra@gmail.com>
7354
7355 PR target/68973
7356 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7357 with an invalid hard reg, reload just the reg not the entire
7358 pre/post-inc/dec address expression.
7359
7360 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
7361
7362 PR target/67260
7363 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7364 fixed R1_REG scratch reg.
7365 (sibcall_value_pcrel_fdpic): Likewise.
7366
7367 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
7368
7369 PR target/67636
7370 PR target/64345
7371 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7372
7373 2016-02-12 Walter Lee <walt@tilera.com>
7374
7375 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7376 * config/tilegx/t-tilegx: Likewise.
7377
7378 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7379
7380 PR other/69554
7381 * diagnostic-show-locus.c (struct line_span): New struct.
7382 (layout::get_first_line): Delete.
7383 (layout::get_last_line): Delete.
7384 (layout::get_num_line_spans): New member function.
7385 (layout::get_line_span): Likewise.
7386 (layout::print_heading_for_line_span_index_p): Likewise.
7387 (layout::get_expanded_location): Likewise.
7388 (layout::calculate_line_spans): Likewise.
7389 (layout::m_first_line): Delete.
7390 (layout::m_last_line): Delete.
7391 (layout::m_line_spans): New field.
7392 (layout::layout): Update comment. Replace m_first_line and
7393 m_last_line with m_line_spans, replacing their initialization
7394 with a call to calculate_line_spans.
7395 (diagnostic_show_locus): When printing source lines and
7396 annotations, rather than looping over a single span
7397 of lines, instead loop over each line_span within
7398 the layout, with an inner loop over the lines within them.
7399 Call the context's start_span callback when changing line spans.
7400 * diagnostic.c (diagnostic_initialize): Initialize start_span.
7401 (diagnostic_build_prefix): Break out the building of the location
7402 part of the string into...
7403 (diagnostic_get_location_text): ...this new function, rewriting
7404 it from nested ternary expressions to a sequence of "if"
7405 statements.
7406 (default_diagnostic_start_span_fn): New function.
7407 * diagnostic.h (diagnostic_start_span_fn): New typedef.
7408 (diagnostic_context::start_span): New field.
7409 (default_diagnostic_start_span_fn): New prototype.
7410
7411 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7412
7413 PR driver/69779
7414 * gcc.c (driver::finalize): Fix cleanup of "specs".
7415
7416 2016-02-12 David Malcolm <dmalcolm@redhat.com>
7417
7418 PR driver/69265
7419 PR driver/69453
7420 * gcc.c (driver::driver): Initialize m_option_suggestions.
7421 (driver::~driver): Clean up m_option_suggestions.
7422 (suggest_option): Convert to...
7423 (driver::suggest_option): ...this, and split out into
7424 driver::build_option_suggestions and find_closest_string.
7425 (driver::build_option_suggestions): New function, from
7426 first half of suggest_option. Special-case
7427 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
7428 the sanitizer_opts array. For options of enum types, add the
7429 various enum values to the candidate strings.
7430 (driver::handle_unrecognized_options): Remove "const".
7431 * gcc.h (driver::handle_unrecognized_options): Likewise.
7432 (driver::build_option_suggestions): New decl.
7433 (driver::suggest_option): New decl.
7434 (driver::m_option_suggestions): New field.
7435 * opts-common.c (add_misspelling_candidates): New function.
7436 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
7437 and make non-static.
7438 * opts.h (sanitizer_opts): New array decl.
7439 (add_misspelling_candidates): New function decl.
7440 * spellcheck.c (find_closest_string): New function.
7441 * spellcheck.h (find_closest_string): New function decl.
7442
7443 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7444
7445 PR rtl-optimization/69764
7446 PR rtl-optimization/69771
7447 * optabs.c (expand_binop_directly): For shift_optab_p, force
7448 convert_modes with VOIDmode if xop1 has VOIDmode.
7449
7450 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
7451
7452 PR target/69729
7453 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
7454 to correctly determine instrumentation thunks.
7455
7456 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR ipa/69241
7459 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
7460 type by reference, force lhs on the call.
7461
7462 PR ipa/68672
7463 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
7464 Compute retval and retbnd early in all cases if split_part_return_p
7465 and return_bb is not EXIT. Remove all clobber stmts and reset
7466 all debug stmts that refer to SSA_NAMEs defined in split part,
7467 except if it is retval, in that case replace the old retval with the
7468 lhs of the call to the split part.
7469
7470 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7471
7472 revert:
7473 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7474
7475 PR middle-end/66726
7476 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7477 whose result is used in PHI.
7478 (maybe_optimize_range_tests): Likewise.
7479 (final_range_test_p): Likweise.
7480
7481 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7482
7483 PR middle-end/66726
7484 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7485 whose result is used in PHI.
7486 (maybe_optimize_range_tests): Likewise.
7487 (final_range_test_p): Likweise.
7488
7489 2016-02-12 Jakub Jelinek <jakub@redhat.com>
7490
7491 * cgraph.c: Spelling fixes - behaviour -> behavior and
7492 neighbour -> neighbor.
7493 * target.def: Likewise.
7494 * sel-sched.c: Likewise.
7495 * config/mips/mips.c: Likewise.
7496 * config/arc/arc.md: Likewise.
7497 * config/arm/cortex-a57.md: Likewise.
7498 * config/arm/arm.c: Likewise.
7499 * config/arm/neon.md: Likewise.
7500 * config/arm/arm-c.c: Likewise.
7501 * config/vms/vms-c.c: Likewise.
7502 * config/s390/s390.c: Likewise.
7503 * config/i386/znver1.md: Likewise.
7504 * config/i386/i386.c: Likewise.
7505 * config/ia64/hpux-unix2003.h: Likewise.
7506 * config/msp430/msp430.md: Likewise.
7507 * config/rx/rx.c: Likewise.
7508 * config/rx/rx.md: Likewise.
7509 * config/aarch64/aarch64-simd.md: Likewise.
7510 * config/aarch64/aarch64.c: Likewise.
7511 * config/nvptx/nvptx.c: Likewise.
7512 * config/bfin/bfin.c: Likewise.
7513 * config/cris/cris.opt: Likewise.
7514 * config/rs6000/rs6000.c: Likewise.
7515 * target.h: Likewise.
7516 * spellcheck.c: Likewise.
7517 * ira-build.c: Likewise.
7518 * tree-inline.c: Likewise.
7519 * builtins.c: Likewise.
7520 * lra-constraints.c: Likewise.
7521 * explow.c: Likewise.
7522 * hwint.h: Likewise.
7523 * targhooks.c: Likewise.
7524 * tree-vect-data-refs.c: Likewise.
7525 * expr.c: Likewise.
7526 * doc/tm.texi: Likewise.
7527 * doc/extend.texi: Likewise.
7528 * doc/install.texi: Likewise.
7529 * doc/md.texi: Likewise.
7530 * tree-ssa-tail-merge.c: Likewise.
7531 * sched-int.h: Likewise.
7532 * match.pd: Likewise.
7533 * sched-ebb.c: Likewise.
7534 * target.def (omit_struct_return_reg): Likewise.
7535 * gimple-ssa-isolate-paths.c: Likewise.
7536 (find_implicit_erroneous_behaviour): Renamed to...
7537 (find_implicit_erroneous_behavior): ... this.
7538 (find_explicit_erroneous_behaviour): Renamed to...
7539 (find_explicit_erroneous_behavior): ... this.
7540 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
7541
7542 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
7543
7544 PR rtl-optimization/64682
7545 PR rtl-optimization/69567
7546 PR rtl-optimization/69737
7547 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
7548 in I2 as well, just lose it.
7549
7550 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7551
7552 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
7553 New variable.
7554 (aarch64_last_printed_tune_string): Likewise.
7555 (aarch64_declare_function_name): Only output .arch assembler
7556 directive if it will be different from the previously output
7557 directive. Same for .tune comment but only if -dA is set.
7558 (aarch64_start_file): New function.
7559 (TARGET_ASM_FILE_START): Define.
7560
7561 2016-02-11 David Malcolm <dmalcolm@redhat.com>
7562
7563 PR plugins/69758
7564 * Makefile.in (PLUGIN_HEADERS): Add params.list.
7565
7566 2016-02-11 Jakub Jelinek <jakub@redhat.com>
7567
7568 PR target/65313
7569 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
7570 -Wmaybe-uninitialized warning.
7571
7572 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
7573
7574 PR target/69713
7575 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
7576
7577 2016-02-11 Richard Biener <rguenther@suse.de>
7578
7579 PR rtl-optimization/69291
7580 * ifcvt.c (noce_try_store_flag_constants): Do not allow
7581 subexpressions affected by changing the result.
7582
7583 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
7584
7585 PR target/69148
7586 * lra-constraints.c (curr_insn_transform): Find in/out operands
7587 for secondary memory moves. Update dups.
7588
7589 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7590
7591 PR tree-optimization/69652
7592 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
7593 to nested loop, did source re-formatting, skip debug statements,
7594 add check on statement with volatile operand, remove dead scalar
7595 statements.
7596
7597 2016-02-10 Jakub Jelinek <jakub@redhat.com>
7598 Patrick Palka <ppalka@gcc.gnu.org>
7599
7600 PR ipa/69241
7601 PR c++/69649
7602 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
7603 calls if the return type is TREE_ADDRESSABLE.
7604 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
7605 * ipa-split.c (split_function): Fix doubled "we" in comment.
7606 Use void return type for the split part even if
7607 !split_point->split_part_set_retval.
7608
7609 2016-02-10 Bin Cheng <bin.cheng@arm.com>
7610
7611 PR tree-optimization/68021
7612 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
7613 when computing the value of biv cand by itself.
7614
7615 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
7616
7617 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
7618 (cortexa57_tunings): Likewise.
7619 (cortexa72_tunings): Likewise.
7620 (arch_macro_fusion_pair_p): Add support for AES fusion.
7621 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
7622 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
7623 Allow virtual registers before reload so early scheduling works.
7624 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
7625 correct latency and pipeline.
7626 (cortex_a57_crypto_complex): Likewise.
7627 (cortex_a57_crypto_xor): Likewise.
7628 (define_bypass): Add AES bypass.
7629
7630 2016-02-10 Richard Biener <rguenther@suse.de>
7631
7632 PR tree-optimization/69726
7633 * passes.def: Add DCE pass before late uninit.
7634 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
7635 really fixup if-conversions job.
7636
7637 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
7638
7639 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
7640 (arm_cortex_a57_tune): Likewise.
7641 (aarch_macro_fusion_pair_p): Add support for AES fusion.
7642 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
7643
7644 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
7645
7646 * timevar.def (TV_PHASE_DBGINFO): Delete.
7647 (TV_PHASE_CHECK_DBGINFO): Likewise.
7648 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
7649
7650 2016-02-10 Richard Biener <rguenther@suse.de>
7651
7652 PR tree-optimization/69719
7653 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7654 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
7655
7656 2016-02-09 Andrew Pinski <apinski@cavium.com>
7657
7658 PR tree-opt/69282
7659 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
7660 get_vcond_mask_icode returns false.
7661
7662 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7663
7664 PR target/68404
7665 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
7666 an ADDIS that adds a pointer to a large constant that sets the
7667 upper16 bits with a load operation.
7668
7669 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
7670
7671 PR target/68532
7672 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
7673 order.
7674 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
7675 endian.
7676 (vzipq_s16): Likewise.
7677 (vzipq_s32): Likewise.
7678 (vzipq_f32): Likewise.
7679 (vzipq_u8): Likewise.
7680 (vzipq_u16): Likewise.
7681 (vzipq_u32): Likewise.
7682 (vzipq_p8): Likewise.
7683 (vzipq_p16): Likewise.
7684
7685 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
7686
7687 PR target/68532
7688 * config/arm/arm.c (neon_endian_lane_map): New function.
7689 (neon_vector_pair_endian_lane_map): New function.
7690 (arm_evpc_neon_vuzp): Allow for big endian lane order.
7691 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
7692 endian.
7693 (vuzpq_s16): Likewise.
7694 (vuzpq_s32): Likewise.
7695 (vuzpq_f32): Likewise.
7696 (vuzpq_u8): Likewise.
7697 (vuzpq_u16): Likewise.
7698 (vuzpq_u32): Likewise.
7699 (vuzpq_p8): Likewise.
7700 (vuzpq_p16): Likewise.
7701
7702 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
7703
7704 PR target/69634
7705 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
7706 debug insns.
7707
7708 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
7709
7710 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
7711 truncate const_int operand 1 to QImode.
7712
7713 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
7714
7715 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
7716 corresponding to an abnormal edge.
7717
7718 2016-02-09 Tom de Vries <tom@codesourcery.com>
7719
7720 PR tree-optimization/69599
7721 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
7722 function.
7723 (find_func_aliases_for_builtin_call, find_func_clobbers)
7724 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
7725 partition.
7726
7727 2016-02-09 Richard Biener <rguenther@suse.de>
7728
7729 PR tree-optimization/69715
7730 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
7731 LHS on calls as non-rewritable.
7732
7733 2016-02-09 Tom de Vries <tom@codesourcery.com>
7734
7735 PR lto/69707
7736 * lto-wrapper.c (append_diag_options): New function.
7737 (compile_offload_image): Call append_diag_options.
7738
7739 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
7740
7741 PR other/69722
7742 * doc/extend.texi (Flag Output Operands): Correct sectioning.
7743 Minor copy-edit to fix verb tenses.
7744
7745 2016-02-08 Jakub Jelinek <jakub@redhat.com>
7746
7747 PR tree-optimization/69209
7748 * ipa-split.c (split_function): If split part is not
7749 returning retval, retval has gimple type but is not
7750 gimple value, force it into a SSA_NAME first.
7751
7752 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
7753
7754 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
7755 outdated section.
7756
7757 2016-02-08 Jason Merrill <jason@redhat.com>
7758
7759 PR c++/69631
7760 * convert.c (convert_to_integer_1): Check dofold on truncation
7761 distribution.
7762 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
7763 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
7764 Rename from *_nofold.
7765 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
7766 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
7767
7768 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
7769
7770 PR target/60410
7771 * tree.c (build_common_tree_nodes): Remove short_double argument.
7772 All callers changed.
7773 * tree.h (build_common_tree_nodes): Adjust declaration.
7774 * doc/invoke.texi (-fshort-double): Remove documentation.
7775 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7776 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
7777 * lto-wrapper.c (merge_and_complain, append_compiler_options)
7778 (append_linker_options): Don't handle OPT_fshort_double.
7779
7780 PR rtl-optimization/68730
7781 * lra-remat.c (insn_to_cand_activation): New static variable.
7782 (lra_remat): Allocate and free it.
7783 (create_cand): New arg activation. Initialize a field in
7784 insn_to_cand_activation if it is nonnull.
7785 (create_cands): Pass the activation insn to create_cand when making
7786 a candidate involving an output reload. Reorganize code a little.
7787 (do_remat): Keep track of active status of candidates in a separate
7788 bitmap.
7789
7790 2016-02-08 Richard Biener <rguenther@suse.de>
7791
7792 PR tree-optimization/69719
7793 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7794 Properly use absolute of the difference of the two offsets to
7795 compare or adjust the segment length.
7796
7797 2016-02-08 Richard Biener <rguenther@suse.de>
7798 Jeff Law <law@redhat.com>
7799
7800 PR target/68273
7801 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
7802 types for anonymous SSA names.
7803
7804 2016-02-08 Richard Biener <rguenther@suse.de>
7805
7806 PR rtl-optimization/69274
7807 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
7808
7809 2016-02-08 Jeff Law <law@redhat.com>
7810
7811 PR tree-optimization/65917
7812 * tree-ssa-dom.c (record_temporary_equivalences): Record both
7813 equivalences from if (x == y) style conditionals.
7814 (loop_depth_of_name): Remove.
7815 (record_equality): Remove loop depth check.
7816 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
7817 (const_and_copies::record_const_or_copy_raw): New member function.
7818 * tree-ssa-scopedtables.c
7819 (const_and_copies::record_const_or_copy_raw): New, factored out of
7820 (const_and_copies::record_const_or_copy): Call new member function.
7821
7822 2016-02-05 Jeff Law <law@redhat.com>
7823
7824 PR tree-optimization/68541
7825 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
7826 (count_stmts_in_block): New function.
7827 (poor_ifcvt_candidate_code): Likewise.
7828 (is_feasible_trace): Add some heuristics to determine when path
7829 splitting is profitable.
7830 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
7831 is a diamond with a single exit.
7832
7833 2016-02-05 Martin Sebor <msebor@redhat.com>
7834
7835 PR c++/69662
7836 * doc/invoke.texi: Update -Wplacement-new to take an optional
7837 argument.
7838
7839 2016-02-06 Richard Henderson <rth@redhat.com>
7840
7841 PR c/69643
7842 * tree.c (tree_nop_conversion_p): Do not strip casts into or
7843 out of non-standard address spaces.
7844
7845 2016-02-05 Jakub Jelinek <jakub@redhat.com>
7846
7847 PR rtl-optimization/69691
7848 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
7849
7850 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
7851
7852 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
7853 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
7854 (*ieee128_mfvsrd_64bit): Likewise.
7855 (*ieee128_mfvsrd_32bit): Likewise.
7856
7857 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7858
7859 PR target/69369
7860 Revert r232560:
7861 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7862
7863 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7864 instrumented_version.
7865
7866 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
7867
7868 * doc/invoke.texi (Optimize Options): In table of --param options
7869 rename second occurrence of tracer-min-branch-ratio to
7870 tracer-min-branch-probability, rename
7871 tracer-min-branch-ratio-feedback to
7872 tracer-min-branch-probability-feedback and clarify description,
7873 rename sched-spec-state-edge-prob-cutoff to
7874 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
7875 to selsched-insns-to-rename, rename lto-minpartition to
7876 lto-min-partition, delete reorder-blocks-duplicate and
7877 reorder-blocks-duplicate-feedback.
7878
7879 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7880
7881 * config/s390/s390.c (s390_register_info_set_ranges): Remove
7882 superfluous loops.
7883
7884 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
7885
7886 * doc/extend.texi: S/390: Correct some typos.
7887
7888 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7889
7890 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
7891
7892 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7893
7894 PR target/69625
7895 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
7896 (s390_register_info_gprtofpr): Use new macros above.
7897 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
7898 its name.
7899 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
7900 its name. Adjust restore and save gpr ranges.
7901 (s390_register_info_set_ranges): New function.
7902 (s390_register_info): Use new macros above. Call
7903 s390_register_info_set_ranges.
7904 (s390_optimize_register_info): Likewise.
7905 (s390_hard_regno_rename_ok): Use new macros.
7906 (s390_hard_regno_scratch_ok): Likewise.
7907 (s390_emit_epilogue): Likewise.
7908 (s390_can_use_return_insn): Likewise.
7909 (s390_optimize_prologue): Likewise.
7910 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
7911
7912 2016-02-05 Jakub Jelinek <jakub@redhat.com>
7913
7914 PR bootstrap/69677
7915 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
7916 alignment fixes.
7917 (ix86_option_override_internal): Disable TARGET_STV even for
7918 -m{incoming,preferred}-stack-boundary=3.
7919
7920 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7921
7922 * config.gcc: Mark deprecated rtems targets as obsolete.
7923
7924 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
7925
7926 PR rtl-optimization/64682
7927 PR rtl-optimization/69567
7928 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
7929 before I2 only if the register is both used and set in I2.
7930
7931 2016-02-04 DJ Delorie <dj@redhat.com>
7932
7933 * config/msp430/msp430.c (msp430_start_function): Add function type.
7934
7935 2016-02-04 Jakub Jelinek <jakub@redhat.com>
7936
7937 PR fortran/69368
7938 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
7939
7940 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
7941
7942 PR rtl-optimization/69577
7943 Revert:
7944 2015-10-29 Richard Henderson <rth@redhat.com>
7945
7946 PR target/68124
7947 PR rtl-opt/67609
7948 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7949 sse check to the exact conditions of PR 67609.
7950
7951 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7952
7953 PR target/69667
7954 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
7955 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
7956 not allowed into the traditional Altivec registers.
7957 (movtd_64bit_nodm): Likewise.
7958 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7959
7960 2016-02-04 David Malcolm <dmalcolm@redhat.com>
7961
7962 * config/aarch64/cortex-a57-fma-steering.c
7963 (aarch64_register_fma_steering): Remove "static" from arguments
7964 to register_pass.
7965
7966 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
7967
7968 PR target/69619
7969 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
7970 twice when complex.
7971
7972 2016-02-04 Mike Frysinger <vapier@gentoo.org>
7973
7974 * doc/invoke.texi: Delete -mno-fma4.
7975
7976 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
7977
7978 PR rtl-optimization/69577
7979 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
7980 (find_subregs_of_mode): Update accordingly. Iterate over partial
7981 definitions.
7982
7983 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
7984
7985 * config/arm/arm-protos.h (neon_reinterpret): Remove.
7986 * config/arm/arm.c (neon_reinterpret): Remove.
7987 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
7988 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
7989 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
7990 vreinterpretti): Remove.
7991 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
7992 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7993 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
7994 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
7995 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
7996 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
7997 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
7998 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
7999 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
8000 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
8001 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
8002 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
8003 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
8004 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
8005 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
8006 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
8007 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
8008 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
8009 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
8010 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
8011 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
8012 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
8013 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
8014 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
8015 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
8016 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
8017 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
8018 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
8019 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
8020 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
8021 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
8022 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
8023 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
8024 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
8025 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
8026 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
8027 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
8028 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
8029 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
8030 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
8031 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8032 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8033 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8034 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8035 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8036 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8037 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8038 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8039 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8040 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8041 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8042 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8043 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8044 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8045 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8046 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8047 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8048 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8049 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8050 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8051 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8052 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8053 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8054 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8055 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8056 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8057 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8058 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8059 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8060 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8061 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8062 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8063 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8064 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8065 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8066 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8067 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8068 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8069 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8070 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8071 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8072 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8073 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8074 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8075 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8076 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8077 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8078 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8079 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8080 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8081 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8082 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8083 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8084 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8085 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8086 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8087 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8088 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8089 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8090 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8091 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8092 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8093 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8094
8095 2016-02-04 Martin Liska <mliska@suse.cz>
8096
8097 PR sanitizer/69276
8098 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8099 that are gimple_store_p.
8100 (maybe_instrument_call): Likewise.
8101
8102 2016-02-04 Bin Cheng <bin.cheng@arm.com>
8103
8104 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8105 register scaling out of memory reference and comment why.
8106
8107 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8108
8109 PR target/65932
8110 PR target/67714
8111 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8112 folding the source of a SET.
8113
8114 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8115
8116 PR target/65932
8117 PR target/67714
8118 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8119 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8120
8121 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
8122
8123 PR target/65932
8124 PR target/67714
8125 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8126 HImode.
8127
8128 2016-02-04 Christian Bruel <christian.bruel@st.com>
8129
8130 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8131 * config/arm/arm.c (arm_set_current_function): Likewise.
8132
8133 2016-02-04 Jakub Jelinek <jakub@redhat.com>
8134 Ilya Enkovich <enkovich.gnu@gmail.com>
8135 H.J. Lu <hongjiu.lu@intel.com>
8136
8137 PR target/69454
8138 * config/i386/i386.c (convert_scalars_to_vector): Remove
8139 stack alignment fixes.
8140 (ix86_option_override_internal): Disable TARGET_STV if stack
8141 might not be aligned enough.
8142 (ix86_minimum_alignment): Assert that TARGET_STV is false.
8143
8144 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
8145
8146 * gcc/config/i386/x86-tune.def: Disable default prefetching
8147 for -march=znver1.
8148
8149 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8150 Vladimir Makarov <vmakarov@redhat.com>
8151
8152 PR target/69461
8153 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8154 in validating fused toc addresses.
8155
8156 2016-02-03 Jakub Jelinek <jakub@redhat.com>
8157
8158 PR c/69627
8159 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8160 range->m_caret fields if range->m_show_caret_p is false.
8161
8162 PR target/69644
8163 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8164 Force oldval into register if it does not satisfy reg_or_short_operand
8165 predicate. Fix up formatting.
8166
8167 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
8168 Alexandre Oliva <aoliva@redhat.com>
8169
8170 PR target/69461
8171 * lra-constraints.c (simplify_operand_subreg): Check additionally
8172 address validity after potential reloading.
8173 (process_address_1): Check insns validity. In case of failure do
8174 nothing.
8175
8176 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
8177
8178 PR target/69118
8179 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8180 Fix target.
8181
8182 2016-02-02 Jakub Jelinek <jakub@redhat.com>
8183
8184 * wide-int.cc (canonize_uhwi): New function.
8185 (wi::divmod_internal): Use it.
8186
8187 2016-02-02 James Norris <jnorris@codesourcery.com
8188
8189 * gimplify.c (omp_notice_variable): Add usage check.
8190
8191 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8192
8193 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8194 like LE, GE, LT, GT when emitting relational operator.
8195
8196 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
8197
8198 * ira-costs.c (find_costs_and_classes): Add extra argument.
8199 * target.def (ira_change_pseudo_allocno_class): Add parameter.
8200 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8201 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8202 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8203 Add best_class parameter, and return it if not ALL_REGS.
8204 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8205 Add parameter.
8206 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8207 Update target hook.
8208
8209 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
8210
8211 * config/aarch64/aarch64.c
8212 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8213 (aarch64_ira_change_pseudo_allocno_class): New function.
8214
8215 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
8216
8217 PR target/67032
8218 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8219
8220 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8221
8222 * config/avr/avr.c (avr_option_override): Set
8223 PARAM_ALLOW_STORE_DATA_RACES to 1.
8224
8225 2016-02-02 Richard Biener <rguenther@suse.de>
8226
8227 PR tree-optimization/69595
8228 * match.pd: Add range test simplifications to true/false.
8229
8230 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
8231
8232 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8233 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8234 instead.
8235
8236 2016-02-02 Richard Biener <rguenther@suse.de>
8237
8238 PR tree-optimization/69606
8239 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8240 info on the result before moving a stmt.
8241
8242 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
8243
8244 PR middle-end/68542
8245 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8246 branch with vector comparison.
8247 * config/i386/sse.md (VI48_AVX): New mode iterator.
8248 (define_expand "cbranch<mode>4): Add support for conditional branch
8249 with vector comparison.
8250 * tree-vect-loop.c (optimize_mask_stores): New function.
8251 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8252 has_mask_store field of vect_info.
8253 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8254 vectorized loops having masked stores after vec_info destroy.
8255 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8256 correspondent macros.
8257 (optimize_mask_stores): Add prototype.
8258
8259 2016-02-02 Alan Modra <amodra@gmail.com>
8260
8261 PR target/69548
8262 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8263 allow subregs.
8264
8265 2016-02-02 Alan Modra <amodra@gmail.com>
8266
8267 PR target/68662
8268 * config/rs6000/rs6000.c (need_toc_init): New var, set it
8269 whenever toc_label_name used.
8270 (rs6000_file_start): Don't set up toc section here,
8271 (rs6000_output_function_epilogue): do so here instead,
8272 (rs6000_xcoff_file_start): and here.
8273 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8274 (load_toc_aix_di): Likewise.
8275
8276 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8277
8278 PR rtl-optimization/69592
8279 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8280 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8281 (num_sign_bit_copies_binary_arith_p): New inline function.
8282 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8283
8284 2016-02-01 Jeff Law <law@redhat.com>
8285
8286 PR tree-optimization/69580
8287 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8288 * tree-ssa-threadbackward.c
8289 (fsm_find_control_statement_thread_paths): Do not try to walk
8290 through large PHI nodes.
8291
8292 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8293
8294 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8295 when count is incremented above limit, don't analyze further
8296 insns afterwards.
8297
8298 * omp-low.c (oacc_parse_default_dims): Avoid
8299 -Wsign-compare warning, make sure value fits into int
8300 rather than just unsigned int.
8301
8302 2016-02-01 Bin Cheng <bin.cheng@arm.com>
8303
8304 PR tree-optimization/67921
8305 * fold-const.c (split_tree): New parameters. Convert pointer
8306 type variable part to proper type before negating.
8307 (fold_binary_loc): Pass new arguments to split_tree.
8308
8309 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
8310
8311 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8312 (nvptx_goacc_validate_dims): Extend to handle global defaults.
8313 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8314 * doc/tm.texti: Rebuilt.
8315 * doc/invoke.texi (fopenacc-dim): Document.
8316 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8317 (append_compiler_options): Likewise.
8318 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8319 (oacc_parse_default_dims): New.
8320 (oacc_validate_dims): Add USED arg. Select non-unity default when
8321 possible.
8322 (oacc_loop_fixed_partitions): Return mask of used partitions.
8323 (oacc_loop_auto_partitions): Emit dump info.
8324 (oacc_loop_partition): Return mask of used partitions.
8325 (execute_oacc_device_lower): Parse default dimension arg. Adjust
8326 loop partitioning and validation calls.
8327
8328 2016-02-01 Richard Biener <rguenther@suse.de>
8329
8330 PR middle-end/69556
8331 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8332
8333 2016-02-01 Richard Biener <rguenther@suse.de>
8334
8335 PR tree-optimization/69574
8336 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8337 of asserting return chrec_dont_know.
8338
8339 2016-02-01 Martin Liska <mliska@suse.cz>
8340
8341 * mem-stats-traits.h: Add copyright header.
8342 * mem-stats.h: Likewise.
8343
8344 2016-02-01 Richard Biener <rguenther@suse.de>
8345
8346 PR tree-optimization/69579
8347 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8348 Do not propagate through abnormal PHI results.
8349
8350 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
8351
8352 * postreload.c (reload_cse_simplify): Remove dead code.
8353
8354 2016-02-01 Jakub Jelinek <jakub@redhat.com>
8355
8356 PR rtl-optimization/69570
8357 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8358 if there is more than one set, not if there is a single set.
8359
8360 2016-02-01 Richard Henderson <rth@redhat.com>
8361
8362 PR rtl-opt/69535
8363 * combine.c (make_compound_operation): When looking through a
8364 subreg, make sure to re-extend to the width of the outer mode.
8365
8366 2016-01-30 Jakub Jelinek <jakub@redhat.com>
8367
8368 PR tree-optimization/69546
8369 * wide-int.cc (wi::divmod_internal): For unsigned division
8370 where both operands fit into uhwi, if o1 is 1 and o0 has
8371 msb set, if divident_prec is larger than bits per hwi,
8372 clear another quotient word and return 2 instead of 1.
8373 Similarly for remainder with msb in HWI set, if dividend_prec
8374 is larger than bits per hwi.
8375
8376 2016-01-29 Martin Jambor <mjambor@suse.cz>
8377
8378 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8379 Use short lowercase names.
8380 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
8381 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8382 acq_rel one. Protect warning agains segfaults if
8383 get_memory_order_name returns NULL.
8384 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8385 with release semantics. Do not warn if get_memory_order already did.
8386 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
8387 semantics. Fix check for relaxed or acquire semantics. Do not warn
8388 if get_memory_order already did.
8389
8390 2016-01-29 Sebastian Pop <s.pop@samsung.com>
8391
8392 * doc/install.texi: Document that isl-0.16 is supported.
8393
8394 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
8395
8396 PR target/69299
8397 * config/i386/constraints.md (Bm): Describe as special memory
8398 constraint.
8399 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
8400 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8401 * genpreds.c (struct constraint_data): Add is_special_memory.
8402 (have_special_memory_constraints, special_memory_start): New
8403 static vars.
8404 (special_memory_end): Ditto.
8405 (add_constraint): Add new arg is_special_memory. Add code to
8406 process its true value. Update have_special_memory_constraints.
8407 (process_define_constraint): Pass the new arg.
8408 (process_define_register_constraint): Ditto.
8409 (choose_enum_order): Process special memory.
8410 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
8411 function insn_extra_special_memory_constraint.
8412 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8413 * gensupport.c (process_rtx): Process
8414 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8415 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
8416 * ira-lives.c (single_reg_class): Use
8417 insn_extra_special_memory_constraint.
8418 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
8419 * lra-constraints.c (process_alt_operands): Ditto.
8420 (curr_insn_transform): Use insn_extra_special_memory_constraint.
8421 * recog.c (asm_operand_ok, preprocess_constraints): Process
8422 CT_SPECIAL_MEMORY.
8423 * reload.c (find_reloads): Ditto.
8424 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
8425 * stmt.c (parse_input_constraint): Use
8426 insn_extra_special_memory_constraint.
8427
8428 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
8429
8430 PR target/69530
8431 * lra-splill.c (lra_final_code_change): Revert r229087 by
8432 removing all sub-registers.
8433
8434 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
8435
8436 PR target/65604
8437 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
8438
8439 2016-01-29 Jakub Jelinek <jakub@redhat.com>
8440
8441 PR target/69551
8442 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
8443 SSE1, copy target into the temporary reg first before recursing
8444 on it.
8445
8446 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
8447
8448 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
8449 with vm.
8450
8451 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
8452
8453 * ginclude/stdarg.h: Test __cplusplus instead of
8454 __GXX_EXPERIMENTAL_CXX0X__.
8455
8456 2016-01-29 Richard Biener <rguenther@suse.de>
8457
8458 PR tree-optimization/69547
8459 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
8460 Do not mark clobbers necessary.
8461 (mark_all_reaching_defs_necessary_1): Likewise.
8462
8463 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8464
8465 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
8466 declaration name with %qs and print it in both error messages.
8467 Also fix indentation.
8468
8469 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8470
8471 PR other/69006
8472 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
8473 trailing blank line from error message.
8474
8475 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
8476
8477 PR c++/69462
8478 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
8479 for C++-11.
8480
8481 2016-01-29 Richard Biener <rguenther@suse.de>
8482
8483 PR middle-end/69537
8484 * match.pd: Allow all integral types when simplifying a
8485 widening or sign-changing conversion.
8486
8487 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8488
8489 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
8490 back to setting codegen_error to fail codegen.
8491
8492 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
8493
8494 PR target/69459
8495 * config/i386/constraints.md (C): Only accept constant zero operand.
8496 (BC): New constraint.
8497 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
8498 instead of C constraint.
8499 * doc/md.texi (Machine Constraints): Update description
8500 of C constraint.
8501
8502 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
8503
8504 PR target/68400
8505 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
8506
8507 2016-01-28 Jakub Jelinek <jakub@redhat.com>
8508
8509 PR middle-end/69542
8510 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
8511 non-debug insns.
8512
8513 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
8514
8515 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
8516 branches if using guessed profile.
8517
8518 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
8519
8520 * graphite-optimize-isl.c (optimize_isl): Fix dump.
8521
8522 2016-01-28 Richard Henderson <rth@redhat.com>
8523
8524 PR target/69305
8525 * config/aarch64/aarch64-modes.def (CC_Cmode): New
8526 * config/aarch64/aarch64-protos.h: Update.
8527 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
8528 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
8529 (aarch64_get_condition_code_1): Handle CC_Cmode.
8530 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
8531 (*add<mode>3_compareC_cconly_imm): New.
8532 (*add<mode>3_compareC_cconly): New.
8533 (*add<mode>3_compareC_imm): New.
8534 (add<mode>3_compareC): New.
8535 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
8536 to be first. Use aarch64_carry_operation.
8537 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
8538 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
8539 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
8540 (subti3): Use subdi3_compare1.
8541 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
8542 (sub<mode>3_compare1): New.
8543 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
8544 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
8545 (*subsi3_carryin_uxtw): Likewise.
8546 (*ngc<mode>, *ngcsi_uxtw): Likewise.
8547 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
8548 * config/aarch64/iterators.md (DWI): New.
8549 * config/aarch64/predicates.md (aarch64_carry_operation): New.
8550 (aarch64_borrow_operation): New.
8551
8552 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8553
8554 * graphite-optimize-isl.c (optimize_isl): Print a different debug
8555 message when isl does not return a valid schedule.
8556
8557 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8558
8559 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8560 Remove comments from class declarations: they are already in the code
8561 close by the defs.
8562
8563 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8564
8565 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
8566 codegen_error_p.
8567 (ternary_op_to_tree): Same.
8568 (unary_op_to_tree): Same.
8569 (nary_op_to_tree): Same.
8570 (gcc_expression_from_isl_expr_op): Same.
8571 (gcc_expression_from_isl_expression): Same.
8572 (graphite_create_new_loop): Same.
8573 (graphite_create_new_loop_guard): Same.
8574 (build_iv_mapping): Same.
8575 (graphite_create_new_guard): Same.
8576 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
8577 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
8578
8579 2016-01-28 Sebastian Pop <s.pop@samsung.com>
8580
8581 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
8582 instead of setting codegen_error to fail codegen.
8583
8584 2016-01-28 Jason Merrill <jason@redhat.com>
8585
8586 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
8587
8588 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8589
8590 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8591 Remove CONST_INT_P check in CCMP cost calculation.
8592
8593 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8594
8595 * config/aarch64/aarch64.c (generic_vector_cost):
8596 Set vec_permute_cost.
8597 (cortexa57_vector_cost): Likewise.
8598 (exynosm1_vector_cost): Likewise.
8599 (xgene1_vector_cost): Likewise.
8600 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
8601 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
8602 Add vec_permute_cost entry.
8603
8604 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
8605
8606 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
8607 immediate as %1.
8608 (add<mode>3_compare0): Likewise.
8609 (addsi3_compare0_uxtw): Likewise.
8610 (add<mode>3nr_compare0): Likewise.
8611 (compare_neg<mode>): Likewise.
8612 (<optab><mode>3): Likewise.
8613
8614 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
8615
8616 * tree-vect-stmts.c (vectorizable_comparison): Add
8617 NULL check for vectype.
8618
8619 2016-01-28 Richard Biener <rguenther@suse.de>
8620
8621 PR tree-optimization/69466
8622 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8623 Account for PHIs we couldn't duplicate.
8624
8625 2016-01-28 Martin Liska <mliska@suse.cz>
8626
8627 PR pch/68758
8628 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
8629 instead of ENABLE_VALGRIND_CHECKING.
8630
8631 2016-01-27 Richard Henderson <rth@redhat.com>
8632
8633 PR rtl-opt/69447
8634 * lra-remat.c (subreg_regs): New.
8635 (dump_candidates_and_remat_bb_data): Dump it.
8636 (operand_to_remat): Reject if operand in subreg_regs.
8637 (set_bb_regs): Collect subreg_regs.
8638 (lra_remat): Init and free subreg_regs. Compute
8639 calculate_local_reg_remat_bb_data before create_cands.
8640
8641 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
8642
8643 PR target/68986
8644 * config/i386/i386.c (ix86_update_stack_boundary): Don't
8645 change stack_alignment_needed for __tls_get_addr call.
8646
8647 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
8648
8649 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
8650
8651 2016-01-27 Jeff Law <law@redhat.com>
8652
8653 PR tree-optimization/68398
8654 PR tree-optimization/69196
8655 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
8656 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
8657 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8658 Only count PHIs in the last block in the path. The others will
8659 const/copy propagate away. Add heuristic to allow more irreducible
8660 subloops to be created when it is likely profitable to do so.
8661
8662 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8663 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
8664 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
8665
8666 2016-01-27 Jakub Jelinek <jakub@redhat.com>
8667
8668 PR lto/69254
8669 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
8670 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
8671 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
8672 * tree-streamer-in.c: Include asan.h.
8673 (streamer_get_builtin_tree): For builtins in sanitizer
8674 range call initialize_sanitizer_builtins and retry.
8675
8676 2016-01-27 Ian Lance Taylor <iant@google.com>
8677
8678 * common.opt (fkeep-gc-roots-live): New undocumented option.
8679 * tree-ssa-loop-ivopts.c (add_candidate_1): If
8680 -fkeep-gc-roots-live, skip pointers.
8681 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
8682 NULL.
8683
8684 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
8685
8686 PR target/69512
8687 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
8688 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
8689
8690 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
8691
8692 PR target/68380
8693 * configure.ac: NetBSD provides SSP in its C library.
8694 * configure: Updated.
8695
8696 2016-01-27 Richard Biener <rguenther@suse.de>
8697
8698 PR tree-optimization/69166
8699 * tree-vect-loop.c (vect_is_simple_reduction): Always check
8700 reduction code for commutativity / associativity.
8701
8702 2016-01-27 Martin Jambor <mjambor@suse.cz>
8703
8704 PR tree-optimization/69355
8705 * tree-sra.c (analyze_access_subtree): Correct hole detection when
8706 total_scalarization fails.
8707
8708 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
8709
8710 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
8711 power9.
8712
8713 2016-01-27 Christian Bruel <christian.bruel@st.com>
8714
8715 PR target/69245
8716 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
8717 Move arm_reset_previous_fndecl and set_target_option_current_node in
8718 the conditional part. Call save_restore_target_globals.
8719 * config/arm/arm.c (arm_set_current_function):
8720 Refactor to better support #pragma target and attribute mix.
8721 Call save_restore_target_globals.
8722 * config/arm/arm-protos.h (save_restore_target_globals): New function.
8723
8724 2016-01-27 Martin Liska <mliska@suse.cz>
8725
8726 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
8727 reference for an HSA kernel and its host function.
8728
8729 2016-01-27 Jakub Jelinek <jakub@redhat.com>
8730
8731 PR tree-optimization/69399
8732 * wide-int.h (wi::lrshift): For larger precisions, only
8733 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
8734
8735 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
8736
8737 * config/arc/predicates.md (proper_comparison_operator): Reject
8738 constant-constant comparison.
8739
8740 2016-01-26 Tom de Vries <tom@codesourcery.com>
8741
8742 PR tree-optimization/69110
8743 * tree-data-ref.c (initialize_data_dependence_relation): Handle
8744 DR_NUM_DIMENSIONS == 0.
8745
8746 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8747 Sebastian Pop <s.pop@samsung.com>
8748
8749 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
8750 isl_ast_op_cond and isl_ast_op_select.
8751 (gcc_expression_from_isl_expr_op): Same.
8752
8753 2016-01-26 Jason Merrill <jason@redhat.com>
8754
8755 PR c++/68782
8756 * tree.c (recompute_constructor_flags): Split out from
8757 build_constructor.
8758 (verify_constructor_flags): New.
8759 * tree.h: Declare them.
8760
8761 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
8762
8763 PR rtl-optimization/69217
8764 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
8765 are no TYPE_FIELDS set for the record type.
8766
8767 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8768
8769 PR target/68662
8770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
8771 toc_label_name unconditionally.
8772 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
8773 SYMBOL_REF string. Use toc_label_name instead of constructing
8774 LCTOC1.
8775 (rs6000_elf_declare_function_name): Use toc_label_name instead of
8776 constructing LCTOC1.
8777
8778 2016-01-26 Martin Sebor <msebor@redhat.com>
8779
8780 PR other/69477
8781 * doc/extend.texi (Common Type Attributes): Move text that talks about
8782 attribute packed from attribute aligned to the section discussing
8783 the former attribute for clarity.
8784
8785 2016-01-26 Richard Henderson <rth@redhat.com>
8786
8787 PR middle-end/60908
8788 * trans-mem.c (tm_region_init): Mark entry block as visited.
8789
8790 2016-01-26 David Malcolm <dmalcolm@redhat.com>
8791
8792 PR other/69006
8793 * diagnostic-show-locus.c (layout::print_source_line): Replace
8794 call to pp_newline with call to layout::print_newline.
8795 (layout::print_annotation_line): Likewise.
8796 (layout::move_to_column): Likewise.
8797 (layout::print_any_fixits): After printing any fixits, print a
8798 trailing newline, if necessary.
8799 (layout::print_newline): New method, resetting any colorization
8800 before a newline.
8801 (diagnostic_show_locus): Move the pp_newline to before the
8802 early bailout. Remove dummy block enclosing the layout instance.
8803 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
8804 of pp_newline_and_flush with pp_flush.
8805 (diagnostic_append_note): Delete use of pp_newline.
8806 (diagnostic_append_note_at_rich_loc): Delete.
8807 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
8808 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
8809 when newline characters are added to the buffer.
8810
8811 2016-01-26 Michael Matz <matz@suse.de>
8812
8813 * configure.ac (ac_cv_std_swap_in_utility): New test.
8814 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
8815 * configure: Regenerate.
8816 * config.in: Regenerate.
8817
8818 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
8819
8820 * config/arc/arc.md (cstoresi4): Force operand into register.
8821 (arcset<code>): Fix predicate.
8822 (arcsetltu): Likewise.
8823 (arcsetgeu): Likewise.
8824 (arcsethi): Likewise.
8825 (arcsetls): Likewise.
8826
8827 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8828
8829 PR tree-optimization/69483
8830 * gimple-fold.c (canonicalize_constructor_val): Return NULL
8831 if base has error_mark_node type.
8832
8833 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
8834
8835 PR target/68620
8836 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
8837 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
8838 New helper macros.
8839 (vget_lane_f16): Handle big-endian.
8840 (vgetq_lane_f16): Likewise.
8841 (vset_lane_f16): Likewise.
8842 (vsetq_lane_f16): Likewise.
8843 * config/arm/iterators.md (VQXMOV): Add V8HF.
8844 (VDQ): Add V4HF and V8HF.
8845 (V_reg): Handle V4HF and V8HF.
8846 (Is_float_mode): Likewise.
8847 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
8848 neon_vdup_nv8hf): New patterns.
8849 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
8850 Use VD_LANE iterator.
8851 (neon_vld1_dup<mode>): Use VQ2 iterator.
8852
8853 2016-01-26 Nathan Sidwell <nathan@acm.org>
8854
8855 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
8856 (set_oacc_fn_attrib): Add IS_KERNEL arg.
8857 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
8858 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
8859 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
8860 (oacc_validate_dims): Add LEVEL arg, don't return level.
8861 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
8862 oacc_validate_dims.
8863 (execute_oacc_device_lower): Adjust, add more dump output.
8864 * tree-ssa-loop.c (gate_oacc_kernels): Use
8865 oacc_fn_attrib_kernels_p.
8866 * tree-parloops.c (create_parallel_loop): Adjust
8867 set_oacc_fn_attrib call.
8868
8869 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8870
8871 PR lto/69254
8872 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
8873 (append_compiler_options): Handle -fcilkplus.
8874 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
8875
8876 2016-01-26 Nick Clifton <nickc@redhat.com>
8877
8878 PR target/66655
8879 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
8880 been marked as DECL_ONE_ONLY but we do not the means to make it
8881 so, then do not allow it to bind locally.
8882
8883 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8884
8885 PR lto/69254
8886 * opts.h (parse_sanitizer_options): New prototype.
8887 * opts.c (sanitizer_opts): New array.
8888 (parse_sanitizer_options): New function.
8889 (common_handle_option): Use parse_sanitizer_options.
8890
8891 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
8892
8893 PR target/68986
8894 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
8895 alignment adjustment to ...
8896 (ix86_update_stack_boundary): Here. Don't over-align stack for
8897 __tls_get_addr.
8898 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
8899 if __tls_get_addr is called.
8900
8901 2016-01-26 Christian Bruel <christian.bruel@st.com>
8902
8903 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
8904
8905 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
8906
8907 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
8908
8909 2016-01-26 Richard Biener <rguenther@suse.de>
8910
8911 PR middle-end/69467
8912 * match.pd: Guard X * CST CMP 0 pattern with single_use.
8913
8914 2016-01-26 Richard Biener <rguenther@suse.de>
8915
8916 PR tree-optimization/69452
8917 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
8918 (move_computations_dom_walker::before_dom_children): Rename
8919 to ...
8920 (move_computations_worker): This.
8921 (move_computations): Perform an RPO rather than a DOM walk.
8922
8923 2016-01-26 Jakub Jelinek <jakub@redhat.com>
8924
8925 PR target/69442
8926 * combine.c (combine_instructions): For REG_EQUAL note with
8927 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
8928 to the underlying register.
8929 * doc/rtl.texi (REG_EQUAL): Document the behavior of
8930 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
8931
8932 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
8933
8934 PR target/67896
8935 * config/aarch64/aarch64-builtins.c
8936 (aarch64_init_simd_builtin_types): Do not set structural
8937 equality to __Poly{8,16,64,128}_t types.
8938
8939 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
8940
8941 PR tree-optimization/69400
8942 * wide-int.cc (wi_pack): Take the precision as argument and
8943 perform canonicalization here rather than in the callers.
8944 Use the main loop to handle all full-width HWIs. Add a
8945 zero HWI if in_len isn't a full result.
8946 (wi::divmod_internal): Update accordingly.
8947 (wi::mul_internal): Likewise. Simplify.
8948
8949 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
8950 Sebastian Pop <s.pop@samsung.com>
8951
8952 * graphite-poly.c (apply_poly_transforms): Simplify.
8953 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
8954 (print_isl_map): Same.
8955 (print_isl_union_map): Same.
8956 (print_isl_schedule): New.
8957 (debug_isl_schedule): New.
8958 * graphite-dependences.c (scop_get_reads): Do not call
8959 isl_union_map_add_map that is undocumented isl functionality.
8960 (scop_get_must_writes): Same.
8961 (scop_get_may_writes): Same.
8962 (scop_get_original_schedule): Remove.
8963 (scop_get_dependences): Do not call isl_union_map_compute_flow that
8964 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
8965 (compute_deps): Remove.
8966 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
8967 (debug_schedule_ast): New.
8968 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
8969 set_separate_option.
8970 (graphite_regenerate_ast_isl): Add dump.
8971 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
8972 from scop->transformed_schedule.
8973 (graphite_regenerate_ast_isl): Add more dump.
8974 * graphite-optimize-isl.c (optimize_isl): Set
8975 scop->transformed_schedule. Check whether schedules are equal.
8976 (apply_poly_transforms): Move here.
8977 * graphite-poly.c (apply_poly_transforms): ... from here.
8978 (free_poly_bb): Static.
8979 (free_scop): Static.
8980 (pbb_number_of_iterations_at_time): Remove.
8981 (print_isl_ast): New.
8982 (debug_isl_ast): New.
8983 (debug_scop_pbb): New.
8984 * graphite-scop-detection.c (print_edge): Move.
8985 (print_sese): Move.
8986 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8987 (build_scop_scattering): Remove.
8988 (create_pw_aff_from_tree): Assert instead of bailing out.
8989 (add_condition_to_pbb): Remove unused code, do not fail.
8990 (add_conditions_to_domain): Same.
8991 (add_conditions_to_constraints): Remove.
8992 (build_scop_context): New.
8993 (add_iter_domain_dimension): New.
8994 (build_iteration_domains): Initialize pbb->iterators.
8995 Call add_conditions_to_domain.
8996 (nested_in): New.
8997 (loop_at): New.
8998 (index_outermost_in_loop): New.
8999 (index_pbb_in_loop): New.
9000 (outermost_pbb_in): New.
9001 (add_in_sequence): New.
9002 (add_outer_projection): New.
9003 (outer_projection_mupa): New.
9004 (add_loop_schedule): New.
9005 (build_schedule_pbb): New.
9006 (build_schedule_loop): New.
9007 (embed_in_surrounding_loops): New.
9008 (build_schedule_loop_nest): New.
9009 (build_original_schedule): New.
9010 (build_poly_scop): Call build_original_schedule.
9011 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
9012 (free_poly_dr): Remove.
9013 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
9014 (free_poly_bb): Remove.
9015 (debug_loop_vec): Remove.
9016 (print_isl_ast): Declare.
9017 (debug_isl_ast): Declare.
9018 (scop_do_interchange): Remove.
9019 (scop_do_strip_mine): Remove.
9020 (scop_do_block): Remove.
9021 (flatten_all_loops): Remove.
9022 (optimize_isl): Remove.
9023 (pbb_number_of_iterations_at_time): Remove.
9024 (debug_scop_pbb): Declare.
9025 (print_schedule_ast): Declare.
9026 (debug_schedule_ast): Declare.
9027 (struct scop): Remove schedule. Add original_schedule,
9028 transformed_schedule.
9029 (free_gimple_poly_bb): Remove.
9030 (print_generated_program): Remove.
9031 (debug_generated_program): Remove.
9032 (unify_scattering_dimensions): Remove.
9033 * sese.c (print_edge): ... here.
9034 (print_sese): ... here.
9035 (debug_edge): ... here.
9036 (debug_sese): ... here.
9037 * sese.h (print_edge): Declare.
9038 (print_sese): Declare.
9039 (dump_edge): Declare.
9040 (dump_sese): Declare.
9041
9042 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
9043 Sebastian Pop <s.pop@samsung.com>
9044
9045 * Makefile.in: Set ISLVER in site.exp.
9046
9047 2016-01-25 Jakub Jelinek <jakub@redhat.com>
9048
9049 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9050 DECL_VALUE_EXPR of new_var even for the non-array case. Look
9051 through DECL_VALUE_EXPR for expansion.
9052
9053 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
9054
9055 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9056 the frame info after reload completed.
9057
9058 2016-01-25 Jeff Law <law@redhat.com>
9059
9060 PR tree-optimization/69196
9061 PR tree-optimization/68398
9062 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9063 tree-ssa-threadupdate.c.
9064 (determine_bb_domination_status): Prototype
9065 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9066 (determine_bb_domination_status): No longer static.
9067 (valid_jump_thread_path): Remove code to detect characteristics
9068 of the jump thread path not associated with correctness.
9069 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9070 Correct test for thread path length. Count PHIs for real operands as
9071 statements that need to be copied. Do not count ASSERT_EXPRs.
9072 Look at all the blocks in the thread path. Compute and selectively
9073 filter thread paths based on threading through the latch, threading
9074 a multiway branch or crossing a multiway branch.
9075
9076 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9077
9078 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
9079 decl with __attribute__ ((unused)) annotation.
9080
9081 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
9082
9083 PR target/69421
9084 * tree-vect-stmts.c (vectorizable_condition): Check vectype
9085 of operands is compatible with a statement vectype.
9086
9087 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
9088
9089 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9090 improve wording for mixed storage order support.
9091
9092 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
9093
9094 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9095 (vcvt_u64_f64): Likewise.
9096 (vcvta_s64_f64): Likewise.
9097 (vcvta_u64_f64): Likewise.
9098 (vcvtm_s64_f64): Likewise.
9099 (vcvtm_u64_f64): Likewise.
9100 (vcvtn_s64_f64): Likewise.
9101 (vcvtn_u64_f64): Likewise.
9102 (vcvtp_s64_f64): Likewise.
9103 (vcvtp_u64_f64): Likewise.
9104
9105 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
9106
9107 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9108 (arc_init): Check validity mll64 option.
9109 (arc_save_restore): Use double load/store instruction.
9110 (arc_expand_movmem): Likewise.
9111 (arc_split_move): Don't split if we have double load/store
9112 instructions. Returns a boolean.
9113 (arc_process_double_reg_moves): Change function to return boolean
9114 instead of a sequence of instructions.
9115 (arc_dwarf_register_span): New function.
9116 * config/arc/arc-protos.h (arc_split_move): Change prototype.
9117 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9118 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9119 (*movdf_insn): Likewise.
9120 * config/arc/arc.opt (mll64): New option.
9121 * config/arc/predicates.md (even_register_operand): New predicate.
9122 * doc/invoke.texi (ARC Options): Add mll64 documentation.
9123
9124 2016-01-25 Richard Biener <rguenther@suse.de>
9125
9126 PR lto/69393
9127 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9128 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9129 DECL_NAMELESS.
9130 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9131
9132 2016-01-25 Richard Biener <rguenther@suse.de>
9133
9134 PR tree-optimization/69376
9135 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9136 flag.
9137 (VN_INFO_ANTI_RANGE_P): New inline.
9138 (VN_INFO_RANGE_TYPE): Likewise.
9139 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9140 SSA_NAME_ANTI_RANGE_P.
9141 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9142 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9143 Properly query VN_INFO_RANGE_TYPE.
9144
9145 2016-01-25 Nick Clifton <nickc@redhat.com>
9146
9147 PR target/66655
9148 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9149
9150 2016-01-23 Tom de Vries <tom@codesourcery.com>
9151
9152 PR tree-optimization/69426
9153 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9154 removed clobber.
9155
9156 2016-01-23 Jakub Jelinek <jakub@redhat.com>
9157
9158 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9159 "the the" with "the" in the comments.
9160 * ipa-devirt.c (build_type_inheritance_graph,
9161 update_type_inheritance_graph): Likewise.
9162 * tree.c (build_function_type_list_1): Likewise.
9163 * cfgloopmanip.c (scale_loop_profile): Likewise.
9164 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9165 * gimple-ssa-split-paths.c
9166 (find_block_to_duplicate_for_splitting_paths): Likewise.
9167 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9168 * expr.c (convert_move): Likewise.
9169 * var-tracking.c (vt_stack_adjustments): Likewise.
9170 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9171 * tree-vrp.c (test_for_singularity): Likewise.
9172
9173 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9174 directly instead of building a temporary tree.
9175
9176 PR bootstrap/69434
9177 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9178 remove <algorithm> include.
9179
9180 2016-01-22 Jakub Jelinek <jakub@redhat.com>
9181
9182 PR target/69432
9183 * config/i386/i386.c: Include dojump.h.
9184 (expand_small_movmem_or_setmem,
9185 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9186 fixes.
9187 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9188 if dynamic_check != -1.
9189
9190 2016-01-21 Jeff Law <law@redhat.com>
9191
9192 PR middle-end/69347
9193 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9194 record_temporary_equivalences. Rewritten to avoid unnecessary calls
9195 into dominated_by_p.
9196 (cprop_into_successor_phis): Avoid unnecessary tests.
9197
9198 2016-01-22 Richard Henderson <rth@redhat.com>
9199
9200 PR target/69416
9201 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9202 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9203
9204 2016-01-22 Michael Matz <matz@suse.de>
9205
9206 * system.h (string, algorithm): Include only conditionally.
9207 (new): Include always under C++.
9208 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9209 * final.c (toplevel): Ditto.
9210 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9211 * genconditions.c (write_header): Make gencondmd.c define
9212 INCLUDE_STRING.
9213 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9214
9215 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9216 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9217
9218 2016-01-22 Christian Bruel <christian.bruel@st.com>
9219
9220 PR target/68674
9221 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9222
9223 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9224
9225 PR target/69403
9226 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9227 define_insn_and_split. Ensure operands[1] and operands[0] do not
9228 get assigned the same register.
9229
9230 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
9231
9232 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9233
9234 2016-01-22 Christian Bruel <christian.bruel@st.com>
9235
9236 * config/arm/arm-c.c (arm_pragma_target_parse):
9237 Remove warn_builtin_macro_redefined overwrite.
9238
9239 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
9240
9241 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9242 flag_non_call_exceptions compatibility.
9243
9244 2016-01-22 Jakub Jelinek <jakub@redhat.com>
9245
9246 PR debug/66668
9247 * dwarf2out.c (add_child_die_after): New function.
9248 (dwarf_qual_info_t): New type.
9249 (dwarf_qual_info): New variable.
9250 (qualified_die_p): New function.
9251 (modified_type_die): For -fdebug-types-section, ensure
9252 canonical order of qualifiers. Put qualified DIEs adjacent
9253 to the corresponding non-qualified type DIE and search there
9254 for existing qualified DIEs.
9255
9256 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
9257
9258 * doc/extend.texi (scalar_storage_order type attribute): Document
9259 restriction on type punning and aliasing, and remove future tense.
9260
9261 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
9262
9263 PR target/69252
9264 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9265 first stage.
9266
9267 2016-01-21 Jeff Law <law@redhat.com>
9268
9269 PR middle-end/69347
9270 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9271 useless call to record_temporary_equivalences.
9272 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9273 allocate 10 slots in the bb_path vector and let it grow as needed.
9274 (fsm_find_control_statement_thread_paths): Similarly for the next_path
9275 vector.
9276
9277 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
9278
9279 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9280 Detangle.
9281 * configure: Regenerate.
9282
9283 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
9284
9285 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9286 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9287
9288 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
9289
9290 PR middle-end/66178
9291 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9292 drop EXPAND_INITIALIZER.
9293 * rtl.h (contains_symbolic_reference_p): Declare.
9294 * rtlanal.c (contains_symbolic_reference_p): New function.
9295 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9296 a subtraction into a NOT if symbolic constants are involved.
9297
9298 2016-01-21 Anton Blanchard <anton@samba.org>
9299 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9300
9301 PR target/63354
9302 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9303 #define.
9304 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9305 function.
9306
9307 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
9308
9309 * config/microblaze/microblaze.c
9310 (get_branch_target): New.
9311 (insert_wic_for_ilb_runout): New.
9312 (insert_wic): New.
9313 (microblaze_machine_dependent_reorg): New.
9314 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9315 * config/microblaze/microblaze.md
9316 (UNSPEC_IPREFETCH): Define.
9317 (iprefetch): New pattern
9318 * config/microblaze/microblaze.opt
9319 (mxl-prefetch): New flag.
9320
9321 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
9322
9323 * config/microblaze/microblaze.h
9324 (FIXED_REGISTERS): Update in macro.
9325 (CALL_USED_REGISTERS): Update in macro.
9326
9327 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
9328
9329 PR rtl-optimization/68920
9330 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9331 moves.
9332
9333 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
9334
9335 PR rtl-optimization/68990
9336 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9337 pseudo instead of inheritance ones.
9338
9339 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9340 Nick Clifton <nickc@redhat.com>
9341
9342 PR target/69129
9343 PR target/69012
9344 * config/mips/mips.c (mips_compute_frame_info): Initialise
9345 args_size and hard_frame_pointer_offset fields of the frame
9346 structure before calling mips_global_pointer.
9347
9348 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
9349
9350 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9351 label reference.
9352 * configure: Regenerate.
9353
9354 2016-01-21 Richard Biener <rguenther@suse.de>
9355
9356 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9357
9358 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
9359
9360 * config/s390/s390.c (s390_asm_declare_function_size): Add code
9361 to actually emit the .size directive.
9362
9363 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
9364 Jakub Jelinek <jakub@redhat.com>
9365
9366 PR target/69187
9367 PR target/65624
9368 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9369 args array size by one to avoid buffer overflow.
9370
9371 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
9372
9373 * config/s390/s390.md (pool_section_start): Use switch_to_section
9374 to select proper read-only data section instead of hardcoding
9375 .rodata.
9376 (pool_section_end): Use switch_to_section to match the above.
9377
9378 2016-01-21 Richard Biener <rguenther@suse.de>
9379
9380 PR tree-optimization/69378
9381 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9382 (set_ssa_val_to): Use it for dominance checks taking into
9383 account not executable edges.
9384
9385 2016-01-21 Jakub Jelinek <jakub@redhat.com>
9386
9387 PR c++/69355
9388 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
9389 for bitsize instead of GET_MODE_PRECISION (mode).
9390
9391 2016-01-20 Martin Sebor <msebor@redhat.com>
9392
9393 PR c/52291
9394 * extend.texi (__sync Builtins): Clarify the semantics of
9395 __sync_fetch_and_OP built-ins on pointers.
9396 (__atomic Builtins): Same.
9397
9398 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9399 Sebastian Pop <s.pop@samsung.com>
9400
9401 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
9402 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
9403 (is_valid_rename): Same.
9404 (translate_isl_ast_to_gimple::get_rename): Same.
9405 (translate_isl_ast_to_gimple::rename_all_uses): Same.
9406 (translate_isl_ast_to_gimple::rename_uses): Same.
9407 (get_new_name): Check for close_phi nodes.
9408 (copy_loop_phi_args): Use phi_node_kind.
9409 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
9410 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
9411
9412 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9413 Sebastian Pop <s.pop@samsung.com>
9414
9415 Revert commit r229783.
9416 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9417 Remove use of parameter_rename_map.
9418 (copy_def): Remove.
9419 (copy_internal_parameters): Remove.
9420 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
9421 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
9422 (free_sese_info): Do not free parameter_rename_map.
9423 (set_rename): Do not use parameter_rename_map.
9424 (rename_uses): Update call to set_rename.
9425 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
9426 * sese.h (parameter_rename_map_t): Remove.
9427 (struct sese_info_t): Remove field parameter_rename_map.
9428
9429 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9430 Sebastian Pop <s.pop@samsung.com>
9431
9432 * graphite-isl-ast-to-gimple.c: Fix comment.
9433 * graphite-scop-detection.c (defined_in_loop_p): New.
9434 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
9435 names defined in loop.
9436
9437 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9438 Sebastian Pop <s.pop@samsung.com>
9439
9440 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9441 Discard unstructured if-then-else regions.
9442
9443 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9444 Sebastian Pop <s.pop@samsung.com>
9445
9446 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
9447 (cleanup_loop_iter_dom): Remove.
9448 (build_loop_iteration_domains): Remove.
9449 (build_scop_context): Remove.
9450 (build_scop_iteration_domain): Remove.
9451 (add_loop_constraints): New.
9452 (build_iteration_domains): New.
9453 (build_poly_scop): Call build_iteration_domains.
9454
9455 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9456 Sebastian Pop <s.pop@samsung.com>
9457
9458 * graphite-scop-detection.c
9459 (scop_detection::harmful_loop_in_region): Free dom and loops.
9460 (scop_detection::loop_body_is_valid_scop): Free bbs.
9461
9462 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9463 Sebastian Pop <s.pop@samsung.com>
9464
9465 * graphite-scop-detection.c (record_loop_in_sese): New.
9466 (gather_bbs::before_dom_children): Call record_loop_in_sese.
9467 (build_scops): Remove call to build_sese_loop_nests.
9468 * sese.c (sese_record_loop): Remove.
9469 (build_sese_loop_nests): Remove.
9470 (new_sese_info): Remove region->loops.
9471 (free_sese_info): Same.
9472 * sese.h (sese_contains_loop): Same.
9473 (build_sese_loop_nests): Remove.
9474 (sese_contains_loop): Remove.
9475
9476 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9477 Sebastian Pop <s.pop@samsung.com>
9478
9479 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
9480 loop_is_valid_in_scop.
9481 (scop_detection::harmful_stmt_in_region): Renamed
9482 harmful_loop_in_region.
9483 Call loop_is_valid_in_scop.
9484
9485 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9486 Sebastian Pop <s.pop@samsung.com>
9487
9488 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
9489 isl_ast_node_mark.
9490
9491 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9492 Sebastian Pop <s.pop@samsung.com>
9493
9494 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
9495 * graphite.h (struct poly_bb): Remove field is_reduction.
9496 (PBB_IS_REDUCTION): Remove.
9497
9498 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
9499 Sebastian Pop <s.pop@samsung.com>
9500
9501 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
9502 (add_pdr_constraints): Same.
9503 (scop_get_reads): Same.
9504 (scop_get_must_writes): Same.
9505 (scop_get_may_writes): Same.
9506 (scop_get_original_schedule): Same.
9507 (extend_schedule): Same.
9508 (apply_schedule_on_deps): Same.
9509 (carries_deps): Same.
9510 (compute_deps): Same.
9511 (scop_get_dependences): Same.
9512 * graphite-isl-ast-to-gimple.c
9513 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
9514 * graphite-optimize-isl.c (get_schedule_for_band): Same.
9515 (get_schedule_for_band_list): Same.
9516 (get_schedule_map): Same.
9517 (apply_schedule_map_to_scop): Same.
9518 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9519 (build_loop_iteration_domains): Same.
9520 (add_condition_to_pbb): Same.
9521 (add_param_constraints): Same.
9522 (pdr_add_memory_accesses): Same.
9523 (pdr_add_data_dimensions): Same.
9524
9525 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
9526
9527 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
9528 requirements.
9529
9530 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
9531
9532 * common.opt (feliminate-dwarf2-dups): Replace references to
9533 "DWARF 2" with just "DWARF".
9534 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
9535 * doc/extend.texi: Likewise.
9536 * doc/cpp.texi: Likewise.
9537 * doc/invoke.texi: Likewise.
9538 (Option Summary): Add -gdwarf to list of Debugging Options.
9539 (Debugging Options): Document -gdwarf.
9540 * doc/contrib.texi: Spell "DWARF" like that.
9541
9542 2016-01-21 Jakub Jelinek <jakub@redhat.com>
9543
9544 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
9545 warning. Fix up formatting.
9546
9547 PR middle-end/67653
9548 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
9549 attempt to mark memory input operand addressable and
9550 call prepare_gimple_addressable in that case. Don't adjust
9551 input_location for diagnostics, use error_at instead.
9552
9553 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
9554
9555 * config/rs6000/ppc-auxv.h: New file.
9556 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
9557 (cpu_is): Likewise.
9558 (cpu_supports): Likewise.
9559 * config/rs6000/rs6000.c: include "ppc-auxv.h".
9560 (cpu_is_info): New variable.
9561 (cpu_supports_info): Likewise.
9562 (tcb_verification_symbol): Likewise.
9563 (cpu_builtin_p): Likewise.
9564 (cpu_expand_builtin): New function.
9565 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
9566 (rs6000_init_builtins): Likewise.
9567 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
9568 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
9569 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
9570 * configure: Regenerate.
9571 * config.in: Likewise.
9572 * doc/extend.texi (PowerPC Built-in Functions): Document
9573 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
9574
9575 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
9576
9577 PR target/68609
9578 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
9579 domain check.
9580 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
9581 for V4SFmode.
9582
9583 2016-01-20 Richard Henderson <rth@redhat.com>
9584
9585 PR bootstrap/69343
9586 PR bootstrap/69339
9587 PR tree-opt/68964
9588 Revert:
9589 * tree.c (tm_define_builtin): New.
9590 (find_tm_vector_type): New.
9591 (build_tm_vector_builtins): New.
9592 (build_common_builtin_nodes): Call it.
9593
9594 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
9595
9596 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
9597 (arm_fp_ok): Likewise.
9598 (arm_fp): Likewise.
9599 (arm_crypto): Likewise.
9600
9601 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
9602 Richard Biener <rguenther@suse.de>
9603
9604 PR tree-optimization/69328
9605 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
9606 vectors have same number of elements.
9607 (vectorizable_condition): Fix masked version recognition.
9608
9609 2016-01-20 Richard Biener <rguenther@suse.de>
9610
9611 PR tree-optimization/69345
9612 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
9613 (VN_INFO_PTR_INFO): Likewise.
9614 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
9615 info when it is equal between non-dominating SSA names.
9616 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9617 Make sure to look at original SSA infos.
9618
9619 2016-01-20 Jeff Law <law@redhat.com>
9620
9621 PR target/25114
9622 * config/m68k/predicates.md (pow2_m1_operand): New predicate
9623 extracted from ...
9624 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
9625 (pc_or_label_operand): New predicate.
9626 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
9627 tests for small integers that are 2^n - 1.
9628
9629 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
9630
9631 * doc/invoke.texi (Options Summary): Add '.' after @xref.
9632
9633 2016-01-19 Jeff Law <law@redhat.com>
9634
9635 PR middle-end/69347
9636 * tree-ssa-threadbackwards.c
9637 (fsm_find_control_statement_thread_paths): Do not try to lookup
9638 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
9639
9640 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9641
9642 * doc/lto.texi: Remove text that says only Gold has linker plugin
9643 support.
9644
9645 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
9646
9647 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
9648 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
9649 the DIE accordingly.
9650 (modified_type_die): Add REVERSE parameter and pass it recursively,
9651 as well as to base_type_die. Adjust presence check accordingly.
9652 (base_type_for_mode): Adjust call to modified_type_die.
9653 (add_type_attribute): Add REVERSE parameter and pass it to
9654 modified_type_die.
9655 (generic_parameter_die): Adjust call to add_type_attribute.
9656 (add_scalar_info): Likewise.
9657 (add_subscript_info): Likewise.
9658 (gen_array_type_die): Likewise.
9659 (gen_descr_array_type_die): Likewise.
9660 (gen_entry_point_die): Likewise.
9661 (gen_enumeration_type_die): Likewise.
9662 (gen_formal_parameter_die): Likewise.
9663 (gen_subprogram_die): Likewise.
9664 (gen_variable_die ): Likewise.
9665 (gen_const_die): Likewise.
9666 (gen_field_die): Likewise.
9667 (gen_pointer_type_die): Likewise.
9668 (gen_reference_type_die): Likewise.
9669 (gen_ptr_to_mbr_type_die): Likewise.
9670 (gen_inheritance_die): Likewise.
9671 (gen_subroutine_type_die): Likewise.
9672 (gen_typedef_die): Likewise.
9673 (force_type_die): Adjust call to modified_type_die.
9674
9675 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
9676
9677 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
9678 flow throughout the file. Fix broken link to Objective-C 2.0
9679 documentation.
9680 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
9681 errors.
9682
9683 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9684
9685 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
9686
9687 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9688
9689 PR ipa/66223
9690 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
9691 (maybe_record_node): Record cxa_pure_virtual as the only possible
9692 target if there are not ohter candidates.
9693 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
9694
9695 2016-01-19 Richard Biener <rguenther@suse.de>
9696
9697 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
9698 (get_memory_order): Likewise.
9699
9700 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
9701
9702 * tree-vect-stmts.c (vectorizable_store): Check
9703 rhs vectype.
9704
9705 2016-01-19 David Malcolm <dmalcolm@redhat.com>
9706
9707 PR jit/68446
9708 * gcc.c (driver::decode_argv): Add call to
9709 init_opts_obstack before init_options_struct.
9710 * opts.c (init_opts_obstack): Remove idempotency.
9711 (init_options_struct): Replace call to init_opts_obstack
9712 with a gcc_assert to verify that it has already been called.
9713 * toplev.c (toplev::main): Add call to init_opts_obstack before
9714 calls to init_options_struct.
9715 (toplev::finalize): Move cleanup of opts_obstack next to
9716 cleanup of save_decoded_options, clearing the latter, and
9717 save_decoded_options_count.
9718
9719 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9720
9721 PR target/69135
9722 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
9723 attribute to unconditional. Remove %? from output template.
9724
9725 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9726 Jiong Wang <jiong.wang@arm.com>
9727
9728 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
9729 generated from different expand order.
9730
9731 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9732
9733 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9734 Add support for CCMP costing.
9735
9736 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9737
9738 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
9739 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
9740 (fccmpe<mode>): Likewise.
9741 (fcmp): Rename to fcmp and globalize pattern.
9742 (fcmpe): Likewise.
9743 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
9744 (aarch64_gen_ccmp_next): Add FP support.
9745
9746 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
9747
9748 * target.def (gen_ccmp_first): Update documentation.
9749 (gen_ccmp_next): Likewise.
9750 * doc/tm.texi (gen_ccmp_first): Update documentation.
9751 (gen_ccmp_next): Likewise.
9752 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
9753 expand_ccmp_expr_1. Improve comments.
9754 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
9755 (ccmp_ior<mode>): Remove pattern.
9756 (cmp<mode>): Remove expand.
9757 (cmp): Globalize pattern.
9758 (cstorecc4): Use cc_register.
9759 (mov<mode>cc): Remove ccmp_cc_register check.
9760 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
9761 Simplify after removal of CC_DNE/* modes.
9762 (aarch64_ccmp_mode_to_code): Remove.
9763 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
9764 In 'k' case use integer as condition.
9765 (aarch64_nzcv_codes): Remove inverted cases.
9766 (aarch64_code_to_ccmode): Remove.
9767 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
9768 comparison with CC register to be used in folowing CCMP/branch/CSEL.
9769 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
9770 pattern. Return the comparison with CC register. Invert conditions
9771 when bitcode is OR.
9772 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
9773 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
9774
9775 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9776
9777 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
9778 instrumented_version.
9779
9780 2016-01-19 Richard Biener <rguenther@suse.de>
9781
9782 PR tree-optimization/69336
9783 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
9784 handled components with get_ref_base_and_extent.
9785 (equal_mem_array_ref_p): Adjust.
9786
9787 2016-01-19 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR debug/65779
9790 * shrink-wrap.c: Include valtrack.h.
9791 (move_insn_for_shrink_wrap): Add DEBUG argument. If
9792 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
9793 in between insn and where it will be moved to. Call
9794 dead_debug_insert_temp.
9795 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
9796 first and dead_debug_local_finish at the end.
9797 For uses and defs bitmap, handle all regs in between REGNO and
9798 END_REGNO, not just the first one.
9799
9800 2016-01-19 Richard Biener <rguenther@suse.de>
9801
9802 PR tree-optimization/69352
9803 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
9804 (equal_mem_array_ref_p): Constrain size and max size properly.
9805 Compare the reverse flag.
9806
9807 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
9808
9809 * ira.c (ira): Update regstat data if we deleted insns.
9810
9811 2016-01-19 Jakub Jelinek <jakub@redhat.com>
9812
9813 PR rtl-optimization/68955
9814 PR rtl-optimization/64557
9815 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
9816 here. Fix up formatting.
9817 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
9818
9819 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9820
9821 PR lto/69133
9822 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
9823 assume that the node has body.
9824 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
9825 check.
9826
9827 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9828
9829 * lto-streamer-out.c (lto_output): Do not stream instrumentation
9830 thunks.
9831
9832 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9833
9834 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
9835 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
9836
9837 2016-01-19 Martin Jambor <mjambor@suse.cz>
9838 Martin Liska <mliska@suse.cz>
9839 Michael Matz <matz@suse.de>
9840
9841 * Makefile.in (OBJS): Add new source files.
9842 (GTFILES): Add hsa.c.
9843 * common.opt (disable_hsa): New variable.
9844 (-Whsa): New warning.
9845 * config.in (ENABLE_HSA): New.
9846 * configure.ac: Treat hsa differently from other accelerators.
9847 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
9848 $enable_offloading.
9849 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
9850 * doc/install.texi (Configuration): Document --with-hsa-runtime,
9851 --with-hsa-runtime-include, --with-hsa-runtime-lib and
9852 --with-hsa-kmt-lib.
9853 * doc/invoke.texi (-Whsa): Document.
9854 (hsa-gen-debug-stores): Likewise.
9855 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
9856 to invoke offload compiler for hsa acclerator.
9857 * opts.c (common_handle_option): Determine whether HSA offloading
9858 should be performed.
9859 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
9860 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
9861 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
9862 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
9863 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
9864 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
9865 GF_OMP_FOR_KIND_GRID_LOOP.
9866 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
9867 (pp_gimple_stmt_1): Likewise.
9868 * gimple-walk.c (walk_gimple_stmt): Likewise.
9869 * gimple.c (gimple_build_omp_grid_body): New function.
9870 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
9871 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
9872 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
9873 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
9874 GF_OMP_TEAMS_GRID_PHONY.
9875 (gimple_statement_omp_single_layout): Updated comments.
9876 (gimple_build_omp_grid_body): New function.
9877 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
9878 (gimple_omp_for_grid_phony): New function.
9879 (gimple_omp_for_set_grid_phony): Likewise.
9880 (gimple_omp_parallel_grid_phony): Likewise.
9881 (gimple_omp_parallel_set_grid_phony): Likewise.
9882 (gimple_omp_teams_grid_phony): Likewise.
9883 (gimple_omp_teams_set_grid_phony): Likewise.
9884 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
9885 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
9886 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
9887 (BUILT_IN_GOMP_TARGET): Updated type.
9888 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
9889 (adjust_for_condition): New function.
9890 (get_omp_for_step_from_incr): Likewise.
9891 (extract_omp_for_data): Moved parts to adjust_for_condition and
9892 get_omp_for_step_from_incr.
9893 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
9894 (fixup_child_record_type): Bail out if receiver_decl is NULL.
9895 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
9896 (scan_omp_parallel): Do not create child functions for phony
9897 constructs.
9898 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
9899 (scan_omp_1_op): Checking assert we are not remapping to
9900 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
9901 (parallel_needs_hsa_kernel_p): New function.
9902 (expand_parallel_call): Register apprpriate parallel child
9903 functions as HSA kernels.
9904 (grid_launch_attributes_trees): New type.
9905 (grid_attr_trees): New variable.
9906 (grid_create_kernel_launch_attr_types): New function.
9907 (grid_insert_store_range_dim): Likewise.
9908 (grid_get_kernel_launch_attributes): Likewise.
9909 (get_target_argument_identifier_1): Likewise.
9910 (get_target_argument_identifier): Likewise.
9911 (get_target_argument_value): Likewise.
9912 (push_target_argument_according_to_value): Likewise.
9913 (get_target_arguments): Likewise.
9914 (expand_omp_target): Call get_target_arguments instead of looking
9915 up for teams and thread limit.
9916 (grid_expand_omp_for_loop): New function.
9917 (grid_arg_decl_map): New type.
9918 (grid_remap_kernel_arg_accesses): New function.
9919 (grid_expand_target_kernel_body): New function.
9920 (expand_omp): Call it.
9921 (lower_omp_for): Do not emit phony constructs.
9922 (lower_omp_taskreg): Do not emit phony constructs but create for them
9923 a temporary variable receiver_decl.
9924 (lower_omp_taskreg): Do not emit phony constructs.
9925 (lower_omp_teams): Likewise.
9926 (lower_omp_grid_body): New function.
9927 (lower_omp_1): Call it.
9928 (grid_reg_assignment_to_local_var_p): New function.
9929 (grid_seq_only_contains_local_assignments): Likewise.
9930 (grid_find_single_omp_among_assignments_1): Likewise.
9931 (grid_find_single_omp_among_assignments): Likewise.
9932 (grid_find_ungridifiable_statement): Likewise.
9933 (grid_target_follows_gridifiable_pattern): Likewise.
9934 (grid_remap_prebody_decls): Likewise.
9935 (grid_copy_leading_local_assignments): Likewise.
9936 (grid_process_kernel_body_copy): Likewise.
9937 (grid_attempt_target_gridification): Likewise.
9938 (grid_gridify_all_targets_stmt): Likewise.
9939 (grid_gridify_all_targets): Likewise.
9940 (execute_lower_omp): Call grid_gridify_all_targets.
9941 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
9942 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
9943 (tree_omp_clause): Added union field dimension.
9944 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
9945 * tree.c (omp_clause_num_ops): Added number of arguments of
9946 OMP_CLAUSE__GRIDDIM_.
9947 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
9948 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
9949 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
9950 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
9951 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
9952 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
9953 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
9954 * tree-pass.h (make_pass_gen_hsail): Declare.
9955 (make_pass_ipa_hsa): Likewise.
9956 * ipa-hsa.c: New file.
9957 * lto-section-in.c (lto_section_name): Add hsa section name.
9958 * lto-streamer.h (lto_section_type): Add hsa section.
9959 * timevar.def (TV_IPA_HSA): New.
9960 * hsa-brig-format.h: New file.
9961 * hsa-brig.c: New file.
9962 * hsa-dump.c: Likewise.
9963 * hsa-gen.c: Likewise.
9964 * hsa.c: Likewise.
9965 * hsa.h: Likewise.
9966 * toplev.c (compile_file): Call hsa_output_brig.
9967 * hsa-regalloc.c: New file.
9968
9969 2016-01-18 Jeff Law <law@redhat.com>
9970
9971 PR tree-optimization/69320
9972 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
9973 ranged object, do nothing if the RHS constant is not [0..1].
9974 (optimize_stmt): Comparing a boolean ranged object against a
9975 constant outside [0..1] results in a compile-time constant.
9976
9977 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
9978 test.
9979
9980 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
9981
9982 * doc/invoke.texi (Invoking GCC): Add new section to menu.
9983 (Option Summary): Update to reflect new section and moved options.
9984 (C++ Dialect Options): Move -fstats to new section.
9985 (Debugging Options): Move all dump, statistics, and other GCC
9986 developer options to new section. Rewrite section introduction
9987 and re-order remaining options to put the more basic ones first.
9988 (Optimization Options): Move -fira-verbose and -flto-report* to
9989 new section.
9990 (Developer Options): New section incorporating moved options.
9991 * doc/cppopts.texi (-dM): Update cross-reference.
9992
9993 2016-01-18 Richard Henderson <rth@redhat.com>
9994
9995 PR target/69176
9996 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
9997 operands to pseudo only if CSE is expected. Split long immediate
9998 operands only after reload, and for the stack pointer.
9999 (*add<GPI>3_pluslong): Remove.
10000 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
10001 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
10002 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
10003 (*add<GPI>3 peepholes): New.
10004 (*add<GPI>3 splitters): New.
10005 * config/aarch64/constraints.md (Upl): New.
10006 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
10007
10008 2016-01-18 Richard Biener <rguenther@suse.de>
10009
10010 PR tree-optimization/69297
10011 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
10012 stmt at most once.
10013 (vect_bb_vectorization_profitable_p): Clear visited flag again.
10014
10015 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10016
10017 PR middle-end/68542
10018 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
10019 of mixind vector and scalar types.
10020 (fold_relational_const): Add handling of vector
10021 comparison with boolean result.
10022 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
10023 comparison of vector operands with boolean result for EQ/NE only.
10024 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
10025 (verify_gimple_cond): Likewise.
10026 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
10027 valid type of VAL.
10028
10029 2016-01-18 Joseph Myers <joseph@codesourcery.com>
10030
10031 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10032 !TARGET_OCTEON.
10033
10034 2016-01-18 Richard Biener <rguenther@suse.de>
10035
10036 PR middle-end/69308
10037 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10038
10039 2016-01-18 Tom de Vries <tom@codesourcery.com>
10040
10041 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10042
10043 2016-01-18 Tom de Vries <tom@codesourcery.com>
10044
10045 * omp-low.c (set_oacc_fn_attrib): Make extern.
10046 * omp-low.h (set_oacc_fn_attrib): Declare.
10047 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10048 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10049 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10050 Add and handle function parameter oacc_kernels_p.
10051 (find_reduc_addr, get_omp_data_i_param): New function.
10052 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10053 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10054 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10055 Calculate dominance info. Skip loops that are not in a kernels region
10056 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
10057 (pass_parallelize_loops::execute): Call parallelize_loops with
10058 oacc_kernels_p argument.
10059 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10060 New member function.
10061 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10062 * passes.def: Add argument to pass_parallelize_loops instantation.
10063
10064 2016-01-18 Tom de Vries <tom@codesourcery.com>
10065
10066 * tree-parloops.c (pass_parallelize_loops::execute): Allow
10067 pass_parallelize_loops to be run outside the loop pipeline.
10068
10069 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
10070
10071 * tree-scalar-evolution.c (follow_copies_to_constant): New.
10072 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10073
10074 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
10075
10076 PR target/63679
10077 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10078 using get_ref_base_and_extent.
10079 (equal_mem_array_ref_p): New.
10080 (hashable_expr_equal_p): Add call to previous.
10081
10082 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
10083
10084 PR target/63679
10085 * tree-sra.c (disqualified_constants, constant_decl_p): New.
10086 (sra_initialize): Allocate disqualified_constants.
10087 (sra_deinitialize): Free disqualified_constants.
10088 (disqualify_candidate): Update disqualified_constants when appropriate.
10089 (create_access): Scan for constant-pool entries as we go along.
10090 (scalarizable_type_p): Add check against type_contains_placeholder_p.
10091 (maybe_add_sra_candidate): Allow constant-pool entries.
10092 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10093 (initialize_constant_pool_replacements): New.
10094 (sra_modify_assign): Avoid mangling assignments created by previous,
10095 and don't generate writes into constant pool.
10096 (sra_modify_function_body): Call initialize_constant_pool_replacements.
10097
10098 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10099
10100 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10101 andnot instruction.
10102 (scalar_chain::convert_op): Likewise.
10103 * config/i386/i386.md (*andndi3_doubleword): New.
10104
10105 2016-01-18 Richard Biener <rguenther@suse.de>
10106
10107 PR tree-optimization/69170
10108 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10109 building a vector from scalar results of a pattern stmt.
10110
10111 2016-01-18 Jakub Jelinek <jakub@redhat.com>
10112
10113 * haifa-sched.c (autopref_multipass_init): Work around
10114 -Wmaybe-uninitialized warning.
10115
10116 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10117
10118 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10119 against the constant 0.
10120
10121 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10122
10123 PR tree-optimization/68799
10124 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10125 look up phi candidates in the statement-candidate map.
10126 (phi_add_costs): Likewise.
10127 (record_phi_increments): Likewise.
10128 (phi_incr_cost): Likewise.
10129 (ncd_with_phi): Likewise.
10130 (all_phi_incrs_profitable): Likewise.
10131
10132 2016-01-17 Jakub Jelinek <jakub@redhat.com>
10133
10134 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10135 -Wmaybe-uninitialized warning.
10136
10137 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
10138
10139 * doc/invoke.texi (Invoking GCC): Add new section to menu.
10140 (Option Summary): Update to reflect new section and moved options.
10141 (C++ Dialect Options): Move -fvtable-verify and related options.
10142 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10143 and profiling-related options.
10144 (Optimization Options): Move profile generation options and
10145 -fstack-protector and related options.
10146 (Instrumentation Options): New section incorporating moved options.
10147 (Code Generation Options): Move -finstrument-functions and
10148 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10149
10150 2016-01-16 Tom de Vries <tom@codesourcery.com>
10151
10152 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10153
10154 2016-01-16 Tom de Vries <tom@codesourcery.com>
10155
10156 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
10157
10158 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
10159
10160 * hash-table.h (hash_table::empty): Turn into an inline wrapper
10161 that checks whether the table is already empty. Rename the
10162 original implementation to...
10163 (hash_table::empty_slot): ...this new private function.
10164
10165 2016-01-15 David Malcolm <dmalcolm@redhat.com>
10166
10167 PR diagnostic/68899
10168 * diagnostic-show-locus.c (layout::print_source_line): Move x
10169 offset of line until after call to
10170 get_line_width_without_trailing_whitespace.
10171
10172 2016-01-15 Jeff Law <law@redhat.com>
10173
10174 PR tree-optimization/69270
10175 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10176 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
10177 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10178 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10179 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10180 ssa_name_has_boolean_range and constant_boolean_node.
10181
10182 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
10183
10184 PR rtl-optimization/69030
10185 * lra-spills.c (remove_pseudos): Check nrefs and make the function
10186 returning bool.
10187 (spill_pseudos): Delete debug insn for dead pseudo.
10188 (lra_spill): Initiate spill_hard_reg and slots memory separately.
10189
10190 2016-01-15 Jiong Wang <jiong.wang@arm.com>
10191
10192 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10193 New.
10194 (TYPES_UNOPUS): Likewise.
10195 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10196 builtin type, from UNOP to UNOPUS.
10197 (lbtruncuv4sf): Likewise.
10198 (lbtruncuv2df): Likewise.
10199 (lrounduv2sf): Likewise.
10200 (lrounduv4sf): Likewise.
10201 (lrounduv2df): Likewise.
10202 (lroundusf): Likewise.
10203 (lroundusf): Likewise.
10204 (lceiluv2sf): Likewise.
10205 (lceiluv4sf): Likewise.
10206 (lceiluv2df): Likewise.
10207 (lceilusf): Likewise.
10208 (lceiludf): Likewise.
10209 (lflooruv2sf): Likewise.
10210 (lflooruv4sf): Likewise.
10211 (lflooruv2df): Likewise.
10212 (lfloorusf): Likewise.
10213 (lfloorudf): Likewise.
10214 (lfrintnuv2sf): Likewise.
10215 (lfrintnuv4sf): Likewise.
10216 (lfrintnuv2df): Likewise.
10217 (lfrintnusf): Likewise.
10218 (lfrintnudf): Likewise.
10219 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10220 conversion.
10221 (vcvtq_u32_f32): Likewise.
10222 (vcvtq_u64_f64): Likewise.
10223 (vcvta_u32_f32): Likewise.
10224 (vcvtaq_u32_f32): Likewise.
10225 (vcvtaq_u64_f64): Likewise.
10226 (vcvtm_u32_f32): Likewise.
10227 (vcvtmq_u32_f32): Likewise.
10228 (vcvtmq_u64_f64): Likewise.
10229 (vcvtn_u32_f32): Likwise.
10230 (vcvtnq_u32_f32): Likewise.
10231 (vcvtnq_u64_f64): Likewise.
10232 (vcvtp_u32_f32): Likewise.
10233 (vcvtpq_u32_f32): Likewise.
10234 (vcvtpq_u64_f64): Likewise.
10235 (vcvtmd_u64_f64): Likewise.
10236 (vcvtms_u32_f32): Likewise.
10237 (vcvtad_u64_f64): Likewise.
10238 (vcvtas_u32_f32): Likewise.
10239 (vcvtnd_u64_f64): Likewise.
10240 (vcvtns_u32_f32): Likewise.
10241 (vcvtpd_u64_f64): Likewise.
10242 (vcvtps_u32_f32): Likewise.
10243
10244 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10245
10246 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10247 CSEL of zero_extended registers.
10248
10249 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10250
10251 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10252 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10253
10254 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10255
10256 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10257 false when argument string is not found in the attributes table
10258 at all.
10259
10260 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
10261
10262 PR target/68609
10263 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10264 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10265 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10266 precision estimate.
10267
10268 2016-01-15 Richard Biener <rguenther@suse.de>
10269
10270 PR tree-optimization/66856
10271 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10272 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10273 (vect_create_new_slp_node): Increment stmt reference count.
10274 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10275 an SLP tree before swapping operands.
10276 (vect_build_slp_tree): Likewise.
10277 (destroy_bb_vec_info): Free stmt info after SLP instances.
10278 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10279 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10280 (STMT_VINFO_NUM_SLP_USES): New macro.
10281
10282 2016-01-15 Richard Biener <rguenther@suse.de>
10283
10284 PR debug/69137
10285 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10286 (add_linkage_name): ... here.
10287 (gen_typedef_die): Use add_linkage_name_raw instead of
10288 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10289 if necessary.
10290
10291 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10292
10293 * gimplify.c (oacc_default_clause): Decode reference and pointer
10294 types for both kernels and parallel regions.
10295
10296 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
10297
10298 PR middle-end/69246
10299 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10300
10301 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10302
10303 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10304 (convert_scalars_to_vector): Likewise.
10305
10306 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
10307
10308 * doc/extend.texi (Type Traits): Fix grammar.
10309
10310 2016-01-15 Martin Jambor <mjambor@suse.cz>
10311
10312 * tree-inline.c (remap_decl): Use existing dclarations if
10313 remapping a type and prevent_decl_creation_for_types.
10314 (replace_locals_stmt): Do an initial remapping of non-VLA typed
10315 decls first. Do real remapping with
10316 prevent_decl_creation_for_types set.
10317 * tree-inline.h (copy_body_data): New field
10318 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10319 padding.
10320
10321 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
10322
10323 * config/s390/s390.opt (mmvcle): More verbose help text.
10324
10325 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
10326
10327 * config/s390/s390.opt: Add period to -mzvector option text.
10328
10329 2016-01-15 Richard Biener <rguenther@suse.de>
10330
10331 PR tree-optimization/68961
10332 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10333 of invariants in stores again.
10334
10335 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10336
10337 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10338
10339 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10340
10341 * config/i386/i386.c (ix86_expand_branch): Don't split
10342 DI mode xor instruction to SI mode.
10343
10344 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
10345
10346 PR ipa/68148
10347 * ipa-icf.c (sem_function::merge): Virtual functions may become
10348 reachable even if they address is not taken and there are no
10349 idrect calls.
10350
10351 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
10352
10353 * lto-streamer-out.c (subtract_estimated_size): New function.
10354 (get_symbol_initial_value): Use it.
10355
10356 2016-01-15 Christian Bruel <christian.bruel@st.com>
10357
10358 PR target/65837
10359 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10360 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10361 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10362 use add_builtin_function_ext_scope instead of add_builtin_function.
10363 (neon_set_p, neon_crypto_set_p): Remove.
10364 (arm_init_builtins): Always call arm_init_neon_builtins and
10365 arm_init_crypto_builtins.
10366 (arm_expand_builtin): Check that builtins are allowed for the arch.
10367 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10368 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10369 arm_init_neon_builtins call.
10370
10371 2016-01-15 Richard Biener <rguenther@suse.de>
10372
10373 PR tree-optimization/69117
10374 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10375 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10376 of the leader conservatively.
10377 (free_scc_vn): Restore original SSA name infos.
10378
10379 2016-01-14 Jeff Law <law@redhat.com>
10380
10381 PR tree-optimization/69270
10382 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10383 single bit of precision, verify it's also unsigned.
10384 (record_edge_info): Use constant_boolean_node rather than fold_convert
10385 to convert boolean_true/boolean_false to the right type.
10386
10387 2016-01-14 Richard Henderson <rth@redhat.com>
10388
10389 PR rtl-opt/69014
10390 * loop-doloop.c (record_reg_sets): New.
10391 (doloop_optimize): Reject the transform if the sequence
10392 clobbers registers live at the end of the loop block.
10393 (doloop_optimize_loops): Enable df_live if needed.
10394
10395 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10396
10397 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
10398 * gcc/config/rs6000/rs6000.c: Likewise.
10399 * gcc/config/rs6000/rs6000.h: Likewise.
10400 * gcc/config/rs6000/rs6000.md: Likewise.
10401 * gcc/doc/extend.texi: Likewsie.
10402
10403 2016-01-14 Jeff Law <law@redhat.com>
10404
10405 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
10406 typo.
10407
10408 2016-01-14 Richard Henderson <rth@redhat.com>
10409
10410 PR c/69272
10411 PR tree-opt/68964
10412 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
10413 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
10414 instead of builtin_decl_declared_p to test for declaration.
10415
10416 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
10417
10418 * doc/loop.texi (Loop Analysis and Representation): Document
10419 loop_depth function.
10420
10421 2016-01-14 Tom de Vries <tom@codesourcery.com>
10422
10423 PR tree-optimization/68773
10424 * omp-low.c (expand_omp_target): Don't set force_output.
10425 * varpool.c (varpool_node::get_create): Same.
10426 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
10427 offload_funcs with force_output.
10428
10429 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10430
10431 PR debug/69244
10432 * lra-eliminations.c (move_plus_up): Don't change anything if either
10433 the outer or inner subreg mode is not MODE_INT.
10434 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
10435 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
10436
10437 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
10438
10439 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
10440 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
10441 reduc_uplus_@var{m}): Remove.
10442 * expr.c (expand_expr_real_2): Remove expansion path for
10443 reduc_[us](min|max|plus) optabs.
10444 * optabs-tree.c (scalar_reduc_to_vector): Remove.
10445 * optabs-tree.h (scalar_reduc_to_vector): Remove.
10446 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
10447 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
10448 * tree-vect-loop.c (vectorizable_reduction): Remove test for
10449 reduc_[us](min|max|plus) optabs.
10450
10451 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
10452
10453 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
10454 (reduc_plus_scal_v2sf): New.
10455 (reduc_smax_v2sf): Rename to...
10456 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
10457 (reduc_smin_v2sf): Rename to...
10458 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
10459
10460 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
10461
10462 * alias.c (compare_base_symbol_refs): New function.
10463 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
10464 it.
10465
10466 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10467
10468 PR middle-end/68146
10469 PR tree-optimization/69155
10470 * tree-complex.c: Include cfganal.h.
10471 (phis_to_revisit): New variable.
10472 (extract_component): Add phiarg_p argument. Assert that returned
10473 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
10474 (update_phi_components): Partly rewrite to use loop over real/imag
10475 components instead of code duplication. If extract_component returns
10476 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
10477 create_tmp_reg into the PHI node instead, and mention the phi triplet
10478 in phis_to_revisit.
10479 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
10480 in phis_to_revisit at the end.
10481
10482 2016-01-14 Richard Biener <rguenther@suse.de>
10483
10484 PR tree-optimization/68060
10485 * tree-vect-loop.c (vect_is_simple_reduction): Check the
10486 outer loop reduction is only used in the inner loop before
10487 detecting a double reduction.
10488
10489 2016-01-14 Jakub Jelinek <jakub@redhat.com>
10490
10491 PR target/68269
10492 * combine.c (expand_field_assignment): Punt if compute_mode is
10493 unsupported scalar mode.
10494
10495 2016-01-14 Richard Biener <rguenther@suse.de>
10496
10497 PR tree-optimization/66856
10498 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
10499 SLP node only if it built successfully.
10500 (vect_analyze_slp_instance): Adjust.
10501
10502 2016-01-14 Jeff Law <law@redhat.com>
10503
10504 PR tree-optimization/69270
10505 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
10506 (record_edge_info): Use it. Convert boolean_{true,false}_node
10507 to the type of op0.
10508
10509 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
10510
10511 PR ipa/66487
10512 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
10513 use block_ultimate_origin
10514 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
10515
10516 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
10517
10518 * doc/invoke.texi (Submodel Options): Rename section to
10519 "Machine-Dependent Options" to better reflect its content.
10520 Rewrite introductory text to remove archaic CPU names.
10521 Update references.
10522
10523 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
10524
10525 * doc/invoke.texi (Code Gen Options): Move section up in file,
10526 before target-specific options. Update menu and option summary
10527 to reflect the new section ordering.
10528
10529 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
10530
10531 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
10532 (C++ Dialect Options): Add cross-reference to -std option.
10533 * doc/standards.texi (C++ Language): Document C++14 support.
10534
10535 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10536
10537 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
10538 for pack/unpack functions for __ibm128.
10539 (PACK_IF): Likewise.
10540 (UNPACK_IF): Likewise.
10541
10542 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
10543 support for __ibm128 pack/unpack functions.
10544 (rs6000_invalid_builtin): Likewise.
10545 (rs6000_init_builtins): Likewise.
10546 (rs6000_opt_masks): Likewise.
10547
10548 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
10549 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
10550 functions
10551 (RS6000_BTM_COMMON): Likewise.
10552
10553 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
10554 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
10555 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
10556 128-bit floating point. Add support for the double values to be
10557 in Altivec registers for TF/IF packing and unpacking, but restrict
10558 TD packing sub-fields to be FPR registers. Don't allow overlapped
10559 register support for packing. Allow pack inputs to be memory
10560 locations. Don't build generator functions for unpack<mode>_dm
10561 and unpack<mode>_nodm.
10562 (unpack<mode>_dm): Likewise.
10563 (unpack<mode>_nodm): Likewise.
10564 (pack<mode>): Likewise.
10565
10566 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
10567 built-in functions to pack/unpack explicit __ibm128 values.
10568 (__builtin_unpack_ibm128): Likewise.
10569
10570 * doc/extend.texi (PowerPC Built-in Functions): Document
10571 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
10572
10573 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
10574
10575 PR c/66208
10576 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
10577 Add new arg loc and pass it down as context.
10578 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
10579 to the location to use for the warning.
10580 (check_function_arguments): New arg loc. All callers changed. Pass
10581 it to check_function_nonnull.
10582 * c-common.h (check_function_arguments): Adjust declaration.
10583
10584 2016-01-13 Jakub Jelinek <jakub@redhat.com>
10585
10586 PR tree-optimization/69156
10587 * gimple.c (validate_type): Removed.
10588 (gimple_builtin_call_types_compatible_p): Use
10589 useless_type_conversion_p instead of validate_type.
10590 * value-prof.c (gimple_stringop_fixed_value): Fold
10591 icall_size to correct type.
10592
10593 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
10594
10595 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
10596 effects.
10597
10598 2016-01-13 Richard Henderson <rth@redhat.com>
10599
10600 PR tree-opt/68964
10601 * target.def (builtin_tm_load, builtin_tm_store): Remove.
10602 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
10603 (ix86_builtin_tm_store): Remove.
10604 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10605 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10606 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10607 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10608 * doc/tm.texi: Rebuild.
10609
10610 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
10611 (BUILT_IN_TM_MEMCPY_RTWN): New.
10612 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
10613 fallback from vector to integer helpers.
10614 (build_tm_load): Handle vector types directly, instead of
10615 via target hook.
10616 (build_tm_store): Likewise.
10617 (expand_assign_tm): Prepare for register types not handled by
10618 the above. Copy them to memory and use memcpy.
10619 * tree.c (tm_define_builtin): New.
10620 (find_tm_vector_type): New.
10621 (build_tm_vector_builtins): New.
10622 (build_common_builtin_nodes): Call it.
10623
10624 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
10625
10626 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
10627 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
10628
10629 2016-01-13 Tom de Vries <tom@codesourcery.com>
10630
10631 PR tree-optimization/69169
10632 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
10633 handled_struct_type param.
10634 (create_variable_info_for, intra_create_variable_infos): Call
10635 create_variable_info_for_1 with extra arg.
10636
10637 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
10638
10639 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
10640 and "armv8.1-a+crc" entries.
10641
10642 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
10643
10644 PR target/69228
10645 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
10646 Change first operand predicate from register_or_constm1_operand
10647 to register_operand.
10648 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
10649 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
10650 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
10651 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
10652 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
10653 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
10654 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
10655 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
10656 comparison with constm1_rtx from vec_prefetch_gen part.
10657
10658 2016-01-13 Richard Biener <rguenther@suse.de>
10659
10660 PR tree-optimization/69013
10661 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
10662 Exchange assert for a test.
10663
10664 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10665
10666 PR target/69247
10667 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
10668
10669 2016-01-13 Richard Biener <rguenther@suse.de>
10670
10671 PR tree-optimization/69242
10672 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
10673 assert with a check.
10674
10675 2016-01-13 Richard Biener <rguenther@suse.de>
10676
10677 PR tree-optimization/69186
10678 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10679 Properly guard vect_update_misalignment_for_peel call.
10680
10681 2016-01-12 Jeff Law <law@redhat.com>
10682
10683 PR tree-optimization/pr67755
10684 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
10685 "need_profile_correction".
10686 (thread_block_1): Initialize new field to false by default. If we
10687 have multiple thread paths through a common joiner to different
10688 final targets, then set new field to true.
10689 (compute_path_counts): Only do count adjustment when it's really
10690 needed.
10691
10692 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10693
10694 * doc/invoke.texi (Spec Files): Move section down in file, past
10695 all command-line option descriptions.
10696
10697 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10698
10699 PR middle-end/54809
10700 * doc/gty.texi: Remove documentation of mark_hook.
10701 * gengtype.c (struct write_types_data): Remove code to support
10702 mark_hook attribute.
10703 (walk_type): Likewise.
10704 (write_func_for_structure): Likewise.
10705
10706 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10707
10708 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
10709 Directory Options, and -specs= to Overall Options.
10710 (Overall Options): Adjust similarly. Reorder to group related
10711 options together. Make -specs= cross-reference the spec file details.
10712 (Directory Options): Adjust similarly.
10713
10714 2016-01-12 Jeff Law <law@redhat.com>
10715
10716 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
10717
10718 2016-01-12 Olivier Hainque <hainque@adacore.com>
10719
10720 * gcc.c (spec_undefvar_allowed): New global.
10721 (process_command): Set to true when running for --version or --help,
10722 alone or together.
10723 (getenv_spec_function): When the variable is not defined, use the
10724 variable name as the variable value if we're allowed not to issue
10725 a fatal error.
10726
10727 2016-01-12 Bin Cheng <bin.cheng@arm.com>
10728
10729 PR tree-optimization/68911
10730 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
10731 information computed for expression "init + nit * step".
10732
10733 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
10734
10735 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
10736 about name of GCC executable. Remove deleted node from menu.
10737 (Directory Options) <-B>: Remove cross-reference to deleted node.
10738 (Target Options): Delete section.
10739
10740 2016-01-12 Christian Bruel <christian.bruel@st.com>
10741
10742 PR target/69180
10743 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
10744 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
10745
10746 2016-01-12 Jakub Jelinek <jakub@redhat.com>
10747
10748 PR target/69198
10749 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
10750 aligned_mem is properly set for AVX512-VL floating point masked
10751 stores.
10752
10753 PR target/69175
10754 * ifcvt.c (cond_exec_process_if_block): When removing the last
10755 insn from then_bb, remove also any possible barriers that follow it.
10756
10757 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
10758
10759 PR target/68456
10760 PR target/69226
10761 * config/i386/iamcu.h (SIZE_TYPE): New macro.
10762 (PTRDIFF_TYPE): Likewise.
10763 (WCHAR_TYPE): Likewise.
10764 (WCHAR_TYPE_SIZE): Likewise.
10765 (STDINT_LONG32): Likewise.
10766
10767 2016-01-12 Richard Biener <rguenther@suse.de>
10768
10769 PR tree-optimization/69053
10770 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
10771 convert initial value for cond reductions.
10772
10773 2016-01-12 Richard Biener <rguenther@suse.de>
10774
10775 PR tree-optimization/69007
10776 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
10777 widen_sum after dot_prod and sad.
10778
10779 2016-01-12 Richard Biener <rguenther@suse.de>
10780
10781 PR tree-optimization/69168
10782 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
10783 pattern stmt SLP type.
10784 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
10785 end up unused so cope with that case.
10786
10787 2016-01-12 Richard Biener <rguenther@suse.de>
10788
10789 PR tree-optimization/69157
10790 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
10791 stmts def type only during analyze phase.
10792 (vectorizable_call): Likewise.
10793 (vectorizable_simd_clone_call): Likewise.
10794 (vectorizable_conversion): Likewise.
10795 (vectorizable_assignment): Likewise.
10796 (vectorizable_shift): Likewise.
10797 (vectorizable_operation): Likewise.
10798 (vectorizable_store): Likewise.
10799 (vectorizable_load): Likewise.
10800
10801 2016-01-12 Richard Biener <rguenther@suse.de>
10802
10803 PR tree-optimization/69174
10804 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
10805 space.
10806 (vectorizable_load): Properly compute the number of loads needed
10807 for permuted strided SLP loads and do not spuriously assign
10808 to SLP_TREE_VEC_STMTS.
10809
10810 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
10811
10812 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
10813 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
10814 (MD_EXEC_PREFIX): Remove.
10815 (MD_STARTFILE_PREFIX) Removee.
10816 (FILE_NAME_ABSOLUTE_P): Remove.
10817 (CPP_SPEC): Do not read macros from sys/version.h.
10818 (LINK_COMMAND_SPEC): Remove.
10819 (LOCAL_INCLUDE_DIR): Remove.
10820 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
10821 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
10822 (POST_LINK_SPEC): Define to invoke stubify after linker
10823 (LIBSTDCXX): Remove define
10824 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
10825 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
10826 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
10827 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
10828 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
10829 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
10830 (i386_djgpp_asm_named_section): Add propotype of new procedure
10831
10832 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
10833 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
10834 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
10835 in config/i386/djgpp.h).
10836 (STANDARD_STARTFILE_PREFIX_2): Define identical to
10837 STANDARD_STARTFILE_PREFIX_1.
10838 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
10839 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
10840 installation errors.
10841 (MAX_OFILE_ALIGNMENT): Define to 128.
10842 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
10843
10844 * config/i386/djgpp.c: New file. Add implementation of
10845 i386_djgpp_asm_named_section.
10846
10847 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
10848
10849 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
10850 Add rule for building djgpp.o.
10851
10852 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10853
10854 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
10855 (rtx_is_swappable_p): Reductions are swappable.
10856 (insn_is_swappable_p): V2DF reductions are swappable.
10857
10858 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
10859
10860 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
10861 reloads for other unsupported memory operands.
10862
10863 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10864 Jim Wilson <jim.wilson@linaro.org>
10865
10866 PR target/69194
10867 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
10868 copy_to_mode_reg instead of force_reg.
10869
10870 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 PR target/69225
10873 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
10874 TARGET_80387 is true.
10875
10876 2016-01-11 Jakub Jelinek <jakub@redhat.com>
10877
10878 PR target/69071
10879 * lra-eliminations.c (move_plus_up): Only move plus up
10880 if subreg of the constant can be simplified into constant
10881 and use the simplified subreg of the constant instead of
10882 the original constant.
10883
10884 * fold-const.c (fold_convertible_p): Don't return true
10885 for conversion of VECTOR_TYPE to same sized integral type.
10886 (fold_convert_loc): Fix up formatting. Fold conversion of
10887 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
10888 instead of NOP_EXPR.
10889
10890 PR tree-optimization/69214
10891 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
10892 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10893 Formatting fix.
10894
10895 PR tree-optimization/69207
10896 * tree-vect-slp.c (vect_get_constant_vectors): For
10897 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
10898 fold_convertible_p to vector_type's element type, and always
10899 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
10900
10901 2016-01-11 Richard Biener <rguenther@suse.de>
10902
10903 PR tree-optimization/69173
10904 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
10905 fixup the cycle if all stmts are in a pattern.
10906
10907 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
10908
10909 PR middle-end/68999
10910 * alias.c (base_alias_check): Move check for addresses with
10911 alignment ANDs before the call for compare_base_decls.
10912 (memrefs_conflict_p): Return -1 for different decls
10913 that went through alignment adjustments.
10914
10915 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10916
10917 PR rtl-optimization/68796
10918 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
10919 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
10920 and QImode comparisons against zero with CC_NZmode.
10921 * config/aarch64/iterators.md (short_mask): New mode_attr.
10922
10923 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
10924
10925 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
10926 (<avx512>_store<mode>_mask): Likewise.
10927
10928 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
10929 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10930
10931 PR rtl-optimization/68841
10932 * ifcvt.c (struct noce_if_info): Add orig_x field.
10933 (bbs_ok_for_cmove_arith): Add to_rename parameter.
10934 Don't record conflicts on to_rename if it's present.
10935 Allow memory destinations in sets.
10936 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
10937 blocks, passing orig_x to the checks.
10938 (noce_process_if_block): Set if_info->orig_x appropriately.
10939
10940 2016-01-11 Tom de Vries <tom@codesourcery.com>
10941
10942 PR tree-optimization/69069
10943 * tree-parloops.c (create_parallel_loop): Add missing phi args.
10944
10945 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10946
10947 PR rtl-optimization/68920
10948 * config/i386/i386.c (ix86_option_override_internal): Restrict number
10949 of conditional moves for RTL if-conversion to 1 for
10950 TARGET_ONE_IF_CONV_INSN.
10951 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
10952 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
10953 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
10954 parameter to restirct number of conditional moves for
10955 RTL if-conversion.
10956 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
10957 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
10958 conditionl moves.
10959
10960 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
10961
10962 PR bootstrap/69123
10963 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
10964 onepart vars. Fix typo in comment. Fix reversed condition in
10965 unshare test.
10966 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
10967
10968 PR bootstrap/69123
10969 * var-tracking.c (dump_onepart_variable_differences): New.
10970 (dataflow_set_different): If a detailed dump is requested,
10971 delay early returns and dump differences between onepart
10972 variables present before and after, and added variables.
10973
10974 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
10975
10976 PR target/69010
10977 * expr.c (expand_expr_real_1): For boolean vector constants
10978 with a scalar mode use const_scalar_mask_from_tree.
10979 (const_scalar_mask_from_tree): New.
10980 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
10981 assigned to a mask type to handle constants.
10982
10983 2016-01-11 Martin Jambor <mjambor@suse.cz>
10984
10985 PR ipa/69044
10986 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
10987 useless parameters if we cannot change function signature.
10988
10989 2016-01-11 Martin Jambor <mjambor@suse.cz>
10990
10991 PR ipa/66616
10992 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
10993 flag.
10994
10995 2016-01-11 Tom de Vries <tom@codesourcery.com>
10996
10997 PR tree-optimization/69109
10998 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
10999 latch with phi.
11000
11001 2016-01-11 Tom de Vries <tom@codesourcery.com>
11002
11003 PR tree-optimization/69108
11004 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
11005 res is not used in a phi.
11006
11007 2016-01-11 Yury Gribov <y.gribov@samsung.com>
11008
11009 PR 67425
11010 * common.opt (frandom-seed): Fix parameter name.
11011 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
11012
11013 2016-01-11 Tom de Vries <tom@codesourcery.com>
11014
11015 PR tree-optimization/69058
11016 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
11017 not supported.
11018
11019 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
11020
11021 * config/arc/arc.opt (mdiv-rem): Add period to the end.
11022 (mcode-density): Likewise.
11023
11024 2016-01-10 Tom de Vries <tom@codesourcery.com>
11025
11026 PR tree-optimization/69062
11027 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
11028 (parallelize_loops): Don't paralelize loop that has phi with address
11029 arg.
11030
11031 2016-01-10 Tom de Vries <tom@codesourcery.com>
11032
11033 PR tree-optimization/69039
11034 * tree-parloops.c (try_create_reduction_list): Only allow single exit
11035 phi for reduction.
11036
11037 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
11038
11039 PR middle-end/68743
11040 * match.pd: Require target has function_c99_misc before doing
11041 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11042
11043 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
11044
11045 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11046 use GMPINC.
11047 * configure: Regenerate.
11048
11049 2016-01-09 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR middle-end/50865
11052 PR tree-optimization/69097
11053 * fold-const.h (expr_not_equal_to): New prototype.
11054 * fold-const.c: Include stringpool.h and tree-ssanames.h.
11055 (expr_not_equal_to): New function.
11056 * match.pd (X % -Y is the same as X % Y): Don't optimize
11057 unless X is known not to be equal to minimum or Y is known
11058 not to be equal to -1.
11059 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11060 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11061 (simplify_stmt_using_ranges): Adjust caller.
11062 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11063 substitute_and_fold.
11064
11065 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
11066
11067 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11068 w/o DECL_NAME.
11069
11070 2016-01-08 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR tree-optimization/69167
11073 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11074 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11075 ops[0] comparison.
11076 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11077
11078 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
11079 Richard Biener <rguenther@suse.de>
11080
11081 PR tree-optimization/68707
11082 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11083 instances that can be handled via vect_load_lanes.
11084
11085 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
11086
11087 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11088 if we can't determine address equivalence.
11089 * alias.c (compare_base_decl): Update for changed return value of
11090 symtab_node::equal_address_to.
11091
11092 2016-01-08 Jason Merrill <jason@redhat.com>
11093
11094 PR c++/68983
11095 PR c++/67557
11096 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11097 * expr.c (store_field): Not here.
11098 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11099 call with TREE_ADDRESSABLE type.
11100 * tree-cfg.c (verify_gimple_call): Adjust.
11101
11102 2016-01-08 Olivier Hainque <hainque@adacore.com>
11103
11104 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11105 libc_internal.
11106
11107 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
11108
11109 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11110 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11111 (reduc_smin_v2sf): Rename to...
11112 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11113 (reduc_splus_v2sf): Rename to...
11114 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11115
11116 2016-01-08 Jakub Jelinek <jakub@redhat.com>
11117
11118 PR tree-optimization/69162
11119 * gimplify.c (gimplify_va_arg_expr): Encode original type of
11120 valist argument in another argument.
11121 (gimplify_modify_expr): Adjust for the above change. Cleanup.
11122 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11123 to determine the va_list type, build a MEM_REF instead of
11124 build_fold_indirect_ref.
11125
11126 PR tree-optimization/69172
11127 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11128 gimple_build.
11129
11130 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
11131
11132 PR tree-optimization/67781
11133 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11134 and cmpnop in two steps: first the ones not accessed in original
11135 gimple expression in a endian independent way and then the ones not
11136 accessed in the final result in an endian-specific way.
11137
11138 2016-01-08 Jakub Jelinek <jakub@redhat.com>
11139
11140 PR tree-optimization/69083
11141 * tree-vect-slp.c (vect_get_constant_vectors): For
11142 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11143 element type. If op is fold_convertible_p to vector_type's element
11144 type, use NOP_EXPR instead of VCE.
11145
11146 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
11147
11148 PR rtl-optimization/67778
11149 PR rtl-optimization/68634
11150 PR rtl-optimization/68909
11151 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
11152 block from the stack until done with it. Remove a superfluous
11153 bitmap set. Remove a superfluous bitmap test.
11154
11155 2016-01-07 Martin Sebor <msebor@redhat.com>
11156
11157 PR c/68966
11158 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11159 constraint on the type of arguments.
11160
11161 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
11162
11163 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11164 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11165 unaligned_access on the gcc_options set.
11166 * config/arm/arm.c (arm_option_override_internal): Use
11167 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11168
11169 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
11170
11171 PR target/69140
11172 * config/i386/i386.c (ix86_frame_pointer_required): Enable
11173 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11174
11175 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
11176
11177 Revert
11178 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
11179
11180 PR target/69140
11181 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11182 depending on frame_pointer_needed before remaining integer and SSE
11183 registers are saved.
11184
11185 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
11186
11187 PR 1078
11188 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11189
11190 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
11191
11192 PR target/69171
11193 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11194 Use the "xBm" constraint.
11195 (float<sseintvecmodelower><mode>2<mask_name><round_name):
11196 Likewise.
11197 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11198 (sse_cvtsi2ssq<round_name>): Likewise.
11199 (sse_cvtss2si<round_name>): Likewise.
11200 (sse_cvtss2siq<round_name>): Likewise.
11201 (sse2_cvtsi2sdq<round_name>): Likewise.
11202 (sse2_cvtsd2si<round_name>): Likewise.
11203 (sse2_cvtsd2siq<round_name>): Likewise.
11204 * config/i386/subst.md (round_nimm_scalar_predicate): New
11205 predicate.
11206
11207 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
11208
11209 PR middle-end/67639
11210 * varasm.c (make_decl_rtl): Mark invalid register vars as
11211 DECL_EXTERNAL.
11212
11213 PR rtl-optimization/66206
11214 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11215 All callers changed.
11216
11217 2016-01-07 Jakub Jelinek <jakub@redhat.com>
11218
11219 PR tree-optimization/69141
11220 * tree-ssa-pre.c: Include langhooks.h.
11221 (eliminate_dom_walker::before_dom_children): Use
11222 lang_hooks.decl_printable_name instead of
11223 cgraph_node::get ()->name ().
11224
11225 PR middle-end/68960
11226 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11227 it and DECL_ALIGN too.
11228
11229 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
11230
11231 * config/mips/mips-ftypes.def: Sort to lexicographical order.
11232
11233 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
11234
11235 PR target/69140
11236 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11237 depending on frame_pointer_needed before remaining integer and SSE
11238 registers are saved.
11239
11240 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11241
11242 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11243 mode iterator with VSX_M2.
11244 (*p9_vecstore_<mode>): Likewise.
11245 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11246 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11247 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11248 (define_split for VSX_LE128 stores): Likewise.
11249 (define_peephole2 for TImode LE swaps): Likewise.
11250 (define_split for VSX_LE128 post-reload stores): Likewise.
11251
11252 2016-01-06 Marek Polacek <polacek@redhat.com>
11253
11254 PR sanitizer/69099
11255 * convert.c (convert_to_integer_1): Adjust call to
11256 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
11257 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
11258 EXPR instead of ARG.
11259 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11260
11261 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11262
11263 PR 1078
11264 * doc/extend.texi (RL78 Variable Attributes): New section.
11265
11266 2016-01-05 Marek Polacek <polacek@redhat.com>
11267
11268 PR c/69104
11269 * builtins.c (get_memmodel): Use expansion point location rather than
11270 the input location. Call warning_at rather than warning.
11271 (expand_builtin_atomic_compare_exchange): Likewise.
11272 (expand_builtin_atomic_load): Likewise.
11273 (expand_builtin_atomic_store): Likewise.
11274 (expand_builtin_atomic_clear): Likewise.
11275
11276 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
11277
11278 PR target/68991
11279 * config/i386/i386.c (ix86_expand_vector_logical_operator):
11280 Replace nonimmediate_operand with vector_operand.
11281 * config/i386/predicates.md (vector_operand): New predicate.
11282 (general_vector_operand): Replace nonimmediate_operand with
11283 vector_operand.
11284 * config/i386/sse.md: Replace nonimmediate_operand with
11285 vector_operand and m constraint with Bm constraint on SSE
11286 patterns with 16-byte memory operand.
11287 * config/i386/subst.md (round_nimm_predicate): Replace
11288 nonimmediate_operand with vector_operand.
11289 (round_saeonly_nimm_predicate): Likewise.
11290 (round_saeonly_nimm_scalar_predicate): New.
11291
11292 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
11293
11294 PR target/68991
11295 * config/i386/constraints.md (Bm): New constraint.
11296 * config/i386/predicates.md (vector_memory_operand): New
11297 predicate.
11298 * config/i386/sse.md: Replace xm with xBm in plusminus and
11299 any_logic patterns.
11300
11301 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11302
11303 PR 1078
11304 * doc/extend.texi (V850 Function Attributes): New section.
11305 (V850 Variable Attributes): New section.
11306
11307 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
11308
11309 PR 1078
11310 * doc/extend.texi (MicroBlaze Function Attributes): Document
11311 interrupt_handler and fast_interrupt attributes.
11312
11313 2016-01-05 Sergei Trofimovich <siarheit@google.com>
11314
11315 PR other/60465
11316 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11317 for local symbolic operands.
11318 * config/ia64/predicates.md (local_symbolic_operand64): New
11319 predicate.
11320
11321 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11322
11323 PR rtl-optimization/68651
11324 * combine.c (combine_simplify_rtx): Canonicalize x + x into
11325 x << 1.
11326
11327 2016-01-05 Nathan Sidwell <nathan@acm.org>
11328
11329 * alias.c (compare_base_decls): Use symtab_node::get.
11330
11331 2016-01-05 Nick Clifton <nickc@redhat.com>
11332
11333 PR target/68770
11334 * ira-costs.c (copy_cost): Initialise the t_icode field of the
11335 secondary_reload_info structure.
11336
11337 PR target/66655
11338 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11339 decls if weak support is available.
11340
11341 2016-01-04 Martin Sebor <msebor@redhat.com>
11342
11343 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11344
11345 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
11346
11347 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11348 OPTION_MASK_P9_DFORM.
11349
11350 * config/rs6000/constraints.md (wo constraint): New constraint for
11351 ISA 3.0 (power9).
11352
11353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11354 for wo constraint.
11355 (rs6000_init_hard_regno_mode_ok): Likewise.
11356
11357 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11358 wo constraint.
11359
11360 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11361 expanders not to have constraints. Add support for ISA 3.0 xxperm
11362 instruction. Add support for fusing xxlor with xxperm.
11363 (altivec_vperm_<mode>_internal): Likewise.
11364 (altivec_vperm_v8hiv16qi): Likewise.
11365 (altivec_vperm_<mode>v16q): Likewise.
11366 (altivec_vperm_<mode>_uns): Likewise.
11367 (vperm_v8hiv4si): Likewise.
11368 (vperm_v16qiv8hi): Likewise.
11369
11370 * doc/md.texi (RS/6000 constraints): Document wo constraint.
11371
11372 2016-01-04 Jakub Jelinek <jakub@redhat.com>
11373
11374 Update copyright years.
11375
11376 * gcc.c (process_command): Update copyright notice dates.
11377 * gcov-dump.c (print_version): Ditto.
11378 * gcov.c (print_version): Ditto.
11379 * gcov-tool.c (print_version): Ditto.
11380 * gengtype.c (create_file): Ditto.
11381 * doc/cpp.texi: Bump @copying's copyright year.
11382 * doc/cppinternals.texi: Ditto.
11383 * doc/gcc.texi: Ditto.
11384 * doc/gccint.texi: Ditto.
11385 * doc/gcov.texi: Ditto.
11386 * doc/install.texi: Ditto.
11387 * doc/invoke.texi: Ditto.
11388
11389 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11390
11391 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
11392 modes larger than TImode as TImode if NEON is not enabled.
11393
11394 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11395
11396 PR target/69100
11397 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
11398 mode for %f0-%f31 only if TARGET_FPU.
11399
11400 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
11401
11402 PR target/69072
11403 * config/sparc/sparc.c (scan_record_type): Take into account subfields
11404 to compute the PACKED_P predicate.
11405 (function_arg_record_value): Minor tweaks.
11406
11407 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11408
11409 * doc/install.texi (--with-multilib-list): Describe the meaning of the
11410 option for arm*-*-* targets.
11411
11412 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
11413
11414 * doc/extend.texi (Common Function Attributes): Move docs for
11415 MSP430-specific attributes to....
11416 (MSP430 Function Attributes): ...here. Delete the redundant
11417 entries and copy-edit the remaining text.
11418 (MSP430 Variable Attributes): Use uniform format for index
11419 entries and add a cross-reference to the corresponding function
11420 attribute docs.
11421
11422 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
11423
11424 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
11425 -finite-math typo.
11426 (x86 Options): Likewise.
11427
11428 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
11429
11430 PR 1078
11431
11432 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
11433 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
11434 to corresponding attribute.
11435
11436 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
11437
11438 * doc/extend.texi (Common Function Attributes) <noplt>: Move
11439 to correct alphabetization of table. Copy-edit and correct
11440 markup.
11441 <stack_protect>: Likewise.
11442 <target_clones>: Likewise.
11443 <simd>: Likewise.
11444 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
11445 Correct punctuation.
11446 (Code Gen Options) <-fno-plt>: Copy-edit.
11447
11448 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11449
11450 PR target/68917
11451 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
11452 SI values. Explicitly convert SI to DI and vice-versa.
11453
11454 2016-01-01 Jakub Jelinek <jakub@redhat.com>
11455
11456 PR tree-optimization/69070
11457 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
11458 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
11459
11460 PR sanitizer/69055
11461 * ubsan.c (ubsan_instrument_float_cast): Call
11462 initialize_sanitizer_builtins.
11463
11464 PR target/69015
11465 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
11466 \f
11467 Copyright (C) 2016 Free Software Foundation, Inc.
11468
11469 Copying and distribution of this file, with or without modification,
11470 are permitted in any medium without royalty provided the copyright
11471 notice and this notice are preserved.